turkmen-textile-front/dist/assets/ui-library-fl7SR1OO.js

155 lines
445 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var xu=e=>{throw TypeError(e)};var ra=(e,t,n)=>t.has(e)||xu("Cannot "+n);var C=(e,t,n)=>(ra(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?xu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),K=(e,t,n,s)=>(ra(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),he=(e,t,n)=>(ra(e,t,"access private method"),n);var ki=(e,t,n,s)=>({set _(r){K(e,t,r,n)},get _(){return C(e,t,s)}});import{r as ov,a as x,R as av,b as hh,c as cv,L as Ce,d as ji,e as ve}from"./react-vendor-Y0eyvj1J.js";var ia={exports:{}},xr={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var bu;function lv(){if(bu)return xr;bu=1;var e=ov(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,d={},f=null,g=null;l!==void 0&&(f=""+l),c.key!==void 0&&(f=""+c.key),c.ref!==void 0&&(g=c.ref);for(u in c)s.call(c,u)&&!i.hasOwnProperty(u)&&(d[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)d[u]===void 0&&(d[u]=c[u]);return{$$typeof:t,type:a,key:f,ref:g,props:d,_owner:r.current}}return xr.Fragment=n,xr.jsx=o,xr.jsxs=o,xr}var wu;function uv(){return wu||(wu=1,ia.exports=lv()),ia.exports}var h=uv();function mt(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 Su(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ph(...e){return t=>{let n=!1;const s=e.map(r=>{const i=Su(r,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let r=0;r<s.length;r++){const i=s[r];typeof i=="function"?i():Su(e[r],null)}}}}function Bt(...e){return x.useCallback(ph(...e),e)}function dv(e,t){const n=x.createContext(t),s=i=>{const{children:o,...a}=i,c=x.useMemo(()=>a,Object.values(a));return h.jsx(n.Provider,{value:c,children:o})};s.displayName=e+"Provider";function r(i){const o=x.useContext(n);if(o)return o;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[s,r]}function $c(e,t=[]){let n=[];function s(i,o){const a=x.createContext(o),c=n.length;n=[...n,o];const l=d=>{var v;const{scope:f,children:g,...m}=d,p=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,y=x.useMemo(()=>m,Object.values(m));return h.jsx(p.Provider,{value:y,children:g})};l.displayName=i+"Provider";function u(d,f){var p;const g=((p=f==null?void 0:f[e])==null?void 0:p[c])||a,m=x.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=>x.createContext(o));return function(a){const c=(a==null?void 0:a[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return r.scopeName=e,[s,fv(r,...t)]}function fv(...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 x.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var ps=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},hv=av.useId||(()=>{}),pv=0;function qi(e){const[t,n]=x.useState(hv());return ps(()=>{n(s=>s??String(pv++))},[e]),t?`radix-${t}`:""}function Dn(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var s;return(s=t.current)==null?void 0:s.call(t,...n)},[])}function mh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=mv({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=Dn(n),c=x.useCallback(l=>{if(i){const d=typeof l=="function"?l(e):l;d!==e&&a(d)}else r(l)},[i,e,r,a]);return[o,c]}function mv({defaultProp:e,onChange:t}){const n=x.useState(e),[s]=n,r=x.useRef(s),i=Dn(t);return x.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var cr=x.forwardRef((e,t)=>{const{children:n,...s}=e,r=x.Children.toArray(n),i=r.find(yv);if(i){const o=i.props.children,a=r.map(c=>c===i?x.Children.count(o)>1?x.Children.only(null):x.isValidElement(o)?o.props.children:null:c);return h.jsx(Va,{...s,ref:t,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return h.jsx(Va,{...s,ref:t,children:n})});cr.displayName="Slot";var Va=x.forwardRef((e,t)=>{const{children:n,...s}=e;if(x.isValidElement(n)){const r=xv(n);return x.cloneElement(n,{...vv(s,n.props),ref:t?ph(t,r):r})}return x.Children.count(n)>1?x.Children.only(null):null});Va.displayName="SlotClone";var gv=({children:e})=>h.jsx(h.Fragment,{children:e});function yv(e){return x.isValidElement(e)&&e.type===gv}function vv(e,t){const n={...t};for(const s in t){const r=e[s],i=t[s];/^on[A-Z]/.test(s)?r&&i?n[s]=(...a)=>{i(...a),r(...a)}:r&&(n[s]=r):s==="style"?n[s]={...r,...i}:s==="className"&&(n[s]=[r,i].filter(Boolean).join(" "))}return{...e,...n}}function xv(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 bv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],at=bv.reduce((e,t)=>{const n=x.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?cr:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function wv(e,t){e&&hh.flushSync(()=>e.dispatchEvent(t))}function Sv(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e);x.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 _v="DismissableLayer",Ba="dismissableLayer.update",Tv="dismissableLayer.pointerDownOutside",Cv="dismissableLayer.focusOutside",_u,gh=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zc=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=x.useContext(gh),[u,d]=x.useState(null),f=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,g]=x.useState({}),m=Bt(t,P=>d(P)),p=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(y),b=u?p.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,T=b>=v,S=Pv(P=>{const E=P.target,j=[...l.branches].some(D=>D.contains(E));!T||j||(r==null||r(P),o==null||o(P),P.defaultPrevented||a==null||a())},f),A=Rv(P=>{const E=P.target;[...l.branches].some(D=>D.contains(E))||(i==null||i(P),o==null||o(P),P.defaultPrevented||a==null||a())},f);return Sv(P=>{b===l.layers.size-1&&(s==null||s(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},f),x.useEffect(()=>{if(u)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(_u=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Tu(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=_u)}},[u,f,n,l]),x.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Tu())},[u,l]),x.useEffect(()=>{const P=()=>g({});return document.addEventListener(Ba,P),()=>document.removeEventListener(Ba,P)},[]),h.jsx(at.div,{...c,ref:m,style:{pointerEvents:w?T?"auto":"none":void 0,...e.style},onFocusCapture:mt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:mt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:mt(e.onPointerDownCapture,S.onPointerDownCapture)})});zc.displayName=_v;var Ev="DismissableLayerBranch",Av=x.forwardRef((e,t)=>{const n=x.useContext(gh),s=x.useRef(null),r=Bt(t,s);return x.useEffect(()=>{const i=s.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),h.jsx(at.div,{...e,ref:r})});Av.displayName=Ev;function Pv(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),s=x.useRef(!1),r=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){yh(Tv,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 Rv(e,t=globalThis==null?void 0:globalThis.document){const n=Dn(e),s=x.useRef(!1);return x.useEffect(()=>{const r=i=>{i.target&&!s.current&&yh(Cv,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 Tu(){const e=new CustomEvent(Ba);document.dispatchEvent(e)}function yh(e,t,n,{discrete:s}){const r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),s?wv(r,i):r.dispatchEvent(i)}var oa="focusScope.autoFocusOnMount",aa="focusScope.autoFocusOnUnmount",Cu={bubbles:!1,cancelable:!0},Nv="FocusScope",Wc=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,c]=x.useState(null),l=Dn(r),u=Dn(i),d=x.useRef(null),f=Bt(t,p=>c(p)),g=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(s){let p=function(w){if(g.paused||!a)return;const T=w.target;a.contains(T)?d.current=T:_n(d.current,{select:!0})},y=function(w){if(g.paused||!a)return;const T=w.relatedTarget;T!==null&&(a.contains(T)||_n(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&_n(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",y);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",y),b.disconnect()}}},[s,a,g.paused]),x.useEffect(()=>{if(a){Au.add(g);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(oa,Cu);a.addEventListener(oa,l),a.dispatchEvent(v),v.defaultPrevented||(kv(Fv(vh(a)),{select:!0}),document.activeElement===p&&_n(a))}return()=>{a.removeEventListener(oa,l),setTimeout(()=>{const v=new CustomEvent(aa,Cu);a.addEventListener(aa,u),a.dispatchEvent(v),v.defaultPrevented||_n(p??document.body,{select:!0}),a.removeEventListener(aa,u),Au.remove(g)},0)}}},[a,l,u,g]);const m=x.useCallback(p=>{if(!n&&!s||g.paused)return;const y=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(y&&v){const b=p.currentTarget,[w,T]=jv(b);w&&T?!p.shiftKey&&v===T?(p.preventDefault(),n&&_n(w,{select:!0})):p.shiftKey&&v===w&&(p.preventDefault(),n&&_n(T,{select:!0})):v===b&&p.preventDefault()}},[n,s,g.paused]);return h.jsx(at.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});Wc.displayName=Nv;function kv(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(_n(s,{select:t}),document.activeElement!==n)return}function jv(e){const t=vh(e),n=Eu(t,e),s=Eu(t.reverse(),e);return[n,s]}function vh(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 Eu(e,t){for(const n of e)if(!Ov(n,{upTo:t}))return n}function Ov(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Dv(e){return e instanceof HTMLInputElement&&"select"in e}function _n(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Dv(e)&&t&&e.select()}}var Au=Mv();function Mv(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Pu(e,t),e.unshift(t)},remove(t){var n;e=Pu(e,t),(n=e[0])==null||n.resume()}}}function Pu(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function Fv(e){return e.filter(t=>t.tagName!=="A")}var Lv="Portal",Hc=x.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=x.useState(!1);ps(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?cv.createPortal(h.jsx(at.div,{...s,ref:t}),o):null});Hc.displayName=Lv;function Iv(e,t){return x.useReducer((n,s)=>t[n][s]??n,e)}var lr=e=>{const{present:t,children:n}=e,s=Vv(t),r=typeof n=="function"?n({present:s.isPresent}):x.Children.only(n),i=Bt(s.ref,Bv(r));return typeof n=="function"||s.isPresent?x.cloneElement(r,{ref:i}):null};lr.displayName="Presence";function Vv(e){const[t,n]=x.useState(),s=x.useRef({}),r=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Iv(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=Oi(s.current);i.current=a==="mounted"?l:"none"},[a]),ps(()=>{const l=s.current,u=r.current;if(u!==e){const f=i.current,g=Oi(l);e?c("MOUNT"):g==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&f!==g?"ANIMATION_OUT":"UNMOUNT"),r.current=e}},[e,c]),ps(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=g=>{const p=Oi(s.current).includes(g.animationName);if(g.target===t&&p&&(c("ANIMATION_END"),!r.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",l=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},f=g=>{g.target===t&&(i.current=Oi(s.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{u.clearTimeout(l),t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:x.useCallback(l=>{l&&(s.current=getComputedStyle(l)),n(l)},[])}}function Oi(e){return(e==null?void 0:e.animationName)||"none"}function Bv(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 ca=0;function xh(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ru()),document.body.insertAdjacentElement("beforeend",e[1]??Ru()),ca++,()=>{ca===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ca--}},[])}function Ru(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Qt=function(){return Qt=Object.assign||function(t){for(var n,s=1,r=arguments.length;s<r;s++){n=arguments[s];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Qt.apply(this,arguments)};function bh(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]]);return n}function Uv(e,t,n){if(n||arguments.length===2)for(var s=0,r=t.length,i;s<r;s++)(i||!(s in t))&&(i||(i=Array.prototype.slice.call(t,0,s)),i[s]=t[s]);return e.concat(i||Array.prototype.slice.call(t))}var Zi="right-scroll-bar-position",Ki="width-before-scroll-bar",$v="with-scroll-bars-hidden",zv="--removed-body-scroll-bar-size";function la(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Wv(e,t){var n=x.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(s){var r=n.value;r!==s&&(n.value=s,n.callback(s,r))}}}})[0];return n.callback=t,n.facade}var Hv=typeof window<"u"?x.useLayoutEffect:x.useEffect,Nu=new WeakMap;function qv(e,t){var n=Wv(null,function(s){return e.forEach(function(r){return la(r,s)})});return Hv(function(){var s=Nu.get(n);if(s){var r=new Set(s),i=new Set(e),o=n.current;r.forEach(function(a){i.has(a)||la(a,null)}),i.forEach(function(a){r.has(a)||la(a,o)})}Nu.set(n,e)},[e]),n}function Zv(e){return e}function Kv(e,t){t===void 0&&(t=Zv);var n=[],s=!1,r={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var o=t(i,s);return n.push(o),function(){n=n.filter(function(a){return a!==o})}},assignSyncMedium:function(i){for(s=!0;n.length;){var o=n;n=[],o.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){s=!0;var o=[];if(n.length){var a=n;n=[],a.forEach(i),o=n}var c=function(){var u=o;o=[],u.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(u){o.push(u),l()},filter:function(u){return o=o.filter(u),n}}}};return r}function Gv(e){e===void 0&&(e={});var t=Kv(null);return t.options=Qt({async:!0,ssr:!1},e),t}var wh=function(e){var t=e.sideCar,n=bh(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=t.read();if(!s)throw new Error("Sidecar medium not found");return x.createElement(s,Qt({},n))};wh.isSideCarExport=!0;function Qv(e,t){return e.useMedium(t),wh}var Sh=Gv(),ua=function(){},jo=x.forwardRef(function(e,t){var n=x.useRef(null),s=x.useState({onScrollCapture:ua,onWheelCapture:ua,onTouchMoveCapture:ua}),r=s[0],i=s[1],o=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,g=e.noIsolation,m=e.inert,p=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,b=e.gapMode,w=bh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=f,S=qv([n,t]),A=Qt(Qt({},w),r);return x.createElement(x.Fragment,null,u&&x.createElement(T,{sideCar:Sh,removeScrollBar:l,shards:d,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!p,lockRef:n,gapMode:b}),o?x.cloneElement(x.Children.only(a),Qt(Qt({},A),{ref:S})):x.createElement(v,Qt({},A,{className:c,ref:S}),a))});jo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jo.classNames={fullWidth:Ki,zeroRight:Zi};var Xv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Yv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xv();return t&&e.setAttribute("nonce",t),e}function Jv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ex(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var tx=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Yv())&&(Jv(t,n),ex(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nx=function(){var e=tx();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},_h=function(){var e=nx(),t=function(n){var s=n.styles,r=n.dynamic;return e(s,r),null};return t},sx={left:0,top:0,right:0,gap:0},da=function(e){return parseInt(e||"",10)||0},rx=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],s=t[e==="padding"?"paddingTop":"marginTop"],r=t[e==="padding"?"paddingRight":"marginRight"];return[da(n),da(s),da(r)]},ix=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return sx;var t=rx(e),n=document.documentElement.clientWidth,s=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,s-n+t[2]-t[0])}},ox=_h(),Fs="data-scroll-locked",ax=function(e,t,n,s){var r=e.left,i=e.top,o=e.right,a=e.gap;return n===void 0&&(n="margin"),`
.`.concat($v,` {
overflow: hidden `).concat(s,`;
padding-right: `).concat(a,"px ").concat(s,`;
}
body[`).concat(Fs,`] {
overflow: hidden `).concat(s,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(s,";"),n==="margin"&&`
padding-left: `.concat(r,`px;
padding-top: `).concat(i,`px;
padding-right: `).concat(o,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(a,"px ").concat(s,`;
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(s,";")].filter(Boolean).join(""),`
}
.`).concat(Zi,` {
right: `).concat(a,"px ").concat(s,`;
}
.`).concat(Ki,` {
margin-right: `).concat(a,"px ").concat(s,`;
}
.`).concat(Zi," .").concat(Zi,` {
right: 0 `).concat(s,`;
}
.`).concat(Ki," .").concat(Ki,` {
margin-right: 0 `).concat(s,`;
}
body[`).concat(Fs,`] {
`).concat(zv,": ").concat(a,`px;
}
`)},ku=function(){var e=parseInt(document.body.getAttribute(Fs)||"0",10);return isFinite(e)?e:0},cx=function(){x.useEffect(function(){return document.body.setAttribute(Fs,(ku()+1).toString()),function(){var e=ku()-1;e<=0?document.body.removeAttribute(Fs):document.body.setAttribute(Fs,e.toString())}},[])},lx=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;cx();var i=x.useMemo(function(){return ix(r)},[r]);return x.createElement(ox,{styles:ax(i,!t,r,n?"":"!important")})},Ua=!1;if(typeof window<"u")try{var Di=Object.defineProperty({},"passive",{get:function(){return Ua=!0,!0}});window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Ua=!1}var Cs=Ua?{passive:!1}:!1,ux=function(e){return e.tagName==="TEXTAREA"},Th=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!ux(e)&&n[t]==="visible")},dx=function(e){return Th(e,"overflowY")},fx=function(e){return Th(e,"overflowX")},ju=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=Ch(e,s);if(r){var i=Eh(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},hx=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},px=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},Ch=function(e,t){return e==="v"?dx(t):fx(t)},Eh=function(e,t){return e==="v"?hx(t):px(t)},mx=function(e,t){return e==="h"&&t==="rtl"?-1:1},gx=function(e,t,n,s,r){var i=mx(e,window.getComputedStyle(t).direction),o=i*s,a=n.target,c=t.contains(a),l=!1,u=o>0,d=0,f=0;do{var g=Eh(e,a),m=g[0],p=g[1],y=g[2],v=p-y-i*m;(m||v)&&Ch(e,a)&&(d+=v,f+=m),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(u&&Math.abs(d)<1||!u&&Math.abs(f)<1)&&(l=!0),l},Mi=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ou=function(e){return[e.deltaX,e.deltaY]},Du=function(e){return e&&"current"in e?e.current:e},yx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},vx=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},xx=0,Es=[];function bx(e){var t=x.useRef([]),n=x.useRef([0,0]),s=x.useRef(),r=x.useState(xx++)[0],i=x.useState(_h)[0],o=x.useRef(e);x.useEffect(function(){o.current=e},[e]),x.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(r));var p=Uv([e.lockRef.current],(e.shards||[]).map(Du),!0).filter(Boolean);return p.forEach(function(y){return y.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),p.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(p,y){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!o.current.allowPinchZoom;var v=Mi(p),b=n.current,w="deltaX"in p?p.deltaX:b[0]-v[0],T="deltaY"in p?p.deltaY:b[1]-v[1],S,A=p.target,P=Math.abs(w)>Math.abs(T)?"h":"v";if("touches"in p&&P==="h"&&A.type==="range")return!1;var E=ju(P,A);if(!E)return!0;if(E?S=P:(S=P==="v"?"h":"v",E=ju(P,A)),!E)return!1;if(!s.current&&"changedTouches"in p&&(w||T)&&(s.current=S),!S)return!0;var j=s.current||S;return gx(j,y,p,j==="h"?w:T)},[]),c=x.useCallback(function(p){var y=p;if(!(!Es.length||Es[Es.length-1]!==i)){var v="deltaY"in y?Ou(y):Mi(y),b=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&yx(S.delta,v)})[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(Du).filter(Boolean).filter(function(S){return S.contains(y.target)}),T=w.length>0?a(y,w[0]):!o.current.noIsolation;T&&y.cancelable&&y.preventDefault()}}},[]),l=x.useCallback(function(p,y,v,b){var w={name:p,delta:y,target:v,should:b,shadowParent:wx(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(T){return T!==w})},1)},[]),u=x.useCallback(function(p){n.current=Mi(p),s.current=void 0},[]),d=x.useCallback(function(p){l(p.type,Ou(p),p.target,a(p,e.lockRef.current))},[]),f=x.useCallback(function(p){l(p.type,Mi(p),p.target,a(p,e.lockRef.current))},[]);x.useEffect(function(){return Es.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Cs),document.addEventListener("touchmove",c,Cs),document.addEventListener("touchstart",u,Cs),function(){Es=Es.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Cs),document.removeEventListener("touchmove",c,Cs),document.removeEventListener("touchstart",u,Cs)}},[]);var g=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(i,{styles:vx(r)}):null,g?x.createElement(lx,{gapMode:e.gapMode}):null)}function wx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Sx=Qv(Sh,bx);var qc=x.forwardRef(function(e,t){return x.createElement(jo,Qt({},e,{ref:t,sideCar:Sx}))});qc.classNames=jo.classNames;var _x=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},As=new WeakMap,Fi=new WeakMap,Li={},fa=0,Ah=function(e){return e&&(e.host||Ah(e.parentNode))},Tx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Ah(n);return s&&e.contains(s)?s:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Cx=function(e,t,n,s){var r=Tx(t,Array.isArray(e)?e:[e]);Li[n]||(Li[n]=new WeakMap);var i=Li[n],o=[],a=new Set,c=new Set(r),l=function(d){!d||a.has(d)||(a.add(d),l(d.parentNode))};r.forEach(l);var u=function(d){!d||c.has(d)||Array.prototype.forEach.call(d.children,function(f){if(a.has(f))u(f);else try{var g=f.getAttribute(s),m=g!==null&&g!=="false",p=(As.get(f)||0)+1,y=(i.get(f)||0)+1;As.set(f,p),i.set(f,y),o.push(f),p===1&&m&&Fi.set(f,!0),y===1&&f.setAttribute(n,"true"),m||f.setAttribute(s,"true")}catch(v){console.error("aria-hidden: cannot operate on ",f,v)}})};return u(t),a.clear(),fa++,function(){o.forEach(function(d){var f=As.get(d)-1,g=i.get(d)-1;As.set(d,f),i.set(d,g),f||(Fi.has(d)||d.removeAttribute(s),Fi.delete(d)),g||d.removeAttribute(n)}),fa--,fa||(As=new WeakMap,As=new WeakMap,Fi=new WeakMap,Li={})}},Ph=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=_x(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),Cx(s,r,n,"aria-hidden")):function(){return null}},Zc="Dialog",[Rh,lN]=$c(Zc),[Ex,Ut]=Rh(Zc),Nh=e=>{const{__scopeDialog:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!0}=e,a=x.useRef(null),c=x.useRef(null),[l=!1,u]=mh({prop:s,defaultProp:r,onChange:i});return h.jsx(Ex,{scope:t,triggerRef:a,contentRef:c,contentId:qi(),titleId:qi(),descriptionId:qi(),open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Nh.displayName=Zc;var kh="DialogTrigger",jh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(kh,n),i=Bt(t,r.triggerRef);return h.jsx(at.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Qc(r.open),...s,ref:i,onClick:mt(e.onClick,r.onOpenToggle)})});jh.displayName=kh;var Kc="DialogPortal",[Ax,Oh]=Rh(Kc,{forceMount:void 0}),Dh=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Ut(Kc,t);return h.jsx(Ax,{scope:t,forceMount:n,children:x.Children.map(s,o=>h.jsx(lr,{present:n||i.open,children:h.jsx(Hc,{asChild:!0,container:r,children:o})}))})};Dh.displayName=Kc;var so="DialogOverlay",Mh=x.forwardRef((e,t)=>{const n=Oh(so,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ut(so,e.__scopeDialog);return i.modal?h.jsx(lr,{present:s||i.open,children:h.jsx(Px,{...r,ref:t})}):null});Mh.displayName=so;var Px=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(so,n);return h.jsx(qc,{as:cr,allowPinchZoom:!0,shards:[r.contentRef],children:h.jsx(at.div,{"data-state":Qc(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),ms="DialogContent",Fh=x.forwardRef((e,t)=>{const n=Oh(ms,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ut(ms,e.__scopeDialog);return h.jsx(lr,{present:s||i.open,children:i.modal?h.jsx(Rx,{...r,ref:t}):h.jsx(Nx,{...r,ref:t})})});Fh.displayName=ms;var Rx=x.forwardRef((e,t)=>{const n=Ut(ms,e.__scopeDialog),s=x.useRef(null),r=Bt(t,n.contentRef,s);return x.useEffect(()=>{const i=s.current;if(i)return Ph(i)},[]),h.jsx(Lh,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:mt(e.onFocusOutside,i=>i.preventDefault())})}),Nx=x.forwardRef((e,t)=>{const n=Ut(ms,e.__scopeDialog),s=x.useRef(!1),r=x.useRef(!1);return h.jsx(Lh,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),Lh=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Ut(ms,n),c=x.useRef(null),l=Bt(t,c);return xh(),h.jsxs(h.Fragment,{children:[h.jsx(Wc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:h.jsx(zc,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Qc(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),h.jsxs(h.Fragment,{children:[h.jsx(kx,{titleId:a.titleId}),h.jsx(Ox,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Gc="DialogTitle",Ih=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Gc,n);return h.jsx(at.h2,{id:r.titleId,...s,ref:t})});Ih.displayName=Gc;var Vh="DialogDescription",Bh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Vh,n);return h.jsx(at.p,{id:r.descriptionId,...s,ref:t})});Bh.displayName=Vh;var Uh="DialogClose",$h=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Uh,n);return h.jsx(at.button,{type:"button",...s,ref:t,onClick:mt(e.onClick,()=>r.onOpenChange(!1))})});$h.displayName=Uh;function Qc(e){return e?"open":"closed"}var zh="DialogTitleWarning",[uN,Wh]=dv(zh,{contentName:ms,titleName:Gc,docsSlug:"dialog"}),kx=({titleId:e})=>{const t=Wh(zh),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return x.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},jx="DialogDescriptionWarning",Ox=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Wh(jx).contentName}}.`;return x.useEffect(()=>{var i;const r=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(s))},[s,e,t]),null},Hh=Nh,qh=jh,Zh=Dh,Oo=Mh,Do=Fh,Mo=Ih,Fo=Bh,Xc=$h;function Kh(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Kh(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Gh(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Kh(e))&&(s&&(s+=" "),s+=t);return s}const Mu=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Fu=Gh,Yc=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Fu(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:r,defaultVariants:i}=t,o=Object.keys(r).map(l=>{const u=n==null?void 0:n[l],d=i==null?void 0:i[l];if(u===null)return null;const f=Mu(u)||Mu(d);return r[l][f]}),a=n&&Object.entries(n).reduce((l,u)=>{let[d,f]=u;return f===void 0||(l[d]=f),l},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((l,u)=>{let{class:d,className:f,...g}=u;return Object.entries(g).every(m=>{let[p,y]=m;return Array.isArray(y)?y.includes({...i,...a}[p]):{...i,...a}[p]===y})?[...l,d,f]:l},[]);return Fu(e,o,c,n==null?void 0:n.class,n==null?void 0:n.className)};/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Dx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qh=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Mx={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fx=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:r="",children:i,iconNode:o,...a},c)=>x.createElement("svg",{ref:c,...Mx,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Qh("lucide",r),...a},[...o.map(([l,u])=>x.createElement(l,u)),...Array.isArray(i)?i:[i]]));/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const At=(e,t)=>{const n=x.forwardRef(({className:s,...r},i)=>x.createElement(Fx,{ref:i,iconNode:t,className:Qh(`lucide-${Dx(e)}`,s),...r}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Lx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Ix=At("ArrowRight",Lx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vx=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],Bx=At("ArrowUpRight",Vx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Ux=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Xh=At("ChevronLeft",Ux);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $x=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Yh=At("ChevronRight",$x);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zx=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Wx=At("Facebook",zx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Jh=At("LoaderCircle",Hx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qx=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],dN=At("Loader",qx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zx=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Kx=At("MapPin",Zx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gx=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],fN=At("Play",Gx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qx=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Xx=At("Smartphone",Qx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Yx=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],Jx=At("Upload",Yx);/**
* @license lucide-react v0.473.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Jc=At("X",eb),el="-",tb=e=>{const t=sb(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(el);return a[0]===""&&a.length!==1&&a.shift(),ep(a,t)||nb(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&s[o]?[...c,...s[o]]:c}}},ep=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?ep(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(el);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Lu=/^\[(.+)\]$/,nb=e=>{if(Lu.test(e)){const t=Lu.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},sb=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return ib(Object.entries(e.classGroups),n).forEach(([i,o])=>{$a(o,s,i,t)}),s},$a=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Iu(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(rb(r)){$a(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{$a(o,Iu(t,i),n,s)})})},Iu=(e,t)=>{let n=e;return t.split(el).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},rb=e=>e.isThemeGetter,ib=(e,t)=>t?e.map(([n,s])=>{const r=s.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([o,a])=>[t+o,a])):i);return[n,r]}):e,ob=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,s=new Map;const r=(i,o)=>{n.set(i,o),t++,t>e&&(t=0,s=n,n=new Map)};return{get(i){let o=n.get(i);if(o!==void 0)return o;if((o=s.get(i))!==void 0)return r(i,o),o},set(i,o){n.has(i)?n.set(i,o):r(i,o)}}},tp="!",ab=e=>{const{separator:t,experimentalParseClassName:n}=e,s=t.length===1,r=t[0],i=t.length,o=a=>{const c=[];let l=0,u=0,d;for(let y=0;y<a.length;y++){let v=a[y];if(l===0){if(v===r&&(s||a.slice(y,y+i)===t)){c.push(a.slice(u,y)),u=y+i;continue}if(v==="/"){d=y;continue}}v==="["?l++:v==="]"&&l--}const f=c.length===0?a:a.substring(u),g=f.startsWith(tp),m=g?f.substring(1):f,p=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:p}};return n?a=>n({className:a,parseClassName:o}):o},cb=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(s=>{s[0]==="["?(t.push(...n.sort(),s),n=[]):n.push(s)}),t.push(...n.sort()),t},lb=e=>({cache:ob(e.cacheSize),parseClassName:ab(e),...tb(e)}),ub=/\s+/,db=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(ub);let a="";for(let c=o.length-1;c>=0;c-=1){const l=o[c],{modifiers:u,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:g}=n(l);let m=!!g,p=s(m?f.substring(0,g):f);if(!p){if(!m){a=l+(a.length>0?" "+a:a);continue}if(p=s(f),!p){a=l+(a.length>0?" "+a:a);continue}m=!1}const y=cb(u).join(":"),v=d?y+tp:y,b=v+p;if(i.includes(b))continue;i.push(b);const w=r(p,m);for(let T=0;T<w.length;++T){const S=w[T];i.push(v+S)}a=l+(a.length>0?" "+a:a)}return a};function fb(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=np(t))&&(s&&(s+=" "),s+=n);return s}const np=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=np(e[s]))&&(n&&(n+=" "),n+=t);return n};function hb(e,...t){let n,s,r,i=o;function o(c){const l=t.reduce((u,d)=>d(u),e());return n=lb(l),s=n.cache.get,r=n.cache.set,i=a,a(c)}function a(c){const l=s(c);if(l)return l;const u=db(c,n);return r(c,u),u}return function(){return i(fb.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},sp=/^\[(?:([a-z-]+):)?(.+)\]$/i,pb=/^\d+\/\d+$/,mb=new Set(["px","full","screen"]),gb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,yb=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,xb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cn=e=>Ls(e)||mb.has(e)||pb.test(e),wn=e=>ur(e,"length",Pb),Ls=e=>!!e&&!Number.isNaN(Number(e)),ha=e=>ur(e,"number",Ls),br=e=>!!e&&Number.isInteger(Number(e)),wb=e=>e.endsWith("%")&&Ls(e.slice(0,-1)),ce=e=>sp.test(e),Sn=e=>gb.test(e),Sb=new Set(["length","size","percentage"]),_b=e=>ur(e,Sb,rp),Tb=e=>ur(e,"position",rp),Cb=new Set(["image","url"]),Eb=e=>ur(e,Cb,Nb),Ab=e=>ur(e,"",Rb),wr=()=>!0,ur=(e,t,n)=>{const s=sp.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},Pb=e=>yb.test(e)&&!vb.test(e),rp=()=>!1,Rb=e=>xb.test(e),Nb=e=>bb.test(e),kb=()=>{const e=_e("colors"),t=_e("spacing"),n=_e("blur"),s=_e("brightness"),r=_e("borderColor"),i=_e("borderRadius"),o=_e("borderSpacing"),a=_e("borderWidth"),c=_e("contrast"),l=_e("grayscale"),u=_e("hueRotate"),d=_e("invert"),f=_e("gap"),g=_e("gradientColorStops"),m=_e("gradientColorStopPositions"),p=_e("inset"),y=_e("margin"),v=_e("opacity"),b=_e("padding"),w=_e("saturate"),T=_e("scale"),S=_e("sepia"),A=_e("skew"),P=_e("space"),E=_e("translate"),j=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ce,t],O=()=>[ce,t],$=()=>["",cn,wn],I=()=>["auto",Ls,ce],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],q=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ce],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[Ls,ce];return{cacheSize:500,separator:":",theme:{colors:[wr],spacing:[cn,wn],blur:["none","",Sn,ce],brightness:ge(),borderColor:[e],borderRadius:["none","","full",Sn,ce],borderSpacing:O(),borderWidth:$(),contrast:ge(),grayscale:re(),hueRotate:ge(),invert:re(),gap:O(),gradientColorStops:[e],gradientColorStopPositions:[wb,wn],inset:L(),margin:L(),opacity:ge(),padding:O(),saturate:ge(),scale:ge(),sepia:re(),skew:ge(),space:O(),translate:O()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[Sn]}],"break-after":[{"break-after":de()}],"break-before":[{"break-before":de()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...J(),ce]}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[p]}],"inset-x":[{"inset-x":[p]}],"inset-y":[{"inset-y":[p]}],start:[{start:[p]}],end:[{end:[p]}],top:[{top:[p]}],right:[{right:[p]}],bottom:[{bottom:[p]}],left:[{left:[p]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",br,ce]}],basis:[{basis:L()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ce]}],grow:[{grow:re()}],shrink:[{shrink:re()}],order:[{order:["first","last","none",br,ce]}],"grid-cols":[{"grid-cols":[wr]}],"col-start-end":[{col:["auto",{span:["full",br,ce]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[wr]}],"row-start-end":[{row:["auto",{span:[br,ce]},ce]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ce]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ce]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...Z()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Z(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Z(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ce,t]}],"min-w":[{"min-w":[ce,t,"min","max","fit"]}],"max-w":[{"max-w":[ce,t,"none","full","min","max","fit","prose",{screen:[Sn]},Sn]}],h:[{h:[ce,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ce,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ce,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Sn,wn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",ha]}],"font-family":[{font:[wr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ce]}],"line-clamp":[{"line-clamp":["none",Ls,ha]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",cn,ce]}],"list-image":[{"list-image":["none",ce]}],"list-style-type":[{list:["none","disc","decimal",ce]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...X(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",cn,wn]}],"underline-offset":[{"underline-offset":["auto",cn,ce]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ce]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...J(),Tb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_b]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Eb]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[g]}],"gradient-via":[{via:[g]}],"gradient-to":[{to:[g]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...X(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:X()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-s":[{"border-s":[r]}],"border-color-e":[{"border-e":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...X()]}],"outline-offset":[{"outline-offset":[cn,ce]}],"outline-w":[{outline:[cn,wn]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[cn,wn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Sn,Ab]}],"shadow-color":[{shadow:[wr]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...q(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":q()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",Sn,ce]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[w]}],sepia:[{sepia:[S]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[s]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[w]}],"backdrop-sepia":[{"backdrop-sepia":[S]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ce]}],duration:[{duration:ge()}],ease:[{ease:["linear","in","out","in-out",ce]}],delay:[{delay:ge()}],animate:[{animate:["none","spin","ping","pulse","bounce",ce]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[br,ce]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[A]}],"skew-y":[{"skew-y":[A]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ce]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ce]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ce]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[cn,wn,ha]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},jb=hb(kb);function W(...e){return jb(Gh(e))}const Ob=Hh,Db=qh,Mb=Xc,Fb=Zh,ip=x.forwardRef(({className:e,...t},n)=>h.jsx(Oo,{className:W("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));ip.displayName=Oo.displayName;const Lb=Yc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-full data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),op=x.forwardRef(({side:e="right",className:t,children:n,...s},r)=>h.jsxs(Fb,{children:[h.jsx(ip,{}),h.jsxs(Do,{ref:r,className:W(Lb({side:e}),t),...s,children:[h.jsxs(Xc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none disabled:pointer-events-none data-[state=open]:bg-secondary",children:[h.jsx(Jc,{className:"size-8"}),h.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));op.displayName=Do.displayName;const ap=({className:e,...t})=>h.jsx("div",{className:W("flex flex-col space-y-2 text-center sm:text-left",e),...t});ap.displayName="SheetHeader";const Ib=x.forwardRef(({className:e,...t},n)=>h.jsx(Mo,{ref:n,className:W("text-lg font-semibold text-foreground",e),...t}));Ib.displayName=Mo.displayName;const Vb=x.forwardRef(({className:e,...t},n)=>h.jsx(Fo,{ref:n,className:W("text-sm text-muted-foreground",e),...t}));Vb.displayName=Fo.displayName;const Bb=Yc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-[18px] leading-[140%] font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-on_primary shadow hover:bg-primary/90",teritary:"bg-teritary hover:bg-teritary/90 text-on_surface",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-outline text-on_surface",secondary:"bg-secondary_container hover:bg-secondary_container/80 text-on_secondary_container",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-white h-8"},size:{default:"h-12 px-5 py-2 rounded-[2px]",sm:"h-10 text-base px-4 rounded-[2px]",lg:"lg:h-[88px] h-12 rounded-[2px] px-8 ",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),it=x.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const c=i?cr:"button";return h.jsx(c,{className:W(Bb({variant:t,size:n,className:e})),ref:a,...o,children:s?h.jsx(Jh,{className:"w-5 h-5 animate-spin"}):r})});it.displayName="Button";const Ub=(e,t,n,s)=>{var i,o,a,c;const r=[n,{code:t,...s||{}}];if((o=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&o.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);us(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),(c=(a=e==null?void 0:e.services)==null?void 0:a.logger)!=null&&c.warn?e.services.logger.warn(...r):console!=null&&console.warn&&console.warn(...r)},Vu={},za=(e,t,n,s)=>{us(n)&&Vu[n]||(us(n)&&(Vu[n]=new Date),Ub(e,t,n,s))},cp=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Wa=(e,t,n)=>{e.loadNamespaces(t,cp(e,n))},Bu=(e,t,n,s)=>{if(us(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Wa(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,cp(e,s))},$b=(e,t,n={})=>!t.languages||!t.languages.length?(za(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(s,r)=>{var i;if(((i=n.bindI18n)==null?void 0:i.indexOf("languageChanging"))>-1&&s.services.backendConnector.backend&&s.isLanguageChangingTo&&!r(s.isLanguageChangingTo,e))return!1}}),us=e=>typeof e=="string",zb=e=>typeof e=="object"&&e!==null,Wb=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Hb={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},qb=e=>Hb[e],Zb=e=>e.replace(Wb,qb);let Ha={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:Zb};const Kb=(e={})=>{Ha={...Ha,...e}},Gb=()=>Ha;let lp;const Qb=e=>{lp=e},Xb=()=>lp,hN={type:"3rdParty",init(e){Kb(e.options.react),Qb(e)}},Yb=x.createContext();class Jb{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const ew=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},up=(e,t,n,s)=>e.getFixedT(t,n,s),tw=(e,t,n,s)=>x.useCallback(up(e,t,n,s),[e,t,n,s]),_s=(e,t={})=>{var T,S,A,P;const{i18n:n}=t,{i18n:s,defaultNS:r}=x.useContext(Yb)||{},i=n||s||Xb();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Jb),!i){za(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const E=(D,L)=>us(L)?L:zb(L)&&us(L.defaultValue)?L.defaultValue:Array.isArray(D)?D[D.length-1]:D,j=[E,{},!1];return j.t=E,j.i18n={},j.ready=!1,j}(T=i.options.react)!=null&&T.wait&&za(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Gb(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||r||((S=i.options)==null?void 0:S.defaultNS);l=us(l)?[l]:l||["translation"],(P=(A=i.reportNamespaces).addUsedNamespaces)==null||P.call(A,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(E=>$b(E,i,o)),d=tw(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>d,g=()=>up(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[m,p]=x.useState(f);let y=l.join();t.lng&&(y=`${t.lng}${y}`);const v=ew(y),b=x.useRef(!0);x.useEffect(()=>{const{bindI18n:E,bindI18nStore:j}=o;b.current=!0,!u&&!a&&(t.lng?Bu(i,t.lng,l,()=>{b.current&&p(g)}):Wa(i,l,()=>{b.current&&p(g)})),u&&v&&v!==y&&b.current&&p(g);const D=()=>{b.current&&p(g)};return E&&(i==null||i.on(E,D)),j&&(i==null||i.store.on(j,D)),()=>{b.current=!1,i&&(E==null||E.split(" ").forEach(L=>i.off(L,D))),j&&i&&j.split(" ").forEach(L=>i.store.off(L,D))}},[i,y]),x.useEffect(()=>{b.current&&u&&p(f)},[i,c,u]);const w=[m,i,u];if(w.t=m,w.i18n=i,w.ready=u,u||!u&&!a)return w;throw new Promise(E=>{t.lng?Bu(i,t.lng,l,()=>E()):Wa(i,l,()=>E())})},dp=({className:e})=>h.jsx("div",{className:W("",e),children:h.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),fp=({className:e,image:t,title:n,iconClassName:s})=>h.jsxs("article",{className:W("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[h.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),h.jsx("div",{className:W("md:size-[84px] size-12 bg-teritary p-3",s),children:h.jsx("img",{src:t.path,alt:"theme icon"})}),h.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),nw=({className:e,title:t,text:n})=>h.jsxs("article",{className:W("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[h.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),h.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:n}),h.jsx("h4",{className:"text-on_surface normal text-base",children:t})]}),sw=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>h.jsxs("article",{className:W("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[h.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),h.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),h.jsxs("div",{className:"relative z-20 h-full",children:[h.jsxs("div",{className:"",children:[h.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),h.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),h.jsx(Ce,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:h.jsxs(it,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",h.jsx(Bx,{})]})})]})]}),hp=({className:e,title:t,text:n,bottomClassName:s})=>h.jsxs("div",{className:W("rounded-t-[4px] overflow-hidden",e),children:[h.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),h.jsx("div",{className:W("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),rw=({className:e,text:t,title:n,image:s})=>h.jsxs("div",{className:W("flex items-center gap-4",e),children:[h.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:h.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[h.jsx("h5",{className:"text-sm text-[#454545]",children:n}),h.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),tl=x.createContext({});function nl(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Lo=x.createContext(null),sl=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class iw extends x.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const s=n.offsetParent,r=s instanceof HTMLElement&&s.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=r-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function ow({children:e,isPresent:t,anchorX:n}){const s=x.useId(),r=x.useRef(null),i=x.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:o}=x.useContext(sl);return x.useInsertionEffect(()=>{const{width:a,height:c,top:l,left:u,right:d}=i.current;if(t||!r.current||!a||!c)return;const f=n==="left"?`left: ${u}`:`right: ${d}`;r.current.dataset.motionPopId=s;const g=document.createElement("style");return o&&(g.nonce=o),document.head.appendChild(g),g.sheet&&g.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${a}px !important;
height: ${c}px !important;
${f}px !important;
top: ${l}px !important;
}
`),()=>{document.head.removeChild(g)}},[t]),h.jsx(iw,{isPresent:t,childRef:r,sizeRef:i,children:x.cloneElement(e,{ref:r})})}const aw=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=nl(cw),l=x.useId(),u=x.useCallback(f=>{c.set(f,!0);for(const g of c.values())if(!g)return;s&&s()},[c,s]),d=x.useMemo(()=>({id:l,initial:t,isPresent:n,custom:r,onExitComplete:u,register:f=>(c.set(f,!1),()=>c.delete(f))}),i?[Math.random(),u]:[n,u]);return x.useMemo(()=>{c.forEach((f,g)=>c.set(g,!1))},[n]),x.useEffect(()=>{!n&&!c.size&&s&&s()},[n]),o==="popLayout"&&(e=h.jsx(ow,{isPresent:n,anchorX:a,children:e})),h.jsx(Lo.Provider,{value:d,children:e})};function cw(){return new Map}function pp(e=!0){const t=x.useContext(Lo);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:r}=t,i=x.useId();x.useEffect(()=>{e&&r(i)},[e]);const o=x.useCallback(()=>e&&s&&s(i),[i,s,e]);return!n&&s?[!1,o]:[!0]}const Ii=e=>e.key||"";function Uu(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const rl=typeof window<"u",mp=rl?x.useLayoutEffect:x.useEffect,pN=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=pp(o),u=x.useMemo(()=>Uu(e),[e]),d=o&&!c?[]:u.map(Ii),f=x.useRef(!0),g=x.useRef(u),m=nl(()=>new Map),[p,y]=x.useState(u),[v,b]=x.useState(u);mp(()=>{f.current=!1,g.current=u;for(let S=0;S<v.length;S++){const A=Ii(v[S]);d.includes(A)?m.delete(A):m.get(A)!==!0&&m.set(A,!1)}},[v,d.length,d.join("-")]);const w=[];if(u!==p){let S=[...u];for(let A=0;A<v.length;A++){const P=v[A],E=Ii(P);d.includes(E)||(S.splice(A,0,P),w.push(P))}i==="wait"&&w.length&&(S=w),b(Uu(S)),y(u);return}const{forceRender:T}=x.useContext(tl);return h.jsx(h.Fragment,{children:v.map(S=>{const A=Ii(S),P=o&&!c?!1:u===v||d.includes(A),E=()=>{if(m.has(A))m.set(A,!0);else return;let j=!0;m.forEach(D=>{D||(j=!1)}),j&&(T==null||T(),b(g.current),o&&(l==null||l()),s&&s())};return h.jsx(aw,{isPresent:P,initial:!f.current||n?void 0:!1,custom:P?void 0:t,presenceAffectsLayout:r,mode:i,onExitComplete:P?void 0:E,anchorX:a,children:S},A)})})},gt=e=>e;let qa=gt;const lw={skipAnimations:!1,useManualTiming:!1};function uw(e){let t=new Set,n=new Set,s=!1,r=!1;const i=new WeakSet;let o={delta:0,timestamp:0,isProcessing:!1};function a(l){i.has(l)&&(c.schedule(l),e()),l(o)}const c={schedule:(l,u=!1,d=!1)=>{const g=d&&s?t:n;return u&&i.add(l),g.has(l)||g.add(l),l},cancel:l=>{n.delete(l),i.delete(l)},process:l=>{if(o=l,s){r=!0;return}s=!0,[t,n]=[n,t],t.forEach(a),t.clear(),s=!1,r&&(r=!1,c.process(l))}};return c}const Vi=["read","resolveKeyframes","update","preRender","render","postRender"],dw=40;function gp(e,t){let n=!1,s=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,o=Vi.reduce((v,b)=>(v[b]=uw(i),v),{}),{read:a,resolveKeyframes:c,update:l,preRender:u,render:d,postRender:f}=o,g=()=>{const v=performance.now();n=!1,r.delta=s?1e3/60:Math.max(Math.min(v-r.timestamp,dw),1),r.timestamp=v,r.isProcessing=!0,a.process(r),c.process(r),l.process(r),u.process(r),d.process(r),f.process(r),r.isProcessing=!1,n&&t&&(s=!1,e(g))},m=()=>{n=!0,s=!0,r.isProcessing||e(g)};return{schedule:Vi.reduce((v,b)=>{const w=o[b];return v[b]=(T,S=!1,A=!1)=>(n||m(),w.schedule(T,S,A)),v},{}),cancel:v=>{for(let b=0;b<Vi.length;b++)o[Vi[b]].cancel(v)},state:r,steps:o}}const{schedule:Te,cancel:Mn,state:ze,steps:pa}=gp(typeof requestAnimationFrame<"u"?requestAnimationFrame:gt,!0),yp=x.createContext({strict:!1}),$u={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},er={};for(const e in $u)er[e]={isEnabled:t=>$u[e].some(n=>!!t[n])};function fw(e){for(const t in e)er[t]={...er[t],...e[t]}}const hw=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ro(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||hw.has(e)}let vp=e=>!ro(e);function pw(e){e&&(vp=t=>t.startsWith("on")?!ro(t):e(t))}try{pw(require("@emotion/is-prop-valid").default)}catch{}function mw(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(vp(r)||n===!0&&ro(r)||!t&&!ro(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function gw(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...s)=>e(...s);return new Proxy(n,{get:(s,r)=>r==="create"?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}const Io=x.createContext({});function Ur(e){return typeof e=="string"||Array.isArray(e)}function Vo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const il=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],ol=["initial",...il];function Bo(e){return Vo(e.animate)||ol.some(t=>Ur(e[t]))}function xp(e){return!!(Bo(e)||e.variants)}function yw(e,t){if(Bo(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Ur(n)?n:void 0,animate:Ur(s)?s:void 0}}return e.inherit!==!1?t:{}}function vw(e){const{initial:t,animate:n}=yw(e,x.useContext(Io));return x.useMemo(()=>({initial:t,animate:n}),[zu(t),zu(n)])}function zu(e){return Array.isArray(e)?e.join(" "):e}const xw=Symbol.for("motionComponentSymbol");function Ns(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bw(e,t,n){return x.useCallback(s=>{s&&e.onMount&&e.onMount(s),t&&(s?t.mount(s):t.unmount()),n&&(typeof n=="function"?n(s):Ns(n)&&(n.current=s))},[t])}const al=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ww="framerAppearId",bp="data-"+al(ww),{schedule:cl,cancel:mN}=gp(queueMicrotask,!1),wp=x.createContext({});function Sw(e,t,n,s,r){var i,o;const{visualElement:a}=x.useContext(Io),c=x.useContext(yp),l=x.useContext(Lo),u=x.useContext(sl).reducedMotion,d=x.useRef(null);s=s||c.renderer,!d.current&&s&&(d.current=s(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:u}));const f=d.current,g=x.useContext(wp);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&_w(d.current,n,r,g);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,l)});const p=n[bp],y=x.useRef(!!p&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,p))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,p)));return mp(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),cl.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())}),x.useEffect(()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var v;(v=window.MotionHandoffMarkAsComplete)===null||v===void 0||v.call(window,p)}),y.current=!1))}),f}function _w(e,t,n,s){const{layoutId:r,layout:i,drag:o,dragConstraints:a,layoutScroll:c,layoutRoot:l}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Sp(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Ns(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:l})}function Sp(e){if(e)return e.options.allowProjection!==!1?e.projection:Sp(e.parent)}function Tw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&fw(e);function a(l,u){let d;const f={...x.useContext(sl),...l,layoutId:Cw(l)},{isStatic:g}=f,m=vw(l),p=s(l,g);if(!g&&rl){Ew();const y=Aw(f);d=y.MeasureLayout,m.visualElement=Sw(r,p,f,t,y.ProjectionNode)}return h.jsxs(Io.Provider,{value:m,children:[d&&m.visualElement?h.jsx(d,{visualElement:m.visualElement,...f}):null,n(r,l,bw(p,m.visualElement,u),p,g,m.visualElement)]})}a.displayName=`motion.${typeof r=="string"?r:`create(${(o=(i=r.displayName)!==null&&i!==void 0?i:r.name)!==null&&o!==void 0?o:""})`}`;const c=x.forwardRef(a);return c[xw]=r,c}function Cw({layoutId:e}){const t=x.useContext(tl).id;return t&&e!==void 0?t+"-"+e:e}function Ew(e,t){x.useContext(yp).strict}function Aw(e){const{drag:t,layout:n}=er;if(!t&&!n)return{};const s={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}const Pw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ll(e){return typeof e!="string"||e.includes("-")?!1:!!(Pw.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wu(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function ul(e,t,n,s){if(typeof t=="function"){const[r,i]=Wu(s);t=t(n!==void 0?n:e.custom,r,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,i]=Wu(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const Za=e=>Array.isArray(e),Rw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Nw=e=>Za(e)?e[e.length-1]||0:e,Xe=e=>!!(e&&e.getVelocity);function Gi(e){const t=Xe(e)?e.get():e;return Rw(t)?t.toValue():t}function kw({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:jw(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const _p=e=>(t,n)=>{const s=x.useContext(Io),r=x.useContext(Lo),i=()=>kw(e,t,s,r);return n?i():nl(i)};function jw(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=Gi(i[f]);let{initial:o,animate:a}=e;const c=Bo(e),l=xp(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),a===void 0&&(a=t.animate));let u=n?n.initial===!1:!1;u=u||o===!1;const d=u?a:o;if(d&&typeof d!="boolean"&&!Vo(d)){const f=Array.isArray(d)?d:[d];for(let g=0;g<f.length;g++){const m=ul(e,f[g]);if(m){const{transitionEnd:p,transition:y,...v}=m;for(const b in v){let w=v[b];if(Array.isArray(w)){const T=u?w.length-1:0;w=w[T]}w!==null&&(r[b]=w)}for(const b in p)r[b]=p[b]}}}return r}const dr=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ts=new Set(dr),Tp=e=>t=>typeof t=="string"&&t.startsWith(e),dl=Tp("--"),Ow=Tp("var(--"),fl=e=>Ow(e)?Dw.test(e.split("/*")[0].trim()):!1,Dw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Cp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gn=(e,t,n)=>n>t?t:n<e?e:n,fr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$r={...fr,transform:e=>gn(0,1,e)},Bi={...fr,default:1},vi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Tn=vi("deg"),Jt=vi("%"),ee=vi("px"),Mw=vi("vh"),Fw=vi("vw"),Hu={...Jt,parse:e=>Jt.parse(e)/100,transform:e=>Jt.transform(e*100)},Lw={borderWidth:ee,borderTopWidth:ee,borderRightWidth:ee,borderBottomWidth:ee,borderLeftWidth:ee,borderRadius:ee,radius:ee,borderTopLeftRadius:ee,borderTopRightRadius:ee,borderBottomRightRadius:ee,borderBottomLeftRadius:ee,width:ee,maxWidth:ee,height:ee,maxHeight:ee,top:ee,right:ee,bottom:ee,left:ee,padding:ee,paddingTop:ee,paddingRight:ee,paddingBottom:ee,paddingLeft:ee,margin:ee,marginTop:ee,marginRight:ee,marginBottom:ee,marginLeft:ee,backgroundPositionX:ee,backgroundPositionY:ee},Iw={rotate:Tn,rotateX:Tn,rotateY:Tn,rotateZ:Tn,scale:Bi,scaleX:Bi,scaleY:Bi,scaleZ:Bi,skew:Tn,skewX:Tn,skewY:Tn,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:$r,originX:Hu,originY:Hu,originZ:ee},qu={...fr,transform:Math.round},hl={...Lw,...Iw,zIndex:qu,size:ee,fillOpacity:$r,strokeOpacity:$r,numOctaves:qu},Vw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Bw=dr.length;function Uw(e,t,n){let s="",r=!0;for(let i=0;i<Bw;i++){const o=dr[i],a=e[o];if(a===void 0)continue;let c=!0;if(typeof a=="number"?c=a===(o.startsWith("scale")?1:0):c=parseFloat(a)===0,!c||n){const l=Cp(a,hl[o]);if(!c){r=!1;const u=Vw[o]||o;s+=`${u}(${l}) `}n&&(t[o]=l)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function pl(e,t,n){const{style:s,vars:r,transformOrigin:i}=e;let o=!1,a=!1;for(const c in t){const l=t[c];if(Ts.has(c)){o=!0;continue}else if(dl(c)){r[c]=l;continue}else{const u=Cp(l,hl[c]);c.startsWith("origin")?(a=!0,i[c]=u):s[c]=u}}if(t.transform||(o||n?s.transform=Uw(t,e.transform,n):s.transform&&(s.transform="none")),a){const{originX:c="50%",originY:l="50%",originZ:u=0}=i;s.transformOrigin=`${c} ${l} ${u}`}}const $w={offset:"stroke-dashoffset",array:"stroke-dasharray"},zw={offset:"strokeDashoffset",array:"strokeDasharray"};function Ww(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?$w:zw;e[i.offset]=ee.transform(-s);const o=ee.transform(t),a=ee.transform(n);e[i.array]=`${o} ${a}`}function Zu(e,t,n){return typeof e=="string"?e:ee.transform(t+n*e)}function Hw(e,t,n){const s=Zu(t,e.x,e.width),r=Zu(n,e.y,e.height);return`${s} ${r}`}function ml(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(pl(e,l,d),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:g,dimensions:m}=e;f.transform&&(m&&(g.transform=f.transform),delete f.transform),m&&(r!==void 0||i!==void 0||g.transform)&&(g.transformOrigin=Hw(m,r!==void 0?r:.5,i!==void 0?i:.5)),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),s!==void 0&&(f.scale=s),o!==void 0&&Ww(f,o,a,c,!1)}const gl=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Ep=()=>({...gl(),attrs:{}}),yl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Ap(e,{style:t,vars:n},s,r){Object.assign(e.style,t,r&&r.getProjectionStyles(s));for(const i in n)e.style.setProperty(i,n[i])}const Pp=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Rp(e,t,n,s){Ap(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(Pp.has(r)?r:al(r),t.attrs[r])}const zr={};function qw(e){for(const t in e)zr[t]=e[t],dl(t)&&(zr[t].isCSSVariable=!0)}function Np(e,{layout:t,layoutId:n}){return Ts.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!zr[e]||e==="opacity")}function vl(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Xe(r[o])||t.style&&Xe(t.style[o])||Np(o,e)||((s=n==null?void 0:n.getValue(o))===null||s===void 0?void 0:s.liveStyle)!==void 0)&&(i[o]=r[o]);return i}function kp(e,t,n){const s=vl(e,t,n);for(const r in e)if(Xe(e[r])||Xe(t[r])){const i=dr.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function Zw(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Ku=["x","y","width","height","cx","cy","r"],Kw={useVisualState:_p({scrapeMotionValuesFromProps:kp,createRenderState:Ep,onUpdate:({props:e,prevProps:t,current:n,renderState:s,latestValues:r})=>{if(!n)return;let i=!!e.drag;if(!i){for(const a in r)if(Ts.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<Ku.length;a++){const c=Ku[a];e[c]!==t[c]&&(o=!0)}o&&Te.read(()=>{Zw(n,s),Te.render(()=>{ml(s,r,yl(n.tagName),e.transformTemplate),Rp(n,s)})})}})},Gw={useVisualState:_p({scrapeMotionValuesFromProps:vl,createRenderState:gl})};function jp(e,t,n){for(const s in t)!Xe(t[s])&&!Np(s,n)&&(e[s]=t[s])}function Qw({transformTemplate:e},t){return x.useMemo(()=>{const n=gl();return pl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Xw(e,t){const n=e.style||{},s={};return jp(s,n,e),Object.assign(s,Qw(e,t)),s}function Yw(e,t){const n={},s=Xw(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=s,n}function Jw(e,t,n,s){const r=x.useMemo(()=>{const i=Ep();return ml(i,t,yl(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};jp(i,e.style,e),r.style={...i,...r.style}}return r}function e0(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(ll(n)?Jw:Yw)(s,i,o,n),l=mw(s,typeof n=="string",e),u=n!==x.Fragment?{...l,...c,ref:r}:{},{children:d}=s,f=x.useMemo(()=>Xe(d)?d.get():d,[d]);return x.createElement(n,{...u,children:f})}}function t0(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...ll(s)?Kw:Gw,preloadedFeatures:e,useRender:e0(r),createVisualElement:t,Component:s};return Tw(o)}}function Op(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let s=0;s<n;s++)if(t[s]!==e[s])return!1;return!0}function Uo(e,t,n){const s=e.getProps();return ul(s,t,n!==void 0?n:s.custom,e)}function xl(e,t){return e?e[t]||e.default||e:void 0}const Dp=new Set(["width","height","top","left","right","bottom",...dr]);let Qi;function n0(){Qi=void 0}const en={now:()=>(Qi===void 0&&en.set(ze.isProcessing||lw.useManualTiming?ze.timestamp:performance.now()),Qi),set:e=>{Qi=e,queueMicrotask(n0)}};function bl(e,t){e.indexOf(t)===-1&&e.push(t)}function wl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Sl{constructor(){this.subscriptions=[]}add(t){return bl(this.subscriptions,t),()=>wl(this.subscriptions,t)}notify(t,n,s){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,s);else for(let i=0;i<r;i++){const o=this.subscriptions[i];o&&o(t,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Mp(e,t){return t?e*(1e3/t):0}const Gu=30,s0=e=>!isNaN(parseFloat(e));class r0{constructor(t,n={}){this.version="12.0.6",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(s,r=!0)=>{const i=en.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=en.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=s0(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Sl);const s=this.events[t].add(n);return t==="change"?()=>{s(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=en.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Gu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Gu);return Mp(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Wr(e,t){return new r0(e,t)}function i0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Wr(n))}function o0(e,t){const n=Uo(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=Nw(i[o]);i0(e,o,a)}}function a0(e){return!!(Xe(e)&&e.add)}function Ka(e,t){const n=e.getValue("willChange");if(a0(n))return n.add(t)}function Fp(e){return e.props[bp]}function _l(e){let t;return()=>(t===void 0&&(t=e()),t)}const c0=_l(()=>window.ScrollTimeline!==void 0);class l0{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let s=0;s<this.animations.length;s++)this.animations[s][t]=n}attachTimeline(t,n){const s=this.animations.map(r=>{if(c0()&&r.attachTimeline)return r.attachTimeline(t);if(typeof n=="function")return n(r)});return()=>{s.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class u0 extends l0{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const pn=e=>e*1e3,mn=e=>e/1e3;function Tl(e){return typeof e=="function"}function Qu(e,t){e.timeline=t,e.onfinish=null}const Cl=e=>Array.isArray(e)&&typeof e[0]=="number",d0={linearEasing:void 0};function f0(e,t){const n=_l(e);return()=>{var s;return(s=d0[t])!==null&&s!==void 0?s:n()}}const io=f0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),tr=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},Lp=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=e(tr(0,r-1,i))+", ";return`linear(${s.substring(0,s.length-2)})`};function Ip(e){return!!(typeof e=="function"&&io()||!e||typeof e=="string"&&(e in Ga||io())||Cl(e)||Array.isArray(e)&&e.every(Ip))}const Er=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Ga={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Er([0,.65,.55,1]),circOut:Er([.55,0,1,.45]),backIn:Er([.31,.01,.66,-.59]),backOut:Er([.33,1.53,.69,.99])};function Vp(e,t){if(e)return typeof e=="function"&&io()?Lp(e,t):Cl(e)?Er(e):Array.isArray(e)?e.map(n=>Vp(n,t)||Ga.easeOut):Ga[e]}const Bp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,h0=1e-7,p0=12;function m0(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Bp(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>h0&&++a<p0);return o}function xi(e,t,n,s){if(e===t&&n===s)return gt;const r=i=>m0(i,0,1,e,n);return i=>i===0||i===1?i:Bp(r(i),t,s)}const Up=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,$p=e=>t=>1-e(1-t),zp=xi(.33,1.53,.69,.99),El=$p(zp),Wp=Up(El),Hp=e=>(e*=2)<1?.5*El(e):.5*(2-Math.pow(2,-10*(e-1))),Al=e=>1-Math.sin(Math.acos(e)),qp=$p(Al),Zp=Up(Al),Kp=e=>/^0[^.\s]+$/u.test(e);function g0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Kp(e):!0}const Or=e=>Math.round(e*1e5)/1e5,Pl=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function y0(e){return e==null}const v0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rl=(e,t)=>n=>!!(typeof n=="string"&&v0.test(n)&&n.startsWith(e)||t&&!y0(n)&&Object.prototype.hasOwnProperty.call(n,t)),Gp=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Pl);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},x0=e=>gn(0,255,e),ma={...fr,transform:e=>Math.round(x0(e))},Jn={test:Rl("rgb","red"),parse:Gp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ma.transform(e)+", "+ma.transform(t)+", "+ma.transform(n)+", "+Or($r.transform(s))+")"};function b0(e){let t="",n="",s="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),s=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),s=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,s+=s,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:r?parseInt(r,16)/255:1}}const Qa={test:Rl("#"),parse:b0,transform:Jn.transform},ks={test:Rl("hsl","hue"),parse:Gp("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:s=1})=>"hsla("+Math.round(e)+", "+Jt.transform(Or(t))+", "+Jt.transform(Or(n))+", "+Or($r.transform(s))+")"},Ge={test:e=>Jn.test(e)||Qa.test(e)||ks.test(e),parse:e=>Jn.test(e)?Jn.parse(e):ks.test(e)?ks.parse(e):Qa.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Jn.transform(e):ks.transform(e)},w0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function S0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Pl))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(w0))===null||n===void 0?void 0:n.length)||0)>0}const Qp="number",Xp="color",_0="var",T0="var(",Xu="${}",C0=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Hr(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(C0,c=>(Ge.test(c)?(s.color.push(i),r.push(Xp),n.push(Ge.parse(c))):c.startsWith(T0)?(s.var.push(i),r.push(_0),n.push(c)):(s.number.push(i),r.push(Qp),n.push(parseFloat(c))),++i,Xu)).split(Xu);return{values:n,split:a,indexes:s,types:r}}function Yp(e){return Hr(e).values}function Jp(e){const{split:t,types:n}=Hr(e),s=t.length;return r=>{let i="";for(let o=0;o<s;o++)if(i+=t[o],r[o]!==void 0){const a=n[o];a===Qp?i+=Or(r[o]):a===Xp?i+=Ge.transform(r[o]):i+=r[o]}return i}}const E0=e=>typeof e=="number"?0:e;function A0(e){const t=Yp(e);return Jp(e)(t.map(E0))}const Fn={test:S0,parse:Yp,createTransformer:Jp,getAnimatableNone:A0},P0=new Set(["brightness","contrast","saturate","opacity"]);function R0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Pl)||[];if(!s)return e;const r=n.replace(s,"");let i=P0.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const N0=/\b([a-z-]*)\(.*?\)/gu,Xa={...Fn,getAnimatableNone:e=>{const t=e.match(N0);return t?t.map(R0).join(" "):e}},k0={...hl,color:Ge,backgroundColor:Ge,outlineColor:Ge,fill:Ge,stroke:Ge,borderColor:Ge,borderTopColor:Ge,borderRightColor:Ge,borderBottomColor:Ge,borderLeftColor:Ge,filter:Xa,WebkitFilter:Xa},Nl=e=>k0[e];function em(e,t){let n=Nl(e);return n!==Xa&&(n=Fn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const j0=new Set(["auto","none","0"]);function O0(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!j0.has(i)&&Hr(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=em(n,r)}const Yu=e=>e===fr||e===ee,Ju=(e,t)=>parseFloat(e.split(", ")[t]),ed=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Ju(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?Ju(i[1],e):0}},D0=new Set(["x","y","z"]),M0=dr.filter(e=>!D0.has(e));function F0(e){const t=[];return M0.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const nr={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ed(4,13),y:ed(5,14)};nr.translateX=nr.x;nr.translateY=nr.y;const ds=new Set;let Ya=!1,Ja=!1;function tm(){if(Ja){const e=Array.from(ds).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=F0(s);r.length&&(n.set(s,r),s.render())}),e.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const r=n.get(s);r&&r.forEach(([i,o])=>{var a;(a=s.getValue(i))===null||a===void 0||a.set(o)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ja=!1,Ya=!1,ds.forEach(e=>e.complete()),ds.clear()}function nm(){ds.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ja=!0)})}function L0(){nm(),tm()}class kl{constructor(t,n,s,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=s,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(ds.add(this),Ya||(Ya=!0,Te.read(nm),Te.resolveKeyframes(tm))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:s,motionValue:r}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const o=r==null?void 0:r.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(s&&n){const c=s.readValue(n,a);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=a),r&&o===void 0&&r.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),ds.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,ds.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sm=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),I0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function V0(e){const t=I0.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function rm(e,t,n=1){const[s,r]=V0(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return sm(o)?parseFloat(o):o}return fl(r)?rm(r,t,n+1):r}const im=e=>t=>t.test(e),B0={test:e=>e==="auto",parse:e=>e},om=[fr,ee,Jt,Tn,Fw,Mw,B0],td=e=>om.find(im(e));class am extends kl{constructor(t,n,s,r,i){super(t,n,s,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let l=t[c];if(typeof l=="string"&&(l=l.trim(),fl(l))){const u=rm(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!Dp.has(s)||t.length!==2)return;const[r,i]=t,o=td(r),a=td(i);if(o!==a)if(Yu(o)&&Yu(a))for(let c=0;c<t.length;c++){const l=t[c];typeof l=="string"&&(t[c]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,s=[];for(let r=0;r<t.length;r++)g0(t[r])&&s.push(r);s.length&&O0(t,s,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=nr[s](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(s,r).jump(r,!1)}measureEndState(){var t;const{element:n,name:s,unresolvedKeyframes:r}=this;if(!n||!n.current)return;const i=n.getValue(s);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=nr[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([c,l])=>{n.getValue(c).set(l)}),this.resolveNoneKeyframes()}}const nd=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Fn.test(e)||e==="0")&&!e.startsWith("url("));function U0(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function $0(e,t,n,s){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],o=nd(r,t),a=nd(i,t);return!o||!a?!1:U0(e)||(n==="spring"||Tl(n))&&s}const z0=e=>e!==null;function $o(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(z0),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const W0=40;class cm{constructor({autoplay:t=!0,delay:n=0,type:s="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=en.now(),this.options={autoplay:t,delay:n,type:s,repeat:r,repeatDelay:i,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>W0?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&L0(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=en.now(),this.hasAttemptedResolve=!0;const{name:s,type:r,velocity:i,delay:o,onComplete:a,onUpdate:c,isGenerator:l}=this.options;if(!l&&!$0(t,s,r,i))if(o)this.options.duration=0;else{c&&c($o(t,this.options,n)),a&&a(),this.resolveFinishedPromise();return}const u=this.initPlayback(t,n);u!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...u},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ec=2e4;function lm(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<ec;)t+=n,s=e.next(t);return t>=ec?1/0:t}const Pe=(e,t,n)=>e+(t-e)*n;function ga(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function H0({hue:e,saturation:t,lightness:n,alpha:s}){e/=360,t/=100,n/=100;let r=0,i=0,o=0;if(!t)r=i=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=ga(c,a,e+1/3),i=ga(c,a,e),o=ga(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function oo(e,t){return n=>n>0?t:e}const ya=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},q0=[Qa,Jn,ks],Z0=e=>q0.find(t=>t.test(e));function sd(e){const t=Z0(e);if(!t)return!1;let n=t.parse(e);return t===ks&&(n=H0(n)),n}const rd=(e,t)=>{const n=sd(e),s=sd(t);if(!n||!s)return oo(e,t);const r={...n};return i=>(r.red=ya(n.red,s.red,i),r.green=ya(n.green,s.green,i),r.blue=ya(n.blue,s.blue,i),r.alpha=Pe(n.alpha,s.alpha,i),Jn.transform(r))},K0=(e,t)=>n=>t(e(n)),bi=(...e)=>e.reduce(K0),tc=new Set(["none","hidden"]);function G0(e,t){return tc.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Q0(e,t){return n=>Pe(e,t,n)}function jl(e){return typeof e=="number"?Q0:typeof e=="string"?fl(e)?oo:Ge.test(e)?rd:J0:Array.isArray(e)?um:typeof e=="object"?Ge.test(e)?rd:X0:oo}function um(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>jl(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function X0(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=jl(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function Y0(e,t){var n;const s=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],c=(n=e.values[a])!==null&&n!==void 0?n:0;s[i]=c,r[o]++}return s}const J0=(e,t)=>{const n=Fn.createTransformer(t),s=Hr(e),r=Hr(t);return s.indexes.var.length===r.indexes.var.length&&s.indexes.color.length===r.indexes.color.length&&s.indexes.number.length>=r.indexes.number.length?tc.has(e)&&!r.values.length||tc.has(t)&&!s.values.length?G0(e,t):bi(um(Y0(s,r),r.values),n):oo(e,t)};function dm(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Pe(e,t,n):jl(e)(e,t)}const eS=5;function fm(e,t,n){const s=Math.max(t-eS,0);return Mp(n-e(s),t-s)}const ke={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},id=.001;function tS({duration:e=ke.duration,bounce:t=ke.bounce,velocity:n=ke.velocity,mass:s=ke.mass}){let r,i,o=1-t;o=gn(ke.minDamping,ke.maxDamping,o),e=gn(ke.minDuration,ke.maxDuration,mn(e)),o<1?(r=l=>{const u=l*o,d=u*e,f=u-n,g=nc(l,o),m=Math.exp(-d);return id-f/g*m},i=l=>{const d=l*o*e,f=d*n+n,g=Math.pow(o,2)*Math.pow(l,2)*e,m=Math.exp(-d),p=nc(Math.pow(l,2),o);return(-r(l)+id>0?-1:1)*((f-g)*m)/p}):(r=l=>{const u=Math.exp(-l*e),d=(l-n)*e+1;return-.001+u*d},i=l=>{const u=Math.exp(-l*e),d=(n-l)*(e*e);return u*d});const a=5/e,c=sS(r,i,a);if(e=pn(e),isNaN(c))return{stiffness:ke.stiffness,damping:ke.damping,duration:e};{const l=Math.pow(c,2)*s;return{stiffness:l,damping:o*2*Math.sqrt(s*l),duration:e}}}const nS=12;function sS(e,t,n){let s=n;for(let r=1;r<nS;r++)s=s-e(s)/t(s);return s}function nc(e,t){return e*Math.sqrt(1-t*t)}const rS=["duration","bounce"],iS=["stiffness","damping","mass"];function od(e,t){return t.some(n=>e[n]!==void 0)}function oS(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!od(e,iS)&&od(e,rS))if(e.visualDuration){const n=e.visualDuration,s=2*Math.PI/(n*1.2),r=s*s,i=2*gn(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:ke.mass,stiffness:r,damping:i}}else{const n=tS(e);t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function hm(e=ke.visualDuration,t=ke.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:s,restDelta:r}=n;const i=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:g}=oS({...n,velocity:-mn(n.velocity||0)}),m=f||0,p=l/(2*Math.sqrt(c*u)),y=o-i,v=mn(Math.sqrt(c/u)),b=Math.abs(y)<5;s||(s=b?ke.restSpeed.granular:ke.restSpeed.default),r||(r=b?ke.restDelta.granular:ke.restDelta.default);let w;if(p<1){const S=nc(v,p);w=A=>{const P=Math.exp(-p*v*A);return o-P*((m+p*v*y)/S*Math.sin(S*A)+y*Math.cos(S*A))}}else if(p===1)w=S=>o-Math.exp(-v*S)*(y+(m+v*y)*S);else{const S=v*Math.sqrt(p*p-1);w=A=>{const P=Math.exp(-p*v*A),E=Math.min(S*A,300);return o-P*((m+p*v*y)*Math.sinh(E)+S*y*Math.cosh(E))/S}}const T={calculatedDuration:g&&d||null,next:S=>{const A=w(S);if(g)a.done=S>=d;else{let P=0;p<1&&(P=S===0?pn(m):fm(w,S,A));const E=Math.abs(P)<=s,j=Math.abs(o-A)<=r;a.done=E&&j}return a.value=a.done?o:A,a},toString:()=>{const S=Math.min(lm(T),ec),A=Lp(P=>T.next(S*P).value,S,30);return S+"ms "+A}};return T}function ad({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],f={done:!1,value:d},g=E=>a!==void 0&&E<a||c!==void 0&&E>c,m=E=>a===void 0?c:c===void 0||Math.abs(a-E)<Math.abs(c-E)?a:c;let p=n*t;const y=d+p,v=o===void 0?y:o(y);v!==y&&(p=v-d);const b=E=>-p*Math.exp(-E/s),w=E=>v+b(E),T=E=>{const j=b(E),D=w(E);f.done=Math.abs(j)<=l,f.value=f.done?v:D};let S,A;const P=E=>{g(f.value)&&(S=E,A=hm({keyframes:[f.value,m(f.value)],velocity:fm(w,E,f.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return P(0),{calculatedDuration:null,next:E=>{let j=!1;return!A&&S===void 0&&(j=!0,T(E),P(E)),S!==void 0&&E>=S?A.next(E-S):(!j&&T(E),f)}}}const aS=xi(.42,0,1,1),cS=xi(0,0,.58,1),pm=xi(.42,0,.58,1),lS=e=>Array.isArray(e)&&typeof e[0]!="number",cd={linear:gt,easeIn:aS,easeInOut:pm,easeOut:cS,circIn:Al,circInOut:Zp,circOut:qp,backIn:El,backInOut:Wp,backOut:zp,anticipate:Hp},ld=e=>{if(Cl(e)){qa(e.length===4);const[t,n,s,r]=e;return xi(t,n,s,r)}else if(typeof e=="string")return qa(cd[e]!==void 0),cd[e];return e};function uS(e,t,n){const s=[],r=n||dm,i=e.length-1;for(let o=0;o<i;o++){let a=r(e[o],e[o+1]);if(t){const c=Array.isArray(t)?t[o]||gt:t;a=bi(c,a)}s.push(a)}return s}function dS(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(qa(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=uS(t,s,r),c=a.length,l=u=>{if(o&&u<e[0])return t[0];let d=0;if(c>1)for(;d<e.length-2&&!(u<e[d+1]);d++);const f=tr(e[d],e[d+1],u);return a[d](f)};return n?u=>l(gn(e[0],e[i-1],u)):l}function fS(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=tr(0,t,s);e.push(Pe(n,1,r))}}function hS(e){const t=[0];return fS(t,e.length-1),t}function pS(e,t){return e.map(n=>n*t)}function mS(e,t){return e.map(()=>t||pm).splice(0,e.length-1)}function ao({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=lS(s)?s.map(ld):ld(s),i={done:!1,value:t[0]},o=pS(n&&n.length===t.length?n:hS(t),e),a=dS(o,t,{ease:Array.isArray(r)?r:mS(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const gS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Te.update(t,!0),stop:()=>Mn(t),now:()=>ze.isProcessing?ze.timestamp:en.now()}},yS={decay:ad,inertia:ad,tween:ao,keyframes:ao,spring:hm},vS=e=>e/100;class Ol extends cm{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:c}=this.options;c&&c()};const{name:n,motionValue:s,element:r,keyframes:i}=this.options,o=(r==null?void 0:r.KeyframeResolver)||kl,a=(c,l)=>this.onKeyframesResolved(c,l);this.resolver=new o(i,a,n,s,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:s=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,a=Tl(n)?n:yS[n]||ao;let c,l;a!==ao&&typeof t[0]!="number"&&(c=bi(vS,dm(t[0],t[1])),t=[0,100]);const u=a({...this.options,keyframes:t});i==="mirror"&&(l=a({...this.options,keyframes:[...t].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=lm(u));const{calculatedDuration:d}=u,f=d+r,g=f*(s+1)-r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:c,calculatedDuration:d,resolvedDuration:f,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:s}=this;if(!s){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:a,keyframes:c,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=s;if(this.startTime===null)return i.next(0);const{delay:f,repeat:g,repeatType:m,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const v=this.currentTime-f*(this.speed>=0?1:-1),b=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=u);let w=this.currentTime,T=i;if(g){const E=Math.min(this.currentTime,u)/d;let j=Math.floor(E),D=E%1;!D&&E>=1&&(D=1),D===1&&j--,j=Math.min(j,g+1),!!(j%2)&&(m==="reverse"?(D=1-D,p&&(D-=p/d)):m==="mirror"&&(T=o)),w=gn(0,1,D)*d}const S=b?{done:!1,value:c[0]}:T.next(w);a&&(S.value=a(S.value));let{done:A}=S;!b&&l!==null&&(A=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const P=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return P&&r!==void 0&&(S.value=$o(c,this.options,r)),y&&y(S.value),P&&this.finish(),S}get duration(){const{resolved:t}=this;return t?mn(t.calculatedDuration):0}get time(){return mn(this.currentTime)}set time(t){t=pn(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=mn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=gS,onPlay:n,startTime:s}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=s??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const xS=new Set(["opacity","clipPath","filter","transform"]);function bS(e,t,n,{delay:s=0,duration:r=300,repeat:i=0,repeatType:o="loop",ease:a="easeInOut",times:c}={}){const l={[t]:n};c&&(l.offset=c);const u=Vp(a,r);return Array.isArray(u)&&(l.easing=u),e.animate(l,{delay:s,duration:r,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const wS=_l(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),co=10,SS=2e4;function _S(e){return Tl(e.type)||e.type==="spring"||!Ip(e.ease)}function TS(e,t){const n=new Ol({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let s={done:!1,value:e[0]};const r=[];let i=0;for(;!s.done&&i<SS;)s=n.sample(i),r.push(s.value),i+=co;return{times:void 0,keyframes:r,duration:i-co,ease:"linear"}}const mm={anticipate:Hp,backInOut:Wp,circInOut:Zp};function CS(e){return e in mm}class ud extends cm{constructor(t){super(t);const{name:n,motionValue:s,element:r,keyframes:i}=this.options;this.resolver=new am(i,(o,a)=>this.onKeyframesResolved(o,a),n,s,r),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:s=300,times:r,ease:i,type:o,motionValue:a,name:c,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if(typeof i=="string"&&io()&&CS(i)&&(i=mm[i]),_S(this.options)){const{onComplete:d,onUpdate:f,motionValue:g,element:m,...p}=this.options,y=TS(t,p);t=y.keyframes,t.length===1&&(t[1]=t[0]),s=y.duration,r=y.times,i=y.ease,o="keyframes"}const u=bS(a.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Qu(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set($o(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:s,times:r,type:o,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return mn(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return mn(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.currentTime=pn(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:s}=n;s.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return gt;const{animation:s}=n;Qu(s,t)}return gt}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:s,duration:r,type:i,ease:o,times:a}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:l,onUpdate:u,onComplete:d,element:f,...g}=this.options,m=new Ol({...g,keyframes:s,duration:r,type:i,ease:o,times:a,isGenerator:!0}),p=pn(this.time);l.setWithVelocity(m.sample(p-co).value,m.sample(p).value,co)}const{onStop:c}=this.options;c&&c(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:s,repeatDelay:r,repeatType:i,damping:o,type:a}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:c,transformTemplate:l}=n.owner.getProps();return wS()&&s&&xS.has(s)&&!c&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const ES={type:"spring",stiffness:500,damping:25,restSpeed:10},AS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),PS={type:"keyframes",duration:.8},RS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},NS=(e,{keyframes:t})=>t.length>2?PS:Ts.has(e)?e.startsWith("scale")?AS(t[1]):ES:RS;function kS({when:e,delay:t,delayChildren:n,staggerChildren:s,staggerDirection:r,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}const Dl=(e,t,n,s={},r,i)=>o=>{const a=xl(s,e)||{},c=a.delay||s.delay||0;let{elapsed:l=0}=s;l=l-pn(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-l,onUpdate:f=>{t.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:i?void 0:r};kS(a)||(u={...u,...NS(e,u)}),u.duration&&(u.duration=pn(u.duration)),u.repeatDelay&&(u.repeatDelay=pn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const f=$o(u.keyframes,a);if(f!==void 0)return Te.update(()=>{u.onUpdate(f),u.onComplete()}),new u0([])}return!i&&ud.supports(u)?new ud(u):new Ol(u)};function jS({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function gm(e,t,{delay:n=0,transitionOverride:s,type:r}={}){var i;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...c}=t;s&&(o=s);const l=[],u=r&&e.animationState&&e.animationState.getState()[r];for(const d in c){const f=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),g=c[d];if(g===void 0||u&&jS(u,d))continue;const m={delay:n,...xl(o||{},d)};let p=!1;if(window.MotionHandoffAnimation){const v=Fp(e);if(v){const b=window.MotionHandoffAnimation(v,d,Te);b!==null&&(m.startTime=b,p=!0)}}Ka(e,d),f.start(Dl(d,f,g,e.shouldReduceMotion&&Dp.has(d)?{type:!1}:m,e,p));const y=f.animation;y&&l.push(y)}return a&&Promise.all(l).then(()=>{Te.update(()=>{a&&o0(e,a)})}),l}function sc(e,t,n={}){var s;const r=Uo(e,t,n.type==="exit"?(s=e.presenceContext)===null||s===void 0?void 0:s.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(gm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return OS(e,t,u+l,d,f,n)}:()=>Promise.resolve(),{when:c}=i;if(c){const[l,u]=c==="beforeChildren"?[o,a]:[a,o];return l().then(()=>u())}else return Promise.all([o(),a(n.delay)])}function OS(e,t,n=0,s=0,r=1,i){const o=[],a=(e.variantChildren.size-1)*s,c=r===1?(l=0)=>l*s:(l=0)=>a-l*s;return Array.from(e.variantChildren).sort(DS).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(sc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function DS(e,t){return e.sortNodePosition(t)}function MS(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>sc(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=sc(e,t,n);else{const r=typeof t=="function"?Uo(e,t,n.custom):t;s=Promise.all(gm(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const FS=ol.length;function ym(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?ym(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<FS;n++){const s=ol[n],r=e.props[s];(Ur(r)||r===!1)&&(t[s]=r)}return t}const LS=[...il].reverse(),IS=il.length;function VS(e){return t=>Promise.all(t.map(({animation:n,options:s})=>MS(e,n,s)))}function BS(e){let t=VS(e),n=dd(),s=!0;const r=c=>(l,u)=>{var d;const f=Uo(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:m,...p}=f;l={...l,...p,...m}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=ym(e.parent)||{},d=[],f=new Set;let g={},m=1/0;for(let y=0;y<IS;y++){const v=LS[y],b=n[v],w=l[v]!==void 0?l[v]:u[v],T=Ur(w),S=v===c?b.isActive:null;S===!1&&(m=y);let A=w===u[v]&&w!==l[v]&&T;if(A&&s&&e.manuallyAnimateOnMount&&(A=!1),b.protectedKeys={...g},!b.isActive&&S===null||!w&&!b.prevProp||Vo(w)||typeof w=="boolean")continue;const P=US(b.prevProp,w);let E=P||v===c&&b.isActive&&!A&&T||y>m&&T,j=!1;const D=Array.isArray(w)?w:[w];let L=D.reduce(r(v),{});S===!1&&(L={});const{prevResolvedValues:O={}}=b,$={...O,...L},I=q=>{E=!0,f.has(q)&&(j=!0,f.delete(q)),b.needsAnimating[q]=!0;const Z=e.getValue(q);Z&&(Z.liveStyle=!1)};for(const q in $){const Z=L[q],re=O[q];if(g.hasOwnProperty(q))continue;let de=!1;Za(Z)&&Za(re)?de=!Op(Z,re):de=Z!==re,de?Z!=null?I(q):f.add(q):Z!==void 0&&f.has(q)?I(q):b.protectedKeys[q]=!0}b.prevProp=w,b.prevResolvedValues=L,b.isActive&&(g={...g,...L}),s&&e.blockInitialAnimation&&(E=!1),E&&(!(A&&P)||j)&&d.push(...D.map(q=>({animation:q,options:{type:v}})))}if(f.size){const y={};f.forEach(v=>{const b=e.getBaseTarget(v),w=e.getValue(v);w&&(w.liveStyle=!0),y[v]=b??null}),d.push({animation:y})}let p=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(p=!1),s=!1,p?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var g;return(g=f.animationState)===null||g===void 0?void 0:g.setActive(c,l)}),n[c].isActive=l;const d=o(c);for(const f in n)n[f].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>n,reset:()=>{n=dd(),s=!0}}}function US(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Op(t,e):!1}function Qn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function dd(){return{animate:Qn(!0),whileInView:Qn(),whileHover:Qn(),whileTap:Qn(),whileDrag:Qn(),whileFocus:Qn(),exit:Qn()}}class Wn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class $S extends Wn{constructor(t){super(t),t.animationState||(t.animationState=BS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Vo(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let zS=0;class WS extends Wn{constructor(){super(...arguments),this.id=zS++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const HS={animation:{Feature:$S},exit:{Feature:WS}},Rt={x:!1,y:!1};function vm(){return Rt.x||Rt.y}function qS(e){return e==="x"||e==="y"?Rt[e]?null:(Rt[e]=!0,()=>{Rt[e]=!1}):Rt.x||Rt.y?null:(Rt.x=Rt.y=!0,()=>{Rt.x=Rt.y=!1})}const Ml=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function qr(e,t,n,s={passive:!0}){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n)}function wi(e){return{point:{x:e.pageX,y:e.pageY}}}const ZS=e=>t=>Ml(t)&&e(t,wi(t));function Dr(e,t,n,s){return qr(e,t,ZS(n),s)}const fd=(e,t)=>Math.abs(e-t);function KS(e,t){const n=fd(e.x,t.x),s=fd(e.y,t.y);return Math.sqrt(n**2+s**2)}class xm{constructor(t,n,{transformPagePoint:s,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=xa(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=KS(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:m}=d,{timestamp:p}=ze;this.history.push({...m,timestamp:p});const{onStart:y,onMove:v}=this.handlers;f||(y&&y(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,f)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=va(f,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=xa(d.type==="pointercancel"?this.lastMoveEventInfo:va(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,y),m&&m(d,y)},!Ml(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=wi(t),a=va(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=ze;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,xa(a,this.history)),this.removeListeners=bi(Dr(this.contextWindow,"pointermove",this.handlePointerMove),Dr(this.contextWindow,"pointerup",this.handlePointerUp),Dr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Mn(this.updatePoint)}}function va(e,t){return t?{point:t(e.point)}:e}function hd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xa({point:e},t){return{point:e,delta:hd(e,bm(t)),offset:hd(e,GS(t)),velocity:QS(t,.1)}}function GS(e){return e[0]}function bm(e){return e[e.length-1]}function QS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=bm(e);for(;n>=0&&(s=e[n],!(r.timestamp-s.timestamp>pn(t)));)n--;if(!s)return{x:0,y:0};const i=mn(r.timestamp-s.timestamp);if(i===0)return{x:0,y:0};const o={x:(r.x-s.x)/i,y:(r.y-s.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}const wm=1e-4,XS=1-wm,YS=1+wm,Sm=.01,JS=0-Sm,e_=0+Sm;function rt(e){return e.max-e.min}function t_(e,t,n){return Math.abs(e-t)<=n}function pd(e,t,n,s=.5){e.origin=s,e.originPoint=Pe(t.min,t.max,e.origin),e.scale=rt(n)/rt(t),e.translate=Pe(n.min,n.max,e.origin)-e.originPoint,(e.scale>=XS&&e.scale<=YS||isNaN(e.scale))&&(e.scale=1),(e.translate>=JS&&e.translate<=e_||isNaN(e.translate))&&(e.translate=0)}function Mr(e,t,n,s){pd(e.x,t.x,n.x,s?s.originX:void 0),pd(e.y,t.y,n.y,s?s.originY:void 0)}function md(e,t,n){e.min=n.min+t.min,e.max=e.min+rt(t)}function n_(e,t,n){md(e.x,t.x,n.x),md(e.y,t.y,n.y)}function gd(e,t,n){e.min=t.min-n.min,e.max=e.min+rt(t)}function Fr(e,t,n){gd(e.x,t.x,n.x),gd(e.y,t.y,n.y)}function s_(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?Pe(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?Pe(n,e,s.max):Math.min(e,n)),e}function yd(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function r_(e,{top:t,left:n,bottom:s,right:r}){return{x:yd(e.x,n,r),y:yd(e.y,t,s)}}function vd(e,t){let n=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,s]=[s,n]),{min:n,max:s}}function i_(e,t){return{x:vd(e.x,t.x),y:vd(e.y,t.y)}}function o_(e,t){let n=.5;const s=rt(e),r=rt(t);return r>s?n=tr(t.min,t.max-s,e.min):s>r&&(n=tr(e.min,e.max-r,t.min)),gn(0,1,n)}function a_(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const rc=.35;function c_(e=rc){return e===!1?e=0:e===!0&&(e=rc),{x:xd(e,"left","right"),y:xd(e,"top","bottom")}}function xd(e,t,n){return{min:bd(e,t),max:bd(e,n)}}function bd(e,t){return typeof e=="number"?e:e[t]||0}const wd=()=>({translate:0,scale:1,origin:0,originPoint:0}),js=()=>({x:wd(),y:wd()}),Sd=()=>({min:0,max:0}),De=()=>({x:Sd(),y:Sd()});function St(e){return[e("x"),e("y")]}function _m({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function l_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function u_(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function ba(e){return e===void 0||e===1}function ic({scale:e,scaleX:t,scaleY:n}){return!ba(e)||!ba(t)||!ba(n)}function Xn(e){return ic(e)||Tm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Tm(e){return _d(e.x)||_d(e.y)}function _d(e){return e&&e!=="0%"}function lo(e,t,n){const s=e-n,r=t*s;return n+r}function Td(e,t,n,s,r){return r!==void 0&&(e=lo(e,r,s)),lo(e,n,s)+t}function oc(e,t=0,n=1,s,r){e.min=Td(e.min,t,n,s,r),e.max=Td(e.max,t,n,s,r)}function Cm(e,{x:t,y:n}){oc(e.x,t.translate,t.scale,t.originPoint),oc(e.y,n.translate,n.scale,n.originPoint)}const Cd=.999999999999,Ed=1.0000000000001;function d_(e,t,n,s=!1){const r=n.length;if(!r)return;t.x=t.y=1;let i,o;for(let a=0;a<r;a++){i=n[a],o=i.projectionDelta;const{visualElement:c}=i.options;c&&c.props.style&&c.props.style.display==="contents"||(s&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Ds(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Cm(e,o)),s&&Xn(i.latestValues)&&Ds(e,i.latestValues))}t.x<Ed&&t.x>Cd&&(t.x=1),t.y<Ed&&t.y>Cd&&(t.y=1)}function Os(e,t){e.min=e.min+t,e.max=e.max+t}function Ad(e,t,n,s,r=.5){const i=Pe(e.min,e.max,r);oc(e,t,n,i,s)}function Ds(e,t){Ad(e.x,t.x,t.scaleX,t.scale,t.originX),Ad(e.y,t.y,t.scaleY,t.scale,t.originY)}function Em(e,t){return _m(u_(e.getBoundingClientRect(),t))}function f_(e,t,n){const s=Em(e,n),{scroll:r}=t;return r&&(Os(s.x,r.offset.x),Os(s.y,r.offset.y)),s}const Am=({current:e})=>e?e.ownerDocument.defaultView:null,h_=new WeakMap;class p_{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=De(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:s}=this.visualElement;if(s&&s.isPresent===!1)return;const r=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(wi(u).point)},i=(u,d)=>{const{drag:f,dragPropagation:g,onDragStart:m}=this.getProps();if(f&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=qS(f),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),St(y=>{let v=this.getAxisMotionValue(y).get()||0;if(Jt.test(v)){const{projection:b}=this.visualElement;if(b&&b.layout){const w=b.layout.layoutBox[y];w&&(v=rt(w)*(parseFloat(v)/100))}}this.originPoint[y]=v}),m&&Te.postRender(()=>m(u,d)),Ka(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:m,onDrag:p}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=d;if(g&&this.currentDirection===null){this.currentDirection=m_(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),p&&p(u,d)},a=(u,d)=>this.stop(u,d),c=()=>St(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new xm(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:Am(this.visualElement)})}stop(t,n){const s=this.isDragging;if(this.cancel(),!s)return;const{velocity:r}=n;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Te.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,s){const{drag:r}=this.getProps();if(!s||!Ui(t,r,this.currentDirection))return;const i=this.getAxisMotionValue(t);let o=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(o=s_(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:s}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Ns(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=r_(r.layoutBox,n):this.constraints=!1,this.elastic=c_(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&St(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=a_(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ns(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=f_(s,r.root,this.visualElement.getTransformPagePoint());let o=i_(r.layout.layoutBox,i);if(n){const a=n(l_(o));this.hasMutatedConstraints=!!a,a&&(o=_m(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=St(u=>{if(!Ui(u,n,this.currentDirection))return;let d=c[u]||{};o&&(d={min:0,max:0});const f=r?200:1e6,g=r?40:1e7,m={type:"inertia",velocity:s?t[u]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(u,m)});return Promise.all(l).then(a)}startAxisValueAnimation(t,n){const s=this.getAxisMotionValue(t);return Ka(this.visualElement,t),s.start(Dl(t,s,0,n,this.visualElement,!1))}stopAnimation(){St(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){St(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,s=this.visualElement.getProps(),r=s[n];return r||this.visualElement.getValue(t,(s.initial?s.initial[t]:void 0)||0)}snapToCursor(t){St(n=>{const{drag:s}=this.getProps();if(!Ui(n,s,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(n);if(r&&r.layout){const{min:o,max:a}=r.layout.layoutBox[n];i.set(t[n]-Pe(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Ns(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};St(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=o_({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),St(o=>{if(!Ui(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Pe(c,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;h_.set(this.visualElement,this);const t=this.visualElement.current,n=Dr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Ns(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",s);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Te.read(s);const o=qr(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(St(u=>{const d=this.getAxisMotionValue(u);d&&(this.originPoint[u]+=c[u].translate,d.set(d.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),n(),i(),a&&a()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=rc,dragMomentum:a=!0}=t;return{...t,drag:n,dragDirectionLock:s,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Ui(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function m_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class g_ extends Wn{constructor(t){super(t),this.removeGroupControls=gt,this.removeListeners=gt,this.controls=new p_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Pd=e=>(t,n)=>{e&&Te.postRender(()=>e(t,n))};class y_ extends Wn{constructor(){super(...arguments),this.removePointerDownListener=gt}onPointerDown(t){this.session=new xm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Am(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:Pd(t),onStart:Pd(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Te.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Dr(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Xi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rd(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Sr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=Rd(e,t.target.x),s=Rd(e,t.target.y);return`${n}% ${s}%`}},v_={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Fn.parse(e);if(r.length>5)return s;const i=Fn.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,c=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=c;const l=Pe(a,c,.5);return typeof r[2+o]=="number"&&(r[2+o]/=l),typeof r[3+o]=="number"&&(r[3+o]/=l),i(r)}};class x_ extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;qw(b_),i&&(n.group&&n.group.add(i),s&&s.register&&r&&s.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Xi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:s,drag:r,isPresent:i}=this.props,o=s.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||Te.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cl.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),s&&s.deregister&&s.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function Pm(e){const[t,n]=pp(),s=x.useContext(tl);return h.jsx(x_,{...e,layoutGroup:s,switchLayoutGroup:x.useContext(wp),isPresent:t,safeToRemove:n})}const b_={borderRadius:{...Sr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Sr,borderTopRightRadius:Sr,borderBottomLeftRadius:Sr,borderBottomRightRadius:Sr,boxShadow:v_};function w_(e,t,n){const s=Xe(e)?e:Wr(e);return s.start(Dl("",s,t,n)),s.animation}function S_(e){return e instanceof SVGElement&&e.tagName!=="svg"}const __=(e,t)=>e.depth-t.depth;class T_{constructor(){this.children=[],this.isDirty=!1}add(t){bl(this.children,t),this.isDirty=!0}remove(t){wl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(__),this.isDirty=!1,this.children.forEach(t)}}function C_(e,t){const n=en.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&(Mn(s),e(i-t))};return Te.read(s,!0),()=>Mn(s)}const Rm=["TopLeft","TopRight","BottomLeft","BottomRight"],E_=Rm.length,Nd=e=>typeof e=="string"?parseFloat(e):e,kd=e=>typeof e=="number"||ee.test(e);function A_(e,t,n,s,r,i){r?(e.opacity=Pe(0,n.opacity!==void 0?n.opacity:1,P_(s)),e.opacityExit=Pe(t.opacity!==void 0?t.opacity:1,0,R_(s))):i&&(e.opacity=Pe(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<E_;o++){const a=`border${Rm[o]}Radius`;let c=jd(t,a),l=jd(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||kd(c)===kd(l)?(e[a]=Math.max(Pe(Nd(c),Nd(l),s),0),(Jt.test(l)||Jt.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=Pe(t.rotate||0,n.rotate||0,s))}function jd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const P_=Nm(0,.5,qp),R_=Nm(.5,.95,gt);function Nm(e,t,n){return s=>s<e?0:s>t?1:n(tr(e,t,s))}function Od(e,t){e.min=t.min,e.max=t.max}function wt(e,t){Od(e.x,t.x),Od(e.y,t.y)}function Dd(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Md(e,t,n,s,r){return e-=t,e=lo(e,1/n,s),r!==void 0&&(e=lo(e,1/r,s)),e}function N_(e,t=0,n=1,s=.5,r,i=e,o=e){if(Jt.test(t)&&(t=parseFloat(t),t=Pe(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Pe(i.min,i.max,s);e===i&&(a-=t),e.min=Md(e.min,t,n,a,r),e.max=Md(e.max,t,n,a,r)}function Fd(e,t,[n,s,r],i,o){N_(e,t[n],t[s],t[r],t.scale,i,o)}const k_=["x","scaleX","originX"],j_=["y","scaleY","originY"];function Ld(e,t,n,s){Fd(e.x,t,k_,n?n.x:void 0,s?s.x:void 0),Fd(e.y,t,j_,n?n.y:void 0,s?s.y:void 0)}function Id(e){return e.translate===0&&e.scale===1}function km(e){return Id(e.x)&&Id(e.y)}function Vd(e,t){return e.min===t.min&&e.max===t.max}function O_(e,t){return Vd(e.x,t.x)&&Vd(e.y,t.y)}function Bd(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function jm(e,t){return Bd(e.x,t.x)&&Bd(e.y,t.y)}function Ud(e){return rt(e.x)/rt(e.y)}function $d(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class D_{constructor(){this.members=[]}add(t){bl(this.members,t),t.scheduleRender()}remove(t){if(wl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(r=>t===r);if(n===0)return!1;let s;for(let r=n;r>=0;r--){const i=this.members[r];if(i.isPresent!==!1){s=i;break}}return s?(this.promote(s),!0):!1}promote(t,n){const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.instance&&s.scheduleRender(),t.scheduleRender(),t.resumeFrom=s,n&&(t.resumeFrom.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;r===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:s}=t;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function M_(e,t,n){let s="";const r=e.x.translate/t.x,i=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||i||o)&&(s=`translate3d(${r}px, ${i}px, ${o}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:l,rotate:u,rotateX:d,rotateY:f,skewX:g,skewY:m}=n;l&&(s=`perspective(${l}px) ${s}`),u&&(s+=`rotate(${u}deg) `),d&&(s+=`rotateX(${d}deg) `),f&&(s+=`rotateY(${f}deg) `),g&&(s+=`skewX(${g}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=e.x.scale*t.x,c=e.y.scale*t.y;return(a!==1||c!==1)&&(s+=`scale(${a}, ${c})`),s||"none"}const Yn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ar=typeof window<"u"&&window.MotionDebug!==void 0,wa=["","X","Y","Z"],F_={visibility:"hidden"},zd=1e3;let L_=0;function Sa(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Om(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Fp(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Te,!(r||i))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&Om(s)}function Dm({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=L_++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ar&&(Yn.totalNodes=Yn.resolvedTargetDeltas=Yn.recalculatedProjection=0),this.nodes.forEach(B_),this.nodes.forEach(H_),this.nodes.forEach(q_),this.nodes.forEach(U_),Ar&&window.MotionDebug.record(Yn)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new T_)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Sl),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const c=this.eventHandlers.get(o);c&&c.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=S_(o),this.instance=o;const{layoutId:c,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(l||c)&&(this.isLayoutDirty=!0),e){let d;const f=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=C_(f,250),Xi.hasAnimatedSinceResize&&(Xi.hasAnimatedSinceResize=!1,this.nodes.forEach(Hd))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:g,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||X_,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!jm(this.targetLayout,m),w=!f&&g;if(this.options.layoutRoot||this.resumeFrom||w||f&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,w);const T={...xl(p,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||Hd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Mn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Z_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Om(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){const d=this.path[u];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:a,layout:c}=this.options;if(a===void 0&&!c)return;const l=this.getTransformTemplate();this.prevTransformTemplateValue=l?l(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Wd);return}this.isUpdating||this.nodes.forEach(z_),this.isUpdating=!1,this.nodes.forEach(W_),this.nodes.forEach(I_),this.nodes.forEach(V_),this.clearAllSnapshots();const a=en.now();ze.delta=gn(0,1e3/60,a-ze.timestamp),ze.timestamp=a,ze.isProcessing=!0,pa.update.process(ze),pa.preRender.process(ze),pa.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cl.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach($_),this.sharedNodes.forEach(K_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!rt(this.snapshot.measuredBox.x)&&!rt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=De(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a){const c=s(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!km(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&(a||Xn(this.latestValues)||u)&&(r(this.instance,l),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let c=this.removeElementScroll(a);return o&&(c=this.removeTransform(c)),Y_(c),{animationId:this.root.animationId,measuredBox:a,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:a}=this.options;if(!a)return De();const c=a.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(J_))){const{scroll:u}=this.root;u&&(Os(c.x,u.offset.x),Os(c.y,u.offset.y))}return c}removeElementScroll(o){var a;const c=De();if(wt(c,o),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return c;for(let l=0;l<this.path.length;l++){const u=this.path[l],{scroll:d,options:f}=u;u!==this.root&&d&&f.layoutScroll&&(d.wasRoot&&wt(c,o),Os(c.x,d.offset.x),Os(c.y,d.offset.y))}return c}applyTransform(o,a=!1){const c=De();wt(c,o);for(let l=0;l<this.path.length;l++){const u=this.path[l];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&Ds(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Xn(u.latestValues)&&Ds(c,u.latestValues)}return Xn(this.latestValues)&&Ds(c,this.latestValues),c}removeTransform(o){const a=De();wt(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Xn(l.latestValues))continue;ic(l.latestValues)&&l.updateSnapshot();const u=De(),d=l.measurePageBox();wt(u,d),Ld(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Xn(this.latestValues)&&Ld(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ze.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var a;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==c;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!(!this.layout||!(d||f))){if(this.resolvedRelativeTargetAt=ze.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),Fr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),wt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=De(),this.targetWithTransforms=De()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),n_(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):wt(this.target,this.layout.layoutBox),Cm(this.target,this.targetDelta)):wt(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=De(),this.relativeTargetOrigin=De(),Fr(this.relativeTargetOrigin,this.target,g.target),wt(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ar&&Yn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||ic(this.parent.latestValues)||Tm(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const a=this.getLead(),c=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(l=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===ze.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;wt(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,g=this.treeScale.y;d_(this.layoutCorrected,this.treeScale,this.path,c),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=De());const{target:m}=a;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Dd(this.prevProjectionDelta.x,this.projectionDelta.x),Dd(this.prevProjectionDelta.y,this.projectionDelta.y)),Mr(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!$d(this.projectionDelta.x,this.prevProjectionDelta.x)||!$d(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Ar&&Yn.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),o){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=js(),this.projectionDelta=js(),this.projectionDeltaWithTransform=js()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=js();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const f=De(),g=c?c.source:void 0,m=this.layout?this.layout.source:void 0,p=g!==m,y=this.getStack(),v=!y||y.members.length<=1,b=!!(p&&!v&&this.options.crossfade===!0&&!this.path.some(Q_));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const S=T/1e3;qd(d.x,o.x,S),qd(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Fr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),G_(this.relativeTarget,this.relativeTargetOrigin,f,S),w&&O_(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=De()),wt(w,this.relativeTarget)),p&&(this.animationValues=u,A_(u,l,this.latestValues,S,b,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Mn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{Xi.hasAnimatedSinceResize=!0,this.currentAnimation=w_(0,zd,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zd),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&Mm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||De();const d=rt(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=rt(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}wt(a,c),Ds(a,u),Mr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new D_),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(a=!0),!a)return;const l={};c.z&&Sa("z",o,l,this.animationValues);for(let u=0;u<wa.length;u++)Sa(`rotate${wa[u]}`,o,l,this.animationValues),Sa(`skew${wa[u]}`,o,l,this.animationValues);o.render();for(const u in l)o.setStaticValue(u,l[u]),this.animationValues&&(this.animationValues[u]=l[u]);o.scheduleRender()}getProjectionStyles(o){var a,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return F_;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Gi(o==null?void 0:o.pointerEvents)||"",l.transform=u?u(this.latestValues,""):"none",l;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const p={};return this.options.layoutId&&(p.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,p.pointerEvents=Gi(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Xn(this.latestValues)&&(p.transform=u?u({},""):"none",this.hasProjected=!1),p}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=M_(this.projectionDeltaWithTransform,this.treeScale,f),u&&(l.transform=u(f,l.transform));const{x:g,y:m}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${m.origin*100}% 0`,d.animationValues?l.opacity=d===this?(c=(a=f.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:f.opacityExit:l.opacity=d===this?f.opacity!==void 0?f.opacity:"":f.opacityExit!==void 0?f.opacityExit:0;for(const p in zr){if(f[p]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:b}=zr[p],w=l.transform==="none"?f[p]:y(f[p],d);if(v){const T=v.length;for(let S=0;S<T;S++)l[v[S]]=w}else b?this.options.visualElement.renderState.vars[p]=w:l[p]=w}return this.options.layoutId&&(l.pointerEvents=d===this?Gi(o==null?void 0:o.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Wd),this.root.sharedNodes.clear()}}}function I_(e){e.updateLayout()}function V_(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;i==="size"?St(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=rt(f);f.min=s[d].min,f.max=f.min+g}):Mm(i,n.layoutBox,s)&&St(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=rt(s[d]);f.max=f.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+g)});const a=js();Mr(a,s,n.layoutBox);const c=js();o?Mr(c,e.applyTransform(r,!0),n.measuredBox):Mr(c,s,n.layoutBox);const l=!km(a);let u=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:f,layout:g}=d;if(f&&g){const m=De();Fr(m,n.layoutBox,f.layoutBox);const p=De();Fr(p,s,g.layoutBox),jm(m,p)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=p,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:s,snapshot:n,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:s}=e.options;s&&s()}e.options.transition=void 0}function B_(e){Ar&&Yn.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function U_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function $_(e){e.clearSnapshot()}function Wd(e){e.clearMeasurements()}function z_(e){e.isLayoutDirty=!1}function W_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Hd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function H_(e){e.resolveTargetDelta()}function q_(e){e.calcProjection()}function Z_(e){e.resetSkewAndRotation()}function K_(e){e.removeLeadSnapshot()}function qd(e,t,n){e.translate=Pe(t.translate,0,n),e.scale=Pe(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Zd(e,t,n,s){e.min=Pe(t.min,n.min,s),e.max=Pe(t.max,n.max,s)}function G_(e,t,n,s){Zd(e.x,t.x,n.x,s),Zd(e.y,t.y,n.y,s)}function Q_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const X_={duration:.45,ease:[.4,0,.1,1]},Kd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Gd=Kd("applewebkit/")&&!Kd("chrome/")?Math.round:gt;function Qd(e){e.min=Gd(e.min),e.max=Gd(e.max)}function Y_(e){Qd(e.x),Qd(e.y)}function Mm(e,t,n){return e==="position"||e==="preserve-aspect"&&!t_(Ud(t),Ud(n),.2)}function J_(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const eT=Dm({attachResizeListener:(e,t)=>qr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_a={current:void 0},Fm=Dm({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_a.current){const e=new eT({});e.mount(window),e.setOptions({layoutScroll:!0}),_a.current=e}return _a.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),tT={pan:{Feature:y_},drag:{Feature:g_,ProjectionNode:Fm,MeasureLayout:Pm}};function nT(e,t,n){var s;if(e instanceof Element)return[e];if(typeof e=="string"){let r=document;const i=(s=void 0)!==null&&s!==void 0?s:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function Lm(e,t){const n=nT(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Xd(e){return!(e.pointerType==="touch"||vm())}function sT(e,t,n={}){const[s,r,i]=Lm(e,n),o=a=>{if(!Xd(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Xd(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function Yd(e,t,n){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",n==="Start");const r="onHover"+n,i=s[r];i&&Te.postRender(()=>i(t,wi(t)))}class rT extends Wn{mount(){const{current:t}=this.node;t&&(this.unmount=sT(t,(n,s)=>(Yd(this.node,s,"Start"),r=>Yd(this.node,r,"End"))))}unmount(){}}class iT extends Wn{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=bi(qr(this.node.current,"focus",()=>this.onFocus()),qr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Im=(e,t)=>t?e===t?!0:Im(e,t.parentElement):!1,oT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function aT(e){return oT.has(e.tagName)||e.tabIndex!==-1}const Pr=new WeakSet;function Jd(e){return t=>{t.key==="Enter"&&e(t)}}function Ta(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const cT=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Jd(()=>{if(Pr.has(n))return;Ta(n,"down");const r=Jd(()=>{Ta(n,"up")}),i=()=>Ta(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",s,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),t)};function ef(e){return Ml(e)&&!vm()}function lT(e,t,n={}){const[s,r,i]=Lm(e,n),o=a=>{const c=a.currentTarget;if(!ef(a)||Pr.has(c))return;Pr.add(c);const l=t(c,a),u=(g,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!ef(g)||!Pr.has(c))&&(Pr.delete(c),typeof l=="function"&&l(g,{success:m}))},d=g=>{u(g,n.useGlobalTarget||Im(c,g.target))},f=g=>{u(g,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return s.forEach(a=>{!aT(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",l=>cT(l,r),r)}),i}function tf(e,t,n){const{props:s}=e;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",n==="Start");const r="onTap"+(n==="End"?"":n),i=s[r];i&&Te.postRender(()=>i(t,wi(t)))}class uT extends Wn{mount(){const{current:t}=this.node;t&&(this.unmount=lT(t,(n,s)=>(tf(this.node,s,"Start"),(r,{success:i})=>tf(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ac=new WeakMap,Ca=new WeakMap,dT=e=>{const t=ac.get(e.target);t&&t(e)},fT=e=>{e.forEach(dT)};function hT({root:e,...t}){const n=e||document;Ca.has(n)||Ca.set(n,{});const s=Ca.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(fT,{root:e,...t})),s[r]}function pT(e,t,n){const s=hT(t);return ac.set(e,n),s.observe(e),()=>{ac.delete(e),s.unobserve(e)}}const mT={some:0,all:1};class gT extends Wn{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:s,amount:r="some",once:i}=t,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof r=="number"?r:mT[r]},a=c=>{const{isIntersecting:l}=c;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);const{onViewportEnter:u,onViewportLeave:d}=this.node.getProps(),f=l?u:d;f&&f(c)};return pT(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(yT(t,n))&&this.startObserver()}unmount(){}}function yT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const vT={inView:{Feature:gT},tap:{Feature:uT},focus:{Feature:iT},hover:{Feature:rT}},xT={layout:{ProjectionNode:Fm,MeasureLayout:Pm}},cc={current:null},Vm={current:!1};function bT(){if(Vm.current=!0,!!rl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>cc.current=e.matches;e.addListener(t),t()}else cc.current=!1}const wT=[...om,Ge,Fn],ST=e=>wT.find(im(e)),nf=new WeakMap;function _T(e,t,n){for(const s in t){const r=t[s],i=n[s];if(Xe(r))e.addValue(s,r);else if(Xe(i))e.addValue(s,Wr(r,{owner:e}));else if(i!==r)if(e.hasValue(s)){const o=e.getValue(s);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(s);e.addValue(s,Wr(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const sf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class TT{scrapeMotionValuesFromProps(t,n,s){return{}}constructor({parent:t,props:n,presenceContext:s,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kl,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=en.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Te.render(this.render,!1,!0))};const{latestValues:c,renderState:l,onUpdate:u}=o;this.onUpdate=u,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=l,this.parent=t,this.props=n,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=Bo(n),this.isVariantNode=xp(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in f){const m=f[g];c[g]!==void 0&&Xe(m)&&m.set(c[g],!1)}}mount(t){this.current=t,nf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,s)=>this.bindToMotionValue(s,n)),Vm.current||bT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:cc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){nf.delete(this.current),this.projection&&this.projection.unmount(),Mn(this.notifyUpdate),Mn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const s=Ts.has(t),r=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&Te.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),i(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in er){const n=er[t];if(!n)continue;const{isEnabled:s,Feature:r}=n;if(!this.features[t]&&r&&s(this.props)&&(this.features[t]=new r(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):De()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<sf.length;s++){const r=sf[s];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const i="on"+r,o=t[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=_T(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const s=this.values.get(t);n!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&n!==void 0&&(s=Wr(n===null?void 0:n,{owner:this}),this.addValue(t,s)),s}readValue(t,n){var s;let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(s=this.getBaseTargetFromProps(this.props,t))!==null&&s!==void 0?s:this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(sm(r)||Kp(r))?r=parseFloat(r):!ST(r)&&Fn.test(n)&&(r=em(t,n)),this.setBaseTarget(t,Xe(r)?r.get():r)),Xe(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:s}=this.props;let r;if(typeof s=="string"||typeof s=="object"){const o=ul(this.props,s,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(r=o[t])}if(s&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Xe(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Sl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Bm extends TT{constructor(){super(...arguments),this.KeyframeResolver=am}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:s}){delete n[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Xe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function CT(e){return window.getComputedStyle(e)}class ET extends Bm{constructor(){super(...arguments),this.type="html",this.renderInstance=Ap}readValueFromInstance(t,n){if(Ts.has(n)){const s=Nl(n);return s&&s.default||0}else{const s=CT(t),r=(dl(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Em(t,n)}build(t,n,s){pl(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return vl(t,n,s)}}class AT extends Bm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ts.has(n)){const s=Nl(n);return s&&s.default||0}return n=Pp.has(n)?n:al(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return kp(t,n,s)}build(t,n,s){ml(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){Rp(t,n,s,r)}mount(t){this.isSVGTag=yl(t.tagName),super.mount(t)}}const PT=(e,t)=>ll(e)?new AT(t):new ET(t,{allowProjection:e!==x.Fragment}),RT=t0({...HS,...vT,...tT,...xT},PT),Lr=gw(RT);var Ea,rf;function NT(){if(rf)return Ea;rf=1;var e="Expected a function",t=NaN,n="[object Symbol]",s=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,a=parseInt,c=typeof ji=="object"&&ji&&ji.Object===Object&&ji,l=typeof self=="object"&&self&&self.Object===Object&&self,u=c||l||Function("return this")(),d=Object.prototype,f=d.toString,g=Math.max,m=Math.min,p=function(){return u.Date.now()};function y(S,A,P){var E,j,D,L,O,$,I=0,J=!1,X=!1,q=!0;if(typeof S!="function")throw new TypeError(e);A=T(A)||0,v(P)&&(J=!!P.leading,X="maxWait"in P,D=X?g(T(P.maxWait)||0,A):D,q="trailing"in P?!!P.trailing:q);function Z(ue){var ye=E,je=j;return E=j=void 0,I=ue,L=S.apply(je,ye),L}function re(ue){return I=ue,O=setTimeout(Be,A),J?Z(ue):L}function de(ue){var ye=ue-$,je=ue-I,Le=A-ye;return X?m(Le,D-je):Le}function ge(ue){var ye=ue-$,je=ue-I;return $===void 0||ye>=A||ye<0||X&&je>=D}function Be(){var ue=p();if(ge(ue))return qe(ue);O=setTimeout(Be,de(ue))}function qe(ue){return O=void 0,q&&E?Z(ue):(E=j=void 0,L)}function Ze(){O!==void 0&&clearTimeout(O),I=0,E=$=j=O=void 0}function Pt(){return O===void 0?L:qe(p())}function et(){var ue=p(),ye=ge(ue);if(E=arguments,j=this,$=ue,ye){if(O===void 0)return re($);if(X)return O=setTimeout(Be,A),Z($)}return O===void 0&&(O=setTimeout(Be,A)),L}return et.cancel=Ze,et.flush=Pt,et}function v(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function b(S){return!!S&&typeof S=="object"}function w(S){return typeof S=="symbol"||b(S)&&f.call(S)==n}function T(S){if(typeof S=="number")return S;if(w(S))return t;if(v(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=v(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(s,"");var P=i.test(S);return P||o.test(S)?a(S.slice(2),P?2:8):r.test(S)?t:+S}return Ea=y,Ea}NT();var Um=typeof window<"u"?x.useLayoutEffect:x.useEffect,kT=typeof window>"u";function uo(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>kT?t:window.matchMedia(a).matches,[r,i]=x.useState(()=>n?s(e):t);function o(){i(s(e))}return Um(()=>{const a=window.matchMedia(e);return o(),a.addListener?a.addListener(o):a.addEventListener("change",o),()=>{a.removeListener?a.removeListener(o):a.removeEventListener("change",o)}},[e]),r}var jT=typeof window>"u";function OT(e={}){const{autoLock:t=!0,lockTarget:n,widthReflow:s=!0}=e,[r,i]=x.useState(!1),o=x.useRef(null),a=x.useRef(null),c=()=>{if(o.current){const{overflow:u,paddingRight:d}=o.current.style;if(a.current={overflow:u,paddingRight:d},s){const f=o.current===document.body?window.innerWidth:o.current.offsetWidth,g=parseInt(window.getComputedStyle(o.current).paddingRight,10)||0,m=f-o.current.scrollWidth;o.current.style.paddingRight=`${m+g}px`}o.current.style.overflow="hidden",i(!0)}},l=()=>{o.current&&a.current&&(o.current.style.overflow=a.current.overflow,s&&(o.current.style.paddingRight=a.current.paddingRight)),i(!1)};return Um(()=>{if(!jT)return n&&(o.current=typeof n=="string"?document.querySelector(n):n),o.current||(o.current=document.body),t&&c(),()=>{l()}},[t,n,s]),{isLocked:r,lock:c,unlock:l}}const yN=({className:e,stage:t})=>{const n=uo("(min-width: 768px");return h.jsx("div",{className:e,children:h.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:h.jsxs("div",{className:"relative h-14 w-full",children:[h.jsx("div",{className:W("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),h.jsx(Lr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:W("h-2 absolute bg-primary rounded-[2px] top-0 left-0 z-[5]",{"w-0 bg-opacity-0":t===1,"w-[20%]":t===2,"w-[75%]":t===3})}),h.jsx(Lr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:W("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),h.jsx(Lr.div,{className:W("progress-circle absolute transition-all duration-500 -top-6 flex items-center justify-center",{"bg-reverse_primary md:left-1/2 left-1/3":t===1,"bg-primary left-[20%] !text-on_primary":t===2||t===3}),children:"1"}),h.jsx("div",{className:W("progress-circle absolute -top-6 right-[17%] transition-all -translate-x-1/2 flex items-center justify-center",{"bg-[#D0D3D8]":t===1,"bg-reverse_primary":t===2,"bg-primary !text-on_primary":t===3}),children:"2"}),h.jsx("div",{className:W("progress-circle absolute -top-6 right-0 transition-all duration-500 flex items-center justify-center",{"bg-[#D0D3D8]":t===1||t===2,"bg-reverse_primary":t===3}),children:"3"})]})})})};var Si=e=>e.type==="checkbox",es=e=>e instanceof Date,st=e=>e==null;const $m=e=>typeof e=="object";var Fe=e=>!st(e)&&!Array.isArray(e)&&$m(e)&&!es(e),zm=e=>Fe(e)&&e.target?Si(e.target)?e.target.checked:e.target.value:e,DT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Wm=(e,t)=>e.has(DT(t)),MT=e=>{const t=e.constructor&&e.constructor.prototype;return Fe(t)&&t.hasOwnProperty("isPrototypeOf")},Fl=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function ct(e){let t;const n=Array.isArray(e),s=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Fl&&(e instanceof Blob||s))&&(n||Fe(e)))if(t=n?[]:{},!n&&!MT(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=ct(e[r]));else return e;return t}var zo=e=>Array.isArray(e)?e.filter(Boolean):[],Me=e=>e===void 0,B=(e,t,n)=>{if(!t||!Fe(e))return n;const s=zo(t.split(/[,[\].]+?/)).reduce((r,i)=>st(r)?r:r[i],e);return Me(s)||s===e?Me(e[t])?n:e[t]:s},Ct=e=>typeof e=="boolean",Ll=e=>/^\w*$/.test(e),Hm=e=>zo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let s=-1;const r=Ll(t)?[t]:Hm(t),i=r.length,o=i-1;for(;++s<i;){const a=r[s];let c=n;if(s!==o){const l=e[a];c=Fe(l)||Array.isArray(l)?l:isNaN(+r[s+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;e[a]=c,e=e[a]}return e};const fo={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ot={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ln={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},qm=ve.createContext(null),Wo=()=>ve.useContext(qm),FT=e=>{const{children:t,...n}=e;return ve.createElement(qm.Provider,{value:n},t)};var Zm=(e,t,n,s=!0)=>{const r={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(r,i,{get:()=>{const o=i;return t._proxyFormState[o]!==Ot.all&&(t._proxyFormState[o]=!s||Ot.all),n&&(n[o]=!0),e[o]}});return r},ut=e=>Fe(e)&&!Object.keys(e).length,Km=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return ut(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||Ot.all))},Ir=e=>Array.isArray(e)?e:[e],Gm=(e,t,n)=>!e||!t||e===t||Ir(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function Il(e){const t=ve.useRef(e);t.current=e,ve.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function LT(e){const t=Wo(),{control:n=t.control,disabled:s,name:r,exact:i}=e,[o,a]=ve.useState(n._formState),c=ve.useRef(!0),l=ve.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=ve.useRef(r);return u.current=r,Il({disabled:s,next:d=>c.current&&Gm(u.current,d.name,i)&&Km(d,l.current,n._updateFormState)&&a({...n._formState,...d}),subject:n._subjects.state}),ve.useEffect(()=>(c.current=!0,l.current.isValid&&n._updateValid(!0),()=>{c.current=!1}),[n]),ve.useMemo(()=>Zm(o,n,l.current,!1),[o,n])}var Yt=e=>typeof e=="string",Qm=(e,t,n,s,r)=>Yt(e)?(s&&t.watch.add(e),B(n,e,r)):Array.isArray(e)?e.map(i=>(s&&t.watch.add(i),B(n,i))):(s&&(t.watchAll=!0),n);function IT(e){const t=Wo(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e,a=ve.useRef(s);a.current=s,Il({disabled:i,subject:n._subjects.values,next:u=>{Gm(a.current,u.name,o)&&l(ct(Qm(a.current,n._names,u.values||n._formValues,!1,r)))}});const[c,l]=ve.useState(n._getWatch(s,r));return ve.useEffect(()=>n._removeUnmounted()),c}function VT(e){const t=Wo(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Wm(r._names.array,n),a=IT({control:r,name:n,defaultValue:B(r._formValues,n,B(r._defaultValues,n,e.defaultValue)),exact:!0}),c=LT({control:r,name:n,exact:!0}),l=ve.useRef(r.register(n,{...e.rules,value:a,...Ct(e.disabled)?{disabled:e.disabled}:{}})),u=ve.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!B(c.errors,n)},isDirty:{enumerable:!0,get:()=>!!B(c.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!B(c.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!B(c.validatingFields,n)},error:{enumerable:!0,get:()=>B(c.errors,n)}}),[c,n]),d=ve.useMemo(()=>({name:n,value:a,...Ct(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:f=>l.current.onChange({target:{value:zm(f),name:n},type:fo.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:B(r._formValues,n),name:n},type:fo.BLUR}),ref:f=>{const g=B(r._fields,n);g&&f&&(g._f.ref={focus:()=>f.focus(),select:()=>f.select(),setCustomValidity:m=>f.setCustomValidity(m),reportValidity:()=>f.reportValidity()})}}),[n,r._formValues,s,c.disabled,a,r._fields]);return ve.useEffect(()=>{const f=r._options.shouldUnregister||i,g=(m,p)=>{const y=B(r._fields,m);y&&y._f&&(y._f.mount=p)};if(g(n,!0),f){const m=ct(B(r._options.defaultValues,n));xe(r._defaultValues,n,m),Me(B(r._formValues,n))&&xe(r._formValues,n,m)}return!o&&r.register(n),()=>{(o?f&&!r._state.action:f)?r.unregister(n):g(n,!1)}},[n,r,o,i]),ve.useEffect(()=>{r._updateDisabledField({disabled:s,fields:r._fields,name:n})},[s,n,r]),ve.useMemo(()=>({field:d,formState:c,fieldState:u}),[d,c,u])}const BT=e=>e.render(VT(e));var Xm=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},of=e=>({isOnSubmit:!e||e===Ot.onSubmit,isOnBlur:e===Ot.onBlur,isOnChange:e===Ot.onChange,isOnAll:e===Ot.all,isOnTouch:e===Ot.onTouched}),af=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Vr=(e,t,n,s)=>{for(const r of n||Object.keys(e)){const i=B(e,r);if(i){const{_f:o,...a}=i;if(o){if(o.refs&&o.refs[0]&&t(o.refs[0],r)&&!s)return!0;if(o.ref&&t(o.ref,o.name)&&!s)return!0;if(Vr(a,t))break}else if(Fe(a)&&Vr(a,t))break}}};var UT=(e,t,n)=>{const s=Ir(B(e,n));return xe(s,"root",t[n]),xe(e,n,s),e},Vl=e=>e.type==="file",Xt=e=>typeof e=="function",ho=e=>{if(!Fl)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Yi=e=>Yt(e),Bl=e=>e.type==="radio",po=e=>e instanceof RegExp;const cf={value:!1,isValid:!1},lf={value:!0,isValid:!0};var Ym=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Me(e[0].attributes.value)?Me(e[0].value)||e[0].value===""?lf:{value:e[0].value,isValid:!0}:lf:cf}return cf};const uf={isValid:!1,value:null};var Jm=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,uf):uf;function df(e,t,n="validate"){if(Yi(e)||Array.isArray(e)&&e.every(Yi)||Ct(e)&&!e)return{type:n,message:Yi(e)?e:"",ref:t}}var Ps=e=>Fe(e)&&!po(e)?e:{value:e,message:""},ff=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:g,validate:m,name:p,valueAsNumber:y,mount:v}=e._f,b=B(n,p);if(!v||t.has(p))return{};const w=a?a[0]:o,T=O=>{r&&w.reportValidity&&(w.setCustomValidity(Ct(O)?"":O||""),w.reportValidity())},S={},A=Bl(o),P=Si(o),E=A||P,j=(y||Vl(o))&&Me(o.value)&&Me(b)||ho(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,D=Xm.bind(null,p,s,S),L=(O,$,I,J=ln.maxLength,X=ln.minLength)=>{const q=O?$:I;S[p]={type:O?J:X,message:q,ref:o,...D(O?J:X,q)}};if(i?!Array.isArray(b)||!b.length:c&&(!E&&(j||st(b))||Ct(b)&&!b||P&&!Ym(a).isValid||A&&!Jm(a).isValid)){const{value:O,message:$}=Yi(c)?{value:!!c,message:c}:Ps(c);if(O&&(S[p]={type:ln.required,message:$,ref:w,...D(ln.required,$)},!s))return T($),S}if(!j&&(!st(d)||!st(f))){let O,$;const I=Ps(f),J=Ps(d);if(!st(b)&&!isNaN(b)){const X=o.valueAsNumber||b&&+b;st(I.value)||(O=X>I.value),st(J.value)||($=X<J.value)}else{const X=o.valueAsDate||new Date(b),q=de=>new Date(new Date().toDateString()+" "+de),Z=o.type=="time",re=o.type=="week";Yt(I.value)&&b&&(O=Z?q(b)>q(I.value):re?b>I.value:X>new Date(I.value)),Yt(J.value)&&b&&($=Z?q(b)<q(J.value):re?b<J.value:X<new Date(J.value))}if((O||$)&&(L(!!O,I.message,J.message,ln.max,ln.min),!s))return T(S[p].message),S}if((l||u)&&!j&&(Yt(b)||i&&Array.isArray(b))){const O=Ps(l),$=Ps(u),I=!st(O.value)&&b.length>+O.value,J=!st($.value)&&b.length<+$.value;if((I||J)&&(L(I,O.message,$.message),!s))return T(S[p].message),S}if(g&&!j&&Yt(b)){const{value:O,message:$}=Ps(g);if(po(O)&&!b.match(O)&&(S[p]={type:ln.pattern,message:$,ref:o,...D(ln.pattern,$)},!s))return T($),S}if(m){if(Xt(m)){const O=await m(b,n),$=df(O,w);if($&&(S[p]={...$,...D(ln.validate,$.message)},!s))return T($.message),S}else if(Fe(m)){let O={};for(const $ in m){if(!ut(O)&&!s)break;const I=df(await m[$](b,n),w,$);I&&(O={...I,...D($,I.message)},T(I.message),s&&(S[p]=O))}if(!ut(O)&&(S[p]={ref:w,...O},!s))return S}}return T(!0),S};function $T(e,t){const n=t.slice(0,-1).length;let s=0;for(;s<n;)e=Me(e)?s++:e[t[s++]];return e}function zT(e){for(const t in e)if(e.hasOwnProperty(t)&&!Me(e[t]))return!1;return!0}function Ue(e,t){const n=Array.isArray(t)?t:Ll(t)?[t]:Hm(t),s=n.length===1?e:$T(e,n),r=n.length-1,i=n[r];return s&&delete s[i],r!==0&&(Fe(s)&&ut(s)||Array.isArray(s)&&zT(s))&&Ue(e,n.slice(0,-1)),e}var Aa=()=>{let e=[];return{get observers(){return e},next:r=>{for(const i of e)i.next&&i.next(r)},subscribe:r=>(e.push(r),{unsubscribe:()=>{e=e.filter(i=>i!==r)}}),unsubscribe:()=>{e=[]}}},lc=e=>st(e)||!$m(e);function En(e,t){if(lc(e)||lc(t))return e===t;if(es(e)&&es(t))return e.getTime()===t.getTime();const n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(const r of n){const i=e[r];if(!s.includes(r))return!1;if(r!=="ref"){const o=t[r];if(es(i)&&es(o)||Fe(i)&&Fe(o)||Array.isArray(i)&&Array.isArray(o)?!En(i,o):i!==o)return!1}}return!0}var eg=e=>e.type==="select-multiple",WT=e=>Bl(e)||Si(e),Pa=e=>ho(e)&&e.isConnected,tg=e=>{for(const t in e)if(Xt(e[t]))return!0;return!1};function mo(e,t={}){const n=Array.isArray(e);if(Fe(e)||n)for(const s in e)Array.isArray(e[s])||Fe(e[s])&&!tg(e[s])?(t[s]=Array.isArray(e[s])?[]:{},mo(e[s],t[s])):st(e[s])||(t[s]=!0);return t}function ng(e,t,n){const s=Array.isArray(e);if(Fe(e)||s)for(const r in e)Array.isArray(e[r])||Fe(e[r])&&!tg(e[r])?Me(t)||lc(n[r])?n[r]=Array.isArray(e[r])?mo(e[r],[]):{...mo(e[r])}:ng(e[r],st(t)?{}:t[r],n[r]):n[r]=!En(e[r],t[r]);return n}var _r=(e,t)=>ng(e,t,mo(t)),sg=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:s})=>Me(e)?e:t?e===""?NaN:e&&+e:n&&Yt(e)?new Date(e):s?s(e):e;function Ra(e){const t=e.ref;return Vl(t)?t.files:Bl(t)?Jm(e.refs).value:eg(t)?[...t.selectedOptions].map(({value:n})=>n):Si(t)?Ym(e.refs).value:sg(Me(t.value)?e.ref.value:t.value,e)}var HT=(e,t,n,s)=>{const r={};for(const i of e){const o=B(t,i);o&&xe(r,i,o._f)}return{criteriaMode:n,names:[...e],fields:r,shouldUseNativeValidation:s}},Tr=e=>Me(e)?e:po(e)?e.source:Fe(e)?po(e.value)?e.value.source:e.value:e;const hf="AsyncFunction";var qT=e=>!!e&&!!e.validate&&!!(Xt(e.validate)&&e.validate.constructor.name===hf||Fe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===hf)),ZT=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function pf(e,t,n){const s=B(e,n);if(s||Ll(n))return{error:s,name:n};const r=n.split(".");for(;r.length;){const i=r.join("."),o=B(t,i),a=B(e,i);if(o&&!Array.isArray(o)&&n!==i)return{name:n};if(a&&a.type)return{name:i,error:a};r.pop()}return{name:n}}var KT=(e,t,n,s,r)=>r.isOnAll?!1:!n&&r.isOnTouch?!(t||e):(n?s.isOnBlur:r.isOnBlur)?!e:(n?s.isOnChange:r.isOnChange)?e:!0,GT=(e,t)=>!zo(B(e,t)).length&&Ue(e,t);const QT={mode:Ot.onSubmit,reValidateMode:Ot.onChange,shouldFocusError:!0};function XT(e={}){let t={...QT,...e},n={submitCount:0,isDirty:!1,isLoading:Xt(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},s={},r=Fe(t.defaultValues)||Fe(t.values)?ct(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:ct(r),o={action:!1,mount:!1,watch:!1},a={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},c,l=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Aa(),array:Aa(),state:Aa()},f=of(t.mode),g=of(t.reValidateMode),m=t.criteriaMode===Ot.all,p=_=>R=>{clearTimeout(l),l=setTimeout(_,R)},y=async _=>{if(!t.disabled&&(u.isValid||_)){const R=t.resolver?ut((await E()).errors):await D(s,!0);R!==n.isValid&&d.state.next({isValid:R})}},v=(_,R)=>{!t.disabled&&(u.isValidating||u.validatingFields)&&((_||Array.from(a.mount)).forEach(k=>{k&&(R?xe(n.validatingFields,k,R):Ue(n.validatingFields,k))}),d.state.next({validatingFields:n.validatingFields,isValidating:!ut(n.validatingFields)}))},b=(_,R=[],k,U,V=!0,F=!0)=>{if(U&&k&&!t.disabled){if(o.action=!0,F&&Array.isArray(B(s,_))){const Y=k(B(s,_),U.argA,U.argB);V&&xe(s,_,Y)}if(F&&Array.isArray(B(n.errors,_))){const Y=k(B(n.errors,_),U.argA,U.argB);V&&xe(n.errors,_,Y),GT(n.errors,_)}if(u.touchedFields&&F&&Array.isArray(B(n.touchedFields,_))){const Y=k(B(n.touchedFields,_),U.argA,U.argB);V&&xe(n.touchedFields,_,Y)}u.dirtyFields&&(n.dirtyFields=_r(r,i)),d.state.next({name:_,isDirty:O(_,R),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else xe(i,_,R)},w=(_,R)=>{xe(n.errors,_,R),d.state.next({errors:n.errors})},T=_=>{n.errors=_,d.state.next({errors:n.errors,isValid:!1})},S=(_,R,k,U)=>{const V=B(s,_);if(V){const F=B(i,_,Me(k)?B(r,_):k);Me(F)||U&&U.defaultChecked||R?xe(i,_,R?F:Ra(V._f)):J(_,F),o.mount&&y()}},A=(_,R,k,U,V)=>{let F=!1,Y=!1;const ae={name:_};if(!t.disabled){const Ie=!!(B(s,_)&&B(s,_)._f&&B(s,_)._f.disabled);if(!k||U){u.isDirty&&(Y=n.isDirty,n.isDirty=ae.isDirty=O(),F=Y!==ae.isDirty);const Oe=Ie||En(B(r,_),R);Y=!!(!Ie&&B(n.dirtyFields,_)),Oe||Ie?Ue(n.dirtyFields,_):xe(n.dirtyFields,_,!0),ae.dirtyFields=n.dirtyFields,F=F||u.dirtyFields&&Y!==!Oe}if(k){const Oe=B(n.touchedFields,_);Oe||(xe(n.touchedFields,_,k),ae.touchedFields=n.touchedFields,F=F||u.touchedFields&&Oe!==k)}F&&V&&d.state.next(ae)}return F?ae:{}},P=(_,R,k,U)=>{const V=B(n.errors,_),F=u.isValid&&Ct(R)&&n.isValid!==R;if(t.delayError&&k?(c=p(()=>w(_,k)),c(t.delayError)):(clearTimeout(l),c=null,k?xe(n.errors,_,k):Ue(n.errors,_)),(k?!En(V,k):V)||!ut(U)||F){const Y={...U,...F&&Ct(R)?{isValid:R}:{},errors:n.errors,name:_};n={...n,...Y},d.state.next(Y)}},E=async _=>{v(_,!0);const R=await t.resolver(i,t.context,HT(_||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return v(_),R},j=async _=>{const{errors:R}=await E(_);if(_)for(const k of _){const U=B(R,k);U?xe(n.errors,k,U):Ue(n.errors,k)}else n.errors=R;return R},D=async(_,R,k={valid:!0})=>{for(const U in _){const V=_[U];if(V){const{_f:F,...Y}=V;if(F){const ae=a.array.has(F.name),Ie=V._f&&qT(V._f);Ie&&u.validatingFields&&v([U],!0);const Oe=await ff(V,a.disabled,i,m,t.shouldUseNativeValidation&&!R,ae);if(Ie&&u.validatingFields&&v([U]),Oe[F.name]&&(k.valid=!1,R))break;!R&&(B(Oe,F.name)?ae?UT(n.errors,Oe,F.name):xe(n.errors,F.name,Oe[F.name]):Ue(n.errors,F.name))}!ut(Y)&&await D(Y,R,k)}}return k.valid},L=()=>{for(const _ of a.unMount){const R=B(s,_);R&&(R._f.refs?R._f.refs.every(k=>!Pa(k)):!Pa(R._f.ref))&&et(_)}a.unMount=new Set},O=(_,R)=>!t.disabled&&(_&&R&&xe(i,_,R),!En(ge(),r)),$=(_,R,k)=>Qm(_,a,{...o.mount?i:Me(R)?r:Yt(_)?{[_]:R}:R},k,R),I=_=>zo(B(o.mount?i:r,_,t.shouldUnregister?B(r,_,[]):[])),J=(_,R,k={})=>{const U=B(s,_);let V=R;if(U){const F=U._f;F&&(!F.disabled&&xe(i,_,sg(R,F)),V=ho(F.ref)&&st(R)?"":R,eg(F.ref)?[...F.ref.options].forEach(Y=>Y.selected=V.includes(Y.value)):F.refs?Si(F.ref)?F.refs.length>1?F.refs.forEach(Y=>(!Y.defaultChecked||!Y.disabled)&&(Y.checked=Array.isArray(V)?!!V.find(ae=>ae===Y.value):V===Y.value)):F.refs[0]&&(F.refs[0].checked=!!V):F.refs.forEach(Y=>Y.checked=Y.value===V):Vl(F.ref)?F.ref.value="":(F.ref.value=V,F.ref.type||d.values.next({name:_,values:{...i}})))}(k.shouldDirty||k.shouldTouch)&&A(_,V,k.shouldTouch,k.shouldDirty,!0),k.shouldValidate&&de(_)},X=(_,R,k)=>{for(const U in R){const V=R[U],F=`${_}.${U}`,Y=B(s,F);(a.array.has(_)||Fe(V)||Y&&!Y._f)&&!es(V)?X(F,V,k):J(F,V,k)}},q=(_,R,k={})=>{const U=B(s,_),V=a.array.has(_),F=ct(R);xe(i,_,F),V?(d.array.next({name:_,values:{...i}}),(u.isDirty||u.dirtyFields)&&k.shouldDirty&&d.state.next({name:_,dirtyFields:_r(r,i),isDirty:O(_,F)})):U&&!U._f&&!st(F)?X(_,F,k):J(_,F,k),af(_,a)&&d.state.next({...n}),d.values.next({name:o.mount?_:void 0,values:{...i}})},Z=async _=>{o.mount=!0;const R=_.target;let k=R.name,U=!0;const V=B(s,k),F=()=>R.type?Ra(V._f):zm(_),Y=ae=>{U=Number.isNaN(ae)||es(ae)&&isNaN(ae.getTime())||En(ae,B(i,k,ae))};if(V){let ae,Ie;const Oe=F(),zt=_.type===fo.BLUR||_.type===fo.FOCUS_OUT,yr=!ZT(V._f)&&!t.resolver&&!B(n.errors,k)&&!V._f.deps||KT(zt,B(n.touchedFields,k),n.isSubmitted,g,f),Wt=af(k,a,zt);xe(i,k,Oe),zt?(V._f.onBlur&&V._f.onBlur(_),c&&c(0)):V._f.onChange&&V._f.onChange(_);const Kn=A(k,Oe,zt,!1),vr=!ut(Kn)||Wt;if(!zt&&d.values.next({name:k,type:_.type,values:{...i}}),yr)return u.isValid&&(t.mode==="onBlur"&&zt?y():zt||y()),vr&&d.state.next({name:k,...Wt?{}:Kn});if(!zt&&Wt&&d.state.next({...n}),t.resolver){const{errors:Gn}=await E([k]);if(Y(Oe),U){const sa=pf(n.errors,s,k),Ni=pf(Gn,s,sa.name||k);ae=Ni.error,k=Ni.name,Ie=ut(Gn)}}else v([k],!0),ae=(await ff(V,a.disabled,i,m,t.shouldUseNativeValidation))[k],v([k]),Y(Oe),U&&(ae?Ie=!1:u.isValid&&(Ie=await D(s,!0)));U&&(V._f.deps&&de(V._f.deps),P(k,Ie,ae,Kn))}},re=(_,R)=>{if(B(n.errors,R)&&_.focus)return _.focus(),1},de=async(_,R={})=>{let k,U;const V=Ir(_);if(t.resolver){const F=await j(Me(_)?_:V);k=ut(F),U=_?!V.some(Y=>B(F,Y)):k}else _?(U=(await Promise.all(V.map(async F=>{const Y=B(s,F);return await D(Y&&Y._f?{[F]:Y}:Y)}))).every(Boolean),!(!U&&!n.isValid)&&y()):U=k=await D(s);return d.state.next({...!Yt(_)||u.isValid&&k!==n.isValid?{}:{name:_},...t.resolver||!_?{isValid:k}:{},errors:n.errors}),R.shouldFocus&&!U&&Vr(s,re,_?V:a.mount),U},ge=_=>{const R={...o.mount?i:r};return Me(_)?R:Yt(_)?B(R,_):_.map(k=>B(R,k))},Be=(_,R)=>({invalid:!!B((R||n).errors,_),isDirty:!!B((R||n).dirtyFields,_),error:B((R||n).errors,_),isValidating:!!B(n.validatingFields,_),isTouched:!!B((R||n).touchedFields,_)}),qe=_=>{_&&Ir(_).forEach(R=>Ue(n.errors,R)),d.state.next({errors:_?n.errors:{}})},Ze=(_,R,k)=>{const U=(B(s,_,{_f:{}})._f||{}).ref,V=B(n.errors,_)||{},{ref:F,message:Y,type:ae,...Ie}=V;xe(n.errors,_,{...Ie,...R,ref:U}),d.state.next({name:_,errors:n.errors,isValid:!1}),k&&k.shouldFocus&&U&&U.focus&&U.focus()},Pt=(_,R)=>Xt(_)?d.values.subscribe({next:k=>_($(void 0,R),k)}):$(_,R,!0),et=(_,R={})=>{for(const k of _?Ir(_):a.mount)a.mount.delete(k),a.array.delete(k),R.keepValue||(Ue(s,k),Ue(i,k)),!R.keepError&&Ue(n.errors,k),!R.keepDirty&&Ue(n.dirtyFields,k),!R.keepTouched&&Ue(n.touchedFields,k),!R.keepIsValidating&&Ue(n.validatingFields,k),!t.shouldUnregister&&!R.keepDefaultValue&&Ue(r,k);d.values.next({values:{...i}}),d.state.next({...n,...R.keepDirty?{isDirty:O()}:{}}),!R.keepIsValid&&y()},ue=({disabled:_,name:R,field:k,fields:U})=>{(Ct(_)&&o.mount||_||a.disabled.has(R))&&(_?a.disabled.add(R):a.disabled.delete(R),A(R,Ra(k?k._f:B(U,R)._f),!1,!1,!0))},ye=(_,R={})=>{let k=B(s,_);const U=Ct(R.disabled)||Ct(t.disabled);return xe(s,_,{...k||{},_f:{...k&&k._f?k._f:{ref:{name:_}},name:_,mount:!0,...R}}),a.mount.add(_),k?ue({field:k,disabled:Ct(R.disabled)?R.disabled:t.disabled,name:_}):S(_,!0,R.value),{...U?{disabled:R.disabled||t.disabled}:{},...t.progressive?{required:!!R.required,min:Tr(R.min),max:Tr(R.max),minLength:Tr(R.minLength),maxLength:Tr(R.maxLength),pattern:Tr(R.pattern)}:{},name:_,onChange:Z,onBlur:Z,ref:V=>{if(V){ye(_,R),k=B(s,_);const F=Me(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,Y=WT(F),ae=k._f.refs||[];if(Y?ae.find(Ie=>Ie===F):F===k._f.ref)return;xe(s,_,{_f:{...k._f,...Y?{refs:[...ae.filter(Pa),F,...Array.isArray(B(r,_))?[{}]:[]],ref:{type:F.type,name:_}}:{ref:F}}}),S(_,!1,void 0,F)}else k=B(s,_,{}),k._f&&(k._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(Wm(a.array,_)&&o.action)&&a.unMount.add(_)}}},je=()=>t.shouldFocusError&&Vr(s,re,a.mount),Le=_=>{Ct(_)&&(d.state.next({disabled:_}),Vr(s,(R,k)=>{const U=B(s,k);U&&(R.disabled=U._f.disabled||_,Array.isArray(U._f.refs)&&U._f.refs.forEach(V=>{V.disabled=U._f.disabled||_}))},0,!1))},we=(_,R)=>async k=>{let U;k&&(k.preventDefault&&k.preventDefault(),k.persist&&k.persist());let V=ct(i);if(a.disabled.size)for(const F of a.disabled)xe(V,F,void 0);if(d.state.next({isSubmitting:!0}),t.resolver){const{errors:F,values:Y}=await E();n.errors=F,V=Y}else await D(s);if(Ue(n.errors,"root"),ut(n.errors)){d.state.next({errors:{}});try{await _(V,k)}catch(F){U=F}}else R&&await R({...n.errors},k),je(),setTimeout(je);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ut(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},G=(_,R={})=>{B(s,_)&&(Me(R.defaultValue)?q(_,ct(B(r,_))):(q(_,R.defaultValue),xe(r,_,ct(R.defaultValue))),R.keepTouched||Ue(n.touchedFields,_),R.keepDirty||(Ue(n.dirtyFields,_),n.isDirty=R.defaultValue?O(_,ct(B(r,_))):O()),R.keepError||(Ue(n.errors,_),u.isValid&&y()),d.state.next({...n}))},fe=(_,R={})=>{const k=_?ct(_):r,U=ct(k),V=ut(_),F=V?r:U;if(R.keepDefaultValues||(r=k),!R.keepValues){if(R.keepDirtyValues){const Y=new Set([...a.mount,...Object.keys(_r(r,i))]);for(const ae of Array.from(Y))B(n.dirtyFields,ae)?xe(F,ae,B(i,ae)):q(ae,B(F,ae))}else{if(Fl&&Me(_))for(const Y of a.mount){const ae=B(s,Y);if(ae&&ae._f){const Ie=Array.isArray(ae._f.refs)?ae._f.refs[0]:ae._f.ref;if(ho(Ie)){const Oe=Ie.closest("form");if(Oe){Oe.reset();break}}}}s={}}i=t.shouldUnregister?R.keepDefaultValues?ct(r):{}:ct(F),d.array.next({values:{...F}}),d.values.next({values:{...F}})}a={mount:R.keepDirtyValues?a.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},o.mount=!u.isValid||!!R.keepIsValid||!!R.keepDirtyValues,o.watch=!!t.shouldUnregister,d.state.next({submitCount:R.keepSubmitCount?n.submitCount:0,isDirty:V?!1:R.keepDirty?n.isDirty:!!(R.keepDefaultValues&&!En(_,r)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?{}:R.keepDirtyValues?R.keepDefaultValues&&i?_r(r,i):n.dirtyFields:R.keepDefaultValues&&_?_r(r,_):R.keepDirty?n.dirtyFields:{},touchedFields:R.keepTouched?n.touchedFields:{},errors:R.keepErrors?n.errors:{},isSubmitSuccessful:R.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Se=(_,R)=>fe(Xt(_)?_(i):_,R);return{control:{register:ye,unregister:et,getFieldState:Be,handleSubmit:we,setError:Ze,_executeSchema:E,_getWatch:$,_getDirty:O,_updateValid:y,_removeUnmounted:L,_updateFieldArray:b,_updateDisabledField:ue,_getFieldArray:I,_reset:fe,_resetDefaultValues:()=>Xt(t.defaultValues)&&t.defaultValues().then(_=>{Se(_,t.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:_=>{n={...n,..._}},_disableForm:Le,_subjects:d,_proxyFormState:u,_setErrors:T,get _fields(){return s},get _formValues(){return i},get _state(){return o},set _state(_){o=_},get _defaultValues(){return r},get _names(){return a},set _names(_){a=_},get _formState(){return n},set _formState(_){n=_},get _options(){return t},set _options(_){t={...t,..._}}},trigger:de,register:ye,handleSubmit:we,watch:Pt,setValue:q,getValues:ge,reset:Se,resetField:G,clearErrors:qe,unregister:et,setError:Ze,setFocus:(_,R={})=>{const k=B(s,_),U=k&&k._f;if(U){const V=U.refs?U.refs[0]:U.ref;V.focus&&(V.focus(),R.shouldSelect&&Xt(V.select)&&V.select())}},getFieldState:Be}}function YT(e={}){const t=ve.useRef(void 0),n=ve.useRef(void 0),[s,r]=ve.useState({isDirty:!1,isValidating:!1,isLoading:Xt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Xt(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...XT(e),formState:s});const i=t.current.control;return i._options=e,Il({subject:i._subjects.state,next:o=>{Km(o,i._proxyFormState,i._updateFormState,!0)&&r({...i._formState})}}),ve.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ve.useEffect(()=>{if(i._proxyFormState.isDirty){const o=i._getDirty();o!==s.isDirty&&i._subjects.state.next({isDirty:o})}},[i,s.isDirty]),ve.useEffect(()=>{e.values&&!En(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,r(o=>({...o}))):i._resetDefaultValues()},[e.values,i]),ve.useEffect(()=>{e.errors&&i._setErrors(e.errors)},[e.errors,i]),ve.useEffect(()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),ve.useEffect(()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})},[e.shouldUnregister,i]),t.current.formState=Zm(s,i),t.current}var JT="Label",rg=x.forwardRef((e,t)=>h.jsx(at.label,{...e,ref:t,onMouseDown:n=>{var r;n.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));rg.displayName=JT;var ig=rg;const eC=Yc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),og=x.forwardRef(({className:e,...t},n)=>h.jsx(ig,{ref:n,className:W(eC(),e),...t}));og.displayName=ig.displayName;const vN=FT,ag=x.createContext({}),tC=({...e})=>h.jsx(ag.Provider,{value:{name:e.name},children:h.jsx(BT,{...e})}),Ho=()=>{const e=x.useContext(ag),t=x.useContext(cg),{getFieldState:n,formState:s}=Wo(),r=n(e.name,s);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=t;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...r}},cg=x.createContext({}),lg=x.forwardRef(({className:e,...t},n)=>{const s=x.useId();return h.jsx(cg.Provider,{value:{id:s},children:h.jsx("div",{ref:n,className:W("space-y-2",e),...t})})});lg.displayName="FormItem";const ug=x.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=Ho();return h.jsx(og,{ref:n,className:W(s&&"text-destructive",e),htmlFor:r,...t})});ug.displayName="FormLabel";const dg=x.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=Ho();return h.jsx(cr,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});dg.displayName="FormControl";const nC=x.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=Ho();return h.jsx("p",{ref:n,id:s,className:W("text-[0.8rem] text-muted-foreground",e),...t})});nC.displayName="FormDescription";const fg=x.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=Ho(),o=r?String(r==null?void 0:r.message):t;return o?h.jsx("p",{ref:s,id:i,className:W("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});fg.displayName="FormMessage";const uc=x.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?h.jsx("input",{type:t,className:W("flex h-14 rounded-[2px] border p-4 focus:border-[3px] focus:outline-none focus:border-primary transition-all hover:border-on_surface border-outline bg-transparent text-base w-regular file:border-0 file:bg-secondary_container file:outline-none file:text-sm file:w-fit file:text-on_secondary_container file:font-medium placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),ref:s,...n}):h.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[h.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:W("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),h.jsxs("div",{className:"absolute rounded-[2px] cursor-pointer size-full flex items-center gap-4 px-3 py-2.5 top-0 left-0 bg-secondary_container",children:[h.jsx(Jx,{className:"cursor-pointer",size:16})," Upload file"]})]}));uc.displayName="Input";const hg=x.forwardRef(({className:e,...t},n)=>h.jsx("textarea",{className:W("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));hg.displayName="Textarea";const xN=({control:e,name:t,label:n,placeholder:s,error:r,type:i="text",className:o,disabled:a,textArea:c=!1,textDark:l,supporText:u,handleChange:d,onPrimary:f=!1})=>h.jsx(tC,{control:e,name:t,render:({field:g})=>h.jsxs(lg,{className:W(o,"flex flex-col w-full relative"),children:[h.jsx(ug,{className:W("text-xl",f&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),h.jsx(dg,{children:h.jsx(h.Fragment,{children:c?h.jsx(hg,{rows:3,...g,placeholder:s,className:W(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?h.jsx(uc,{...g,type:i,placeholder:s,disabled:a,className:W(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):h.jsxs("div",{className:"relative",children:[h.jsx(uc,{type:"file",placeholder:s,onChange:m=>{var y;const p=((y=m.target.files)==null?void 0:y[0])||null;console.log("Выбранный файл:",p),g.onChange(p),d&&d(m)},disabled:a}),g.value&&h.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",g.value.name]})]})})}),h.jsx(fg,{className:W("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&f?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})}),bN=({className:e,delay:t=.15})=>h.jsxs(Lr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:W("flex flex-col gap-8 my-16",e),children:[h.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),h.jsx(Ce,{className:"w-fit mx-auto",to:"/",children:h.jsx(it,{variant:"outline",children:"Вернуться на главную"})})]}),sC=({className:e,slides:t,active:n,scrollTo:s})=>h.jsx("div",{className:W("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>h.jsx("span",{onClick:()=>s==null?void 0:s(i),className:W(n===i?"dot-active":"dot")},i))}),rC=["top","right","bottom","left"],Ln=Math.min,ht=Math.max,go=Math.round,$i=Math.floor,tn=e=>({x:e,y:e}),iC={left:"right",right:"left",bottom:"top",top:"bottom"},oC={start:"end",end:"start"};function dc(e,t,n){return ht(e,Ln(t,n))}function yn(e,t){return typeof e=="function"?e(t):e}function vn(e){return e.split("-")[0]}function hr(e){return e.split("-")[1]}function Ul(e){return e==="x"?"y":"x"}function $l(e){return e==="y"?"height":"width"}function In(e){return["top","bottom"].includes(vn(e))?"y":"x"}function zl(e){return Ul(In(e))}function aC(e,t,n){n===void 0&&(n=!1);const s=hr(e),r=zl(e),i=$l(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=yo(o)),[o,yo(o)]}function cC(e){const t=yo(e);return[fc(e),t,fc(t)]}function fc(e){return e.replace(/start|end/g,t=>oC[t])}function lC(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:o;default:return[]}}function uC(e,t,n,s){const r=hr(e);let i=lC(vn(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(fc)))),i}function yo(e){return e.replace(/left|right|bottom|top/g,t=>iC[t])}function dC(e){return{top:0,right:0,bottom:0,left:0,...e}}function pg(e){return typeof e!="number"?dC(e):{top:e,right:e,bottom:e,left:e}}function vo(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function mf(e,t,n){let{reference:s,floating:r}=e;const i=In(t),o=zl(t),a=$l(o),c=vn(t),l=i==="y",u=s.x+s.width/2-r.width/2,d=s.y+s.height/2-r.height/2,f=s[a]/2-r[a]/2;let g;switch(c){case"top":g={x:u,y:s.y-r.height};break;case"bottom":g={x:u,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:d};break;case"left":g={x:s.x-r.width,y:d};break;default:g={x:s.x,y:s.y}}switch(hr(t)){case"start":g[o]-=f*(n&&l?-1:1);break;case"end":g[o]+=f*(n&&l?-1:1);break}return g}const fC=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=mf(l,s,c),f=s,g={},m=0;for(let p=0;p<a.length;p++){const{name:y,fn:v}=a[p],{x:b,y:w,data:T,reset:S}=await v({x:u,y:d,initialPlacement:s,placement:f,strategy:r,middlewareData:g,rects:l,platform:o,elements:{reference:e,floating:t}});u=b??u,d=w??d,g={...g,[y]:{...g[y],...T}},S&&m<=50&&(m++,typeof S=="object"&&(S.placement&&(f=S.placement),S.rects&&(l=S.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:u,y:d}=mf(l,f,c)),p=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:g}};async function Zr(e,t){var n;t===void 0&&(t={});const{x:s,y:r,platform:i,rects:o,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=yn(t,e),m=pg(g),y=a[f?d==="floating"?"reference":"floating":d],v=vo(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),b=d==="floating"?{x:s,y:r,width:o.floating.width,height:o.floating.height}:o.reference,w=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),T=await(i.isElement==null?void 0:i.isElement(w))?await(i.getScale==null?void 0:i.getScale(w))||{x:1,y:1}:{x:1,y:1},S=vo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:w,strategy:c}):b);return{top:(v.top-S.top+m.top)/T.y,bottom:(S.bottom-v.bottom+m.bottom)/T.y,left:(v.left-S.left+m.left)/T.x,right:(S.right-v.right+m.right)/T.x}}const hC=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=yn(e,t)||{};if(l==null)return{};const d=pg(u),f={x:n,y:s},g=zl(r),m=$l(g),p=await o.getDimensions(l),y=g==="y",v=y?"top":"left",b=y?"bottom":"right",w=y?"clientHeight":"clientWidth",T=i.reference[m]+i.reference[g]-f[g]-i.floating[m],S=f[g]-i.reference[g],A=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let P=A?A[w]:0;(!P||!await(o.isElement==null?void 0:o.isElement(A)))&&(P=a.floating[w]||i.floating[m]);const E=T/2-S/2,j=P/2-p[m]/2-1,D=Ln(d[v],j),L=Ln(d[b],j),O=D,$=P-p[m]-L,I=P/2-p[m]/2+E,J=dc(O,I,$),X=!c.arrow&&hr(r)!=null&&I!==J&&i.reference[m]/2-(I<O?D:L)-p[m]/2<0,q=X?I<O?I-O:I-$:0;return{[g]:f[g]+q,data:{[g]:J,centerOffset:I-J-q,...X&&{alignmentOffset:q}},reset:X}}}),pC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:r,middlewareData:i,rects:o,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:p=!0,...y}=yn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=vn(r),b=In(a),w=vn(a)===a,T=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=f||(w||!p?[yo(a)]:cC(a)),A=m!=="none";!f&&A&&S.push(...uC(a,p,m,T));const P=[a,...S],E=await Zr(t,y),j=[];let D=((s=i.flip)==null?void 0:s.overflows)||[];if(u&&j.push(E[v]),d){const I=aC(r,o,T);j.push(E[I[0]],E[I[1]])}if(D=[...D,{placement:r,overflows:j}],!j.every(I=>I<=0)){var L,O;const I=(((L=i.flip)==null?void 0:L.index)||0)+1,J=P[I];if(J)return{data:{index:I,overflows:D},reset:{placement:J}};let X=(O=D.filter(q=>q.overflows[0]<=0).sort((q,Z)=>q.overflows[1]-Z.overflows[1])[0])==null?void 0:O.placement;if(!X)switch(g){case"bestFit":{var $;const q=($=D.filter(Z=>{if(A){const re=In(Z.placement);return re===b||re==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(re=>re>0).reduce((re,de)=>re+de,0)]).sort((Z,re)=>Z[1]-re[1])[0])==null?void 0:$[0];q&&(X=q);break}case"initialPlacement":X=a;break}if(r!==X)return{reset:{placement:X}}}return{}}}};function gf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function yf(e){return rC.some(t=>e[t]>=0)}const mC=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:s="referenceHidden",...r}=yn(e,t);switch(s){case"referenceHidden":{const i=await Zr(t,{...r,elementContext:"reference"}),o=gf(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:yf(o)}}}case"escaped":{const i=await Zr(t,{...r,altBoundary:!0}),o=gf(i,n.floating);return{data:{escapedOffsets:o,escaped:yf(o)}}}default:return{}}}}};async function gC(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=vn(n),a=hr(n),c=In(n)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,d=yn(t,e);let{mainAxis:f,crossAxis:g,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),c?{x:g*u,y:f*l}:{x:f*l,y:g*u}}const yC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:o,middlewareData:a}=t,c=await gC(t,e);return o===((n=a.offset)==null?void 0:n.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},vC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:y=>{let{x:v,y:b}=y;return{x:v,y:b}}},...c}=yn(e,t),l={x:n,y:s},u=await Zr(t,c),d=In(vn(r)),f=Ul(d);let g=l[f],m=l[d];if(i){const y=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=g+u[y],w=g-u[v];g=dc(b,g,w)}if(o){const y=d==="y"?"top":"left",v=d==="y"?"bottom":"right",b=m+u[y],w=m-u[v];m=dc(b,m,w)}const p=a.fn({...t,[f]:g,[d]:m});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[f]:i,[d]:o}}}}}},xC=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:s,placement:r,rects:i,middlewareData:o}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=yn(e,t),u={x:n,y:s},d=In(r),f=Ul(d);let g=u[f],m=u[d];const p=yn(a,t),y=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=f==="y"?"height":"width",T=i.reference[f]-i.floating[w]+y.mainAxis,S=i.reference[f]+i.reference[w]-y.mainAxis;g<T?g=T:g>S&&(g=S)}if(l){var v,b;const w=f==="y"?"width":"height",T=["top","left"].includes(vn(r)),S=i.reference[d]-i.floating[w]+(T&&((v=o.offset)==null?void 0:v[d])||0)+(T?0:y.crossAxis),A=i.reference[d]+i.reference[w]+(T?0:((b=o.offset)==null?void 0:b[d])||0)-(T?y.crossAxis:0);m<S?m=S:m>A&&(m=A)}return{[f]:g,[d]:m}}}},bC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:r,rects:i,platform:o,elements:a}=t,{apply:c=()=>{},...l}=yn(e,t),u=await Zr(t,l),d=vn(r),f=hr(r),g=In(r)==="y",{width:m,height:p}=i.floating;let y,v;d==="top"||d==="bottom"?(y=d,v=f===(await(o.isRTL==null?void 0:o.isRTL(a.floating))?"start":"end")?"left":"right"):(v=d,y=f==="end"?"top":"bottom");const b=p-u.top-u.bottom,w=m-u.left-u.right,T=Ln(p-u[y],b),S=Ln(m-u[v],w),A=!t.middlewareData.shift;let P=T,E=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=w),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(P=b),A&&!f){const D=ht(u.left,0),L=ht(u.right,0),O=ht(u.top,0),$=ht(u.bottom,0);g?E=m-2*(D!==0||L!==0?D+L:ht(u.left,u.right)):P=p-2*(O!==0||$!==0?O+$:ht(u.top,u.bottom))}await c({...t,availableWidth:E,availableHeight:P});const j=await o.getDimensions(a.floating);return m!==j.width||p!==j.height?{reset:{rects:!0}}:{}}}};function qo(){return typeof window<"u"}function pr(e){return mg(e)?(e.nodeName||"").toLowerCase():"#document"}function yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(mg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mg(e){return qo()?e instanceof Node||e instanceof yt(e).Node:!1}function Lt(e){return qo()?e instanceof Element||e instanceof yt(e).Element:!1}function sn(e){return qo()?e instanceof HTMLElement||e instanceof yt(e).HTMLElement:!1}function vf(e){return!qo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yt(e).ShadowRoot}function _i(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=It(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function wC(e){return["table","td","th"].includes(pr(e))}function Zo(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Wl(e){const t=Hl(),n=Lt(e)?It(e):e;return["transform","translate","scale","rotate","perspective"].some(s=>n[s]?n[s]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function SC(e){let t=Vn(e);for(;sn(t)&&!sr(t);){if(Wl(t))return t;if(Zo(t))return null;t=Vn(t)}return null}function Hl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function sr(e){return["html","body","#document"].includes(pr(e))}function It(e){return yt(e).getComputedStyle(e)}function Ko(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Vn(e){if(pr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||vf(e)&&e.host||an(e);return vf(t)?t.host:t}function gg(e){const t=Vn(e);return sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&_i(t)?t:gg(t)}function Kr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=gg(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=yt(r);if(i){const a=hc(o);return t.concat(o,o.visualViewport||[],_i(r)?r:[],a&&n?Kr(a):[])}return t.concat(r,Kr(r,[],n))}function hc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yg(e){const t=It(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=sn(e),i=r?e.offsetWidth:n,o=r?e.offsetHeight:s,a=go(n)!==i||go(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function ql(e){return Lt(e)?e:e.contextElement}function Is(e){const t=ql(e);if(!sn(t))return tn(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=yg(t);let o=(i?go(n.width):n.width)/s,a=(i?go(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const _C=tn(0);function vg(e){const t=yt(e);return!Hl()||!t.visualViewport?_C:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function TC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==yt(e)?!1:t}function gs(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=ql(e);let o=tn(1);t&&(s?Lt(s)&&(o=Is(s)):o=Is(e));const a=TC(i,n,s)?vg(i):tn(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,d=r.height/o.y;if(i){const f=yt(i),g=s&&Lt(s)?yt(s):s;let m=f,p=hc(m);for(;p&&s&&g!==m;){const y=Is(p),v=p.getBoundingClientRect(),b=It(p),w=v.left+(p.clientLeft+parseFloat(b.paddingLeft))*y.x,T=v.top+(p.clientTop+parseFloat(b.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=w,l+=T,m=yt(p),p=hc(m)}}return vo({width:u,height:d,x:c,y:l})}function Zl(e,t){const n=Ko(e).scrollLeft;return t?t.left+n:gs(an(e)).left+n}function xg(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:Zl(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function CC(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=an(s),a=t?Zo(t.floating):!1;if(s===o||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=tn(1);const u=tn(0),d=sn(s);if((d||!d&&!i)&&((pr(s)!=="body"||_i(o))&&(c=Ko(s)),sn(s))){const g=gs(s);l=Is(s),u.x=g.x+s.clientLeft,u.y=g.y+s.clientTop}const f=o&&!d&&!i?xg(o,c,!0):tn(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function EC(e){return Array.from(e.getClientRects())}function AC(e){const t=an(e),n=Ko(e),s=e.ownerDocument.body,r=ht(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=ht(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+Zl(e);const a=-n.scrollTop;return It(s).direction==="rtl"&&(o+=ht(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function PC(e,t){const n=yt(e),s=an(e),r=n.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=Hl();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function RC(e,t){const n=gs(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=sn(e)?Is(e):tn(1),o=e.clientWidth*i.x,a=e.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function xf(e,t,n){let s;if(t==="viewport")s=PC(e,n);else if(t==="document")s=AC(an(e));else if(Lt(t))s=RC(t,n);else{const r=vg(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return vo(s)}function bg(e,t){const n=Vn(e);return n===t||!Lt(n)||sr(n)?!1:It(n).position==="fixed"||bg(n,t)}function NC(e,t){const n=t.get(e);if(n)return n;let s=Kr(e,[],!1).filter(a=>Lt(a)&&pr(a)!=="body"),r=null;const i=It(e).position==="fixed";let o=i?Vn(e):e;for(;Lt(o)&&!sr(o);){const a=It(o),c=Wl(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||_i(o)&&!c&&bg(e,o))?s=s.filter(u=>u!==o):r=a,o=Vn(o)}return t.set(e,s),s}function kC(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?Zo(t)?[]:NC(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=xf(t,u,r);return l.top=ht(d.top,l.top),l.right=Ln(d.right,l.right),l.bottom=Ln(d.bottom,l.bottom),l.left=ht(d.left,l.left),l},xf(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function jC(e){const{width:t,height:n}=yg(e);return{width:t,height:n}}function OC(e,t,n){const s=sn(t),r=an(t),i=n==="fixed",o=gs(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=tn(0);if(s||!s&&!i)if((pr(t)!=="body"||_i(r))&&(a=Ko(t)),s){const f=gs(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else r&&(c.x=Zl(r));const l=r&&!s&&!i?xg(r,a):tn(0),u=o.left+a.scrollLeft-c.x-l.x,d=o.top+a.scrollTop-c.y-l.y;return{x:u,y:d,width:o.width,height:o.height}}function Na(e){return It(e).position==="static"}function bf(e,t){if(!sn(e)||It(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return an(e)===n&&(n=n.ownerDocument.body),n}function wg(e,t){const n=yt(e);if(Zo(e))return n;if(!sn(e)){let r=Vn(e);for(;r&&!sr(r);){if(Lt(r)&&!Na(r))return r;r=Vn(r)}return n}let s=bf(e,t);for(;s&&wC(s)&&Na(s);)s=bf(s,t);return s&&sr(s)&&Na(s)&&!Wl(s)?n:s||SC(e)||n}const DC=async function(e){const t=this.getOffsetParent||wg,n=this.getDimensions,s=await n(e.floating);return{reference:OC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function MC(e){return It(e).direction==="rtl"}const FC={convertOffsetParentRelativeRectToViewportRelativeRect:CC,getDocumentElement:an,getClippingRect:kC,getOffsetParent:wg,getElementRects:DC,getClientRects:EC,getDimensions:jC,getScale:Is,isElement:Lt,isRTL:MC};function Sg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function LC(e,t){let n=null,s;const r=an(e);function i(){var a;clearTimeout(s),(a=n)==null||a.disconnect(),n=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:g}=l;if(a||t(),!f||!g)return;const m=$i(d),p=$i(r.clientWidth-(u+f)),y=$i(r.clientHeight-(d+g)),v=$i(u),w={rootMargin:-m+"px "+-p+"px "+-y+"px "+-v+"px",threshold:ht(0,Ln(1,c))||1};let T=!0;function S(A){const P=A[0].intersectionRatio;if(P!==c){if(!T)return o();P?o(!1,P):s=setTimeout(()=>{o(!1,1e-7)},1e3)}P===1&&!Sg(l,e.getBoundingClientRect())&&o(),T=!1}try{n=new IntersectionObserver(S,{...w,root:r.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return o(!0),i}function IC(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=ql(e),u=r||i?[...l?Kr(l):[],...Kr(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?LC(l,n):null;let f=-1,g=null;o&&(g=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&g&&(g.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),l&&!c&&g.observe(l),g.observe(t));let m,p=c?gs(e):null;c&&y();function y(){const v=gs(e);p&&!Sg(p,v)&&n(),p=v,m=requestAnimationFrame(y)}return n(),()=>{var v;u.forEach(b=>{r&&b.removeEventListener("scroll",n),i&&b.removeEventListener("resize",n)}),d==null||d(),(v=g)==null||v.disconnect(),g=null,c&&cancelAnimationFrame(m)}}const VC=yC,BC=vC,UC=pC,$C=bC,zC=mC,wf=hC,WC=xC,HC=(e,t,n)=>{const s=new Map,r={platform:FC,...n},i={...r.platform,_c:s};return fC(e,t,{...r,platform:i})};var Ji=typeof document<"u"?x.useLayoutEffect:x.useEffect;function xo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,s,r;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(s=n;s--!==0;)if(!xo(e[s],t[s]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(s=n;s--!==0;)if(!{}.hasOwnProperty.call(t,r[s]))return!1;for(s=n;s--!==0;){const i=r[s];if(!(i==="_owner"&&e.$$typeof)&&!xo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function _g(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Sf(e,t){const n=_g(e);return Math.round(t*n)/n}function ka(e){const t=x.useRef(e);return Ji(()=>{t.current=e}),t}function qC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[u,d]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,g]=x.useState(s);xo(f,s)||g(s);const[m,p]=x.useState(null),[y,v]=x.useState(null),b=x.useCallback(Z=>{Z!==A.current&&(A.current=Z,p(Z))},[]),w=x.useCallback(Z=>{Z!==P.current&&(P.current=Z,v(Z))},[]),T=i||m,S=o||y,A=x.useRef(null),P=x.useRef(null),E=x.useRef(u),j=c!=null,D=ka(c),L=ka(r),O=ka(l),$=x.useCallback(()=>{if(!A.current||!P.current)return;const Z={placement:t,strategy:n,middleware:f};L.current&&(Z.platform=L.current),HC(A.current,P.current,Z).then(re=>{const de={...re,isPositioned:O.current!==!1};I.current&&!xo(E.current,de)&&(E.current=de,hh.flushSync(()=>{d(de)}))})},[f,t,n,L,O]);Ji(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(Z=>({...Z,isPositioned:!1})))},[l]);const I=x.useRef(!1);Ji(()=>(I.current=!0,()=>{I.current=!1}),[]),Ji(()=>{if(T&&(A.current=T),S&&(P.current=S),T&&S){if(D.current)return D.current(T,S,$);$()}},[T,S,$,D,j]);const J=x.useMemo(()=>({reference:A,floating:P,setReference:b,setFloating:w}),[b,w]),X=x.useMemo(()=>({reference:T,floating:S}),[T,S]),q=x.useMemo(()=>{const Z={position:n,left:0,top:0};if(!X.floating)return Z;const re=Sf(X.floating,u.x),de=Sf(X.floating,u.y);return a?{...Z,transform:"translate("+re+"px, "+de+"px)",..._g(X.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:re,top:de}},[n,a,X.floating,u.x,u.y]);return x.useMemo(()=>({...u,update:$,refs:J,elements:X,floatingStyles:q}),[u,$,J,X,q])}const ZC=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?wf({element:s.current,padding:r}).fn(n):{}:s?wf({element:s,padding:r}).fn(n):{}}}},KC=(e,t)=>({...VC(e),options:[e,t]}),GC=(e,t)=>({...BC(e),options:[e,t]}),QC=(e,t)=>({...WC(e),options:[e,t]}),XC=(e,t)=>({...UC(e),options:[e,t]}),YC=(e,t)=>({...$C(e),options:[e,t]}),JC=(e,t)=>({...zC(e),options:[e,t]}),eE=(e,t)=>({...ZC(e),options:[e,t]});var tE="Arrow",Tg=x.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return h.jsx(at.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:h.jsx("polygon",{points:"0,0 30,0 15,10"})})});Tg.displayName=tE;var nE=Tg;function sE(e){const[t,n]=x.useState(void 0);return ps(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else n(void 0)},[e]),t}var Kl="Popper",[Cg,Eg]=$c(Kl),[rE,Ag]=Cg(Kl),Pg=e=>{const{__scopePopper:t,children:n}=e,[s,r]=x.useState(null);return h.jsx(rE,{scope:t,anchor:s,onAnchorChange:r,children:n})};Pg.displayName=Kl;var Rg="PopperAnchor",Ng=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=Ag(Rg,n),o=x.useRef(null),a=Bt(t,o);return x.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:h.jsx(at.div,{...r,ref:a})});Ng.displayName=Rg;var Gl="PopperContent",[iE,oE]=Cg(Gl),kg=x.forwardRef((e,t)=>{var ue,ye,je,Le,we,G;const{__scopePopper:n,side:s="bottom",sideOffset:r=0,align:i="center",alignOffset:o=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d="partial",hideWhenDetached:f=!1,updatePositionStrategy:g="optimized",onPlaced:m,...p}=e,y=Ag(Gl,n),[v,b]=x.useState(null),w=Bt(t,fe=>b(fe)),[T,S]=x.useState(null),A=sE(T),P=(A==null?void 0:A.width)??0,E=(A==null?void 0:A.height)??0,j=s+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(l)?l:[l],O=L.length>0,$={padding:D,boundary:L.filter(cE),altBoundary:O},{refs:I,floatingStyles:J,placement:X,isPositioned:q,middlewareData:Z}=qC({strategy:"fixed",placement:j,whileElementsMounted:(...fe)=>IC(...fe,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[KC({mainAxis:r+E,alignmentAxis:o}),c&&GC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?QC():void 0,...$}),c&&XC({...$}),YC({...$,apply:({elements:fe,rects:Se,availableWidth:$e,availableHeight:ft})=>{const{width:bt,height:_}=Se.reference,R=fe.floating.style;R.setProperty("--radix-popper-available-width",`${$e}px`),R.setProperty("--radix-popper-available-height",`${ft}px`),R.setProperty("--radix-popper-anchor-width",`${bt}px`),R.setProperty("--radix-popper-anchor-height",`${_}px`)}}),T&&eE({element:T,padding:a}),lE({arrowWidth:P,arrowHeight:E}),f&&JC({strategy:"referenceHidden",...$})]}),[re,de]=Dg(X),ge=Dn(m);ps(()=>{q&&(ge==null||ge())},[q,ge]);const Be=(ue=Z.arrow)==null?void 0:ue.x,qe=(ye=Z.arrow)==null?void 0:ye.y,Ze=((je=Z.arrow)==null?void 0:je.centerOffset)!==0,[Pt,et]=x.useState();return ps(()=>{v&&et(window.getComputedStyle(v).zIndex)},[v]),h.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:q?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pt,"--radix-popper-transform-origin":[(Le=Z.transformOrigin)==null?void 0:Le.x,(we=Z.transformOrigin)==null?void 0:we.y].join(" "),...((G=Z.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:h.jsx(iE,{scope:n,placedSide:re,onArrowChange:S,arrowX:Be,arrowY:qe,shouldHideArrow:Ze,children:h.jsx(at.div,{"data-side":re,"data-align":de,...p,ref:w,style:{...p.style,animation:q?void 0:"none"}})})})});kg.displayName=Gl;var jg="PopperArrow",aE={top:"bottom",right:"left",bottom:"top",left:"right"},Og=x.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=oE(jg,s),o=aE[i.placedSide];return h.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:h.jsx(nE,{...r,ref:n,style:{...r.style,display:"block"}})})});Og.displayName=jg;function cE(e){return e!==null}var lE=e=>({name:"transformOrigin",options:e,fn(t){var y,v,b;const{placement:n,rects:s,middlewareData:r}=t,o=((y=r.arrow)==null?void 0:y.centerOffset)!==0,a=o?0:e.arrowWidth,c=o?0:e.arrowHeight,[l,u]=Dg(n),d={start:"0%",center:"50%",end:"100%"}[u],f=(((v=r.arrow)==null?void 0:v.x)??0)+a/2,g=(((b=r.arrow)==null?void 0:b.y)??0)+c/2;let m="",p="";return l==="bottom"?(m=o?d:`${f}px`,p=`${-c}px`):l==="top"?(m=o?d:`${f}px`,p=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,p=o?d:`${g}px`):l==="left"&&(m=`${s.floating.width+c}px`,p=o?d:`${g}px`),{data:{x:m,y:p}}}});function Dg(e){const[t,n="center"]=e.split("-");return[t,n]}var uE=Pg,Mg=Ng,dE=kg,fE=Og,Ql="Popover",[Fg,wN]=$c(Ql,[Eg]),Ti=Eg(),[hE,Hn]=Fg(Ql),Lg=e=>{const{__scopePopover:t,children:n,open:s,defaultOpen:r,onOpenChange:i,modal:o=!1}=e,a=Ti(t),c=x.useRef(null),[l,u]=x.useState(!1),[d=!1,f]=mh({prop:s,defaultProp:r,onChange:i});return h.jsx(uE,{...a,children:h.jsx(hE,{scope:t,contentId:qi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:x.useCallback(()=>f(g=>!g),[f]),hasCustomAnchor:l,onCustomAnchorAdd:x.useCallback(()=>u(!0),[]),onCustomAnchorRemove:x.useCallback(()=>u(!1),[]),modal:o,children:n})})};Lg.displayName=Ql;var Ig="PopoverAnchor",pE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Hn(Ig,n),i=Ti(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return x.useEffect(()=>(o(),()=>a()),[o,a]),h.jsx(Mg,{...i,...s,ref:t})});pE.displayName=Ig;var Vg="PopoverTrigger",Bg=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Hn(Vg,n),i=Ti(n),o=Bt(t,r.triggerRef),a=h.jsx(at.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Hg(r.open),...s,ref:o,onClick:mt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:h.jsx(Mg,{asChild:!0,...i,children:a})});Bg.displayName=Vg;var Xl="PopoverPortal",[mE,gE]=Fg(Xl,{forceMount:void 0}),Ug=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=Hn(Xl,t);return h.jsx(mE,{scope:t,forceMount:n,children:h.jsx(lr,{present:n||i.open,children:h.jsx(Hc,{asChild:!0,container:r,children:s})})})};Ug.displayName=Xl;var rr="PopoverContent",$g=x.forwardRef((e,t)=>{const n=gE(rr,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=Hn(rr,e.__scopePopover);return h.jsx(lr,{present:s||i.open,children:i.modal?h.jsx(yE,{...r,ref:t}):h.jsx(vE,{...r,ref:t})})});$g.displayName=rr;var yE=x.forwardRef((e,t)=>{const n=Hn(rr,e.__scopePopover),s=x.useRef(null),r=Bt(t,s),i=x.useRef(!1);return x.useEffect(()=>{const o=s.current;if(o)return Ph(o)},[]),h.jsx(qc,{as:cr,allowPinchZoom:!0,children:h.jsx(zg,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:mt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:mt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,c=a.button===0&&a.ctrlKey===!0,l=a.button===2||c;i.current=l},{checkForDefaultPrevented:!1}),onFocusOutside:mt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),vE=x.forwardRef((e,t)=>{const n=Hn(rr,e.__scopePopover),s=x.useRef(!1),r=x.useRef(!1);return h.jsx(zg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=e.onCloseAutoFocus)==null||o.call(e,i),i.defaultPrevented||(s.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),s.current=!1,r.current=!1},onInteractOutside:i=>{var c,l;(c=e.onInteractOutside)==null||c.call(e,i),i.defaultPrevented||(s.current=!0,i.detail.originalEvent.type==="pointerdown"&&(r.current=!0));const o=i.target;((l=n.triggerRef.current)==null?void 0:l.contains(o))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&r.current&&i.preventDefault()}})}),zg=x.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Hn(rr,n),g=Ti(n);return xh(),h.jsx(Wc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:h.jsx(zc,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:h.jsx(dE,{"data-state":Hg(f.open),role:"dialog",id:f.contentId,...g,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),Wg="PopoverClose",xE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Hn(Wg,n);return h.jsx(at.button,{type:"button",...s,ref:t,onClick:mt(e.onClick,()=>r.onOpenChange(!1))})});xE.displayName=Wg;var bE="PopoverArrow",wE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Ti(n);return h.jsx(fE,{...r,...s,ref:t})});wE.displayName=bE;function Hg(e){return e?"open":"closed"}var SE=Lg,_E=Bg,TE=Ug,qg=$g;const Zg=SE,Kg=_E,Yl=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>h.jsx(TE,{children:h.jsx(qg,{ref:r,align:t,sideOffset:n,className:W("z-50 w-32 rounded-[2px] s bg-white p-4 text-popover-foreground drop-shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...s})}));Yl.displayName=qg.displayName;const _f=e=>{let t;const n=new Set,s=(l,u)=>{const d=typeof l=="function"?l(t):l;if(!Object.is(d,t)){const f=t;t=u??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(g=>g(t,f))}},r=()=>t,a={setState:s,getState:r,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(s,r,a);return a},CE=e=>e?_f(e):_f,EE=e=>e;function AE(e,t=EE){const n=ve.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ve.useDebugValue(n),n}const PE=e=>{const t=CE(e),n=s=>AE(t,s);return Object.assign(n,t),n},Gg=e=>PE;function RE(e,t){let n;try{n=e()}catch{return}return{getItem:r=>{var i;const o=c=>c===null?null:JSON.parse(c,void 0),a=(i=n.getItem(r))!=null?i:null;return a instanceof Promise?a.then(o):o(a)},setItem:(r,i)=>n.setItem(r,JSON.stringify(i,void 0)),removeItem:r=>n.removeItem(r)}}const pc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return pc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return pc(s)(n)}}}},NE=(e,t)=>(n,s,r)=>{let i={storage:RE(()=>localStorage),partialize:p=>p,version:0,merge:(p,y)=>({...y,...p}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...p)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...p)},s,r);const u=()=>{const p=i.partialize({...s()});return l.setItem(i.name,{state:p,version:i.version})},d=r.setState;r.setState=(p,y)=>{d(p,y),u()};const f=e((...p)=>{n(...p),u()},s,r);r.getInitialState=()=>f;let g;const m=()=>{var p,y;if(!l)return;o=!1,a.forEach(b=>{var w;return b((w=s())!=null?w:f)});const v=((y=i.onRehydrateStorage)==null?void 0:y.call(i,(p=s())!=null?p:f))||void 0;return pc(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(T=>[!0,T]):[!0,w]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,b.state];return[!1,void 0]}).then(b=>{var w;const[T,S]=b;if(g=i.merge(S,(w=s())!=null?w:f),n(g,!0),T)return u()}).then(()=>{v==null||v(g,void 0),g=s(),o=!0,c.forEach(b=>b(g))}).catch(b=>{v==null||v(void 0,b)})};return r.persist={setOptions:p=>{i={...i,...p},p.storage&&(l=p.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:p=>(a.add(p),()=>{a.delete(p)}),onFinishHydration:p=>(c.add(p),()=>{c.delete(p)})},i.skipHydration||m(),g||f},kE=NE;var Et=(e=>(e.EN="en",e.RU="ru",e))(Et||{});const Ee=Gg()(kE(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),jE=[{lang:Et.RU},{lang:Et.EN}],Tf=({className:e,light:t=!1})=>{const n=Ee(o=>o.lang),s=Ee(o=>o.setLang),[r,i]=x.useState(!1);return h.jsxs(Zg,{open:r,onOpenChange:()=>i(!r),children:[h.jsxs(Kg,{className:W("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[h.jsx("img",{src:n===Et.RU?"/ru.svg":"/english.svg",alt:""}),n===Et.RU?"Ру":"En",h.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.23021 8.01443C4.35919 7.70304 4.66305 7.5 5.00011 7.5H15.0001C15.3372 7.5 15.641 7.70304 15.77 8.01443C15.899 8.32583 15.8277 8.68426 15.5894 8.92259L10.5894 13.9226C10.2639 14.248 9.73629 14.248 9.41085 13.9226L4.41085 8.92259C4.17252 8.68426 4.10122 8.32583 4.23021 8.01443ZM7.01195 9.16667L10.0001 12.1548L12.9883 9.16667H7.01195Z",fill:t?"#fff":"#000"})})]}),h.jsx(Yl,{className:"flex flex-col gap-6",children:jE.filter(o=>o.lang!==n).map((o,a)=>h.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[h.jsx("img",{src:o.lang===Et.RU?"/ru.svg":"/english.svg",alt:"flag"}),h.jsx("h5",{children:o.lang===Et.RU?"Русский":"English"})]},a))})]})},Qg=Hh,Xg=qh,OE=Zh,Yg=x.forwardRef(({className:e,...t},n)=>h.jsx(Oo,{ref:n,className:W("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Yg.displayName=Oo.displayName;const Jl=x.forwardRef(({className:e,children:t,...n},s)=>h.jsxs(OE,{children:[h.jsx(Yg,{}),h.jsxs(Do,{ref:s,className:W("fixed left-[50%] top-[50%] z-50 grid 2xl:w-[40%] lg:w-1/2 w-[70%] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background md:p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,h.jsxs(Xc,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[h.jsx(Jc,{className:"size-6"}),h.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Jl.displayName=Do.displayName;const DE=x.forwardRef(({className:e,...t},n)=>h.jsx(Mo,{ref:n,className:W("text-lg font-semibold leading-none tracking-tight",e),...t}));DE.displayName=Mo.displayName;const ME=x.forwardRef(({className:e,...t},n)=>h.jsx(Fo,{ref:n,className:W("text-sm text-muted-foreground",e),...t}));ME.displayName=Fo.displayName;const Cf=(e,t,n)=>{if(e&&"reportValidity"in e){const s=B(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Jg=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?Cf(s.ref,n,e):s.refs&&s.refs.forEach(r=>Cf(r,n,e))}},FE=(e,t)=>{t.shouldUseNativeValidation&&Jg(e,t);const n={};for(const s in e){const r=B(t.fields,s),i=Object.assign(e[s]||{},{ref:r&&r.ref});if(LE(t.names||Object.keys(e),s)){const o=Object.assign({},B(n,s));xe(o,"root",i),xe(n,s,o)}else xe(n,s,i)}return n},LE=(e,t)=>e.some(n=>n.startsWith(t+"."));var IE=function(e,t){for(var n={};e.length;){var s=e[0],r=s.code,i=s.message,o=s.path.join(".");if(!n[o])if("unionErrors"in s){var a=s.unionErrors[0].errors[0];n[o]={message:a.message,type:a.code}}else n[o]={message:i,type:r};if("unionErrors"in s&&s.unionErrors.forEach(function(u){return u.errors.forEach(function(d){return e.push(d)})}),t){var c=n[o].types,l=c&&c[s.code];n[o]=Xm(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},VE=function(e,t,n){return n===void 0&&(n={}),function(s,r,i){try{return Promise.resolve(function(o,a){try{var c=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](s,t)).then(function(l){return i.shouldUseNativeValidation&&Jg({},i),{errors:{},values:n.raw?s:l}})}catch(l){return a(l)}return c&&c.then?c.then(void 0,a):c}(0,function(o){if(function(a){return Array.isArray(a==null?void 0:a.errors)}(o))return{values:{},errors:FE(IE(o.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw o}))}catch(o){return Promise.reject(o)}}},me;(function(e){e.assertEqual=r=>r;function t(r){}e.assertIs=t;function n(r){throw new Error}e.assertNever=n,e.arrayToEnum=r=>{const i={};for(const o of r)i[o]=o;return i},e.getValidEnumValues=r=>{const i=e.objectKeys(r).filter(a=>typeof r[r[a]]!="number"),o={};for(const a of i)o[a]=r[a];return e.objectValues(o)},e.objectValues=r=>e.objectKeys(r).map(function(i){return r[i]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{const i=[];for(const o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.push(o);return i},e.find=(r,i)=>{for(const o of r)if(i(o))return o},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&isFinite(r)&&Math.floor(r)===r;function s(r,i=" | "){return r.map(o=>typeof o=="string"?`'${o}'`:o).join(i)}e.joinValues=s,e.jsonStringifyReplacer=(r,i)=>typeof i=="bigint"?i.toString():i})(me||(me={}));var mc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(mc||(mc={}));const H=me.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),fn=e=>{switch(typeof e){case"undefined":return H.undefined;case"string":return H.string;case"number":return isNaN(e)?H.nan:H.number;case"boolean":return H.boolean;case"function":return H.function;case"bigint":return H.bigint;case"symbol":return H.symbol;case"object":return Array.isArray(e)?H.array:e===null?H.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?H.promise:typeof Map<"u"&&e instanceof Map?H.map:typeof Set<"u"&&e instanceof Set?H.set:typeof Date<"u"&&e instanceof Date?H.date:H.object;default:return H.unknown}},M=me.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),BE=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class vt extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(i){return i.message},s={_errors:[]},r=i=>{for(const o of i.issues)if(o.code==="invalid_union")o.unionErrors.map(r);else if(o.code==="invalid_return_type")r(o.returnTypeError);else if(o.code==="invalid_arguments")r(o.argumentsError);else if(o.path.length===0)s._errors.push(n(o));else{let a=s,c=0;for(;c<o.path.length;){const l=o.path[c];c===o.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(o))):a[l]=a[l]||{_errors:[]},a=a[l],c++}}};return r(this),s}static assert(t){if(!(t instanceof vt))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,me.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},s=[];for(const r of this.issues)r.path.length>0?(n[r.path[0]]=n[r.path[0]]||[],n[r.path[0]].push(t(r))):s.push(t(r));return{formErrors:s,fieldErrors:n}}get formErrors(){return this.flatten()}}vt.create=e=>new vt(e);const ir=(e,t)=>{let n;switch(e.code){case M.invalid_type:e.received===H.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case M.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,me.jsonStringifyReplacer)}`;break;case M.unrecognized_keys:n=`Unrecognized key(s) in object: ${me.joinValues(e.keys,", ")}`;break;case M.invalid_union:n="Invalid input";break;case M.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${me.joinValues(e.options)}`;break;case M.invalid_enum_value:n=`Invalid enum value. Expected ${me.joinValues(e.options)}, received '${e.received}'`;break;case M.invalid_arguments:n="Invalid function arguments";break;case M.invalid_return_type:n="Invalid function return type";break;case M.invalid_date:n="Invalid date";break;case M.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:me.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case M.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case M.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case M.custom:n="Invalid input";break;case M.invalid_intersection_types:n="Intersection results could not be merged";break;case M.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case M.not_finite:n="Number must be finite";break;default:n=t.defaultError,me.assertNever(e)}return{message:n}};let ey=ir;function UE(e){ey=e}function bo(){return ey}const wo=e=>{const{data:t,path:n,errorMaps:s,issueData:r}=e,i=[...n,...r.path||[]],o={...r,path:i};if(r.message!==void 0)return{...r,path:i,message:r.message};let a="";const c=s.filter(l=>!!l).slice().reverse();for(const l of c)a=l(o,{data:t,defaultError:a}).message;return{...r,path:i,message:a}},$E=[];function z(e,t){const n=bo(),s=wo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ir?void 0:ir].filter(r=>!!r)});e.common.issues.push(s)}class Ye{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const s=[];for(const r of n){if(r.status==="aborted")return se;r.status==="dirty"&&t.dirty(),s.push(r.value)}return{status:t.value,value:s}}static async mergeObjectAsync(t,n){const s=[];for(const r of n){const i=await r.key,o=await r.value;s.push({key:i,value:o})}return Ye.mergeObjectSync(t,s)}static mergeObjectSync(t,n){const s={};for(const r of n){const{key:i,value:o}=r;if(i.status==="aborted"||o.status==="aborted")return se;i.status==="dirty"&&t.dirty(),o.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof o.value<"u"||r.alwaysSet)&&(s[i.value]=o.value)}return{status:t.value,value:s}}}const se=Object.freeze({status:"aborted"}),Ms=e=>({status:"dirty",value:e}),ot=e=>({status:"valid",value:e}),gc=e=>e.status==="aborted",yc=e=>e.status==="dirty",ys=e=>e.status==="valid",Gr=e=>typeof Promise<"u"&&e instanceof Promise;function So(e,t,n,s){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t.get(e)}function ty(e,t,n,s,r){if(typeof t=="function"?e!==t||!0:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t.set(e,n),n}var Q;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(Q||(Q={}));var Rr,Nr;class rn{constructor(t,n,s,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=s,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Ef=(e,t)=>{if(ys(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new vt(e.common.issues);return this._error=n,this._error}}};function oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:s,description:r}=e;if(t&&(n||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:(o,a)=>{var c,l;const{message:u}=e;return o.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:(c=u??s)!==null&&c!==void 0?c:a.defaultError}:o.code!=="invalid_type"?{message:a.defaultError}:{message:(l=u??n)!==null&&l!==void 0?l:a.defaultError}},description:r}}class le{get description(){return this._def.description}_getType(t){return fn(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ye,ctx:{common:t.parent.common,data:t.data,parsedType:fn(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Gr(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const s=this.safeParse(t,n);if(s.success)return s.data;throw s.error}safeParse(t,n){var s;const r={common:{issues:[],async:(s=n==null?void 0:n.async)!==null&&s!==void 0?s:!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fn(t)},i=this._parseSync({data:t,path:r.path,parent:r});return Ef(r,i)}"~validate"(t){var n,s;const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fn(t)};if(!this["~standard"].async)try{const i=this._parseSync({data:t,path:[],parent:r});return ys(i)?{value:i.value}:{issues:r.common.issues}}catch(i){!((s=(n=i==null?void 0:i.message)===null||n===void 0?void 0:n.toLowerCase())===null||s===void 0)&&s.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:r}).then(i=>ys(i)?{value:i.value}:{issues:r.common.issues})}async parseAsync(t,n){const s=await this.safeParseAsync(t,n);if(s.success)return s.data;throw s.error}async safeParseAsync(t,n){const s={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:fn(t)},r=this._parse({data:t,path:s.path,parent:s}),i=await(Gr(r)?r:Promise.resolve(r));return Ef(s,i)}refine(t,n){const s=r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n;return this._refinement((r,i)=>{const o=t(r),a=()=>i.addIssue({code:M.custom,...s(r)});return typeof Promise<"u"&&o instanceof Promise?o.then(c=>c?!0:(a(),!1)):o?!0:(a(),!1)})}refinement(t,n){return this._refinement((s,r)=>t(s)?!0:(r.addIssue(typeof n=="function"?n(s,r):n),!1))}_refinement(t){return new Vt({schema:this,typeName:te.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return nn.create(this,this._def)}nullable(){return zn.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mt.create(this)}promise(){return ar.create(this,this._def)}or(t){return Jr.create([this,t],this._def)}and(t){return ei.create(this,t,this._def)}transform(t){return new Vt({...oe(this._def),schema:this,typeName:te.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ii({...oe(this._def),innerType:this,defaultValue:n,typeName:te.ZodDefault})}brand(){return new eu({typeName:te.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new oi({...oe(this._def),innerType:this,catchValue:n,typeName:te.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ci.create(this,t)}readonly(){return ai.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const zE=/^c[^\s-]{8,}$/i,WE=/^[0-9a-z]+$/,HE=/^[0-9A-HJKMNP-TV-Z]{26}$/i,qE=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,ZE=/^[a-z0-9_-]{21}$/i,KE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,GE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,QE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,XE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ja;const YE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,JE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,eA=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,tA=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,sA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ny="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",rA=new RegExp(`^${ny}$`);function sy(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`),t}function iA(e){return new RegExp(`^${sy(e)}$`)}function ry(e){let t=`${ny}T${sy(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function oA(e,t){return!!((t==="v4"||!t)&&YE.test(e)||(t==="v6"||!t)&&eA.test(e))}function aA(e,t){if(!KE.test(e))return!1;try{const[n]=e.split("."),s=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(s));return!(typeof r!="object"||r===null||!r.typ||!r.alg||t&&r.alg!==t)}catch{return!1}}function cA(e,t){return!!((t==="v4"||!t)&&JE.test(e)||(t==="v6"||!t)&&tA.test(e))}class Dt extends le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==H.string){const i=this._getOrReturnCtx(t);return z(i,{code:M.invalid_type,expected:H.string,received:i.parsedType}),se}const s=new Ye;let r;for(const i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:M.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="max")t.data.length>i.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:M.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),s.dirty());else if(i.kind==="length"){const o=t.data.length>i.value,a=t.data.length<i.value;(o||a)&&(r=this._getOrReturnCtx(t,r),o?z(r,{code:M.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&z(r,{code:M.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),s.dirty())}else if(i.kind==="email")QE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"email",code:M.invalid_string,message:i.message}),s.dirty());else if(i.kind==="emoji")ja||(ja=new RegExp(XE,"u")),ja.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"emoji",code:M.invalid_string,message:i.message}),s.dirty());else if(i.kind==="uuid")qE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"uuid",code:M.invalid_string,message:i.message}),s.dirty());else if(i.kind==="nanoid")ZE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"nanoid",code:M.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid")zE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cuid",code:M.invalid_string,message:i.message}),s.dirty());else if(i.kind==="cuid2")WE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cuid2",code:M.invalid_string,message:i.message}),s.dirty());else if(i.kind==="ulid")HE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"ulid",code:M.invalid_string,message:i.message}),s.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),z(r,{validation:"url",code:M.invalid_string,message:i.message}),s.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"regex",code:M.invalid_string,message:i.message}),s.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(r=this._getOrReturnCtx(t,r),z(r,{code:M.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),s.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(r=this._getOrReturnCtx(t,r),z(r,{code:M.invalid_string,validation:{startsWith:i.value},message:i.message}),s.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(r=this._getOrReturnCtx(t,r),z(r,{code:M.invalid_string,validation:{endsWith:i.value},message:i.message}),s.dirty()):i.kind==="datetime"?ry(i).test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:M.invalid_string,validation:"datetime",message:i.message}),s.dirty()):i.kind==="date"?rA.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:M.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?iA(i).test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:M.invalid_string,validation:"time",message:i.message}),s.dirty()):i.kind==="duration"?GE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"duration",code:M.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?oA(t.data,i.version)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"ip",code:M.invalid_string,message:i.message}),s.dirty()):i.kind==="jwt"?aA(t.data,i.alg)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"jwt",code:M.invalid_string,message:i.message}),s.dirty()):i.kind==="cidr"?cA(t.data,i.version)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"cidr",code:M.invalid_string,message:i.message}),s.dirty()):i.kind==="base64"?nA.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"base64",code:M.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?sA.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"base64url",code:M.invalid_string,message:i.message}),s.dirty()):me.assertNever(i);return{status:s.value,value:t.data}}_regex(t,n,s){return this.refinement(r=>t.test(r),{validation:n,code:M.invalid_string,...Q.errToObj(s)})}_addCheck(t){return new Dt({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Q.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Q.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Q.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Q.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Q.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Q.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Q.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Q.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Q.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Q.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Q.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Q.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Q.errToObj(t)})}datetime(t){var n,s;return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(n=t==null?void 0:t.offset)!==null&&n!==void 0?n:!1,local:(s=t==null?void 0:t.local)!==null&&s!==void 0?s:!1,...Q.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...Q.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...Q.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Q.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...Q.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Q.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Q.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Q.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Q.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Q.errToObj(n)})}nonempty(t){return this.min(1,Q.errToObj(t))}trim(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Dt({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Dt.create=e=>{var t;return new Dt({checks:[],typeName:te.ZodString,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};function lA(e,t){const n=(e.toString().split(".")[1]||"").length,s=(t.toString().split(".")[1]||"").length,r=n>s?n:s,i=parseInt(e.toFixed(r).replace(".","")),o=parseInt(t.toFixed(r).replace(".",""));return i%o/Math.pow(10,r)}class Bn extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==H.number){const i=this._getOrReturnCtx(t);return z(i,{code:M.invalid_type,expected:H.number,received:i.parsedType}),se}let s;const r=new Ye;for(const i of this._def.checks)i.kind==="int"?me.isInteger(t.data)||(s=this._getOrReturnCtx(t,s),z(s,{code:M.invalid_type,expected:"integer",received:"float",message:i.message}),r.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),z(s,{code:M.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),z(s,{code:M.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),r.dirty()):i.kind==="multipleOf"?lA(t.data,i.value)!==0&&(s=this._getOrReturnCtx(t,s),z(s,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(s=this._getOrReturnCtx(t,s),z(s,{code:M.not_finite,message:i.message}),r.dirty()):me.assertNever(i);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new Bn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Bn({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Q.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Q.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Q.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Q.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&me.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(n===null||s.value>n)&&(n=s.value):s.kind==="max"&&(t===null||s.value<t)&&(t=s.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Bn.create=e=>new Bn({checks:[],typeName:te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Un extends le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==H.bigint)return this._getInvalidInput(t);let s;const r=new Ye;for(const i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(s=this._getOrReturnCtx(t,s),z(s,{code:M.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(s=this._getOrReturnCtx(t,s),z(s,{code:M.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),r.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(s=this._getOrReturnCtx(t,s),z(s,{code:M.not_multiple_of,multipleOf:i.value,message:i.message}),r.dirty()):me.assertNever(i);return{status:r.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return z(n,{code:M.invalid_type,expected:H.bigint,received:n.parsedType}),se}gte(t,n){return this.setLimit("min",t,!0,Q.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Q.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Q.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Q.toString(n))}setLimit(t,n,s,r){return new Un({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Un({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Q.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Q.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Q.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Un.create=e=>{var t;return new Un({checks:[],typeName:te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class Qr extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==H.boolean){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:H.boolean,received:s.parsedType}),se}return ot(t.data)}}Qr.create=e=>new Qr({typeName:te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class vs extends le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==H.date){const i=this._getOrReturnCtx(t);return z(i,{code:M.invalid_type,expected:H.date,received:i.parsedType}),se}if(isNaN(t.data.getTime())){const i=this._getOrReturnCtx(t);return z(i,{code:M.invalid_date}),se}const s=new Ye;let r;for(const i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:M.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),s.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(r=this._getOrReturnCtx(t,r),z(r,{code:M.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),s.dirty()):me.assertNever(i);return{status:s.value,value:new Date(t.data.getTime())}}_addCheck(t){return new vs({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Q.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Q.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}vs.create=e=>new vs({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:te.ZodDate,...oe(e)});class _o extends le{_parse(t){if(this._getType(t)!==H.symbol){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:H.symbol,received:s.parsedType}),se}return ot(t.data)}}_o.create=e=>new _o({typeName:te.ZodSymbol,...oe(e)});class Xr extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:H.undefined,received:s.parsedType}),se}return ot(t.data)}}Xr.create=e=>new Xr({typeName:te.ZodUndefined,...oe(e)});class Yr extends le{_parse(t){if(this._getType(t)!==H.null){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:H.null,received:s.parsedType}),se}return ot(t.data)}}Yr.create=e=>new Yr({typeName:te.ZodNull,...oe(e)});class or extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return ot(t.data)}}or.create=e=>new or({typeName:te.ZodAny,...oe(e)});class fs extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ot(t.data)}}fs.create=e=>new fs({typeName:te.ZodUnknown,...oe(e)});class xn extends le{_parse(t){const n=this._getOrReturnCtx(t);return z(n,{code:M.invalid_type,expected:H.never,received:n.parsedType}),se}}xn.create=e=>new xn({typeName:te.ZodNever,...oe(e)});class To extends le{_parse(t){if(this._getType(t)!==H.undefined){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:H.void,received:s.parsedType}),se}return ot(t.data)}}To.create=e=>new To({typeName:te.ZodVoid,...oe(e)});class Mt extends le{_parse(t){const{ctx:n,status:s}=this._processInputParams(t),r=this._def;if(n.parsedType!==H.array)return z(n,{code:M.invalid_type,expected:H.array,received:n.parsedType}),se;if(r.exactLength!==null){const o=n.data.length>r.exactLength.value,a=n.data.length<r.exactLength.value;(o||a)&&(z(n,{code:o?M.too_big:M.too_small,minimum:a?r.exactLength.value:void 0,maximum:o?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),s.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(z(n,{code:M.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),s.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(z(n,{code:M.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),s.dirty()),n.common.async)return Promise.all([...n.data].map((o,a)=>r.type._parseAsync(new rn(n,o,n.path,a)))).then(o=>Ye.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new rn(n,o,n.path,a)));return Ye.mergeArray(s,i)}get element(){return this._def.type}min(t,n){return new Mt({...this._def,minLength:{value:t,message:Q.toString(n)}})}max(t,n){return new Mt({...this._def,maxLength:{value:t,message:Q.toString(n)}})}length(t,n){return new Mt({...this._def,exactLength:{value:t,message:Q.toString(n)}})}nonempty(t){return this.min(1,t)}}Mt.create=(e,t)=>new Mt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:te.ZodArray,...oe(t)});function Rs(e){if(e instanceof Ae){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=nn.create(Rs(s))}return new Ae({...e._def,shape:()=>t})}else return e instanceof Mt?new Mt({...e._def,type:Rs(e.element)}):e instanceof nn?nn.create(Rs(e.unwrap())):e instanceof zn?zn.create(Rs(e.unwrap())):e instanceof on?on.create(e.items.map(t=>Rs(t))):e}class Ae extends le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=me.objectKeys(t);return this._cached={shape:t,keys:n}}_parse(t){if(this._getType(t)!==H.object){const l=this._getOrReturnCtx(t);return z(l,{code:M.invalid_type,expected:H.object,received:l.parsedType}),se}const{status:s,ctx:r}=this._processInputParams(t),{shape:i,keys:o}=this._getCached(),a=[];if(!(this._def.catchall instanceof xn&&this._def.unknownKeys==="strip"))for(const l in r.data)o.includes(l)||a.push(l);const c=[];for(const l of o){const u=i[l],d=r.data[l];c.push({key:{status:"valid",value:l},value:u._parse(new rn(r,d,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof xn){const l=this._def.unknownKeys;if(l==="passthrough")for(const u of a)c.push({key:{status:"valid",value:u},value:{status:"valid",value:r.data[u]}});else if(l==="strict")a.length>0&&(z(r,{code:M.unrecognized_keys,keys:a}),s.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const l=this._def.catchall;for(const u of a){const d=r.data[u];c.push({key:{status:"valid",value:u},value:l._parse(new rn(r,d,r.path,u)),alwaysSet:u in r.data})}}return r.common.async?Promise.resolve().then(async()=>{const l=[];for(const u of c){const d=await u.key,f=await u.value;l.push({key:d,value:f,alwaysSet:u.alwaysSet})}return l}).then(l=>Ye.mergeObjectSync(s,l)):Ye.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Ae({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,s)=>{var r,i,o,a;const c=(o=(i=(r=this._def).errorMap)===null||i===void 0?void 0:i.call(r,n,s).message)!==null&&o!==void 0?o:s.defaultError;return n.code==="unrecognized_keys"?{message:(a=Q.errToObj(t).message)!==null&&a!==void 0?a:c}:{message:c}}}:{}})}strip(){return new Ae({...this._def,unknownKeys:"strip"})}passthrough(){return new Ae({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ae({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ae({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:te.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Ae({...this._def,catchall:t})}pick(t){const n={};return me.objectKeys(t).forEach(s=>{t[s]&&this.shape[s]&&(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}omit(t){const n={};return me.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ae({...this._def,shape:()=>n})}deepPartial(){return Rs(this)}partial(t){const n={};return me.objectKeys(this.shape).forEach(s=>{const r=this.shape[s];t&&!t[s]?n[s]=r:n[s]=r.optional()}),new Ae({...this._def,shape:()=>n})}required(t){const n={};return me.objectKeys(this.shape).forEach(s=>{if(t&&!t[s])n[s]=this.shape[s];else{let i=this.shape[s];for(;i instanceof nn;)i=i._def.innerType;n[s]=i}}),new Ae({...this._def,shape:()=>n})}keyof(){return iy(me.objectKeys(this.shape))}}Ae.create=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strip",catchall:xn.create(),typeName:te.ZodObject,...oe(t)});Ae.strictCreate=(e,t)=>new Ae({shape:()=>e,unknownKeys:"strict",catchall:xn.create(),typeName:te.ZodObject,...oe(t)});Ae.lazycreate=(e,t)=>new Ae({shape:e,unknownKeys:"strip",catchall:xn.create(),typeName:te.ZodObject,...oe(t)});class Jr extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=this._def.options;function r(i){for(const a of i)if(a.result.status==="valid")return a.result;for(const a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;const o=i.map(a=>new vt(a.ctx.common.issues));return z(n,{code:M.invalid_union,unionErrors:o}),se}if(n.common.async)return Promise.all(s.map(async i=>{const o={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:o}),ctx:o}})).then(r);{let i;const o=[];for(const c of s){const l={...n,common:{...n.common,issues:[]},parent:null},u=c._parseSync({data:n.data,path:n.path,parent:l});if(u.status==="valid")return u;u.status==="dirty"&&!i&&(i={result:u,ctx:l}),l.common.issues.length&&o.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;const a=o.map(c=>new vt(c));return z(n,{code:M.invalid_union,unionErrors:a}),se}}get options(){return this._def.options}}Jr.create=(e,t)=>new Jr({options:e,typeName:te.ZodUnion,...oe(t)});const un=e=>e instanceof ni?un(e.schema):e instanceof Vt?un(e.innerType()):e instanceof si?[e.value]:e instanceof $n?e.options:e instanceof ri?me.objectValues(e.enum):e instanceof ii?un(e._def.innerType):e instanceof Xr?[void 0]:e instanceof Yr?[null]:e instanceof nn?[void 0,...un(e.unwrap())]:e instanceof zn?[null,...un(e.unwrap())]:e instanceof eu||e instanceof ai?un(e.unwrap()):e instanceof oi?un(e._def.innerType):[];class Go extends le{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.object)return z(n,{code:M.invalid_type,expected:H.object,received:n.parsedType}),se;const s=this.discriminator,r=n.data[s],i=this.optionsMap.get(r);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(z(n,{code:M.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),se)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,s){const r=new Map;for(const i of n){const o=un(i.shape[t]);if(!o.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of o){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,i)}}return new Go({typeName:te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...oe(s)})}}function vc(e,t){const n=fn(e),s=fn(t);if(e===t)return{valid:!0,data:e};if(n===H.object&&s===H.object){const r=me.objectKeys(t),i=me.objectKeys(e).filter(a=>r.indexOf(a)!==-1),o={...e,...t};for(const a of i){const c=vc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===H.array&&s===H.array){if(e.length!==t.length)return{valid:!1};const r=[];for(let i=0;i<e.length;i++){const o=e[i],a=t[i],c=vc(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===H.date&&s===H.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class ei extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(gc(i)||gc(o))return se;const a=vc(i.value,o.value);return a.valid?((yc(i)||yc(o))&&n.dirty(),{status:n.value,value:a.data}):(z(s,{code:M.invalid_intersection_types}),se)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([i,o])=>r(i,o)):r(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}ei.create=(e,t,n)=>new ei({left:e,right:t,typeName:te.ZodIntersection,...oe(n)});class on extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.array)return z(s,{code:M.invalid_type,expected:H.array,received:s.parsedType}),se;if(s.data.length<this._def.items.length)return z(s,{code:M.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),se;!this._def.rest&&s.data.length>this._def.items.length&&(z(s,{code:M.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const i=[...s.data].map((o,a)=>{const c=this._def.items[a]||this._def.rest;return c?c._parse(new rn(s,o,s.path,a)):null}).filter(o=>!!o);return s.common.async?Promise.all(i).then(o=>Ye.mergeArray(n,o)):Ye.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new on({...this._def,rest:t})}}on.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new on({items:e,typeName:te.ZodTuple,rest:null,...oe(t)})};class ti extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.object)return z(s,{code:M.invalid_type,expected:H.object,received:s.parsedType}),se;const r=[],i=this._def.keyType,o=this._def.valueType;for(const a in s.data)r.push({key:i._parse(new rn(s,a,s.path,a)),value:o._parse(new rn(s,s.data[a],s.path,a)),alwaysSet:a in s.data});return s.common.async?Ye.mergeObjectAsync(n,r):Ye.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof le?new ti({keyType:t,valueType:n,typeName:te.ZodRecord,...oe(s)}):new ti({keyType:Dt.create(),valueType:t,typeName:te.ZodRecord,...oe(n)})}}class Co extends le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.map)return z(s,{code:M.invalid_type,expected:H.map,received:s.parsedType}),se;const r=this._def.keyType,i=this._def.valueType,o=[...s.data.entries()].map(([a,c],l)=>({key:r._parse(new rn(s,a,s.path,[l,"key"])),value:i._parse(new rn(s,c,s.path,[l,"value"]))}));if(s.common.async){const a=new Map;return Promise.resolve().then(async()=>{for(const c of o){const l=await c.key,u=await c.value;if(l.status==="aborted"||u.status==="aborted")return se;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}})}else{const a=new Map;for(const c of o){const l=c.key,u=c.value;if(l.status==="aborted"||u.status==="aborted")return se;(l.status==="dirty"||u.status==="dirty")&&n.dirty(),a.set(l.value,u.value)}return{status:n.value,value:a}}}}Co.create=(e,t,n)=>new Co({valueType:t,keyType:e,typeName:te.ZodMap,...oe(n)});class xs extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==H.set)return z(s,{code:M.invalid_type,expected:H.set,received:s.parsedType}),se;const r=this._def;r.minSize!==null&&s.data.size<r.minSize.value&&(z(s,{code:M.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&s.data.size>r.maxSize.value&&(z(s,{code:M.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());const i=this._def.valueType;function o(c){const l=new Set;for(const u of c){if(u.status==="aborted")return se;u.status==="dirty"&&n.dirty(),l.add(u.value)}return{status:n.value,value:l}}const a=[...s.data.values()].map((c,l)=>i._parse(new rn(s,c,s.path,l)));return s.common.async?Promise.all(a).then(c=>o(c)):o(a)}min(t,n){return new xs({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new xs({...this._def,maxSize:{value:t,message:Q.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}xs.create=(e,t)=>new xs({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...oe(t)});class Vs extends le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.function)return z(n,{code:M.invalid_type,expected:H.function,received:n.parsedType}),se;function s(a,c){return wo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,bo(),ir].filter(l=>!!l),issueData:{code:M.invalid_arguments,argumentsError:c}})}function r(a,c){return wo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,bo(),ir].filter(l=>!!l),issueData:{code:M.invalid_return_type,returnTypeError:c}})}const i={errorMap:n.common.contextualErrorMap},o=n.data;if(this._def.returns instanceof ar){const a=this;return ot(async function(...c){const l=new vt([]),u=await a._def.args.parseAsync(c,i).catch(g=>{throw l.addIssue(s(c,g)),l}),d=await Reflect.apply(o,this,u);return await a._def.returns._def.type.parseAsync(d,i).catch(g=>{throw l.addIssue(r(d,g)),l})})}else{const a=this;return ot(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new vt([s(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new vt([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Vs({...this._def,args:on.create(t).rest(fs.create())})}returns(t){return new Vs({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Vs({args:t||on.create([]).rest(fs.create()),returns:n||fs.create(),typeName:te.ZodFunction,...oe(s)})}}class ni extends le{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}ni.create=(e,t)=>new ni({getter:e,typeName:te.ZodLazy,...oe(t)});class si extends le{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return z(n,{received:n.data,code:M.invalid_literal,expected:this._def.value}),se}return{status:"valid",value:t.data}}get value(){return this._def.value}}si.create=(e,t)=>new si({value:e,typeName:te.ZodLiteral,...oe(t)});function iy(e,t){return new $n({values:e,typeName:te.ZodEnum,...oe(t)})}class $n extends le{constructor(){super(...arguments),Rr.set(this,void 0)}_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),s=this._def.values;return z(n,{expected:me.joinValues(s),received:n.parsedType,code:M.invalid_type}),se}if(So(this,Rr)||ty(this,Rr,new Set(this._def.values)),!So(this,Rr).has(t.data)){const n=this._getOrReturnCtx(t),s=this._def.values;return z(n,{received:n.data,code:M.invalid_enum_value,options:s}),se}return ot(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return $n.create(t,{...this._def,...n})}exclude(t,n=this._def){return $n.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Rr=new WeakMap;$n.create=iy;class ri extends le{constructor(){super(...arguments),Nr.set(this,void 0)}_parse(t){const n=me.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==H.string&&s.parsedType!==H.number){const r=me.objectValues(n);return z(s,{expected:me.joinValues(r),received:s.parsedType,code:M.invalid_type}),se}if(So(this,Nr)||ty(this,Nr,new Set(me.getValidEnumValues(this._def.values))),!So(this,Nr).has(t.data)){const r=me.objectValues(n);return z(s,{received:s.data,code:M.invalid_enum_value,options:r}),se}return ot(t.data)}get enum(){return this._def.values}}Nr=new WeakMap;ri.create=(e,t)=>new ri({values:e,typeName:te.ZodNativeEnum,...oe(t)});class ar extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==H.promise&&n.common.async===!1)return z(n,{code:M.invalid_type,expected:H.promise,received:n.parsedType}),se;const s=n.parsedType===H.promise?n.data:Promise.resolve(n.data);return ot(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ar.create=(e,t)=>new ar({type:e,typeName:te.ZodPromise,...oe(t)});class Vt extends le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===te.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=this._def.effect||null,i={addIssue:o=>{z(s,o),o.fatal?n.abort():n.dirty()},get path(){return s.path}};if(i.addIssue=i.addIssue.bind(i),r.type==="preprocess"){const o=r.transform(s.data,i);if(s.common.async)return Promise.resolve(o).then(async a=>{if(n.value==="aborted")return se;const c=await this._def.schema._parseAsync({data:a,path:s.path,parent:s});return c.status==="aborted"?se:c.status==="dirty"||n.value==="dirty"?Ms(c.value):c});{if(n.value==="aborted")return se;const a=this._def.schema._parseSync({data:o,path:s.path,parent:s});return a.status==="aborted"?se:a.status==="dirty"||n.value==="dirty"?Ms(a.value):a}}if(r.type==="refinement"){const o=a=>{const c=r.refinement(a,i);if(s.common.async)return Promise.resolve(c);if(c instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(s.common.async===!1){const a=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(a=>a.status==="aborted"?se:(a.status==="dirty"&&n.dirty(),o(a.value).then(()=>({status:n.value,value:a.value}))))}if(r.type==="transform")if(s.common.async===!1){const o=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!ys(o))return o;const a=r.transform(o.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(o=>ys(o)?Promise.resolve(r.transform(o.value,i)).then(a=>({status:n.value,value:a})):o);me.assertNever(r)}}Vt.create=(e,t,n)=>new Vt({schema:e,typeName:te.ZodEffects,effect:t,...oe(n)});Vt.createWithPreprocess=(e,t,n)=>new Vt({schema:t,effect:{type:"preprocess",transform:e},typeName:te.ZodEffects,...oe(n)});class nn extends le{_parse(t){return this._getType(t)===H.undefined?ot(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}nn.create=(e,t)=>new nn({innerType:e,typeName:te.ZodOptional,...oe(t)});class zn extends le{_parse(t){return this._getType(t)===H.null?ot(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}zn.create=(e,t)=>new zn({innerType:e,typeName:te.ZodNullable,...oe(t)});class ii extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===H.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ii.create=(e,t)=>new ii({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class oi extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return Gr(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new vt(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new vt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}oi.create=(e,t)=>new oi({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Eo extends le{_parse(t){if(this._getType(t)!==H.nan){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:H.nan,received:s.parsedType}),se}return{status:"valid",value:t.data}}}Eo.create=e=>new Eo({typeName:te.ZodNaN,...oe(e)});const uA=Symbol("zod_brand");class eu extends le{_parse(t){const{ctx:n}=this._processInputParams(t),s=n.data;return this._def.type._parse({data:s,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ci extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.common.async)return(async()=>{const i=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return i.status==="aborted"?se:i.status==="dirty"?(n.dirty(),Ms(i.value)):this._def.out._parseAsync({data:i.value,path:s.path,parent:s})})();{const r=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return r.status==="aborted"?se:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:s.path,parent:s})}}static create(t,n){return new Ci({in:t,out:n,typeName:te.ZodPipeline})}}class ai extends le{_parse(t){const n=this._def.innerType._parse(t),s=r=>(ys(r)&&(r.value=Object.freeze(r.value)),r);return Gr(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}ai.create=(e,t)=>new ai({innerType:e,typeName:te.ZodReadonly,...oe(t)});function oy(e,t={},n){return e?or.create().superRefine((s,r)=>{var i,o;if(!e(s)){const a=typeof t=="function"?t(s):typeof t=="string"?{message:t}:t,c=(o=(i=a.fatal)!==null&&i!==void 0?i:n)!==null&&o!==void 0?o:!0,l=typeof a=="string"?{message:a}:a;r.addIssue({code:"custom",...l,fatal:c})}}):or.create()}const dA={object:Ae.lazycreate};var te;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(te||(te={}));const fA=(e,t={message:`Input not instance of ${e.name}`})=>oy(n=>n instanceof e,t),ay=Dt.create,cy=Bn.create,hA=Eo.create,pA=Un.create,ly=Qr.create,mA=vs.create,gA=_o.create,yA=Xr.create,vA=Yr.create,xA=or.create,bA=fs.create,wA=xn.create,SA=To.create,_A=Mt.create,TA=Ae.create,CA=Ae.strictCreate,EA=Jr.create,AA=Go.create,PA=ei.create,RA=on.create,NA=ti.create,kA=Co.create,jA=xs.create,OA=Vs.create,DA=ni.create,MA=si.create,FA=$n.create,LA=ri.create,IA=ar.create,Af=Vt.create,VA=nn.create,BA=zn.create,UA=Vt.createWithPreprocess,$A=Ci.create,zA=()=>ay().optional(),WA=()=>cy().optional(),HA=()=>ly().optional(),qA={string:e=>Dt.create({...e,coerce:!0}),number:e=>Bn.create({...e,coerce:!0}),boolean:e=>Qr.create({...e,coerce:!0}),bigint:e=>Un.create({...e,coerce:!0}),date:e=>vs.create({...e,coerce:!0})},ZA=se;var Pf=Object.freeze({__proto__:null,defaultErrorMap:ir,setErrorMap:UE,getErrorMap:bo,makeIssue:wo,EMPTY_PATH:$E,addIssueToContext:z,ParseStatus:Ye,INVALID:se,DIRTY:Ms,OK:ot,isAborted:gc,isDirty:yc,isValid:ys,isAsync:Gr,get util(){return me},get objectUtil(){return mc},ZodParsedType:H,getParsedType:fn,ZodType:le,datetimeRegex:ry,ZodString:Dt,ZodNumber:Bn,ZodBigInt:Un,ZodBoolean:Qr,ZodDate:vs,ZodSymbol:_o,ZodUndefined:Xr,ZodNull:Yr,ZodAny:or,ZodUnknown:fs,ZodNever:xn,ZodVoid:To,ZodArray:Mt,ZodObject:Ae,ZodUnion:Jr,ZodDiscriminatedUnion:Go,ZodIntersection:ei,ZodTuple:on,ZodRecord:ti,ZodMap:Co,ZodSet:xs,ZodFunction:Vs,ZodLazy:ni,ZodLiteral:si,ZodEnum:$n,ZodNativeEnum:ri,ZodPromise:ar,ZodEffects:Vt,ZodTransformer:Vt,ZodOptional:nn,ZodNullable:zn,ZodDefault:ii,ZodCatch:oi,ZodNaN:Eo,BRAND:uA,ZodBranded:eu,ZodPipeline:Ci,ZodReadonly:ai,custom:oy,Schema:le,ZodSchema:le,late:dA,get ZodFirstPartyTypeKind(){return te},coerce:qA,any:xA,array:_A,bigint:pA,boolean:ly,date:mA,discriminatedUnion:AA,effect:Af,enum:FA,function:OA,instanceof:fA,intersection:PA,lazy:DA,literal:MA,map:kA,nan:hA,nativeEnum:LA,never:wA,null:vA,nullable:BA,number:cy,object:TA,oboolean:HA,onumber:WA,optional:VA,ostring:zA,pipeline:$A,preprocess:UA,promise:IA,record:NA,set:jA,strictObject:CA,string:ay,symbol:gA,transformer:Af,tuple:RA,undefined:yA,union:EA,unknown:bA,void:SA,NEVER:ZA,ZodIssueCode:M,quotelessJson:BE,ZodError:vt});const Oa=(e,t)=>Ee(s=>s.lang)==="ru"?e:t;function uy(e,t){return function(){return e.apply(t,arguments)}}const{toString:KA}=Object.prototype,{getPrototypeOf:tu}=Object,Qo=(e=>t=>{const n=KA.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$t=e=>(e=e.toLowerCase(),t=>Qo(t)===e),Xo=e=>t=>typeof t===e,{isArray:mr}=Array,ci=Xo("undefined");function GA(e){return e!==null&&!ci(e)&&e.constructor!==null&&!ci(e.constructor)&&xt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const dy=$t("ArrayBuffer");function QA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&dy(e.buffer),t}const XA=Xo("string"),xt=Xo("function"),fy=Xo("number"),Yo=e=>e!==null&&typeof e=="object",YA=e=>e===!0||e===!1,eo=e=>{if(Qo(e)!=="object")return!1;const t=tu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},JA=$t("Date"),eP=$t("File"),tP=$t("Blob"),nP=$t("FileList"),sP=e=>Yo(e)&&xt(e.pipe),rP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||xt(e.append)&&((t=Qo(e))==="formdata"||t==="object"&&xt(e.toString)&&e.toString()==="[object FormData]"))},iP=$t("URLSearchParams"),[oP,aP,cP,lP]=["ReadableStream","Request","Response","Headers"].map($t),uP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ei(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),mr(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(s=0;s<o;s++)a=i[s],t.call(null,e[a],a,e)}}function hy(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,py=e=>!ci(e)&&e!==ts;function xc(){const{caseless:e}=py(this)&&this||{},t={},n=(s,r)=>{const i=e&&hy(t,r)||r;eo(t[i])&&eo(s)?t[i]=xc(t[i],s):eo(s)?t[i]=xc({},s):mr(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&Ei(arguments[s],n);return t}const dP=(e,t,n,{allOwnKeys:s}={})=>(Ei(t,(r,i)=>{n&&xt(r)?e[i]=uy(r,n):e[i]=r},{allOwnKeys:s}),e),fP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),hP=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pP=(e,t,n,s)=>{let r,i,o;const a={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],(!s||s(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=n!==!1&&tu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},mP=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},gP=e=>{if(!e)return null;if(mr(e))return e;let t=e.length;if(!fy(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&tu(Uint8Array)),vP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},xP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},bP=$t("HTMLFormElement"),wP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Rf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),SP=$t("RegExp"),my=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Ei(n,(r,i)=>{let o;(o=t(r,i,e))!==!1&&(s[i]=o||r)}),Object.defineProperties(e,s)},_P=e=>{my(e,(t,n)=>{if(xt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(xt(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},TP=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return mr(e)?s(e):s(String(e).split(t)),n},CP=()=>{},EP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Da="abcdefghijklmnopqrstuvwxyz",Nf="0123456789",gy={DIGIT:Nf,ALPHA:Da,ALPHA_DIGIT:Da+Da.toUpperCase()+Nf},AP=(e=16,t=gy.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function PP(e){return!!(e&&xt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const RP=e=>{const t=new Array(10),n=(s,r)=>{if(Yo(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=mr(s)?[]:{};return Ei(s,(o,a)=>{const c=n(o,r+1);!ci(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return n(e,0)},NP=$t("AsyncFunction"),kP=e=>e&&(Yo(e)||xt(e))&&xt(e.then)&&xt(e.catch),yy=((e,t)=>e?setImmediate:t?((n,s)=>(ts.addEventListener("message",({source:r,data:i})=>{r===ts&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),ts.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xt(ts.postMessage)),jP=typeof queueMicrotask<"u"?queueMicrotask.bind(ts):typeof process<"u"&&process.nextTick||yy,N={isArray:mr,isArrayBuffer:dy,isBuffer:GA,isFormData:rP,isArrayBufferView:QA,isString:XA,isNumber:fy,isBoolean:YA,isObject:Yo,isPlainObject:eo,isReadableStream:oP,isRequest:aP,isResponse:cP,isHeaders:lP,isUndefined:ci,isDate:JA,isFile:eP,isBlob:tP,isRegExp:SP,isFunction:xt,isStream:sP,isURLSearchParams:iP,isTypedArray:yP,isFileList:nP,forEach:Ei,merge:xc,extend:dP,trim:uP,stripBOM:fP,inherits:hP,toFlatObject:pP,kindOf:Qo,kindOfTest:$t,endsWith:mP,toArray:gP,forEachEntry:vP,matchAll:xP,isHTMLForm:bP,hasOwnProperty:Rf,hasOwnProp:Rf,reduceDescriptors:my,freezeMethods:_P,toObjectSet:TP,toCamelCase:wP,noop:CP,toFiniteNumber:EP,findKey:hy,global:ts,isContextDefined:py,ALPHABET:gy,generateString:AP,isSpecCompliantForm:PP,toJSONObject:RP,isAsyncFn:NP,isThenable:kP,setImmediate:yy,asap:jP};function ie(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r,this.status=r.status?r.status:null)}N.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:N.toJSONObject(this.config),code:this.code,status:this.status}}});const vy=ie.prototype,xy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xy[e]={value:e}});Object.defineProperties(ie,xy);Object.defineProperty(vy,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,i)=>{const o=Object.create(vy);return N.toFlatObject(e,o,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),ie.call(o,e.message,t,n,s,r),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const OP=null;function bc(e){return N.isPlainObject(e)||N.isArray(e)}function by(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function kf(e,t,n){return e?e.concat(t).map(function(r,i){return r=by(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function DP(e){return N.isArray(e)&&!e.some(bc)}const MP=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function Jo(e,t,n){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,y){return!N.isUndefined(y[p])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(N.isDate(m))return m.toISOString();if(!c&&N.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(m)||N.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,p,y){let v=m;if(m&&!y&&typeof m=="object"){if(N.endsWith(p,"{}"))p=s?p:p.slice(0,-2),m=JSON.stringify(m);else if(N.isArray(m)&&DP(m)||(N.isFileList(m)||N.endsWith(p,"[]"))&&(v=N.toArray(m)))return p=by(p),v.forEach(function(w,T){!(N.isUndefined(w)||w===null)&&t.append(o===!0?kf([p],T,i):o===null?p:p+"[]",l(w))}),!1}return bc(m)?!0:(t.append(kf(y,p,i),l(m)),!1)}const d=[],f=Object.assign(MP,{defaultVisitor:u,convertValue:l,isVisitable:bc});function g(m,p){if(!N.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+p.join("."));d.push(m),N.forEach(m,function(v,b){(!(N.isUndefined(v)||v===null)&&r.call(t,v,N.isString(b)?b.trim():b,p,f))===!0&&g(v,p?p.concat(b):[b])}),d.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return g(e),t}function jf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function nu(e,t){this._pairs=[],e&&Jo(e,this,t)}const wy=nu.prototype;wy.append=function(t,n){this._pairs.push([t,n])};wy.toString=function(t){const n=t?function(s){return t.call(this,s,jf)}:jf;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function FP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Sy(e,t,n){if(!t)return e;const s=n&&n.encode||FP;N.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=N.isURLSearchParams(t)?t.toString():new nu(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Of{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){N.forEach(this.handlers,function(s){s!==null&&t(s)})}}const _y={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},LP=typeof URLSearchParams<"u"?URLSearchParams:nu,IP=typeof FormData<"u"?FormData:null,VP=typeof Blob<"u"?Blob:null,BP={isBrowser:!0,classes:{URLSearchParams:LP,FormData:IP,Blob:VP},protocols:["http","https","file","blob","url","data"]},su=typeof window<"u"&&typeof document<"u",wc=typeof navigator=="object"&&navigator||void 0,UP=su&&(!wc||["ReactNative","NativeScript","NS"].indexOf(wc.product)<0),$P=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zP=su&&window.location.href||"http://localhost",WP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:su,hasStandardBrowserEnv:UP,hasStandardBrowserWebWorkerEnv:$P,navigator:wc,origin:zP},Symbol.toStringTag,{value:"Module"})),Qe={...WP,...BP};function HP(e,t){return Jo(e,new Qe.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Qe.isNode&&N.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function qP(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZP(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function Ty(e){function t(n,s,r,i){let o=n[i++];if(o==="__proto__")return!0;const a=Number.isFinite(+o),c=i>=n.length;return o=!o&&N.isArray(r)?r.length:o,c?(N.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!N.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&N.isArray(r[o])&&(r[o]=ZP(r[o])),!a)}if(N.isFormData(e)&&N.isFunction(e.entries)){const n={};return N.forEachEntry(e,(s,r)=>{t(qP(s),r,n,0)}),n}return null}function KP(e,t,n){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Ai={transitional:_y,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=N.isObject(t);if(i&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return r?JSON.stringify(Ty(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t)||N.isReadableStream(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return HP(t,this.formSerializer).toString();if((a=N.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Jo(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),KP(t)):t}],transformResponse:[function(t){const n=this.transitional||Ai.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(N.isResponse(t)||N.isReadableStream(t))return t;if(t&&N.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?ie.from(a,ie.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Qe.classes.FormData,Blob:Qe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};N.forEach(["delete","get","head","post","put","patch"],e=>{Ai.headers[e]={}});const GP=N.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),QP=e=>{const t={};let n,s,r;return e&&e.split(`
`).forEach(function(o){r=o.indexOf(":"),n=o.substring(0,r).trim().toLowerCase(),s=o.substring(r+1).trim(),!(!n||t[n]&&GP[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Df=Symbol("internals");function Cr(e){return e&&String(e).trim().toLowerCase()}function to(e){return e===!1||e==null?e:N.isArray(e)?e.map(to):String(e)}function XP(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const YP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Ma(e,t,n,s,r){if(N.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!N.isString(t)){if(N.isString(s))return t.indexOf(s)!==-1;if(N.isRegExp(s))return s.test(t)}}function JP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function eR(e,t){const n=N.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class dt{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,l){const u=Cr(c);if(!u)throw new Error("header name must be a non-empty string");const d=N.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=to(a))}const o=(a,c)=>N.forEach(a,(l,u)=>i(l,u,c));if(N.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(N.isString(t)&&(t=t.trim())&&!YP(t))o(QP(t),n);else if(N.isHeaders(t))for(const[a,c]of t.entries())i(c,a,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=Cr(t),t){const s=N.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return XP(r);if(N.isFunction(n))return n.call(this,r,s);if(N.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Cr(t),t){const s=N.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Ma(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Cr(o),o){const a=N.findKey(s,o);a&&(!n||Ma(s,s[a],a,n))&&(delete s[a],r=!0)}}return N.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||Ma(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return N.forEach(this,(r,i)=>{const o=N.findKey(s,i);if(o){n[o]=to(r),delete n[i];return}const a=t?JP(i):String(i).trim();a!==i&&delete n[i],n[a]=to(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return N.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&N.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Df]=this[Df]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Cr(o);s[a]||(eR(r,o),s[a]=!0)}return N.isArray(t)?t.forEach(i):i(t),this}}dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.reduceDescriptors(dt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});N.freezeMethods(dt);function Fa(e,t){const n=this||Ai,s=t||n,r=dt.from(s.headers);let i=s.data;return N.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Cy(e){return!!(e&&e.__CANCEL__)}function gr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}N.inherits(gr,ie,{__CANCEL__:!0});function Ey(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 tR(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nR(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,f=0;for(;d!==r;)f+=n[d++],d=d%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),l-o<t)return;const g=u&&l-u;return g?Math.round(f*1e3/g):void 0}}function sR(e,t){let n=0,s=1e3/t,r,i;const o=(l,u=Date.now())=>{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 Ao=(e,t,n=3)=>{let s=0;const r=nR(50,250);return sR(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)},Mf=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Ff=e=>(...t)=>N.asap(()=>e(...t)),rR=Qe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Qe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Qe.origin),Qe.navigator&&/(msie|trident)/i.test(Qe.navigator.userAgent)):()=>!0,iR=Qe.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];N.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),N.isString(s)&&o.push("path="+s),N.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 oR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ay(e,t){return e&&!oR(t)?aR(e,t):t}const Lf=e=>e instanceof dt?{...e}:e;function bs(e,t){t=t||{};const n={};function s(l,u,d,f){return N.isPlainObject(l)&&N.isPlainObject(u)?N.merge.call({caseless:f},l,u):N.isPlainObject(u)?N.merge({},u):N.isArray(u)?u.slice():u}function r(l,u,d,f){if(N.isUndefined(u)){if(!N.isUndefined(l))return s(void 0,l,d,f)}else return s(l,u,d,f)}function i(l,u){if(!N.isUndefined(u))return s(void 0,u)}function o(l,u){if(N.isUndefined(u)){if(!N.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(Lf(l),Lf(u),d,!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,f=d(e[u],t[u],u);N.isUndefined(f)&&d!==a||(n[u]=f)}),n}const Py=e=>{const t=bs({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=dt.from(o),t.url=Sy(Ay(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(N.isFormData(n)){if(Qe.hasStandardBrowserEnv||Qe.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(Qe.hasStandardBrowserEnv&&(s&&N.isFunction(s)&&(s=s(t)),s||s!==!1&&rR(t.url))){const l=r&&i&&iR.read(i);l&&o.set(r,l)}return t},cR=typeof XMLHttpRequest<"u",lR=cR&&function(e){return new Promise(function(n,s){const r=Py(e);let i=r.data;const o=dt.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,f,g,m;function p(){g&&g(),m&&m(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout;function v(){if(!y)return;const w=dt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:w,config:e,request:y};Ey(function(P){n(P),p()},function(P){s(P),p()},S),y=null}"onloadend"in y?y.onloadend=v:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(v)},y.onabort=function(){y&&(s(new ie("Request aborted",ie.ECONNABORTED,e,y)),y=null)},y.onerror=function(){s(new ie("Network Error",ie.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let T=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const S=r.transitional||_y;r.timeoutErrorMessage&&(T=r.timeoutErrorMessage),s(new ie(T,S.clarifyTimeoutError?ie.ETIMEDOUT:ie.ECONNABORTED,e,y)),y=null},i===void 0&&o.setContentType(null),"setRequestHeader"in y&&N.forEach(o.toJSON(),function(T,S){y.setRequestHeader(S,T)}),N.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),a&&a!=="json"&&(y.responseType=r.responseType),l&&([f,m]=Ao(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,g]=Ao(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=w=>{y&&(s(!w||w.type?new gr(null,e,y):w),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const b=tR(r.url);if(b&&Qe.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}y.send(i||null)})},uR=(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 gr(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=()=>N.asap(a),c}},dR=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},fR=async function*(e,t){for await(const n of hR(e))yield*dR(n,t)},hR=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:s}=await t.read();if(n)break;yield s}}finally{await t.cancel()}},If=(e,t,n,s)=>{const r=fR(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 f=i+=d;n(f)}c.enqueue(new Uint8Array(u))}catch(l){throw a(l),l}},cancel(c){return a(c),r.return()}},{highWaterMark:2})},ea=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ry=ea&&typeof ReadableStream=="function",pR=ea&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Ny=(e,...t)=>{try{return!!e(...t)}catch{return!1}},mR=Ry&&Ny(()=>{let e=!1;const t=new Request(Qe.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Vf=64*1024,Sc=Ry&&Ny(()=>N.isReadableStream(new Response("").body)),Po={stream:Sc&&(e=>e.body)};ea&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Po[t]&&(Po[t]=N.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 gR=async e=>{if(e==null)return 0;if(N.isBlob(e))return e.size;if(N.isSpecCompliantForm(e))return(await new Request(Qe.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(N.isArrayBufferView(e)||N.isArrayBuffer(e))return e.byteLength;if(N.isURLSearchParams(e)&&(e=e+""),N.isString(e))return(await pR(e)).byteLength},yR=async(e,t)=>{const n=N.toFiniteNumber(e.getContentLength());return n??gR(t)},vR=ea&&(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:f}=Py(e);l=l?(l+"").toLowerCase():"text";let g=uR([r,i&&i.toAbortSignal()],o),m;const p=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&mR&&n!=="get"&&n!=="head"&&(y=await yR(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),A;if(N.isFormData(s)&&(A=S.headers.get("content-type"))&&u.setContentType(A),S.body){const[P,E]=Mf(y,Ao(Ff(c)));s=If(S.body,Vf,P,E)}}N.isString(d)||(d=d?"include":"omit");const v="credentials"in Request.prototype;m=new Request(t,{...f,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:v?d:void 0});let b=await fetch(m);const w=Sc&&(l==="stream"||l==="response");if(Sc&&(a||w&&p)){const S={};["status","statusText","headers"].forEach(j=>{S[j]=b[j]});const A=N.toFiniteNumber(b.headers.get("content-length")),[P,E]=a&&Mf(A,Ao(Ff(a),!0))||[];b=new Response(If(b.body,Vf,P,()=>{E&&E(),p&&p()}),S)}l=l||"text";let T=await Po[N.findKey(Po,l)||"text"](b,e);return!w&&p&&p(),await new Promise((S,A)=>{Ey(S,A,{data:T,headers:dt.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(v){throw p&&p(),v&&v.name==="TypeError"&&/fetch/i.test(v.message)?Object.assign(new ie("Network Error",ie.ERR_NETWORK,e,m),{cause:v.cause||v}):ie.from(v,v&&v.code,e,m)}}),_c={http:OP,xhr:lR,fetch:vR};N.forEach(_c,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bf=e=>`- ${e}`,xR=e=>N.isFunction(e)||e===null||e===!1,ky={getAdapter:e=>{e=N.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i<t;i++){n=e[i];let o;if(s=n,!xR(n)&&(s=_c[(o=String(n)).toLowerCase()],s===void 0))throw new ie(`Unknown adapter '${o}'`);if(s)break;r[o||"#"+i]=s}if(!s){const i=Object.entries(r).map(([a,c])=>`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(Bf).join(`
`):" "+Bf(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:_c};function La(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gr(null,e)}function Uf(e){return La(e),e.headers=dt.from(e.headers),e.data=Fa.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ky.getAdapter(e.adapter||Ai.adapter)(e).then(function(s){return La(e),s.data=Fa.call(e,e.transformResponse,s),s.headers=dt.from(s.headers),s},function(s){return Cy(s)||(La(e),s&&s.response&&(s.response.data=Fa.call(e,e.transformResponse,s.response),s.response.headers=dt.from(s.response.headers))),Promise.reject(s)})}const jy="1.7.9",ta={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ta[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const $f={};ta.transitional=function(t,n,s){function r(i,o){return"[Axios v"+jy+"] 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&&!$f[o]&&($f[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}};ta.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function bR(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 no={assertOptions:bR,validators:ta},Ht=no.validators;class hs{constructor(t){this.defaults=t,this.interceptors={request:new Of,response:new Of}}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=bs(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&no.assertOptions(s,{silentJSONParsing:Ht.transitional(Ht.boolean),forcedJSONParsing:Ht.transitional(Ht.boolean),clarifyTimeoutError:Ht.transitional(Ht.boolean)},!1),r!=null&&(N.isFunction(r)?n.paramsSerializer={serialize:r}:no.assertOptions(r,{encode:Ht.function,serialize:Ht.function},!0)),no.assertOptions(n,{baseUrl:Ht.spelling("baseURL"),withXsrfToken:Ht.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&N.merge(i.common,i[n.method]);i&&N.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=dt.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,f;if(!c){const m=[Uf.bind(this),void 0];for(m.unshift.apply(m,a),m.push.apply(m,l),f=m.length,u=Promise.resolve(n);d<f;)u=u.then(m[d++],m[d++]);return u}f=a.length;let g=n;for(d=0;d<f;){const m=a[d++],p=a[d++];try{g=m(g)}catch(y){p.call(this,y);break}}try{u=Uf.call(this,g)}catch(m){return Promise.reject(m)}for(d=0,f=l.length;d<f;)u=u.then(l[d++],l[d++]);return u}getUri(t){t=bs(this.defaults,t);const n=Ay(t.baseURL,t.url);return Sy(n,t.params,t.paramsSerializer)}}N.forEach(["delete","get","head","options"],function(t){hs.prototype[t]=function(n,s){return this.request(bs(s||{},{method:t,url:n,data:(s||{}).data}))}});N.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,a){return this.request(bs(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}hs.prototype[t]=n(),hs.prototype[t+"Form"]=n(!0)});class ru{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{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 gr(i,o,a),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=s=>{t.abort(s)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ru(function(r){t=r}),cancel:t}}}function wR(e){return function(n){return e.apply(null,n)}}function SR(e){return N.isObject(e)&&e.isAxiosError===!0}const Tc={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(Tc).forEach(([e,t])=>{Tc[t]=e});function Oy(e){const t=new hs(e),n=uy(hs.prototype.request,t);return N.extend(n,hs.prototype,t,{allOwnKeys:!0}),N.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Oy(bs(e,r))},n}const Ve=Oy(Ai);Ve.Axios=hs;Ve.CanceledError=gr;Ve.CancelToken=ru;Ve.isCancel=Cy;Ve.VERSION=jy;Ve.toFormData=Jo;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=wR;Ve.isAxiosError=SR;Ve.mergeConfig=bs;Ve.AxiosHeaders=dt;Ve.formToJSON=e=>Ty(N.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=ky.getAdapter;Ve.HttpStatusCode=Tc;Ve.default=Ve;const Je=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),SN=async e=>(await Je.post("book_stand_form",e)).status===201,_N=async e=>(await Je.post("become_sponsor_form",e)).status===201,TN=async e=>(await Je.post("contact_form",e)).status===201,_R=async e=>(await Je.post("subscribe_news_form",e)).status===201,TR=async(e,t)=>Je.get(`pages/${t}`,{headers:{"Accept-Language":e}}),CR=async e=>Je.get("stats",{headers:{"Accept-Language":e}}),ER=async e=>Je.get("contact_data",{headers:{"Accept-Language":e}}),AR=async e=>Je.get("industries",{headers:{"Accept-Language":e}}),PR=async e=>Je.get("exhibition_time",{headers:{"Accept-Language":e}}),RR=async e=>Je.get("news",{headers:{"Accept-Language":e}}),CN=async(e,t)=>Je.get(`news/${e}`,{headers:{"Accept-Language":t}}),EN=async e=>Je("participants",{headers:{"Accept-Language":e}}),NR=async e=>Je("photos/category/"+e),kR=async e=>Je("videos/category/"+e),jR=async e=>Je("sponsors_and_partners",{headers:{"Accept-Language":e}}),AN=async(e,t)=>Je("designers/category/"+t,{headers:{"Accept-Language":e}}),OR=Pf.object({email:Pf.string().email()}),Dy=({modal:e=!1})=>{var i,o;const[t,n]=x.useState(!1),s=YT({resolver:VE(OR),defaultValues:{email:""}});async function r(a){try{const c=await _R(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return h.jsx("form",{onSubmit:s.handleSubmit(r),className:W("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:h.jsxs(He,{className:W("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[h.jsx("h2",{className:"h2 !text-left",children:Oa("Подпишитесь на новости:","Subscribe to the news:")}),h.jsxs("div",{className:"relative",children:[h.jsx("input",{...s.register("email"),placeholder:"Email",className:W("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),h.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})]}),h.jsx(it,{loading:s.formState.isSubmitting,disabled:t,className:W({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Oa("Отправлено","Submitted"):Oa("Подписаться","Subscribe")})]})})},DR=({className:e,title:t})=>h.jsxs(Qg,{children:[h.jsx(Xg,{className:W("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),h.jsx(Jl,{children:h.jsx(Dy,{className:"",modal:!0})})]}),Cc=Gg()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),Ro=({title:e,dropDownContent:t,color:n,triggerClassName:s,children:r})=>{const[i,o]=x.useState(!1),a=Cc(c=>c.setSheet);return h.jsxs(Zg,{open:i,onOpenChange:()=>o(!i),children:[h.jsxs(Kg,{className:W("flex items-center gap-2",s),children:[e,r,!r&&h.jsx(My,{color:n})]}),h.jsx(Yl,{className:"w-fit px-0 cursor-pointer bg-surface_container",children:t&&t.map(c=>c.link?h.jsxs(Ce,{onClick:()=>{o(!1),a(!1)},className:"h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",target:c.blank??"",to:c.link,children:[c.text,c.blank&&h.jsx("img",{src:"/pdf.svg"})]},c.text):c.modal?h.jsx(DR,{title:c.text},c.text):h.jsx("div",{className:"h-14 px-3 py-2 flex items-center hover:bg-slate-300/50 transition-all",onClick:()=>{o(!1),a(!1)},children:c.text},c.text))})]})},My=({color:e="white",w:t="20",h:n="20"})=>h.jsx("svg",{width:t,height:n,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:h.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})}),qn=({className:e})=>h.jsx(He,{className:W("w-full py-20 h-full flex items-center justify-between",e),children:h.jsx(Jh,{className:"animate-spin mx-auto text-primary size-16"})});function MR(e){return Object.prototype.toString.call(e)==="[object Object]"}function zf(e){return MR(e)||Array.isArray(e)}function FR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function iu(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}`:!zf(a)||!zf(c)?a===c:iu(a,c)})}function Wf(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function LR(e,t){if(e.length!==t.length)return!1;const n=Wf(e),s=Wf(t);return n.every((r,i)=>{const o=s[i];return iu(r,o)})}function ou(e){return typeof e=="number"}function Ec(e){return typeof e=="string"}function na(e){return typeof e=="boolean"}function Hf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Re(e){return Math.abs(e)}function au(e){return Math.sign(e)}function Br(e,t){return Re(e-t)}function IR(e,t){if(e===0||t===0||Re(e)<=Re(t))return 0;const n=Br(Re(e),Re(t));return Re(n/e)}function VR(e){return Math.round(e*100)/100}function li(e){return ui(e).map(Number)}function Ft(e){return e[Pi(e)]}function Pi(e){return Math.max(0,e.length-1)}function cu(e,t){return t===Pi(e)}function qf(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function ui(e){return Object.keys(e)}function Fy(e,t){return[e,t].reduce((n,s)=>(ui(s).forEach(r=>{const i=n[r],o=s[r],a=Hf(i)&&Hf(o);n[r]=a?Fy(i,o):o}),n),{})}function Ac(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function BR(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 Ec(e)?n[e](c):e(t,c,l)}return{measure:o}}function di(){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 UR(e,t,n,s){const r=di(),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(y){if(!c)return;o||(o=y,n(),n());const v=y-o;for(o=y,a+=v;a>=i;)n(),a-=i;const b=a/i;s(b),c&&(c=t.requestAnimationFrame(d))}function f(){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:f,stop:g,update:n,render:s}}function $R(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:y}=m;return s?p:y}function u(){return s?"top":n?"right":"left"}function d(){return s?"bottom":n?"left":"right"}function f(m){return m*o}return{scroll:r,cross:i,startEdge:a,endEdge:c,measureSize:l,direction:f}}function ws(e=0,t=0){const n=Re(e-t);function s(l){return l<e}function r(l){return l>t}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 Ly(e,t,n){const{constrain:s}=ws(0,e),r=e+1;let i=o(t);function o(f){return n?Re((r+f)%r):s(f)}function a(){return i}function c(f){return i=o(f),d}function l(f){return u().set(a()+f)}function u(){return Ly(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function zR(e,t,n,s,r,i,o,a,c,l,u,d,f,g,m,p,y,v,b){const{cross:w,direction:T}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},P=di(),E=di(),j=ws(50,225).constrain(g.measure(20)),D={mouse:300,touch:400},L={mouse:500,touch:600},O=m?43:25;let $=!1,I=0,J=0,X=!1,q=!1,Z=!1,re=!1;function de(G){if(!b)return;function fe($e){(na(b)||b(G,$e))&&et($e)}const Se=t;P.add(Se,"dragstart",$e=>$e.preventDefault(),A).add(Se,"touchmove",()=>{},A).add(Se,"touchend",()=>{}).add(Se,"touchstart",fe).add(Se,"mousedown",fe).add(Se,"touchcancel",ye).add(Se,"contextmenu",ye).add(Se,"click",je,!0)}function ge(){P.clear(),E.clear()}function Be(){const G=re?n:t;E.add(G,"touchmove",ue,A).add(G,"touchend",ye).add(G,"mousemove",ue,A).add(G,"mouseup",ye)}function qe(G){const fe=G.nodeName||"";return S.includes(fe)}function Ze(){return(m?L:D)[re?"mouse":"touch"]}function Pt(G,fe){const Se=d.add(au(G)*-1),$e=u.byDistance(G,!m).distance;return m||Re(G)<j?$e:y&&fe?$e*.5:u.byIndex(Se.get(),0).distance}function et(G){const fe=Ac(G,s);re=fe,Z=m&&fe&&!G.buttons&&$,$=Br(r.get(),o.get())>=2,!(fe&&G.button!==0)&&(qe(G.target)||(X=!0,i.pointerDown(G),l.useFriction(0).useDuration(0),r.set(o),Be(),I=i.readPoint(G),J=i.readPoint(G,w),f.emit("pointerDown")))}function ue(G){if(!Ac(G,s)&&G.touches.length>=2)return ye(G);const Se=i.readPoint(G),$e=i.readPoint(G,w),ft=Br(Se,I),bt=Br($e,J);if(!q&&!re&&(!G.cancelable||(q=ft>bt,!q)))return ye(G);const _=i.pointerMove(G);ft>p&&(Z=!0),l.useFriction(.3).useDuration(.75),a.start(),r.add(T(_)),G.preventDefault()}function ye(G){const Se=u.byDistance(0,!1).index!==d.get(),$e=i.pointerUp(G)*Ze(),ft=Pt(T($e),Se),bt=IR($e,ft),_=O-10*bt,R=v+bt/50;q=!1,X=!1,E.clear(),l.useDuration(_).useFriction(R),c.distance(ft,!m),re=!1,f.emit("pointerUp")}function je(G){Z&&(G.stopPropagation(),G.preventDefault(),Z=!1)}function Le(){return X}return{init:de,destroy:ge,pointerDown:Le}}function WR(e,t){let s,r;function i(d){return d.timeStamp}function o(d,f){const m=`client${(f||e.scroll)==="x"?"X":"Y"}`;return(Ac(d,t)?d:d.touches[0])[m]}function a(d){return s=d,r=d,o(d)}function c(d){const f=o(d)-o(r),g=i(d)-i(s)>170;return r=d,g&&(s=d),f}function l(d){if(!s||!r)return 0;const f=o(r)-o(s),g=i(d)-i(s),m=i(d)-i(r)>170,p=f/g;return g&&!m&&Re(p)>.1?p:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function HR(){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 qR(e){function t(s){return e*(s/100)}return{measure:t}}function ZR(e,t,n,s,r,i,o){const a=[e].concat(s);let c,l,u=[],d=!1;function f(y){return r.measureSize(o.measure(y))}function g(y){if(!i)return;l=f(e),u=s.map(f);function v(b){for(const w of b){if(d)return;const T=w.target===e,S=s.indexOf(w.target),A=T?l:u[S],P=f(T?e:s[S]);if(Re(P-A)>=.5){y.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(na(i)||i(y,b))&&v(b)}),n.requestAnimationFrame(()=>{a.forEach(b=>c.observe(b))})}function m(){d=!0,c&&c.disconnect()}return{init:g,destroy:m}}function KR(e,t,n,s,r,i){let o=0,a=0,c=r,l=i,u=e.get(),d=0;function f(){const A=s.get()-e.get(),P=!c;let E=0;return P?(o=0,n.set(s),e.set(s),E=A):(n.set(e),o+=A/c,o*=l,u+=o,e.add(o),E=u-d),a=au(E),d=u,S}function g(){const A=s.get()-t.get();return Re(A)<.001}function m(){return c}function p(){return a}function y(){return o}function v(){return w(r)}function b(){return T(i)}function w(A){return c=A,S}function T(A){return l=A,S}const S={direction:p,duration:m,velocity:y,seek:f,settled:g,useBaseFriction:b,useBaseDuration:v,useFriction:T,useDuration:w};return S}function GR(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=ws(.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=Re(e[m]-t.get()),y=n.get()-t.get(),v=a.constrain(p/o);n.subtract(y*v),!g&&Re(y)<i&&(n.set(e.constrain(n.get())),s.useDuration(25).useBaseFriction())}function d(g){c=!g}return{shouldConstrain:l,constrain:u,toggleActive:d}}function QR(e,t,n,s,r){const i=ws(-t+e,0),o=d(),a=u(),c=f();function l(m,p){return Br(m,p)<=1}function u(){const m=o[0],p=Ft(o),y=o.lastIndexOf(m),v=o.indexOf(p)+1;return ws(y,v)}function d(){return n.map((m,p)=>{const{min:y,max:v}=i,b=i.constrain(m),w=!p,T=cu(n,p);return w?v:T||l(y,b)?y:l(v,b)?v:b}).map(m=>parseFloat(m.toFixed(3)))}function f(){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 XR(e,t,n){const s=t[0],r=n?s-e:Ft(t);return{limit:ws(r,s)}}function YR(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=ws(i,o);function l(f){return f===1?c(n.get()):f===-1?a(n.get()):!1}function u(f){if(!l(f))return;const g=e*(f*-1);s.forEach(m=>m.add(g))}return{loop:u}}function JR(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function e1(e,t,n,s,r){const{startEdge:i,endEdge:o}=e,{groupSlides:a}=r,c=d().map(t.measure),l=f(),u=g();function d(){return a(s).map(p=>Ft(p)[o]-p[0][i]).map(Re)}function f(){return s.map(p=>n[i]-p[i]).map(p=>-Re(p))}function g(){return a(l).map(p=>p[0]).map((p,y)=>p+c[y])}return{snaps:l,snapsAligned:u}}function t1(e,t,n,s,r,i){const{groupSlides:o}=r,{min:a,max:c}=s,l=u();function u(){const f=o(i),g=!e||t==="keepSnaps";return n.length===1?[i]:g?f:f.slice(a,c).map((m,p,y)=>{const v=!p,b=cu(y,p);if(v){const w=Ft(y[0])+1;return qf(w)}if(b){const w=Pi(i)-Ft(y)[0]+1;return qf(w,Ft(y)[0])}return m})}return{slideRegistry:l}}function n1(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((p,y)=>Re(p)-Re(y))[0]}function l(m){const p=e?o(m):a(m),y=t.map((b,w)=>({diff:u(b-p,0),index:w})).sort((b,w)=>Re(b.diff)-Re(w.diff)),{index:v}=y[0];return{index:v,distance:p}}function u(m,p){const y=[m,m+n,m-n];if(!e)return m;if(!p)return c(y);const v=y.filter(b=>au(b)===p);return v.length?c(v):Ft(y)-n}function d(m,p){const y=t[m]-r.get(),v=u(y,p);return{index:m,distance:v}}function f(m,p){const y=r.get()+m,{index:v,distance:b}=l(y),w=!e&&i(y);if(!p||w)return{index:v,distance:m};const T=t[v]-b,S=m+u(T,0);return{index:v,distance:S}}return{byDistance:f,byIndex:d,shortcut:u}}function s1(e,t,n,s,r,i,o){function a(d){const f=d.distance,g=d.index!==t.get();i.add(f),f&&(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,f){const g=r.byDistance(d,f);a(g)}function l(d,f){const g=t.clone().set(d),m=r.byIndex(g.get(),f);a(m)}return{distance:c,index:l}}function r1(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));ou(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((p,y)=>{i.add(p,"focus",v=>{(na(a)||a(g,v))&&m(y)},c)})}function d(g){g.code==="Tab"&&(l=new Date().getTime())}return{init:u}}function kr(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 ou(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function Iy(e,t){const n=e.scroll==="x"?o:a,s=t.style;let r=null,i=!1;function o(f){return`translate3d(${f}px,0px,0px)`}function a(f){return`translate3d(0px,${f}px,0px)`}function c(f){if(i)return;const g=VR(e.direction(f));g!==r&&(s.transform=n(g),r=g)}function l(f){i=!f}function u(){i||(s.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:l}}function i1(e,t,n,s,r,i,o,a,c){const u=li(r),d=li(r).reverse(),f=v().concat(b());function g(P,E){return P.reduce((j,D)=>j-r[D],E)}function m(P,E){return P.reduce((j,D)=>g(j,E)>0?j.concat([D]):j,[])}function p(P){return i.map((E,j)=>({start:E-s[j]+.5+P,end:E+t-.5+P}))}function y(P,E,j){const D=p(E);return P.map(L=>{const O=j?0:-n,$=j?n:0,I=j?"end":"start",J=D[L][I];return{index:L,loopPoint:J,slideLocation:kr(-1),translate:Iy(e,c[L]),target:()=>a.get()>J?O:$}})}function v(){const P=o[0],E=m(d,P);return y(E,n,!1)}function b(){const P=t-o[0]-1,E=m(u,P);return y(E,-n,!0)}function w(){return f.every(({index:P})=>{const E=u.filter(j=>j!==P);return g(E,t)<=.1})}function T(){f.forEach(P=>{const{target:E,translate:j,slideLocation:D}=P,L=E();L!==D.get()&&(j.to(L),D.set(L))})}function S(){f.forEach(P=>P.translate.clear())}return{canLoop:w,clear:S,loop:T,loopPoints:f}}function o1(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||(na(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function a1(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 y=t.indexOf(p.target);r[y]=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 ui(r).reduce((p,y)=>{const v=parseInt(y),{isIntersecting:b}=r[v];return(m&&b||!m&&!b)&&p.push(v),p},[])}function f(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:f}}function c1(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=p(),f=n.map(o),g=y();function m(){if(!l)return 0;const b=n[0];return Re(t[a]-b[a])}function p(){if(!l)return 0;const b=i.getComputedStyle(Ft(s));return parseFloat(b.getPropertyValue(`margin-${c}`))}function y(){return n.map((b,w,T)=>{const S=!w,A=cu(T,w);return S?f[w]+u:A?f[w]+d:T[w+1][a]-b[a]}).map(Re)}return{slideSizes:f,slideSizesWithGaps:g,startGap:u,endGap:d}}function l1(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,f=ou(n);function g(v,b){return li(v).filter(w=>w%b===0).map(w=>v.slice(w,w+b))}function m(v){return v.length?li(v).reduce((b,w,T)=>{const S=Ft(b)||0,A=S===0,P=w===Pi(v),E=r[l]-i[S][l],j=r[l]-i[w][u],D=!s&&A?d(o):0,L=!s&&P?d(a):0,O=Re(j-L-(E+D));return T&&O>t+c&&b.push(w),P&&b.push(v.length),b},[]).map((b,w,T)=>{const S=Math.max(T[w-1]||0);return v.slice(S,b)}):[]}function p(v){return f?g(v,n):m(v)}return{groupSlides:p}}function u1(e,t,n,s,r,i,o){const{align:a,axis:c,direction:l,startIndex:u,loop:d,duration:f,dragFree:g,dragThreshold:m,inViewThreshold:p,slidesToScroll:y,skipSnaps:v,containScroll:b,watchResize:w,watchSlides:T,watchDrag:S,watchFocus:A}=i,P=2,E=HR(),j=E.measure(t),D=n.map(E.measure),L=$R(c,l),O=L.measureSize(j),$=qR(O),I=BR(a,O),J=!d&&!!b,X=d||!!b,{slideSizes:q,slideSizesWithGaps:Z,startGap:re,endGap:de}=c1(L,j,D,n,X,r),ge=l1(L,O,y,d,j,D,re,de,P),{snaps:Be,snapsAligned:qe}=e1(L,I,j,D,ge),Ze=-Ft(Be)+Ft(Z),{snapsContained:Pt,scrollContainLimit:et}=QR(O,Ze,qe,b,P),ue=J?Pt:qe,{limit:ye}=XR(Ze,ue,d),je=Ly(Pi(ue),u,d),Le=je.clone(),we=li(n),G=({dragHandler:Wt,scrollBody:Kn,scrollBounds:vr,options:{loop:Gn}})=>{Gn||vr.constrain(Wt.pointerDown()),Kn.seek()},fe=({scrollBody:Wt,translate:Kn,location:vr,offsetLocation:Gn,previousLocation:sa,scrollLooper:Ni,slideLooper:ev,dragHandler:tv,animation:nv,eventHandler:pu,scrollBounds:sv,options:{loop:mu}},gu)=>{const yu=Wt.settled(),rv=!sv.shouldConstrain(),vu=mu?yu:yu&&rv;vu&&!tv.pointerDown()&&(nv.stop(),pu.emit("settle")),vu||pu.emit("scroll");const iv=vr.get()*gu+sa.get()*(1-gu);Gn.set(iv),mu&&(Ni.loop(Wt.direction()),ev.loop()),Kn.to(Gn.get())},Se=UR(s,r,()=>G(yr),Wt=>fe(yr,Wt)),$e=.68,ft=ue[je.get()],bt=kr(ft),_=kr(ft),R=kr(ft),k=kr(ft),U=KR(bt,R,_,k,f,$e),V=n1(d,ue,Ze,ye,k),F=s1(Se,je,Le,U,V,k,o),Y=JR(ye),ae=di(),Ie=a1(t,n,o,p),{slideRegistry:Oe}=t1(J,b,ue,et,ge,we),zt=r1(e,n,Oe,F,U,ae,o,A),yr={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:j,slideRects:D,animation:Se,axis:L,dragHandler:zR(L,e,s,r,k,WR(L,r),bt,Se,F,U,V,je,o,$,g,m,v,$e,S),eventStore:ae,percentOfView:$,index:je,indexPrevious:Le,limit:ye,location:bt,offsetLocation:R,previousLocation:_,options:i,resizeHandler:ZR(t,o,r,n,L,w,E),scrollBody:U,scrollBounds:GR(ye,R,k,U,$),scrollLooper:YR(Ze,ye,R,[bt,R,_,k]),scrollProgress:Y,scrollSnapList:ue.map(Y.get),scrollSnaps:ue,scrollTarget:V,scrollTo:F,slideLooper:i1(L,O,Ze,q,Z,Be,ue,R,n),slideFocus:zt,slidesHandler:o1(t,o,T),slidesInView:Ie,slideIndexes:we,slideRegistry:Oe,slidesToScroll:ge,target:k,translate:Iy(L,t)};return yr}function d1(){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 f1={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 h1(e){function t(i,o){return Fy(i,o||{})}function n(i){const o=i.breakpoints||{},a=ui(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=>ui(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function p1(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 No(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=h1(r),o=p1(i),a=di(),c=d1(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:g,emit:m}=c,p=L;let y=!1,v,b=l(f1,No.globalOptions),w=l(b),T=[],S,A,P;function E(){const{container:we,slides:G}=w;A=(Ec(we)?e.querySelector(we):we)||e.children[0];const Se=Ec(G)?A.querySelectorAll(G):G;P=[].slice.call(Se||A.children)}function j(we){const G=u1(e,A,P,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const fe=Object.assign({},we,{loop:!1});return j(fe)}return G}function D(we,G){y||(b=l(b,we),w=u(b),T=G||T,E(),v=j(w),d([b,...T.map(({options:fe})=>fe)]).forEach(fe=>a.add(fe,"change",L)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(Le),v.eventHandler.init(Le),v.resizeHandler.init(Le),v.slidesHandler.init(Le),v.options.loop&&v.slideLooper.loop(),A.offsetParent&&P.length&&v.dragHandler.init(Le),S=o.init(Le,T)))}function L(we,G){const fe=ge();O(),D(l({startIndex:fe},we),G),c.emit("reInit")}function O(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),o.destroy(),a.clear()}function $(){y||(y=!0,a.clear(),O(),c.emit("destroy"),c.clear())}function I(we,G,fe){!w.active||y||(v.scrollBody.useBaseFriction().useDuration(G===!0?0:w.duration),v.scrollTo.index(we,fe||0))}function J(we){const G=v.index.add(1).get();I(G,we,-1)}function X(we){const G=v.index.add(-1).get();I(G,we,1)}function q(){return v.index.add(1).get()!==ge()}function Z(){return v.index.add(-1).get()!==ge()}function re(){return v.scrollSnapList}function de(){return v.scrollProgress.get(v.location.get())}function ge(){return v.index.get()}function Be(){return v.indexPrevious.get()}function qe(){return v.slidesInView.get()}function Ze(){return v.slidesInView.get(!1)}function Pt(){return S}function et(){return v}function ue(){return e}function ye(){return A}function je(){return P}const Le={canScrollNext:q,canScrollPrev:Z,containerNode:ye,internalEngine:et,destroy:$,off:g,on:f,emit:m,plugins:Pt,previousScrollSnap:Be,reInit:p,rootNode:ue,scrollNext:J,scrollPrev:X,scrollProgress:de,scrollSnapList:re,scrollTo:I,selectedScrollSnap:ge,slideNodes:je,slidesInView:qe,slidesNotInView:Ze};return D(t,n),setTimeout(()=>c.emit("init"),0),Le}No.globalOptions=void 0;function Zn(e={},t=[]){const n=x.useRef(e),s=x.useRef(t),[r,i]=x.useState(),[o,a]=x.useState(),c=x.useCallback(()=>{r&&r.reInit(n.current,s.current)},[r]);return x.useEffect(()=>{iu(n.current,e)||(n.current=e,c())},[e,c]),x.useEffect(()=>{LR(s.current,t)||(s.current=t,c())},[t,c]),x.useEffect(()=>{if(FR()&&o){No.globalOptions=Zn.globalOptions;const l=No(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}Zn.globalOptions=void 0;const m1=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],PN=({className:e,setState:t,state:n,data:s=m1})=>{const r=Ee(m=>m.lang),i=uo("(min-width: 768px)"),[o,a]=x.useState({left:0,width:0}),[c,l]=Zn({axis:"x",align:"start",containScroll:"trimSnaps"},[]),u=x.useRef([]),d=x.useRef(null),f=x.useCallback(()=>{const m=u.current[n];if(m){if(i)a({left:m.offsetLeft,width:m.offsetWidth});else if(l){const p=l.rootNode(),y=l.containerNode();if(!p||!y)return;const v=y.scrollLeft,b=m.offsetLeft;a({left:b-v,width:m.offsetWidth})}}},[n,i,l]);x.useEffect(()=>{!i&&l||(l==null||l.scrollTo(n),f())},[l,n,f,i]),x.useEffect(()=>{if(l)return f(),l.on("scroll",f),l.on("resize",f),()=>{l.off("scroll",f),l.off("resize",f)}},[l,f]);const g=x.useCallback(m=>{t(m),!i&&l&&l.scrollTo(m)},[l,t,i]);return h.jsxs("div",{ref:d,className:W("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?h.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((m,p)=>h.jsx("button",{ref:y=>u.current[p]=y,role:"tab","aria-selected":n===p,className:W("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))}):h.jsx("div",{ref:c,className:"",role:"tablist",children:h.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,p)=>h.jsx("button",{ref:y=>u.current[p]=y,role:"tab","aria-selected":n===p,className:W("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))})}),h.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},RN=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Ee(l=>l.lang);return h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:W("flex border-b md:hidden py-2 border-outline_v",e),children:[h.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[h.jsx("div",{className:"flex items-center w-full",children:h.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[h.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Название":"Company",":"]}),h.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),h.jsx("div",{className:"flex items-center gap-3",children:h.jsx("div",{className:"flex items-center w-full",children:h.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[h.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Страна":"Country",":"]}),h.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[h.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),h.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),h.jsx("div",{className:"flex items-center ",children:h.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[h.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),h.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),h.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:h.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),h.jsxs("div",{className:W("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[h.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[h.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:h.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),h.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),h.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[h.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),h.jsx("h4",{className:"text-sm normal",children:i})]}),h.jsx("h3",{className:"text-sm normal md:ml-1 flex-[0_0_34.65%]",children:o})]})]})};var Ri=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(){}},Ss=typeof window>"u"||"Deno"in globalThis;function Tt(){}function g1(e,t){return typeof e=="function"?e(t):e}function Pc(e){return typeof e=="number"&&e>=0&&e!==1/0}function Vy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Bs(e,t){return typeof e=="function"?e(t):e}function jt(e,t){return typeof e=="function"?e(t):e}function Zf(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==lu(o,t.options))return!1}else if(!hi(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 Kf(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(fi(t.options.mutationKey)!==fi(i))return!1}else if(!hi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function lu(e,t){return((t==null?void 0:t.queryKeyHashFn)||fi)(e)}function fi(e){return JSON.stringify(e,(t,n)=>Nc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function hi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!hi(e[n],t[n])):!1}function By(e,t){if(e===t)return e;const n=Gf(e)&&Gf(t);if(n||Nc(e)&&Nc(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<o;l++){const u=n?l:i[l];(!n&&s.includes(u)||n)&&e[u]===void 0&&t[u]===void 0?(a[u]=void 0,c++):(a[u]=By(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&c++)}return r===o&&c===r?e:a}return t}function Rc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Gf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Nc(e){if(!Qf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Qf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Qf(e){return Object.prototype.toString.call(e)==="[object Object]"}function y1(e){return new Promise(t=>{setTimeout(t,e)})}function kc(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?By(e,t):t}function v1(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function x1(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var uu=Symbol();function Uy(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===uu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ns,An,Us,rh,b1=(rh=class extends Ri{constructor(){super();ne(this,ns);ne(this,An);ne(this,Us);K(this,Us,t=>{if(!Ss&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,An)||this.setEventListener(C(this,Us))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,An))==null||t.call(this),K(this,An,void 0))}setEventListener(t){var n;K(this,Us,t),(n=C(this,An))==null||n.call(this),K(this,An,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){C(this,ns)!==t&&(K(this,ns,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,ns)=="boolean"?C(this,ns):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ns=new WeakMap,An=new WeakMap,Us=new WeakMap,rh),du=new b1,$s,Pn,zs,ih,w1=(ih=class extends Ri{constructor(){super();ne(this,$s,!0);ne(this,Pn);ne(this,zs);K(this,zs,t=>{if(!Ss&&window.addEventListener){const n=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",s)}}})}onSubscribe(){C(this,Pn)||this.setEventListener(C(this,zs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Pn))==null||t.call(this),K(this,Pn,void 0))}setEventListener(t){var n;K(this,zs,t),(n=C(this,Pn))==null||n.call(this),K(this,Pn,t(this.setOnline.bind(this)))}setOnline(t){C(this,$s)!==t&&(K(this,$s,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return C(this,$s)}},$s=new WeakMap,Pn=new WeakMap,zs=new WeakMap,ih),ko=new w1;function jc(){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 S1(e){return Math.min(1e3*2**e,3e4)}function $y(e){return(e??"online")==="online"?ko.isOnline():!0}var zy=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ia(e){return e instanceof zy}function Wy(e){let t=!1,n=0,s=!1,r;const i=jc(),o=p=>{var y;s||(f(new zy(p)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>du.isFocused()&&(e.networkMode==="always"||ko.isOnline())&&e.canRun(),u=()=>$y(e.networkMode)&&e.canRun(),d=p=>{var y;s||(s=!0,(y=e.onSuccess)==null||y.call(e,p),r==null||r(),i.resolve(p))},f=p=>{var y;s||(s=!0,(y=e.onError)==null||y.call(e,p),r==null||r(),i.reject(p))},g=()=>new Promise(p=>{var y;r=v=>{(s||l())&&p(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var p;r=void 0,s||(p=e.onContinue)==null||p.call(e)}),m=()=>{if(s)return;let p;const y=n===0?e.initialPromise:void 0;try{p=y??e.fn()}catch(v){p=Promise.reject(v)}Promise.resolve(p).then(d).catch(v=>{var A;if(s)return;const b=e.retry??(Ss?0:3),w=e.retryDelay??S1,T=typeof w=="function"?w(n,v):w,S=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,v);if(t||!S){f(v);return}n++,(A=e.onFail)==null||A.call(e,n,v),y1(T).then(()=>l()?void 0:g()).then(()=>{t?f(v):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 _1(){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 We=_1(),ss,oh,Hy=(oh=class{constructor(){ne(this,ss)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pc(this.gcTime)&&K(this,ss,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ss?1/0:5*60*1e3))}clearGcTimeout(){C(this,ss)&&(clearTimeout(C(this,ss)),K(this,ss,void 0))}},ss=new WeakMap,oh),Ws,Hs,_t,rs,Ke,pi,is,Nt,dn,ah,T1=(ah=class extends Hy{constructor(t){super();ne(this,Nt);ne(this,Ws);ne(this,Hs);ne(this,_t);ne(this,rs);ne(this,Ke);ne(this,pi);ne(this,is);K(this,is,!1),K(this,pi,t.defaultOptions),this.setOptions(t.options),this.observers=[],K(this,rs,t.client),K(this,_t,C(this,rs).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,K(this,Ws,C1(this.options)),this.state=t.state??C(this,Ws),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ke))==null?void 0:t.promise}setOptions(t){this.options={...C(this,pi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,_t).remove(this)}setData(t,n){const s=kc(this.state.data,t,this.options);return he(this,Nt,dn).call(this,{data:s,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),s}setState(t,n){he(this,Nt,dn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=C(this,Ke))==null?void 0:s.promise;return(r=C(this,Ke))==null||r.cancel(t),n?n.then(Tt).catch(Tt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,Ws))}isActive(){return this.observers.some(t=>jt(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===uu||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||!Vy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ke))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ke))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,_t).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ke)&&(C(this,is)?C(this,Ke).cancel({revert:!0}):C(this,Ke).cancelRetry()),this.scheduleGc()),C(this,_t).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||he(this,Nt,dn).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(C(this,Ke))return C(this,Ke).continueRetry(),C(this,Ke).promise}if(t&&this.setOptions(t),!this.options.queryFn){const d=this.observers.find(f=>f.options.queryFn);d&&this.setOptions(d.options)}const s=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(K(this,is,!0),s.signal)})},i=()=>{const d=Uy(this.options,n),f={client:C(this,rs),queryKey:this.queryKey,meta:this.meta};return r(f),K(this,is,!1),this.options.persister?this.options.persister(d,f,this):d(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,rs),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),K(this,Hs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&he(this,Nt,dn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var f,g,m,p;Ia(d)&&d.silent||he(this,Nt,dn).call(this,{type:"error",error:d}),Ia(d)||((g=(f=C(this,_t).config).onError)==null||g.call(f,d,this),(p=(m=C(this,_t).config).onSettled)==null||p.call(m,this.state.data,d,this)),this.scheduleGc()};return K(this,Ke,Wy({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var f,g,m,p;if(d===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(d)}catch(y){a(y);return}(g=(f=C(this,_t).config).onSuccess)==null||g.call(f,d,this),(p=(m=C(this,_t).config).onSettled)==null||p.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{he(this,Nt,dn).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{he(this,Nt,dn).call(this,{type:"pause"})},onContinue:()=>{he(this,Nt,dn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),C(this,Ke).start()}},Ws=new WeakMap,Hs=new WeakMap,_t=new WeakMap,rs=new WeakMap,Ke=new WeakMap,pi=new WeakMap,is=new WeakMap,Nt=new WeakSet,dn=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,...qy(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 Ia(r)&&r.revert&&C(this,Hs)?{...C(this,Hs),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),We.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),C(this,_t).notify({query:this,type:"updated",action:t})})},ah);function qy(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:$y(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function C1(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 qt,ch,E1=(ch=class extends Ri{constructor(t={}){super();ne(this,qt);this.config=t,K(this,qt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??lu(r,n);let o=this.get(i);return o||(o=new T1({client:t,queryKey:r,queryHash:i,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(r)}),this.add(o)),o}add(t){C(this,qt).has(t.queryHash)||(C(this,qt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,qt).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,qt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){We.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,qt).get(t)}getAll(){return[...C(this,qt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Zf(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Zf(t,s)):n}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){We.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){We.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},qt=new WeakMap,ch),Zt,tt,os,Kt,Cn,lh,A1=(lh=class extends Hy{constructor(t){super();ne(this,Kt);ne(this,Zt);ne(this,tt);ne(this,os);this.mutationId=t.mutationId,K(this,tt,t.mutationCache),K(this,Zt,[]),this.state=t.state||P1(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,Zt).includes(t)||(C(this,Zt).push(t),this.clearGcTimeout(),C(this,tt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){K(this,Zt,C(this,Zt).filter(n=>n!==t)),this.scheduleGc(),C(this,tt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Zt).length||(this.state.status==="pending"?this.scheduleGc():C(this,tt).remove(this))}continue(){var t;return((t=C(this,os))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var r,i,o,a,c,l,u,d,f,g,m,p,y,v,b,w,T,S,A,P;K(this,os,Wy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,j)=>{he(this,Kt,Cn).call(this,{type:"failed",failureCount:E,error:j})},onPause:()=>{he(this,Kt,Cn).call(this,{type:"pause"})},onContinue:()=>{he(this,Kt,Cn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,tt).canRun(this)}));const n=this.state.status==="pending",s=!C(this,os).canStart();try{if(!n){he(this,Kt,Cn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=C(this,tt).config).onMutate)==null?void 0:i.call(r,t,this));const j=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));j!==this.state.context&&he(this,Kt,Cn).call(this,{type:"pending",context:j,variables:t,isPaused:s})}const E=await C(this,os).start();return await((l=(c=C(this,tt).config).onSuccess)==null?void 0:l.call(c,E,t,this.state.context,this)),await((d=(u=this.options).onSuccess)==null?void 0:d.call(u,E,t,this.state.context)),await((g=(f=C(this,tt).config).onSettled)==null?void 0:g.call(f,E,null,this.state.variables,this.state.context,this)),await((p=(m=this.options).onSettled)==null?void 0:p.call(m,E,null,t,this.state.context)),he(this,Kt,Cn).call(this,{type:"success",data:E}),E}catch(E){try{throw await((v=(y=C(this,tt).config).onError)==null?void 0:v.call(y,E,t,this.state.context,this)),await((w=(b=this.options).onError)==null?void 0:w.call(b,E,t,this.state.context)),await((S=(T=C(this,tt).config).onSettled)==null?void 0:S.call(T,void 0,E,this.state.variables,this.state.context,this)),await((P=(A=this.options).onSettled)==null?void 0:P.call(A,void 0,E,t,this.state.context)),E}finally{he(this,Kt,Cn).call(this,{type:"error",error:E})}}finally{C(this,tt).runNext(this)}}},Zt=new WeakMap,tt=new WeakMap,os=new WeakMap,Kt=new WeakSet,Cn=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),We.batch(()=>{C(this,Zt).forEach(s=>{s.onMutationUpdate(t)}),C(this,tt).notify({mutation:this,type:"updated",action:t})})},lh);function P1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,kt,mi,uh,R1=(uh=class extends Ri{constructor(t={}){super();ne(this,hn);ne(this,kt);ne(this,mi);this.config=t,K(this,hn,new Set),K(this,kt,new Map),K(this,mi,0)}build(t,n,s){const r=new A1({mutationCache:this,mutationId:++ki(this,mi)._,options:t.defaultMutationOptions(n),state:s});return this.add(r),r}add(t){C(this,hn).add(t);const n=zi(t);if(typeof n=="string"){const s=C(this,kt).get(n);s?s.push(t):C(this,kt).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,hn).delete(t)){const n=zi(t);if(typeof n=="string"){const s=C(this,kt).get(n);if(s)if(s.length>1){const r=s.indexOf(t);r!==-1&&s.splice(r,1)}else s[0]===t&&C(this,kt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=zi(t);if(typeof n=="string"){const s=C(this,kt).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=zi(t);if(typeof n=="string"){const r=(s=C(this,kt).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(){We.batch(()=>{C(this,hn).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,hn).clear(),C(this,kt).clear()})}getAll(){return Array.from(C(this,hn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>Kf(n,s))}findAll(t={}){return this.getAll().filter(n=>Kf(t,n))}notify(t){We.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return We.batch(()=>Promise.all(t.map(n=>n.continue().catch(Tt))))}},hn=new WeakMap,kt=new WeakMap,mi=new WeakMap,uh);function zi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Xf(e){return{onFetch:(t,n)=>{var u,d,f,g,m;const s=t.options,r=(f=(d=(u=t.fetchOptions)==null?void 0:u.meta)==null?void 0:d.fetchMore)==null?void 0:f.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 y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},v=Uy(t.options,t.fetchOptions),b=async(w,T,S)=>{if(p)return Promise.reject();if(T==null&&w.pages.length)return Promise.resolve(w);const A={client:t.client,queryKey:t.queryKey,pageParam:T,direction:S?"backward":"forward",meta:t.options.meta};y(A);const P=await v(A),{maxPages:E}=t.options,j=S?x1:v1;return{pages:j(w.pages,P,E),pageParams:j(w.pageParams,T,E)}};if(r&&i.length){const w=r==="backward",T=w?N1:Yf,S={pages:i,pageParams:o},A=T(s,S);a=await b(S,A,w)}else{const w=e??i.length;do{const T=c===0?o[0]??s.initialPageParam:Yf(s,a);if(c>0&&T==null)break;a=await b(a,T),c++}while(c<w)}return a};t.options.persister?t.fetchFn=()=>{var p,y;return(y=(p=t.options).persister)==null?void 0:y.call(p,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Yf(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 N1(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,Rn,Nn,qs,Zs,kn,Ks,Gs,dh,NN=(dh=class{constructor(e={}){ne(this,Ne);ne(this,Rn);ne(this,Nn);ne(this,qs);ne(this,Zs);ne(this,kn);ne(this,Ks);ne(this,Gs);K(this,Ne,e.queryCache||new E1),K(this,Rn,e.mutationCache||new R1),K(this,Nn,e.defaultOptions||{}),K(this,qs,new Map),K(this,Zs,new Map),K(this,kn,0)}mount(){ki(this,kn)._++,C(this,kn)===1&&(K(this,Ks,du.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ne).onFocus())})),K(this,Gs,ko.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Ne).onOnline())})))}unmount(){var e,t;ki(this,kn)._--,C(this,kn)===0&&((e=C(this,Ks))==null||e.call(this),K(this,Ks,void 0),(t=C(this,Gs))==null||t.call(this),K(this,Gs,void 0))}isFetching(e){return C(this,Ne).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Rn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Ne).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,Ne).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Bs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return C(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=C(this,Ne).get(s.queryHash),i=r==null?void 0:r.state.data,o=g1(t,i);if(o!==void 0)return C(this,Ne).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return We.batch(()=>C(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=C(this,Ne).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Ne);We.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Ne),s={type:"active",...e};return We.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries(s,t)))}cancelQueries(e,t={}){const n={revert:!0,...t},s=We.batch(()=>C(this,Ne).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(Tt).catch(Tt)}invalidateQueries(e,t={}){return We.batch(()=>{if(C(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=We.batch(()=>C(this,Ne).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(Tt)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Tt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Ne).build(this,t);return n.isStaleByTime(Bs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Tt).catch(Tt)}fetchInfiniteQuery(e){return e.behavior=Xf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Tt).catch(Tt)}ensureInfiniteQueryData(e){return e.behavior=Xf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return ko.isOnline()?C(this,Rn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Ne)}getMutationCache(){return C(this,Rn)}getDefaultOptions(){return C(this,Nn)}setDefaultOptions(e){K(this,Nn,e)}setQueryDefaults(e,t){C(this,qs).set(fi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,qs).values()],n={};return t.forEach(s=>{hi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){C(this,Zs).set(fi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,Zs).values()];let n={};return t.forEach(s=>{hi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Nn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=lu(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===uu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Nn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Ne).clear(),C(this,Rn).clear()}},Ne=new WeakMap,Rn=new WeakMap,Nn=new WeakMap,qs=new WeakMap,Zs=new WeakMap,kn=new WeakMap,Ks=new WeakMap,Gs=new WeakMap,dh),lt,pe,gi,nt,as,Qs,jn,Gt,yi,Xs,Ys,cs,ls,On,Js,be,jr,Oc,Dc,Mc,Fc,Lc,Ic,Vc,Zy,fh,k1=(fh=class extends Ri{constructor(t,n){super();ne(this,be);ne(this,lt);ne(this,pe);ne(this,gi);ne(this,nt);ne(this,as);ne(this,Qs);ne(this,jn);ne(this,Gt);ne(this,yi);ne(this,Xs);ne(this,Ys);ne(this,cs);ne(this,ls);ne(this,On);ne(this,Js,new Set);this.options=n,K(this,lt,t),K(this,Gt,null),K(this,jn,jc()),this.options.experimental_prefetchInRender||C(this,jn).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&&(C(this,pe).addObserver(this),Jf(C(this,pe),this.options)?he(this,be,jr).call(this):this.updateResult(),he(this,be,Fc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Bc(C(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Bc(C(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,he(this,be,Lc).call(this),he(this,be,Ic).call(this),C(this,pe).removeObserver(this)}setOptions(t,n){const s=this.options,r=C(this,pe);if(this.options=C(this,lt).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof jt(this.options.enabled,C(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");he(this,be,Vc).call(this),C(this,pe).setOptions(this.options),s._defaulted&&!Rc(this.options,s)&&C(this,lt).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,pe),observer:this});const i=this.hasListeners();i&&eh(C(this,pe),r,this.options,s)&&he(this,be,jr).call(this),this.updateResult(n),i&&(C(this,pe)!==r||jt(this.options.enabled,C(this,pe))!==jt(s.enabled,C(this,pe))||Bs(this.options.staleTime,C(this,pe))!==Bs(s.staleTime,C(this,pe)))&&he(this,be,Oc).call(this);const o=he(this,be,Dc).call(this);i&&(C(this,pe)!==r||jt(this.options.enabled,C(this,pe))!==jt(s.enabled,C(this,pe))||o!==C(this,On))&&he(this,be,Mc).call(this,o)}getOptimisticResult(t){const n=C(this,lt).getQueryCache().build(C(this,lt),t),s=this.createResult(n,t);return O1(this,s)&&(K(this,nt,s),K(this,Qs,this.options),K(this,as,C(this,pe).state)),s}getCurrentResult(){return C(this,nt)}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){C(this,Js).add(t)}getCurrentQuery(){return C(this,pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,lt).defaultQueryOptions(t),s=C(this,lt).getQueryCache().build(C(this,lt),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return he(this,be,jr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,nt)))}createResult(t,n){var E;const s=C(this,pe),r=this.options,i=C(this,nt),o=C(this,as),a=C(this,Qs),l=t!==s?t.state:C(this,gi),{state:u}=t;let d={...u},f=!1,g;if(n._optimisticResults){const j=this.hasListeners(),D=!j&&Jf(t,n),L=j&&eh(t,s,n,r);(D||L)&&(d={...d,...qy(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:p,status:y}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===C(this,yi))g=C(this,Xs);else try{K(this,yi,n.select),g=n.select(d.data),g=kc(i==null?void 0:i.data,g,n),K(this,Xs,g),K(this,Gt,null)}catch(j){K(this,Gt,j)}else g=d.data;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let j;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))j=i.data;else if(j=typeof n.placeholderData=="function"?n.placeholderData((E=C(this,Ys))==null?void 0:E.state.data,C(this,Ys)):n.placeholderData,n.select&&j!==void 0)try{j=n.select(j),K(this,Gt,null)}catch(D){K(this,Gt,D)}j!==void 0&&(y="success",g=kc(i==null?void 0:i.data,j,n),f=!0)}C(this,Gt)&&(m=C(this,Gt),g=C(this,Xs),p=Date.now(),y="error");const v=d.fetchStatus==="fetching",b=y==="pending",w=y==="error",T=b&&v,S=g!==void 0,P={status:y,fetchStatus:d.fetchStatus,isPending:b,isSuccess:y==="success",isError:w,isInitialLoading:T,isLoading:T,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:v,isRefetching:v&&!b,isLoadingError:w&&!S,isPaused:d.fetchStatus==="paused",isPlaceholderData:f,isRefetchError:w&&S,isStale:fu(t,n),refetch:this.refetch,promise:C(this,jn)};if(this.options.experimental_prefetchInRender){const j=O=>{P.status==="error"?O.reject(P.error):P.data!==void 0&&O.resolve(P.data)},D=()=>{const O=K(this,jn,P.promise=jc());j(O)},L=C(this,jn);switch(L.status){case"pending":t.queryHash===s.queryHash&&j(L);break;case"fulfilled":(P.status==="error"||P.data!==L.value)&&D();break;case"rejected":(P.status!=="error"||P.error!==L.reason)&&D();break}}return P}updateResult(t){const n=C(this,nt),s=this.createResult(C(this,pe),this.options);if(K(this,as,C(this,pe).state),K(this,Qs,this.options),C(this,as).data!==void 0&&K(this,Ys,C(this,pe)),Rc(s,n))return;K(this,nt,s);const r={},i=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,a=typeof o=="function"?o():o;if(a==="all"||!a&&!C(this,Js).size)return!0;const c=new Set(a??C(this,Js));return this.options.throwOnError&&c.add("error"),Object.keys(C(this,nt)).some(l=>{const u=l;return C(this,nt)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),he(this,be,Zy).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&he(this,be,Fc).call(this)}},lt=new WeakMap,pe=new WeakMap,gi=new WeakMap,nt=new WeakMap,as=new WeakMap,Qs=new WeakMap,jn=new WeakMap,Gt=new WeakMap,yi=new WeakMap,Xs=new WeakMap,Ys=new WeakMap,cs=new WeakMap,ls=new WeakMap,On=new WeakMap,Js=new WeakMap,be=new WeakSet,jr=function(t){he(this,be,Vc).call(this);let n=C(this,pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Tt)),n},Oc=function(){he(this,be,Lc).call(this);const t=Bs(this.options.staleTime,C(this,pe));if(Ss||C(this,nt).isStale||!Pc(t))return;const s=Vy(C(this,nt).dataUpdatedAt,t)+1;K(this,cs,setTimeout(()=>{C(this,nt).isStale||this.updateResult()},s))},Dc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,pe)):this.options.refetchInterval)??!1},Mc=function(t){he(this,be,Ic).call(this),K(this,On,t),!(Ss||jt(this.options.enabled,C(this,pe))===!1||!Pc(C(this,On))||C(this,On)===0)&&K(this,ls,setInterval(()=>{(this.options.refetchIntervalInBackground||du.isFocused())&&he(this,be,jr).call(this)},C(this,On)))},Fc=function(){he(this,be,Oc).call(this),he(this,be,Mc).call(this,he(this,be,Dc).call(this))},Lc=function(){C(this,cs)&&(clearTimeout(C(this,cs)),K(this,cs,void 0))},Ic=function(){C(this,ls)&&(clearInterval(C(this,ls)),K(this,ls,void 0))},Vc=function(){const t=C(this,lt).getQueryCache().build(C(this,lt),this.options);if(t===C(this,pe))return;const n=C(this,pe);K(this,pe,t),K(this,gi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Zy=function(t){We.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,nt))}),C(this,lt).getQueryCache().notify({query:C(this,pe),type:"observerResultsUpdated"})})},fh);function j1(e,t){return jt(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Jf(e,t){return j1(e,t)||e.state.data!==void 0&&Bc(e,t,t.refetchOnMount)}function Bc(e,t,n){if(jt(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&fu(e,t)}return!1}function eh(e,t,n,s){return(e!==t||jt(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&fu(e,n)}function fu(e,t){return jt(t.enabled,e)!==!1&&e.isStaleByTime(Bs(t.staleTime,e))}function O1(e,t){return!Rc(e.getCurrentResult(),t)}var Ky=x.createContext(void 0),D1=e=>{const t=x.useContext(Ky);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},kN=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),h.jsx(Ky.Provider,{value:e,children:t})),Gy=x.createContext(!1),M1=()=>x.useContext(Gy);Gy.Provider;function F1(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var L1=x.createContext(F1()),I1=()=>x.useContext(L1);function V1(e,t){return typeof e=="function"?e(...t):!!e}function th(){}var B1=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},U1=e=>{x.useEffect(()=>{e.clearReset()},[e])},$1=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||V1(n,[e.error,s])),z1=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)))},W1=(e,t)=>e.isLoading&&e.isFetching&&!t,H1=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,nh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function q1(e,t,n){var d,f,g,m,p;const s=D1(),r=M1(),i=I1(),o=s.defaultQueryOptions(e);(f=(d=s.getDefaultOptions().queries)==null?void 0:d._experimental_beforeQuery)==null||f.call(d,o),o._optimisticResults=r?"isRestoring":"optimistic",z1(o),B1(o,i),U1(i);const a=!s.getQueryCache().get(o.queryHash),[c]=x.useState(()=>new t(s,o)),l=c.getOptimisticResult(o),u=!r&&e.subscribed!==!1;if(x.useSyncExternalStore(x.useCallback(y=>{const v=u?c.subscribe(We.batchCalls(y)):th;return c.updateResult(),v},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),x.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),H1(o,l))throw nh(o,c,i);if($1({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&&!Ss&&W1(l,r)){const y=a?nh(o,c,i):(p=s.getQueryCache().get(o.queryHash))==null?void 0:p.promise;y==null||y.catch(th).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function bn(e,t){return q1(e,k1)}const Z1=e=>{const{data:t,isPending:n,status:s}=bn({queryKey:["photos",e],queryFn:()=>NR(e),select:({data:r})=>r.data});return{data:t,isPending:n,status:s}},K1=e=>{const{data:t,isPending:n,isError:s}=bn({queryKey:["videos",e],queryFn:()=>kR(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},jN=({className:e,setIsOpen:t,activeItem:n})=>{var f,g;const[s,r]=Zn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=Z1(1),{data:o}=K1(1);OT();const[a,c]=x.useState(!1),[l,u]=x.useState(!1);x.useEffect(()=>{if(!r)return;const m=()=>{c(r.canScrollPrev()),u(r.canScrollNext())};return r.on("select",m),m(),()=>{r.off("select",m)}},[r]),x.useEffect(()=>{!r||!i||r.scrollTo(n.id,!0)},[r,i,n.id]);const d=n.type==="photo"?(f=i==null?void 0:i.photos)==null?void 0:f.map(m=>{var p;return h.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:h.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 h.jsx("div",{className:"embla__slide flex-[0_0_100%] h-[80vh] lg:px-[20%] flex items-center justify-center",children:h.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 h.jsxs(Lr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:W("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:[h.jsx(Jc,{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"}),h.jsxs("div",{className:"hidden md:block",children:[h.jsx(Xh,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:W("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")}),h.jsx(Yh,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:W("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")})]}),h.jsx("div",{ref:s,className:"embla overflow-hidden",children:h.jsx("div",{className:"embla__container flex",children:d})})]})},ON=({className:e,name:t,achievements:n,biography:s,image:r,images:i})=>{const[o,a]=Zn({}),[c,l]=x.useState(!1),[u,d]=x.useState(!1);return x.useEffect(()=>{if(!a)return;const f=()=>{l(a.canScrollPrev()),d(a.canScrollNext())};return a.on("select",f),f(),()=>{a.off("select",f)}},[a]),h.jsxs(Qg,{children:[h.jsx(Xg,{className:W("relative bg-[url('/impressions/card-bg.png')] bg-no-repeat h-[326px] overflow-hidden",e),children:h.jsxs("article",{children:[h.jsx("img",{src:"/impressions/card-bg-bg.png",className:"absolute top-2.5 left-2.5 -z-10 size-full"}),h.jsxs("div",{className:"flex gap-4",children:[h.jsx("img",{src:r==null?void 0:r.path,alt:t,className:"flex-[0_0_44%] -mt-2.5 object-contain overflow-hidden"}),h.jsxs("div",{className:"flex-auto text-left text-white z-20 pt-6 pl-4 pr-4",children:[h.jsx("h3",{className:"text-xl mb-2",children:t}),h.jsx("ul",{className:"text-sm list-disc pl-4 flex flex-col gap-2",children:n.slice(0,7).map((f,g)=>h.jsx("li",{children:f.ru},g))})]})]})]})}),h.jsxs(Jl,{className:"p-6 flex flex-col gap-4 xl:!w-[1224px] max-h-[80vh]",children:[h.jsxs("div",{className:"flex gap-4 overflow-y-auto",children:[h.jsx("div",{className:"flex-1 h-[345px]",children:h.jsx("img",{src:r==null?void 0:r.path,alt:"",className:"size-full object-cover"})}),h.jsxs("div",{className:"flex-[0_0_70%]",children:[h.jsx("div",{className:"text-2xl mb-4",children:t}),h.jsx("hr",{}),h.jsx("div",{className:"mt-4 flex flex-col gap-3 normal",dangerouslySetInnerHTML:{__html:s}})]})]}),h.jsx("hr",{}),h.jsxs("div",{children:[h.jsx("h3",{className:"text-xl mb-2.5",children:"Работы дизайнера"}),h.jsx("div",{ref:o,className:"embla overflow-hidden",children:h.jsxs("div",{className:"embla__container items-center flex gap-4",children:[c&&h.jsx(Xh,{onClick:()=>c&&(a==null?void 0:a.scrollPrev()),className:W("cursor-pointer",!c&&"opacity-20")}),h.jsx("div",{className:"flex items-center gap-4",children:i.map(f=>h.jsx("img",{src:f==null?void 0:f.path,className:"size-[140px] object-cover object-top"}))}),u&&h.jsx(Yh,{onClick:()=>c&&(a==null?void 0:a.scrollNext()),className:W("cursor-pointer",!u&&"opacity-20")})]})})]})]})]})},Wi=({value:e,label:t,prevValue:n})=>h.jsxs("div",{className:"timer-item flex flex-col items-center",children:[h.jsxs("div",{className:"relative sm:h-14 h-6 w-16 overflow-hidden font-bold",children:[h.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}),h.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})]}),h.jsx("div",{className:"label normal sm:text-lg text-base text-[#FAD8DB]",children:t})]}),pt=e=>e===Et.RU?0:1,Uc=[{title:"Тематические направления выставки",bottom_text:`
Участники смогут продемонстрировать свои инновационные решения, наладить взаимовыгодные партнерства и выйти на новые рынки.`,data:[{title:"Текстильные машины и оборудование",img:"/theme/1.svg"},{title:"Одежда, обувь, кожаные изделия",img:"/theme/2.svg"},{title:"Переработка натуральных волокон",img:"/theme/3.svg"},{title:"Домашний текстиль и эко-текстиль",img:"/theme/4.svg"},{title:"Запасные части и вспомогательные материалы",img:"/theme/5.svg"},{title:"Химические средства и красители",img:"/theme/6.svg"},{title:"Аксессуары и швейная фурнитура",img:"/theme/7.svg"},{title:"Мода и дизайн",img:"/theme/8.svg"}]},{title:"Thematic areas of the exhibition",bottom_text:`
Participants will be able to showcase innovative solutions, establish mutually beneficial partnerships, and enter new markets.`,data:[{title:"Textile machinery and equipment",img:"/theme/1.svg"},{title:"Clothing, footwear, leather goods",img:"/theme/2.svg"},{title:"Natural fibre processing",img:"/theme/3.svg"},{title:"Home textiles and eco-textiles",img:"/theme/4.svg"},{title:"Spare parts and auxiliary materials",img:"/theme/5.svg"},{title:"Chemicals and dyes",img:"/theme/6.svg"},{title:"Accessories and sewing supplies",img:"/theme/7.svg"},{title:"Fashion and design",img:"/theme/8.svg"}]}],Qy=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=bn({queryKey:["industries",e],queryFn:()=>AR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},DN=({className:e})=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=Qy();return h.jsx("section",{className:W("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:h.jsx(He,{children:s?h.jsx(qn,{}):h.jsxs(h.Fragment,{children:[h.jsx("h3",{className:"h2 mb-4",children:Uc[pt(t)].title}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>h.jsx(fp,{...r},i))}),h.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[h.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),h.jsx("p",{className:"text-18",children:Uc[pt(t)].bottom_text})]})]})})})},Xy=[{title:"Время выставки",data:[{name:"Монтаж выставки",date:"12 Мая 10 Июня 2025 года"},{name:"Работа",date:"1113 Июня 2025 года"},{name:"Демонтаж",date:"1314 Июня 2025 года"}]},{title:"Exhibition time",data:[{name:"Exhibition assembly",date:"12 May — 10 June 2025"},{name:"Exhibition days",date:"1113 June 2025"},{name:"Exhibition dismantling",date:"1314 June 2025"}]}],Yy=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=bn({queryKey:["exhibiton-time",e],queryFn:()=>PR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},MN=({className:e})=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=Yy();return h.jsx("section",{className:W("bg-surface_container py-10 md:py-20",e),children:h.jsx(He,{children:s?h.jsx(qn,{}):h.jsxs(h.Fragment,{children:[h.jsx("h2",{className:"h2 mb-6",children:Xy[pt(t)].title}),h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>x.createElement(hp,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},sh=[{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."]}],FN=({className:e})=>{const t=Ee(n=>n.lang);return h.jsx("section",{className:W("gap-6 relative overflow-hidden",e),children:h.jsxs(He,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[h.jsxs("div",{className:"flex-[0_0_50%]",children:[h.jsx("h3",{className:"h2 mb-6",children:sh[pt(t)].title}),h.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:sh[pt(t)].data.map(n=>h.jsx("p",{children:n},n))})]}),h.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:h.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},Hi=[{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 Turkmenistans position on the global economic stage",button1:"Book a stand",button2:"B2B | B2G meetings"}],LN=({className:e})=>{const t=Ee(n=>n.lang);return h.jsxs("section",{className:W("md:py-20 py-10 relative overflow-hidden",e),children:[h.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),h.jsxs(He,{children:[h.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:Hi[pt(t)].title}),h.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:Hi[pt(t)].p}),h.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[h.jsx(Ce,{to:"/stend-form",className:"w-full",children:h.jsx(it,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:Hi[pt(t)].button1})}),h.jsx(Ce,{to:"/B2B-B2GS",className:"w-full",children:h.jsx(it,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:Hi[pt(t)].button2})})]})]})]})},Jy=e=>{const t=Ee(r=>r.lang),{data:n,isPending:s}=bn({queryKey:["static-words",t,e],queryFn:()=>TR(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},IN=()=>{var f,g,m,p,y,v,b,w;const e=Ee(T=>T.lang),{t}=_s("about"),{data:n,isPending:s}=Jy("2"),r=(f=n==null?void 0:n.find(T=>T.key==="about_1"))==null?void 0:f.text,i=(g=n==null?void 0:n.find(T=>T.key==="about_2"))==null?void 0:g.text,o=(m=n==null?void 0:n.find(T=>T.key==="about_3"))==null?void 0:m.text,a=(p=n==null?void 0:n.find(T=>T.key==="about_4"))==null?void 0:p.text,c=(y=n==null?void 0:n.find(T=>T.key==="about_5"))==null?void 0:y.list,l=(v=n==null?void 0:n.find(T=>T.key==="about_6"))==null?void 0:v.text,u=(b=n==null?void 0:n.find(T=>T.key==="about_7"))==null?void 0:b.text,d=(w=n==null?void 0:n.find(T=>T.key==="about_8"))==null?void 0:w.list;return s?h.jsx(qn,{}):h.jsxs(He,{className:"flex flex-col md:my-20 my-10 gap-16",children:[h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h2",{className:"h2",children:r}),h.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h3",{className:"h2",children:o}),h.jsx("h4",{className:"p",children:a}),h.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:c==null?void 0:c.map((T,S)=>h.jsx("li",{className:"p",children:e==="ru"?T.text_ru:T.text_en},S))})]}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h2",{className:"h2",children:l}),h.jsx("h3",{className:"p",children:u}),h.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((T,S)=>h.jsxs("li",{children:[" ",e==="ru"?T.text_ru:T.text_en]},S))})]}),h.jsx(Ce,{className:"w-fit mx-auto",to:"/become-sponsor",children:h.jsx(it,{children:t("main.button")})})]})},VN=()=>{const{t:e}=_s("home"),t=uo("(min-width: 1024px)"),n=uo("(min-width: 768px)");function s(){return e(t?"banners.lg":n?"banners.md":"banners.sm")}return h.jsx("div",{children:h.jsxs("section",{className:"flex flex-col gap-5 ",children:[h.jsx("div",{className:"embla ",children:h.jsx("div",{className:"embla__container",children:h.jsx("div",{className:"embla__slide",children:h.jsx("img",{src:s(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),h.jsx("div",{className:"relative",children:h.jsx(iN,{className:"absolute sm:bottom-12 bottom-28 2xl:right-[10%] xl:right-[13%] lg:right-[15%] right-10"})})]})})},G1=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=bn({queryKey:["home-contacts",e],queryFn:()=>ER(e),select:({data:s})=>s.data});return{data:t,isPending:n}},BN=({className:e})=>{const t=Ee(o=>o.lang),{data:n,isPending:s}=Yy(),{data:r}=G1(),i=pt(t);return s?h.jsx(qn,{}):h.jsx("section",{className:W("bg-surface_high my-20 pt-10 pb-20",e),children:h.jsxs(He,{children:[h.jsx("h2",{className:"h2 mb-6",children:Xy[i].title}),h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((o,a)=>x.createElement(hp,{...o,key:a,className:"w-full"}))}),h.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)=>x.createElement(rw,{...o,key:a,className:"w-full"}))}),h.jsx(Ce,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:h.jsx(it,{className:"w-full",children:t===Et.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},Q1=[{h2:"Выставка-ярмарка «TurkmenTextile Expo-2025» в Ашхабаде",p:`Международная выставка-ярмарка, которая объединит мировых лидеров отрасли, инновационных производителей и творческих дизайнеров.
Наша миссия укрепить позиции Туркменистана как ключевого центра текстильной и модной индустрии.
`,p_2:`Выставка станет платформой для изучения устойчивых практик, современных технологий и дизайнерских решений, вдохновляя на развитие индустрии.
«Turkmentextile Expo-2025» это платформа, соединяющий традиции и инновации, производителей и потребителей, Туркменистан и весь мир!`,data:[{nums:"10,000 m²",text:"Выставочной площади"},{nums:"10000+",text:"Ожидаемых посетителей "},{nums:"100+",text:"Экспонентов из более чем 30 стран"},{nums:"80%",text:"Участников топ-менеджмента"}],button:"Подробнее о выставке"},{h2:"TurkmenTextile Expo-2025 in Ashgabat",p:`An international exhibition will unite global industry leaders, innovative manufacturers, and creative designers.
Our mission is to strengthen Turkmenistan's position as a key hub for the textile and fashion industry.
`,p_2:"The exhibition will serve as a platform to explore sustainable practices, modern technologies, and design solutions, inspiring the development of the industry.",data:[{nums:"10,000 m²",text:"Exhibition area"},{nums:"10000+",text:"Expected visitors "},{nums:"100+",text:"Exhibitors from over 30 countries"},{nums:"80%",text:"Participants are top-management"}],button:"More about the exhibition"}],X1=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=bn({queryKey:["stats",e],queryFn:()=>CR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},UN=()=>{var c,l;const[e]=Zn(),t=Ee(u=>u.lang),{data:n,isPending:s}=Jy("1"),{data:r}=X1(),i=(c=n==null?void 0:n.find(u=>u.key==="index_1"))==null?void 0:c.text,o=(l=n==null?void 0:n.find(u=>u.key==="index_2"))==null?void 0:l.text,a=pt(t);return s?h.jsx(qn,{}):h.jsx("section",{className:"py-20",children:h.jsxs(He,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[h.jsxs("div",{className:"flex flex-col gap-6",children:[h.jsx("h2",{className:"h2 text-left",children:i}),h.jsx("div",{dangerouslySetInnerHTML:{__html:o||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),h.jsx(Ce,{to:"/about",className:"w-fit",children:h.jsx(it,{variant:"outline",children:Q1[a].button})})]}),h.jsx("video",{src:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/video/Textile2025.mp4",muted:!0,controls:!0,autoPlay:!0,loop:!0,className:"w-full h-auto"})]}),h.jsx("div",{ref:e,className:"embla overflow-hidden",children:h.jsx("div",{className:"flex embla__container items-center gap-6",children:r==null?void 0:r.map(u=>h.jsx(nw,{...u,className:"embla__slide flex-[0_0_288px]"},u.text))})})]})})},$N=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=Qy();return n?h.jsx(qn,{}):h.jsx("section",{className:"",children:h.jsxs(He,{children:[h.jsx("h2",{className:"h2 mb-10 text-center",children:Uc[pt(e)].title}),h.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>h.jsx(fp,{...s},r))})]})})},Y1=[{data:[{img:"/offer-1.png",title:"Гостиницы, трансфер, визы",btnText:"Скачать путеводитель",text:"По вопросам размещения в гостиницах, визовой поддержки, транспортного и экскурсионного обслуживания Вы можете ознакомиться с путеводителем",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_ru.pdf"},{img:"/offer-2.png",title:"Ознакомьтесь с планом выставки TurkmenTextile Expo 2025",btnText:"Скачать план выставки",text:"Как выбрать лучшее место на выставке? Вы всегда должны помнить, что удачное расположение выставочной экспозиции повышает Ваши шансы привлечь внимание Ваших потенциальных клиентов",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]},{data:[{img:"/offer-2.png",title:"Hotels, transfer, visas;",btnText:"Download Travel Guide",text:"For inquiries regarding hotel accommodations, visa support, transportation, and tour services, please refer to the travel guide;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/travel_guide/Travel_guide_eng.pdf"},{img:"/offer-2.png",title:"Explore “TurkmenTextile Expo-2025” plan;",btnText:"Download exhibition plan.",text:"How to choose the best location at the exhibition? A prime spot increases your chances to attract potential clients;",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf"}]}],zN=()=>{const[e,t]=Zn({align:"start"}),[n,s]=x.useState(0),r=Ee(o=>o.lang),i=x.useCallback(o=>{t&&t.scrollTo(o)},[t]);return x.useEffect(()=>{if(!t)return;const o=()=>{s(t.selectedScrollSnap())};return t.on("select",o),()=>{t.off("select",o)}},[t]),h.jsx("section",{className:"bg-surface_high py-10 my-20 relative overflow-hidden",children:h.jsx(He,{children:h.jsxs("div",{ref:e,className:"embla ",children:[h.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:Y1[pt(r)].data.map(o=>x.createElement(sw,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),h.jsx(sC,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},J1={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function eN(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function tN(e,t){const n=e.rootNode();return t&&t(n)||n}function hu(e={}){let t,n,s,r,i=null,o=0,a=!1,c=!1,l=!1,u=!1;function d(I,J){n=I;const{mergeOptions:X,optionsAtMedia:q}=J,Z=X(J1,hu.globalOptions),re=X(Z,e);if(t=q(re),n.scrollSnapList().length<=1)return;u=t.jump,s=!1,r=eN(n,t.delay);const{eventStore:de,ownerDocument:ge}=n.internalEngine(),Be=!!n.internalEngine().options.watchDrag,qe=tN(n,t.rootNode);de.add(ge,"visibilitychange",v),Be&&n.on("pointerDown",w),Be&&!t.stopOnInteraction&&n.on("pointerUp",T),t.stopOnMouseEnter&&de.add(qe,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&de.add(qe,"mouseleave",A),t.stopOnFocusIn&&n.on("slideFocusStart",y),t.stopOnFocusIn&&!t.stopOnInteraction&&de.add(n.containerNode(),"focusout",p),t.playOnInit&&p()}function f(){n.off("pointerDown",w).off("pointerUp",T).off("slideFocusStart",y),y(),s=!0,a=!1}function g(){const{ownerWindow:I}=n.internalEngine();I.clearTimeout(o),o=I.setTimeout(L,r[n.selectedScrollSnap()]),i=new Date().getTime(),n.emit("autoplay:timerset")}function m(){const{ownerWindow:I}=n.internalEngine();I.clearTimeout(o),o=0,i=null,n.emit("autoplay:timerstopped")}function p(){if(!s){if(b()){l=!0;return}a||n.emit("autoplay:play"),g(),a=!0}}function y(){s||(a&&n.emit("autoplay:stop"),m(),a=!1)}function v(){if(b())return l=a,y();l&&p()}function b(){const{ownerDocument:I}=n.internalEngine();return I.visibilityState==="hidden"}function w(){c||y()}function T(){c||p()}function S(){c=!0,y()}function A(){c=!1,p()}function P(I){typeof I<"u"&&(u=I),p()}function E(){a&&y()}function j(){a&&p()}function D(){return a}function L(){const{index:I}=n.internalEngine(),J=I.clone().add(1).get(),X=n.scrollSnapList().length-1,q=t.stopOnLastSnap&&J===X;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),q)return y();p()}function O(){if(!i)return null;const I=r[n.selectedScrollSnap()],J=new Date().getTime()-i;return I-J}return{name:"autoplay",options:e,init:d,destroy:f,play:P,stop:E,reset:j,isPlaying:D,timeUntilNext:O}}hu.globalOptions=void 0;const nN=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=bn({queryKey:["sponsors",e],queryFn:()=>jR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},WN=({className:e})=>{const[t]=Zn({loop:!0,align:"start",skipSnaps:!0,duration:75},[hu({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:s}=nN(),{t:r}=_s("home",{keyPrefix:"sponsors"});return s?h.jsx(qn,{}):h.jsx("section",{className:W("md:py-20",e),children:h.jsxs(He,{className:"flex flex-col gap-6",children:[h.jsx("h2",{className:"h2",children:r("title")}),h.jsx("div",{ref:t,className:"embla overflow-hidden",children:h.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,c;return i.link?h.jsxs(Ce,{target:"_blank",to:i.link,className:"bg-surface_container flex flex-col embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center min-h-[128px] w-full",children:[h.jsx("img",{src:(a=i==null?void 0:i.image)==null?void 0:a.path,alt:"logo",className:"object-contain flex-auto"}),h.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2 w-full",children:i.name})]},o):h.jsxs("div",{className:"bg-surface_container embla__slide mr-6 min-w-0 flex-[0_0_288px] items-center justify-center minh-[128px] w-full",children:[h.jsx("div",{className:"h-[128px] w-full",children:h.jsx("img",{src:(c=i==null?void 0:i.image)==null?void 0:c.path,alt:"logo",className:"object-contain size-full"})}),h.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2",children:i.name})]},o)})})})]})})},sN=e=>{const{data:t,isPending:n}=bn({queryKey:["news",e],queryFn:()=>RR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},rN=({className:e,featured_images:t,title:n,id:s,published_at:r})=>{var i;return h.jsx(Ce,{to:`/news/${s}`,children:h.jsxs("article",{className:W("bg-surface_container justify-between h-[400px] flex flex-col gap-6",e),children:[h.jsxs("div",{className:"flex flex-col gap-4 px-6 pt-6",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("h4",{children:r.slice(0,10).split("-").reverse().join(".")}),h.jsx(Ix,{})]}),h.jsx("hr",{}),h.jsx("h3",{className:"text-[20px] leading-[130%] line-clamp-3",children:n})]}),h.jsx("img",{src:((i=t==null?void 0:t[0])==null?void 0:i.path)||"",alt:"news image",className:"w-full h-[220px] object-cover"})]})})},HN=()=>{const e=Ee(s=>s.lang),{data:t,isPending:n}=sN(e);return n?h.jsx(qn,{}):h.jsx("section",{className:W("md:mb-[120px] mb-20"),children:h.jsxs(He,{children:[h.jsx("h2",{className:"h2 text-center md:mb-8 mb-6",children:e==="en"?"News":"Новости"}),h.jsx("div",{className:"grid md:grid-cols-3 grid-cols-1 gap-6",children:t==null?void 0:t.slice(0,3).map(s=>x.createElement(rN,{...s,key:s.title}))})]})})},iN=({className:e})=>{const{t}=_s("home"),[n,s]=x.useState({days:"0",hours:"00",minutes:"00",seconds:"00"}),[r,i]=x.useState({}),o=new Date("2025-06-11T08:00:00").getTime(),a=()=>{const f=new Date().getTime(),g=o-f;return g<=0?null:{days:Math.floor(g/(1e3*60*60*24)),hours:Math.floor(g%(1e3*60*60*24)/(1e3*60*60)),minutes:Math.floor(g%(1e3*60*60)/(1e3*60)),seconds:Math.floor(g%(1e3*60)/1e3)}};x.useEffect(()=>{const f=a();f&&s({days:f.days.toString(),hours:f.hours.toString().padStart(2,"0"),minutes:f.minutes.toString().padStart(2,"0"),seconds:f.seconds.toString().padStart(2,"0")});const g=setInterval(()=>{const m=a();if(!m){clearInterval(g);return}i({days:n.days,hours:n.hours,minutes:n.minutes,seconds:n.seconds}),s({days:m.days.toString(),hours:m.hours.toString().padStart(2,"0"),minutes:m.minutes.toString().padStart(2,"0"),seconds:m.seconds.toString().padStart(2,"0")})},1e3);return()=>clearInterval(g)},[o]);const{days:c,hours:l,minutes:u,seconds:d}=t("timer",{returnObjects:!0});return h.jsx("section",{className:W("2xl:w-[600px] xl:w-[450px] w-[350px]",e),children:h.jsxs("div",{className:"grid grid-cols-4 w-full mr-[50%] gap-6 items-end place-items-center",children:[h.jsx(Wi,{value:n.days,prevValue:r.days||n.days,label:c}),h.jsx(Wi,{value:n.hours,prevValue:r.hours||n.hours,label:l}),h.jsx(Wi,{value:n.minutes,prevValue:r.minutes||n.minutes,label:u}),h.jsx(Wi,{value:n.seconds,prevValue:r.seconds||n.seconds,label:d})]})})},qN=({className:e})=>{const{t}=_s("home"),{items:n}=t("buttons",{returnObjects:!0});return h.jsx("section",{className:W("",e),children:h.jsx(He,{children:h.jsx("div",{className:"grid md:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-6",children:n.map((s,r)=>s.dropdown?h.jsx(Ce,{target:s.blank?"_blank":"",to:s.link??"",className:"w-full",children:h.jsx(Ro,{dropDownContent:s.items,triggerClassName:"w-full",className:"!w-full",children:h.jsxs(it,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:[s.text,h.jsx(My,{w:"40",h:"40",color:"white"})]})})},r):h.jsx(Ce,{to:s.link??"",target:s.blank?"_blank":"",children:h.jsx(it,{variant:"teritary",size:"lg",className:"w-full drop-shadow-sm shadow-md md:text-xl text-lg bg-teritary text-on_teritary hover:bg-teritary/90",children:s.text})},r))})})})},oN=()=>{const{t:e}=_s("nav"),t=Ee(i=>i.lang),n=Cc(i=>i.sheet),s=Cc(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return h.jsxs(Ob,{onOpenChange:()=>s(!n),open:n,children:[h.jsx(Db,{children:h.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),h.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),h.jsxs(op,{className:"overflow-y-auto",children:[h.jsx(Mb,{}),h.jsxs(ap,{className:"mt-16 flex flex-col gap-2",children:[h.jsx(Ce,{to:t===Et.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",children:h.jsx(it,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:t==="ru"?"Официальная поддержка":"Official Support"})}),h.jsx(Ce,{to:"/become-sponsor",children:h.jsx(it,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:t==="ru"?"Стать спонсором":"Become a sponsor"})})]}),h.jsx("hr",{className:"border-slate-500/20 my-8"}),h.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?h.jsx(Ro,{className:"w-full",triggerClassName:"justify-between py-2",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):h.jsx(Ce,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},ZN=()=>{const e=Ee(s=>s.lang),{t}=_s("nav"),n=t("navigation",{returnObjects:!0});return h.jsxs("header",{children:[h.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:h.jsxs(He,{className:"flex items-center justify-between",children:[h.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Kx,{}),h.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),h.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?h.jsx(Ro,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):h.jsx(Ce,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Xx,{size:16,strokeWidth:"3px"}),h.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),h.jsx(Tf,{className:"!text-on_surface"})]})]})}),h.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:h.jsxs(He,{className:"flex items-center justify-between ",children:[h.jsxs("div",{className:"flex items-center gap-8",children:[h.jsx(Ce,{to:"/",children:h.jsx(dp,{})}),h.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?h.jsx(Ro,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):h.jsx(Ce,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(Tf,{className:"lg:hidden",light:!0}),h.jsx(oN,{})]}),h.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[h.jsx(Ce,{to:e===Et.RU?"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_ru.pdf":"https://turkmentextile.turkmenexpo.com/app/storage/app/media/official_support/official_support_eng.pdf",target:"_blank",children:h.jsx(it,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),h.jsx(Ce,{to:"/become-sponsor",children:h.jsx(it,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},KN=()=>{const e=Ee(t=>t.lang);return h.jsxs("footer",{children:[h.jsx(Dy,{}),h.jsx("div",{className:"py-5 bg-primary",children:h.jsxs(He,{className:"flex flex-col gap-6",children:[h.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[h.jsx(dp,{}),h.jsxs("div",{className:"flex items-center gap-6",children:[h.jsx(Ce,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:h.jsx(Wx,{className:"text-white"})}),h.jsx(Ce,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:h.jsx("img",{src:"/inst.svg"})}),h.jsx(Ce,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:h.jsx("img",{src:"/in.svg"})}),h.jsx(Ce,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:h.jsx("img",{src:"/x.svg"})})]})]}),h.jsx("hr",{className:"border-white/50"}),h.jsx("h5",{className:"text-base text-center normal text-white",children:e===Et.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},He=({className:e,children:t})=>h.jsx("div",{className:W("w-full mx-auto max-w-[1240px] px-4",e),children:t}),GN=({title:e})=>h.jsxs("div",{className:"relative flex items-center h-[116px] md:h-[216px] w-full justify-center",children:[h.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),h.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{He as $,ug as A,dg as B,xN as C,it as D,dN as E,KN as F,YT as G,ZN as H,VE as I,vN as J,pN as K,Et as L,bN as M,Ve as N,GN as O,at as P,yN as Q,IN as R,cr as S,DN as T,MN as U,FN as V,LN as W,_N as X,_s as Y,Jh as Z,TN as _,VN as a,Z1 as a0,K1 as a1,jN as a2,PN as a3,fN as a4,qn as a5,bn as a6,CN as a7,sN as a8,rN as a9,EN as aa,RN as ab,SN as ac,AN as ad,Zn as ae,ON as af,NN as ag,kN as ah,qN as b,UN as c,WN as d,zN as e,$N as f,BN as g,HN as h,hN as i,h as j,$c as k,Bt as l,mh as m,Dn as n,mt as o,qi as p,lr as q,sE as r,W as s,Wo as t,Ee as u,Lr as v,pt as w,tC as x,lg as y,Pf as z};