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

155 lines
439 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 yu=e=>{throw TypeError(e)};var na=(e,t,n)=>t.has(e)||yu("Cannot "+n);var C=(e,t,n)=>(na(e,t,"read from private field"),n?n.call(e):t.get(e)),ne=(e,t,n)=>t.has(e)?yu("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Z=(e,t,n,s)=>(na(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),he=(e,t,n)=>(na(e,t,"access private method"),n);var Ni=(e,t,n,s)=>({set _(r){Z(e,t,r,n)},get _(){return C(e,t,s)}});import{r as ev,a as x,R as tv,b as dh,c as nv,L as Ne,d as Oi,e as ve}from"./react-vendor-Y0eyvj1J.js";var sa={exports:{}},vr={};/**
* @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 vu;function sv(){if(vu)return vr;vu=1;var e=ev(),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 vr.Fragment=n,vr.jsx=o,vr.jsxs=o,vr}var xu;function rv(){return xu||(xu=1,sa.exports=sv()),sa.exports}var p=rv();function gt(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 bu(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fh(...e){return t=>{let n=!1;const s=e.map(r=>{const i=bu(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():bu(e[r],null)}}}}function Bt(...e){return x.useCallback(fh(...e),e)}function iv(e,t){const n=x.createContext(t),s=i=>{const{children:o,...a}=i,c=x.useMemo(()=>a,Object.values(a));return p.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 Uc(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,h=((v=f==null?void 0:f[e])==null?void 0:v[c])||a,y=x.useMemo(()=>m,Object.values(m));return p.jsx(h.Provider,{value:y,children:g})};l.displayName=i+"Provider";function u(d,f){var h;const g=((h=f==null?void 0:f[e])==null?void 0:h[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,ov(r,...t)]}function ov(...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 hs=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},av=tv.useId||(()=>{}),cv=0;function Hi(e){const[t,n]=x.useState(av());return hs(()=>{n(s=>s??String(cv++))},[e]),t?`radix-${t}`:""}function jn(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 hh({prop:e,defaultProp:t,onChange:n=()=>{}}){const[s,r]=lv({defaultProp:t,onChange:n}),i=e!==void 0,o=i?e:s,a=jn(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 lv({defaultProp:e,onChange:t}){const n=x.useState(e),[s]=n,r=x.useRef(s),i=jn(t);return x.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),n}var ar=x.forwardRef((e,t)=>{const{children:n,...s}=e,r=x.Children.toArray(n),i=r.find(dv);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 p.jsx(La,{...s,ref:t,children:x.isValidElement(o)?x.cloneElement(o,void 0,a):null})}return p.jsx(La,{...s,ref:t,children:n})});ar.displayName="Slot";var La=x.forwardRef((e,t)=>{const{children:n,...s}=e;if(x.isValidElement(n)){const r=hv(n);return x.cloneElement(n,{...fv(s,n.props),ref:t?fh(t,r):r})}return x.Children.count(n)>1?x.Children.only(null):null});La.displayName="SlotClone";var uv=({children:e})=>p.jsx(p.Fragment,{children:e});function dv(e){return x.isValidElement(e)&&e.type===uv}function fv(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 hv(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 pv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],it=pv.reduce((e,t)=>{const n=x.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?ar:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(a,{...o,ref:r})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function mv(e,t){e&&dh.flushSync(()=>e.dispatchEvent(t))}function gv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(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 yv="DismissableLayer",Ia="dismissableLayer.update",vv="dismissableLayer.pointerDownOutside",xv="dismissableLayer.focusOutside",wu,ph=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$c=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:s,onPointerDownOutside:r,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=e,l=x.useContext(ph),[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)),h=Array.from(l.layers),[y]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=h.indexOf(y),b=u?h.indexOf(u):-1,w=l.layersWithOutsidePointerEventsDisabled.size>0,T=b>=v,S=Sv(P=>{const E=P.target,O=[...l.branches].some(D=>D.contains(E));!T||O||(r==null||r(P),o==null||o(P),P.defaultPrevented||a==null||a())},f),A=_v(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 gv(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&&(wu=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),Su(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=wu)}},[u,f,n,l]),x.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),Su())},[u,l]),x.useEffect(()=>{const P=()=>g({});return document.addEventListener(Ia,P),()=>document.removeEventListener(Ia,P)},[]),p.jsx(it.div,{...c,ref:m,style:{pointerEvents:w?T?"auto":"none":void 0,...e.style},onFocusCapture:gt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:gt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:gt(e.onPointerDownCapture,S.onPointerDownCapture)})});$c.displayName=yv;var bv="DismissableLayerBranch",wv=x.forwardRef((e,t)=>{const n=x.useContext(ph),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]),p.jsx(it.div,{...e,ref:r})});wv.displayName=bv;function Sv(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),s=x.useRef(!1),r=x.useRef(()=>{});return x.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let c=function(){mh(vv,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 _v(e,t=globalThis==null?void 0:globalThis.document){const n=jn(e),s=x.useRef(!1);return x.useEffect(()=>{const r=i=>{i.target&&!s.current&&mh(xv,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 Su(){const e=new CustomEvent(Ia);document.dispatchEvent(e)}function mh(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?mv(r,i):r.dispatchEvent(i)}var ra="focusScope.autoFocusOnMount",ia="focusScope.autoFocusOnUnmount",_u={bubbles:!1,cancelable:!0},Tv="FocusScope",zc=x.forwardRef((e,t)=>{const{loop:n=!1,trapped:s=!1,onMountAutoFocus:r,onUnmountAutoFocus:i,...o}=e,[a,c]=x.useState(null),l=jn(r),u=jn(i),d=x.useRef(null),f=Bt(t,h=>c(h)),g=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(s){let h=function(w){if(g.paused||!a)return;const T=w.target;a.contains(T)?d.current=T:Sn(d.current,{select:!0})},y=function(w){if(g.paused||!a)return;const T=w.relatedTarget;T!==null&&(a.contains(T)||Sn(d.current,{select:!0}))},v=function(w){if(document.activeElement===document.body)for(const S of w)S.removedNodes.length>0&&Sn(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const b=new MutationObserver(v);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),b.disconnect()}}},[s,a,g.paused]),x.useEffect(()=>{if(a){Cu.add(g);const h=document.activeElement;if(!a.contains(h)){const v=new CustomEvent(ra,_u);a.addEventListener(ra,l),a.dispatchEvent(v),v.defaultPrevented||(Cv(kv(gh(a)),{select:!0}),document.activeElement===h&&Sn(a))}return()=>{a.removeEventListener(ra,l),setTimeout(()=>{const v=new CustomEvent(ia,_u);a.addEventListener(ia,u),a.dispatchEvent(v),v.defaultPrevented||Sn(h??document.body,{select:!0}),a.removeEventListener(ia,u),Cu.remove(g)},0)}}},[a,l,u,g]);const m=x.useCallback(h=>{if(!n&&!s||g.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,v=document.activeElement;if(y&&v){const b=h.currentTarget,[w,T]=Ev(b);w&&T?!h.shiftKey&&v===T?(h.preventDefault(),n&&Sn(w,{select:!0})):h.shiftKey&&v===w&&(h.preventDefault(),n&&Sn(T,{select:!0})):v===b&&h.preventDefault()}},[n,s,g.paused]);return p.jsx(it.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})});zc.displayName=Tv;function Cv(e,{select:t=!1}={}){const n=document.activeElement;for(const s of e)if(Sn(s,{select:t}),document.activeElement!==n)return}function Ev(e){const t=gh(e),n=Tu(t,e),s=Tu(t.reverse(),e);return[n,s]}function gh(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 Tu(e,t){for(const n of e)if(!Av(n,{upTo:t}))return n}function Av(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 Pv(e){return e instanceof HTMLInputElement&&"select"in e}function Sn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Pv(e)&&t&&e.select()}}var Cu=Rv();function Rv(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Eu(e,t),e.unshift(t)},remove(t){var n;e=Eu(e,t),(n=e[0])==null||n.resume()}}}function Eu(e,t){const n=[...e],s=n.indexOf(t);return s!==-1&&n.splice(s,1),n}function kv(e){return e.filter(t=>t.tagName!=="A")}var Nv="Portal",Wc=x.forwardRef((e,t)=>{var a;const{container:n,...s}=e,[r,i]=x.useState(!1);hs(()=>i(!0),[]);const o=n||r&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return o?nv.createPortal(p.jsx(it.div,{...s,ref:t}),o):null});Wc.displayName=Nv;function Ov(e,t){return x.useReducer((n,s)=>t[n][s]??n,e)}var cr=e=>{const{present:t,children:n}=e,s=jv(t),r=typeof n=="function"?n({present:s.isPresent}):x.Children.only(n),i=Bt(s.ref,Dv(r));return typeof n=="function"||s.isPresent?x.cloneElement(r,{ref:i}):null};cr.displayName="Presence";function jv(e){const[t,n]=x.useState(),s=x.useRef({}),r=x.useRef(e),i=x.useRef("none"),o=e?"mounted":"unmounted",[a,c]=Ov(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const l=ji(s.current);i.current=a==="mounted"?l:"none"},[a]),hs(()=>{const l=s.current,u=r.current;if(u!==e){const f=i.current,g=ji(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]),hs(()=>{if(t){let l;const u=t.ownerDocument.defaultView??window,d=g=>{const h=ji(s.current).includes(g.animationName);if(g.target===t&&h&&(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=ji(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 ji(e){return(e==null?void 0:e.animationName)||"none"}function Dv(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 oa=0;function yh(){x.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Au()),document.body.insertAdjacentElement("beforeend",e[1]??Au()),oa++,()=>{oa===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),oa--}},[])}function Au(){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 vh(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 Mv(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 qi="right-scroll-bar-position",Zi="width-before-scroll-bar",Fv="with-scroll-bars-hidden",Lv="--removed-body-scroll-bar-size";function aa(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Iv(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 Vv=typeof window<"u"?x.useLayoutEffect:x.useEffect,Pu=new WeakMap;function Bv(e,t){var n=Iv(null,function(s){return e.forEach(function(r){return aa(r,s)})});return Vv(function(){var s=Pu.get(n);if(s){var r=new Set(s),i=new Set(e),o=n.current;r.forEach(function(a){i.has(a)||aa(a,null)}),i.forEach(function(a){r.has(a)||aa(a,o)})}Pu.set(n,e)},[e]),n}function Uv(e){return e}function $v(e,t){t===void 0&&(t=Uv);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 zv(e){e===void 0&&(e={});var t=$v(null);return t.options=Qt({async:!0,ssr:!1},e),t}var xh=function(e){var t=e.sideCar,n=vh(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))};xh.isSideCarExport=!0;function Wv(e,t){return e.useMedium(t),xh}var bh=zv(),ca=function(){},ko=x.forwardRef(function(e,t){var n=x.useRef(null),s=x.useState({onScrollCapture:ca,onWheelCapture:ca,onTouchMoveCapture:ca}),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,h=e.allowPinchZoom,y=e.as,v=y===void 0?"div":y,b=e.gapMode,w=vh(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=f,S=Bv([n,t]),A=Qt(Qt({},w),r);return x.createElement(x.Fragment,null,u&&x.createElement(T,{sideCar:bh,removeScrollBar:l,shards:d,noIsolation:g,inert:m,setCallbacks:i,allowPinchZoom:!!h,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))});ko.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ko.classNames={fullWidth:Zi,zeroRight:qi};var Hv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hv();return t&&e.setAttribute("nonce",t),e}function Zv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Kv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Gv=function(){var e=0,t=null;return{add:function(n){e==0&&(t=qv())&&(Zv(t,n),Kv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Qv=function(){var e=Gv();return function(t,n){x.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},wh=function(){var e=Qv(),t=function(n){var s=n.styles,r=n.dynamic;return e(s,r),null};return t},Xv={left:0,top:0,right:0,gap:0},la=function(e){return parseInt(e||"",10)||0},Yv=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[la(n),la(s),la(r)]},Jv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Xv;var t=Yv(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])}},ex=wh(),Ms="data-scroll-locked",tx=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(Fv,` {
overflow: hidden `).concat(s,`;
padding-right: `).concat(a,"px ").concat(s,`;
}
body[`).concat(Ms,`] {
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(qi,` {
right: `).concat(a,"px ").concat(s,`;
}
.`).concat(Zi,` {
margin-right: `).concat(a,"px ").concat(s,`;
}
.`).concat(qi," .").concat(qi,` {
right: 0 `).concat(s,`;
}
.`).concat(Zi," .").concat(Zi,` {
margin-right: 0 `).concat(s,`;
}
body[`).concat(Ms,`] {
`).concat(Lv,": ").concat(a,`px;
}
`)},Ru=function(){var e=parseInt(document.body.getAttribute(Ms)||"0",10);return isFinite(e)?e:0},nx=function(){x.useEffect(function(){return document.body.setAttribute(Ms,(Ru()+1).toString()),function(){var e=Ru()-1;e<=0?document.body.removeAttribute(Ms):document.body.setAttribute(Ms,e.toString())}},[])},sx=function(e){var t=e.noRelative,n=e.noImportant,s=e.gapMode,r=s===void 0?"margin":s;nx();var i=x.useMemo(function(){return Jv(r)},[r]);return x.createElement(ex,{styles:tx(i,!t,r,n?"":"!important")})},Va=!1;if(typeof window<"u")try{var Di=Object.defineProperty({},"passive",{get:function(){return Va=!0,!0}});window.addEventListener("test",Di,Di),window.removeEventListener("test",Di,Di)}catch{Va=!1}var Ts=Va?{passive:!1}:!1,rx=function(e){return e.tagName==="TEXTAREA"},Sh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!rx(e)&&n[t]==="visible")},ix=function(e){return Sh(e,"overflowY")},ox=function(e){return Sh(e,"overflowX")},ku=function(e,t){var n=t.ownerDocument,s=t;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var r=_h(e,s);if(r){var i=Th(e,s),o=i[1],a=i[2];if(o>a)return!0}s=s.parentNode}while(s&&s!==n.body);return!1},ax=function(e){var t=e.scrollTop,n=e.scrollHeight,s=e.clientHeight;return[t,n,s]},cx=function(e){var t=e.scrollLeft,n=e.scrollWidth,s=e.clientWidth;return[t,n,s]},_h=function(e,t){return e==="v"?ix(t):ox(t)},Th=function(e,t){return e==="v"?ax(t):cx(t)},lx=function(e,t){return e==="h"&&t==="rtl"?-1:1},ux=function(e,t,n,s,r){var i=lx(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=Th(e,a),m=g[0],h=g[1],y=g[2],v=h-y-i*m;(m||v)&&_h(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]},Nu=function(e){return[e.deltaX,e.deltaY]},Ou=function(e){return e&&"current"in e?e.current:e},dx=function(e,t){return e[0]===t[0]&&e[1]===t[1]},fx=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},hx=0,Cs=[];function px(e){var t=x.useRef([]),n=x.useRef([0,0]),s=x.useRef(),r=x.useState(hx++)[0],i=x.useState(wh)[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 h=Mv([e.lockRef.current],(e.shards||[]).map(Ou),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(r))}),function(){document.body.classList.remove("block-interactivity-".concat(r)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(r))})}}},[e.inert,e.lockRef.current,e.shards]);var a=x.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!o.current.allowPinchZoom;var v=Mi(h),b=n.current,w="deltaX"in h?h.deltaX:b[0]-v[0],T="deltaY"in h?h.deltaY:b[1]-v[1],S,A=h.target,P=Math.abs(w)>Math.abs(T)?"h":"v";if("touches"in h&&P==="h"&&A.type==="range")return!1;var E=ku(P,A);if(!E)return!0;if(E?S=P:(S=P==="v"?"h":"v",E=ku(P,A)),!E)return!1;if(!s.current&&"changedTouches"in h&&(w||T)&&(s.current=S),!S)return!0;var O=s.current||S;return ux(O,y,h,O==="h"?w:T)},[]),c=x.useCallback(function(h){var y=h;if(!(!Cs.length||Cs[Cs.length-1]!==i)){var v="deltaY"in y?Nu(y):Mi(y),b=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&dx(S.delta,v)})[0];if(b&&b.should){y.cancelable&&y.preventDefault();return}if(!b){var w=(o.current.shards||[]).map(Ou).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(h,y,v,b){var w={name:h,delta:y,target:v,should:b,shadowParent:mx(v)};t.current.push(w),setTimeout(function(){t.current=t.current.filter(function(T){return T!==w})},1)},[]),u=x.useCallback(function(h){n.current=Mi(h),s.current=void 0},[]),d=x.useCallback(function(h){l(h.type,Nu(h),h.target,a(h,e.lockRef.current))},[]),f=x.useCallback(function(h){l(h.type,Mi(h),h.target,a(h,e.lockRef.current))},[]);x.useEffect(function(){return Cs.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Ts),document.addEventListener("touchmove",c,Ts),document.addEventListener("touchstart",u,Ts),function(){Cs=Cs.filter(function(h){return h!==i}),document.removeEventListener("wheel",c,Ts),document.removeEventListener("touchmove",c,Ts),document.removeEventListener("touchstart",u,Ts)}},[]);var g=e.removeScrollBar,m=e.inert;return x.createElement(x.Fragment,null,m?x.createElement(i,{styles:fx(r)}):null,g?x.createElement(sx,{gapMode:e.gapMode}):null)}function mx(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const gx=Wv(bh,px);var Hc=x.forwardRef(function(e,t){return x.createElement(ko,Qt({},e,{ref:t,sideCar:gx}))});Hc.classNames=ko.classNames;var yx=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Es=new WeakMap,Fi=new WeakMap,Li={},ua=0,Ch=function(e){return e&&(e.host||Ch(e.parentNode))},vx=function(e,t){return t.map(function(n){if(e.contains(n))return n;var s=Ch(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})},xx=function(e,t,n,s){var r=vx(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",h=(Es.get(f)||0)+1,y=(i.get(f)||0)+1;Es.set(f,h),i.set(f,y),o.push(f),h===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(),ua++,function(){o.forEach(function(d){var f=Es.get(d)-1,g=i.get(d)-1;Es.set(d,f),i.set(d,g),f||(Fi.has(d)||d.removeAttribute(s),Fi.delete(d)),g||d.removeAttribute(n)}),ua--,ua||(Es=new WeakMap,Es=new WeakMap,Fi=new WeakMap,Li={})}},Eh=function(e,t,n){n===void 0&&(n="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),r=yx(e);return r?(s.push.apply(s,Array.from(r.querySelectorAll("[aria-live]"))),xx(s,r,n,"aria-hidden")):function(){return null}},qc="Dialog",[Ah,r1]=Uc(qc),[bx,Ut]=Ah(qc),Ph=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]=hh({prop:s,defaultProp:r,onChange:i});return p.jsx(bx,{scope:t,triggerRef:a,contentRef:c,contentId:Hi(),titleId:Hi(),descriptionId:Hi(),open:l,onOpenChange:u,onOpenToggle:x.useCallback(()=>u(d=>!d),[u]),modal:o,children:n})};Ph.displayName=qc;var Rh="DialogTrigger",kh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Rh,n),i=Bt(t,r.triggerRef);return p.jsx(it.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Gc(r.open),...s,ref:i,onClick:gt(e.onClick,r.onOpenToggle)})});kh.displayName=Rh;var Zc="DialogPortal",[wx,Nh]=Ah(Zc,{forceMount:void 0}),Oh=e=>{const{__scopeDialog:t,forceMount:n,children:s,container:r}=e,i=Ut(Zc,t);return p.jsx(wx,{scope:t,forceMount:n,children:x.Children.map(s,o=>p.jsx(cr,{present:n||i.open,children:p.jsx(Wc,{asChild:!0,container:r,children:o})}))})};Oh.displayName=Zc;var no="DialogOverlay",jh=x.forwardRef((e,t)=>{const n=Nh(no,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ut(no,e.__scopeDialog);return i.modal?p.jsx(cr,{present:s||i.open,children:p.jsx(Sx,{...r,ref:t})}):null});jh.displayName=no;var Sx=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(no,n);return p.jsx(Hc,{as:ar,allowPinchZoom:!0,shards:[r.contentRef],children:p.jsx(it.div,{"data-state":Gc(r.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),ps="DialogContent",Dh=x.forwardRef((e,t)=>{const n=Nh(ps,e.__scopeDialog),{forceMount:s=n.forceMount,...r}=e,i=Ut(ps,e.__scopeDialog);return p.jsx(cr,{present:s||i.open,children:i.modal?p.jsx(_x,{...r,ref:t}):p.jsx(Tx,{...r,ref:t})})});Dh.displayName=ps;var _x=x.forwardRef((e,t)=>{const n=Ut(ps,e.__scopeDialog),s=x.useRef(null),r=Bt(t,n.contentRef,s);return x.useEffect(()=>{const i=s.current;if(i)return Eh(i)},[]),p.jsx(Mh,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gt(e.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:gt(e.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:gt(e.onFocusOutside,i=>i.preventDefault())})}),Tx=x.forwardRef((e,t)=>{const n=Ut(ps,e.__scopeDialog),s=x.useRef(!1),r=x.useRef(!1);return p.jsx(Mh,{...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()}})}),Mh=x.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:s,onOpenAutoFocus:r,onCloseAutoFocus:i,...o}=e,a=Ut(ps,n),c=x.useRef(null),l=Bt(t,c);return yh(),p.jsxs(p.Fragment,{children:[p.jsx(zc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:p.jsx($c,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Gc(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),p.jsxs(p.Fragment,{children:[p.jsx(Cx,{titleId:a.titleId}),p.jsx(Ax,{contentRef:c,descriptionId:a.descriptionId})]})]})}),Kc="DialogTitle",Fh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Kc,n);return p.jsx(it.h2,{id:r.titleId,...s,ref:t})});Fh.displayName=Kc;var Lh="DialogDescription",Ih=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Lh,n);return p.jsx(it.p,{id:r.descriptionId,...s,ref:t})});Ih.displayName=Lh;var Vh="DialogClose",Bh=x.forwardRef((e,t)=>{const{__scopeDialog:n,...s}=e,r=Ut(Vh,n);return p.jsx(it.button,{type:"button",...s,ref:t,onClick:gt(e.onClick,()=>r.onOpenChange(!1))})});Bh.displayName=Vh;function Gc(e){return e?"open":"closed"}var Uh="DialogTitleWarning",[i1,$h]=iv(Uh,{contentName:ps,titleName:Kc,docsSlug:"dialog"}),Cx=({titleId:e})=>{const t=$h(Uh),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},Ex="DialogDescriptionWarning",Ax=({contentRef:e,descriptionId:t})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${$h(Ex).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},zh=Ph,Wh=kh,Hh=Oh,No=jh,Oo=Dh,jo=Fh,Do=Ih,Qc=Bh;function qh(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=qh(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Zh(){for(var e,t,n=0,s="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=qh(e))&&(s&&(s+=" "),s+=t);return s}const ju=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Du=Zh,Xc=(e,t)=>n=>{var s;if((t==null?void 0:t.variants)==null)return Du(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=ju(u)||ju(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[h,y]=m;return Array.isArray(y)?y.includes({...i,...a}[h]):{...i,...a}[h]===y})?[...l,d,f]:l},[]);return Du(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 Px=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Kh=(...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 Rx={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 kx=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,...Rx,width:t,height:t,stroke:e,strokeWidth:s?Number(n)*24/Number(t):n,className:Kh("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(kx,{ref:i,iconNode:t,className:Kh(`lucide-${Px(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 Nx=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],o1=At("ArrowRight",Nx);/**
* @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 Ox=[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]],jx=At("ArrowUpRight",Ox);/**
* @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=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Mx=At("ChevronLeft",Dx);/**
* @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=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Lx=At("ChevronRight",Fx);/**
* @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 Ix=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],Vx=At("Facebook",Ix);/**
* @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 Bx=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gh=At("LoaderCircle",Bx);/**
* @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:"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"}]],a1=At("Loader",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:"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"}]],zx=At("MapPin",$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 Wx=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],c1=At("Play",Wx);/**
* @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=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],qx=At("Smartphone",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 Zx=[["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"}]],Kx=At("Upload",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=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Yc=At("X",Gx),Jc="-",Qx=e=>{const t=Yx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:o=>{const a=o.split(Jc);return a[0]===""&&a.length!==1&&a.shift(),Qh(a,t)||Xx(o)},getConflictingClassGroupIds:(o,a)=>{const c=n[o]||[];return a&&s[o]?[...c,...s[o]]:c}}},Qh=(e,t)=>{var o;if(e.length===0)return t.classGroupId;const n=e[0],s=t.nextPart.get(n),r=s?Qh(e.slice(1),s):void 0;if(r)return r;if(t.validators.length===0)return;const i=e.join(Jc);return(o=t.validators.find(({validator:a})=>a(i)))==null?void 0:o.classGroupId},Mu=/^\[(.+)\]$/,Xx=e=>{if(Mu.test(e)){const t=Mu.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Yx=e=>{const{theme:t,prefix:n}=e,s={nextPart:new Map,validators:[]};return eb(Object.entries(e.classGroups),n).forEach(([i,o])=>{Ba(o,s,i,t)}),s},Ba=(e,t,n,s)=>{e.forEach(r=>{if(typeof r=="string"){const i=r===""?t:Fu(t,r);i.classGroupId=n;return}if(typeof r=="function"){if(Jx(r)){Ba(r(s),t,n,s);return}t.validators.push({validator:r,classGroupId:n});return}Object.entries(r).forEach(([i,o])=>{Ba(o,Fu(t,i),n,s)})})},Fu=(e,t)=>{let n=e;return t.split(Jc).forEach(s=>{n.nextPart.has(s)||n.nextPart.set(s,{nextPart:new Map,validators:[]}),n=n.nextPart.get(s)}),n},Jx=e=>e.isThemeGetter,eb=(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,tb=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)}}},Xh="!",nb=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(Xh),m=g?f.substring(1):f,h=d&&d>u?d-u:void 0;return{modifiers:c,hasImportantModifier:g,baseClassName:m,maybePostfixModifierPosition:h}};return n?a=>n({className:a,parseClassName:o}):o},sb=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},rb=e=>({cache:tb(e.cacheSize),parseClassName:nb(e),...Qx(e)}),ib=/\s+/,ob=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:r}=t,i=[],o=e.trim().split(ib);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,h=s(m?f.substring(0,g):f);if(!h){if(!m){a=l+(a.length>0?" "+a:a);continue}if(h=s(f),!h){a=l+(a.length>0?" "+a:a);continue}m=!1}const y=sb(u).join(":"),v=d?y+Xh:y,b=v+h;if(i.includes(b))continue;i.push(b);const w=r(h,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 ab(){let e=0,t,n,s="";for(;e<arguments.length;)(t=arguments[e++])&&(n=Yh(t))&&(s&&(s+=" "),s+=n);return s}const Yh=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=Yh(e[s]))&&(n&&(n+=" "),n+=t);return n};function cb(e,...t){let n,s,r,i=o;function o(c){const l=t.reduce((u,d)=>d(u),e());return n=rb(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=ob(c,n);return r(c,u),u}return function(){return i(ab.apply(null,arguments))}}const _e=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},Jh=/^\[(?:([a-z-]+):)?(.+)\]$/i,lb=/^\d+\/\d+$/,ub=new Set(["px","full","screen"]),db=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fb=/\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$/,hb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,pb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,mb=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,cn=e=>Fs(e)||ub.has(e)||lb.test(e),bn=e=>lr(e,"length",_b),Fs=e=>!!e&&!Number.isNaN(Number(e)),da=e=>lr(e,"number",Fs),xr=e=>!!e&&Number.isInteger(Number(e)),gb=e=>e.endsWith("%")&&Fs(e.slice(0,-1)),ce=e=>Jh.test(e),wn=e=>db.test(e),yb=new Set(["length","size","percentage"]),vb=e=>lr(e,yb,ep),xb=e=>lr(e,"position",ep),bb=new Set(["image","url"]),wb=e=>lr(e,bb,Cb),Sb=e=>lr(e,"",Tb),br=()=>!0,lr=(e,t,n)=>{const s=Jh.exec(e);return s?s[1]?typeof t=="string"?s[1]===t:t.has(s[1]):n(s[2]):!1},_b=e=>fb.test(e)&&!hb.test(e),ep=()=>!1,Tb=e=>pb.test(e),Cb=e=>mb.test(e),Eb=()=>{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"),h=_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"),O=()=>["auto","contain","none"],D=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto",ce,t],j=()=>[ce,t],$=()=>["",cn,bn],I=()=>["auto",Fs,ce],J=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],X=()=>["solid","dashed","dotted","double","none"],H=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],q=()=>["start","end","center","between","around","evenly","stretch"],re=()=>["","0",ce],de=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ge=()=>[Fs,ce];return{cacheSize:500,separator:":",theme:{colors:[br],spacing:[cn,bn],blur:["none","",wn,ce],brightness:ge(),borderColor:[e],borderRadius:["none","","full",wn,ce],borderSpacing:j(),borderWidth:$(),contrast:ge(),grayscale:re(),hueRotate:ge(),invert:re(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[gb,bn],inset:L(),margin:L(),opacity:ge(),padding:j(),saturate:ge(),scale:ge(),sepia:re(),skew:ge(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",ce]}],container:["container"],columns:[{columns:[wn]}],"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:O()}],"overscroll-x":[{"overscroll-x":O()}],"overscroll-y":[{"overscroll-y":O()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",xr,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",xr,ce]}],"grid-cols":[{"grid-cols":[br]}],"col-start-end":[{col:["auto",{span:["full",xr,ce]},ce]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[br]}],"row-start-end":[{row:["auto",{span:[xr,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",...q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...q(),"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:[wn]},wn]}],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",wn,bn]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",da]}],"font-family":[{font:[br]}],"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",Fs,da]}],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,bn]}],"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:j()}],"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(),xb]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",vb]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},wb]}],"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,bn]}],"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,bn]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",wn,Sb]}],"shadow-color":[{shadow:[br]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...H(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":H()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[s]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":["","none",wn,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:[xr,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":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"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,bn,da]}],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"]}}},Ab=cb(Eb);function K(...e){return Ab(Zh(e))}const Pb=zh,Rb=Wh,kb=Qc,Nb=Hh,tp=x.forwardRef(({className:e,...t},n)=>p.jsx(No,{className:K("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}));tp.displayName=No.displayName;const Ob=Xc("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"}}),np=x.forwardRef(({side:e="right",className:t,children:n,...s},r)=>p.jsxs(Nb,{children:[p.jsx(tp,{}),p.jsxs(Oo,{ref:r,className:K(Ob({side:e}),t),...s,children:[p.jsxs(Qc,{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:[p.jsx(Yc,{className:"size-8"}),p.jsx("span",{className:"sr-only",children:"Close"})]}),n]})]}));np.displayName=Oo.displayName;const sp=({className:e,...t})=>p.jsx("div",{className:K("flex flex-col space-y-2 text-center sm:text-left",e),...t});sp.displayName="SheetHeader";const jb=x.forwardRef(({className:e,...t},n)=>p.jsx(jo,{ref:n,className:K("text-lg font-semibold text-foreground",e),...t}));jb.displayName=jo.displayName;const Db=x.forwardRef(({className:e,...t},n)=>p.jsx(Do,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));Db.displayName=Do.displayName;const Mb=Xc("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"}}),ht=x.forwardRef(({className:e,variant:t,size:n,loading:s,children:r,asChild:i=!1,...o},a)=>{const c=i?ar:"button";return p.jsx(c,{className:K(Mb({variant:t,size:n,className:e})),ref:a,...o,children:s?p.jsx(Gh,{className:"w-5 h-5 animate-spin"}):r})});ht.displayName="Button";const Fb=(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);ls(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)},Lu={},Ua=(e,t,n,s)=>{ls(n)&&Lu[n]||(ls(n)&&(Lu[n]=new Date),Fb(e,t,n,s))},rp=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},$a=(e,t,n)=>{e.loadNamespaces(t,rp(e,n))},Iu=(e,t,n,s)=>{if(ls(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return $a(e,n,s);n.forEach(r=>{e.options.ns.indexOf(r)<0&&e.options.ns.push(r)}),e.loadLanguages(t,rp(e,s))},Lb=(e,t,n={})=>!t.languages||!t.languages.length?(Ua(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}}),ls=e=>typeof e=="string",Ib=e=>typeof e=="object"&&e!==null,Vb=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Bb={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Ub=e=>Bb[e],$b=e=>e.replace(Vb,Ub);let za={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:$b};const zb=(e={})=>{za={...za,...e}},Wb=()=>za;let ip;const Hb=e=>{ip=e},qb=()=>ip,l1={type:"3rdParty",init(e){zb(e.options.react),Hb(e)}},Zb=x.createContext();class Kb{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const Gb=(e,t)=>{const n=x.useRef();return x.useEffect(()=>{n.current=e},[e,t]),n.current},op=(e,t,n,s)=>e.getFixedT(t,n,s),Qb=(e,t,n,s)=>x.useCallback(op(e,t,n,s),[e,t,n,s]),yi=(e,t={})=>{var T,S,A,P;const{i18n:n}=t,{i18n:s,defaultNS:r}=x.useContext(Zb)||{},i=n||s||qb();if(i&&!i.reportNamespaces&&(i.reportNamespaces=new Kb),!i){Ua(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const E=(D,L)=>ls(L)?L:Ib(L)&&ls(L.defaultValue)?L.defaultValue:Array.isArray(D)?D[D.length-1]:D,O=[E,{},!1];return O.t=E,O.i18n={},O.ready=!1,O}(T=i.options.react)!=null&&T.wait&&Ua(i,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...Wb(),...i.options.react,...t},{useSuspense:a,keyPrefix:c}=o;let l=e||r||((S=i.options)==null?void 0:S.defaultNS);l=ls(l)?[l]:l||["translation"],(P=(A=i.reportNamespaces).addUsedNamespaces)==null||P.call(A,l);const u=(i.isInitialized||i.initializedStoreOnce)&&l.every(E=>Lb(E,i,o)),d=Qb(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),f=()=>d,g=()=>op(i,t.lng||null,o.nsMode==="fallback"?l:l[0],c),[m,h]=x.useState(f);let y=l.join();t.lng&&(y=`${t.lng}${y}`);const v=Gb(y),b=x.useRef(!0);x.useEffect(()=>{const{bindI18n:E,bindI18nStore:O}=o;b.current=!0,!u&&!a&&(t.lng?Iu(i,t.lng,l,()=>{b.current&&h(g)}):$a(i,l,()=>{b.current&&h(g)})),u&&v&&v!==y&&b.current&&h(g);const D=()=>{b.current&&h(g)};return E&&(i==null||i.on(E,D)),O&&(i==null||i.store.on(O,D)),()=>{b.current=!1,i&&(E==null||E.split(" ").forEach(L=>i.off(L,D))),O&&i&&O.split(" ").forEach(L=>i.store.off(L,D))}},[i,y]),x.useEffect(()=>{b.current&&u&&h(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?Iu(i,t.lng,l,()=>E()):$a(i,l,()=>E())})},ap=({className:e})=>p.jsx("div",{className:K("",e),children:p.jsx("img",{src:"/logo.svg",alt:"logo",className:"md:size-auto h-10"})}),cp=({className:e,image:t,title:n,iconClassName:s})=>p.jsxs("article",{className:K("bg-surface_container relative hover:bg-teritary_surface_container transition-all md:px-6 px-2 md:h-[224px] h-[124px]",e),children:[p.jsx("div",{className:"bg-primary size-full -z-[10] absolute top-2.5 left-2.5"}),p.jsx("div",{className:K("md:size-[84px] size-12 bg-teritary p-3",s),children:p.jsx("img",{src:t.path,alt:"theme icon"})}),p.jsx("h3",{className:"md:mt-6 mt-2 md:text-xl text-sm",children:n})]}),Xb=({className:e,title:t,text:n})=>p.jsxs("article",{className:K("px-6 py-4 relative bg-surface_container h-[160px] w-full overflow-hidden",e),children:[p.jsx("img",{src:"/about-card-bg.svg",className:"absolute top-2 right-0"}),p.jsx("h2",{className:"text-primary text-[32px] semibold leading-[130%] mb-4",children:n}),p.jsx("h4",{className:"text-on_surface normal text-base",children:t})]}),Yb=({className:e,title:t,text:n,img:s,link:r,btnText:i})=>p.jsxs("article",{className:K("md:px-8 md:py-6 p-4 relative overflow-hidden h-[296px] md:w-full w-[300px] text-on_primary",e),children:[p.jsx("div",{className:"absolute size-full z-10 top-0 left-0 bg-gradient-to-r from-25% from-primary to-primary/20 "}),p.jsx("img",{src:s,className:"absolute size-full top-0 right-0 object-cover"}),p.jsxs("div",{className:"relative z-20 h-full",children:[p.jsxs("div",{className:"",children:[p.jsx("h4",{className:"md:text-2xl text-lg mb-4 max-w-[444px] z-20 h-16",children:t}),p.jsx("p",{className:"md:text-base text-sm normal max-w-[360px] z-20",children:n})]}),p.jsx(Ne,{className:"absolute bottom-0 left-0",target:"_blank",to:r,children:p.jsxs(ht,{className:"text-sm px-0 h-fit py-0 z-20",variant:"link",children:[i," ",p.jsx(jx,{})]})})]})]}),lp=({className:e,title:t,text:n,bottomClassName:s})=>p.jsxs("div",{className:K("rounded-t-[4px] overflow-hidden",e),children:[p.jsx("div",{className:"bg-teritary text-white flex items-center h-11 px-4",children:t}),p.jsx("div",{className:K("h-14 bg-surface_container semibold flex items-center text-lg px-4",s),children:n})]}),Jb=({className:e,text:t,title:n,image:s})=>p.jsxs("div",{className:K("flex items-center gap-4",e),children:[p.jsx("div",{className:"bg-secondary_container size-16 rounded-[2px] p-3",children:p.jsx("img",{src:s.path,alt:"contact icon",className:"size-full"})}),p.jsxs("div",{className:"flex flex-col gap-2",children:[p.jsx("h5",{className:"text-sm text-[#454545]",children:n}),p.jsx("h4",{className:"text-[#171717] semibold",children:t})]})]}),el=x.createContext({});function tl(e){const t=x.useRef(null);return t.current===null&&(t.current=e()),t.current}const Mo=x.createContext(null),nl=x.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class ew 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 tw({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(nl);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]),p.jsx(ew,{isPresent:t,childRef:r,sizeRef:i,children:x.cloneElement(e,{ref:r})})}const nw=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:r,presenceAffectsLayout:i,mode:o,anchorX:a})=>{const c=tl(sw),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=p.jsx(tw,{isPresent:n,anchorX:a,children:e})),p.jsx(Mo.Provider,{value:d,children:e})};function sw(){return new Map}function up(e=!0){const t=x.useContext(Mo);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 Vu(e){const t=[];return x.Children.forEach(e,n=>{x.isValidElement(n)&&t.push(n)}),t}const sl=typeof window<"u",dp=sl?x.useLayoutEffect:x.useEffect,u1=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:r=!0,mode:i="sync",propagate:o=!1,anchorX:a="left"})=>{const[c,l]=up(o),u=x.useMemo(()=>Vu(e),[e]),d=o&&!c?[]:u.map(Ii),f=x.useRef(!0),g=x.useRef(u),m=tl(()=>new Map),[h,y]=x.useState(u),[v,b]=x.useState(u);dp(()=>{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!==h){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(Vu(S)),y(u);return}const{forceRender:T}=x.useContext(el);return p.jsx(p.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 O=!0;m.forEach(D=>{D||(O=!1)}),O&&(T==null||T(),b(g.current),o&&(l==null||l()),s&&s())};return p.jsx(nw,{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)})})},yt=e=>e;let Wa=yt;const rw={skipAnimations:!1,useManualTiming:!1};function iw(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"],ow=40;function fp(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]=iw(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,ow),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:Dn,state:ze,steps:fa}=fp(typeof requestAnimationFrame<"u"?requestAnimationFrame:yt,!0),hp=x.createContext({strict:!1}),Bu={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"]},Js={};for(const e in Bu)Js[e]={isEnabled:t=>Bu[e].some(n=>!!t[n])};function aw(e){for(const t in e)Js[t]={...Js[t],...e[t]}}const cw=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 so(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cw.has(e)}let pp=e=>!so(e);function lw(e){e&&(pp=t=>t.startsWith("on")?!so(t):e(t))}try{lw(require("@emotion/is-prop-valid").default)}catch{}function uw(e,t,n){const s={};for(const r in e)r==="values"&&typeof e.values=="object"||(pp(r)||n===!0&&so(r)||!t&&!so(r)||e.draggable&&r.startsWith("onDrag"))&&(s[r]=e[r]);return s}function dw(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 Fo=x.createContext({});function Br(e){return typeof e=="string"||Array.isArray(e)}function Lo(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const rl=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],il=["initial",...rl];function Io(e){return Lo(e.animate)||il.some(t=>Br(e[t]))}function mp(e){return!!(Io(e)||e.variants)}function fw(e,t){if(Io(e)){const{initial:n,animate:s}=e;return{initial:n===!1||Br(n)?n:void 0,animate:Br(s)?s:void 0}}return e.inherit!==!1?t:{}}function hw(e){const{initial:t,animate:n}=fw(e,x.useContext(Fo));return x.useMemo(()=>({initial:t,animate:n}),[Uu(t),Uu(n)])}function Uu(e){return Array.isArray(e)?e.join(" "):e}const pw=Symbol.for("motionComponentSymbol");function Rs(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function mw(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):Rs(n)&&(n.current=s))},[t])}const ol=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),gw="framerAppearId",gp="data-"+ol(gw),{schedule:al,cancel:d1}=fp(queueMicrotask,!1),yp=x.createContext({});function yw(e,t,n,s,r){var i,o;const{visualElement:a}=x.useContext(Fo),c=x.useContext(hp),l=x.useContext(Mo),u=x.useContext(nl).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(yp);f&&!f.projection&&r&&(f.type==="html"||f.type==="svg")&&vw(d.current,n,r,g);const m=x.useRef(!1);x.useInsertionEffect(()=>{f&&m.current&&f.update(n,l)});const h=n[gp],y=x.useRef(!!h&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,h))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,h)));return dp(()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),al.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,h)}),y.current=!1))}),f}function vw(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:vp(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:!!o||a&&Rs(a),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:s,layoutScroll:c,layoutRoot:l})}function vp(e){if(e)return e.options.allowProjection!==!1?e.projection:vp(e.parent)}function xw({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:s,Component:r}){var i,o;e&&aw(e);function a(l,u){let d;const f={...x.useContext(nl),...l,layoutId:bw(l)},{isStatic:g}=f,m=hw(l),h=s(l,g);if(!g&&sl){ww();const y=Sw(f);d=y.MeasureLayout,m.visualElement=yw(r,h,f,t,y.ProjectionNode)}return p.jsxs(Fo.Provider,{value:m,children:[d&&m.visualElement?p.jsx(d,{visualElement:m.visualElement,...f}):null,n(r,l,mw(h,m.visualElement,u),h,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[pw]=r,c}function bw({layoutId:e}){const t=x.useContext(el).id;return t&&e!==void 0?t+"-"+e:e}function ww(e,t){x.useContext(hp).strict}function Sw(e){const{drag:t,layout:n}=Js;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 _w=["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 cl(e){return typeof e!="string"||e.includes("-")?!1:!!(_w.indexOf(e)>-1||/[A-Z]/u.test(e))}function $u(e){const t=[{},{}];return e==null||e.values.forEach((n,s)=>{t[0][s]=n.get(),t[1][s]=n.getVelocity()}),t}function ll(e,t,n,s){if(typeof t=="function"){const[r,i]=$u(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]=$u(s);t=t(n!==void 0?n:e.custom,r,i)}return t}const Ha=e=>Array.isArray(e),Tw=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Cw=e=>Ha(e)?e[e.length-1]||0:e,Qe=e=>!!(e&&e.getVelocity);function Ki(e){const t=Qe(e)?e.get():e;return Tw(t)?t.toValue():t}function Ew({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},s,r,i){const o={latestValues:Aw(s,r,i,e),renderState:t()};return n&&(o.onMount=a=>n({props:s,current:a,...o}),o.onUpdate=a=>n(a)),o}const xp=e=>(t,n)=>{const s=x.useContext(Fo),r=x.useContext(Mo),i=()=>Ew(e,t,s,r);return n?i():tl(i)};function Aw(e,t,n,s){const r={},i=s(e,{});for(const f in i)r[f]=Ki(i[f]);let{initial:o,animate:a}=e;const c=Io(e),l=mp(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"&&!Lo(d)){const f=Array.isArray(d)?d:[d];for(let g=0;g<f.length;g++){const m=ll(e,f[g]);if(m){const{transitionEnd:h,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 h)r[b]=h[b]}}}return r}const ur=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ss=new Set(ur),bp=e=>t=>typeof t=="string"&&t.startsWith(e),ul=bp("--"),Pw=bp("var(--"),dl=e=>Pw(e)?Rw.test(e.split("/*")[0].trim()):!1,Rw=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,wp=(e,t)=>t&&typeof e=="number"?t.transform(e):e,gn=(e,t,n)=>n>t?t:n<e?e:n,dr={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ur={...dr,transform:e=>gn(0,1,e)},Bi={...dr,default:1},vi=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_n=vi("deg"),Jt=vi("%"),ee=vi("px"),kw=vi("vh"),Nw=vi("vw"),zu={...Jt,parse:e=>Jt.parse(e)/100,transform:e=>Jt.transform(e*100)},Ow={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},jw={rotate:_n,rotateX:_n,rotateY:_n,rotateZ:_n,scale:Bi,scaleX:Bi,scaleY:Bi,scaleZ:Bi,skew:_n,skewX:_n,skewY:_n,distance:ee,translateX:ee,translateY:ee,translateZ:ee,x:ee,y:ee,z:ee,perspective:ee,transformPerspective:ee,opacity:Ur,originX:zu,originY:zu,originZ:ee},Wu={...dr,transform:Math.round},fl={...Ow,...jw,zIndex:Wu,size:ee,fillOpacity:Ur,strokeOpacity:Ur,numOctaves:Wu},Dw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mw=ur.length;function Fw(e,t,n){let s="",r=!0;for(let i=0;i<Mw;i++){const o=ur[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=wp(a,fl[o]);if(!c){r=!1;const u=Dw[o]||o;s+=`${u}(${l}) `}n&&(t[o]=l)}}return s=s.trim(),n?s=n(t,r?"":s):r&&(s="none"),s}function hl(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(Ss.has(c)){o=!0;continue}else if(ul(c)){r[c]=l;continue}else{const u=wp(l,fl[c]);c.startsWith("origin")?(a=!0,i[c]=u):s[c]=u}}if(t.transform||(o||n?s.transform=Fw(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 Lw={offset:"stroke-dashoffset",array:"stroke-dasharray"},Iw={offset:"strokeDashoffset",array:"strokeDasharray"};function Vw(e,t,n=1,s=0,r=!0){e.pathLength=1;const i=r?Lw:Iw;e[i.offset]=ee.transform(-s);const o=ee.transform(t),a=ee.transform(n);e[i.array]=`${o} ${a}`}function Hu(e,t,n){return typeof e=="string"?e:ee.transform(t+n*e)}function Bw(e,t,n){const s=Hu(t,e.x,e.width),r=Hu(n,e.y,e.height);return`${s} ${r}`}function pl(e,{attrX:t,attrY:n,attrScale:s,originX:r,originY:i,pathLength:o,pathSpacing:a=1,pathOffset:c=0,...l},u,d){if(hl(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=Bw(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&&Vw(f,o,a,c,!1)}const ml=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Sp=()=>({...ml(),attrs:{}}),gl=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _p(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 Tp=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 Cp(e,t,n,s){_p(e,t,void 0,s);for(const r in t.attrs)e.setAttribute(Tp.has(r)?r:ol(r),t.attrs[r])}const $r={};function Uw(e){for(const t in e)$r[t]=e[t],ul(t)&&($r[t].isCSSVariable=!0)}function Ep(e,{layout:t,layoutId:n}){return Ss.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!$r[e]||e==="opacity")}function yl(e,t,n){var s;const{style:r}=e,i={};for(const o in r)(Qe(r[o])||t.style&&Qe(t.style[o])||Ep(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 Ap(e,t,n){const s=yl(e,t,n);for(const r in e)if(Qe(e[r])||Qe(t[r])){const i=ur.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;s[i]=e[r]}return s}function $w(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 qu=["x","y","width","height","cx","cy","r"],zw={useVisualState:xp({scrapeMotionValuesFromProps:Ap,createRenderState:Sp,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(Ss.has(a)){i=!0;break}}if(!i)return;let o=!t;if(t)for(let a=0;a<qu.length;a++){const c=qu[a];e[c]!==t[c]&&(o=!0)}o&&Te.read(()=>{$w(n,s),Te.render(()=>{pl(s,r,gl(n.tagName),e.transformTemplate),Cp(n,s)})})}})},Ww={useVisualState:xp({scrapeMotionValuesFromProps:yl,createRenderState:ml})};function Pp(e,t,n){for(const s in t)!Qe(t[s])&&!Ep(s,n)&&(e[s]=t[s])}function Hw({transformTemplate:e},t){return x.useMemo(()=>{const n=ml();return hl(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qw(e,t){const n=e.style||{},s={};return Pp(s,n,e),Object.assign(s,Hw(e,t)),s}function Zw(e,t){const n={},s=qw(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 Kw(e,t,n,s){const r=x.useMemo(()=>{const i=Sp();return pl(i,t,gl(s),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Pp(i,e.style,e),r.style={...i,...r.style}}return r}function Gw(e=!1){return(n,s,r,{latestValues:i},o)=>{const c=(cl(n)?Kw:Zw)(s,i,o,n),l=uw(s,typeof n=="string",e),u=n!==x.Fragment?{...l,...c,ref:r}:{},{children:d}=s,f=x.useMemo(()=>Qe(d)?d.get():d,[d]);return x.createElement(n,{...u,children:f})}}function Qw(e,t){return function(s,{forwardMotionProps:r}={forwardMotionProps:!1}){const o={...cl(s)?zw:Ww,preloadedFeatures:e,useRender:Gw(r),createVisualElement:t,Component:s};return xw(o)}}function Rp(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 Vo(e,t,n){const s=e.getProps();return ll(s,t,n!==void 0?n:s.custom,e)}function vl(e,t){return e?e[t]||e.default||e:void 0}const kp=new Set(["width","height","top","left","right","bottom",...ur]);let Gi;function Xw(){Gi=void 0}const en={now:()=>(Gi===void 0&&en.set(ze.isProcessing||rw.useManualTiming?ze.timestamp:performance.now()),Gi),set:e=>{Gi=e,queueMicrotask(Xw)}};function xl(e,t){e.indexOf(t)===-1&&e.push(t)}function bl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class wl{constructor(){this.subscriptions=[]}add(t){return xl(this.subscriptions,t),()=>bl(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 Np(e,t){return t?e*(1e3/t):0}const Zu=30,Yw=e=>!isNaN(parseFloat(e));class Jw{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=Yw(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 wl);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>Zu)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Zu);return Np(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 zr(e,t){return new Jw(e,t)}function e0(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,zr(n))}function t0(e,t){const n=Vo(e,t);let{transitionEnd:s={},transition:r={},...i}=n||{};i={...i,...s};for(const o in i){const a=Cw(i[o]);e0(e,o,a)}}function n0(e){return!!(Qe(e)&&e.add)}function qa(e,t){const n=e.getValue("willChange");if(n0(n))return n.add(t)}function Op(e){return e.props[gp]}function Sl(e){let t;return()=>(t===void 0&&(t=e()),t)}const s0=Sl(()=>window.ScrollTimeline!==void 0);class r0{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(s0()&&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 i0 extends r0{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const pn=e=>e*1e3,mn=e=>e/1e3;function _l(e){return typeof e=="function"}function Ku(e,t){e.timeline=t,e.onfinish=null}const Tl=e=>Array.isArray(e)&&typeof e[0]=="number",o0={linearEasing:void 0};function a0(e,t){const n=Sl(e);return()=>{var s;return(s=o0[t])!==null&&s!==void 0?s:n()}}const ro=a0(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),er=(e,t,n)=>{const s=t-e;return s===0?1:(n-e)/s},jp=(e,t,n=10)=>{let s="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)s+=e(er(0,r-1,i))+", ";return`linear(${s.substring(0,s.length-2)})`};function Dp(e){return!!(typeof e=="function"&&ro()||!e||typeof e=="string"&&(e in Za||ro())||Tl(e)||Array.isArray(e)&&e.every(Dp))}const Cr=([e,t,n,s])=>`cubic-bezier(${e}, ${t}, ${n}, ${s})`,Za={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Cr([0,.65,.55,1]),circOut:Cr([.55,0,1,.45]),backIn:Cr([.31,.01,.66,-.59]),backOut:Cr([.33,1.53,.69,.99])};function Mp(e,t){if(e)return typeof e=="function"&&ro()?jp(e,t):Tl(e)?Cr(e):Array.isArray(e)?e.map(n=>Mp(n,t)||Za.easeOut):Za[e]}const Fp=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,c0=1e-7,l0=12;function u0(e,t,n,s,r){let i,o,a=0;do o=t+(n-t)/2,i=Fp(o,s,r)-e,i>0?n=o:t=o;while(Math.abs(i)>c0&&++a<l0);return o}function xi(e,t,n,s){if(e===t&&n===s)return yt;const r=i=>u0(i,0,1,e,n);return i=>i===0||i===1?i:Fp(r(i),t,s)}const Lp=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ip=e=>t=>1-e(1-t),Vp=xi(.33,1.53,.69,.99),Cl=Ip(Vp),Bp=Lp(Cl),Up=e=>(e*=2)<1?.5*Cl(e):.5*(2-Math.pow(2,-10*(e-1))),El=e=>1-Math.sin(Math.acos(e)),$p=Ip(El),zp=Lp(El),Wp=e=>/^0[^.\s]+$/u.test(e);function d0(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Wp(e):!0}const Or=e=>Math.round(e*1e5)/1e5,Al=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function f0(e){return e==null}const h0=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pl=(e,t)=>n=>!!(typeof n=="string"&&h0.test(n)&&n.startsWith(e)||t&&!f0(n)&&Object.prototype.hasOwnProperty.call(n,t)),Hp=(e,t,n)=>s=>{if(typeof s!="string")return s;const[r,i,o,a]=s.match(Al);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},p0=e=>gn(0,255,e),ha={...dr,transform:e=>Math.round(p0(e))},Yn={test:Pl("rgb","red"),parse:Hp("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:s=1})=>"rgba("+ha.transform(e)+", "+ha.transform(t)+", "+ha.transform(n)+", "+Or(Ur.transform(s))+")"};function m0(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 Ka={test:Pl("#"),parse:m0,transform:Yn.transform},ks={test:Pl("hsl","hue"),parse:Hp("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(Ur.transform(s))+")"},Ke={test:e=>Yn.test(e)||Ka.test(e)||ks.test(e),parse:e=>Yn.test(e)?Yn.parse(e):ks.test(e)?ks.parse(e):Ka.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Yn.transform(e):ks.transform(e)},g0=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function y0(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Al))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(g0))===null||n===void 0?void 0:n.length)||0)>0}const qp="number",Zp="color",v0="var",x0="var(",Gu="${}",b0=/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 Wr(e){const t=e.toString(),n=[],s={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(b0,c=>(Ke.test(c)?(s.color.push(i),r.push(Zp),n.push(Ke.parse(c))):c.startsWith(x0)?(s.var.push(i),r.push(v0),n.push(c)):(s.number.push(i),r.push(qp),n.push(parseFloat(c))),++i,Gu)).split(Gu);return{values:n,split:a,indexes:s,types:r}}function Kp(e){return Wr(e).values}function Gp(e){const{split:t,types:n}=Wr(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===Zp?i+=Ke.transform(r[o]):i+=r[o]}return i}}const w0=e=>typeof e=="number"?0:e;function S0(e){const t=Kp(e);return Gp(e)(t.map(w0))}const Mn={test:y0,parse:Kp,createTransformer:Gp,getAnimatableNone:S0},_0=new Set(["brightness","contrast","saturate","opacity"]);function T0(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[s]=n.match(Al)||[];if(!s)return e;const r=n.replace(s,"");let i=_0.has(t)?1:0;return s!==n&&(i*=100),t+"("+i+r+")"}const C0=/\b([a-z-]*)\(.*?\)/gu,Ga={...Mn,getAnimatableNone:e=>{const t=e.match(C0);return t?t.map(T0).join(" "):e}},E0={...fl,color:Ke,backgroundColor:Ke,outlineColor:Ke,fill:Ke,stroke:Ke,borderColor:Ke,borderTopColor:Ke,borderRightColor:Ke,borderBottomColor:Ke,borderLeftColor:Ke,filter:Ga,WebkitFilter:Ga},Rl=e=>E0[e];function Qp(e,t){let n=Rl(e);return n!==Ga&&(n=Mn),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const A0=new Set(["auto","none","0"]);function P0(e,t,n){let s=0,r;for(;s<e.length&&!r;){const i=e[s];typeof i=="string"&&!A0.has(i)&&Wr(i).values.length&&(r=e[s]),s++}if(r&&n)for(const i of t)e[i]=Qp(n,r)}const Qu=e=>e===dr||e===ee,Xu=(e,t)=>parseFloat(e.split(", ")[t]),Yu=(e,t)=>(n,{transform:s})=>{if(s==="none"||!s)return 0;const r=s.match(/^matrix3d\((.+)\)$/u);if(r)return Xu(r[1],t);{const i=s.match(/^matrix\((.+)\)$/u);return i?Xu(i[1],e):0}},R0=new Set(["x","y","z"]),k0=ur.filter(e=>!R0.has(e));function N0(e){const t=[];return k0.forEach(n=>{const s=e.getValue(n);s!==void 0&&(t.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),t}const tr={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:Yu(4,13),y:Yu(5,14)};tr.translateX=tr.x;tr.translateY=tr.y;const us=new Set;let Qa=!1,Xa=!1;function Xp(){if(Xa){const e=Array.from(us).filter(s=>s.needsMeasurement),t=new Set(e.map(s=>s.element)),n=new Map;t.forEach(s=>{const r=N0(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)})}Xa=!1,Qa=!1,us.forEach(e=>e.complete()),us.clear()}function Yp(){us.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Xa=!0)})}function O0(){Yp(),Xp()}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?(us.add(this),Qa||(Qa=!0,Te.read(Yp),Te.resolveKeyframes(Xp))):(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),us.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,us.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Jp=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),j0=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function D0(e){const t=j0.exec(e);if(!t)return[,];const[,n,s,r]=t;return[`--${n??s}`,r]}function em(e,t,n=1){const[s,r]=D0(e);if(!s)return;const i=window.getComputedStyle(t).getPropertyValue(s);if(i){const o=i.trim();return Jp(o)?parseFloat(o):o}return dl(r)?em(r,t,n+1):r}const tm=e=>t=>t.test(e),M0={test:e=>e==="auto",parse:e=>e},nm=[dr,ee,Jt,_n,Nw,kw,M0],Ju=e=>nm.find(tm(e));class sm 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(),dl(l))){const u=em(l,n.current);u!==void 0&&(t[c]=u),c===t.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!kp.has(s)||t.length!==2)return;const[r,i]=t,o=Ju(r),a=Ju(i);if(o!==a)if(Qu(o)&&Qu(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++)d0(t[r])&&s.push(r);s.length&&P0(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=tr[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]=tr[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 ed=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Mn.test(e)||e==="0")&&!e.startsWith("url("));function F0(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 L0(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=ed(r,t),a=ed(i,t);return!o||!a?!1:F0(e)||(n==="spring"||_l(n))&&s}const I0=e=>e!==null;function Bo(e,{repeat:t,repeatType:n="loop"},s){const r=e.filter(I0),i=t&&n!=="loop"&&t%2===1?0:r.length-1;return!i||s===void 0?r[i]:s}const V0=40;class rm{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>V0?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&O0(),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&&!L0(t,s,r,i))if(o)this.options.duration=0;else{c&&c(Bo(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 Ya=2e4;function im(e){let t=0;const n=50;let s=e.next(t);for(;!s.done&&t<Ya;)t+=n,s=e.next(t);return t>=Ya?1/0:t}const Ae=(e,t,n)=>e+(t-e)*n;function pa(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 B0({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=pa(c,a,e+1/3),i=pa(c,a,e),o=pa(c,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:s}}function io(e,t){return n=>n>0?t:e}const ma=(e,t,n)=>{const s=e*e,r=n*(t*t-s)+s;return r<0?0:Math.sqrt(r)},U0=[Ka,Yn,ks],$0=e=>U0.find(t=>t.test(e));function td(e){const t=$0(e);if(!t)return!1;let n=t.parse(e);return t===ks&&(n=B0(n)),n}const nd=(e,t)=>{const n=td(e),s=td(t);if(!n||!s)return io(e,t);const r={...n};return i=>(r.red=ma(n.red,s.red,i),r.green=ma(n.green,s.green,i),r.blue=ma(n.blue,s.blue,i),r.alpha=Ae(n.alpha,s.alpha,i),Yn.transform(r))},z0=(e,t)=>n=>t(e(n)),bi=(...e)=>e.reduce(z0),Ja=new Set(["none","hidden"]);function W0(e,t){return Ja.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function H0(e,t){return n=>Ae(e,t,n)}function Nl(e){return typeof e=="number"?H0:typeof e=="string"?dl(e)?io:Ke.test(e)?nd:K0:Array.isArray(e)?om:typeof e=="object"?Ke.test(e)?nd:q0:io}function om(e,t){const n=[...e],s=n.length,r=e.map((i,o)=>Nl(i)(i,t[o]));return i=>{for(let o=0;o<s;o++)n[o]=r[o](i);return n}}function q0(e,t){const n={...e,...t},s={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(s[r]=Nl(e[r])(e[r],t[r]));return r=>{for(const i in s)n[i]=s[i](r);return n}}function Z0(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 K0=(e,t)=>{const n=Mn.createTransformer(t),s=Wr(e),r=Wr(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?Ja.has(e)&&!r.values.length||Ja.has(t)&&!s.values.length?W0(e,t):bi(om(Z0(s,r),r.values),n):io(e,t)};function am(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ae(e,t,n):Nl(e)(e,t)}const G0=5;function cm(e,t,n){const s=Math.max(t-G0,0);return Np(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},sd=.001;function Q0({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=ec(l,o),m=Math.exp(-d);return sd-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),h=ec(Math.pow(l,2),o);return(-r(l)+sd>0?-1:1)*((f-g)*m)/h}):(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=Y0(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 X0=12;function Y0(e,t,n){let s=n;for(let r=1;r<X0;r++)s=s-e(s)/t(s);return s}function ec(e,t){return e*Math.sqrt(1-t*t)}const J0=["duration","bounce"],eS=["stiffness","damping","mass"];function rd(e,t){return t.some(n=>e[n]!==void 0)}function tS(e){let t={velocity:ke.velocity,stiffness:ke.stiffness,damping:ke.damping,mass:ke.mass,isResolvedFromDuration:!1,...e};if(!rd(e,eS)&&rd(e,J0))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=Q0(e);t={...t,...n,mass:ke.mass},t.isResolvedFromDuration=!0}return t}function lm(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}=tS({...n,velocity:-mn(n.velocity||0)}),m=f||0,h=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(h<1){const S=ec(v,h);w=A=>{const P=Math.exp(-h*v*A);return o-P*((m+h*v*y)/S*Math.sin(S*A)+y*Math.cos(S*A))}}else if(h===1)w=S=>o-Math.exp(-v*S)*(y+(m+v*y)*S);else{const S=v*Math.sqrt(h*h-1);w=A=>{const P=Math.exp(-h*v*A),E=Math.min(S*A,300);return o-P*((m+h*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;h<1&&(P=S===0?pn(m):cm(w,S,A));const E=Math.abs(P)<=s,O=Math.abs(o-A)<=r;a.done=E&&O}return a.value=a.done?o:A,a},toString:()=>{const S=Math.min(im(T),Ya),A=jp(P=>T.next(S*P).value,S,30);return S+"ms "+A}};return T}function id({keyframes:e,velocity:t=0,power:n=.8,timeConstant:s=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:o,min:a,max:c,restDelta:l=.5,restSpeed:u}){const d=e[0],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 h=n*t;const y=d+h,v=o===void 0?y:o(y);v!==y&&(h=v-d);const b=E=>-h*Math.exp(-E/s),w=E=>v+b(E),T=E=>{const O=b(E),D=w(E);f.done=Math.abs(O)<=l,f.value=f.done?v:D};let S,A;const P=E=>{g(f.value)&&(S=E,A=lm({keyframes:[f.value,m(f.value)],velocity:cm(w,E,f.value),damping:r,stiffness:i,restDelta:l,restSpeed:u}))};return P(0),{calculatedDuration:null,next:E=>{let O=!1;return!A&&S===void 0&&(O=!0,T(E),P(E)),S!==void 0&&E>=S?A.next(E-S):(!O&&T(E),f)}}}const nS=xi(.42,0,1,1),sS=xi(0,0,.58,1),um=xi(.42,0,.58,1),rS=e=>Array.isArray(e)&&typeof e[0]!="number",od={linear:yt,easeIn:nS,easeInOut:um,easeOut:sS,circIn:El,circInOut:zp,circOut:$p,backIn:Cl,backInOut:Bp,backOut:Vp,anticipate:Up},ad=e=>{if(Tl(e)){Wa(e.length===4);const[t,n,s,r]=e;return xi(t,n,s,r)}else if(typeof e=="string")return Wa(od[e]!==void 0),od[e];return e};function iS(e,t,n){const s=[],r=n||am,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]||yt:t;a=bi(c,a)}s.push(a)}return s}function oS(e,t,{clamp:n=!0,ease:s,mixer:r}={}){const i=e.length;if(Wa(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=iS(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=er(e[d],e[d+1],u);return a[d](f)};return n?u=>l(gn(e[0],e[i-1],u)):l}function aS(e,t){const n=e[e.length-1];for(let s=1;s<=t;s++){const r=er(0,t,s);e.push(Ae(n,1,r))}}function cS(e){const t=[0];return aS(t,e.length-1),t}function lS(e,t){return e.map(n=>n*t)}function uS(e,t){return e.map(()=>t||um).splice(0,e.length-1)}function oo({duration:e=300,keyframes:t,times:n,ease:s="easeInOut"}){const r=rS(s)?s.map(ad):ad(s),i={done:!1,value:t[0]},o=lS(n&&n.length===t.length?n:cS(t),e),a=oS(o,t,{ease:Array.isArray(r)?r:uS(t,r)});return{calculatedDuration:e,next:c=>(i.value=a(c),i.done=c>=e,i)}}const dS=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Te.update(t,!0),stop:()=>Dn(t),now:()=>ze.isProcessing?ze.timestamp:en.now()}},fS={decay:id,inertia:id,tween:oo,keyframes:oo,spring:lm},hS=e=>e/100;class Ol extends rm{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=_l(n)?n:fS[n]||oo;let c,l;a!==oo&&typeof t[0]!="number"&&(c=bi(hS,am(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=im(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:h,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 O=Math.floor(E),D=E%1;!D&&E>=1&&(D=1),D===1&&O--,O=Math.min(O,g+1),!!(O%2)&&(m==="reverse"?(D=1-D,h&&(D-=h/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=Bo(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=dS,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 pS=new Set(["opacity","clipPath","filter","transform"]);function mS(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=Mp(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 gS=Sl(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ao=10,yS=2e4;function vS(e){return _l(e.type)||e.type==="spring"||!Dp(e.ease)}function xS(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<yS;)s=n.sample(i),r.push(s.value),i+=ao;return{times:void 0,keyframes:r,duration:i-ao,ease:"linear"}}const dm={anticipate:Up,backInOut:Bp,circInOut:zp};function bS(e){return e in dm}class cd extends rm{constructor(t){super(t);const{name:n,motionValue:s,element:r,keyframes:i}=this.options;this.resolver=new sm(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"&&ro()&&bS(i)&&(i=dm[i]),vS(this.options)){const{onComplete:d,onUpdate:f,motionValue:g,element:m,...h}=this.options,y=xS(t,h);t=y.keyframes,t.length===1&&(t[1]=t[0]),s=y.duration,r=y.times,i=y.ease,o="keyframes"}const u=mS(a.owner.current,c,t,{...this.options,duration:s,times:r,ease:i});return u.startTime=l??this.calcStartTime(),this.pendingTimeline?(Ku(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:d}=this.options;a.set(Bo(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 yt;const{animation:s}=n;Ku(s,t)}return yt}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}),h=pn(this.time);l.setWithVelocity(m.sample(h-ao).value,m.sample(h).value,ao)}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 gS()&&s&&pS.has(s)&&!c&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}}const wS={type:"spring",stiffness:500,damping:25,restSpeed:10},SS=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_S={type:"keyframes",duration:.8},TS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CS=(e,{keyframes:t})=>t.length>2?_S:Ss.has(e)?e.startsWith("scale")?SS(t[1]):wS:TS;function ES({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 jl=(e,t,n,s={},r,i)=>o=>{const a=vl(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};ES(a)||(u={...u,...CS(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=Bo(u.keyframes,a);if(f!==void 0)return Te.update(()=>{u.onUpdate(f),u.onComplete()}),new i0([])}return!i&&cd.supports(u)?new cd(u):new Ol(u)};function AS({protectedKeys:e,needsAnimating:t},n){const s=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,s}function fm(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&&AS(u,d))continue;const m={delay:n,...vl(o||{},d)};let h=!1;if(window.MotionHandoffAnimation){const v=Op(e);if(v){const b=window.MotionHandoffAnimation(v,d,Te);b!==null&&(m.startTime=b,h=!0)}}qa(e,d),f.start(jl(d,f,g,e.shouldReduceMotion&&kp.has(d)?{type:!1}:m,e,h));const y=f.animation;y&&l.push(y)}return a&&Promise.all(l).then(()=>{Te.update(()=>{a&&t0(e,a)})}),l}function tc(e,t,n={}){var s;const r=Vo(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(fm(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(l=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:f}=i;return PS(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 PS(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(RS).forEach((l,u)=>{l.notify("AnimationStart",t),o.push(tc(l,t,{...i,delay:n+c(u)}).then(()=>l.notify("AnimationComplete",t)))}),Promise.all(o)}function RS(e,t){return e.sortNodePosition(t)}function kS(e,t,n={}){e.notify("AnimationStart",t);let s;if(Array.isArray(t)){const r=t.map(i=>tc(e,i,n));s=Promise.all(r)}else if(typeof t=="string")s=tc(e,t,n);else{const r=typeof t=="function"?Vo(e,t,n.custom):t;s=Promise.all(fm(e,r,n))}return s.then(()=>{e.notify("AnimationComplete",t)})}const NS=il.length;function hm(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?hm(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<NS;n++){const s=il[n],r=e.props[s];(Br(r)||r===!1)&&(t[s]=r)}return t}const OS=[...rl].reverse(),jS=rl.length;function DS(e){return t=>Promise.all(t.map(({animation:n,options:s})=>kS(e,n,s)))}function MS(e){let t=DS(e),n=ld(),s=!0;const r=c=>(l,u)=>{var d;const f=Vo(e,u,c==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(f){const{transition:g,transitionEnd:m,...h}=f;l={...l,...h,...m}}return l};function i(c){t=c(e)}function o(c){const{props:l}=e,u=hm(e.parent)||{},d=[],f=new Set;let g={},m=1/0;for(let y=0;y<jS;y++){const v=OS[y],b=n[v],w=l[v]!==void 0?l[v]:u[v],T=Br(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||Lo(w)||typeof w=="boolean")continue;const P=FS(b.prevProp,w);let E=P||v===c&&b.isActive&&!A&&T||y>m&&T,O=!1;const D=Array.isArray(w)?w:[w];let L=D.reduce(r(v),{});S===!1&&(L={});const{prevResolvedValues:j={}}=b,$={...j,...L},I=H=>{E=!0,f.has(H)&&(O=!0,f.delete(H)),b.needsAnimating[H]=!0;const q=e.getValue(H);q&&(q.liveStyle=!1)};for(const H in $){const q=L[H],re=j[H];if(g.hasOwnProperty(H))continue;let de=!1;Ha(q)&&Ha(re)?de=!Rp(q,re):de=q!==re,de?q!=null?I(H):f.add(H):q!==void 0&&f.has(H)?I(H):b.protectedKeys[H]=!0}b.prevProp=w,b.prevResolvedValues=L,b.isActive&&(g={...g,...L}),s&&e.blockInitialAnimation&&(E=!1),E&&(!(A&&P)||O)&&d.push(...D.map(H=>({animation:H,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 h=!!d.length;return s&&(l.initial===!1||l.initial===l.animate)&&!e.manuallyAnimateOnMount&&(h=!1),s=!1,h?t(d):Promise.resolve()}function a(c,l){var u;if(n[c].isActive===l)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(f=>{var 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=ld(),s=!0}}}function FS(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Rp(t,e):!1}function Gn(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ld(){return{animate:Gn(!0),whileInView:Gn(),whileHover:Gn(),whileTap:Gn(),whileDrag:Gn(),whileFocus:Gn(),exit:Gn()}}class zn{constructor(t){this.isMounted=!1,this.node=t}update(){}}class LS extends zn{constructor(t){super(t),t.animationState||(t.animationState=MS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Lo(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 IS=0;class VS extends zn{constructor(){super(...arguments),this.id=IS++}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 BS={animation:{Feature:LS},exit:{Feature:VS}},Rt={x:!1,y:!1};function pm(){return Rt.x||Rt.y}function US(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 Dl=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Hr(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 $S=e=>t=>Dl(t)&&e(t,wi(t));function jr(e,t,n,s){return Hr(e,t,$S(n),s)}const ud=(e,t)=>Math.abs(e-t);function zS(e,t){const n=ud(e.x,t.x),s=ud(e.y,t.y);return Math.sqrt(n**2+s**2)}class mm{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=ya(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,g=zS(d.offset,{x:0,y:0})>=3;if(!f&&!g)return;const{point:m}=d,{timestamp:h}=ze;this.history.push({...m,timestamp:h});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=ga(f,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(d,f)=>{this.end();const{onEnd:g,onSessionEnd:m,resumeAnimation:h}=this.handlers;if(this.dragSnapToOrigin&&h&&h(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=ya(d.type==="pointercancel"?this.lastMoveEventInfo:ga(f,this.transformPagePoint),this.history);this.startEvent&&g&&g(d,y),m&&m(d,y)},!Dl(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=s,this.contextWindow=r||window;const o=wi(t),a=ga(o,this.transformPagePoint),{point:c}=a,{timestamp:l}=ze;this.history=[{...c,timestamp:l}];const{onSessionStart:u}=n;u&&u(t,ya(a,this.history)),this.removeListeners=bi(jr(this.contextWindow,"pointermove",this.handlePointerMove),jr(this.contextWindow,"pointerup",this.handlePointerUp),jr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Dn(this.updatePoint)}}function ga(e,t){return t?{point:t(e.point)}:e}function dd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ya({point:e},t){return{point:e,delta:dd(e,gm(t)),offset:dd(e,WS(t)),velocity:HS(t,.1)}}function WS(e){return e[0]}function gm(e){return e[e.length-1]}function HS(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,s=null;const r=gm(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 ym=1e-4,qS=1-ym,ZS=1+ym,vm=.01,KS=0-vm,GS=0+vm;function st(e){return e.max-e.min}function QS(e,t,n){return Math.abs(e-t)<=n}function fd(e,t,n,s=.5){e.origin=s,e.originPoint=Ae(t.min,t.max,e.origin),e.scale=st(n)/st(t),e.translate=Ae(n.min,n.max,e.origin)-e.originPoint,(e.scale>=qS&&e.scale<=ZS||isNaN(e.scale))&&(e.scale=1),(e.translate>=KS&&e.translate<=GS||isNaN(e.translate))&&(e.translate=0)}function Dr(e,t,n,s){fd(e.x,t.x,n.x,s?s.originX:void 0),fd(e.y,t.y,n.y,s?s.originY:void 0)}function hd(e,t,n){e.min=n.min+t.min,e.max=e.min+st(t)}function XS(e,t,n){hd(e.x,t.x,n.x),hd(e.y,t.y,n.y)}function pd(e,t,n){e.min=t.min-n.min,e.max=e.min+st(t)}function Mr(e,t,n){pd(e.x,t.x,n.x),pd(e.y,t.y,n.y)}function YS(e,{min:t,max:n},s){return t!==void 0&&e<t?e=s?Ae(t,e,s.min):Math.max(e,t):n!==void 0&&e>n&&(e=s?Ae(n,e,s.max):Math.min(e,n)),e}function md(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 JS(e,{top:t,left:n,bottom:s,right:r}){return{x:md(e.x,n,r),y:md(e.y,t,s)}}function gd(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 e_(e,t){return{x:gd(e.x,t.x),y:gd(e.y,t.y)}}function t_(e,t){let n=.5;const s=st(e),r=st(t);return r>s?n=er(t.min,t.max-s,e.min):s>r&&(n=er(e.min,e.max-r,t.min)),gn(0,1,n)}function n_(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 nc=.35;function s_(e=nc){return e===!1?e=0:e===!0&&(e=nc),{x:yd(e,"left","right"),y:yd(e,"top","bottom")}}function yd(e,t,n){return{min:vd(e,t),max:vd(e,n)}}function vd(e,t){return typeof e=="number"?e:e[t]||0}const xd=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ns=()=>({x:xd(),y:xd()}),bd=()=>({min:0,max:0}),De=()=>({x:bd(),y:bd()});function _t(e){return[e("x"),e("y")]}function xm({top:e,left:t,right:n,bottom:s}){return{x:{min:t,max:n},y:{min:e,max:s}}}function r_({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function i_(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 va(e){return e===void 0||e===1}function sc({scale:e,scaleX:t,scaleY:n}){return!va(e)||!va(t)||!va(n)}function Qn(e){return sc(e)||bm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bm(e){return wd(e.x)||wd(e.y)}function wd(e){return e&&e!=="0%"}function co(e,t,n){const s=e-n,r=t*s;return n+r}function Sd(e,t,n,s,r){return r!==void 0&&(e=co(e,r,s)),co(e,n,s)+t}function rc(e,t=0,n=1,s,r){e.min=Sd(e.min,t,n,s,r),e.max=Sd(e.max,t,n,s,r)}function wm(e,{x:t,y:n}){rc(e.x,t.translate,t.scale,t.originPoint),rc(e.y,n.translate,n.scale,n.originPoint)}const _d=.999999999999,Td=1.0000000000001;function o_(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&&js(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,wm(e,o)),s&&Qn(i.latestValues)&&js(e,i.latestValues))}t.x<Td&&t.x>_d&&(t.x=1),t.y<Td&&t.y>_d&&(t.y=1)}function Os(e,t){e.min=e.min+t,e.max=e.max+t}function Cd(e,t,n,s,r=.5){const i=Ae(e.min,e.max,r);rc(e,t,n,i,s)}function js(e,t){Cd(e.x,t.x,t.scaleX,t.scale,t.originX),Cd(e.y,t.y,t.scaleY,t.scale,t.originY)}function Sm(e,t){return xm(i_(e.getBoundingClientRect(),t))}function a_(e,t,n){const s=Sm(e,n),{scroll:r}=t;return r&&(Os(s.x,r.offset.x),Os(s.y,r.offset.y)),s}const _m=({current:e})=>e?e.ownerDocument.defaultView:null,c_=new WeakMap;class l_{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=US(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),_t(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=st(w)*(parseFloat(v)/100))}}this.originPoint[y]=v}),m&&Te.postRender(()=>m(u,d)),qa(this.visualElement,"transform");const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(u,d)=>{const{dragPropagation:f,dragDirectionLock:g,onDirectionLock:m,onDrag:h}=this.getProps();if(!f&&!this.openDragLock)return;const{offset:y}=d;if(g&&this.currentDirection===null){this.currentDirection=u_(y),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",d.point,y),this.updateAxis("y",d.point,y),this.visualElement.render(),h&&h(u,d)},a=(u,d)=>this.stop(u,d),c=()=>_t(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 mm(t,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:a,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:_m(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=YS(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&&Rs(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&r?this.constraints=JS(r.layoutBox,n):this.constraints=!1,this.elastic=s_(s),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&_t(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=n_(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Rs(t))return!1;const s=t.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=a_(s,r.root,this.visualElement.getTransformPagePoint());let o=e_(r.layout.layoutBox,i);if(n){const a=n(r_(o));this.hasMutatedConstraints=!!a,a&&(o=xm(a))}return o}startAnimation(t){const{drag:n,dragMomentum:s,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=_t(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 qa(this.visualElement,t),s.start(jl(t,s,0,n,this.visualElement,!1))}stopAnimation(){_t(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){_t(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){_t(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]-Ae(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Rs(n)||!s||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};_t(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const c=a.get();r[o]=t_({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(),_t(o=>{if(!Ui(o,t,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Ae(c,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;c_.set(this.visualElement,this);const t=this.visualElement.current,n=jr(t,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),s=()=>{const{dragConstraints:c}=this.getProps();Rs(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=Hr(window,"resize",()=>this.scalePositionWithinConstraints()),a=r.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(_t(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=nc,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 u_(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class d_ extends zn{constructor(t){super(t),this.removeGroupControls=yt,this.removeListeners=yt,this.controls=new l_(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yt}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ed=e=>(t,n)=>{e&&Te.postRender(()=>e(t,n))};class f_ extends zn{constructor(){super(...arguments),this.removePointerDownListener=yt}onPointerDown(t){this.session=new mm(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_m(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:s,onPanEnd:r}=this.node.getProps();return{onSessionStart:Ed(t),onStart:Ed(n),onMove:s,onEnd:(i,o)=>{delete this.session,r&&Te.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=jr(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 Qi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ad(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const wr={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ee.test(e))e=parseFloat(e);else return e;const n=Ad(e,t.target.x),s=Ad(e,t.target.y);return`${n}% ${s}%`}},h_={correct:(e,{treeScale:t,projectionDelta:n})=>{const s=e,r=Mn.parse(e);if(r.length>5)return s;const i=Mn.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=Ae(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 p_ extends x.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:s,layoutId:r}=this.props,{projection:i}=t;Uw(m_),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()})),Qi.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(),al.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 Tm(e){const[t,n]=up(),s=x.useContext(el);return p.jsx(p_,{...e,layoutGroup:s,switchLayoutGroup:x.useContext(yp),isPresent:t,safeToRemove:n})}const m_={borderRadius:{...wr,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:wr,borderTopRightRadius:wr,borderBottomLeftRadius:wr,borderBottomRightRadius:wr,boxShadow:h_};function g_(e,t,n){const s=Qe(e)?e:zr(e);return s.start(jl("",s,t,n)),s.animation}function y_(e){return e instanceof SVGElement&&e.tagName!=="svg"}const v_=(e,t)=>e.depth-t.depth;class x_{constructor(){this.children=[],this.isDirty=!1}add(t){xl(this.children,t),this.isDirty=!0}remove(t){bl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(v_),this.isDirty=!1,this.children.forEach(t)}}function b_(e,t){const n=en.now(),s=({timestamp:r})=>{const i=r-n;i>=t&&(Dn(s),e(i-t))};return Te.read(s,!0),()=>Dn(s)}const Cm=["TopLeft","TopRight","BottomLeft","BottomRight"],w_=Cm.length,Pd=e=>typeof e=="string"?parseFloat(e):e,Rd=e=>typeof e=="number"||ee.test(e);function S_(e,t,n,s,r,i){r?(e.opacity=Ae(0,n.opacity!==void 0?n.opacity:1,__(s)),e.opacityExit=Ae(t.opacity!==void 0?t.opacity:1,0,T_(s))):i&&(e.opacity=Ae(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,s));for(let o=0;o<w_;o++){const a=`border${Cm[o]}Radius`;let c=kd(t,a),l=kd(n,a);if(c===void 0&&l===void 0)continue;c||(c=0),l||(l=0),c===0||l===0||Rd(c)===Rd(l)?(e[a]=Math.max(Ae(Pd(c),Pd(l),s),0),(Jt.test(l)||Jt.test(c))&&(e[a]+="%")):e[a]=l}(t.rotate||n.rotate)&&(e.rotate=Ae(t.rotate||0,n.rotate||0,s))}function kd(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const __=Em(0,.5,$p),T_=Em(.5,.95,yt);function Em(e,t,n){return s=>s<e?0:s>t?1:n(er(e,t,s))}function Nd(e,t){e.min=t.min,e.max=t.max}function St(e,t){Nd(e.x,t.x),Nd(e.y,t.y)}function Od(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function jd(e,t,n,s,r){return e-=t,e=co(e,1/n,s),r!==void 0&&(e=co(e,1/r,s)),e}function C_(e,t=0,n=1,s=.5,r,i=e,o=e){if(Jt.test(t)&&(t=parseFloat(t),t=Ae(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Ae(i.min,i.max,s);e===i&&(a-=t),e.min=jd(e.min,t,n,a,r),e.max=jd(e.max,t,n,a,r)}function Dd(e,t,[n,s,r],i,o){C_(e,t[n],t[s],t[r],t.scale,i,o)}const E_=["x","scaleX","originX"],A_=["y","scaleY","originY"];function Md(e,t,n,s){Dd(e.x,t,E_,n?n.x:void 0,s?s.x:void 0),Dd(e.y,t,A_,n?n.y:void 0,s?s.y:void 0)}function Fd(e){return e.translate===0&&e.scale===1}function Am(e){return Fd(e.x)&&Fd(e.y)}function Ld(e,t){return e.min===t.min&&e.max===t.max}function P_(e,t){return Ld(e.x,t.x)&&Ld(e.y,t.y)}function Id(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Pm(e,t){return Id(e.x,t.x)&&Id(e.y,t.y)}function Vd(e){return st(e.x)/st(e.y)}function Bd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class R_{constructor(){this.members=[]}add(t){xl(this.members,t),t.scheduleRender()}remove(t){if(bl(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 k_(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 Xn={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Er=typeof window<"u"&&window.MotionDebug!==void 0,xa=["","X","Y","Z"],N_={visibility:"hidden"},Ud=1e3;let O_=0;function ba(e,t,n,s){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),s&&(s[e]=0))}function Rm(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Op(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&&Rm(s)}function km({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:s,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=O_++,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,Er&&(Xn.totalNodes=Xn.resolvedTargetDeltas=Xn.recalculatedProjection=0),this.nodes.forEach(M_),this.nodes.forEach(B_),this.nodes.forEach(U_),this.nodes.forEach(F_),Er&&window.MotionDebug.record(Xn)},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 x_)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new wl),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=y_(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=b_(f,250),Qi.hasAnimatedSinceResize&&(Qi.hasAnimatedSinceResize=!1,this.nodes.forEach(zd))})}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 h=this.options.transition||u.getDefaultTransition()||q_,{onLayoutAnimationStart:y,onLayoutAnimationComplete:v}=u.getProps(),b=!this.targetLayout||!Pm(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={...vl(h,"layout"),onPlay:y,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else f||zd(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,Dn(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($_),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&&Rm(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($d);return}this.isUpdating||this.nodes.forEach(I_),this.isUpdating=!1,this.nodes.forEach(V_),this.nodes.forEach(j_),this.nodes.forEach(D_),this.clearAllSnapshots();const a=en.now();ze.delta=gn(0,1e3/60,a-ze.timestamp),ze.timestamp=a,ze.isProcessing=!0,fa.update.process(ze),fa.preRender.process(ze),fa.render.process(ze),ze.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,al.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(L_),this.sharedNodes.forEach(z_)}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&&!st(this.snapshot.measuredBox.x)&&!st(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&&!Am(this.projectionDelta),c=this.getTransformTemplate(),l=c?c(this.latestValues,""):void 0,u=l!==this.prevTransformTemplateValue;o&&(a||Qn(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)),Z_(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(K_))){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(St(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&&St(c,o),Os(c.x,d.offset.x),Os(c.y,d.offset.y))}return c}applyTransform(o,a=!1){const c=De();St(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&&js(c,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Qn(u.latestValues)&&js(c,u.latestValues)}return Qn(this.latestValues)&&js(c,this.latestValues),c}removeTransform(o){const a=De();St(a,o);for(let c=0;c<this.path.length;c++){const l=this.path[c];if(!l.instance||!Qn(l.latestValues))continue;sc(l.latestValues)&&l.updateSnapshot();const u=De(),d=l.measurePageBox();St(u,d),Md(a,l.latestValues,l.snapshot?l.snapshot.layoutBox:void 0,u)}return Qn(this.latestValues)&&Md(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(),Mr(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),St(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(),XS(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):St(this.target,this.layout.layoutBox),wm(this.target,this.targetDelta)):St(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(),Mr(this.relativeTargetOrigin,this.target,g.target),St(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Er&&Xn.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||sc(this.parent.latestValues)||bm(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;St(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,g=this.treeScale.y;o_(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():(Od(this.prevProjectionDelta.x,this.projectionDelta.x),Od(this.prevProjectionDelta.y,this.projectionDelta.y)),Dr(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==g||!Bd(this.projectionDelta.x,this.prevProjectionDelta.x)||!Bd(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Er&&Xn.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=Ns(),this.projectionDelta=Ns(),this.projectionDeltaWithTransform=Ns()}setAnimationOrigin(o,a=!1){const c=this.snapshot,l=c?c.latestValues:{},u={...this.latestValues},d=Ns();(!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,h=g!==m,y=this.getStack(),v=!y||y.members.length<=1,b=!!(h&&!v&&this.options.crossfade===!0&&!this.path.some(H_));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const S=T/1e3;Wd(d.x,o.x,S),Wd(d.y,o.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Mr(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox),W_(this.relativeTarget,this.relativeTargetOrigin,f,S),w&&P_(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=De()),St(w,this.relativeTarget)),h&&(this.animationValues=u,S_(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&&(Dn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{Qi.hasAnimatedSinceResize=!0,this.currentAnimation=g_(0,Ud,{...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(Ud),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&&Nm(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||De();const d=st(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+d;const f=st(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+f}St(a,c),js(a,u),Dr(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new R_),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&&ba("z",o,l,this.animationValues);for(let u=0;u<xa.length;u++)ba(`rotate${xa[u]}`,o,l,this.animationValues),ba(`skew${xa[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 N_;const l={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=Ki(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 h={};return this.options.layoutId&&(h.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,h.pointerEvents=Ki(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!Qn(this.latestValues)&&(h.transform=u?u({},""):"none",this.hasProjected=!1),h}const f=d.animationValues||d.latestValues;this.applyTransformsToTarget(),l.transform=k_(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 h in $r){if(f[h]===void 0)continue;const{correct:y,applyTo:v,isCSSVariable:b}=$r[h],w=l.transform==="none"?f[h]:y(f[h],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[h]=w:l[h]=w}return this.options.layoutId&&(l.pointerEvents=d===this?Ki(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($d),this.root.sharedNodes.clear()}}}function j_(e){e.updateLayout()}function D_(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"?_t(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=st(f);f.min=s[d].min,f.max=f.min+g}):Nm(i,n.layoutBox,s)&&_t(d=>{const f=o?n.measuredBox[d]:n.layoutBox[d],g=st(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=Ns();Dr(a,s,n.layoutBox);const c=Ns();o?Dr(c,e.applyTransform(r,!0),n.measuredBox):Dr(c,s,n.layoutBox);const l=!Am(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();Mr(m,n.layoutBox,f.layoutBox);const h=De();Mr(h,s,g.layoutBox),Pm(m,h)||(u=!0),d.options.layoutRoot&&(e.relativeTarget=h,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 M_(e){Er&&Xn.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 F_(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function L_(e){e.clearSnapshot()}function $d(e){e.clearMeasurements()}function I_(e){e.isLayoutDirty=!1}function V_(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function B_(e){e.resolveTargetDelta()}function U_(e){e.calcProjection()}function $_(e){e.resetSkewAndRotation()}function z_(e){e.removeLeadSnapshot()}function Wd(e,t,n){e.translate=Ae(t.translate,0,n),e.scale=Ae(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Hd(e,t,n,s){e.min=Ae(t.min,n.min,s),e.max=Ae(t.max,n.max,s)}function W_(e,t,n,s){Hd(e.x,t.x,n.x,s),Hd(e.y,t.y,n.y,s)}function H_(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const q_={duration:.45,ease:[.4,0,.1,1]},qd=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Zd=qd("applewebkit/")&&!qd("chrome/")?Math.round:yt;function Kd(e){e.min=Zd(e.min),e.max=Zd(e.max)}function Z_(e){Kd(e.x),Kd(e.y)}function Nm(e,t,n){return e==="position"||e==="preserve-aspect"&&!QS(Vd(t),Vd(n),.2)}function K_(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const G_=km({attachResizeListener:(e,t)=>Hr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wa={current:void 0},Om=km({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wa.current){const e=new G_({});e.mount(window),e.setOptions({layoutScroll:!0}),wa.current=e}return wa.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Q_={pan:{Feature:f_},drag:{Feature:d_,ProjectionNode:Om,MeasureLayout:Tm}};function X_(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 jm(e,t){const n=X_(e),s=new AbortController,r={passive:!0,...t,signal:s.signal};return[n,r,()=>s.abort()]}function Gd(e){return!(e.pointerType==="touch"||pm())}function Y_(e,t,n={}){const[s,r,i]=jm(e,n),o=a=>{if(!Gd(a))return;const{target:c}=a,l=t(c,a);if(typeof l!="function"||!c)return;const u=d=>{Gd(d)&&(l(d),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,r)};return s.forEach(a=>{a.addEventListener("pointerenter",o,r)}),i}function Qd(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 J_ extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=Y_(t,(n,s)=>(Qd(this.node,s,"Start"),r=>Qd(this.node,r,"End"))))}unmount(){}}class eT extends zn{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(Hr(this.node.current,"focus",()=>this.onFocus()),Hr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Dm=(e,t)=>t?e===t?!0:Dm(e,t.parentElement):!1,tT=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function nT(e){return tT.has(e.tagName)||e.tabIndex!==-1}const Ar=new WeakSet;function Xd(e){return t=>{t.key==="Enter"&&e(t)}}function Sa(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const sT=(e,t)=>{const n=e.currentTarget;if(!n)return;const s=Xd(()=>{if(Ar.has(n))return;Sa(n,"down");const r=Xd(()=>{Sa(n,"up")}),i=()=>Sa(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 Yd(e){return Dl(e)&&!pm()}function rT(e,t,n={}){const[s,r,i]=jm(e,n),o=a=>{const c=a.currentTarget;if(!Yd(a)||Ar.has(c))return;Ar.add(c);const l=t(c,a),u=(g,m)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",f),!(!Yd(g)||!Ar.has(c))&&(Ar.delete(c),typeof l=="function"&&l(g,{success:m}))},d=g=>{u(g,n.useGlobalTarget||Dm(c,g.target))},f=g=>{u(g,!1)};window.addEventListener("pointerup",d,r),window.addEventListener("pointercancel",f,r)};return s.forEach(a=>{!nT(a)&&a.getAttribute("tabindex")===null&&(a.tabIndex=0),(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),a.addEventListener("focus",l=>sT(l,r),r)}),i}function Jd(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 iT extends zn{mount(){const{current:t}=this.node;t&&(this.unmount=rT(t,(n,s)=>(Jd(this.node,s,"Start"),(r,{success:i})=>Jd(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ic=new WeakMap,_a=new WeakMap,oT=e=>{const t=ic.get(e.target);t&&t(e)},aT=e=>{e.forEach(oT)};function cT({root:e,...t}){const n=e||document;_a.has(n)||_a.set(n,{});const s=_a.get(n),r=JSON.stringify(t);return s[r]||(s[r]=new IntersectionObserver(aT,{root:e,...t})),s[r]}function lT(e,t,n){const s=cT(t);return ic.set(e,n),s.observe(e),()=>{ic.delete(e),s.unobserve(e)}}const uT={some:0,all:1};class dT extends zn{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:uT[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 lT(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(fT(t,n))&&this.startObserver()}unmount(){}}function fT({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const hT={inView:{Feature:dT},tap:{Feature:iT},focus:{Feature:eT},hover:{Feature:J_}},pT={layout:{ProjectionNode:Om,MeasureLayout:Tm}},oc={current:null},Mm={current:!1};function mT(){if(Mm.current=!0,!!sl)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>oc.current=e.matches;e.addListener(t),t()}else oc.current=!1}const gT=[...nm,Ke,Mn],yT=e=>gT.find(tm(e)),ef=new WeakMap;function vT(e,t,n){for(const s in t){const r=t[s],i=n[s];if(Qe(r))e.addValue(s,r);else if(Qe(i))e.addValue(s,zr(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,zr(o!==void 0?o:r,{owner:e}))}}for(const s in n)t[s]===void 0&&e.removeValue(s);return t}const tf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xT{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=Io(n),this.isVariantNode=mp(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&&Qe(m)&&m.set(c[g],!1)}}mount(t){this.current=t,ef.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)),Mm.current||mT(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:oc.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ef.delete(this.current),this.projection&&this.projection.unmount(),Dn(this.notifyUpdate),Dn(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=Ss.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 Js){const n=Js[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<tf.length;s++){const r=tf[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=vT(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=zr(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"&&(Jp(r)||Wp(r))?r=parseFloat(r):!yT(r)&&Mn.test(n)&&(r=Qp(t,n)),this.setBaseTarget(t,Qe(r)?r.get():r)),Qe(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=ll(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&&!Qe(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 wl),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Fm extends xT{constructor(){super(...arguments),this.KeyframeResolver=sm}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;Qe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function bT(e){return window.getComputedStyle(e)}class wT extends Fm{constructor(){super(...arguments),this.type="html",this.renderInstance=_p}readValueFromInstance(t,n){if(Ss.has(n)){const s=Rl(n);return s&&s.default||0}else{const s=bT(t),r=(ul(n)?s.getPropertyValue(n):s[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Sm(t,n)}build(t,n,s){hl(t,n,s.transformTemplate)}scrapeMotionValuesFromProps(t,n,s){return yl(t,n,s)}}class ST extends Fm{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=De}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Ss.has(n)){const s=Rl(n);return s&&s.default||0}return n=Tp.has(n)?n:ol(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,s){return Ap(t,n,s)}build(t,n,s){pl(t,n,this.isSVGTag,s.transformTemplate)}renderInstance(t,n,s,r){Cp(t,n,s,r)}mount(t){this.isSVGTag=gl(t.tagName),super.mount(t)}}const _T=(e,t)=>cl(e)?new ST(t):new wT(t,{allowProjection:e!==x.Fragment}),TT=Qw({...BS,...hT,...Q_,...pT},_T),Fr=dw(TT);var Ta,nf;function CT(){if(nf)return Ta;nf=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 Oi=="object"&&Oi&&Oi.Object===Object&&Oi,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,h=function(){return u.Date.now()};function y(S,A,P){var E,O,D,L,j,$,I=0,J=!1,X=!1,H=!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,H="trailing"in P?!!P.trailing:H);function q(ue){var ye=E,Oe=O;return E=O=void 0,I=ue,L=S.apply(Oe,ye),L}function re(ue){return I=ue,j=setTimeout(Be,A),J?q(ue):L}function de(ue){var ye=ue-$,Oe=ue-I,Le=A-ye;return X?m(Le,D-Oe):Le}function ge(ue){var ye=ue-$,Oe=ue-I;return $===void 0||ye>=A||ye<0||X&&Oe>=D}function Be(){var ue=h();if(ge(ue))return He(ue);j=setTimeout(Be,de(ue))}function He(ue){return j=void 0,H&&E?q(ue):(E=O=void 0,L)}function qe(){j!==void 0&&clearTimeout(j),I=0,E=$=O=j=void 0}function Pt(){return j===void 0?L:He(h())}function Je(){var ue=h(),ye=ge(ue);if(E=arguments,O=this,$=ue,ye){if(j===void 0)return re($);if(X)return j=setTimeout(Be,A),q($)}return j===void 0&&(j=setTimeout(Be,A)),L}return Je.cancel=qe,Je.flush=Pt,Je}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 Ta=y,Ta}CT();var Lm=typeof window<"u"?x.useLayoutEffect:x.useEffect,ET=typeof window>"u";function lo(e,{defaultValue:t=!1,initializeWithValue:n=!0}={}){const s=a=>ET?t:window.matchMedia(a).matches,[r,i]=x.useState(()=>n?s(e):t);function o(){i(s(e))}return Lm(()=>{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 AT=typeof window>"u";function PT(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 Lm(()=>{if(!AT)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 h1=({className:e,stage:t})=>{const n=lo("(min-width: 768px");return p.jsx("div",{className:e,children:p.jsx("div",{className:"max-w-[808px] md:mx-auto my-20 mx-5",children:p.jsxs("div",{className:"relative h-14 w-full",children:[p.jsx("div",{className:K("h-2 absolute bg-[#D0D3D8] rounded-[2px] w-full top-0 left-0")}),p.jsx(Fr.div,{initial:{width:0},animate:t===2?{width:"20%"}:t===3&&{width:"75%"},transition:{delay:.5,duration:.5},className:K("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})}),p.jsx(Fr.div,{initial:{width:n?"50%":"35%"},animate:t===2?{width:"75%"}:t===3&&{width:"100%"},className:K("bg-reverse_primary w-1/2 absolute top-0 left-0 rounded-[2px] z-[3] h-2")}),p.jsx(Fr.div,{className:K("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"}),p.jsx("div",{className:K("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"}),p.jsx("div",{className:K("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",Jn=e=>e instanceof Date,nt=e=>e==null;const Im=e=>typeof e=="object";var Fe=e=>!nt(e)&&!Array.isArray(e)&&Im(e)&&!Jn(e),Vm=e=>Fe(e)&&e.target?Si(e.target)?e.target.checked:e.target.value:e,RT=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Bm=(e,t)=>e.has(RT(t)),kT=e=>{const t=e.constructor&&e.constructor.prototype;return Fe(t)&&t.hasOwnProperty("isPrototypeOf")},Ml=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function at(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(!(Ml&&(e instanceof Blob||s))&&(n||Fe(e)))if(t=n?[]:{},!n&&!kT(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=at(e[r]));else return e;return t}var Uo=e=>Array.isArray(e)?e.filter(Boolean):[],Me=e=>e===void 0,B=(e,t,n)=>{if(!t||!Fe(e))return n;const s=Uo(t.split(/[,[\].]+?/)).reduce((r,i)=>nt(r)?r:r[i],e);return Me(s)||s===e?Me(e[t])?n:e[t]:s},Et=e=>typeof e=="boolean",Fl=e=>/^\w*$/.test(e),Um=e=>Uo(e.replace(/["|']|\]/g,"").split(/\.|\[/)),xe=(e,t,n)=>{let s=-1;const r=Fl(t)?[t]:Um(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 uo={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},jt={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"},$m=ve.createContext(null),$o=()=>ve.useContext($m),NT=e=>{const{children:t,...n}=e;return ve.createElement($m.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]!==jt.all&&(t._proxyFormState[o]=!s||jt.all),n&&(n[o]=!0),e[o]}});return r},lt=e=>Fe(e)&&!Object.keys(e).length,Wm=(e,t,n,s)=>{n(e);const{name:r,...i}=e;return lt(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(o=>t[o]===(!s||jt.all))},Lr=e=>Array.isArray(e)?e:[e],Hm=(e,t,n)=>!e||!t||e===t||Lr(e).some(s=>s&&(n?s===t:s.startsWith(t)||t.startsWith(s)));function Ll(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 OT(e){const t=$o(),{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,Ll({disabled:s,next:d=>c.current&&Hm(u.current,d.name,i)&&Wm(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 jT(e){const t=$o(),{control:n=t.control,name:s,defaultValue:r,disabled:i,exact:o}=e,a=ve.useRef(s);a.current=s,Ll({disabled:i,subject:n._subjects.values,next:u=>{Hm(a.current,u.name,o)&&l(at(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 DT(e){const t=$o(),{name:n,disabled:s,control:r=t.control,shouldUnregister:i}=e,o=Bm(r._names.array,n),a=jT({control:r,name:n,defaultValue:B(r._formValues,n,B(r._defaultValues,n,e.defaultValue)),exact:!0}),c=OT({control:r,name:n,exact:!0}),l=ve.useRef(r.register(n,{...e.rules,value:a,...Et(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,...Et(s)||c.disabled?{disabled:c.disabled||s}:{},onChange:f=>l.current.onChange({target:{value:Vm(f),name:n},type:uo.CHANGE}),onBlur:()=>l.current.onBlur({target:{value:B(r._formValues,n),name:n},type:uo.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,h)=>{const y=B(r._fields,m);y&&y._f&&(y._f.mount=h)};if(g(n,!0),f){const m=at(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 MT=e=>e.render(DT(e));var Zm=(e,t,n,s,r)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[s]:r||!0}}:{},sf=e=>({isOnSubmit:!e||e===jt.onSubmit,isOnBlur:e===jt.onBlur,isOnChange:e===jt.onChange,isOnAll:e===jt.all,isOnTouch:e===jt.onTouched}),rf=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Ir=(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(Ir(a,t))break}else if(Fe(a)&&Ir(a,t))break}}};var FT=(e,t,n)=>{const s=Lr(B(e,n));return xe(s,"root",t[n]),xe(e,n,s),e},Il=e=>e.type==="file",Xt=e=>typeof e=="function",fo=e=>{if(!Ml)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Xi=e=>Yt(e),Vl=e=>e.type==="radio",ho=e=>e instanceof RegExp;const of={value:!1,isValid:!1},af={value:!0,isValid:!0};var Km=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===""?af:{value:e[0].value,isValid:!0}:af:of}return of};const cf={isValid:!1,value:null};var Gm=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,cf):cf;function lf(e,t,n="validate"){if(Xi(e)||Array.isArray(e)&&e.every(Xi)||Et(e)&&!e)return{type:n,message:Xi(e)?e:"",ref:t}}var As=e=>Fe(e)&&!ho(e)?e:{value:e,message:""},uf=async(e,t,n,s,r,i)=>{const{ref:o,refs:a,required:c,maxLength:l,minLength:u,min:d,max:f,pattern:g,validate:m,name:h,valueAsNumber:y,mount:v}=e._f,b=B(n,h);if(!v||t.has(h))return{};const w=a?a[0]:o,T=j=>{r&&w.reportValidity&&(w.setCustomValidity(Et(j)?"":j||""),w.reportValidity())},S={},A=Vl(o),P=Si(o),E=A||P,O=(y||Il(o))&&Me(o.value)&&Me(b)||fo(o)&&o.value===""||b===""||Array.isArray(b)&&!b.length,D=Zm.bind(null,h,s,S),L=(j,$,I,J=ln.maxLength,X=ln.minLength)=>{const H=j?$:I;S[h]={type:j?J:X,message:H,ref:o,...D(j?J:X,H)}};if(i?!Array.isArray(b)||!b.length:c&&(!E&&(O||nt(b))||Et(b)&&!b||P&&!Km(a).isValid||A&&!Gm(a).isValid)){const{value:j,message:$}=Xi(c)?{value:!!c,message:c}:As(c);if(j&&(S[h]={type:ln.required,message:$,ref:w,...D(ln.required,$)},!s))return T($),S}if(!O&&(!nt(d)||!nt(f))){let j,$;const I=As(f),J=As(d);if(!nt(b)&&!isNaN(b)){const X=o.valueAsNumber||b&&+b;nt(I.value)||(j=X>I.value),nt(J.value)||($=X<J.value)}else{const X=o.valueAsDate||new Date(b),H=de=>new Date(new Date().toDateString()+" "+de),q=o.type=="time",re=o.type=="week";Yt(I.value)&&b&&(j=q?H(b)>H(I.value):re?b>I.value:X>new Date(I.value)),Yt(J.value)&&b&&($=q?H(b)<H(J.value):re?b<J.value:X<new Date(J.value))}if((j||$)&&(L(!!j,I.message,J.message,ln.max,ln.min),!s))return T(S[h].message),S}if((l||u)&&!O&&(Yt(b)||i&&Array.isArray(b))){const j=As(l),$=As(u),I=!nt(j.value)&&b.length>+j.value,J=!nt($.value)&&b.length<+$.value;if((I||J)&&(L(I,j.message,$.message),!s))return T(S[h].message),S}if(g&&!O&&Yt(b)){const{value:j,message:$}=As(g);if(ho(j)&&!b.match(j)&&(S[h]={type:ln.pattern,message:$,ref:o,...D(ln.pattern,$)},!s))return T($),S}if(m){if(Xt(m)){const j=await m(b,n),$=lf(j,w);if($&&(S[h]={...$,...D(ln.validate,$.message)},!s))return T($.message),S}else if(Fe(m)){let j={};for(const $ in m){if(!lt(j)&&!s)break;const I=lf(await m[$](b,n),w,$);I&&(j={...I,...D($,I.message)},T(I.message),s&&(S[h]=j))}if(!lt(j)&&(S[h]={ref:w,...j},!s))return S}}return T(!0),S};function LT(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 IT(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:Fl(t)?[t]:Um(t),s=n.length===1?e:LT(e,n),r=n.length-1,i=n[r];return s&&delete s[i],r!==0&&(Fe(s)&&lt(s)||Array.isArray(s)&&IT(s))&&Ue(e,n.slice(0,-1)),e}var Ca=()=>{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=[]}}},ac=e=>nt(e)||!Im(e);function Cn(e,t){if(ac(e)||ac(t))return e===t;if(Jn(e)&&Jn(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(Jn(i)&&Jn(o)||Fe(i)&&Fe(o)||Array.isArray(i)&&Array.isArray(o)?!Cn(i,o):i!==o)return!1}}return!0}var Qm=e=>e.type==="select-multiple",VT=e=>Vl(e)||Si(e),Ea=e=>fo(e)&&e.isConnected,Xm=e=>{for(const t in e)if(Xt(e[t]))return!0;return!1};function po(e,t={}){const n=Array.isArray(e);if(Fe(e)||n)for(const s in e)Array.isArray(e[s])||Fe(e[s])&&!Xm(e[s])?(t[s]=Array.isArray(e[s])?[]:{},po(e[s],t[s])):nt(e[s])||(t[s]=!0);return t}function Ym(e,t,n){const s=Array.isArray(e);if(Fe(e)||s)for(const r in e)Array.isArray(e[r])||Fe(e[r])&&!Xm(e[r])?Me(t)||ac(n[r])?n[r]=Array.isArray(e[r])?po(e[r],[]):{...po(e[r])}:Ym(e[r],nt(t)?{}:t[r],n[r]):n[r]=!Cn(e[r],t[r]);return n}var Sr=(e,t)=>Ym(e,t,po(t)),Jm=(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 Aa(e){const t=e.ref;return Il(t)?t.files:Vl(t)?Gm(e.refs).value:Qm(t)?[...t.selectedOptions].map(({value:n})=>n):Si(t)?Km(e.refs).value:Jm(Me(t.value)?e.ref.value:t.value,e)}var BT=(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}},_r=e=>Me(e)?e:ho(e)?e.source:Fe(e)?ho(e.value)?e.value.source:e.value:e;const df="AsyncFunction";var UT=e=>!!e&&!!e.validate&&!!(Xt(e.validate)&&e.validate.constructor.name===df||Fe(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===df)),$T=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ff(e,t,n){const s=B(e,n);if(s||Fl(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 zT=(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,WT=(e,t)=>!Uo(B(e,t)).length&&Ue(e,t);const HT={mode:jt.onSubmit,reValidateMode:jt.onChange,shouldFocusError:!0};function qT(e={}){let t={...HT,...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)?at(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:at(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:Ca(),array:Ca(),state:Ca()},f=sf(t.mode),g=sf(t.reValidateMode),m=t.criteriaMode===jt.all,h=_=>R=>{clearTimeout(l),l=setTimeout(_,R)},y=async _=>{if(!t.disabled&&(u.isValid||_)){const R=t.resolver?lt((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(N=>{N&&(R?xe(n.validatingFields,N,R):Ue(n.validatingFields,N))}),d.state.next({validatingFields:n.validatingFields,isValidating:!lt(n.validatingFields)}))},b=(_,R=[],N,U,V=!0,F=!0)=>{if(U&&N&&!t.disabled){if(o.action=!0,F&&Array.isArray(B(s,_))){const Y=N(B(s,_),U.argA,U.argB);V&&xe(s,_,Y)}if(F&&Array.isArray(B(n.errors,_))){const Y=N(B(n.errors,_),U.argA,U.argB);V&&xe(n.errors,_,Y),WT(n.errors,_)}if(u.touchedFields&&F&&Array.isArray(B(n.touchedFields,_))){const Y=N(B(n.touchedFields,_),U.argA,U.argB);V&&xe(n.touchedFields,_,Y)}u.dirtyFields&&(n.dirtyFields=Sr(r,i)),d.state.next({name:_,isDirty:j(_,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,N,U)=>{const V=B(s,_);if(V){const F=B(i,_,Me(N)?B(r,_):N);Me(F)||U&&U.defaultChecked||R?xe(i,_,R?F:Aa(V._f)):J(_,F),o.mount&&y()}},A=(_,R,N,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(!N||U){u.isDirty&&(Y=n.isDirty,n.isDirty=ae.isDirty=j(),F=Y!==ae.isDirty);const je=Ie||Cn(B(r,_),R);Y=!!(!Ie&&B(n.dirtyFields,_)),je||Ie?Ue(n.dirtyFields,_):xe(n.dirtyFields,_,!0),ae.dirtyFields=n.dirtyFields,F=F||u.dirtyFields&&Y!==!je}if(N){const je=B(n.touchedFields,_);je||(xe(n.touchedFields,_,N),ae.touchedFields=n.touchedFields,F=F||u.touchedFields&&je!==N)}F&&V&&d.state.next(ae)}return F?ae:{}},P=(_,R,N,U)=>{const V=B(n.errors,_),F=u.isValid&&Et(R)&&n.isValid!==R;if(t.delayError&&N?(c=h(()=>w(_,N)),c(t.delayError)):(clearTimeout(l),c=null,N?xe(n.errors,_,N):Ue(n.errors,_)),(N?!Cn(V,N):V)||!lt(U)||F){const Y={...U,...F&&Et(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,BT(_||a.mount,s,t.criteriaMode,t.shouldUseNativeValidation));return v(_),R},O=async _=>{const{errors:R}=await E(_);if(_)for(const N of _){const U=B(R,N);U?xe(n.errors,N,U):Ue(n.errors,N)}else n.errors=R;return R},D=async(_,R,N={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&&UT(V._f);Ie&&u.validatingFields&&v([U],!0);const je=await uf(V,a.disabled,i,m,t.shouldUseNativeValidation&&!R,ae);if(Ie&&u.validatingFields&&v([U]),je[F.name]&&(N.valid=!1,R))break;!R&&(B(je,F.name)?ae?FT(n.errors,je,F.name):xe(n.errors,F.name,je[F.name]):Ue(n.errors,F.name))}!lt(Y)&&await D(Y,R,N)}}return N.valid},L=()=>{for(const _ of a.unMount){const R=B(s,_);R&&(R._f.refs?R._f.refs.every(N=>!Ea(N)):!Ea(R._f.ref))&&Je(_)}a.unMount=new Set},j=(_,R)=>!t.disabled&&(_&&R&&xe(i,_,R),!Cn(ge(),r)),$=(_,R,N)=>qm(_,a,{...o.mount?i:Me(R)?r:Yt(_)?{[_]:R}:R},N,R),I=_=>Uo(B(o.mount?i:r,_,t.shouldUnregister?B(r,_,[]):[])),J=(_,R,N={})=>{const U=B(s,_);let V=R;if(U){const F=U._f;F&&(!F.disabled&&xe(i,_,Jm(R,F)),V=fo(F.ref)&&nt(R)?"":R,Qm(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):Il(F.ref)?F.ref.value="":(F.ref.value=V,F.ref.type||d.values.next({name:_,values:{...i}})))}(N.shouldDirty||N.shouldTouch)&&A(_,V,N.shouldTouch,N.shouldDirty,!0),N.shouldValidate&&de(_)},X=(_,R,N)=>{for(const U in R){const V=R[U],F=`${_}.${U}`,Y=B(s,F);(a.array.has(_)||Fe(V)||Y&&!Y._f)&&!Jn(V)?X(F,V,N):J(F,V,N)}},H=(_,R,N={})=>{const U=B(s,_),V=a.array.has(_),F=at(R);xe(i,_,F),V?(d.array.next({name:_,values:{...i}}),(u.isDirty||u.dirtyFields)&&N.shouldDirty&&d.state.next({name:_,dirtyFields:Sr(r,i),isDirty:j(_,F)})):U&&!U._f&&!nt(F)?X(_,F,N):J(_,F,N),rf(_,a)&&d.state.next({...n}),d.values.next({name:o.mount?_:void 0,values:{...i}})},q=async _=>{o.mount=!0;const R=_.target;let N=R.name,U=!0;const V=B(s,N),F=()=>R.type?Aa(V._f):Vm(_),Y=ae=>{U=Number.isNaN(ae)||Jn(ae)&&isNaN(ae.getTime())||Cn(ae,B(i,N,ae))};if(V){let ae,Ie;const je=F(),zt=_.type===uo.BLUR||_.type===uo.FOCUS_OUT,gr=!$T(V._f)&&!t.resolver&&!B(n.errors,N)&&!V._f.deps||zT(zt,B(n.touchedFields,N),n.isSubmitted,g,f),Wt=rf(N,a,zt);xe(i,N,je),zt?(V._f.onBlur&&V._f.onBlur(_),c&&c(0)):V._f.onChange&&V._f.onChange(_);const Zn=A(N,je,zt,!1),yr=!lt(Zn)||Wt;if(!zt&&d.values.next({name:N,type:_.type,values:{...i}}),gr)return u.isValid&&(t.mode==="onBlur"&&zt?y():zt||y()),yr&&d.state.next({name:N,...Wt?{}:Zn});if(!zt&&Wt&&d.state.next({...n}),t.resolver){const{errors:Kn}=await E([N]);if(Y(je),U){const ta=ff(n.errors,s,N),ki=ff(Kn,s,ta.name||N);ae=ki.error,N=ki.name,Ie=lt(Kn)}}else v([N],!0),ae=(await uf(V,a.disabled,i,m,t.shouldUseNativeValidation))[N],v([N]),Y(je),U&&(ae?Ie=!1:u.isValid&&(Ie=await D(s,!0)));U&&(V._f.deps&&de(V._f.deps),P(N,Ie,ae,Zn))}},re=(_,R)=>{if(B(n.errors,R)&&_.focus)return _.focus(),1},de=async(_,R={})=>{let N,U;const V=Lr(_);if(t.resolver){const F=await O(Me(_)?_:V);N=lt(F),U=_?!V.some(Y=>B(F,Y)):N}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=N=await D(s);return d.state.next({...!Yt(_)||u.isValid&&N!==n.isValid?{}:{name:_},...t.resolver||!_?{isValid:N}:{},errors:n.errors}),R.shouldFocus&&!U&&Ir(s,re,_?V:a.mount),U},ge=_=>{const R={...o.mount?i:r};return Me(_)?R:Yt(_)?B(R,_):_.map(N=>B(R,N))},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,_)}),He=_=>{_&&Lr(_).forEach(R=>Ue(n.errors,R)),d.state.next({errors:_?n.errors:{}})},qe=(_,R,N)=>{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}),N&&N.shouldFocus&&U&&U.focus&&U.focus()},Pt=(_,R)=>Xt(_)?d.values.subscribe({next:N=>_($(void 0,R),N)}):$(_,R,!0),Je=(_,R={})=>{for(const N of _?Lr(_):a.mount)a.mount.delete(N),a.array.delete(N),R.keepValue||(Ue(s,N),Ue(i,N)),!R.keepError&&Ue(n.errors,N),!R.keepDirty&&Ue(n.dirtyFields,N),!R.keepTouched&&Ue(n.touchedFields,N),!R.keepIsValidating&&Ue(n.validatingFields,N),!t.shouldUnregister&&!R.keepDefaultValue&&Ue(r,N);d.values.next({values:{...i}}),d.state.next({...n,...R.keepDirty?{isDirty:j()}:{}}),!R.keepIsValid&&y()},ue=({disabled:_,name:R,field:N,fields:U})=>{(Et(_)&&o.mount||_||a.disabled.has(R))&&(_?a.disabled.add(R):a.disabled.delete(R),A(R,Aa(N?N._f:B(U,R)._f),!1,!1,!0))},ye=(_,R={})=>{let N=B(s,_);const U=Et(R.disabled)||Et(t.disabled);return xe(s,_,{...N||{},_f:{...N&&N._f?N._f:{ref:{name:_}},name:_,mount:!0,...R}}),a.mount.add(_),N?ue({field:N,disabled:Et(R.disabled)?R.disabled:t.disabled,name:_}):S(_,!0,R.value),{...U?{disabled:R.disabled||t.disabled}:{},...t.progressive?{required:!!R.required,min:_r(R.min),max:_r(R.max),minLength:_r(R.minLength),maxLength:_r(R.maxLength),pattern:_r(R.pattern)}:{},name:_,onChange:q,onBlur:q,ref:V=>{if(V){ye(_,R),N=B(s,_);const F=Me(V.value)&&V.querySelectorAll&&V.querySelectorAll("input,select,textarea")[0]||V,Y=VT(F),ae=N._f.refs||[];if(Y?ae.find(Ie=>Ie===F):F===N._f.ref)return;xe(s,_,{_f:{...N._f,...Y?{refs:[...ae.filter(Ea),F,...Array.isArray(B(r,_))?[{}]:[]],ref:{type:F.type,name:_}}:{ref:F}}}),S(_,!1,void 0,F)}else N=B(s,_,{}),N._f&&(N._f.mount=!1),(t.shouldUnregister||R.shouldUnregister)&&!(Bm(a.array,_)&&o.action)&&a.unMount.add(_)}}},Oe=()=>t.shouldFocusError&&Ir(s,re,a.mount),Le=_=>{Et(_)&&(d.state.next({disabled:_}),Ir(s,(R,N)=>{const U=B(s,N);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 N=>{let U;N&&(N.preventDefault&&N.preventDefault(),N.persist&&N.persist());let V=at(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"),lt(n.errors)){d.state.next({errors:{}});try{await _(V,N)}catch(F){U=F}}else R&&await R({...n.errors},N),Oe(),setTimeout(Oe);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:lt(n.errors)&&!U,submitCount:n.submitCount+1,errors:n.errors}),U)throw U},G=(_,R={})=>{B(s,_)&&(Me(R.defaultValue)?H(_,at(B(r,_))):(H(_,R.defaultValue),xe(r,_,at(R.defaultValue))),R.keepTouched||Ue(n.touchedFields,_),R.keepDirty||(Ue(n.dirtyFields,_),n.isDirty=R.defaultValue?j(_,at(B(r,_))):j()),R.keepError||(Ue(n.errors,_),u.isValid&&y()),d.state.next({...n}))},fe=(_,R={})=>{const N=_?at(_):r,U=at(N),V=lt(_),F=V?r:U;if(R.keepDefaultValues||(r=N),!R.keepValues){if(R.keepDirtyValues){const Y=new Set([...a.mount,...Object.keys(Sr(r,i))]);for(const ae of Array.from(Y))B(n.dirtyFields,ae)?xe(F,ae,B(i,ae)):H(ae,B(F,ae))}else{if(Ml&&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(fo(Ie)){const je=Ie.closest("form");if(je){je.reset();break}}}}s={}}i=t.shouldUnregister?R.keepDefaultValues?at(r):{}:at(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&&!Cn(_,r)),isSubmitted:R.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:V?{}:R.keepDirtyValues?R.keepDefaultValues&&i?Sr(r,i):n.dirtyFields:R.keepDefaultValues&&_?Sr(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:Je,getFieldState:Be,handleSubmit:we,setError:qe,_executeSchema:E,_getWatch:$,_getDirty:j,_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:H,getValues:ge,reset:Se,resetField:G,clearErrors:He,unregister:Je,setError:qe,setFocus:(_,R={})=>{const N=B(s,_),U=N&&N._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 ZT(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={...qT(e),formState:s});const i=t.current.control;return i._options=e,Ll({subject:i._subjects.state,next:o=>{Wm(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&&!Cn(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 KT="Label",eg=x.forwardRef((e,t)=>p.jsx(it.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())}}));eg.displayName=KT;var tg=eg;const GT=Xc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ng=x.forwardRef(({className:e,...t},n)=>p.jsx(tg,{ref:n,className:K(GT(),e),...t}));ng.displayName=tg.displayName;const p1=NT,sg=x.createContext({}),QT=({...e})=>p.jsx(sg.Provider,{value:{name:e.name},children:p.jsx(MT,{...e})}),zo=()=>{const e=x.useContext(sg),t=x.useContext(rg),{getFieldState:n,formState:s}=$o(),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}},rg=x.createContext({}),ig=x.forwardRef(({className:e,...t},n)=>{const s=x.useId();return p.jsx(rg.Provider,{value:{id:s},children:p.jsx("div",{ref:n,className:K("space-y-2",e),...t})})});ig.displayName="FormItem";const og=x.forwardRef(({className:e,...t},n)=>{const{error:s,formItemId:r}=zo();return p.jsx(ng,{ref:n,className:K(s&&"text-destructive",e),htmlFor:r,...t})});og.displayName="FormLabel";const ag=x.forwardRef(({...e},t)=>{const{error:n,formItemId:s,formDescriptionId:r,formMessageId:i}=zo();return p.jsx(ar,{ref:t,id:s,"aria-describedby":n?`${r} ${i}`:`${r}`,"aria-invalid":!!n,...e})});ag.displayName="FormControl";const XT=x.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:s}=zo();return p.jsx("p",{ref:n,id:s,className:K("text-[0.8rem] text-muted-foreground",e),...t})});XT.displayName="FormDescription";const cg=x.forwardRef(({className:e,children:t,...n},s)=>{const{error:r,formMessageId:i}=zo(),o=r?String(r==null?void 0:r.message):t;return o?p.jsx("p",{ref:s,id:i,className:K("text-[0.8rem] font-medium text-destructive",e),...n,children:o}):null});cg.displayName="FormMessage";const cc=x.forwardRef(({className:e,type:t,...n},s)=>t!=="file"?p.jsx("input",{type:t,className:K("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}):p.jsxs("div",{className:"relative w-[160px] h-9 overflow-hidden !cursor-pointer",children:[p.jsx("input",{ref:s,accept:".pdf, .png, .jpeg, .jpg",type:t,className:K("h-9 absolute top-0 left-0 !cursor-pointer opacity-0 z-20 size-full"),...n}),p.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:[p.jsx(Kx,{className:"cursor-pointer",size:16})," Upload file"]})]}));cc.displayName="Input";const lg=x.forwardRef(({className:e,...t},n)=>p.jsx("textarea",{className:K("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}));lg.displayName="Textarea";const m1=({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})=>p.jsx(QT,{control:e,name:t,render:({field:g})=>p.jsxs(ig,{className:K(o,"flex flex-col w-full relative"),children:[p.jsx(og,{className:K("text-xl",f&&"!text-on_primary",l?"text-on_surface":"text-on_surface_v"),children:n}),p.jsx(ag,{children:p.jsx(p.Fragment,{children:c?p.jsx(lg,{rows:3,...g,placeholder:s,className:K(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):i!=="file"?p.jsx(cc,{...g,type:i,placeholder:s,disabled:a,className:K(r&&"border-[#BA1A1A]",f&&"border-primary_outline_reverse focus:border-white hover:border-white focus:border-1 text-on_primary")}):p.jsxs("div",{className:"relative",children:[p.jsx(cc,{type:"file",placeholder:s,onChange:m=>{var y;const h=((y=m.target.files)==null?void 0:y[0])||null;console.log("Выбранный файл:",h),g.onChange(h),d&&d(m)},disabled:a}),g.value&&p.jsxs("div",{className:"text-sm mt-2 text-gray-500 absolute top-8",children:["Выбранный файл: ",g.value.name]})]})})}),p.jsx(cg,{className:K("absolute -bottom-5 left-0 text-sm font-medium leading-[130%]",r&&f?"text-teritary_04":"text-[#BA1A1A]"),children:r?r.message:u})]})}),g1=({className:e,delay:t=.15})=>p.jsxs(Fr.div,{initial:{opacity:0,y:50},animate:{opacity:1,y:0,transition:{delay:t}},className:K("flex flex-col gap-8 my-16",e),children:[p.jsx("h3",{className:"text-3xl text-center",children:"Форма успешно отправлена!"}),p.jsx(Ne,{className:"w-fit mx-auto",to:"/",children:p.jsx(ht,{variant:"outline",children:"Вернуться на главную"})})]}),YT=({className:e,slides:t,active:n,scrollTo:s})=>p.jsx("div",{className:K("flex items-center justify-center gap-2",e),children:Array.from({length:t}).map((r,i)=>p.jsx("span",{onClick:()=>s==null?void 0:s(i),className:K(n===i?"dot-active":"dot")},i))}),JT=["top","right","bottom","left"],Fn=Math.min,mt=Math.max,mo=Math.round,$i=Math.floor,tn=e=>({x:e,y:e}),eC={left:"right",right:"left",bottom:"top",top:"bottom"},tC={start:"end",end:"start"};function lc(e,t,n){return mt(e,Fn(t,n))}function yn(e,t){return typeof e=="function"?e(t):e}function vn(e){return e.split("-")[0]}function fr(e){return e.split("-")[1]}function Bl(e){return e==="x"?"y":"x"}function Ul(e){return e==="y"?"height":"width"}function Ln(e){return["top","bottom"].includes(vn(e))?"y":"x"}function $l(e){return Bl(Ln(e))}function nC(e,t,n){n===void 0&&(n=!1);const s=fr(e),r=$l(e),i=Ul(r);let o=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=go(o)),[o,go(o)]}function sC(e){const t=go(e);return[uc(e),t,uc(t)]}function uc(e){return e.replace(/start|end/g,t=>tC[t])}function rC(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 iC(e,t,n,s){const r=fr(e);let i=rC(vn(e),n==="start",s);return r&&(i=i.map(o=>o+"-"+r),t&&(i=i.concat(i.map(uc)))),i}function go(e){return e.replace(/left|right|bottom|top/g,t=>eC[t])}function oC(e){return{top:0,right:0,bottom:0,left:0,...e}}function ug(e){return typeof e!="number"?oC(e):{top:e,right:e,bottom:e,left:e}}function yo(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function hf(e,t,n){let{reference:s,floating:r}=e;const i=Ln(t),o=$l(t),a=Ul(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(fr(t)){case"start":g[o]-=f*(n&&l?-1:1);break;case"end":g[o]+=f*(n&&l?-1:1);break}return g}const aC=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=n,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t));let l=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:d}=hf(l,s,c),f=s,g={},m=0;for(let h=0;h<a.length;h++){const{name:y,fn:v}=a[h],{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}=hf(l,f,c)),h=-1)}return{x:u,y:d,placement:f,strategy:r,middlewareData:g}};async function qr(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=ug(g),y=a[f?d==="floating"?"reference":"floating":d],v=yo(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=yo(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 cC=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=ug(u),f={x:n,y:s},g=$l(r),m=Ul(g),h=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,O=P/2-h[m]/2-1,D=Fn(d[v],O),L=Fn(d[b],O),j=D,$=P-h[m]-L,I=P/2-h[m]/2+E,J=lc(j,I,$),X=!c.arrow&&fr(r)!=null&&I!==J&&i.reference[m]/2-(I<j?D:L)-h[m]/2<0,H=X?I<j?I-j:I-$:0;return{[g]:f[g]+H,data:{[g]:J,centerOffset:I-J-H,...X&&{alignmentOffset:H}},reset:X}}}),lC=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:h=!0,...y}=yn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const v=vn(r),b=Ln(a),w=vn(a)===a,T=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=f||(w||!h?[go(a)]:sC(a)),A=m!=="none";!f&&A&&S.push(...iC(a,h,m,T));const P=[a,...S],E=await qr(t,y),O=[];let D=((s=i.flip)==null?void 0:s.overflows)||[];if(u&&O.push(E[v]),d){const I=nC(r,o,T);O.push(E[I[0]],E[I[1]])}if(D=[...D,{placement:r,overflows:O}],!O.every(I=>I<=0)){var L,j;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=(j=D.filter(H=>H.overflows[0]<=0).sort((H,q)=>H.overflows[1]-q.overflows[1])[0])==null?void 0:j.placement;if(!X)switch(g){case"bestFit":{var $;const H=($=D.filter(q=>{if(A){const re=Ln(q.placement);return re===b||re==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(re=>re>0).reduce((re,de)=>re+de,0)]).sort((q,re)=>q[1]-re[1])[0])==null?void 0:$[0];H&&(X=H);break}case"initialPlacement":X=a;break}if(r!==X)return{reset:{placement:X}}}return{}}}};function pf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mf(e){return JT.some(t=>e[t]>=0)}const uC=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 qr(t,{...r,elementContext:"reference"}),o=pf(i,n.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:mf(o)}}}case"escaped":{const i=await qr(t,{...r,altBoundary:!0}),o=pf(i,n.floating);return{data:{escapedOffsets:o,escaped:mf(o)}}}default:return{}}}}};async function dC(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=fr(n),c=Ln(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 fC=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 dC(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}}}}},hC=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 qr(t,c),d=Ln(vn(r)),f=Bl(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=lc(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=lc(b,m,w)}const h=a.fn({...t,[f]:g,[d]:m});return{...h,data:{x:h.x-n,y:h.y-s,enabled:{[f]:i,[d]:o}}}}}},pC=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=Ln(r),f=Bl(d);let g=u[f],m=u[d];const h=yn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};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}}}},mC=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 qr(t,l),d=vn(r),f=fr(r),g=Ln(r)==="y",{width:m,height:h}=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=h-u.top-u.bottom,w=m-u.left-u.right,T=Fn(h-u[y],b),S=Fn(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=mt(u.left,0),L=mt(u.right,0),j=mt(u.top,0),$=mt(u.bottom,0);g?E=m-2*(D!==0||L!==0?D+L:mt(u.left,u.right)):P=h-2*(j!==0||$!==0?j+$:mt(u.top,u.bottom))}await c({...t,availableWidth:E,availableHeight:P});const O=await o.getDimensions(a.floating);return m!==O.width||h!==O.height?{reset:{rects:!0}}:{}}}};function Wo(){return typeof window<"u"}function hr(e){return dg(e)?(e.nodeName||"").toLowerCase():"#document"}function vt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function an(e){var t;return(t=(dg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dg(e){return Wo()?e instanceof Node||e instanceof vt(e).Node:!1}function Lt(e){return Wo()?e instanceof Element||e instanceof vt(e).Element:!1}function sn(e){return Wo()?e instanceof HTMLElement||e instanceof vt(e).HTMLElement:!1}function gf(e){return!Wo()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof vt(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 gC(e){return["table","td","th"].includes(hr(e))}function Ho(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function zl(e){const t=Wl(),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 yC(e){let t=In(e);for(;sn(t)&&!nr(t);){if(zl(t))return t;if(Ho(t))return null;t=In(t)}return null}function Wl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function nr(e){return["html","body","#document"].includes(hr(e))}function It(e){return vt(e).getComputedStyle(e)}function qo(e){return Lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(hr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||gf(e)&&e.host||an(e);return gf(t)?t.host:t}function fg(e){const t=In(e);return nr(t)?e.ownerDocument?e.ownerDocument.body:e.body:sn(t)&&_i(t)?t:fg(t)}function Zr(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=fg(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),o=vt(r);if(i){const a=dc(o);return t.concat(o,o.visualViewport||[],_i(r)?r:[],a&&n?Zr(a):[])}return t.concat(r,Zr(r,[],n))}function dc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function hg(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=mo(n)!==i||mo(s)!==o;return a&&(n=i,s=o),{width:n,height:s,$:a}}function Hl(e){return Lt(e)?e:e.contextElement}function Ls(e){const t=Hl(e);if(!sn(t))return tn(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=hg(t);let o=(i?mo(n.width):n.width)/s,a=(i?mo(n.height):n.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const vC=tn(0);function pg(e){const t=vt(e);return!Wl()||!t.visualViewport?vC:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function xC(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==vt(e)?!1:t}function ms(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Hl(e);let o=tn(1);t&&(s?Lt(s)&&(o=Ls(s)):o=Ls(e));const a=xC(i,n,s)?pg(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=vt(i),g=s&&Lt(s)?vt(s):s;let m=f,h=dc(m);for(;h&&s&&g!==m;){const y=Ls(h),v=h.getBoundingClientRect(),b=It(h),w=v.left+(h.clientLeft+parseFloat(b.paddingLeft))*y.x,T=v.top+(h.clientTop+parseFloat(b.paddingTop))*y.y;c*=y.x,l*=y.y,u*=y.x,d*=y.y,c+=w,l+=T,m=vt(h),h=dc(m)}}return yo({width:u,height:d,x:c,y:l})}function ql(e,t){const n=qo(e).scrollLeft;return t?t.left+n:ms(an(e)).left+n}function mg(e,t,n){n===void 0&&(n=!1);const s=e.getBoundingClientRect(),r=s.left+t.scrollLeft-(n?0:ql(e,s)),i=s.top+t.scrollTop;return{x:r,y:i}}function bC(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",o=an(s),a=t?Ho(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)&&((hr(s)!=="body"||_i(o))&&(c=qo(s)),sn(s))){const g=ms(s);l=Ls(s),u.x=g.x+s.clientLeft,u.y=g.y+s.clientTop}const f=o&&!d&&!i?mg(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 wC(e){return Array.from(e.getClientRects())}function SC(e){const t=an(e),n=qo(e),s=e.ownerDocument.body,r=mt(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=mt(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let o=-n.scrollLeft+ql(e);const a=-n.scrollTop;return It(s).direction==="rtl"&&(o+=mt(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function _C(e,t){const n=vt(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=Wl();(!l||l&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function TC(e,t){const n=ms(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=sn(e)?Ls(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 yf(e,t,n){let s;if(t==="viewport")s=_C(e,n);else if(t==="document")s=SC(an(e));else if(Lt(t))s=TC(t,n);else{const r=pg(e);s={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return yo(s)}function gg(e,t){const n=In(e);return n===t||!Lt(n)||nr(n)?!1:It(n).position==="fixed"||gg(n,t)}function CC(e,t){const n=t.get(e);if(n)return n;let s=Zr(e,[],!1).filter(a=>Lt(a)&&hr(a)!=="body"),r=null;const i=It(e).position==="fixed";let o=i?In(e):e;for(;Lt(o)&&!nr(o);){const a=It(o),c=zl(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||_i(o)&&!c&&gg(e,o))?s=s.filter(u=>u!==o):r=a,o=In(o)}return t.set(e,s),s}function EC(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const o=[...n==="clippingAncestors"?Ho(t)?[]:CC(t,this._c):[].concat(n),s],a=o[0],c=o.reduce((l,u)=>{const d=yf(t,u,r);return l.top=mt(d.top,l.top),l.right=Fn(d.right,l.right),l.bottom=Fn(d.bottom,l.bottom),l.left=mt(d.left,l.left),l},yf(t,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function AC(e){const{width:t,height:n}=hg(e);return{width:t,height:n}}function PC(e,t,n){const s=sn(t),r=an(t),i=n==="fixed",o=ms(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=tn(0);if(s||!s&&!i)if((hr(t)!=="body"||_i(r))&&(a=qo(t)),s){const f=ms(t,!0,i,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else r&&(c.x=ql(r));const l=r&&!s&&!i?mg(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 Pa(e){return It(e).position==="static"}function vf(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 yg(e,t){const n=vt(e);if(Ho(e))return n;if(!sn(e)){let r=In(e);for(;r&&!nr(r);){if(Lt(r)&&!Pa(r))return r;r=In(r)}return n}let s=vf(e,t);for(;s&&gC(s)&&Pa(s);)s=vf(s,t);return s&&nr(s)&&Pa(s)&&!zl(s)?n:s||yC(e)||n}const RC=async function(e){const t=this.getOffsetParent||yg,n=this.getDimensions,s=await n(e.floating);return{reference:PC(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function kC(e){return It(e).direction==="rtl"}const NC={convertOffsetParentRelativeRectToViewportRelativeRect:bC,getDocumentElement:an,getClippingRect:EC,getOffsetParent:yg,getElementRects:RC,getClientRects:wC,getDimensions:AC,getScale:Ls,isElement:Lt,isRTL:kC};function vg(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OC(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),h=$i(r.clientWidth-(u+f)),y=$i(r.clientHeight-(d+g)),v=$i(u),w={rootMargin:-m+"px "+-h+"px "+-y+"px "+-v+"px",threshold:mt(0,Fn(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&&!vg(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 jC(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=Hl(e),u=r||i?[...l?Zr(l):[],...Zr(t)]:[];u.forEach(v=>{r&&v.addEventListener("scroll",n,{passive:!0}),i&&v.addEventListener("resize",n)});const d=l&&a?OC(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,h=c?ms(e):null;c&&y();function y(){const v=ms(e);h&&!vg(h,v)&&n(),h=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 DC=fC,MC=hC,FC=lC,LC=mC,IC=uC,xf=cC,VC=pC,BC=(e,t,n)=>{const s=new Map,r={platform:NC,...n},i={...r.platform,_c:s};return aC(e,t,{...r,platform:i})};var Yi=typeof document<"u"?x.useLayoutEffect:x.useEffect;function vo(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(!vo(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)&&!vo(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bf(e,t){const n=xg(e);return Math.round(t*n)/n}function Ra(e){const t=x.useRef(e);return Yi(()=>{t.current=e}),t}function UC(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);vo(f,s)||g(s);const[m,h]=x.useState(null),[y,v]=x.useState(null),b=x.useCallback(q=>{q!==A.current&&(A.current=q,h(q))},[]),w=x.useCallback(q=>{q!==P.current&&(P.current=q,v(q))},[]),T=i||m,S=o||y,A=x.useRef(null),P=x.useRef(null),E=x.useRef(u),O=c!=null,D=Ra(c),L=Ra(r),j=Ra(l),$=x.useCallback(()=>{if(!A.current||!P.current)return;const q={placement:t,strategy:n,middleware:f};L.current&&(q.platform=L.current),BC(A.current,P.current,q).then(re=>{const de={...re,isPositioned:j.current!==!1};I.current&&!vo(E.current,de)&&(E.current=de,dh.flushSync(()=>{d(de)}))})},[f,t,n,L,j]);Yi(()=>{l===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,d(q=>({...q,isPositioned:!1})))},[l]);const I=x.useRef(!1);Yi(()=>(I.current=!0,()=>{I.current=!1}),[]),Yi(()=>{if(T&&(A.current=T),S&&(P.current=S),T&&S){if(D.current)return D.current(T,S,$);$()}},[T,S,$,D,O]);const J=x.useMemo(()=>({reference:A,floating:P,setReference:b,setFloating:w}),[b,w]),X=x.useMemo(()=>({reference:T,floating:S}),[T,S]),H=x.useMemo(()=>{const q={position:n,left:0,top:0};if(!X.floating)return q;const re=bf(X.floating,u.x),de=bf(X.floating,u.y);return a?{...q,transform:"translate("+re+"px, "+de+"px)",...xg(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:H}),[u,$,J,X,H])}const $C=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:s,padding:r}=typeof e=="function"?e(n):e;return s&&t(s)?s.current!=null?xf({element:s.current,padding:r}).fn(n):{}:s?xf({element:s,padding:r}).fn(n):{}}}},zC=(e,t)=>({...DC(e),options:[e,t]}),WC=(e,t)=>({...MC(e),options:[e,t]}),HC=(e,t)=>({...VC(e),options:[e,t]}),qC=(e,t)=>({...FC(e),options:[e,t]}),ZC=(e,t)=>({...LC(e),options:[e,t]}),KC=(e,t)=>({...IC(e),options:[e,t]}),GC=(e,t)=>({...$C(e),options:[e,t]});var QC="Arrow",bg=x.forwardRef((e,t)=>{const{children:n,width:s=10,height:r=5,...i}=e;return p.jsx(it.svg,{...i,ref:t,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});bg.displayName=QC;var XC=bg;function YC(e){const[t,n]=x.useState(void 0);return hs(()=>{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 Zl="Popper",[wg,Sg]=Uc(Zl),[JC,_g]=wg(Zl),Tg=e=>{const{__scopePopper:t,children:n}=e,[s,r]=x.useState(null);return p.jsx(JC,{scope:t,anchor:s,onAnchorChange:r,children:n})};Tg.displayName=Zl;var Cg="PopperAnchor",Eg=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:s,...r}=e,i=_g(Cg,n),o=x.useRef(null),a=Bt(t,o);return x.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:p.jsx(it.div,{...r,ref:a})});Eg.displayName=Cg;var Kl="PopperContent",[eE,tE]=wg(Kl),Ag=x.forwardRef((e,t)=>{var ue,ye,Oe,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,...h}=e,y=_g(Kl,n),[v,b]=x.useState(null),w=Bt(t,fe=>b(fe)),[T,S]=x.useState(null),A=YC(T),P=(A==null?void 0:A.width)??0,E=(A==null?void 0:A.height)??0,O=s+(i!=="center"?"-"+i:""),D=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},L=Array.isArray(l)?l:[l],j=L.length>0,$={padding:D,boundary:L.filter(sE),altBoundary:j},{refs:I,floatingStyles:J,placement:X,isPositioned:H,middlewareData:q}=UC({strategy:"fixed",placement:O,whileElementsMounted:(...fe)=>jC(...fe,{animationFrame:g==="always"}),elements:{reference:y.anchor},middleware:[zC({mainAxis:r+E,alignmentAxis:o}),c&&WC({mainAxis:!0,crossAxis:!1,limiter:d==="partial"?HC():void 0,...$}),c&&qC({...$}),ZC({...$,apply:({elements:fe,rects:Se,availableWidth:$e,availableHeight:pt})=>{const{width:wt,height:_}=Se.reference,R=fe.floating.style;R.setProperty("--radix-popper-available-width",`${$e}px`),R.setProperty("--radix-popper-available-height",`${pt}px`),R.setProperty("--radix-popper-anchor-width",`${wt}px`),R.setProperty("--radix-popper-anchor-height",`${_}px`)}}),T&&GC({element:T,padding:a}),rE({arrowWidth:P,arrowHeight:E}),f&&KC({strategy:"referenceHidden",...$})]}),[re,de]=kg(X),ge=jn(m);hs(()=>{H&&(ge==null||ge())},[H,ge]);const Be=(ue=q.arrow)==null?void 0:ue.x,He=(ye=q.arrow)==null?void 0:ye.y,qe=((Oe=q.arrow)==null?void 0:Oe.centerOffset)!==0,[Pt,Je]=x.useState();return hs(()=>{v&&Je(window.getComputedStyle(v).zIndex)},[v]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...J,transform:H?J.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Pt,"--radix-popper-transform-origin":[(Le=q.transformOrigin)==null?void 0:Le.x,(we=q.transformOrigin)==null?void 0:we.y].join(" "),...((G=q.hide)==null?void 0:G.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(eE,{scope:n,placedSide:re,onArrowChange:S,arrowX:Be,arrowY:He,shouldHideArrow:qe,children:p.jsx(it.div,{"data-side":re,"data-align":de,...h,ref:w,style:{...h.style,animation:H?void 0:"none"}})})})});Ag.displayName=Kl;var Pg="PopperArrow",nE={top:"bottom",right:"left",bottom:"top",left:"right"},Rg=x.forwardRef(function(t,n){const{__scopePopper:s,...r}=t,i=tE(Pg,s),o=nE[i.placedSide];return p.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:p.jsx(XC,{...r,ref:n,style:{...r.style,display:"block"}})})});Rg.displayName=Pg;function sE(e){return e!==null}var rE=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]=kg(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="",h="";return l==="bottom"?(m=o?d:`${f}px`,h=`${-c}px`):l==="top"?(m=o?d:`${f}px`,h=`${s.floating.height+c}px`):l==="right"?(m=`${-c}px`,h=o?d:`${g}px`):l==="left"&&(m=`${s.floating.width+c}px`,h=o?d:`${g}px`),{data:{x:m,y:h}}}});function kg(e){const[t,n="center"]=e.split("-");return[t,n]}var iE=Tg,Ng=Eg,oE=Ag,aE=Rg,Gl="Popover",[Og,y1]=Uc(Gl,[Sg]),Ti=Sg(),[cE,Wn]=Og(Gl),jg=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]=hh({prop:s,defaultProp:r,onChange:i});return p.jsx(iE,{...a,children:p.jsx(cE,{scope:t,contentId:Hi(),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})})};jg.displayName=Gl;var Dg="PopoverAnchor",lE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(Dg,n),i=Ti(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=r;return x.useEffect(()=>(o(),()=>a()),[o,a]),p.jsx(Ng,{...i,...s,ref:t})});lE.displayName=Dg;var Mg="PopoverTrigger",Fg=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(Mg,n),i=Ti(n),o=Bt(t,r.triggerRef),a=p.jsx(it.button,{type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":Ug(r.open),...s,ref:o,onClick:gt(e.onClick,r.onOpenToggle)});return r.hasCustomAnchor?a:p.jsx(Ng,{asChild:!0,...i,children:a})});Fg.displayName=Mg;var Ql="PopoverPortal",[uE,dE]=Og(Ql,{forceMount:void 0}),Lg=e=>{const{__scopePopover:t,forceMount:n,children:s,container:r}=e,i=Wn(Ql,t);return p.jsx(uE,{scope:t,forceMount:n,children:p.jsx(cr,{present:n||i.open,children:p.jsx(Wc,{asChild:!0,container:r,children:s})})})};Lg.displayName=Ql;var sr="PopoverContent",Ig=x.forwardRef((e,t)=>{const n=dE(sr,e.__scopePopover),{forceMount:s=n.forceMount,...r}=e,i=Wn(sr,e.__scopePopover);return p.jsx(cr,{present:s||i.open,children:i.modal?p.jsx(fE,{...r,ref:t}):p.jsx(hE,{...r,ref:t})})});Ig.displayName=sr;var fE=x.forwardRef((e,t)=>{const n=Wn(sr,e.__scopePopover),s=x.useRef(null),r=Bt(t,s),i=x.useRef(!1);return x.useEffect(()=>{const o=s.current;if(o)return Eh(o)},[]),p.jsx(Hc,{as:ar,allowPinchZoom:!0,children:p.jsx(Vg,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:gt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:gt(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:gt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),hE=x.forwardRef((e,t)=>{const n=Wn(sr,e.__scopePopover),s=x.useRef(!1),r=x.useRef(!1);return p.jsx(Vg,{...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()}})}),Vg=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=Wn(sr,n),g=Ti(n);return yh(),p.jsx(zc,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:r,onUnmountAutoFocus:i,children:p.jsx($c,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),children:p.jsx(oE,{"data-state":Ug(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)"}})})})}),Bg="PopoverClose",pE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Wn(Bg,n);return p.jsx(it.button,{type:"button",...s,ref:t,onClick:gt(e.onClick,()=>r.onOpenChange(!1))})});pE.displayName=Bg;var mE="PopoverArrow",gE=x.forwardRef((e,t)=>{const{__scopePopover:n,...s}=e,r=Ti(n);return p.jsx(aE,{...r,...s,ref:t})});gE.displayName=mE;function Ug(e){return e?"open":"closed"}var yE=jg,vE=Fg,xE=Lg,$g=Ig;const zg=yE,Wg=vE,Xl=x.forwardRef(({className:e,align:t="center",sideOffset:n=4,...s},r)=>p.jsx(xE,{children:p.jsx($g,{ref:r,align:t,sideOffset:n,className:K("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})}));Xl.displayName=$g.displayName;const wf=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},bE=e=>e?wf(e):wf,wE=e=>e;function SE(e,t=wE){const n=ve.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return ve.useDebugValue(n),n}const _E=e=>{const t=bE(e),n=s=>SE(t,s);return Object.assign(n,t),n},Hg=e=>_E;function TE(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 fc=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(s){return fc(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return fc(s)(n)}}}},CE=(e,t)=>(n,s,r)=>{let i={storage:TE(()=>localStorage),partialize:h=>h,version:0,merge:(h,y)=>({...y,...h}),...t},o=!1;const a=new Set,c=new Set;let l=i.storage;if(!l)return e((...h)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...h)},s,r);const u=()=>{const h=i.partialize({...s()});return l.setItem(i.name,{state:h,version:i.version})},d=r.setState;r.setState=(h,y)=>{d(h,y),u()};const f=e((...h)=>{n(...h),u()},s,r);r.getInitialState=()=>f;let g;const m=()=>{var h,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,(h=s())!=null?h:f))||void 0;return fc(l.getItem.bind(l))(i.name).then(b=>{if(b)if(typeof b.version=="number"&&b.version!==i.version){if(i.migrate){const w=i.migrate(b.state,b.version);return w instanceof Promise?w.then(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:h=>{i={...i,...h},h.storage&&(l=h.storage)},clearStorage:()=>{l==null||l.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>o,onHydrate:h=>(a.add(h),()=>{a.delete(h)}),onFinishHydration:h=>(c.add(h),()=>{c.delete(h)})},i.skipHydration||m(),g||f},EE=CE;var ut=(e=>(e.EN="en",e.RU="ru",e))(ut||{});const Ce=Hg()(EE(e=>({lang:"en",setLang:t=>e({lang:t})}),{name:"lang-storage"})),AE=[{lang:ut.RU},{lang:ut.EN}],Sf=({className:e,light:t=!1})=>{const n=Ce(o=>o.lang),s=Ce(o=>o.setLang),[r,i]=x.useState(!1);return p.jsxs(zg,{open:r,onOpenChange:()=>i(!r),children:[p.jsxs(Wg,{className:K("flex text-white items-center gap-2",t?"text-white":"text-black",e),children:[p.jsx("img",{src:n===ut.RU?"/ru.svg":"/english.svg",alt:""}),n===ut.RU?"Ру":"En",p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.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"})})]}),p.jsx(Xl,{className:"flex flex-col gap-6",children:AE.filter(o=>o.lang!==n).map((o,a)=>p.jsxs("div",{onClick:()=>{s(o.lang),i(!1)},className:"flex gap-3 py-1 items-center cursor-pointer",children:[p.jsx("img",{src:o.lang===ut.RU?"/ru.svg":"/english.svg",alt:"flag"}),p.jsx("h5",{children:o.lang===ut.RU?"Русский":"English"})]},a))})]})},PE=zh,RE=Wh,kE=Hh,qg=x.forwardRef(({className:e,...t},n)=>p.jsx(No,{ref:n,className:K("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}));qg.displayName=No.displayName;const Zg=x.forwardRef(({className:e,children:t,...n},s)=>p.jsxs(kE,{children:[p.jsx(qg,{}),p.jsxs(Oo,{ref:s,className:K("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,p.jsxs(Qc,{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:[p.jsx(Yc,{className:"size-6"}),p.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Zg.displayName=Oo.displayName;const NE=x.forwardRef(({className:e,...t},n)=>p.jsx(jo,{ref:n,className:K("text-lg font-semibold leading-none tracking-tight",e),...t}));NE.displayName=jo.displayName;const OE=x.forwardRef(({className:e,...t},n)=>p.jsx(Do,{ref:n,className:K("text-sm text-muted-foreground",e),...t}));OE.displayName=Do.displayName;const _f=(e,t,n)=>{if(e&&"reportValidity"in e){const s=B(n,t);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},Kg=(e,t)=>{for(const n in t.fields){const s=t.fields[n];s&&s.ref&&"reportValidity"in s.ref?_f(s.ref,n,e):s.refs&&s.refs.forEach(r=>_f(r,n,e))}},jE=(e,t)=>{t.shouldUseNativeValidation&&Kg(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(DE(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},DE=(e,t)=>e.some(n=>n.startsWith(t+"."));var ME=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]=Zm(o,t,n,r,l?[].concat(l,s.message):s.message)}e.shift()}return n},FE=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&&Kg({},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:jE(ME(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 hc;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hc||(hc={}));const W=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 W.undefined;case"string":return W.string;case"number":return isNaN(e)?W.nan:W.number;case"boolean":return W.boolean;case"function":return W.function;case"bigint":return W.bigint;case"symbol":return W.symbol;case"object":return Array.isArray(e)?W.array:e===null?W.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?W.promise:typeof Map<"u"&&e instanceof Map?W.map:typeof Set<"u"&&e instanceof Set?W.set:typeof Date<"u"&&e instanceof Date?W.date:W.object;default:return W.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"]),LE=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:");class xt 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 xt))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()}}xt.create=e=>new xt(e);const rr=(e,t)=>{let n;switch(e.code){case M.invalid_type:e.received===W.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 Gg=rr;function IE(e){Gg=e}function xo(){return Gg}const bo=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}},VE=[];function z(e,t){const n=xo(),s=bo({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===rr?void 0:rr].filter(r=>!!r)});e.common.issues.push(s)}class Xe{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 Xe.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"}),Ds=e=>({status:"dirty",value:e}),rt=e=>({status:"valid",value:e}),pc=e=>e.status==="aborted",mc=e=>e.status==="dirty",gs=e=>e.status==="valid",Kr=e=>typeof Promise<"u"&&e instanceof Promise;function wo(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 Qg(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 Pr,Rr;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 Tf=(e,t)=>{if(gs(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 xt(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 Xe,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(Kr(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 Tf(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 gs(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=>gs(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(Kr(r)?r:Promise.resolve(r));return Tf(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 $n.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mt.create(this)}promise(){return or.create(this,this._def)}or(t){return Yr.create([this,t],this._def)}and(t){return Jr.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 ri({...oe(this._def),innerType:this,defaultValue:n,typeName:te.ZodDefault})}brand(){return new Yl({typeName:te.ZodBranded,type:this,...oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ii({...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 oi.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const BE=/^c[^\s-]{8,}$/i,UE=/^[0-9a-z]+$/,$E=/^[0-9A-HJKMNP-TV-Z]{26}$/i,zE=/^[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,WE=/^[a-z0-9_-]{21}$/i,HE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,qE=/^[-+]?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)?)??$/,ZE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,KE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let ka;const GE=/^(?:(?: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])$/,QE=/^(?:(?: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])$/,XE=/^(([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]))$/,YE=/^(([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])$/,JE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,eA=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Xg="((\\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])))",tA=new RegExp(`^${Xg}$`);function Yg(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 nA(e){return new RegExp(`^${Yg(e)}$`)}function Jg(e){let t=`${Xg}T${Yg(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 sA(e,t){return!!((t==="v4"||!t)&&GE.test(e)||(t==="v6"||!t)&&XE.test(e))}function rA(e,t){if(!HE.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 iA(e,t){return!!((t==="v4"||!t)&&QE.test(e)||(t==="v6"||!t)&&YE.test(e))}class Dt extends le{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==W.string){const i=this._getOrReturnCtx(t);return z(i,{code:M.invalid_type,expected:W.string,received:i.parsedType}),se}const s=new Xe;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")ZE.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")ka||(ka=new RegExp(KE,"u")),ka.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")zE.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")WE.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")BE.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")UE.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")$E.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"?Jg(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"?tA.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{code:M.invalid_string,validation:"date",message:i.message}),s.dirty()):i.kind==="time"?nA(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"?qE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"duration",code:M.invalid_string,message:i.message}),s.dirty()):i.kind==="ip"?sA(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"?rA(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"?iA(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"?JE.test(t.data)||(r=this._getOrReturnCtx(t,r),z(r,{validation:"base64",code:M.invalid_string,message:i.message}),s.dirty()):i.kind==="base64url"?eA.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 oA(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 Vn 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)!==W.number){const i=this._getOrReturnCtx(t);return z(i,{code:M.invalid_type,expected:W.number,received:i.parsedType}),se}let s;const r=new Xe;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"?oA(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 Vn({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:s,message:Q.toString(r)}]})}_addCheck(t){return new Vn({...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)}}Vn.create=e=>new Vn({checks:[],typeName:te.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class Bn 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)!==W.bigint)return this._getInvalidInput(t);let s;const r=new Xe;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:W.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 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]})}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}}Bn.create=e=>{var t;return new Bn({checks:[],typeName:te.ZodBigInt,coerce:(t=e==null?void 0:e.coerce)!==null&&t!==void 0?t:!1,...oe(e)})};class Gr extends le{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==W.boolean){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:W.boolean,received:s.parsedType}),se}return rt(t.data)}}Gr.create=e=>new Gr({typeName:te.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...oe(e)});class ys extends le{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==W.date){const i=this._getOrReturnCtx(t);return z(i,{code:M.invalid_type,expected:W.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 Xe;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 ys({...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}}ys.create=e=>new ys({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:te.ZodDate,...oe(e)});class So extends le{_parse(t){if(this._getType(t)!==W.symbol){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:W.symbol,received:s.parsedType}),se}return rt(t.data)}}So.create=e=>new So({typeName:te.ZodSymbol,...oe(e)});class Qr extends le{_parse(t){if(this._getType(t)!==W.undefined){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:W.undefined,received:s.parsedType}),se}return rt(t.data)}}Qr.create=e=>new Qr({typeName:te.ZodUndefined,...oe(e)});class Xr extends le{_parse(t){if(this._getType(t)!==W.null){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:W.null,received:s.parsedType}),se}return rt(t.data)}}Xr.create=e=>new Xr({typeName:te.ZodNull,...oe(e)});class ir extends le{constructor(){super(...arguments),this._any=!0}_parse(t){return rt(t.data)}}ir.create=e=>new ir({typeName:te.ZodAny,...oe(e)});class ds extends le{constructor(){super(...arguments),this._unknown=!0}_parse(t){return rt(t.data)}}ds.create=e=>new ds({typeName:te.ZodUnknown,...oe(e)});class xn extends le{_parse(t){const n=this._getOrReturnCtx(t);return z(n,{code:M.invalid_type,expected:W.never,received:n.parsedType}),se}}xn.create=e=>new xn({typeName:te.ZodNever,...oe(e)});class _o extends le{_parse(t){if(this._getType(t)!==W.undefined){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:W.void,received:s.parsedType}),se}return rt(t.data)}}_o.create=e=>new _o({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!==W.array)return z(n,{code:M.invalid_type,expected:W.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=>Xe.mergeArray(s,o));const i=[...n.data].map((o,a)=>r.type._parseSync(new rn(n,o,n.path,a)));return Xe.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 Ps(e){if(e instanceof Ee){const t={};for(const n in e.shape){const s=e.shape[n];t[n]=nn.create(Ps(s))}return new Ee({...e._def,shape:()=>t})}else return e instanceof Mt?new Mt({...e._def,type:Ps(e.element)}):e instanceof nn?nn.create(Ps(e.unwrap())):e instanceof $n?$n.create(Ps(e.unwrap())):e instanceof on?on.create(e.items.map(t=>Ps(t))):e}class Ee 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)!==W.object){const l=this._getOrReturnCtx(t);return z(l,{code:M.invalid_type,expected:W.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=>Xe.mergeObjectSync(s,l)):Xe.mergeObjectSync(s,c)}get shape(){return this._def.shape()}strict(t){return Q.errToObj,new Ee({...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 Ee({...this._def,unknownKeys:"strip"})}passthrough(){return new Ee({...this._def,unknownKeys:"passthrough"})}extend(t){return new Ee({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Ee({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 Ee({...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 Ee({...this._def,shape:()=>n})}omit(t){const n={};return me.objectKeys(this.shape).forEach(s=>{t[s]||(n[s]=this.shape[s])}),new Ee({...this._def,shape:()=>n})}deepPartial(){return Ps(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 Ee({...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 Ee({...this._def,shape:()=>n})}keyof(){return ey(me.objectKeys(this.shape))}}Ee.create=(e,t)=>new Ee({shape:()=>e,unknownKeys:"strip",catchall:xn.create(),typeName:te.ZodObject,...oe(t)});Ee.strictCreate=(e,t)=>new Ee({shape:()=>e,unknownKeys:"strict",catchall:xn.create(),typeName:te.ZodObject,...oe(t)});Ee.lazycreate=(e,t)=>new Ee({shape:e,unknownKeys:"strip",catchall:xn.create(),typeName:te.ZodObject,...oe(t)});class Yr 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 xt(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 xt(c));return z(n,{code:M.invalid_union,unionErrors:a}),se}}get options(){return this._def.options}}Yr.create=(e,t)=>new Yr({options:e,typeName:te.ZodUnion,...oe(t)});const un=e=>e instanceof ti?un(e.schema):e instanceof Vt?un(e.innerType()):e instanceof ni?[e.value]:e instanceof Un?e.options:e instanceof si?me.objectValues(e.enum):e instanceof ri?un(e._def.innerType):e instanceof Qr?[void 0]:e instanceof Xr?[null]:e instanceof nn?[void 0,...un(e.unwrap())]:e instanceof $n?[null,...un(e.unwrap())]:e instanceof Yl||e instanceof oi?un(e.unwrap()):e instanceof ii?un(e._def.innerType):[];class Zo extends le{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==W.object)return z(n,{code:M.invalid_type,expected:W.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 Zo({typeName:te.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...oe(s)})}}function gc(e,t){const n=fn(e),s=fn(t);if(e===t)return{valid:!0,data:e};if(n===W.object&&s===W.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=gc(e[a],t[a]);if(!c.valid)return{valid:!1};o[a]=c.data}return{valid:!0,data:o}}else if(n===W.array&&s===W.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=gc(o,a);if(!c.valid)return{valid:!1};r.push(c.data)}return{valid:!0,data:r}}else return n===W.date&&s===W.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Jr extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t),r=(i,o)=>{if(pc(i)||pc(o))return se;const a=gc(i.value,o.value);return a.valid?((mc(i)||mc(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}))}}Jr.create=(e,t,n)=>new Jr({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!==W.array)return z(s,{code:M.invalid_type,expected:W.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=>Xe.mergeArray(n,o)):Xe.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 ei 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!==W.object)return z(s,{code:M.invalid_type,expected:W.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?Xe.mergeObjectAsync(n,r):Xe.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,s){return n instanceof le?new ei({keyType:t,valueType:n,typeName:te.ZodRecord,...oe(s)}):new ei({keyType:Dt.create(),valueType:t,typeName:te.ZodRecord,...oe(n)})}}class To 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!==W.map)return z(s,{code:M.invalid_type,expected:W.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}}}}To.create=(e,t,n)=>new To({valueType:t,keyType:e,typeName:te.ZodMap,...oe(n)});class vs extends le{_parse(t){const{status:n,ctx:s}=this._processInputParams(t);if(s.parsedType!==W.set)return z(s,{code:M.invalid_type,expected:W.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 vs({...this._def,minSize:{value:t,message:Q.toString(n)}})}max(t,n){return new vs({...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)}}vs.create=(e,t)=>new vs({valueType:e,minSize:null,maxSize:null,typeName:te.ZodSet,...oe(t)});class Is extends le{constructor(){super(...arguments),this.validate=this.implement}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==W.function)return z(n,{code:M.invalid_type,expected:W.function,received:n.parsedType}),se;function s(a,c){return bo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xo(),rr].filter(l=>!!l),issueData:{code:M.invalid_arguments,argumentsError:c}})}function r(a,c){return bo({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,xo(),rr].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 or){const a=this;return rt(async function(...c){const l=new xt([]),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 rt(function(...c){const l=a._def.args.safeParse(c,i);if(!l.success)throw new xt([s(c,l.error)]);const u=Reflect.apply(o,this,l.data),d=a._def.returns.safeParse(u,i);if(!d.success)throw new xt([r(u,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new Is({...this._def,args:on.create(t).rest(ds.create())})}returns(t){return new Is({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,s){return new Is({args:t||on.create([]).rest(ds.create()),returns:n||ds.create(),typeName:te.ZodFunction,...oe(s)})}}class ti 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})}}ti.create=(e,t)=>new ti({getter:e,typeName:te.ZodLazy,...oe(t)});class ni 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}}ni.create=(e,t)=>new ni({value:e,typeName:te.ZodLiteral,...oe(t)});function ey(e,t){return new Un({values:e,typeName:te.ZodEnum,...oe(t)})}class Un extends le{constructor(){super(...arguments),Pr.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(wo(this,Pr)||Qg(this,Pr,new Set(this._def.values)),!wo(this,Pr).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 rt(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 Un.create(t,{...this._def,...n})}exclude(t,n=this._def){return Un.create(this.options.filter(s=>!t.includes(s)),{...this._def,...n})}}Pr=new WeakMap;Un.create=ey;class si extends le{constructor(){super(...arguments),Rr.set(this,void 0)}_parse(t){const n=me.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(t);if(s.parsedType!==W.string&&s.parsedType!==W.number){const r=me.objectValues(n);return z(s,{expected:me.joinValues(r),received:s.parsedType,code:M.invalid_type}),se}if(wo(this,Rr)||Qg(this,Rr,new Set(me.getValidEnumValues(this._def.values))),!wo(this,Rr).has(t.data)){const r=me.objectValues(n);return z(s,{received:s.data,code:M.invalid_enum_value,options:r}),se}return rt(t.data)}get enum(){return this._def.values}}Rr=new WeakMap;si.create=(e,t)=>new si({values:e,typeName:te.ZodNativeEnum,...oe(t)});class or extends le{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==W.promise&&n.common.async===!1)return z(n,{code:M.invalid_type,expected:W.promise,received:n.parsedType}),se;const s=n.parsedType===W.promise?n.data:Promise.resolve(n.data);return rt(s.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}}or.create=(e,t)=>new or({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"?Ds(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"?Ds(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(!gs(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=>gs(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)===W.undefined?rt(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 $n extends le{_parse(t){return this._getType(t)===W.null?rt(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}$n.create=(e,t)=>new $n({innerType:e,typeName:te.ZodNullable,...oe(t)});class ri extends le{_parse(t){const{ctx:n}=this._processInputParams(t);let s=n.data;return n.parsedType===W.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ri.create=(e,t)=>new ri({innerType:e,typeName:te.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...oe(t)});class ii 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 Kr(r)?r.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new xt(s.common.issues)},input:s.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new xt(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}ii.create=(e,t)=>new ii({innerType:e,typeName:te.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...oe(t)});class Co extends le{_parse(t){if(this._getType(t)!==W.nan){const s=this._getOrReturnCtx(t);return z(s,{code:M.invalid_type,expected:W.nan,received:s.parsedType}),se}return{status:"valid",value:t.data}}}Co.create=e=>new Co({typeName:te.ZodNaN,...oe(e)});const aA=Symbol("zod_brand");class Yl 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(),Ds(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 oi extends le{_parse(t){const n=this._def.innerType._parse(t),s=r=>(gs(r)&&(r.value=Object.freeze(r.value)),r);return Kr(n)?n.then(r=>s(r)):s(n)}unwrap(){return this._def.innerType}}oi.create=(e,t)=>new oi({innerType:e,typeName:te.ZodReadonly,...oe(t)});function ty(e,t={},n){return e?ir.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})}}):ir.create()}const cA={object:Ee.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 lA=(e,t={message:`Input not instance of ${e.name}`})=>ty(n=>n instanceof e,t),ny=Dt.create,sy=Vn.create,uA=Co.create,dA=Bn.create,ry=Gr.create,fA=ys.create,hA=So.create,pA=Qr.create,mA=Xr.create,gA=ir.create,yA=ds.create,vA=xn.create,xA=_o.create,bA=Mt.create,wA=Ee.create,SA=Ee.strictCreate,_A=Yr.create,TA=Zo.create,CA=Jr.create,EA=on.create,AA=ei.create,PA=To.create,RA=vs.create,kA=Is.create,NA=ti.create,OA=ni.create,jA=Un.create,DA=si.create,MA=or.create,Cf=Vt.create,FA=nn.create,LA=$n.create,IA=Vt.createWithPreprocess,VA=Ci.create,BA=()=>ny().optional(),UA=()=>sy().optional(),$A=()=>ry().optional(),zA={string:e=>Dt.create({...e,coerce:!0}),number:e=>Vn.create({...e,coerce:!0}),boolean:e=>Gr.create({...e,coerce:!0}),bigint:e=>Bn.create({...e,coerce:!0}),date:e=>ys.create({...e,coerce:!0})},WA=se;var Ef=Object.freeze({__proto__:null,defaultErrorMap:rr,setErrorMap:IE,getErrorMap:xo,makeIssue:bo,EMPTY_PATH:VE,addIssueToContext:z,ParseStatus:Xe,INVALID:se,DIRTY:Ds,OK:rt,isAborted:pc,isDirty:mc,isValid:gs,isAsync:Kr,get util(){return me},get objectUtil(){return hc},ZodParsedType:W,getParsedType:fn,ZodType:le,datetimeRegex:Jg,ZodString:Dt,ZodNumber:Vn,ZodBigInt:Bn,ZodBoolean:Gr,ZodDate:ys,ZodSymbol:So,ZodUndefined:Qr,ZodNull:Xr,ZodAny:ir,ZodUnknown:ds,ZodNever:xn,ZodVoid:_o,ZodArray:Mt,ZodObject:Ee,ZodUnion:Yr,ZodDiscriminatedUnion:Zo,ZodIntersection:Jr,ZodTuple:on,ZodRecord:ei,ZodMap:To,ZodSet:vs,ZodFunction:Is,ZodLazy:ti,ZodLiteral:ni,ZodEnum:Un,ZodNativeEnum:si,ZodPromise:or,ZodEffects:Vt,ZodTransformer:Vt,ZodOptional:nn,ZodNullable:$n,ZodDefault:ri,ZodCatch:ii,ZodNaN:Co,BRAND:aA,ZodBranded:Yl,ZodPipeline:Ci,ZodReadonly:oi,custom:ty,Schema:le,ZodSchema:le,late:cA,get ZodFirstPartyTypeKind(){return te},coerce:zA,any:gA,array:bA,bigint:dA,boolean:ry,date:fA,discriminatedUnion:TA,effect:Cf,enum:jA,function:kA,instanceof:lA,intersection:CA,lazy:NA,literal:OA,map:PA,nan:uA,nativeEnum:DA,never:vA,null:mA,nullable:LA,number:sy,object:wA,oboolean:$A,onumber:UA,optional:FA,ostring:BA,pipeline:VA,preprocess:IA,promise:MA,record:AA,set:RA,strictObject:SA,string:ny,symbol:hA,transformer:Cf,tuple:EA,undefined:pA,union:_A,unknown:yA,void:xA,NEVER:WA,ZodIssueCode:M,quotelessJson:LE,ZodError:xt});const Na=(e,t)=>Ce(s=>s.lang)==="ru"?e:t;function iy(e,t){return function(){return e.apply(t,arguments)}}const{toString:HA}=Object.prototype,{getPrototypeOf:Jl}=Object,Ko=(e=>t=>{const n=HA.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),$t=e=>(e=e.toLowerCase(),t=>Ko(t)===e),Go=e=>t=>typeof t===e,{isArray:pr}=Array,ai=Go("undefined");function qA(e){return e!==null&&!ai(e)&&e.constructor!==null&&!ai(e.constructor)&&bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const oy=$t("ArrayBuffer");function ZA(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&oy(e.buffer),t}const KA=Go("string"),bt=Go("function"),ay=Go("number"),Qo=e=>e!==null&&typeof e=="object",GA=e=>e===!0||e===!1,Ji=e=>{if(Ko(e)!=="object")return!1;const t=Jl(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},QA=$t("Date"),XA=$t("File"),YA=$t("Blob"),JA=$t("FileList"),eP=e=>Qo(e)&&bt(e.pipe),tP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||bt(e.append)&&((t=Ko(e))==="formdata"||t==="object"&&bt(e.toString)&&e.toString()==="[object FormData]"))},nP=$t("URLSearchParams"),[sP,rP,iP,oP]=["ReadableStream","Request","Response","Headers"].map($t),aP=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]),pr(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 cy(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 es=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ly=e=>!ai(e)&&e!==es;function yc(){const{caseless:e}=ly(this)&&this||{},t={},n=(s,r)=>{const i=e&&cy(t,r)||r;Ji(t[i])&&Ji(s)?t[i]=yc(t[i],s):Ji(s)?t[i]=yc({},s):pr(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 cP=(e,t,n,{allOwnKeys:s}={})=>(Ei(t,(r,i)=>{n&&bt(r)?e[i]=iy(r,n):e[i]=r},{allOwnKeys:s}),e),lP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uP=(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)},dP=(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&&Jl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},fP=(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},hP=e=>{if(!e)return null;if(pr(e))return e;let t=e.length;if(!ay(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},pP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Jl(Uint8Array)),mP=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},gP=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},yP=$t("HTMLFormElement"),vP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Af=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),xP=$t("RegExp"),uy=(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)},bP=e=>{uy(e,(t,n)=>{if(bt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(bt(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+"'")})}})},wP=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return pr(e)?s(e):s(String(e).split(t)),n},SP=()=>{},_P=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Oa="abcdefghijklmnopqrstuvwxyz",Pf="0123456789",dy={DIGIT:Pf,ALPHA:Oa,ALPHA_DIGIT:Oa+Oa.toUpperCase()+Pf},TP=(e=16,t=dy.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function CP(e){return!!(e&&bt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const EP=e=>{const t=new Array(10),n=(s,r)=>{if(Qo(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=pr(s)?[]:{};return Ei(s,(o,a)=>{const c=n(o,r+1);!ai(c)&&(i[a]=c)}),t[r]=void 0,i}}return s};return n(e,0)},AP=$t("AsyncFunction"),PP=e=>e&&(Qo(e)||bt(e))&&bt(e.then)&&bt(e.catch),fy=((e,t)=>e?setImmediate:t?((n,s)=>(es.addEventListener("message",({source:r,data:i})=>{r===es&&i===n&&s.length&&s.shift()()},!1),r=>{s.push(r),es.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",bt(es.postMessage)),RP=typeof queueMicrotask<"u"?queueMicrotask.bind(es):typeof process<"u"&&process.nextTick||fy,k={isArray:pr,isArrayBuffer:oy,isBuffer:qA,isFormData:tP,isArrayBufferView:ZA,isString:KA,isNumber:ay,isBoolean:GA,isObject:Qo,isPlainObject:Ji,isReadableStream:sP,isRequest:rP,isResponse:iP,isHeaders:oP,isUndefined:ai,isDate:QA,isFile:XA,isBlob:YA,isRegExp:xP,isFunction:bt,isStream:eP,isURLSearchParams:nP,isTypedArray:pP,isFileList:JA,forEach:Ei,merge:yc,extend:cP,trim:aP,stripBOM:lP,inherits:uP,toFlatObject:dP,kindOf:Ko,kindOfTest:$t,endsWith:fP,toArray:hP,forEachEntry:mP,matchAll:gP,isHTMLForm:yP,hasOwnProperty:Af,hasOwnProp:Af,reduceDescriptors:uy,freezeMethods:bP,toObjectSet:wP,toCamelCase:vP,noop:SP,toFiniteNumber:_P,findKey:cy,global:es,isContextDefined:ly,ALPHABET:dy,generateString:TP,isSpecCompliantForm:CP,toJSONObject:EP,isAsyncFn:AP,isThenable:PP,setImmediate:fy,asap:RP};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)}k.inherits(ie,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.status}}});const hy=ie.prototype,py={};["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=>{py[e]={value:e}});Object.defineProperties(ie,py);Object.defineProperty(hy,"isAxiosError",{value:!0});ie.from=(e,t,n,s,r,i)=>{const o=Object.create(hy);return k.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 kP=null;function vc(e){return k.isPlainObject(e)||k.isArray(e)}function my(e){return k.endsWith(e,"[]")?e.slice(0,-2):e}function Rf(e,t,n){return e?e.concat(t).map(function(r,i){return r=my(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function NP(e){return k.isArray(e)&&!e.some(vc)}const OP=k.toFlatObject(k,{},null,function(t){return/^is[A-Z]/.test(t)});function Xo(e,t,n){if(!k.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=k.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!k.isUndefined(y[h])});const s=n.metaTokens,r=n.visitor||u,i=n.dots,o=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(t);if(!k.isFunction(r))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(k.isDate(m))return m.toISOString();if(!c&&k.isBlob(m))throw new ie("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(m)||k.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,h,y){let v=m;if(m&&!y&&typeof m=="object"){if(k.endsWith(h,"{}"))h=s?h:h.slice(0,-2),m=JSON.stringify(m);else if(k.isArray(m)&&NP(m)||(k.isFileList(m)||k.endsWith(h,"[]"))&&(v=k.toArray(m)))return h=my(h),v.forEach(function(w,T){!(k.isUndefined(w)||w===null)&&t.append(o===!0?Rf([h],T,i):o===null?h:h+"[]",l(w))}),!1}return vc(m)?!0:(t.append(Rf(y,h,i),l(m)),!1)}const d=[],f=Object.assign(OP,{defaultVisitor:u,convertValue:l,isVisitable:vc});function g(m,h){if(!k.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));d.push(m),k.forEach(m,function(v,b){(!(k.isUndefined(v)||v===null)&&r.call(t,v,k.isString(b)?b.trim():b,h,f))===!0&&g(v,h?h.concat(b):[b])}),d.pop()}}if(!k.isObject(e))throw new TypeError("data must be an object");return g(e),t}function kf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function eu(e,t){this._pairs=[],e&&Xo(e,this,t)}const gy=eu.prototype;gy.append=function(t,n){this._pairs.push([t,n])};gy.toString=function(t){const n=t?function(s){return t.call(this,s,kf)}:kf;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function jP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function yy(e,t,n){if(!t)return e;const s=n&&n.encode||jP;k.isFunction(n)&&(n={serialize:n});const r=n&&n.serialize;let i;if(r?i=r(t,n):i=k.isURLSearchParams(t)?t.toString():new eu(t,n).toString(s),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Nf{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){k.forEach(this.handlers,function(s){s!==null&&t(s)})}}const vy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},DP=typeof URLSearchParams<"u"?URLSearchParams:eu,MP=typeof FormData<"u"?FormData:null,FP=typeof Blob<"u"?Blob:null,LP={isBrowser:!0,classes:{URLSearchParams:DP,FormData:MP,Blob:FP},protocols:["http","https","file","blob","url","data"]},tu=typeof window<"u"&&typeof document<"u",xc=typeof navigator=="object"&&navigator||void 0,IP=tu&&(!xc||["ReactNative","NativeScript","NS"].indexOf(xc.product)<0),VP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BP=tu&&window.location.href||"http://localhost",UP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tu,hasStandardBrowserEnv:IP,hasStandardBrowserWebWorkerEnv:VP,navigator:xc,origin:BP},Symbol.toStringTag,{value:"Module"})),Ge={...UP,...LP};function $P(e,t){return Xo(e,new Ge.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return Ge.isNode&&k.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function zP(e){return k.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function WP(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 xy(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&&k.isArray(r)?r.length:o,c?(k.hasOwnProp(r,o)?r[o]=[r[o],s]:r[o]=s,!a):((!r[o]||!k.isObject(r[o]))&&(r[o]=[]),t(n,s,r[o],i)&&k.isArray(r[o])&&(r[o]=WP(r[o])),!a)}if(k.isFormData(e)&&k.isFunction(e.entries)){const n={};return k.forEachEntry(e,(s,r)=>{t(zP(s),r,n,0)}),n}return null}function HP(e,t,n){if(k.isString(e))try{return(t||JSON.parse)(e),k.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(0,JSON.stringify)(e)}const Ai={transitional:vy,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=k.isObject(t);if(i&&k.isHTMLForm(t)&&(t=new FormData(t)),k.isFormData(t))return r?JSON.stringify(xy(t)):t;if(k.isArrayBuffer(t)||k.isBuffer(t)||k.isStream(t)||k.isFile(t)||k.isBlob(t)||k.isReadableStream(t))return t;if(k.isArrayBufferView(t))return t.buffer;if(k.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return $P(t,this.formSerializer).toString();if((a=k.isFileList(t))||s.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Xo(a?{"files[]":t}:t,c&&new c,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),HP(t)):t}],transformResponse:[function(t){const n=this.transitional||Ai.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(k.isResponse(t)||k.isReadableStream(t))return t;if(t&&k.isString(t)&&(s&&!this.responseType||r)){const o=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?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:Ge.classes.FormData,Blob:Ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};k.forEach(["delete","get","head","post","put","patch"],e=>{Ai.headers[e]={}});const qP=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZP=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]&&qP[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},Of=Symbol("internals");function Tr(e){return e&&String(e).trim().toLowerCase()}function eo(e){return e===!1||e==null?e:k.isArray(e)?e.map(eo):String(e)}function KP(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 GP=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ja(e,t,n,s,r){if(k.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!k.isString(t)){if(k.isString(s))return t.indexOf(s)!==-1;if(k.isRegExp(s))return s.test(t)}}function QP(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function XP(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,o){return this[s].call(this,t,r,i,o)},configurable:!0})})}class ft{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(a,c,l){const u=Tr(c);if(!u)throw new Error("header name must be a non-empty string");const d=k.findKey(r,u);(!d||r[d]===void 0||l===!0||l===void 0&&r[d]!==!1)&&(r[d||c]=eo(a))}const o=(a,c)=>k.forEach(a,(l,u)=>i(l,u,c));if(k.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(k.isString(t)&&(t=t.trim())&&!GP(t))o(ZP(t),n);else if(k.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=Tr(t),t){const s=k.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return KP(r);if(k.isFunction(n))return n.call(this,r,s);if(k.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Tr(t),t){const s=k.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||ja(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(o){if(o=Tr(o),o){const a=k.findKey(s,o);a&&(!n||ja(s,s[a],a,n))&&(delete s[a],r=!0)}}return k.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||ja(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return k.forEach(this,(r,i)=>{const o=k.findKey(s,i);if(o){n[o]=eo(r),delete n[i];return}const a=t?QP(i):String(i).trim();a!==i&&delete n[i],n[a]=eo(r),s[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&k.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[Of]=this[Of]={accessors:{}}).accessors,r=this.prototype;function i(o){const a=Tr(o);s[a]||(XP(r,o),s[a]=!0)}return k.isArray(t)?t.forEach(i):i(t),this}}ft.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.reduceDescriptors(ft.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});k.freezeMethods(ft);function Da(e,t){const n=this||Ai,s=t||n,r=ft.from(s.headers);let i=s.data;return k.forEach(e,function(a){i=a.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function by(e){return!!(e&&e.__CANCEL__)}function mr(e,t,n){ie.call(this,e??"canceled",ie.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(mr,ie,{__CANCEL__:!0});function wy(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 YP(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function JP(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 eR(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 Eo=(e,t,n=3)=>{let s=0;const r=JP(50,250);return eR(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)},jf=(e,t)=>{const n=e!=null;return[s=>t[0]({lengthComputable:n,total:e,loaded:s}),t[1]]},Df=e=>(...t)=>k.asap(()=>e(...t)),tR=Ge.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ge.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ge.origin),Ge.navigator&&/(msie|trident)/i.test(Ge.navigator.userAgent)):()=>!0,nR=Ge.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const o=[e+"="+encodeURIComponent(t)];k.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),k.isString(s)&&o.push("path="+s),k.isString(r)&&o.push("domain="+r),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function sR(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rR(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Sy(e,t){return e&&!sR(t)?rR(e,t):t}const Mf=e=>e instanceof ft?{...e}:e;function xs(e,t){t=t||{};const n={};function s(l,u,d,f){return k.isPlainObject(l)&&k.isPlainObject(u)?k.merge.call({caseless:f},l,u):k.isPlainObject(u)?k.merge({},u):k.isArray(u)?u.slice():u}function r(l,u,d,f){if(k.isUndefined(u)){if(!k.isUndefined(l))return s(void 0,l,d,f)}else return s(l,u,d,f)}function i(l,u){if(!k.isUndefined(u))return s(void 0,u)}function o(l,u){if(k.isUndefined(u)){if(!k.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(Mf(l),Mf(u),d,!0)};return k.forEach(Object.keys(Object.assign({},e,t)),function(u){const d=c[u]||r,f=d(e[u],t[u],u);k.isUndefined(f)&&d!==a||(n[u]=f)}),n}const _y=e=>{const t=xs({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:o,auth:a}=t;t.headers=o=ft.from(o),t.url=yy(Sy(t.baseURL,t.url),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(k.isFormData(n)){if(Ge.hasStandardBrowserEnv||Ge.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(Ge.hasStandardBrowserEnv&&(s&&k.isFunction(s)&&(s=s(t)),s||s!==!1&&tR(t.url))){const l=r&&i&&nR.read(i);l&&o.set(r,l)}return t},iR=typeof XMLHttpRequest<"u",oR=iR&&function(e){return new Promise(function(n,s){const r=_y(e);let i=r.data;const o=ft.from(r.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:l}=r,u,d,f,g,m;function h(){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=ft.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};wy(function(P){n(P),h()},function(P){s(P),h()},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||vy;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&&k.forEach(o.toJSON(),function(T,S){y.setRequestHeader(S,T)}),k.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),a&&a!=="json"&&(y.responseType=r.responseType),l&&([f,m]=Eo(l,!0),y.addEventListener("progress",f)),c&&y.upload&&([d,g]=Eo(c),y.upload.addEventListener("progress",d),y.upload.addEventListener("loadend",g)),(r.cancelToken||r.signal)&&(u=w=>{y&&(s(!w||w.type?new mr(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=YP(r.url);if(b&&Ge.protocols.indexOf(b)===-1){s(new ie("Unsupported protocol "+b+":",ie.ERR_BAD_REQUEST,e));return}y.send(i||null)})},aR=(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 mr(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=()=>k.asap(a),c}},cR=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},lR=async function*(e,t){for await(const n of uR(e))yield*cR(n,t)},uR=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()}},Ff=(e,t,n,s)=>{const r=lR(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})},Yo=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ty=Yo&&typeof ReadableStream=="function",dR=Yo&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Cy=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fR=Ty&&Cy(()=>{let e=!1;const t=new Request(Ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Lf=64*1024,bc=Ty&&Cy(()=>k.isReadableStream(new Response("").body)),Ao={stream:bc&&(e=>e.body)};Yo&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ao[t]&&(Ao[t]=k.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 hR=async e=>{if(e==null)return 0;if(k.isBlob(e))return e.size;if(k.isSpecCompliantForm(e))return(await new Request(Ge.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(k.isArrayBufferView(e)||k.isArrayBuffer(e))return e.byteLength;if(k.isURLSearchParams(e)&&(e=e+""),k.isString(e))return(await dR(e)).byteLength},pR=async(e,t)=>{const n=k.toFiniteNumber(e.getContentLength());return n??hR(t)},mR=Yo&&(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}=_y(e);l=l?(l+"").toLowerCase():"text";let g=aR([r,i&&i.toAbortSignal()],o),m;const h=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let y;try{if(c&&fR&&n!=="get"&&n!=="head"&&(y=await pR(u,s))!==0){let S=new Request(t,{method:"POST",body:s,duplex:"half"}),A;if(k.isFormData(s)&&(A=S.headers.get("content-type"))&&u.setContentType(A),S.body){const[P,E]=jf(y,Eo(Df(c)));s=Ff(S.body,Lf,P,E)}}k.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=bc&&(l==="stream"||l==="response");if(bc&&(a||w&&h)){const S={};["status","statusText","headers"].forEach(O=>{S[O]=b[O]});const A=k.toFiniteNumber(b.headers.get("content-length")),[P,E]=a&&jf(A,Eo(Df(a),!0))||[];b=new Response(Ff(b.body,Lf,P,()=>{E&&E(),h&&h()}),S)}l=l||"text";let T=await Ao[k.findKey(Ao,l)||"text"](b,e);return!w&&h&&h(),await new Promise((S,A)=>{wy(S,A,{data:T,headers:ft.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:m})})}catch(v){throw h&&h(),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)}}),wc={http:kP,xhr:oR,fetch:mR};k.forEach(wc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const If=e=>`- ${e}`,gR=e=>k.isFunction(e)||e===null||e===!1,Ey={getAdapter:e=>{e=k.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,!gR(n)&&(s=wc[(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(If).join(`
`):" "+If(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:wc};function Ma(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function Vf(e){return Ma(e),e.headers=ft.from(e.headers),e.data=Da.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ey.getAdapter(e.adapter||Ai.adapter)(e).then(function(s){return Ma(e),s.data=Da.call(e,e.transformResponse,s),s.headers=ft.from(s.headers),s},function(s){return by(s)||(Ma(e),s&&s.response&&(s.response.data=Da.call(e,e.transformResponse,s.response),s.response.headers=ft.from(s.response.headers))),Promise.reject(s)})}const Ay="1.7.9",Jo={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Jo[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const Bf={};Jo.transitional=function(t,n,s){function r(i,o){return"[Axios v"+Ay+"] 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&&!Bf[o]&&(Bf[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}};Jo.spelling=function(t){return(n,s)=>(console.warn(`${s} is likely a misspelling of ${t}`),!0)};function yR(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 to={assertOptions:yR,validators:Jo},Ht=to.validators;class fs{constructor(t){this.defaults=t,this.interceptors={request:new Nf,response:new Nf}}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=xs(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&to.assertOptions(s,{silentJSONParsing:Ht.transitional(Ht.boolean),forcedJSONParsing:Ht.transitional(Ht.boolean),clarifyTimeoutError:Ht.transitional(Ht.boolean)},!1),r!=null&&(k.isFunction(r)?n.paramsSerializer={serialize:r}:to.assertOptions(r,{encode:Ht.function,serialize:Ht.function},!0)),to.assertOptions(n,{baseUrl:Ht.spelling("baseURL"),withXsrfToken:Ht.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&k.merge(i.common,i[n.method]);i&&k.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=ft.concat(o,i);const a=[];let c=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(c=c&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const l=[];this.interceptors.response.forEach(function(h){l.push(h.fulfilled,h.rejected)});let u,d=0,f;if(!c){const m=[Vf.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++],h=a[d++];try{g=m(g)}catch(y){h.call(this,y);break}}try{u=Vf.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=xs(this.defaults,t);const n=Sy(t.baseURL,t.url);return yy(n,t.params,t.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(t){fs.prototype[t]=function(n,s){return this.request(xs(s||{},{method:t,url:n,data:(s||{}).data}))}});k.forEach(["post","put","patch"],function(t){function n(s){return function(i,o,a){return this.request(xs(a||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}fs.prototype[t]=n(),fs.prototype[t+"Form"]=n(!0)});class nu{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 mr(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 nu(function(r){t=r}),cancel:t}}}function vR(e){return function(n){return e.apply(null,n)}}function xR(e){return k.isObject(e)&&e.isAxiosError===!0}const Sc={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(Sc).forEach(([e,t])=>{Sc[t]=e});function Py(e){const t=new fs(e),n=iy(fs.prototype.request,t);return k.extend(n,fs.prototype,t,{allOwnKeys:!0}),k.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return Py(xs(e,r))},n}const Ve=Py(Ai);Ve.Axios=fs;Ve.CanceledError=mr;Ve.CancelToken=nu;Ve.isCancel=by;Ve.VERSION=Ay;Ve.toFormData=Xo;Ve.AxiosError=ie;Ve.Cancel=Ve.CanceledError;Ve.all=function(t){return Promise.all(t)};Ve.spread=vR;Ve.isAxiosError=xR;Ve.mergeConfig=xs;Ve.AxiosHeaders=ft;Ve.formToJSON=e=>xy(k.isHTMLForm(e)?new FormData(e):e);Ve.getAdapter=Ey.getAdapter;Ve.HttpStatusCode=Sc;Ve.default=Ve;const ot=Ve.create({baseURL:"https://turkmentextile.turkmenexpo.com/app/api/v1/"}),v1=async e=>(await ot.post("book_stand_form",e)).status===201,x1=async e=>(await ot.post("become_sponsor_form",e)).status===201,b1=async e=>(await ot.post("contact_form",e)).status===201,bR=async e=>(await ot.post("subscribe_news_form",e)).status===201,wR=async(e,t)=>ot.get(`pages/${t}`,{headers:{"Accept-Language":e}}),SR=async e=>ot.get("stats",{headers:{"Accept-Language":e}}),_R=async e=>ot.get("contact_data",{headers:{"Accept-Language":e}}),TR=async e=>ot.get("industries",{headers:{"Accept-Language":e}}),CR=async e=>ot.get("exhibition_time",{headers:{"Accept-Language":e}}),w1=async e=>ot.get("news",{headers:{"Accept-Language":e}}),S1=async(e,t)=>ot.get(`news/${e}`,{headers:{"Accept-Language":t}}),_1=async e=>ot("participants",{headers:{"Accept-Language":e}}),ER=async e=>ot("photos/category/"+e),AR=async e=>ot("videos/category/"+e),PR=async e=>ot("sponsors_and_partners",{headers:{"Accept-Language":e}}),RR=Ef.object({email:Ef.string().email()}),Ry=({modal:e=!1})=>{var i,o;const[t,n]=x.useState(!1),s=ZT({resolver:FE(RR),defaultValues:{email:""}});async function r(a){try{const c=await bR(a);s.reset(),n(c)}catch(c){console.error("POST subscribe",c)}}return p.jsx("form",{onSubmit:s.handleSubmit(r),className:K("py-8",e?"max-w-[392px] mx-auto":"bg-surface_container"),children:p.jsxs(Ye,{className:K("flex gap-8 justify-between",e?"flex-col w-full":"lg:flex-row flex-col lg:items-center"),children:[p.jsx("h2",{className:"h2 !text-left",children:Na("Подпишитесь на новости:","Subscribe to the news:")}),p.jsxs("div",{className:"relative",children:[p.jsx("input",{...s.register("email"),placeholder:"Email",className:K("input",{"w-full":e,"xl:w-[392px] lg:w-[320px] w-full":!e})}),p.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})]}),p.jsx(ht,{loading:s.formState.isSubmitting,disabled:t,className:K({"xl:w-[288px] lg:w-[220px] w-full":!e,"w-full":e}),children:t?Na("Отправлено","Submitted"):Na("Подписаться","Subscribe")})]})})},kR=({className:e,title:t})=>p.jsxs(PE,{children:[p.jsx(RE,{className:K("h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",e),children:t}),p.jsx(Zg,{children:p.jsx(Ry,{className:"",modal:!0})})]}),_c=Hg()(e=>({sheet:!1,popover:!1,modal:!1,setModal:t=>e({modal:t}),setSheet:t=>e({sheet:t}),setPopover:t=>e({popover:t})})),Tc=({title:e,dropDownContent:t,color:n,triggerClassName:s})=>{const[r,i]=x.useState(!1),o=_c(a=>a.setSheet);return p.jsxs(zg,{open:r,onOpenChange:()=>i(!r),children:[p.jsxs(Wg,{className:K("flex items-center gap-2",s),children:[e,p.jsx(NR,{color:n})]}),p.jsx(Xl,{className:"w-fit px-0 py-2 cursor-pointer bg-surface_container",children:t&&t.map(a=>a.link?p.jsxs(Ne,{onClick:()=>{i(!1),o(!1)},className:"h-14 px-3 flex gap-3 items-center hover:bg-slate-300/50 transition-all",target:a.blank??"",to:a.link,children:[a.text,a.blank&&p.jsx("img",{src:"/pdf.svg"})]},a.text):a.modal?p.jsx(kR,{title:a.text},a.text):p.jsx("div",{className:"h-14 px-3 flex items-center hover:bg-slate-300/50 transition-all",onClick:()=>{i(!1),o(!1)},children:a.text},a.text))})]})},NR=({color:e="white"})=>p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.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})}),_s=({className:e})=>p.jsx(Ye,{className:K("w-full py-20 h-full flex items-center justify-between",e),children:p.jsx(Gh,{className:"animate-spin mx-auto text-primary size-16"})});function OR(e){return Object.prototype.toString.call(e)==="[object Object]"}function Uf(e){return OR(e)||Array.isArray(e)}function jR(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function su(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}`:!Uf(a)||!Uf(c)?a===c:su(a,c)})}function $f(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function DR(e,t){if(e.length!==t.length)return!1;const n=$f(e),s=$f(t);return n.every((r,i)=>{const o=s[i];return su(r,o)})}function ru(e){return typeof e=="number"}function Cc(e){return typeof e=="string"}function ea(e){return typeof e=="boolean"}function zf(e){return Object.prototype.toString.call(e)==="[object Object]"}function Pe(e){return Math.abs(e)}function iu(e){return Math.sign(e)}function Vr(e,t){return Pe(e-t)}function MR(e,t){if(e===0||t===0||Pe(e)<=Pe(t))return 0;const n=Vr(Pe(e),Pe(t));return Pe(n/e)}function FR(e){return Math.round(e*100)/100}function ci(e){return li(e).map(Number)}function Ft(e){return e[Pi(e)]}function Pi(e){return Math.max(0,e.length-1)}function ou(e,t){return t===Pi(e)}function Wf(e,t=0){return Array.from(Array(e),(n,s)=>t+s)}function li(e){return Object.keys(e)}function ky(e,t){return[e,t].reduce((n,s)=>(li(s).forEach(r=>{const i=n[r],o=s[r],a=zf(i)&&zf(o);n[r]=a?ky(i,o):o}),n),{})}function Ec(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function LR(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 Cc(e)?n[e](c):e(t,c,l)}return{measure:o}}function ui(){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 IR(e,t,n,s){const r=ui(),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 VR(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:h,width:y}=m;return s?h: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 bs(e=0,t=0){const n=Pe(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 Ny(e,t,n){const{constrain:s}=bs(0,e),r=e+1;let i=o(t);function o(f){return n?Pe((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 Ny(e,a(),n)}const d={get:a,set:c,add:l,clone:u};return d}function BR(e,t,n,s,r,i,o,a,c,l,u,d,f,g,m,h,y,v,b){const{cross:w,direction:T}=e,S=["INPUT","SELECT","TEXTAREA"],A={passive:!1},P=ui(),E=ui(),O=bs(50,225).constrain(g.measure(20)),D={mouse:300,touch:400},L={mouse:500,touch:600},j=m?43:25;let $=!1,I=0,J=0,X=!1,H=!1,q=!1,re=!1;function de(G){if(!b)return;function fe($e){(ea(b)||b(G,$e))&&Je($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",Oe,!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 He(G){const fe=G.nodeName||"";return S.includes(fe)}function qe(){return(m?L:D)[re?"mouse":"touch"]}function Pt(G,fe){const Se=d.add(iu(G)*-1),$e=u.byDistance(G,!m).distance;return m||Pe(G)<O?$e:y&&fe?$e*.5:u.byIndex(Se.get(),0).distance}function Je(G){const fe=Ec(G,s);re=fe,q=m&&fe&&!G.buttons&&$,$=Vr(r.get(),o.get())>=2,!(fe&&G.button!==0)&&(He(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(!Ec(G,s)&&G.touches.length>=2)return ye(G);const Se=i.readPoint(G),$e=i.readPoint(G,w),pt=Vr(Se,I),wt=Vr($e,J);if(!H&&!re&&(!G.cancelable||(H=pt>wt,!H)))return ye(G);const _=i.pointerMove(G);pt>h&&(q=!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)*qe(),pt=Pt(T($e),Se),wt=MR($e,pt),_=j-10*wt,R=v+wt/50;H=!1,X=!1,E.clear(),l.useDuration(_).useFriction(R),c.distance(pt,!m),re=!1,f.emit("pointerUp")}function Oe(G){q&&(G.stopPropagation(),G.preventDefault(),q=!1)}function Le(){return X}return{init:de,destroy:ge,pointerDown:Le}}function UR(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(Ec(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,h=f/g;return g&&!m&&Pe(h)>.1?h:0}return{pointerDown:a,pointerMove:c,pointerUp:l,readPoint:o}}function $R(){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 zR(e){function t(s){return e*(s/100)}return{measure:t}}function WR(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(Pe(P-A)>=.5){y.reInit(),t.emit("resize");break}}}c=new ResizeObserver(b=>{(ea(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 HR(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=iu(E),d=u,S}function g(){const A=s.get()-t.get();return Pe(A)<.001}function m(){return c}function h(){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:h,duration:m,velocity:y,seek:f,settled:g,useBaseFriction:b,useBaseDuration:v,useFriction:T,useDuration:w};return S}function qR(e,t,n,s,r){const i=r.measure(10),o=r.measure(50),a=bs(.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",h=Pe(e[m]-t.get()),y=n.get()-t.get(),v=a.constrain(h/o);n.subtract(y*v),!g&&Pe(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 ZR(e,t,n,s,r){const i=bs(-t+e,0),o=d(),a=u(),c=f();function l(m,h){return Vr(m,h)<=1}function u(){const m=o[0],h=Ft(o),y=o.lastIndexOf(m),v=o.indexOf(h)+1;return bs(y,v)}function d(){return n.map((m,h)=>{const{min:y,max:v}=i,b=i.constrain(m),w=!h,T=ou(n,h);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:h}=a;return o.slice(m,h)}return{snapsContained:c,scrollContainLimit:a}}function KR(e,t,n){const s=t[0],r=n?s-e:Ft(t);return{limit:bs(r,s)}}function GR(e,t,n,s){const i=t.min+.1,o=t.max+.1,{reachedMin:a,reachedMax:c}=bs(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 QR(e){const{max:t,length:n}=e;function s(i){const o=i-t;return n?o/-n:0}return{get:s}}function XR(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(h=>Ft(h)[o]-h[0][i]).map(Pe)}function f(){return s.map(h=>n[i]-h[i]).map(h=>-Pe(h))}function g(){return a(l).map(h=>h[0]).map((h,y)=>h+c[y])}return{snaps:l,snapsAligned:u}}function YR(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,h,y)=>{const v=!h,b=ou(y,h);if(v){const w=Ft(y[0])+1;return Wf(w)}if(b){const w=Pi(i)-Ft(y)[0]+1;return Wf(w,Ft(y)[0])}return m})}return{slideRegistry:l}}function JR(e,t,n,s,r){const{reachedAny:i,removeOffset:o,constrain:a}=s;function c(m){return m.concat().sort((h,y)=>Pe(h)-Pe(y))[0]}function l(m){const h=e?o(m):a(m),y=t.map((b,w)=>({diff:u(b-h,0),index:w})).sort((b,w)=>Pe(b.diff)-Pe(w.diff)),{index:v}=y[0];return{index:v,distance:h}}function u(m,h){const y=[m,m+n,m-n];if(!e)return m;if(!h)return c(y);const v=y.filter(b=>iu(b)===h);return v.length?c(v):Ft(y)-n}function d(m,h){const y=t[m]-r.get(),v=u(y,h);return{index:m,distance:v}}function f(m,h){const y=r.get()+m,{index:v,distance:b}=l(y),w=!e&&i(y);if(!h||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 ek(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 tk(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(h){if(new Date().getTime()-l>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;const b=n.findIndex(w=>w.includes(h));ru(b)&&(r.useDuration(0),s.index(b,0),o.emit("slideFocus"))}i.add(document,"keydown",d,!1),t.forEach((h,y)=>{i.add(h,"focus",v=>{(ea(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 ru(c)?c:c.get()}return{get:n,set:s,add:r,subtract:i}}function Oy(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=FR(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 nk(e,t,n,s,r,i,o,a,c){const u=ci(r),d=ci(r).reverse(),f=v().concat(b());function g(P,E){return P.reduce((O,D)=>O-r[D],E)}function m(P,E){return P.reduce((O,D)=>g(O,E)>0?O.concat([D]):O,[])}function h(P){return i.map((E,O)=>({start:E-s[O]+.5+P,end:E+t-.5+P}))}function y(P,E,O){const D=h(E);return P.map(L=>{const j=O?0:-n,$=O?n:0,I=O?"end":"start",J=D[L][I];return{index:L,loopPoint:J,slideLocation:kr(-1),translate:Oy(e,c[L]),target:()=>a.get()>J?j:$}})}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(O=>O!==P);return g(E,t)<=.1})}function T(){f.forEach(P=>{const{target:E,translate:O,slideLocation:D}=P,L=E();L!==D.get()&&(O.to(L),D.set(L))})}function S(){f.forEach(P=>P.translate.clear())}return{canLoop:w,clear:S,loop:T,loopPoints:f}}function sk(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||(ea(n)||n(c,u))&&l(u)}),s.observe(e,{childList:!0})}function o(){s&&s.disconnect(),r=!0}return{init:i,destroy:o}}function rk(e,t,n,s){const r={};let i=null,o=null,a,c=!1;function l(){a=new IntersectionObserver(m=>{c||(m.forEach(h=>{const y=t.indexOf(h.target);r[y]=h}),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 li(r).reduce((h,y)=>{const v=parseInt(y),{isIntersecting:b}=r[v];return(m&&b||!m&&!b)&&h.push(v),h},[])}function f(m=!0){if(m&&i)return i;if(!m&&o)return o;const h=d(m);return m&&(i=h),m||(o=h),h}return{init:l,destroy:u,get:f}}function ik(e,t,n,s,r,i){const{measureSize:o,startEdge:a,endEdge:c}=e,l=n[0]&&r,u=m(),d=h(),f=n.map(o),g=y();function m(){if(!l)return 0;const b=n[0];return Pe(t[a]-b[a])}function h(){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=ou(T,w);return S?f[w]+u:A?f[w]+d:T[w+1][a]-b[a]}).map(Pe)}return{slideSizes:f,slideSizesWithGaps:g,startGap:u,endGap:d}}function ok(e,t,n,s,r,i,o,a,c){const{startEdge:l,endEdge:u,direction:d}=e,f=ru(n);function g(v,b){return ci(v).filter(w=>w%b===0).map(w=>v.slice(w,w+b))}function m(v){return v.length?ci(v).reduce((b,w,T)=>{const S=Ft(b)||0,A=S===0,P=w===Pi(v),E=r[l]-i[S][l],O=r[l]-i[w][u],D=!s&&A?d(o):0,L=!s&&P?d(a):0,j=Pe(O-L-(E+D));return T&&j>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 h(v){return f?g(v,n):m(v)}return{groupSlides:h}}function ak(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:h,slidesToScroll:y,skipSnaps:v,containScroll:b,watchResize:w,watchSlides:T,watchDrag:S,watchFocus:A}=i,P=2,E=$R(),O=E.measure(t),D=n.map(E.measure),L=VR(c,l),j=L.measureSize(O),$=zR(j),I=LR(a,j),J=!d&&!!b,X=d||!!b,{slideSizes:H,slideSizesWithGaps:q,startGap:re,endGap:de}=ik(L,O,D,n,X,r),ge=ok(L,j,y,d,O,D,re,de,P),{snaps:Be,snapsAligned:He}=XR(L,I,O,D,ge),qe=-Ft(Be)+Ft(q),{snapsContained:Pt,scrollContainLimit:Je}=ZR(j,qe,He,b,P),ue=J?Pt:He,{limit:ye}=KR(qe,ue,d),Oe=Ny(Pi(ue),u,d),Le=Oe.clone(),we=ci(n),G=({dragHandler:Wt,scrollBody:Zn,scrollBounds:yr,options:{loop:Kn}})=>{Kn||yr.constrain(Wt.pointerDown()),Zn.seek()},fe=({scrollBody:Wt,translate:Zn,location:yr,offsetLocation:Kn,previousLocation:ta,scrollLooper:ki,slideLooper:Ky,dragHandler:Gy,animation:Qy,eventHandler:fu,scrollBounds:Xy,options:{loop:hu}},pu)=>{const mu=Wt.settled(),Yy=!Xy.shouldConstrain(),gu=hu?mu:mu&&Yy;gu&&!Gy.pointerDown()&&(Qy.stop(),fu.emit("settle")),gu||fu.emit("scroll");const Jy=yr.get()*pu+ta.get()*(1-pu);Kn.set(Jy),hu&&(ki.loop(Wt.direction()),Ky.loop()),Zn.to(Kn.get())},Se=IR(s,r,()=>G(gr),Wt=>fe(gr,Wt)),$e=.68,pt=ue[Oe.get()],wt=kr(pt),_=kr(pt),R=kr(pt),N=kr(pt),U=HR(wt,R,_,N,f,$e),V=JR(d,ue,qe,ye,N),F=ek(Se,Oe,Le,U,V,N,o),Y=QR(ye),ae=ui(),Ie=rk(t,n,o,h),{slideRegistry:je}=YR(J,b,ue,Je,ge,we),zt=tk(e,n,je,F,U,ae,o,A),gr={ownerDocument:s,ownerWindow:r,eventHandler:o,containerRect:O,slideRects:D,animation:Se,axis:L,dragHandler:BR(L,e,s,r,N,UR(L,r),wt,Se,F,U,V,Oe,o,$,g,m,v,$e,S),eventStore:ae,percentOfView:$,index:Oe,indexPrevious:Le,limit:ye,location:wt,offsetLocation:R,previousLocation:_,options:i,resizeHandler:WR(t,o,r,n,L,w,E),scrollBody:U,scrollBounds:qR(ye,R,N,U,$),scrollLooper:GR(qe,ye,R,[wt,R,_,N]),scrollProgress:Y,scrollSnapList:ue.map(Y.get),scrollSnaps:ue,scrollTarget:V,scrollTo:F,slideLooper:nk(L,j,qe,H,q,Be,ue,R,n),slideFocus:zt,slidesHandler:sk(t,o,T),slidesInView:Ie,slideIndexes:we,slideRegistry:je,slidesToScroll:ge,target:N,translate:Oy(L,t)};return gr}function ck(){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 lk={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 uk(e){function t(i,o){return ky(i,o||{})}function n(i){const o=i.breakpoints||{},a=li(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=>li(o.breakpoints||{})).reduce((o,a)=>o.concat(a),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:s}}function dk(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 Po(e,t,n){const s=e.ownerDocument,r=s.defaultView,i=uk(r),o=dk(i),a=ui(),c=ck(),{mergeOptions:l,optionsAtMedia:u,optionsMediaQueries:d}=i,{on:f,off:g,emit:m}=c,h=L;let y=!1,v,b=l(lk,Po.globalOptions),w=l(b),T=[],S,A,P;function E(){const{container:we,slides:G}=w;A=(Cc(we)?e.querySelector(we):we)||e.children[0];const Se=Cc(G)?A.querySelectorAll(G):G;P=[].slice.call(Se||A.children)}function O(we){const G=ak(e,A,P,s,r,we,c);if(we.loop&&!G.slideLooper.canLoop()){const fe=Object.assign({},we,{loop:!1});return O(fe)}return G}function D(we,G){y||(b=l(b,we),w=u(b),T=G||T,E(),v=O(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();j(),D(l({startIndex:fe},we),G),c.emit("reInit")}function j(){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(),j(),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 H(){return v.index.add(1).get()!==ge()}function q(){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 He(){return v.slidesInView.get()}function qe(){return v.slidesInView.get(!1)}function Pt(){return S}function Je(){return v}function ue(){return e}function ye(){return A}function Oe(){return P}const Le={canScrollNext:H,canScrollPrev:q,containerNode:ye,internalEngine:Je,destroy:$,off:g,on:f,emit:m,plugins:Pt,previousScrollSnap:Be,reInit:h,rootNode:ue,scrollNext:J,scrollPrev:X,scrollProgress:de,scrollSnapList:re,scrollTo:I,selectedScrollSnap:ge,slideNodes:Oe,slidesInView:He,slidesNotInView:qe};return D(t,n),setTimeout(()=>c.emit("init"),0),Le}Po.globalOptions=void 0;function Hn(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(()=>{su(n.current,e)||(n.current=e,c())},[e,c]),x.useEffect(()=>{DR(s.current,t)||(s.current=t,c())},[t,c]),x.useEffect(()=>{if(jR()&&o){Po.globalOptions=Hn.globalOptions;const l=Po(o,n.current,s.current);return i(l),()=>l.destroy()}else i(void 0)},[o,i]),[a,r]}Hn.globalOptions=void 0;const fk=[{id:0,title:"Все компании",titleEn:"All companies"},{id:3,title:"Государственные учреждения ",titleEn:"Government Institutions"},{id:1,title:"Местные компании",titleEn:"Local companies"},{id:2,title:"Иностранные компании",titleEn:"Foreign companies"}],T1=({className:e,setState:t,state:n,data:s=fk})=>{const r=Ce(m=>m.lang),i=lo("(min-width: 768px)"),[o,a]=x.useState({left:0,width:0}),[c,l]=Hn({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 h=l.rootNode(),y=l.containerNode();if(!h||!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 p.jsxs("div",{ref:d,className:K("relative mx-auto",e),style:{width:"fit-content",maxWidth:"100%"},children:[i?p.jsx("div",{className:"flex",role:"tablist",children:s==null?void 0:s.map((m,h)=>p.jsx("button",{ref:y=>u.current[h]=y,role:"tab","aria-selected":n===h,className:K("shrink-0 text-center relative h-12 mx-4 py-2 text-sm md:text-base whitespace-nowrap transition-all",n===h?"text-primary":"text-on_surface_v"),onClick:()=>g(h),children:r==="ru"?m.title:m.titleEn},m.id))}):p.jsx("div",{ref:c,className:"",role:"tablist",children:p.jsx("div",{className:"flex",children:s==null?void 0:s.map((m,h)=>p.jsx("button",{ref:y=>u.current[h]=y,role:"tab","aria-selected":n===h,className:K("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===h?"text-primary after:opacity-100":"text-on_surface_v"),onClick:()=>g(h),children:r==="ru"?m.title:m.titleEn},m.id))})}),p.jsx("div",{className:"absolute md:block hidden bottom-0 h-[3px] rounded-t-[2px] bg-primary transition-all duration-200",style:o})]})},C1=({className:e,index:t,name:n,image:s,image_country:r,country:i,about:o,arr:a})=>{const c=Ce(l=>l.lang);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:K("flex border-b md:hidden py-2 border-outline_v",e),children:[p.jsxs("div",{className:"flex flex-1 flex-col items-start gap-4",children:[p.jsx("div",{className:"flex items-center w-full",children:p.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[p.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Название":"Company",":"]}),p.jsx("h4",{className:"text-xs flex-[0_0_70%]",children:n})]})}),p.jsx("div",{className:"flex items-center gap-3",children:p.jsx("div",{className:"flex items-center w-full",children:p.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[p.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Страна":"Country",":"]}),p.jsxs("div",{className:"flex items-center flex-[0_0_50%] gap-2",children:[p.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4 flex-[0_0_16px] object-contain"}),p.jsx("h4",{className:"text-xs flex-1",children:i})]})]})})}),p.jsx("div",{className:"flex items-center ",children:p.jsxs("div",{className:"flex items-center flex-[0_0_80%] gap-3",children:[p.jsxs("h3",{className:"text-xs normal flex-[0_0_90px]",children:[c==="ru"?"Сфера":"Industry",":"]}),p.jsx("h4",{className:"text-xs flex-1",children:o})]})})]}),p.jsx("div",{className:"flex-[0_0_88px] size-[88px] bg-white ",children:p.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})})]},t),p.jsxs("div",{className:K("md:flex hidden p-4 ",a!==t+1&&"border-b border-outline_v"),children:[p.jsxs("div",{className:"flex-[0_0_45.54%] flex gap-8",children:[p.jsx("div",{className:"flex-[0_0_88px] sm:flex-[0_0_128px] size-[88px] bg-white sm:size-[128px]",children:p.jsx("img",{src:s==null?void 0:s.path,alt:"company",className:"size-full object-contain"})}),p.jsx("h3",{className:"text-lg xl:mr-20 mr-10",children:n})]}),p.jsxs("div",{className:"flex-[0_0_19.80%] flex gap-2.5",children:[p.jsx("img",{src:r==null?void 0:r.path,alt:"flag",className:"size-4"}),p.jsx("h4",{className:"text-sm normal",children:i})]}),p.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(){}},ws=typeof window>"u"||"Deno"in globalThis;function Ct(){}function hk(e,t){return typeof e=="function"?e(t):e}function Ac(e){return typeof e=="number"&&e>=0&&e!==1/0}function jy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Vs(e,t){return typeof e=="function"?e(t):e}function Ot(e,t){return typeof e=="function"?e(t):e}function Hf(e,t){const{type:n="all",exact:s,fetchStatus:r,predicate:i,queryKey:o,stale:a}=e;if(o){if(s){if(t.queryHash!==au(o,t.options))return!1}else if(!fi(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 qf(e,t){const{exact:n,status:s,predicate:r,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(di(t.options.mutationKey)!==di(i))return!1}else if(!fi(t.options.mutationKey,i))return!1}return!(s&&t.state.status!==s||r&&!r(t))}function au(e,t){return((t==null?void 0:t.queryKeyHashFn)||di)(e)}function di(e){return JSON.stringify(e,(t,n)=>Rc(n)?Object.keys(n).sort().reduce((s,r)=>(s[r]=n[r],s),{}):n)}function fi(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!fi(e[n],t[n])):!1}function Dy(e,t){if(e===t)return e;const n=Zf(e)&&Zf(t);if(n||Rc(e)&&Rc(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]=Dy(e[u],t[u]),a[u]===e[u]&&e[u]!==void 0&&c++)}return r===o&&c===r?e:a}return t}function Pc(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 Zf(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rc(e){if(!Kf(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Kf(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Kf(e){return Object.prototype.toString.call(e)==="[object Object]"}function pk(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?Dy(e,t):t}function mk(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function gk(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var cu=Symbol();function My(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===cu?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var ts,En,Bs,nh,yk=(nh=class extends Ri{constructor(){super();ne(this,ts);ne(this,En);ne(this,Bs);Z(this,Bs,t=>{if(!ws&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,En)||this.setEventListener(C(this,Bs))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,En))==null||t.call(this),Z(this,En,void 0))}setEventListener(t){var n;Z(this,Bs,t),(n=C(this,En))==null||n.call(this),Z(this,En,t(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(t){C(this,ts)!==t&&(Z(this,ts,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,ts)=="boolean"?C(this,ts):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ts=new WeakMap,En=new WeakMap,Bs=new WeakMap,nh),lu=new yk,Us,An,$s,sh,vk=(sh=class extends Ri{constructor(){super();ne(this,Us,!0);ne(this,An);ne(this,$s);Z(this,$s,t=>{if(!ws&&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,An)||this.setEventListener(C(this,$s))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,An))==null||t.call(this),Z(this,An,void 0))}setEventListener(t){var n;Z(this,$s,t),(n=C(this,An))==null||n.call(this),Z(this,An,t(this.setOnline.bind(this)))}setOnline(t){C(this,Us)!==t&&(Z(this,Us,t),this.listeners.forEach(s=>{s(t)}))}isOnline(){return C(this,Us)}},Us=new WeakMap,An=new WeakMap,$s=new WeakMap,sh),Ro=new vk;function Nc(){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 xk(e){return Math.min(1e3*2**e,3e4)}function Fy(e){return(e??"online")==="online"?Ro.isOnline():!0}var Ly=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Fa(e){return e instanceof Ly}function Iy(e){let t=!1,n=0,s=!1,r;const i=Nc(),o=h=>{var y;s||(f(new Ly(h)),(y=e.abort)==null||y.call(e))},a=()=>{t=!0},c=()=>{t=!1},l=()=>lu.isFocused()&&(e.networkMode==="always"||Ro.isOnline())&&e.canRun(),u=()=>Fy(e.networkMode)&&e.canRun(),d=h=>{var y;s||(s=!0,(y=e.onSuccess)==null||y.call(e,h),r==null||r(),i.resolve(h))},f=h=>{var y;s||(s=!0,(y=e.onError)==null||y.call(e,h),r==null||r(),i.reject(h))},g=()=>new Promise(h=>{var y;r=v=>{(s||l())&&h(v)},(y=e.onPause)==null||y.call(e)}).then(()=>{var h;r=void 0,s||(h=e.onContinue)==null||h.call(e)}),m=()=>{if(s)return;let h;const y=n===0?e.initialPromise:void 0;try{h=y??e.fn()}catch(v){h=Promise.reject(v)}Promise.resolve(h).then(d).catch(v=>{var A;if(s)return;const b=e.retry??(ws?0:3),w=e.retryDelay??xk,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),pk(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 bk(){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=bk(),ns,rh,Vy=(rh=class{constructor(){ne(this,ns)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ac(this.gcTime)&&Z(this,ns,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ws?1/0:5*60*1e3))}clearGcTimeout(){C(this,ns)&&(clearTimeout(C(this,ns)),Z(this,ns,void 0))}},ns=new WeakMap,rh),zs,Ws,Tt,ss,Ze,hi,rs,kt,dn,ih,wk=(ih=class extends Vy{constructor(t){super();ne(this,kt);ne(this,zs);ne(this,Ws);ne(this,Tt);ne(this,ss);ne(this,Ze);ne(this,hi);ne(this,rs);Z(this,rs,!1),Z(this,hi,t.defaultOptions),this.setOptions(t.options),this.observers=[],Z(this,ss,t.client),Z(this,Tt,C(this,ss).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,Z(this,zs,Sk(this.options)),this.state=t.state??C(this,zs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=C(this,Ze))==null?void 0:t.promise}setOptions(t){this.options={...C(this,hi),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Tt).remove(this)}setData(t,n){const s=kc(this.state.data,t,this.options);return he(this,kt,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,kt,dn).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var s,r;const n=(s=C(this,Ze))==null?void 0:s.promise;return(r=C(this,Ze))==null||r.cancel(t),n?n.then(Ct).catch(Ct):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(C(this,zs))}isActive(){return this.observers.some(t=>Ot(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cu||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||!jy(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(s=>s.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ze))==null||n.continue()}onOnline(){var n;const t=this.observers.find(s=>s.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Ze))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Ze)&&(C(this,rs)?C(this,Ze).cancel({revert:!0}):C(this,Ze).cancelRetry()),this.scheduleGc()),C(this,Tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||he(this,kt,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,Ze))return C(this,Ze).continueRetry(),C(this,Ze).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:()=>(Z(this,rs,!0),s.signal)})},i=()=>{const d=My(this.options,n),f={client:C(this,ss),queryKey:this.queryKey,meta:this.meta};return r(f),Z(this,rs,!1),this.options.persister?this.options.persister(d,f,this):d(f)},o={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,ss),state:this.state,fetchFn:i};r(o),(c=this.options.behavior)==null||c.onFetch(o,this),Z(this,Ws,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((l=o.fetchOptions)==null?void 0:l.meta))&&he(this,kt,dn).call(this,{type:"fetch",meta:(u=o.fetchOptions)==null?void 0:u.meta});const a=d=>{var f,g,m,h;Fa(d)&&d.silent||he(this,kt,dn).call(this,{type:"error",error:d}),Fa(d)||((g=(f=C(this,Tt).config).onError)==null||g.call(f,d,this),(h=(m=C(this,Tt).config).onSettled)==null||h.call(m,this.state.data,d,this)),this.scheduleGc()};return Z(this,Ze,Iy({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,abort:s.abort.bind(s),onSuccess:d=>{var f,g,m,h;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,Tt).config).onSuccess)==null||g.call(f,d,this),(h=(m=C(this,Tt).config).onSettled)==null||h.call(m,d,this.state.error,this),this.scheduleGc()},onError:a,onFail:(d,f)=>{he(this,kt,dn).call(this,{type:"failed",failureCount:d,error:f})},onPause:()=>{he(this,kt,dn).call(this,{type:"pause"})},onContinue:()=>{he(this,kt,dn).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0})),C(this,Ze).start()}},zs=new WeakMap,Ws=new WeakMap,Tt=new WeakMap,ss=new WeakMap,Ze=new WeakMap,hi=new WeakMap,rs=new WeakMap,kt=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,...By(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 Fa(r)&&r.revert&&C(this,Ws)?{...C(this,Ws),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,Tt).notify({query:this,type:"updated",action:t})})},ih);function By(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Fy(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Sk(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,oh,_k=(oh=class extends Ri{constructor(t={}){super();ne(this,qt);this.config=t,Z(this,qt,new Map)}build(t,n,s){const r=n.queryKey,i=n.queryHash??au(r,n);let o=this.get(i);return o||(o=new wk({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=>Hf(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>Hf(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,oh),Zt,et,is,Kt,Tn,ah,Tk=(ah=class extends Vy{constructor(t){super();ne(this,Kt);ne(this,Zt);ne(this,et);ne(this,is);this.mutationId=t.mutationId,Z(this,et,t.mutationCache),Z(this,Zt,[]),this.state=t.state||Ck(),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,et).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){Z(this,Zt,C(this,Zt).filter(n=>n!==t)),this.scheduleGc(),C(this,et).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,Zt).length||(this.state.status==="pending"?this.scheduleGc():C(this,et).remove(this))}continue(){var t;return((t=C(this,is))==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,h,y,v,b,w,T,S,A,P;Z(this,is,Iy({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(E,O)=>{he(this,Kt,Tn).call(this,{type:"failed",failureCount:E,error:O})},onPause:()=>{he(this,Kt,Tn).call(this,{type:"pause"})},onContinue:()=>{he(this,Kt,Tn).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,et).canRun(this)}));const n=this.state.status==="pending",s=!C(this,is).canStart();try{if(!n){he(this,Kt,Tn).call(this,{type:"pending",variables:t,isPaused:s}),await((i=(r=C(this,et).config).onMutate)==null?void 0:i.call(r,t,this));const O=await((a=(o=this.options).onMutate)==null?void 0:a.call(o,t));O!==this.state.context&&he(this,Kt,Tn).call(this,{type:"pending",context:O,variables:t,isPaused:s})}const E=await C(this,is).start();return await((l=(c=C(this,et).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,et).config).onSettled)==null?void 0:g.call(f,E,null,this.state.variables,this.state.context,this)),await((h=(m=this.options).onSettled)==null?void 0:h.call(m,E,null,t,this.state.context)),he(this,Kt,Tn).call(this,{type:"success",data:E}),E}catch(E){try{throw await((v=(y=C(this,et).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,et).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,Tn).call(this,{type:"error",error:E})}}finally{C(this,et).runNext(this)}}},Zt=new WeakMap,et=new WeakMap,is=new WeakMap,Kt=new WeakSet,Tn=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,et).notify({mutation:this,type:"updated",action:t})})},ah);function Ck(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var hn,Nt,pi,ch,Ek=(ch=class extends Ri{constructor(t={}){super();ne(this,hn);ne(this,Nt);ne(this,pi);this.config=t,Z(this,hn,new Set),Z(this,Nt,new Map),Z(this,pi,0)}build(t,n,s){const r=new Tk({mutationCache:this,mutationId:++Ni(this,pi)._,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,Nt).get(n);s?s.push(t):C(this,Nt).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,Nt).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,Nt).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=zi(t);if(typeof n=="string"){const s=C(this,Nt).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,Nt).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,Nt).clear()})}getAll(){return Array.from(C(this,hn))}find(t){const n={exact:!0,...t};return this.getAll().find(s=>qf(n,s))}findAll(t={}){return this.getAll().filter(n=>qf(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(Ct))))}},hn=new WeakMap,Nt=new WeakMap,pi=new WeakMap,ch);function zi(e){var t;return(t=e.options.scope)==null?void 0:t.id}function Gf(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 h=!1;const y=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?h=!0:t.signal.addEventListener("abort",()=>{h=!0}),t.signal)})},v=My(t.options,t.fetchOptions),b=async(w,T,S)=>{if(h)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,O=S?gk:mk;return{pages:O(w.pages,P,E),pageParams:O(w.pageParams,T,E)}};if(r&&i.length){const w=r==="backward",T=w?Ak:Qf,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:Qf(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 h,y;return(y=(h=t.options).persister)==null?void 0:y.call(h,l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=l}}}function Qf(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 Ak(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 Re,Pn,Rn,Hs,qs,kn,Zs,Ks,lh,E1=(lh=class{constructor(e={}){ne(this,Re);ne(this,Pn);ne(this,Rn);ne(this,Hs);ne(this,qs);ne(this,kn);ne(this,Zs);ne(this,Ks);Z(this,Re,e.queryCache||new _k),Z(this,Pn,e.mutationCache||new Ek),Z(this,Rn,e.defaultOptions||{}),Z(this,Hs,new Map),Z(this,qs,new Map),Z(this,kn,0)}mount(){Ni(this,kn)._++,C(this,kn)===1&&(Z(this,Zs,lu.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Re).onFocus())})),Z(this,Ks,Ro.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,Re).onOnline())})))}unmount(){var e,t;Ni(this,kn)._--,C(this,kn)===0&&((e=C(this,Zs))==null||e.call(this),Z(this,Zs,void 0),(t=C(this,Ks))==null||t.call(this),Z(this,Ks,void 0))}isFetching(e){return C(this,Re).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,Pn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,Re).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,Re).build(this,t),s=n.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Vs(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(s))}getQueriesData(e){return C(this,Re).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,Re).get(s.queryHash),i=r==null?void 0:r.state.data,o=hk(t,i);if(o!==void 0)return C(this,Re).build(this,s).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return We.batch(()=>C(this,Re).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,Re).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,Re);We.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,Re),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,Re).findAll(e).map(r=>r.cancel(n)));return Promise.all(s).then(Ct).catch(Ct)}invalidateQueries(e,t={}){return We.batch(()=>{if(C(this,Re).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,Re).findAll(e).filter(r=>!r.isDisabled()).map(r=>{let i=r.fetch(void 0,n);return n.throwOnError||(i=i.catch(Ct)),r.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(s).then(Ct)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,Re).build(this,t);return n.isStaleByTime(Vs(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ct).catch(Ct)}fetchInfiniteQuery(e){return e.behavior=Gf(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ct).catch(Ct)}ensureInfiniteQueryData(e){return e.behavior=Gf(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Ro.isOnline()?C(this,Pn).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Re)}getMutationCache(){return C(this,Pn)}getDefaultOptions(){return C(this,Rn)}setDefaultOptions(e){Z(this,Rn,e)}setQueryDefaults(e,t){C(this,Hs).set(di(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Hs).values()],n={};return t.forEach(s=>{fi(e,s.queryKey)&&Object.assign(n,s.defaultOptions)}),n}setMutationDefaults(e,t){C(this,qs).set(di(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,qs).values()];let n={};return t.forEach(s=>{fi(e,s.mutationKey)&&(n={...n,...s.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Rn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=au(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===cu&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Rn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,Re).clear(),C(this,Pn).clear()}},Re=new WeakMap,Pn=new WeakMap,Rn=new WeakMap,Hs=new WeakMap,qs=new WeakMap,kn=new WeakMap,Zs=new WeakMap,Ks=new WeakMap,lh),ct,pe,mi,tt,os,Gs,Nn,Gt,gi,Qs,Xs,as,cs,On,Ys,be,Nr,Oc,jc,Dc,Mc,Fc,Lc,Ic,Uy,uh,Pk=(uh=class extends Ri{constructor(t,n){super();ne(this,be);ne(this,ct);ne(this,pe);ne(this,mi);ne(this,tt);ne(this,os);ne(this,Gs);ne(this,Nn);ne(this,Gt);ne(this,gi);ne(this,Qs);ne(this,Xs);ne(this,as);ne(this,cs);ne(this,On);ne(this,Ys,new Set);this.options=n,Z(this,ct,t),Z(this,Gt,null),Z(this,Nn,Nc()),this.options.experimental_prefetchInRender||C(this,Nn).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),Xf(C(this,pe),this.options)?he(this,be,Nr).call(this):this.updateResult(),he(this,be,Mc).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vc(C(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vc(C(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,he(this,be,Fc).call(this),he(this,be,Lc).call(this),C(this,pe).removeObserver(this)}setOptions(t,n){const s=this.options,r=C(this,pe);if(this.options=C(this,ct).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ot(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,Ic).call(this),C(this,pe).setOptions(this.options),s._defaulted&&!Pc(this.options,s)&&C(this,ct).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,pe),observer:this});const i=this.hasListeners();i&&Yf(C(this,pe),r,this.options,s)&&he(this,be,Nr).call(this),this.updateResult(n),i&&(C(this,pe)!==r||Ot(this.options.enabled,C(this,pe))!==Ot(s.enabled,C(this,pe))||Vs(this.options.staleTime,C(this,pe))!==Vs(s.staleTime,C(this,pe)))&&he(this,be,Oc).call(this);const o=he(this,be,jc).call(this);i&&(C(this,pe)!==r||Ot(this.options.enabled,C(this,pe))!==Ot(s.enabled,C(this,pe))||o!==C(this,On))&&he(this,be,Dc).call(this,o)}getOptimisticResult(t){const n=C(this,ct).getQueryCache().build(C(this,ct),t),s=this.createResult(n,t);return kk(this,s)&&(Z(this,tt,s),Z(this,Gs,this.options),Z(this,os,C(this,pe).state)),s}getCurrentResult(){return C(this,tt)}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,Ys).add(t)}getCurrentQuery(){return C(this,pe)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,ct).defaultQueryOptions(t),s=C(this,ct).getQueryCache().build(C(this,ct),n);return s.fetch().then(()=>this.createResult(s,n))}fetch(t){return he(this,be,Nr).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,tt)))}createResult(t,n){var E;const s=C(this,pe),r=this.options,i=C(this,tt),o=C(this,os),a=C(this,Gs),l=t!==s?t.state:C(this,mi),{state:u}=t;let d={...u},f=!1,g;if(n._optimisticResults){const O=this.hasListeners(),D=!O&&Xf(t,n),L=O&&Yf(t,s,n,r);(D||L)&&(d={...d,...By(u.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:m,errorUpdatedAt:h,status:y}=d;if(n.select&&d.data!==void 0)if(i&&d.data===(o==null?void 0:o.data)&&n.select===C(this,gi))g=C(this,Qs);else try{Z(this,gi,n.select),g=n.select(d.data),g=kc(i==null?void 0:i.data,g,n),Z(this,Qs,g),Z(this,Gt,null)}catch(O){Z(this,Gt,O)}else g=d.data;if(n.placeholderData!==void 0&&g===void 0&&y==="pending"){let O;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData))O=i.data;else if(O=typeof n.placeholderData=="function"?n.placeholderData((E=C(this,Xs))==null?void 0:E.state.data,C(this,Xs)):n.placeholderData,n.select&&O!==void 0)try{O=n.select(O),Z(this,Gt,null)}catch(D){Z(this,Gt,D)}O!==void 0&&(y="success",g=kc(i==null?void 0:i.data,O,n),f=!0)}C(this,Gt)&&(m=C(this,Gt),g=C(this,Qs),h=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:h,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:uu(t,n),refetch:this.refetch,promise:C(this,Nn)};if(this.options.experimental_prefetchInRender){const O=j=>{P.status==="error"?j.reject(P.error):P.data!==void 0&&j.resolve(P.data)},D=()=>{const j=Z(this,Nn,P.promise=Nc());O(j)},L=C(this,Nn);switch(L.status){case"pending":t.queryHash===s.queryHash&&O(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,tt),s=this.createResult(C(this,pe),this.options);if(Z(this,os,C(this,pe).state),Z(this,Gs,this.options),C(this,os).data!==void 0&&Z(this,Xs,C(this,pe)),Pc(s,n))return;Z(this,tt,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,Ys).size)return!0;const c=new Set(a??C(this,Ys));return this.options.throwOnError&&c.add("error"),Object.keys(C(this,tt)).some(l=>{const u=l;return C(this,tt)[u]!==n[u]&&c.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(r.listeners=!0),he(this,be,Uy).call(this,{...r,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&he(this,be,Mc).call(this)}},ct=new WeakMap,pe=new WeakMap,mi=new WeakMap,tt=new WeakMap,os=new WeakMap,Gs=new WeakMap,Nn=new WeakMap,Gt=new WeakMap,gi=new WeakMap,Qs=new WeakMap,Xs=new WeakMap,as=new WeakMap,cs=new WeakMap,On=new WeakMap,Ys=new WeakMap,be=new WeakSet,Nr=function(t){he(this,be,Ic).call(this);let n=C(this,pe).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ct)),n},Oc=function(){he(this,be,Fc).call(this);const t=Vs(this.options.staleTime,C(this,pe));if(ws||C(this,tt).isStale||!Ac(t))return;const s=jy(C(this,tt).dataUpdatedAt,t)+1;Z(this,as,setTimeout(()=>{C(this,tt).isStale||this.updateResult()},s))},jc=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,pe)):this.options.refetchInterval)??!1},Dc=function(t){he(this,be,Lc).call(this),Z(this,On,t),!(ws||Ot(this.options.enabled,C(this,pe))===!1||!Ac(C(this,On))||C(this,On)===0)&&Z(this,cs,setInterval(()=>{(this.options.refetchIntervalInBackground||lu.isFocused())&&he(this,be,Nr).call(this)},C(this,On)))},Mc=function(){he(this,be,Oc).call(this),he(this,be,Dc).call(this,he(this,be,jc).call(this))},Fc=function(){C(this,as)&&(clearTimeout(C(this,as)),Z(this,as,void 0))},Lc=function(){C(this,cs)&&(clearInterval(C(this,cs)),Z(this,cs,void 0))},Ic=function(){const t=C(this,ct).getQueryCache().build(C(this,ct),this.options);if(t===C(this,pe))return;const n=C(this,pe);Z(this,pe,t),Z(this,mi,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Uy=function(t){We.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,tt))}),C(this,ct).getQueryCache().notify({query:C(this,pe),type:"observerResultsUpdated"})})},uh);function Rk(e,t){return Ot(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Xf(e,t){return Rk(e,t)||e.state.data!==void 0&&Vc(e,t,t.refetchOnMount)}function Vc(e,t,n){if(Ot(t.enabled,e)!==!1){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&uu(e,t)}return!1}function Yf(e,t,n,s){return(e!==t||Ot(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&uu(e,n)}function uu(e,t){return Ot(t.enabled,e)!==!1&&e.isStaleByTime(Vs(t.staleTime,e))}function kk(e,t){return!Pc(e.getCurrentResult(),t)}var $y=x.createContext(void 0),Nk=e=>{const t=x.useContext($y);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},A1=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),p.jsx($y.Provider,{value:e,children:t})),zy=x.createContext(!1),Ok=()=>x.useContext(zy);zy.Provider;function jk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Dk=x.createContext(jk()),Mk=()=>x.useContext(Dk);function Fk(e,t){return typeof e=="function"?e(...t):!!e}function Jf(){}var Lk=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Ik=e=>{x.useEffect(()=>{e.clearReset()},[e])},Vk=({result:e,errorResetBoundary:t,throwOnError:n,query:s,suspense:r})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(r&&e.data===void 0||Fk(n,[e.error,s])),Bk=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)))},Uk=(e,t)=>e.isLoading&&e.isFetching&&!t,$k=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,eh=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function zk(e,t,n){var d,f,g,m,h;const s=Nk(),r=Ok(),i=Mk(),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",Bk(o),Lk(o,i),Ik(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)):Jf;return c.updateResult(),v},[c,u]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),x.useEffect(()=>{c.setOptions(o,{listeners:!1})},[o,c]),$k(o,l))throw eh(o,c,i);if(Vk({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&&!ws&&Uk(l,r)){const y=a?eh(o,c,i):(h=s.getQueryCache().get(o.queryHash))==null?void 0:h.promise;y==null||y.catch(Jf).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?l:c.trackResult(l)}function qn(e,t){return zk(e,Pk)}const Wk=e=>{const{data:t,isPending:n,isError:s}=qn({queryKey:["photos",e],queryFn:()=>ER(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},Hk=e=>{const{data:t,isPending:n,isError:s}=qn({queryKey:["videos",e],queryFn:()=>AR(e),select:({data:r})=>r.data});return{data:t,isPending:n,isError:s}},P1=({className:e,setIsOpen:t,activeItem:n})=>{var f,g;const[s,r]=Hn({align:"center",loop:!1,dragFree:!1,slidesToScroll:1}),{data:i}=Wk(1),{data:o}=Hk(1);PT();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 h;return p.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:p.jsx("img",{src:(h=m==null?void 0:m.photo)==null?void 0:h.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 h;return p.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:p.jsx("video",{src:((h=m==null?void 0:m.video)==null?void 0:h.path)??"",controls:!0,autoPlay:!0,muted:!0,className:"max-h-full max-w-full object-contain"})},m.id)});return p.jsxs(Fr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:K("fixed z-[100] top-0 left-0 pb-40 pt-28 lg:px-28 px-6 overflow-hidden min-h-screen w-full bg-black/90",e),children:[p.jsx(Yc,{onClick:()=>t(!1),className:"absolute top-10 right-6 p-3 md:size-20 size-16 cursor-pointer z-50 text-white hover:scale-110 transition-all duration-300"}),p.jsxs("div",{className:"hidden md:block",children:[p.jsx(Mx,{onClick:()=>a&&(r==null?void 0:r.scrollPrev()),className:K("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")}),p.jsx(Lx,{onClick:()=>l&&(r==null?void 0:r.scrollNext()),className:K("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")})]}),p.jsx("div",{ref:s,className:"embla overflow-hidden",children:p.jsx("div",{className:"embla__container flex",children:d})})]})},dt=e=>e===ut.RU?0:1,Bc=[{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"}]}],Wy=()=>{const e=Ce(s=>s.lang),{data:t,isPending:n}=qn({queryKey:["industries",e],queryFn:()=>TR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},R1=({className:e})=>{const t=Ce(r=>r.lang),{data:n,isPending:s}=Wy();return p.jsx("section",{className:K("relative w-full bg-[#FDEDEE] -z-10 py-10",e),children:p.jsx(Ye,{children:s?p.jsx(_s,{}):p.jsxs(p.Fragment,{children:[p.jsx("h3",{className:"h2 mb-4",children:Bc[dt(t)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:n==null?void 0:n.map((r,i)=>p.jsx(cp,{...r},i))}),p.jsxs("div",{className:"flex items-center gap-3 mt-8 text-on_surface_v text-lg",children:[p.jsx("div",{className:"md:w-1 w-4 md:h-[38px] h-40 bg-teritary_08"}),p.jsx("p",{className:"text-18",children:Bc[dt(t)].bottom_text})]})]})})})},Hy=[{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"}]}],qy=()=>{const e=Ce(s=>s.lang),{data:t,isPending:n}=qn({queryKey:["exhibiton-time",e],queryFn:()=>CR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},k1=({className:e})=>{const t=Ce(r=>r.lang),{data:n,isPending:s}=qy();return p.jsx("section",{className:K("bg-surface_container py-10 md:py-20",e),children:p.jsx(Ye,{children:s?p.jsx(_s,{}):p.jsxs(p.Fragment,{children:[p.jsx("h2",{className:"h2 mb-6",children:Hy[dt(t)].title}),p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((r,i)=>x.createElement(lp,{bottomClassName:"!bg-white rounded-b-[2px]",...r,key:i,className:"w-full"}))})]})})})},th=[{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."]}],N1=({className:e})=>{const t=Ce(n=>n.lang);return p.jsx("section",{className:K("gap-6 relative overflow-hidden",e),children:p.jsxs(Ye,{className:"md:py-20 py-10 grid-cols-1 lg:grid-cols-2 lg:gap-12 gap-0 grid",children:[p.jsxs("div",{className:"flex-[0_0_50%]",children:[p.jsx("h3",{className:"h2 mb-6",children:th[dt(t)].title}),p.jsx("div",{className:"text-lg flex flex-col gap-6 text-on_surface_v normal mb-10",children:th[dt(t)].data.map(n=>p.jsx("p",{children:n},n))})]}),p.jsx("div",{className:"h-full max-size-[600px] flex-[0_0_50%]",children:p.jsx("img",{src:"/about-place.jpg",alt:"",className:"size-full object-contain"})})]})})},Wi=[{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"}],O1=({className:e})=>{const t=Ce(n=>n.lang);return p.jsxs("section",{className:K("md:py-20 py-10 relative overflow-hidden",e),children:[p.jsx("img",{src:"/CTA.png",className:"absolute top-0 left-0 size-full -z-10 object-cover"}),p.jsxs(Ye,{children:[p.jsx("h3",{className:"h2 text-center !text-on_primary mb-6",children:Wi[dt(t)].title}),p.jsx("p",{className:"text-center md:text-lg text-sm text-primary_03 max-w-[828px] px-5 mx-auto mb-10",children:Wi[dt(t)].p}),p.jsxs("div",{className:"flex flex-col md:flex-row items-center gap-6",children:[p.jsx(Ne,{to:"/stend-form",className:"w-full",children:p.jsx(ht,{className:"bg-reverse_primary w-full text-primary hover:bg-reverse_primary/90",children:Wi[dt(t)].button1})}),p.jsx(Ne,{to:"/B2B-B2GS",className:"w-full",children:p.jsx(ht,{className:"bg-reverse_primary w-full hover:bg-reverse_primary/90 text-primary",children:Wi[dt(t)].button2})})]})]})]})},Zy=e=>{const t=Ce(r=>r.lang),{data:n,isPending:s}=qn({queryKey:["static-words",t,e],queryFn:()=>wR(t,e),select:({data:r})=>r.data});return{data:n,isPending:s}},j1=()=>{var f,g,m,h,y,v,b,w;const e=Ce(T=>T.lang),{t}=yi("about"),{data:n,isPending:s}=Zy("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=(h=n==null?void 0:n.find(T=>T.key==="about_4"))==null?void 0:h.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?p.jsx(_s,{}):p.jsxs(Ye,{className:"flex flex-col md:my-20 my-10 gap-16",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:r}),p.jsx("div",{className:"flex flex-col p gap-3",dangerouslySetInnerHTML:{__html:i??""}})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h3",{className:"h2",children:o}),p.jsx("h4",{className:"p",children:a}),p.jsx("ol",{type:"1",className:"list-decimal pl-8 flex flex-col gap-3 ",children:c==null?void 0:c.map((T,S)=>p.jsx("li",{className:"p",children:e==="ru"?T.text_ru:T.text_en},S))})]}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2",children:l}),p.jsx("h3",{className:"p",children:u}),p.jsx("ul",{className:"list-disc pl-8 flex flex-col gap-3 p",children:d==null?void 0:d.map((T,S)=>p.jsxs("li",{children:[" ",e==="ru"?T.text_ru:T.text_en]},S))})]}),p.jsx(Ne,{className:"w-fit mx-auto",to:"/become-sponsor",children:p.jsx(ht,{children:t("main.button")})})]})},qk=[{lang:ut.RU,data:[{title:"План выставки",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Забронировать стенд",link:"/stend-form"},{title:"Список участников",link:"/participants"},{title:"B2B | B2G встречи",link:"/B2B-B2G"}]},{lang:ut.EN,data:[{title:"Floor Plan",link:"https://turkmentextile.turkmenexpo.com/app/storage/app/media/Floor%20plan/floor%20plan.pdf",blank:!0},{title:"Book a stand",link:"/stend-form"},{title:"List of participants",link:"/participants"},{title:"B2B | B2G meetings",link:"/B2B-B2G"}]}],D1=()=>{const[e]=Hn(),t=Ce(o=>o.lang),{t:n}=yi("home"),s=lo("(min-width: 1024px)"),r=lo("(min-width: 768px)");function i(){return n(s?"banners.lg":r?"banners.md":"banners.sm")}return p.jsxs("section",{className:"flex flex-col gap-5",children:[p.jsx("div",{ref:e,className:"embla",children:p.jsx("div",{className:"embla__container",children:p.jsx("div",{className:"embla__slide",children:p.jsx("img",{src:i(),alt:"",className:"size-full object-cover lg:max-h-[600px] lg:min-h-[320px]"})})})}),p.jsx(Ye,{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 items-center gap-6 text-2xl",children:qk[dt(t)].data.map(({title:o,link:a,blank:c})=>p.jsx(Ne,{target:c?"_blank":"",to:a,className:"w-full",children:p.jsx(ht,{size:"lg",variant:"teritary",className:"w-full drop-shadow-sm shadow-md text-xl bg-teritary text-on_teritary hover:bg-teritary/90",children:o})},o))})]})},Zk=()=>{const e=Ce(s=>s.lang),{data:t,isPending:n}=qn({queryKey:["home-contacts",e],queryFn:()=>_R(e),select:({data:s})=>s.data});return{data:t,isPending:n}},M1=({className:e})=>{const t=Ce(i=>i.lang),{data:n,isPending:s}=qy(),{data:r}=Zk();return s?p.jsx(_s,{}):p.jsx("section",{className:K("bg-surface_high pt-10 pb-20",e),children:p.jsxs(Ye,{children:[p.jsx("h2",{className:"h2 mb-6",children:Hy[dt(t)].title}),p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("div",{className:"flex flex-col md:flex-row items-center gap-6",children:n==null?void 0:n.map((i,o)=>x.createElement(lp,{...i,key:o,className:"w-full"}))}),p.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((i,o)=>x.createElement(Jb,{...i,key:o,className:"w-full"}))}),p.jsx(Ne,{to:"/stend-form",className:"md:w-fit w-full mx-auto",children:p.jsx(ht,{className:"w-full",children:t===ut.RU?"Забронируйте стенд":"Book a stand"})})]})]})})},Kk=[{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"}],Gk=()=>{const e=Ce(s=>s.lang),{data:t,isPending:n}=qn({queryKey:["stats",e],queryFn:()=>SR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},F1=()=>{var c,l;const[e]=Hn(),t=Ce(u=>u.lang),{data:n,isPending:s}=Zy("1"),{data:r}=Gk(),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=dt(t);return s?p.jsx(_s,{}):p.jsx("section",{children:p.jsxs(Ye,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-center",children:[p.jsxs("div",{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"h2 text-left",children:i}),p.jsx("div",{dangerouslySetInnerHTML:{__html:o||""},className:"md:text-base flex flex-col gap-6 text-sm normal text-left text-[#454545]"}),p.jsx(Ne,{to:"/about",className:"w-fit",children:p.jsx(ht,{variant:"outline",children:Kk[a].button})})]}),p.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"})]}),p.jsx("div",{ref:e,className:"embla overflow-hidden",children:p.jsx("div",{className:"flex embla__container items-center gap-6",children:r==null?void 0:r.map(u=>p.jsx(Xb,{...u,className:"embla__slide flex-[0_0_288px]"},u.text))})})]})})},L1=()=>{const e=Ce(s=>s.lang),{data:t,isPending:n}=Wy();return n?p.jsx(_s,{}):p.jsx("section",{className:"",children:p.jsxs(Ye,{children:[p.jsx("h2",{className:"h2 mb-10 text-center",children:Bc[dt(e)].title}),p.jsx("div",{className:"grid md:grid-cols-4 grid-cols-2 gap-6",children:t==null?void 0:t.map((s,r)=>p.jsx(cp,{...s},r))})]})})},Qk=[{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"}]}],I1=()=>{const[e,t]=Hn({align:"start"}),[n,s]=x.useState(0),r=Ce(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]),p.jsx("section",{className:"bg-surface_high py-10 relative overflow-hidden",children:p.jsx(Ye,{children:p.jsxs("div",{ref:e,className:"embla ",children:[p.jsx("div",{className:"mb-2 flex gap-6 embla__container",children:Qk[dt(r)].data.map(o=>x.createElement(Yb,{...o,key:o.title,className:"embla__slide flex-[0_0_300px] sm:flex-[0_0_600px]"}))}),p.jsx(YT,{className:"xl:hidden",scrollTo:i,active:n,slides:2})]})})})},Xk={active:!0,breakpoints:{},delay:4e3,jump:!1,playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,stopOnLastSnap:!1,rootNode:null};function Yk(e,t){const n=e.scrollSnapList();return typeof t=="number"?n.map(()=>t):t(n,e)}function Jk(e,t){const n=e.rootNode();return t&&t(n)||n}function du(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:H}=J,q=X(Xk,du.globalOptions),re=X(q,e);if(t=H(re),n.scrollSnapList().length<=1)return;u=t.jump,s=!1,r=Yk(n,t.delay);const{eventStore:de,ownerDocument:ge}=n.internalEngine(),Be=!!n.internalEngine().options.watchDrag,He=Jk(n,t.rootNode);de.add(ge,"visibilitychange",v),Be&&n.on("pointerDown",w),Be&&!t.stopOnInteraction&&n.on("pointerUp",T),t.stopOnMouseEnter&&de.add(He,"mouseenter",S),t.stopOnMouseEnter&&!t.stopOnInteraction&&de.add(He,"mouseleave",A),t.stopOnFocusIn&&n.on("slideFocusStart",y),t.stopOnFocusIn&&!t.stopOnInteraction&&de.add(n.containerNode(),"focusout",h),t.playOnInit&&h()}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 h(){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&&h()}function b(){const{ownerDocument:I}=n.internalEngine();return I.visibilityState==="hidden"}function w(){c||y()}function T(){c||h()}function S(){c=!0,y()}function A(){c=!1,h()}function P(I){typeof I<"u"&&(u=I),h()}function E(){a&&y()}function O(){a&&h()}function D(){return a}function L(){const{index:I}=n.internalEngine(),J=I.clone().add(1).get(),X=n.scrollSnapList().length-1,H=t.stopOnLastSnap&&J===X;if(n.canScrollNext()?n.scrollNext(u):n.scrollTo(0,u),n.emit("autoplay:select"),H)return y();h()}function j(){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:O,isPlaying:D,timeUntilNext:j}}du.globalOptions=void 0;const e1=()=>{const e=Ce(s=>s.lang),{data:t,isPending:n}=qn({queryKey:["sponsors",e],queryFn:()=>PR(e),select:({data:s})=>s.data});return{data:t,isPending:n}},V1=({className:e})=>{const[t]=Hn({loop:!0,align:"start",skipSnaps:!0,duration:75},[du({stopOnInteraction:!1,delay:3e3})]),{data:n,isPending:s}=e1(),{t:r}=yi("home",{keyPrefix:"sponsors"});return s?p.jsx(_s,{}):p.jsx("section",{className:K("py-20",e),children:p.jsxs(Ye,{className:"flex flex-col gap-6",children:[p.jsx("h2",{className:"text-3xl",children:r("title")}),p.jsx("div",{ref:t,className:"embla overflow-hidden",children:p.jsx("div",{className:"embla__container flex",children:n==null?void 0:n.map((i,o)=>{var a,c;return i.link?p.jsxs(Ne,{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:[p.jsx("img",{src:(a=i==null?void 0:i.image)==null?void 0:a.path,alt:"logo",className:"object-contain flex-auto"}),p.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2 w-full",children:i.name})]},o):p.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:[p.jsx("div",{className:"h-[128px] w-full",children:p.jsx("img",{src:(c=i==null?void 0:i.image)==null?void 0:c.path,alt:"logo",className:"object-contain size-full"})}),p.jsx("div",{className:"bg-secondary_container text-xs text-center py-1 px-2",children:i.name})]},o)})})})]})})},t1=()=>{const{t:e}=yi("nav"),t=Ce(i=>i.lang),n=_c(i=>i.sheet),s=_c(i=>i.setSheet),r=e("navigation",{returnObjects:!0});return p.jsxs(Pb,{onOpenChange:()=>s(!n),open:n,children:[p.jsx(Rb,{children:p.jsxs("div",{className:"flex flex-col gap-1 lg:hidden items-center justify-center size-10",children:[p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"}),p.jsx("div",{className:"w-[18px] h-0.5 bg-white rounded-[2px]"})]})}),p.jsxs(np,{className:"overflow-y-auto",children:[p.jsx(kb,{}),p.jsxs(sp,{className:"mt-16 flex flex-col gap-2",children:[p.jsx(Ne,{to:t===ut.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:p.jsx(ht,{variant:"secondary",size:"sm",className:"bg-teritary w-full text-on_teritary hover:bg-teritary/90",children:t==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(Ne,{to:"/become-sponsor",children:p.jsx(ht,{variant:"secondary",size:"sm",className:"bg-primary w-full text-white hover:bg-primary/90",children:t==="ru"?"Стать спонсором":"Become a sponsor"})})]}),p.jsx("hr",{className:"border-slate-500/20 my-8"}),p.jsx("div",{className:"flex flex-col gap-6",children:r.map(i=>i.drop?p.jsx(Tc,{className:"w-full",triggerClassName:"justify-between",color:"black",dropDownContent:i.dropDownContent,title:i.title},i.title):p.jsx(Ne,{target:i.blank??"",className:"py-2",to:i.link||"",onClick:()=>s(!1),children:i.title},i.title))})]})]})},B1=()=>{const e=Ce(s=>s.lang),{t}=yi("nav"),n=t("navigation",{returnObjects:!0});return p.jsxs("header",{children:[p.jsx("div",{className:"h-12 hidden lg:flex bg-sur text-surface-bg items-center overflow-hidden",children:p.jsxs(Ye,{className:"flex items-center justify-between",children:[p.jsxs("div",{className:"gap-8 flex items-center justify-between",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(zx,{}),p.jsx("h4",{className:"text-sm",children:e==="ru"?"Ашхабад, Туркменистан":"Ashgabat, Turkmenistan"})]}),p.jsx("nav",{className:"flex items-center gap-6",children:n.slice(0,3).map(s=>s.drop?p.jsx(Tc,{color:"black",dropDownContent:s.dropDownContent,title:s.title},s.title):p.jsx(Ne,{target:s.blank?"_blank":"",className:"py-2",to:s.link||"",children:s.title},s.title))})]}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(qx,{size:16,strokeWidth:"3px"}),p.jsx("h4",{className:"text-sm",children:"+99371871812"})]}),p.jsx(Sf,{className:"!text-on_surface"})]})]})}),p.jsx("div",{className:"bg-primary py-2 flex items-center justify-between h-20 overflow-hidden",children:p.jsxs(Ye,{className:"flex items-center justify-between ",children:[p.jsxs("div",{className:"flex items-center gap-8",children:[p.jsx(Ne,{to:"/",children:p.jsx(ap,{})}),p.jsx("nav",{className:"lg:flex hidden items-center gap-6 text-white",children:n.slice(3,6).map(s=>s.drop?p.jsx(Tc,{dropDownContent:s.dropDownContent,title:s.title,color:"white"},s.title):p.jsx(Ne,{className:"py-2",to:s.link||"",children:s.title},s.title))})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx(Sf,{className:"lg:hidden",light:!0}),p.jsx(t1,{})]}),p.jsxs("div",{className:"lg:flex hidden items-center gap-2",children:[p.jsx(Ne,{to:e===ut.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:p.jsx(ht,{variant:"secondary",size:"sm",className:"bg-white text-primary hover:bg-white/90",children:e==="ru"?"Официальная поддержка":"Official Support"})}),p.jsx(Ne,{to:"/become-sponsor",children:p.jsx(ht,{variant:"secondary",size:"sm",className:"bg-teritary text-white hover:bg-teritary/90",children:e==="ru"?"Стать спонсором":"Become a sponsor"})})]})]})})]})},U1=()=>{const e=Ce(t=>t.lang);return p.jsxs("footer",{children:[p.jsx(Ry,{}),p.jsx("div",{className:"py-5 bg-primary",children:p.jsxs(Ye,{className:"flex flex-col gap-6",children:[p.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:items-end md:justify-between items-center",children:[p.jsx(ap,{}),p.jsxs("div",{className:"flex items-center gap-6",children:[p.jsx(Ne,{target:"_blank",to:"https://www.facebook.com/profile.php?id=61567254728028",children:p.jsx(Vx,{className:"text-white"})}),p.jsx(Ne,{target:"_blank",to:"https://www.instagram.com/turkmenexpo_tm?igsh=bnhkOWpmNWcwcHBq",children:p.jsx("img",{src:"/inst.svg"})}),p.jsx(Ne,{target:"_blank",to:"https://www.linkedin.com/company/turkmen-expo",children:p.jsx("img",{src:"/in.svg"})}),p.jsx(Ne,{target:"_blank",to:"https://x.com/turkmenexpo?t=D-XSa8d0AC8GAv5peAzteA&s=09",children:p.jsx("img",{src:"/x.svg"})})]})]}),p.jsx("hr",{className:"border-white/50"}),p.jsx("h5",{className:"text-base text-center normal text-white",children:e===ut.RU?"©2025 Все права защищены":"All rights reserved"})]})})]})},Ye=({className:e,children:t})=>p.jsx("div",{className:K("w-full mx-auto max-w-[1240px] px-4",e),children:t}),$1=({title:e})=>p.jsxs("div",{className:"relative flex items-center h-[116px] md:h-[216px] w-full justify-center",children:[p.jsx("img",{src:"/cover.png",className:"-z-10 absolute size-full object-cover top-0 left-0"}),p.jsx("h1",{className:"text-on_primary md:text-5xl text-3xl",children:e})]});export{yi as $,o1 as A,og as B,Ye as C,ut as D,ag as E,U1 as F,m1 as G,B1 as H,ht as I,a1 as J,ZT as K,_s as L,FE as M,p1 as N,u1 as O,it as P,g1 as Q,Ve as R,ar as S,$1 as T,h1 as U,j1 as V,R1 as W,k1 as X,N1 as Y,O1 as Z,x1 as _,qn as a,Gh as a0,b1 as a1,Wk as a2,Hk as a3,P1 as a4,T1 as a5,c1 as a6,S1 as a7,_1 as a8,C1 as a9,v1 as aa,E1 as ab,A1 as ac,D1 as b,K as c,F1 as d,V1 as e,I1 as f,w1 as g,L1 as h,l1 as i,p as j,M1 as k,Uc as l,Bt as m,hh as n,jn as o,gt as p,Hi as q,cr as r,YC as s,$o as t,Ce as u,Fr as v,dt as w,QT as x,ig as y,Ef as z};