const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/GynaekologieV3-DyJK2u_v.js","assets/ParallaxBanner-BxqneJh3.js","assets/accordion-u2gCcDSd.js","assets/stethoscope-BqFlZC8w.js","assets/book-open-Dtut5mzR.js","assets/droplets-Uumkvig_.js","assets/microscope-DTxvnEC-.js","assets/Praxisbedarf-BqU14Lrf.js","assets/heart-pulse-BgAQrZEr.js","assets/shopping-cart-BesT1qsH.js","assets/clock-CIqu643K.js","assets/zap-BCOMHqxB.js","assets/file-text-DwvYmYv_.js","assets/Sprechstundenbedarf-4K5giwev.js","assets/TechnischerService-DahR-sE4.js","assets/settings-CXXn-P3j.js","assets/Praxisplanung-BpQr7Dmk.js","assets/layers-B5GJHrzb.js","assets/Praxisportal-P6RdGjoc.js","assets/lock--MOBP_iM.js","assets/Hygienemanagement-BtwQNPws.js","assets/clipboard-list-B_EFPYHl.js","assets/trending-up-EbVBWm0A.js","assets/graduation-cap-cA5jg22d.js","assets/star-DXIcAMtT.js","assets/Praxisgruendung-BHuU9HMZ.js","assets/lamp-BI60ihIr.js","assets/Kontakt-D7geKcv3.js","assets/circle-check-CLeWmP8f.js","assets/circle-alert-CVckimZ1.js","assets/MediMatic-Dgc9LecP.js","assets/VitalographPneumotrac-CWqjAAq-.js","assets/wind-D9hSgdQc.js","assets/wifi-CgwFkLRl.js","assets/printer-CA5zmCap.js","assets/VitalographAlphaConnect-BJpfCPWd.js","assets/download-Dz9pQNTy.js","assets/chevron-up-pNU7P72a.js","assets/BosoTM2450-C2VphyTi.js","assets/MelagVacuklav-CwzOdTF2.js","assets/chart-column-Bi7ZH2lu.js","assets/MieleThermodesinfektor-Dk8OaLQK.js","assets/thermometer-Cugnk_nw.js","assets/EdanF3Ctg-ir0EEzGu.js","assets/Impressum-Bv6JpxHC.js","assets/UnserTeam-CW9F8Qod.js","assets/car-DmEdFPb4.js","assets/eye-C5piCtxZ.js","assets/UnserTeam-CIGW-MKW.css","assets/Karriere-C3mOpTDn.js","assets/Aufbereitung-BKxrKmCK.js","assets/Autoklaven-BhR948mZ.js","assets/Thermodesinfektoren-C9qQ5dJW.js","assets/Medizintechnik-DETvNEfd.js","assets/OPLeuchten-D7IT8oKc.js","assets/Chirurgie-BJW5W5As.js","assets/Kreditorenbuchhalter-BrJrqdH2.js","assets/calendar-DS3kwB_I.js","assets/FahrerMontagetechniker-BW0QyZpM.js","assets/MieleHnoExtra-BSrMv9ZA.js","assets/Retouren-D9DaqLKw.js","assets/circle-x-C9ERLPxT.js","assets/GynStuehle-DDI7qUN0.js","assets/settings-2-CtcCe7XR.js","assets/AdminLogin-GrIrBbx5.js","assets/useAdminAuth-bbM0ohMX.js","assets/eye-off-C0jush3B.js","assets/AdminPanel-BnN1JeRI.js","assets/AdminLayout-CVk25F1y.js","assets/circle-l3KodrAy.js","assets/trash-2-Du9xBZBA.js","assets/plus-CoCqs-To.js","assets/save-CQgfO0OS.js","assets/toggle-right-CJ7BcGsu.js","assets/GynNewsAdmin-Bw5J4JK7.js","assets/SearchIndexAdmin-C2QkjWgX.js","assets/info-BC2ju4eN.js","assets/RetourenAdmin-KBGo8tIl.js","assets/KatalogBestellungenAdmin-CrRqFXaV.js","assets/EmailEinstellungenAdmin-CzZhuyra.js","assets/EmailLogAdmin-Ds9cjbBf.js","assets/SeoReportAdmin-BY6C-VJY.js"])))=>i.map(i=>d[i]);
function ZC(e,t){for(var a=0;a<t.length;a++){const r=t[a];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const c=Object.getOwnPropertyDescriptor(r,o);c&&Object.defineProperty(e,o,c.get?c:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function a(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(o){if(o.ep)return;o.ep=!0;const c=a(o);fetch(o.href,c)}})();var CH=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lh={exports:{}},qo={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Kx;function GC(){if(Kx)return qo;Kx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var d in o)d!=="key"&&(c[d]=o[d])}else c=o;return o=c.ref,{$$typeof:e,type:r,key:u,ref:o!==void 0?o:null,props:c}}return qo.Fragment=t,qo.jsx=a,qo.jsxs=a,qo}var Ix;function FC(){return Ix||(Ix=1,Lh.exports=GC()),Lh.exports}var g=FC(),mr=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(){}},QC={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},YC=class{#t=QC;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},ar=new YC;function XC(e){setTimeout(e,0)}var cr=typeof window>"u"||"Deno"in globalThis;function Dt(){}function WC(e,t){return typeof e=="function"?e(t):e}function _p(e){return typeof e=="number"&&e>=0&&e!==1/0}function Xw(e,t){return Math.max(e+(t||0)-Date.now(),0)}function bs(e,t){return typeof e=="function"?e(t):e}function Nn(e,t){return typeof e=="function"?e(t):e}function $x(e,t){const{type:a="all",exact:r,fetchStatus:o,predicate:c,queryKey:u,stale:d}=e;if(u){if(r){if(t.queryHash!==km(u,t.options))return!1}else if(!il(t.queryKey,u))return!1}if(a!=="all"){const h=t.isActive();if(a==="active"&&!h||a==="inactive"&&h)return!1}return!(typeof d=="boolean"&&t.isStale()!==d||o&&o!==t.state.fetchStatus||c&&!c(t))}function Zx(e,t){const{exact:a,status:r,predicate:o,mutationKey:c}=e;if(c){if(!t.options.mutationKey)return!1;if(a){if(ws(t.options.mutationKey)!==ws(c))return!1}else if(!il(t.options.mutationKey,c))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function km(e,t){return(t?.queryKeyHashFn||ws)(e)}function ws(e){return JSON.stringify(e,(t,a)=>Ap(a)?Object.keys(a).sort().reduce((r,o)=>(r[o]=a[o],r),{}):a)}function il(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(a=>il(e[a],t[a])):!1}var JC=Object.prototype.hasOwnProperty;function zm(e,t){if(e===t)return e;const a=Gx(e)&&Gx(t);if(!a&&!(Ap(e)&&Ap(t)))return t;const o=(a?e:Object.keys(e)).length,c=a?t:Object.keys(t),u=c.length,d=a?new Array(u):{};let h=0;for(let p=0;p<u;p++){const v=a?p:c[p],y=e[v],b=t[v];if(y===b){d[v]=y,(a?p<o:JC.call(e,v))&&h++;continue}if(y===null||b===null||typeof y!="object"||typeof b!="object"){d[v]=b;continue}const w=zm(y,b);d[v]=w,w===y&&h++}return o===u&&h===o?e:d}function ol(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const a in e)if(e[a]!==t[a])return!1;return!0}function Gx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ap(e){if(!Fx(e))return!1;const t=e.constructor;if(t===void 0)return!0;const a=t.prototype;return!(!Fx(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Fx(e){return Object.prototype.toString.call(e)==="[object Object]"}function eO(e){return new Promise(t=>{ar.setTimeout(t,e)})}function Cp(e,t,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,t):a.structuralSharing!==!1?zm(e,t):t}function tO(e,t,a=0){const r=[...e,t];return a&&r.length>a?r.slice(1):r}function nO(e,t,a=0){const r=[t,...e];return a&&r.length>a?r.slice(0,-1):r}var mn=Symbol();function Ww(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===mn?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Jw(e,t){return typeof e=="function"?e(...t):!!e}var aO=class extends mr{#t;#e;#n;constructor(){super(),this.#n=e=>{if(!cr&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Rm=new aO;function Op(){let e,t;const a=new Promise((o,c)=>{e=o,t=c});a.status="pending",a.catch(()=>{});function r(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},a.reject=o=>{r({status:"rejected",reason:o}),t(o)},a}var sO=XC;function rO(){let e=[],t=0,a=d=>{d()},r=d=>{d()},o=sO;const c=d=>{t?e.push(d):o(()=>{a(d)})},u=()=>{const d=e;e=[],d.length&&o(()=>{r(()=>{d.forEach(h=>{a(h)})})})};return{batch:d=>{let h;t++;try{h=d()}finally{t--,t||u()}return h},batchCalls:d=>(...h)=>{c(()=>{d(...h)})},schedule:c,setNotifyFunction:d=>{a=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}var it=rO(),iO=class extends mr{#t=!0;#e;#n;constructor(){super(),this.#n=e=>{if(!cr&&window.addEventListener){const t=()=>e(!0),a=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#n=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(a=>{a(e)}))}isOnline(){return this.#t}},Cu=new iO;function oO(e){return Math.min(1e3*2**e,3e4)}function eS(e){return(e??"online")==="online"?Cu.isOnline():!0}var jp=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function tS(e){let t=!1,a=0,r;const o=Op(),c=()=>o.status!=="pending",u=_=>{if(!c()){const k=new jp(_);b(k),e.onCancel?.(k)}},d=()=>{t=!0},h=()=>{t=!1},p=()=>Rm.isFocused()&&(e.networkMode==="always"||Cu.isOnline())&&e.canRun(),v=()=>eS(e.networkMode)&&e.canRun(),y=_=>{c()||(r?.(),o.resolve(_))},b=_=>{c()||(r?.(),o.reject(_))},w=()=>new Promise(_=>{r=k=>{(c()||p())&&_(k)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),T=()=>{if(c())return;let _;const k=a===0?e.initialPromise:void 0;try{_=k??e.fn()}catch(M){_=Promise.reject(M)}Promise.resolve(_).then(y).catch(M=>{if(c())return;const L=e.retry??(cr?0:3),A=e.retryDelay??oO,U=typeof A=="function"?A(a,M):A,B=L===!0||typeof L=="number"&&a<L||typeof L=="function"&&L(a,M);if(t||!B){b(M);return}a++,e.onFail?.(a,M),eO(U).then(()=>p()?void 0:w()).then(()=>{t?b(M):T()})})};return{promise:o,status:()=>o.status,cancel:u,continue:()=>(r?.(),o),cancelRetry:d,continueRetry:h,canStart:v,start:()=>(v()?T():w().then(T),o)}}var nS=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),_p(this.gcTime)&&(this.#t=ar.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(cr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(ar.clearTimeout(this.#t),this.#t=void 0)}},lO=class extends nS{#t;#e;#n;#s;#a;#r;#o;constructor(e){super(),this.#o=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#n=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Qx(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Qx(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const a=Cp(this.state.data,e,this.options);return this.#i({data:a,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),a}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Dt).catch(Dt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Nn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>bs(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Xw(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const d=this.observers.find(h=>h.options.queryFn);d&&this.setOptions(d.options)}const a=new AbortController,r=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#o=!0,a.signal)})},o=()=>{const d=Ww(this.options,t),p=(()=>{const v={client:this.#s,queryKey:this.queryKey,meta:this.meta};return r(v),v})();return this.#o=!1,this.options.persister?this.options.persister(d,p,this):d(p)},u=(()=>{const d={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return r(d),d})();this.options.behavior?.onFetch(u,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=tS({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:d=>{d instanceof jp&&d.revert&&this.setState({...this.#e,fetchStatus:"idle"}),a.abort()},onFail:(d,h)=>{this.#i({type:"failed",failureCount:d,error:h})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof jp){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(e){const t=a=>{switch(e.type){case"failed":return{...a,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...aS(a.data,this.options),fetchMeta:e.meta??null};case"success":const r={...a,data:e.data,dataUpdateCount:a.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?r:void 0,r;case"error":const o=e.error;return{...a,error:o,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...e.state}}};this.state=t(this.state),it.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function aS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:eS(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Qx(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,a=t!==void 0,r=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:a?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var El=class extends mr{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=Op(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#n=void 0;#s=void 0;#a;#r;#o;#i;#h;#d;#f;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Yx(this.#e,this.options)?this.#p():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Mp(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Mp(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,a=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),t._defaulted&&!ol(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const r=this.hasListeners();r&&Xx(this.#e,a,this.options,t)&&this.#p(),this.updateResult(),r&&(this.#e!==a||Nn(this.options.enabled,this.#e)!==Nn(t.enabled,this.#e)||bs(this.options.staleTime,this.#e)!==bs(t.staleTime,this.#e))&&this.#g();const o=this.#y();r&&(this.#e!==a||Nn(this.options.enabled,this.#e)!==Nn(t.enabled,this.#e)||o!==this.#l)&&this.#v(o)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),a=this.createResult(t,e);return uO(this,a)&&(this.#s=a,this.#r=this.options,this.#a=this.#e.state),a}getCurrentResult(){return this.#s}trackResult(e,t){return new Proxy(e,{get:(a,r)=>(this.trackProp(r),t?.(r),r==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(a,r))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),a=this.#t.getQueryCache().build(this.#t,t);return a.fetch().then(()=>this.createResult(a,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#p(e){this.#S();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Dt)),t}#g(){this.#b();const e=bs(this.options.staleTime,this.#e);if(cr||this.#s.isStale||!_p(e))return;const a=Xw(this.#s.dataUpdatedAt,e)+1;this.#c=ar.setTimeout(()=>{this.#s.isStale||this.updateResult()},a)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#l=e,!(cr||Nn(this.options.enabled,this.#e)===!1||!_p(this.#l)||this.#l===0)&&(this.#u=ar.setInterval(()=>{(this.options.refetchIntervalInBackground||Rm.isFocused())&&this.#p()},this.#l))}#x(){this.#g(),this.#v(this.#y())}#b(){this.#c&&(ar.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(ar.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const a=this.#e,r=this.options,o=this.#s,c=this.#a,u=this.#r,h=e!==a?e.state:this.#n,{state:p}=e;let v={...p},y=!1,b;if(t._optimisticResults){const R=this.hasListeners(),X=!R&&Yx(e,t),J=R&&Xx(e,a,t,r);(X||J)&&(v={...v,...aS(p.data,e.options)}),t._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:w,errorUpdatedAt:T,status:_}=v;b=v.data;let k=!1;if(t.placeholderData!==void 0&&b===void 0&&_==="pending"){let R;o?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(R=o.data,k=!0):R=typeof t.placeholderData=="function"?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,R!==void 0&&(_="success",b=Cp(o?.data,R,t),y=!0)}if(t.select&&b!==void 0&&!k)if(o&&b===c?.data&&t.select===this.#h)b=this.#d;else try{this.#h=t.select,b=t.select(b),b=Cp(o?.data,b,t),this.#d=b,this.#i=null}catch(R){this.#i=R}this.#i&&(w=this.#i,b=this.#d,T=Date.now(),_="error");const M=v.fetchStatus==="fetching",L=_==="pending",A=_==="error",U=L&&M,B=b!==void 0,C={status:_,fetchStatus:v.fetchStatus,isPending:L,isSuccess:_==="success",isError:A,isInitialLoading:U,isLoading:U,data:b,dataUpdatedAt:v.dataUpdatedAt,error:w,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>h.dataUpdateCount||v.errorUpdateCount>h.errorUpdateCount,isFetching:M,isRefetching:M&&!L,isLoadingError:A&&!B,isPaused:v.fetchStatus==="paused",isPlaceholderData:y,isRefetchError:A&&B,isStale:Dm(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Nn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const R=re=>{C.status==="error"?re.reject(C.error):C.data!==void 0&&re.resolve(C.data)},X=()=>{const re=this.#o=C.promise=Op();R(re)},J=this.#o;switch(J.status){case"pending":e.queryHash===a.queryHash&&R(J);break;case"fulfilled":(C.status==="error"||C.data!==J.value)&&X();break;case"rejected":(C.status!=="error"||C.error!==J.reason)&&X();break}}return C}updateResult(){const e=this.#s,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#r=this.options,this.#a.data!==void 0&&(this.#f=this.#e),ol(t,e))return;this.#s=t;const a=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,o=typeof r=="function"?r():r;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#s).some(u=>{const d=u;return this.#s[d]!==e[d]&&c.has(d)})};this.#E({listeners:a()})}#S(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#E(e){it.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#s)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function cO(e,t){return Nn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Yx(e,t){return cO(e,t)||e.state.data!==void 0&&Mp(e,t,t.refetchOnMount)}function Mp(e,t,a){if(Nn(t.enabled,e)!==!1&&bs(t.staleTime,e)!=="static"){const r=typeof a=="function"?a(e):a;return r==="always"||r!==!1&&Dm(e,t)}return!1}function Xx(e,t,a,r){return(e!==t||Nn(r.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&Dm(e,a)}function Dm(e,t){return Nn(t.enabled,e)!==!1&&e.isStaleByTime(bs(t.staleTime,e))}function uO(e,t){return!ol(e.getCurrentResult(),t)}function Ou(e){return{onFetch:(t,a)=>{const r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,c=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let d={pages:[],pageParams:[]},h=0;const p=async()=>{let v=!1;const y=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(t.signal.aborted?v=!0:t.signal.addEventListener("abort",()=>{v=!0}),t.signal)})},b=Ww(t.options,t.fetchOptions),w=async(T,_,k)=>{if(v)return Promise.reject();if(_==null&&T.pages.length)return Promise.resolve(T);const L=(()=>{const V={client:t.client,queryKey:t.queryKey,pageParam:_,direction:k?"backward":"forward",meta:t.options.meta};return y(V),V})(),A=await b(L),{maxPages:U}=t.options,B=k?nO:tO;return{pages:B(T.pages,A,U),pageParams:B(T.pageParams,_,U)}};if(o&&c.length){const T=o==="backward",_=T?sS:Np,k={pages:c,pageParams:u},M=_(r,k);d=await w(k,M,T)}else{const T=e??c.length;do{const _=h===0?u[0]??r.initialPageParam:Np(r,d);if(h>0&&_==null)break;d=await w(d,_),h++}while(h<T)}return d};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},a):t.fetchFn=p}}}function Np(e,{pages:t,pageParams:a}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,a[r],a):void 0}function sS(e,{pages:t,pageParams:a}){return t.length>0?e.getPreviousPageParam?.(t[0],t,a[0],a):void 0}function dO(e,t){return t?Np(e,t)!=null:!1}function fO(e,t){return!t||!e.getPreviousPageParam?!1:sS(e,t)!=null}var rS=class extends El{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:Ou()})}getOptimisticResult(e){return e.behavior=Ou(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:a}=e,r=super.createResult(e,t),{isFetching:o,isRefetching:c,isError:u,isRefetchError:d}=r,h=a.fetchMeta?.fetchMore?.direction,p=u&&h==="forward",v=o&&h==="forward",y=u&&h==="backward",b=o&&h==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:dO(t,a.data),hasPreviousPage:fO(t,a.data),isFetchNextPageError:p,isFetchingNextPage:v,isFetchPreviousPageError:y,isFetchingPreviousPage:b,isRefetchError:d&&!p&&!y,isRefetching:c&&!v&&!b}}},hO=class extends nS{#t;#e;#n;#s;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#e=[],this.state=e.state||iS(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#s?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},a={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#s=tS({fn:()=>this.options.mutationFn?this.options.mutationFn(e,a):Promise.reject(new Error("No mutationFn found")),onFail:(c,u)=>{this.#a({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const r=this.state.status==="pending",o=!this.#s.canStart();try{if(r)t();else{this.#a({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,a);const u=await this.options.onMutate?.(e,a);u!==this.state.context&&this.#a({type:"pending",context:u,variables:e,isPaused:o})}const c=await this.#s.start();return await this.#n.config.onSuccess?.(c,e,this.state.context,this,a),await this.options.onSuccess?.(c,e,this.state.context,a),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(c,null,e,this.state.context,a),this.#a({type:"success",data:c}),c}catch(c){try{throw await this.#n.config.onError?.(c,e,this.state.context,this,a),await this.options.onError?.(c,e,this.state.context,a),await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,a),await this.options.onSettled?.(void 0,c,e,this.state.context,a),c}finally{this.#a({type:"error",error:c})}}finally{this.#n.runNext(this)}}#a(e){const t=a=>{switch(e.type){case"failed":return{...a,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...a,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:e.error,failureCount:a.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),it.batch(()=>{this.#e.forEach(a=>{a.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function iS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pO=class extends mr{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(e,t,a){const r=new hO({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:a});return this.add(r),r}add(e){this.#t.add(e);const t=Fc(e);if(typeof t=="string"){const a=this.#e.get(t);a?a.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Fc(e);if(typeof t=="string"){const a=this.#e.get(t);if(a)if(a.length>1){const r=a.indexOf(e);r!==-1&&a.splice(r,1)}else a[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Fc(e);if(typeof t=="string"){const r=this.#e.get(t)?.find(o=>o.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Fc(e);return typeof t=="string"?this.#e.get(t)?.find(r=>r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){it.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(a=>Zx(t,a))}findAll(e={}){return this.getAll().filter(t=>Zx(e,t))}notify(e){it.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return it.batch(()=>Promise.all(e.map(t=>t.continue().catch(Dt))))}};function Fc(e){return e.options.scope?.id}var mO=class extends mr{#t;#e=void 0;#n;#s;constructor(t,a){super(),this.#t=t,this.setOptions(a),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const a=this.options;this.options=this.#t.defaultMutationOptions(t),ol(this.options,a)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),a?.mutationKey&&this.options.mutationKey&&ws(a.mutationKey)!==ws(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#r(t)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#r()}mutate(t,a){return this.#s=a,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(t)}#a(){const t=this.#n?.state??iS();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#r(t){it.batch(()=>{if(this.#s&&this.hasListeners()){const a=this.#e.variables,r=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#s.onSuccess?.(t.data,a,r,o),this.#s.onSettled?.(t.data,null,a,r,o)):t?.type==="error"&&(this.#s.onError?.(t.error,a,r,o),this.#s.onSettled?.(void 0,t.error,a,r,o))}this.listeners.forEach(a=>{a(this.#e)})})}};function Wx(e,t){const a=new Set(t);return e.filter(r=>!a.has(r))}function gO(e,t,a){const r=e.slice(0);return r[t]=a,r}var yO=class extends mr{#t;#e;#n;#s;#a;#r;#o;#i;#h=[];constructor(e,t,a){super(),this.#t=e,this.#s=a,this.#n=[],this.#a=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(e=>{e.subscribe(t=>{this.#u(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#s=t,it.batch(()=>{const a=this.#a,r=this.#c(this.#n);this.#h=r,r.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const o=r.map(v=>v.observer),c=o.map(v=>v.getCurrentResult()),u=a.length!==o.length,d=o.some((v,y)=>v!==a[y]),h=u||d,p=h?!0:c.some((v,y)=>{const b=this.#e[y];return!b||!ol(v,b)});!h&&!p||(h&&(this.#a=o),this.#e=c,this.hasListeners()&&(h&&(Wx(a,o).forEach(v=>{v.destroy()}),Wx(o,a).forEach(v=>{v.subscribe(y=>{this.#u(v,y)})})),this.#l()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){const a=this.#c(e),r=a.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[r,o=>this.#f(o??r,t),()=>this.#d(r,a)]}#d(e,t){return t.map((a,r)=>{const o=e[r];return a.defaultedQueryOptions.notifyOnChangeProps?o:a.observer.trackResult(o,c=>{t.forEach(u=>{u.observer.trackProp(c)})})})}#f(e,t){return t?((!this.#r||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#r=zm(this.#r,t(e))),this.#r):e}#c(e){const t=new Map(this.#a.map(r=>[r.options.queryHash,r])),a=[];return e.forEach(r=>{const o=this.#t.defaultQueryOptions(r),c=t.get(o.queryHash);c?a.push({defaultedQueryOptions:o,observer:c}):a.push({defaultedQueryOptions:o,observer:new El(this.#t,o)})}),a}#u(e,t){const a=this.#a.indexOf(e);a!==-1&&(this.#e=gO(this.#e,a,t),this.#l())}#l(){if(this.hasListeners()){const e=this.#r,t=this.#d(this.#e,this.#h),a=this.#f(t,this.#s?.combine);e!==a&&it.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}},vO=class extends mr{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,a){const r=t.queryKey,o=t.queryHash??km(r,t);let c=this.get(o);return c||(c=new lO({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:a,defaultOptions:e.getQueryDefaults(r)}),this.add(c)),c}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){it.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(a=>$x(t,a))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(a=>$x(e,a)):t}notify(e){it.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){it.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){it.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},xO=class{#t;#e;#n;#s;#a;#r;#o;#i;constructor(e={}){this.#t=e.queryCache||new vO,this.#e=e.mutationCache||new pO,this.#n=e.defaultOptions||{},this.#s=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=Rm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Cu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),a=this.#t.build(this,t),r=a.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(bs(t.staleTime,a))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:a})=>{const r=a.data;return[t,r]})}setQueryData(e,t,a){const r=this.defaultQueryOptions({queryKey:e}),c=this.#t.get(r.queryHash)?.state.data,u=WC(t,c);if(u!==void 0)return this.#t.build(this,r).setData(u,{...a,manual:!0})}setQueriesData(e,t,a){return it.batch(()=>this.#t.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,a)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;it.batch(()=>{t.findAll(e).forEach(a=>{t.remove(a)})})}resetQueries(e,t){const a=this.#t;return it.batch(()=>(a.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const a={revert:!0,...t},r=it.batch(()=>this.#t.findAll(e).map(o=>o.cancel(a)));return Promise.all(r).then(Dt).catch(Dt)}invalidateQueries(e,t={}){return it.batch(()=>(this.#t.findAll(e).forEach(a=>{a.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const a={...t,cancelRefetch:t.cancelRefetch??!0},r=it.batch(()=>this.#t.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,a);return a.throwOnError||(c=c.catch(Dt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(r).then(Dt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const a=this.#t.build(this,t);return a.isStaleByTime(bs(t.staleTime,a))?a.fetch(t):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Dt).catch(Dt)}fetchInfiniteQuery(e){return e.behavior=Ou(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Dt).catch(Dt)}ensureInfiniteQueryData(e){return e.behavior=Ou(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#s.set(ws(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#s.values()],a={};return t.forEach(r=>{il(e,r.queryKey)&&Object.assign(a,r.defaultOptions)}),a}setMutationDefaults(e,t){this.#a.set(ws(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],a={};return t.forEach(r=>{il(e,r.mutationKey)&&Object.assign(a,r.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=km(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===mn&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Bh={exports:{}},Ee={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Jx;function bO(){if(Jx)return Ee;Jx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function w(j){return j===null||typeof j!="object"?null:(j=b&&j[b]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,k={};function M(j,G,I){this.props=j,this.context=G,this.refs=k,this.updater=I||T}M.prototype.isReactComponent={},M.prototype.setState=function(j,G){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,G,"setState")},M.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function L(){}L.prototype=M.prototype;function A(j,G,I){this.props=j,this.context=G,this.refs=k,this.updater=I||T}var U=A.prototype=new L;U.constructor=A,_(U,M.prototype),U.isPureReactComponent=!0;var B=Array.isArray;function V(){}var C={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function X(j,G,I){var F=I.ref;return{$$typeof:e,type:j,key:G,ref:F!==void 0?F:null,props:I}}function J(j,G){return X(j.type,G,j.props)}function re(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function te(j){var G={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(I){return G[I]})}var le=/\/+/g;function ie(j,G){return typeof j=="object"&&j!==null&&j.key!=null?te(""+j.key):G.toString(36)}function ue(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(V,V):(j.status="pending",j.then(function(G){j.status==="pending"&&(j.status="fulfilled",j.value=G)},function(G){j.status==="pending"&&(j.status="rejected",j.reason=G)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function O(j,G,I,F,ae){var me=typeof j;(me==="undefined"||me==="boolean")&&(j=null);var de=!1;if(j===null)de=!0;else switch(me){case"bigint":case"string":case"number":de=!0;break;case"object":switch(j.$$typeof){case e:case t:de=!0;break;case v:return de=j._init,O(de(j._payload),G,I,F,ae)}}if(de)return ae=ae(j),de=F===""?"."+ie(j,0):F,B(ae)?(I="",de!=null&&(I=de.replace(le,"$&/")+"/"),O(ae,G,I,"",function(_t){return _t})):ae!=null&&(re(ae)&&(ae=J(ae,I+(ae.key==null||j&&j.key===ae.key?"":(""+ae.key).replace(le,"$&/")+"/")+de)),G.push(ae)),1;de=0;var be=F===""?".":F+":";if(B(j))for(var De=0;De<j.length;De++)F=j[De],me=be+ie(F,De),de+=O(F,G,I,me,ae);else if(De=w(j),typeof De=="function")for(j=De.call(j),De=0;!(F=j.next()).done;)F=F.value,me=be+ie(F,De++),de+=O(F,G,I,me,ae);else if(me==="object"){if(typeof j.then=="function")return O(ue(j),G,I,F,ae);throw G=String(j),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return de}function D(j,G,I){if(j==null)return j;var F=[],ae=0;return O(j,F,"","",function(me){return G.call(I,me,ae++)}),F}function P(j){if(j._status===-1){var G=j._result;G=G(),G.then(function(I){(j._status===0||j._status===-1)&&(j._status=1,j._result=I)},function(I){(j._status===0||j._status===-1)&&(j._status=2,j._result=I)}),j._status===-1&&(j._status=0,j._result=G)}if(j._status===1)return j._result.default;throw j._result}var ne=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},oe={map:D,forEach:function(j,G,I){D(j,function(){G.apply(this,arguments)},I)},count:function(j){var G=0;return D(j,function(){G++}),G},toArray:function(j){return D(j,function(G){return G})||[]},only:function(j){if(!re(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ee.Activity=y,Ee.Children=oe,Ee.Component=M,Ee.Fragment=a,Ee.Profiler=o,Ee.PureComponent=A,Ee.StrictMode=r,Ee.Suspense=h,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(j){return C.H.useMemoCache(j)}},Ee.cache=function(j){return function(){return j.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(j,G,I){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var F=_({},j.props),ae=j.key;if(G!=null)for(me in G.key!==void 0&&(ae=""+G.key),G)!R.call(G,me)||me==="key"||me==="__self"||me==="__source"||me==="ref"&&G.ref===void 0||(F[me]=G[me]);var me=arguments.length-2;if(me===1)F.children=I;else if(1<me){for(var de=Array(me),be=0;be<me;be++)de[be]=arguments[be+2];F.children=de}return X(j.type,ae,F)},Ee.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},Ee.createElement=function(j,G,I){var F,ae={},me=null;if(G!=null)for(F in G.key!==void 0&&(me=""+G.key),G)R.call(G,F)&&F!=="key"&&F!=="__self"&&F!=="__source"&&(ae[F]=G[F]);var de=arguments.length-2;if(de===1)ae.children=I;else if(1<de){for(var be=Array(de),De=0;De<de;De++)be[De]=arguments[De+2];ae.children=be}if(j&&j.defaultProps)for(F in de=j.defaultProps,de)ae[F]===void 0&&(ae[F]=de[F]);return X(j,me,ae)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(j){return{$$typeof:d,render:j}},Ee.isValidElement=re,Ee.lazy=function(j){return{$$typeof:v,_payload:{_status:-1,_result:j},_init:P}},Ee.memo=function(j,G){return{$$typeof:p,type:j,compare:G===void 0?null:G}},Ee.startTransition=function(j){var G=C.T,I={};C.T=I;try{var F=j(),ae=C.S;ae!==null&&ae(I,F),typeof F=="object"&&F!==null&&typeof F.then=="function"&&F.then(V,ne)}catch(me){ne(me)}finally{G!==null&&I.types!==null&&(G.types=I.types),C.T=G}},Ee.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},Ee.use=function(j){return C.H.use(j)},Ee.useActionState=function(j,G,I){return C.H.useActionState(j,G,I)},Ee.useCallback=function(j,G){return C.H.useCallback(j,G)},Ee.useContext=function(j){return C.H.useContext(j)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(j,G){return C.H.useDeferredValue(j,G)},Ee.useEffect=function(j,G){return C.H.useEffect(j,G)},Ee.useEffectEvent=function(j){return C.H.useEffectEvent(j)},Ee.useId=function(){return C.H.useId()},Ee.useImperativeHandle=function(j,G,I){return C.H.useImperativeHandle(j,G,I)},Ee.useInsertionEffect=function(j,G){return C.H.useInsertionEffect(j,G)},Ee.useLayoutEffect=function(j,G){return C.H.useLayoutEffect(j,G)},Ee.useMemo=function(j,G){return C.H.useMemo(j,G)},Ee.useOptimistic=function(j,G){return C.H.useOptimistic(j,G)},Ee.useReducer=function(j,G,I){return C.H.useReducer(j,G,I)},Ee.useRef=function(j){return C.H.useRef(j)},Ee.useState=function(j){return C.H.useState(j)},Ee.useSyncExternalStore=function(j,G,I){return C.H.useSyncExternalStore(j,G,I)},Ee.useTransition=function(){return C.H.useTransition()},Ee.version="19.2.1",Ee}var eb;function Qu(){return eb||(eb=1,Bh.exports=bO()),Bh.exports}var S=Qu();const se=Sl(S),oS=ZC({__proto__:null,default:se},[S]);var lS=S.createContext(void 0),Tl=e=>{const t=S.useContext(lS);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wO=({client:e,children:t})=>(S.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),g.jsx(lS.Provider,{value:e,children:t})),cS=S.createContext(!1),uS=()=>S.useContext(cS);cS.Provider;function SO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var EO=S.createContext(SO()),dS=()=>S.useContext(EO),fS=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},hS=e=>{S.useEffect(()=>{e.clearReset()},[e])},pS=({result:e,errorResetBoundary:t,throwOnError:a,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Jw(a,[e.error,r])),Pm=(e,t)=>t.state.data===void 0,mS=e=>{if(e.suspense){const a=o=>o==="static"?o:Math.max(o??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...o)=>a(r(...o)):a(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},gS=(e,t)=>e.isLoading&&e.isFetching&&!t,kp=(e,t)=>e?.suspense&&t.isPending,ju=(e,t,a)=>t.fetchOptimistic(e).catch(()=>{a.clearReset()});function yS({queries:e,...t},a){const r=Tl(a),o=uS(),c=dS(),u=S.useMemo(()=>e.map(_=>{const k=r.defaultQueryOptions(_);return k._optimisticResults=o?"isRestoring":"optimistic",k}),[e,r,o]);u.forEach(_=>{mS(_),fS(_,c)}),hS(c);const[d]=S.useState(()=>new yO(r,u,t)),[h,p,v]=d.getOptimisticResult(u,t.combine),y=!o&&t.subscribed!==!1;S.useSyncExternalStore(S.useCallback(_=>y?d.subscribe(it.batchCalls(_)):Dt,[d,y]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),S.useEffect(()=>{d.setQueries(u,t)},[u,t,d]);const w=h.some((_,k)=>kp(u[k],_))?h.flatMap((_,k)=>{const M=u[k];if(M){const L=new El(r,M);if(kp(M,_))return ju(M,L,c);gS(_,o)&&ju(M,L,c)}return[]}):[];if(w.length>0)throw Promise.all(w);const T=h.find((_,k)=>{const M=u[k];return M&&pS({result:_,errorResetBoundary:c,throwOnError:M.throwOnError,query:r.getQueryCache().get(M.queryHash),suspense:M.suspense})});if(T?.error)throw T.error;return p(v())}function Yu(e,t,a){const r=uS(),o=dS(),c=Tl(a),u=c.defaultQueryOptions(e);c.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=r?"isRestoring":"optimistic",mS(u),fS(u,o),hS(o);const d=!c.getQueryCache().get(u.queryHash),[h]=S.useState(()=>new t(c,u)),p=h.getOptimisticResult(u),v=!r&&e.subscribed!==!1;if(S.useSyncExternalStore(S.useCallback(y=>{const b=v?h.subscribe(it.batchCalls(y)):Dt;return h.updateResult(),b},[h,v]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),S.useEffect(()=>{h.setOptions(u)},[u,h]),kp(u,p))throw ju(u,h,o);if(pS({result:p,errorResetBoundary:o,throwOnError:u.throwOnError,query:c.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw p.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(u,p),u.experimental_prefetchInRender&&!cr&&gS(p,r)&&(d?ju(u,h,o):c.getQueryCache().get(u.queryHash)?.promise)?.catch(Dt).finally(()=>{h.updateResult()}),u.notifyOnChangeProps?p:h.trackResult(p)}function TO(e,t){return Yu(e,El,t)}function _O(e,t){return Yu({...e,enabled:!0,suspense:!0,throwOnError:Pm,placeholderData:void 0},El,t)}function AO(e,t){return Yu({...e,enabled:!0,suspense:!0,throwOnError:Pm},rS,t)}function CO(e,t){return yS({...e,queries:e.queries.map(a=>({...a,suspense:!0,throwOnError:Pm,enabled:!0,placeholderData:void 0}))},t)}function OO(e,t){const a=Tl(t);a.getQueryState(e.queryKey)||a.prefetchQuery(e)}function jO(e,t){const a=Tl(t);a.getQueryState(e.queryKey)||a.prefetchInfiniteQuery(e)}function MO(e,t){const a=Tl(t),[r]=S.useState(()=>new mO(a,e));S.useEffect(()=>{r.setOptions(e)},[r,e]);const o=S.useSyncExternalStore(S.useCallback(u=>r.subscribe(it.batchCalls(u)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),c=S.useCallback((u,d)=>{r.mutate(u,d).catch(Dt)},[r]);if(o.error&&Jw(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}function NO(e,t){return Yu(e,rS,t)}function ur(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function kO(){return Object.create(null)}const zO=typeof Symbol=="function"&&!!Symbol.asyncIterator;function vS(e){return zO&&ur(e)&&Symbol.asyncIterator in e}var RO=Object.create,xS=Object.defineProperty,DO=Object.getOwnPropertyDescriptor,bS=Object.getOwnPropertyNames,PO=Object.getPrototypeOf,LO=Object.prototype.hasOwnProperty,_l=(e,t)=>function(){return t||(0,e[bS(e)[0]])((t={exports:{}}).exports,t),t.exports},BO=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=bS(t),c=0,u=o.length,d;c<u;c++)d=o[c],!LO.call(e,d)&&d!==a&&xS(e,d,{get:(h=>t[h]).bind(null,d),enumerable:!(r=DO(t,d))||r.enumerable});return e},Xu=(e,t,a)=>(a=e!=null?RO(PO(e)):{},BO(xS(a,"default",{value:e,enumerable:!0}),e));const wS=()=>{},tb=e=>{Object.freeze&&Object.freeze(e)};function SS(e,t,a){var r;const o=t.join(".");return(r=a[o])!==null&&r!==void 0||(a[o]=new Proxy(wS,{get(c,u){if(!(typeof u!="string"||u==="then"))return SS(e,[...t,u],a)},apply(c,u,d){const h=t[t.length-1];if(h==="valueOf"||h==="toString"||h==="toJSON")return`tRPC.proxy(${t.slice(0,-1).join(".")})`;let p={args:d,path:t};return h==="call"?p={args:d.length>=2?[d[1]]:[],path:t.slice(0,-1)}:h==="apply"&&(p={args:d.length>=2?d[1]:[],path:t.slice(0,-1)}),tb(p.args),tb(p.path),e(p)}})),a[o]}const Wu=e=>SS(e,[],kO()),Lm=e=>new Proxy(wS,{get(t,a){if(a!=="then")return e(a)}});var ES=_l({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function a(r){"@babel/helpers - typeof";return t.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,a(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),HO=_l({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var a=ES().default;function r(o,c){if(a(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var d=u.call(o,c||"default");if(a(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),UO=_l({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var a=ES().default,r=HO();function o(c){var u=r(c,"string");return a(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),TS=_l({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var a=UO();function r(o,c,u){return(c=a(c))in o?Object.defineProperty(o,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[c]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Bm=_l({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var a=TS();function r(c,u){var d=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);u&&(h=h.filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable})),d.push.apply(d,h)}return d}function o(c){for(var u=1;u<arguments.length;u++){var d=arguments[u]!=null?arguments[u]:{};u%2?r(Object(d),!0).forEach(function(h){a(c,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(d,h))})}return c}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});Xu(Bm());Xu(TS());var Qc=Xu(Bm());function VO(e,t){if("error"in e){const r=t.deserialize(e.error);return{ok:!1,error:(0,Qc.default)((0,Qc.default)({},e),{},{error:r})}}return{ok:!0,result:(0,Qc.default)((0,Qc.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var Hh=class extends Error{constructor(){super("Unable to transform response from server")}};function qO(e,t){let a;try{a=VO(e,t)}catch{throw new Hh}if(!a.ok&&(!ur(a.error.error)||typeof a.error.error.code!="number"))throw new Hh;if(a.ok&&!ur(a.result))throw new Hh;return a}Xu(Bm());function Ju(e){const t={subscribe(a){let r=null,o=!1,c=!1,u=!1;function d(){if(r===null){u=!0;return}c||(c=!0,typeof r=="function"?r():r&&r.unsubscribe())}return r=e({next(h){var p;o||(p=a.next)===null||p===void 0||p.call(a,h)},error(h){var p;o||(o=!0,(p=a.error)===null||p===void 0||p.call(a,h),d())},complete(){var h;o||(o=!0,(h=a.complete)===null||h===void 0||h.call(a),d())}}),u&&d(),{unsubscribe:d}},pipe(...a){return a.reduce(KO,t)}};return t}function KO(e,t){return t(e)}function IO(e){const t=new AbortController;return new Promise((r,o)=>{let c=!1;function u(){c||(c=!0,d.unsubscribe())}t.signal.addEventListener("abort",()=>{o(t.signal.reason)});const d=e.subscribe({next(h){c=!0,r(h),u()},error(h){o(h)},complete(){t.abort(),u()}})})}var $O=Object.create,_S=Object.defineProperty,ZO=Object.getOwnPropertyDescriptor,AS=Object.getOwnPropertyNames,GO=Object.getPrototypeOf,FO=Object.prototype.hasOwnProperty,Cs=(e,t)=>function(){return t||(0,e[AS(e)[0]])((t={exports:{}}).exports,t),t.exports},QO=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=AS(t),c=0,u=o.length,d;c<u;c++)d=o[c],!FO.call(e,d)&&d!==a&&_S(e,d,{get:(h=>t[h]).bind(null,d),enumerable:!(r=ZO(t,d))||r.enumerable});return e},gr=(e,t,a)=>(a=e!=null?$O(GO(e)):{},QO(t||!e||!e.__esModule?_S(a,"default",{value:e,enumerable:!0}):a,e)),YO=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function a(r,o){if(r==null)return{};var c={};for(var u in r)if({}.hasOwnProperty.call(r,u)){if(o.includes(u))continue;c[u]=r[u]}return c}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),XO=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var a=YO();function r(o,c){if(o==null)return{};var u,d,h=a(o,c);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(o);for(d=0;d<p.length;d++)u=p[d],c.includes(u)||{}.propertyIsEnumerable.call(o,u)&&(h[u]=o[u])}return h}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),CS=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function a(r){"@babel/helpers - typeof";return t.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,a(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),WO=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var a=CS().default;function r(o,c){if(a(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var d=u.call(o,c||"default");if(a(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),JO=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var a=CS().default,r=WO();function o(c){var u=r(c,"string");return a(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),ej=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var a=JO();function r(o,c,u){return(c=a(c))in o?Object.defineProperty(o,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[c]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Al=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var a=ej();function r(c,u){var d=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);u&&(h=h.filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable})),d.push.apply(d,h)}return d}function o(c){for(var u=1;u<arguments.length;u++){var d=arguments[u]!=null?arguments[u]:{};u%2?r(Object(d),!0).forEach(function(h){a(c,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(d,h))})}return c}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),tj=gr(XO(),1),nb=gr(Al(),1);const nj=["cursor","direction"];function na(e,t,a){const r=e.flatMap(o=>o.split("."));if(!t&&(!a||a==="any"))return r.length?[r]:[];if(a==="infinite"&&ur(t)&&("direction"in t||"cursor"in t)){const{cursor:o,direction:c}=t,u=(0,tj.default)(t,nj);return[r,{input:u,type:"infinite"}]}return[r,(0,nb.default)((0,nb.default)({},typeof t<"u"&&t!==mn&&{input:t}),a&&a!=="any"&&{type:a})]}function pu(e){return na(e,void 0,"any")}var aj=Object.create,OS=Object.defineProperty,sj=Object.getOwnPropertyDescriptor,jS=Object.getOwnPropertyNames,rj=Object.getPrototypeOf,ij=Object.prototype.hasOwnProperty,ca=(e,t)=>function(){return t||(0,e[jS(e)[0]])((t={exports:{}}).exports,t),t.exports},oj=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(var o=jS(t),c=0,u=o.length,d;c<u;c++)d=o[c],!ij.call(e,d)&&d!==a&&OS(e,d,{get:(h=>t[h]).bind(null,d),enumerable:!(r=sj(t,d))||r.enumerable});return e},ut=(e,t,a)=>(a=e!=null?aj(rj(e)):{},oj(t||!e||!e.__esModule?OS(a,"default",{value:e,enumerable:!0}):a,e)),MS=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function a(r){"@babel/helpers - typeof";return t.exports=a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},t.exports.__esModule=!0,t.exports.default=t.exports,a(r)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),lj=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var a=MS().default;function r(o,c){if(a(o)!="object"||!o)return o;var u=o[Symbol.toPrimitive];if(u!==void 0){var d=u.call(o,c||"default");if(a(d)!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),cj=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var a=MS().default,r=lj();function o(c){var u=r(c,"string");return a(u)=="symbol"?u:u+""}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}}),yr=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var a=cj();function r(o,c,u){return(c=a(c))in o?Object.defineProperty(o,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[c]=u,o}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Gn=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var a=yr();function r(c,u){var d=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);u&&(h=h.filter(function(p){return Object.getOwnPropertyDescriptor(c,p).enumerable})),d.push.apply(d,h)}return d}function o(c){for(var u=1;u<arguments.length;u++){var d=arguments[u]!=null?arguments[u]:{};u%2?r(Object(d),!0).forEach(function(h){a(c,h,d[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(d)):r(Object(d)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(d,h))})}return c}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports}});function uj(e){return t=>{let a=0,r=null;const o=[];function c(){r||(r=t.subscribe({next(d){for(const p of o){var h;(h=p.next)===null||h===void 0||h.call(p,d)}},error(d){for(const p of o){var h;(h=p.error)===null||h===void 0||h.call(p,d)}},complete(){for(const h of o){var d;(d=h.complete)===null||d===void 0||d.call(h)}}}))}function u(){if(a===0&&r){const d=r;r=null,d.unsubscribe()}}return Ju(d=>(a++,o.push(d),c(),{unsubscribe(){a--,u();const h=o.findIndex(p=>p===d);h>-1&&o.splice(h,1)}}))}}function dj(e){let t=e;const a=[],r=u=>{t!==void 0&&u.next(t),a.push(u)},o=u=>{a.splice(a.indexOf(u),1)},c=Ju(u=>(r(u),()=>{o(u)}));return c.next=u=>{if(t!==u){t=u;for(const d of a)d.next(u)}},c.get=()=>t,c}function fj(e){return Ju(t=>{function a(o=0,c=e.op){const u=e.links[o];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:c,next(h){return a(o+1,h)}})}return a().subscribe(t)})}var Yc=ut(yr(),1),ui=ut(Gn(),1);function hj(e){return e instanceof Mu}function pj(e){return ur(e)&&ur(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function mj(e,t){return typeof e=="string"?e:ur(e)&&typeof e.message=="string"?e.message:t}var Mu=class mu extends Error{constructor(t,a){var r,o;const c=a?.cause;super(t,{cause:c}),(0,Yc.default)(this,"cause",void 0),(0,Yc.default)(this,"shape",void 0),(0,Yc.default)(this,"data",void 0),(0,Yc.default)(this,"meta",void 0),this.meta=a?.meta,this.cause=c,this.shape=a==null||(r=a.result)===null||r===void 0?void 0:r.error,this.data=a==null||(o=a.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,mu.prototype)}static from(t,a={}){const r=t;return hj(r)?(a.meta&&(r.meta=(0,ui.default)((0,ui.default)({},r.meta),a.meta)),r):pj(r)?new mu(r.error.message,(0,ui.default)((0,ui.default)({},a),{},{result:r,cause:a.cause})):new mu(mj(r,"Unknown error"),(0,ui.default)((0,ui.default)({},a),{},{cause:r}))}};function gj(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:a=>a,deserialize:a=>a},output:{serialize:a=>a,deserialize:a=>a}}}const ab=e=>typeof e=="function";function yj(e){if(e)return e;if(typeof window<"u"&&ab(window.fetch))return window.fetch;if(typeof globalThis<"u"&&ab(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Wo=ut(Gn());function vj(e){return{url:e.url.toString(),fetch:e.fetch,transformer:gj(e.transformer),methodOverride:e.methodOverride}}function xj(e){const t={};for(let a=0;a<e.length;a++){const r=e[a];t[a]=r}return t}const bj={query:"GET",mutation:"POST",subscription:"PATCH"};function NS(e){return"input"in e?e.transformer.input.serialize(e.input):xj(e.inputs.map(t=>e.transformer.input.serialize(t)))}const kS=e=>{const t=e.url.split("?");let r=t[0].replace(/\/$/,"")+"/"+e.path;const o=[];if(t[1]&&o.push(t[1]),"inputs"in e&&o.push("batch=1"),e.type==="query"||e.type==="subscription"){const c=NS(e);c!==void 0&&e.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(c))}`)}return o.length&&(r+="?"+o.join("&")),r},wj=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=NS(e);return t!==void 0?JSON.stringify(t):void 0},Sj=e=>Aj((0,Wo.default)((0,Wo.default)({},e),{},{contentTypeHeader:"application/json",getUrl:kS,getBody:wj}));var Ej=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const Tj=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new Ej};async function _j(e){var t,a;Tj(e.signal);const r=e.getUrl(e),o=e.getBody(e),c=(t=e.methodOverride)!==null&&t!==void 0?t:bj[e.type],u=await(async()=>{const h=await e.headers();return Symbol.iterator in h?Object.fromEntries(h):h})(),d=(0,Wo.default)((0,Wo.default)((0,Wo.default)({},e.contentTypeHeader&&c!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{[(a=e.trpcAcceptHeaderKey)!==null&&a!==void 0?a:"trpc-accept"]:e.trpcAcceptHeader}:void 0),u);return yj(e.fetch)(r,{method:c,signal:e.signal,body:o,headers:d})}async function Aj(e){const t={},a=await _j(e);t.response=a;const r=await a.json();return t.responseJSON=r,{json:r,meta:t}}ut(Gn(),1);const sb=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function rb(e){let t=null,a=null;const r=()=>{clearTimeout(a),a=null,t=null};function o(d){const h=[[]];let p=0;for(;;){const b=d[p];if(!b)break;const w=h[h.length-1];if(b.aborted){var v;(v=b.reject)===null||v===void 0||v.call(b,new Error("Aborted")),p++;continue}if(e.validate(w.concat(b).map(_=>_.key))){w.push(b),p++;continue}if(w.length===0){var y;(y=b.reject)===null||y===void 0||y.call(b,new Error("Input is too big for a single dispatch")),p++;continue}h.push([])}return h}function c(){const d=o(t);r();for(const h of d){if(!h.length)continue;const p={items:h};for(const y of h)y.batch=p;e.fetch(p.items.map(y=>y.key)).then(async y=>{await Promise.all(y.map(async(w,T)=>{const _=p.items[T];try{var k;const L=await Promise.resolve(w);(k=_.resolve)===null||k===void 0||k.call(_,L)}catch(L){var M;(M=_.reject)===null||M===void 0||M.call(_,L)}_.batch=null,_.reject=null,_.resolve=null}));for(const w of p.items){var b;(b=w.reject)===null||b===void 0||b.call(w,new Error("Missing result")),w.batch=null}}).catch(y=>{for(const w of p.items){var b;(b=w.reject)===null||b===void 0||b.call(w,y),w.batch=null}})}}function u(d){var h;const p={aborted:!1,key:d,batch:null,resolve:sb,reject:sb},v=new Promise((y,b)=>{var w;p.reject=b,p.resolve=y,(w=t)!==null&&w!==void 0||(t=[]),t.push(p)});return(h=a)!==null&&h!==void 0||(a=setTimeout(c)),v}return{load:u}}function Cj(...e){const t=new AbortController,a=e.length;let r=0;const o=()=>{++r===a&&t.abort()};for(const c of e)c?.aborted?o():c?.addEventListener("abort",o,{once:!0});return t.signal}var Xc=ut(Gn(),1);function Oj(e){var t,a;const r=vj(e),o=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,c=(a=e.maxItems)!==null&&a!==void 0?a:1/0;return()=>{const u=v=>({validate(y){if(o===1/0&&c===1/0)return!0;if(y.length>c)return!1;const b=y.map(_=>_.path).join(","),w=y.map(_=>_.input);return kS((0,Xc.default)((0,Xc.default)({},r),{},{type:v,path:b,inputs:w,signal:null})).length<=o},async fetch(y){const b=y.map(L=>L.path).join(","),w=y.map(L=>L.input),T=Cj(...y.map(L=>L.signal)),_=await Sj((0,Xc.default)((0,Xc.default)({},r),{},{path:b,inputs:w,type:v,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:y}):e.headers:{}},signal:T}));return(Array.isArray(_.json)?_.json:y.map(()=>_.json)).map(L=>({meta:_.meta,json:L}))}}),d=rb(u("query")),h=rb(u("mutation")),p={query:d,mutation:h};return({op:v})=>Ju(y=>{/* istanbul ignore if -- @preserve */if(v.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const w=p[v.type].load(v);let T;return w.then(_=>{T=_;const k=qO(_.json,r.transformer.output);if(!k.ok){y.error(Mu.from(k.error,{meta:_.meta}));return}y.next({context:_.meta,result:k.result}),y.complete()}).catch(_=>{y.error(Mu.from(_,{meta:T?.meta}))}),()=>{}})}}ut(Gn(),1);const zS=(e,...t)=>typeof e=="function"?e(...t):e;ut(yr(),1);function jj(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}async function Mj(e){const t=await zS(e.url);if(!e.connectionParams)return t;const r=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+r}async function Nj(e,t){const a={method:"connectionParams",data:await zS(e)};return t.encode(a)}ut(yr(),1);var gs=ut(yr(),1);function kj(e){const{promise:t,resolve:a,reject:r}=jj();return e.addEventListener("open",()=>{e.removeEventListener("error",r),a()}),e.addEventListener("error",r),t}function zj(e,{intervalMs:t,pongTimeoutMs:a}){let r,o;function c(){r=setTimeout(()=>{e.send("PING"),o=setTimeout(()=>{e.close()},a)},t)}function u(){clearTimeout(r),c()}function d(){clearTimeout(o),u()}e.addEventListener("open",c),e.addEventListener("message",({data:h})=>{clearTimeout(r),c(),h==="PONG"&&d()}),e.addEventListener("close",()=>{clearTimeout(r),clearTimeout(o)})}var Rj=class zp{constructor(t){var a;if((0,gs.default)(this,"id",++zp.connectCount),(0,gs.default)(this,"WebSocketPonyfill",void 0),(0,gs.default)(this,"urlOptions",void 0),(0,gs.default)(this,"keepAliveOpts",void 0),(0,gs.default)(this,"encoder",void 0),(0,gs.default)(this,"wsObservable",dj(null)),(0,gs.default)(this,"openPromise",null),this.WebSocketPonyfill=(a=t.WebSocketPonyfill)!==null&&a!==void 0?a:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive,this.encoder=t.encoder}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++zp.connectCount;const a=Mj(t.urlOptions).then(r=>new t.WebSocketPonyfill(r));t.openPromise=a.then(async r=>{t.ws=r,r.binaryType="arraybuffer",r.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&zj(r,t.keepAliveOpts),r.addEventListener("close",()=>{t.ws===r&&(t.ws=null)}),await kj(r),t.urlOptions.connectionParams&&r.send(await Nj(t.urlOptions.connectionParams,t.encoder))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var a;(a=t.ws)===null||a===void 0||a.close()}}};(0,gs.default)(Rj,"connectCount",0);ut(yr(),1);ut(Gn(),1);var Uh=ut(yr(),1),ib=ut(Gn(),1),ed=class{constructor(e){(0,Uh.default)(this,"links",void 0),(0,Uh.default)(this,"runtime",void 0),(0,Uh.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return fj({links:this.links,op:(0,ib.default)((0,ib.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(uj())}async requestAsPromise(e){var t=this;try{const a=t.$request(e);return(await IO(a)).result.data}catch(a){throw Mu.from(a)}}query(e,t,a){return this.requestAsPromise({type:"query",path:e,input:t,context:a?.context,signal:a?.signal})}mutation(e,t,a){return this.requestAsPromise({type:"mutation",path:e,input:t,context:a?.context,signal:a?.signal})}subscription(e,t,a){return this.$request({type:"subscription",path:e,input:t,context:a.context,signal:a.signal}).subscribe({next(o){switch(o.result.type){case"state":{var c;(c=a.onConnectionStateChange)===null||c===void 0||c.call(a,o.result);break}case"started":{var u;(u=a.onStarted)===null||u===void 0||u.call(a,{context:o.context});break}case"stopped":{var d;(d=a.onStopped)===null||d===void 0||d.call(a);break}case"data":case void 0:{var h;(h=a.onData)===null||h===void 0||h.call(a,o.result.data);break}}},error(o){var c;(c=a.onError)===null||c===void 0||c.call(a,o)},complete(){var o;(o=a.onComplete)===null||o===void 0||o.call(a)}})}};const RS=Symbol.for("trpc_untypedClient"),Dj={query:"query",mutate:"mutation",subscribe:"subscription"},Pj=e=>Dj[e];function DS(e){const t=Wu(({path:a,args:r})=>{const o=[...a],c=Pj(o.pop()),u=o.join(".");return e[c](u,...r)});return Lm(a=>a===RS?e:t[a])}function Lj(e){const t=new ed(e);return DS(t)}function Hm(e){return e[RS]}ut(Gn(),1);ut(Gn(),1);var Bj=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function a(o){var c,u,d,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,d=Symbol.iterator);h--;){if(u&&(c=o[u])!=null)return c.call(o);if(d&&(c=o[d])!=null)return new r(c.call(o));u="@@asyncIterator",d="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function c(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var d=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:d}})}return r=function(d){this.s=d,this.n=d.next},r.prototype={s:null,n:null,next:function(){return c(this.n.apply(this.s,arguments))},return:function(d){var h=this.s.return;return h===void 0?Promise.resolve({value:d,done:!0}):c(h.apply(this.s,arguments))},throw:function(d){var h=this.s.return;return h===void 0?Promise.reject(d):c(h.apply(this.s,arguments))}},new r(o)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}});ut(Bj(),1);ut(Gn(),1);var Hj=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function a(){var r=typeof SuppressedError=="function"?SuppressedError:function(d,h){var p=Error();return p.name="SuppressedError",p.error=d,p.suppressed=h,p},o={},c=[];function u(d,h){if(h!=null){if(Object(h)!==h)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(d)var p=h[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=h[Symbol.dispose||Symbol.for("Symbol.dispose")],d))var v=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");v&&(p=function(){try{v.call(h)}catch(b){return Promise.reject(b)}}),c.push({v:h,d:p,a:d})}else d&&c.push({d:h,a:d});return h}return{e:o,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var h,p=this.e,v=0;function y(){for(;h=c.pop();)try{if(!h.a&&v===1)return v=0,c.push(h),Promise.resolve().then(y);if(h.d){var w=h.d.call(h.v);if(h.a)return v|=2,Promise.resolve(w).then(y,b)}else v|=1}catch(T){return b(T)}if(v===1)return p!==o?Promise.reject(p):Promise.resolve();if(p!==o)throw p}function b(w){return p=p!==o?new r(w,p):w,y()}return y()}}}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),PS=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function a(r,o){this.v=r,this.k=o}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Uj=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var a=PS();function r(o){return new a(o,0)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),Vj=ca({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var a=PS();function r(c){return function(){return new o(c.apply(this,arguments))}}function o(c){var u,d;function h(v,y){try{var b=c[v](y),w=b.value,T=w instanceof a;Promise.resolve(T?w.v:w).then(function(_){if(T){var k=v==="return"?"return":"next";if(!w.k||_.done)return h(k,_);_=c[k](_).value}p(b.done?"return":"normal",_)},function(_){h("throw",_)})}catch(_){p("throw",_)}}function p(v,y){switch(v){case"return":u.resolve({value:y,done:!0});break;case"throw":u.reject(y);break;default:u.resolve({value:y,done:!1})}(u=u.next)?h(u.key,u.arg):d=null}this._invoke=function(v,y){return new Promise(function(b,w){var T={key:v,arg:y,resolve:b,reject:w,next:null};d?d=d.next=T:(u=d=T,h(v,y))})},typeof c.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(c){return this._invoke("next",c)},o.prototype.throw=function(c){return this._invoke("throw",c)},o.prototype.return=function(c){return this._invoke("return",c)},t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});ut(Hj(),1);ut(Uj(),1);ut(Vj(),1);ut(Gn(),1);function qj(e){return Wu(({path:t,args:a})=>{var r;const o=[...t],c=o.pop();if(c==="useMutation")return e[c](o,...a);if(c==="_def")return{path:o};const[u,...d]=a,h=(r=d[0])!==null&&r!==void 0?r:{};return e[c](o,u,h)})}var Vh;const Kj=["client","ssrContext","ssrState","abortOnUnmount"],Ij=(Vh=S.createContext)===null||Vh===void 0?void 0:Vh.call(oS,null),$j=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function Zj(e){return Wu(t=>{const a=[...t.path],r=a.pop(),o=[...t.args],c=o.shift(),u=$j(r),d=na(a,c,u);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(a,d,o[0]),queryOptions:()=>e.queryOptions(a,d,...o),fetch:()=>e.fetchQuery(d,...o),fetchInfinite:()=>e.fetchInfiniteQuery(d,o[0]),prefetch:()=>e.prefetchQuery(d,...o),prefetchInfinite:()=>e.prefetchInfiniteQuery(d,o[0]),ensureData:()=>e.ensureQueryData(d,...o),invalidate:()=>e.invalidateQueries(d,...o),reset:()=>e.resetQueries(d,...o),refetch:()=>e.refetchQueries(d,...o),cancel:()=>e.cancelQuery(d,...o),setData:()=>{e.setQueryData(d,o[0],o[1])},setQueriesData:()=>e.setQueriesData(d,o[0],o[1],o[2]),setInfiniteData:()=>{e.setInfiniteQueryData(d,o[0],o[1])},getData:()=>e.getQueryData(d),getInfiniteData:()=>e.getInfiniteQueryData(d),setMutationDefaults:()=>e.setMutationDefaults(pu(a),c),getMutationDefaults:()=>e.getMutationDefaults(pu(a)),isMutating:()=>e.isMutating({mutationKey:pu(a)})}[r]()})}function Gj(e){const t=DS(e.client),a=Zj(e);return Lm(r=>{const o=r;return o==="client"?t:Kj.includes(o)?e[o]:a[r]})}var Fj=gr(Al(),1);function ob(e){const t=e instanceof ed?e:Hm(e);return Wu(a=>{const r=a.path,o=r.join("."),[c,u]=a.args;return(0,Fj.default)({queryKey:na(r,c,"query"),queryFn:()=>t.query(o,c,u?.trpc)},u)})}var qh=gr(Al(),1);function qt(e,t,a){var r;const o=e[0];let c=(r=e[1])===null||r===void 0?void 0:r.input;if(a){var u;c=(0,qh.default)((0,qh.default)((0,qh.default)({},(u=c)!==null&&u!==void 0?u:{}),a.pageParam?{cursor:a.pageParam}:{}),{},{direction:a.direction})}return[o.join("."),c,t?.trpc]}var Qj=Cs({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function a(o){var c,u,d,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,d=Symbol.iterator);h--;){if(u&&(c=o[u])!=null)return c.call(o);if(d&&(c=o[d])!=null)return new r(c.call(o));u="@@asyncIterator",d="@@iterator"}throw new TypeError("Object is not async iterable")}function r(o){function c(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var d=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:d}})}return r=function(d){this.s=d,this.n=d.next},r.prototype={s:null,n:null,next:function(){return c(this.n.apply(this.s,arguments))},return:function(d){var h=this.s.return;return h===void 0?Promise.resolve({value:d,done:!0}):c(h.apply(this.s,arguments))},throw:function(d){var h=this.s.return;return h===void 0?Promise.reject(d):c(h.apply(this.s,arguments))}},new r(o)}t.exports=a,t.exports.__esModule=!0,t.exports.default=t.exports}}),Yj=gr(Qj(),1);function Rp(e){return{path:e.path.join(".")}}function Ko(e){const t=Rp(e);return S.useMemo(()=>t,[t])}async function LS(e,t,a){const o=t.getQueryCache().build(t,{queryKey:a});o.setState({data:[],status:"success"});const c=[];var u=!1,d=!1,h;try{for(var p=(0,Yj.default)(e),v;u=!(v=await p.next()).done;u=!1){const y=v.value;c.push(y),o.setState({data:[...c]})}}catch(y){d=!0,h=y}finally{try{u&&p.return!=null&&await p.return()}finally{if(d)throw h}}return c}var He=gr(Al(),1);function Xj(e){const{client:t,queryClient:a}=e,r=t instanceof ed?t:Hm(t);return{infiniteQueryOptions:(o,c,u)=>{var d,h;const p=((d=c[1])===null||d===void 0?void 0:d.input)===mn,v=async y=>{var b;const w=(0,He.default)((0,He.default)({},u),{},{trpc:(0,He.default)((0,He.default)({},u?.trpc),!(u==null||(b=u.trpc)===null||b===void 0)&&b.abortOnUnmount?{signal:y.signal}:{signal:null})});return await r.query(...qt(c,w,{direction:y.direction,pageParam:y.pageParam}))};return Object.assign((0,He.default)((0,He.default)({},u),{},{initialData:u?.initialData,queryKey:c,queryFn:p?mn:v,initialPageParam:(h=u?.initialCursor)!==null&&h!==void 0?h:null}),{trpc:Rp({path:o})})},queryOptions:(o,c,u)=>{var d;const h=((d=c[1])===null||d===void 0?void 0:d.input)===mn,p=async v=>{var y;const b=(0,He.default)((0,He.default)({},u),{},{trpc:(0,He.default)((0,He.default)({},u?.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:v.signal}:{signal:null})}),w=await r.query(...qt(c,b));return vS(w)?LS(w,a,c):w};return Object.assign((0,He.default)((0,He.default)({},u),{},{initialData:u?.initialData,queryKey:c,queryFn:h?mn:p}),{trpc:Rp({path:o})})},fetchQuery:(o,c)=>a.fetchQuery((0,He.default)((0,He.default)({},c),{},{queryKey:o,queryFn:()=>r.query(...qt(o,c))})),fetchInfiniteQuery:(o,c)=>{var u;return a.fetchInfiniteQuery((0,He.default)((0,He.default)({},c),{},{queryKey:o,queryFn:({pageParam:d,direction:h})=>r.query(...qt(o,c,{pageParam:d,direction:h})),initialPageParam:(u=c?.initialCursor)!==null&&u!==void 0?u:null}))},prefetchQuery:(o,c)=>a.prefetchQuery((0,He.default)((0,He.default)({},c),{},{queryKey:o,queryFn:()=>r.query(...qt(o,c))})),prefetchInfiniteQuery:(o,c)=>{var u;return a.prefetchInfiniteQuery((0,He.default)((0,He.default)({},c),{},{queryKey:o,queryFn:({pageParam:d,direction:h})=>r.query(...qt(o,c,{pageParam:d,direction:h})),initialPageParam:(u=c?.initialCursor)!==null&&u!==void 0?u:null}))},ensureQueryData:(o,c)=>a.ensureQueryData((0,He.default)((0,He.default)({},c),{},{queryKey:o,queryFn:()=>r.query(...qt(o,c))})),invalidateQueries:(o,c,u)=>a.invalidateQueries((0,He.default)((0,He.default)({},c),{},{queryKey:o}),u),resetQueries:(o,c,u)=>a.resetQueries((0,He.default)((0,He.default)({},c),{},{queryKey:o}),u),refetchQueries:(o,c,u)=>a.refetchQueries((0,He.default)((0,He.default)({},c),{},{queryKey:o}),u),cancelQuery:(o,c)=>a.cancelQueries({queryKey:o},c),setQueryData:(o,c,u)=>a.setQueryData(o,c,u),setQueriesData:(o,c,u,d)=>a.setQueriesData((0,He.default)((0,He.default)({},c),{},{queryKey:o}),u,d),getQueryData:o=>a.getQueryData(o),setInfiniteQueryData:(o,c,u)=>a.setQueryData(o,c,u),getInfiniteQueryData:o=>a.getQueryData(o),setMutationDefaults:(o,c)=>{const u=o[0],d=h=>r.mutation(...qt([u,{input:h}],e));return a.setMutationDefaults(o,typeof c=="function"?c({canonicalMutationFn:d}):c)},getMutationDefaults:o=>a.getMutationDefaults(o),isMutating:o=>a.isMutating((0,He.default)((0,He.default)({},o),{},{exact:!0}))}}var ce=gr(Al());const lb=(e,t)=>new Proxy(e,{get(r,o){return t(o),r[o]}});function Wj(e){var t,a;const r=(t=void 0)!==null&&t!==void 0?t:B=>B.originalFn(),o=(a=void 0)!==null&&a!==void 0?a:Ij,c=Lj,u=B=>{var V;const{abortOnUnmount:C=!1,queryClient:R,ssrContext:X}=B,[J,re]=S.useState((V=B.ssrState)!==null&&V!==void 0?V:!1),te=B.client instanceof ed?B.client:Hm(B.client),le=S.useMemo(()=>Xj({client:te,queryClient:R}),[te,R]),ie=S.useMemo(()=>(0,ce.default)({abortOnUnmount:C,queryClient:R,client:te,ssrContext:X??null,ssrState:J},le),[C,te,le,R,X,J]);return S.useEffect(()=>{re(ue=>ue?"mounted":!1)},[]),g.jsx(o.Provider,{value:ie,children:B.children})};function d(){const B=S.useContext(o);if(!B)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return B}function h(B,V){var C;const{queryClient:R,ssrState:X}=d();return X&&X!=="mounted"&&((C=R.getQueryCache().find({queryKey:B}))===null||C===void 0?void 0:C.state.status)==="error"?(0,ce.default)({retryOnMount:!1},V):V}function p(B,V,C){var R,X,J,re,te;const le=d(),{abortOnUnmount:ie,client:ue,ssrState:O,queryClient:D,prefetchQuery:P}=le,ne=na(B,V,"query"),oe=D.getQueryDefaults(ne),j=V===mn;typeof window>"u"&&O==="prepass"&&(C==null||(R=C.trpc)===null||R===void 0?void 0:R.ssr)!==!1&&((X=C?.enabled)!==null&&X!==void 0?X:oe?.enabled)!==!1&&!j&&!D.getQueryCache().find({queryKey:ne})&&P(ne,C);const G=h(ne,(0,ce.default)((0,ce.default)({},oe),C)),I=(J=(re=C==null||(te=C.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&re!==void 0?re:void 0)!==null&&J!==void 0?J:ie,F=TO((0,ce.default)((0,ce.default)({},G),{},{queryKey:ne,queryFn:j?V:async ae=>{const me=(0,ce.default)((0,ce.default)({},G),{},{trpc:(0,ce.default)((0,ce.default)({},G?.trpc),I?{signal:ae.signal}:{signal:null})}),de=await ue.query(...qt(ne,me));return vS(de)?LS(de,D,ne):de}}),D);return F.trpc=Ko({path:B}),F}function v(B,V,C){var R,X,J;const re=d(),te=na(B,V,"query"),le=V===mn,ie=(R=(X=C==null||(J=C.trpc)===null||J===void 0?void 0:J.abortOnUnmount)!==null&&X!==void 0?X:void 0)!==null&&R!==void 0?R:re.abortOnUnmount;OO((0,ce.default)((0,ce.default)({},C),{},{queryKey:te,queryFn:le?V:ue=>{const O={trpc:(0,ce.default)((0,ce.default)({},C?.trpc),ie?{signal:ue.signal}:{})};return re.client.query(...qt(te,O))}}))}function y(B,V,C){var R,X,J;const re=d(),te=na(B,V,"query"),le=(R=(X=C==null||(J=C.trpc)===null||J===void 0?void 0:J.abortOnUnmount)!==null&&X!==void 0?X:void 0)!==null&&R!==void 0?R:re.abortOnUnmount,ie=_O((0,ce.default)((0,ce.default)({},C),{},{queryKey:te,queryFn:ue=>{const O=(0,ce.default)((0,ce.default)({},C),{},{trpc:(0,ce.default)((0,ce.default)({},C?.trpc),le?{signal:ue.signal}:{signal:null})});return re.client.query(...qt(te,O))}}),re.queryClient);return ie.trpc=Ko({path:B}),[ie.data,ie]}function b(B,V){const{client:C,queryClient:R}=d(),X=pu(B),J=R.defaultMutationOptions(R.getMutationDefaults(X)),re=MO((0,ce.default)((0,ce.default)({},V),{},{mutationKey:X,mutationFn:te=>C.mutation(...qt([B,{input:te}],V)),onSuccess(...te){var le,ie;return r({originalFn:()=>{var O,D,P;return(O=V==null||(D=V.onSuccess)===null||D===void 0?void 0:D.call(V,...te))!==null&&O!==void 0?O:J==null||(P=J.onSuccess)===null||P===void 0?void 0:P.call(J,...te)},queryClient:R,meta:(le=(ie=V?.meta)!==null&&ie!==void 0?ie:J?.meta)!==null&&le!==void 0?le:{}})}}),R);return re.trpc=Ko({path:B}),re}const w={data:void 0,error:null,status:"idle"},T={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function _(B,V,C){var R;const X=(R=C?.enabled)!==null&&R!==void 0?R:V!==mn,J=ws(na(B,V,"any")),{client:re}=d(),te=S.useRef(C);S.useEffect(()=>{te.current=C});const[le]=S.useState(new Set([])),ie=S.useCallback(j=>{le.add(j)},[le]),ue=S.useRef(null),O=S.useCallback(j=>{const G=P.current,I=P.current=j(G);let F=!1;for(const ae of le)if(G[ae]!==I[ae]){F=!0;break}F&&oe(lb(I,ie))},[ie,le]),D=S.useCallback(()=>{var j;if((j=ue.current)===null||j===void 0||j.unsubscribe(),!X){O(()=>(0,ce.default)((0,ce.default)({},w),{},{reset:D}));return}O(()=>(0,ce.default)((0,ce.default)({},T),{},{reset:D}));const G=re.subscription(B.join("."),V??void 0,{onStarted:()=>{var I,F;(I=(F=te.current).onStarted)===null||I===void 0||I.call(F),O(ae=>(0,ce.default)((0,ce.default)({},ae),{},{status:"pending",error:null}))},onData:I=>{var F,ae;(F=(ae=te.current).onData)===null||F===void 0||F.call(ae,I),O(me=>(0,ce.default)((0,ce.default)({},me),{},{status:"pending",data:I,error:null}))},onError:I=>{var F,ae;(F=(ae=te.current).onError)===null||F===void 0||F.call(ae,I),O(me=>(0,ce.default)((0,ce.default)({},me),{},{status:"error",error:I}))},onConnectionStateChange:I=>{O(F=>{switch(I.state){case"idle":return(0,ce.default)((0,ce.default)({},F),{},{status:I.state,error:null,data:void 0});case"connecting":return(0,ce.default)((0,ce.default)({},F),{},{error:I.error,status:I.state});case"pending":return F}})},onComplete:()=>{var I,F;(I=(F=te.current).onComplete)===null||I===void 0||I.call(F),O(ae=>(0,ce.default)((0,ce.default)({},ae),{},{status:"idle",error:null,data:void 0}))}});ue.current=G},[re,J,X,O]);S.useEffect(()=>(D(),()=>{var j;(j=ue.current)===null||j===void 0||j.unsubscribe()}),[D]);const P=S.useRef(X?(0,ce.default)((0,ce.default)({},T),{},{reset:D}):(0,ce.default)((0,ce.default)({},w),{},{reset:D})),[ne,oe]=S.useState(lb(P.current,ie));return ne}function k(B,V,C){var R,X,J,re,te;const{client:le,ssrState:ie,prefetchInfiniteQuery:ue,queryClient:O,abortOnUnmount:D}=d(),P=na(B,V,"infinite"),ne=O.getQueryDefaults(P),oe=V===mn;typeof window>"u"&&ie==="prepass"&&(C==null||(R=C.trpc)===null||R===void 0?void 0:R.ssr)!==!1&&((X=C?.enabled)!==null&&X!==void 0?X:ne?.enabled)!==!1&&!oe&&!O.getQueryCache().find({queryKey:P})&&ue(P,(0,ce.default)((0,ce.default)({},ne),C));const j=h(P,(0,ce.default)((0,ce.default)({},ne),C)),G=(J=C==null||(re=C.trpc)===null||re===void 0?void 0:re.abortOnUnmount)!==null&&J!==void 0?J:D,I=NO((0,ce.default)((0,ce.default)({},j),{},{initialPageParam:(te=C.initialCursor)!==null&&te!==void 0?te:null,persister:C.persister,queryKey:P,queryFn:oe?V:F=>{var ae;const me=(0,ce.default)((0,ce.default)({},j),{},{trpc:(0,ce.default)((0,ce.default)({},j?.trpc),G?{signal:F.signal}:{signal:null})});return le.query(...qt(P,me,{pageParam:(ae=F.pageParam)!==null&&ae!==void 0?ae:C.initialCursor,direction:F.direction}))}}),O);return I.trpc=Ko({path:B}),I}function M(B,V,C){var R,X,J;const re=d(),te=na(B,V,"infinite"),le=re.queryClient.getQueryDefaults(te),ie=V===mn,ue=h(te,(0,ce.default)((0,ce.default)({},le),C)),O=(R=C==null||(X=C.trpc)===null||X===void 0?void 0:X.abortOnUnmount)!==null&&R!==void 0?R:re.abortOnUnmount;jO((0,ce.default)((0,ce.default)({},C),{},{initialPageParam:(J=C.initialCursor)!==null&&J!==void 0?J:null,queryKey:te,queryFn:ie?V:D=>{var P;const ne=(0,ce.default)((0,ce.default)({},ue),{},{trpc:(0,ce.default)((0,ce.default)({},ue?.trpc),O?{signal:D.signal}:{})});return re.client.query(...qt(te,ne,{pageParam:(P=D.pageParam)!==null&&P!==void 0?P:C.initialCursor,direction:D.direction}))}}))}function L(B,V,C){var R,X,J;const re=d(),te=na(B,V,"infinite"),le=re.queryClient.getQueryDefaults(te),ie=h(te,(0,ce.default)((0,ce.default)({},le),C)),ue=(R=C==null||(X=C.trpc)===null||X===void 0?void 0:X.abortOnUnmount)!==null&&R!==void 0?R:re.abortOnUnmount,O=AO((0,ce.default)((0,ce.default)({},C),{},{initialPageParam:(J=C.initialCursor)!==null&&J!==void 0?J:null,queryKey:te,queryFn:D=>{var P;const ne=(0,ce.default)((0,ce.default)({},ie),{},{trpc:(0,ce.default)((0,ce.default)({},ie?.trpc),ue?{signal:D.signal}:{})});return re.client.query(...qt(te,ne,{pageParam:(P=D.pageParam)!==null&&P!==void 0?P:C.initialCursor,direction:D.direction}))}}),re.queryClient);return O.trpc=Ko({path:B}),[O.data,O]}return{Provider:u,createClient:c,useContext:d,useUtils:d,useQuery:p,usePrefetchQuery:v,useSuspenseQuery:y,useQueries:(B,V)=>{const{ssrState:C,queryClient:R,prefetchQuery:X,client:J}=d(),re=ob(J),te=B(re);if(typeof window>"u"&&C==="prepass")for(const ie of te){var le;const ue=ie;((le=ue.trpc)===null||le===void 0?void 0:le.ssr)!==!1&&!R.getQueryCache().find({queryKey:ue.queryKey})&&X(ue.queryKey,ue)}return yS({queries:te.map(ie=>(0,ce.default)((0,ce.default)({},ie),{},{queryKey:ie.queryKey})),combine:V?.combine},R)},useSuspenseQueries:B=>{const{queryClient:V,client:C}=d(),R=ob(C),X=B(R),J=CO({queries:X.map(re=>(0,ce.default)((0,ce.default)({},re),{},{queryFn:re.queryFn,queryKey:re.queryKey}))},V);return[J.map(re=>re.data),J]},useMutation:b,useSubscription:_,useInfiniteQuery:k,usePrefetchInfiniteQuery:M,useSuspenseInfiniteQuery:L}}function Jj(e){const t=qj(e);return Lm(a=>a==="useContext"||a==="useUtils"?()=>{const r=e.useUtils();return S.useMemo(()=>Gj(r),[r])}:e.hasOwnProperty(a)?e[a]:t[a])}function e5(e){const t=Wj();return Jj(t)}const Mi=e5();var Kh={exports:{}},Io={},Ih={exports:{}},$h={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cb;function t5(){return cb||(cb=1,(function(e){function t(O,D){var P=O.length;O.push(D);e:for(;0<P;){var ne=P-1>>>1,oe=O[ne];if(0<o(oe,D))O[ne]=D,O[P]=oe,P=ne;else break e}}function a(O){return O.length===0?null:O[0]}function r(O){if(O.length===0)return null;var D=O[0],P=O.pop();if(P!==D){O[0]=P;e:for(var ne=0,oe=O.length,j=oe>>>1;ne<j;){var G=2*(ne+1)-1,I=O[G],F=G+1,ae=O[F];if(0>o(I,P))F<oe&&0>o(ae,I)?(O[ne]=ae,O[F]=P,ne=F):(O[ne]=I,O[G]=P,ne=G);else if(F<oe&&0>o(ae,P))O[ne]=ae,O[F]=P,ne=F;else break e}}return D}function o(O,D){var P=O.sortIndex-D.sortIndex;return P!==0?P:O.id-D.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var h=[],p=[],v=1,y=null,b=3,w=!1,T=!1,_=!1,k=!1,M=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function U(O){for(var D=a(p);D!==null;){if(D.callback===null)r(p);else if(D.startTime<=O)r(p),D.sortIndex=D.expirationTime,t(h,D);else break;D=a(p)}}function B(O){if(_=!1,U(O),!T)if(a(h)!==null)T=!0,V||(V=!0,te());else{var D=a(p);D!==null&&ue(B,D.startTime-O)}}var V=!1,C=-1,R=5,X=-1;function J(){return k?!0:!(e.unstable_now()-X<R)}function re(){if(k=!1,V){var O=e.unstable_now();X=O;var D=!0;try{e:{T=!1,_&&(_=!1,L(C),C=-1),w=!0;var P=b;try{t:{for(U(O),y=a(h);y!==null&&!(y.expirationTime>O&&J());){var ne=y.callback;if(typeof ne=="function"){y.callback=null,b=y.priorityLevel;var oe=ne(y.expirationTime<=O);if(O=e.unstable_now(),typeof oe=="function"){y.callback=oe,U(O),D=!0;break t}y===a(h)&&r(h),U(O)}else r(h);y=a(h)}if(y!==null)D=!0;else{var j=a(p);j!==null&&ue(B,j.startTime-O),D=!1}}break e}finally{y=null,b=P,w=!1}D=void 0}}finally{D?te():V=!1}}}var te;if(typeof A=="function")te=function(){A(re)};else if(typeof MessageChannel<"u"){var le=new MessageChannel,ie=le.port2;le.port1.onmessage=re,te=function(){ie.postMessage(null)}}else te=function(){M(re,0)};function ue(O,D){C=M(function(){O(e.unstable_now())},D)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(O){O.callback=null},e.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<O?Math.floor(1e3/O):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(O){switch(b){case 1:case 2:case 3:var D=3;break;default:D=b}var P=b;b=D;try{return O()}finally{b=P}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(O,D){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var P=b;b=O;try{return D()}finally{b=P}},e.unstable_scheduleCallback=function(O,D,P){var ne=e.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?ne+P:ne):P=ne,O){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=P+oe,O={id:v++,callback:D,priorityLevel:O,startTime:P,expirationTime:oe,sortIndex:-1},P>ne?(O.sortIndex=P,t(p,O),a(h)===null&&O===a(p)&&(_?(L(C),C=-1):_=!0,ue(B,P-ne))):(O.sortIndex=oe,t(h,O),T||w||(T=!0,V||(V=!0,te()))),O},e.unstable_shouldYield=J,e.unstable_wrapCallback=function(O){var D=b;return function(){var P=b;b=D;try{return O.apply(this,arguments)}finally{b=P}}}})($h)),$h}var ub;function n5(){return ub||(ub=1,Ih.exports=t5()),Ih.exports}var Zh={exports:{}},Rt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var db;function a5(){if(db)return Rt;db=1;var e=Qu();function t(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,p,v){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:h,containerInfo:p,implementation:v}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Rt.createPortal=function(h,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return c(h,p,null,v)},Rt.flushSync=function(h){var p=u.T,v=r.p;try{if(u.T=null,r.p=2,h)return h()}finally{u.T=p,r.p=v,r.d.f()}},Rt.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(h,p))},Rt.prefetchDNS=function(h){typeof h=="string"&&r.d.D(h)},Rt.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var v=p.as,y=d(v,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,w=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?r.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):v==="script"&&r.d.X(h,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Rt.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=d(p.as,p.crossOrigin);r.d.M(h,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(h)},Rt.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,y=d(v,p.crossOrigin);r.d.L(h,v,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Rt.preloadModule=function(h,p){if(typeof h=="string")if(p){var v=d(p.as,p.crossOrigin);r.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(h)},Rt.requestFormReset=function(h){r.d.r(h)},Rt.unstable_batchedUpdates=function(h,p){return h(p)},Rt.useFormState=function(h,p,v){return u.H.useFormState(h,p,v)},Rt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Rt.version="19.2.1",Rt}var fb;function BS(){if(fb)return Zh.exports;fb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Zh.exports=a5(),Zh.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var hb;function s5(){if(hb)return Io;hb=1;var e=n5(),t=Qu(),a=BS();function r(n){var s="https://react.dev/errors/"+n;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)s+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+n+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function c(n){var s=n,i=n;if(n.alternate)for(;s.return;)s=s.return;else{n=s;do s=n,(s.flags&4098)!==0&&(i=s.return),n=s.return;while(n)}return s.tag===3?i:null}function u(n){if(n.tag===13){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function d(n){if(n.tag===31){var s=n.memoizedState;if(s===null&&(n=n.alternate,n!==null&&(s=n.memoizedState)),s!==null)return s.dehydrated}return null}function h(n){if(c(n)!==n)throw Error(r(188))}function p(n){var s=n.alternate;if(!s){if(s=c(n),s===null)throw Error(r(188));return s!==n?null:n}for(var i=n,l=s;;){var f=i.return;if(f===null)break;var m=f.alternate;if(m===null){if(l=f.return,l!==null){i=l;continue}break}if(f.child===m.child){for(m=f.child;m;){if(m===i)return h(f),n;if(m===l)return h(f),s;m=m.sibling}throw Error(r(188))}if(i.return!==l.return)i=f,l=m;else{for(var x=!1,E=f.child;E;){if(E===i){x=!0,i=f,l=m;break}if(E===l){x=!0,l=f,i=m;break}E=E.sibling}if(!x){for(E=m.child;E;){if(E===i){x=!0,i=m,l=f;break}if(E===l){x=!0,l=m,i=f;break}E=E.sibling}if(!x)throw Error(r(189))}}if(i.alternate!==l)throw Error(r(190))}if(i.tag!==3)throw Error(r(188));return i.stateNode.current===i?n:s}function v(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n;for(n=n.child;n!==null;){if(s=v(n),s!==null)return s;n=n.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),A=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),J=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function te(n){return n===null||typeof n!="object"?null:(n=re&&n[re]||n["@@iterator"],typeof n=="function"?n:null)}var le=Symbol.for("react.client.reference");function ie(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===le?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _:return"Fragment";case M:return"Profiler";case k:return"StrictMode";case B:return"Suspense";case V:return"SuspenseList";case X:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case T:return"Portal";case A:return n.displayName||"Context";case L:return(n._context.displayName||"Context")+".Consumer";case U:var s=n.render;return n=n.displayName,n||(n=s.displayName||s.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case C:return s=n.displayName||null,s!==null?s:ie(n.type)||"Memo";case R:s=n._payload,n=n._init;try{return ie(n(s))}catch{}}return null}var ue=Array.isArray,O=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},ne=[],oe=-1;function j(n){return{current:n}}function G(n){0>oe||(n.current=ne[oe],ne[oe]=null,oe--)}function I(n,s){oe++,ne[oe]=n.current,n.current=s}var F=j(null),ae=j(null),me=j(null),de=j(null);function be(n,s){switch(I(me,s),I(ae,n),I(F,null),s.nodeType){case 9:case 11:n=(n=s.documentElement)&&(n=n.namespaceURI)?fx(n):0;break;default:if(n=s.tagName,s=s.namespaceURI)s=fx(s),n=hx(s,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}G(F),I(F,n)}function De(){G(F),G(ae),G(me)}function _t(n){n.memoizedState!==null&&I(de,n);var s=F.current,i=hx(s,n.type);s!==i&&(I(ae,n),I(F,i))}function Lt(n){ae.current===n&&(G(F),G(ae)),de.current===n&&(G(de),Bo._currentValue=P)}var At,fa;function Rn(n){if(At===void 0)try{throw Error()}catch(i){var s=i.stack.trim().match(/\n( *(at )?)/);At=s&&s[1]||"",fa=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+At+n+fa}var Zi=!1;function Sr(n,s){if(!n||Zi)return"";Zi=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(s){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(Z){var $=Z}Reflect.construct(n,[],W)}else{try{W.call()}catch(Z){$=Z}n.call(W.prototype)}}else{try{throw Error()}catch(Z){$=Z}(W=n())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(Z){if(Z&&$&&typeof Z.stack=="string")return[Z.stack,$.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=l.DetermineComponentFrameRoot(),x=m[0],E=m[1];if(x&&E){var N=x.split(`
`),K=E.split(`
`);for(f=l=0;l<N.length&&!N[l].includes("DetermineComponentFrameRoot");)l++;for(;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;if(l===N.length||f===K.length)for(l=N.length-1,f=K.length-1;1<=l&&0<=f&&N[l]!==K[f];)f--;for(;1<=l&&0<=f;l--,f--)if(N[l]!==K[f]){if(l!==1||f!==1)do if(l--,f--,0>f||N[l]!==K[f]){var Q=`
`+N[l].replace(" at new "," at ");return n.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",n.displayName)),Q}while(1<=l&&0<=f);break}}}finally{Zi=!1,Error.prepareStackTrace=i}return(i=n?n.displayName||n.name:"")?Rn(i):""}function Ms(n,s){switch(n.tag){case 26:case 27:case 5:return Rn(n.type);case 16:return Rn("Lazy");case 13:return n.child!==s&&s!==null?Rn("Suspense Fallback"):Rn("Suspense");case 19:return Rn("SuspenseList");case 0:case 15:return Sr(n.type,!1);case 11:return Sr(n.type.render,!1);case 1:return Sr(n.type,!0);case 31:return Rn("Activity");default:return""}}function Gi(n){try{var s="",i=null;do s+=Ms(n,i),i=n,n=n.return;while(n);return s}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var an=Object.prototype.hasOwnProperty,Fi=e.unstable_scheduleCallback,Qi=e.unstable_cancelCallback,Bt=e.unstable_shouldYield,Va=e.unstable_requestPaint,Ht=e.unstable_now,Td=e.unstable_getCurrentPriorityLevel,Ns=e.unstable_ImmediatePriority,Rl=e.unstable_UserBlockingPriority,ks=e.unstable_NormalPriority,Yi=e.unstable_LowPriority,ha=e.unstable_IdlePriority,Dl=e.log,qa=e.unstable_setDisableYieldValue,zs=null,Ut=null;function Dn(n){if(typeof Dl=="function"&&qa(n),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(zs,n)}catch{}}var kt=Math.clz32?Math.clz32:Fn,_d=Math.log,Xi=Math.LN2;function Fn(n){return n>>>=0,n===0?32:31-(_d(n)/Xi|0)|0}var Er=256,Tr=262144,Rs=4194304;function Qn(n){var s=n&42;if(s!==0)return s;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function we(n,s,i){var l=n.pendingLanes;if(l===0)return 0;var f=0,m=n.suspendedLanes,x=n.pingedLanes;n=n.warmLanes;var E=l&134217727;return E!==0?(l=E&~m,l!==0?f=Qn(l):(x&=E,x!==0?f=Qn(x):i||(i=E&~n,i!==0&&(f=Qn(i))))):(E=l&~m,E!==0?f=Qn(E):x!==0?f=Qn(x):i||(i=l&~n,i!==0&&(f=Qn(i)))),f===0?0:s!==0&&s!==f&&(s&m)===0&&(m=f&-f,i=s&-s,m>=i||m===32&&(i&4194048)!==0)?s:f}function Xe(n,s){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&s)===0}function bt(n,s){switch(n){case 1:case 2:case 4:case 8:case 64:return s+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function zt(){var n=Rs;return Rs<<=1,(Rs&62914560)===0&&(Rs=4194304),n}function Ka(n){for(var s=[],i=0;31>i;i++)s.push(n);return s}function et(n,s){n.pendingLanes|=s,s!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function It(n,s,i,l,f,m){var x=n.pendingLanes;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=i,n.entangledLanes&=i,n.errorRecoveryDisabledLanes&=i,n.shellSuspendCounter=0;var E=n.entanglements,N=n.expirationTimes,K=n.hiddenUpdates;for(i=x&~i;0<i;){var Q=31-kt(i),W=1<<Q;E[Q]=0,N[Q]=-1;var $=K[Q];if($!==null)for(K[Q]=null,Q=0;Q<$.length;Q++){var Z=$[Q];Z!==null&&(Z.lane&=-536870913)}i&=~W}l!==0&&Ds(n,l,0),m!==0&&f===0&&n.tag!==0&&(n.suspendedLanes|=m&~(x&~s))}function Ds(n,s,i){n.pendingLanes|=s,n.suspendedLanes&=~s;var l=31-kt(s);n.entangledLanes|=s,n.entanglements[l]=n.entanglements[l]|1073741824|i&261930}function $t(n,s){var i=n.entangledLanes|=s;for(n=n.entanglements;i;){var l=31-kt(i),f=1<<l;f&s|n[l]&s&&(n[l]|=s),i&=~f}}function Zt(n,s){var i=s&-s;return i=(i&42)!==0?1:_r(i),(i&(n.suspendedLanes|s))!==0?0:i}function _r(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Pn(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function Ad(){var n=D.p;return n!==0?n:(n=window.event,n===void 0?32:Px(n.type))}function Wg(n,s){var i=D.p;try{return D.p=n,s()}finally{D.p=i}}var Ia=Math.random().toString(36).slice(2),Ct="__reactFiber$"+Ia,Gt="__reactProps$"+Ia,Ar="__reactContainer$"+Ia,Cd="__reactEvents$"+Ia,D_="__reactListeners$"+Ia,P_="__reactHandles$"+Ia,Jg="__reactResources$"+Ia,Wi="__reactMarker$"+Ia;function Od(n){delete n[Ct],delete n[Gt],delete n[Cd],delete n[D_],delete n[P_]}function Cr(n){var s=n[Ct];if(s)return s;for(var i=n.parentNode;i;){if(s=i[Ar]||i[Ct]){if(i=s.alternate,s.child!==null||i!==null&&i.child!==null)for(n=bx(n);n!==null;){if(i=n[Ct])return i;n=bx(n)}return s}n=i,i=n.parentNode}return null}function Or(n){if(n=n[Ct]||n[Ar]){var s=n.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return n}return null}function Ji(n){var s=n.tag;if(s===5||s===26||s===27||s===6)return n.stateNode;throw Error(r(33))}function jr(n){var s=n[Jg];return s||(s=n[Jg]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function wt(n){n[Wi]=!0}var ey=new Set,ty={};function Ps(n,s){Mr(n,s),Mr(n+"Capture",s)}function Mr(n,s){for(ty[n]=s,n=0;n<s.length;n++)ey.add(s[n])}var L_=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ny={},ay={};function B_(n){return an.call(ay,n)?!0:an.call(ny,n)?!1:L_.test(n)?ay[n]=!0:(ny[n]=!0,!1)}function Pl(n,s,i){if(B_(s))if(i===null)n.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":n.removeAttribute(s);return;case"boolean":var l=s.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(s);return}}n.setAttribute(s,""+i)}}function Ll(n,s,i){if(i===null)n.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttribute(s,""+i)}}function pa(n,s,i,l){if(l===null)n.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttributeNS(s,i,""+l)}}function yn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function sy(n){var s=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function H_(n,s,i){var l=Object.getOwnPropertyDescriptor(n.constructor.prototype,s);if(!n.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var f=l.get,m=l.set;return Object.defineProperty(n,s,{configurable:!0,get:function(){return f.call(this)},set:function(x){i=""+x,m.call(this,x)}}),Object.defineProperty(n,s,{enumerable:l.enumerable}),{getValue:function(){return i},setValue:function(x){i=""+x},stopTracking:function(){n._valueTracker=null,delete n[s]}}}}function jd(n){if(!n._valueTracker){var s=sy(n)?"checked":"value";n._valueTracker=H_(n,s,""+n[s])}}function ry(n){if(!n)return!1;var s=n._valueTracker;if(!s)return!0;var i=s.getValue(),l="";return n&&(l=sy(n)?n.checked?"true":"false":n.value),n=l,n!==i?(s.setValue(n),!0):!1}function Bl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var U_=/[\n"\\]/g;function vn(n){return n.replace(U_,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Md(n,s,i,l,f,m,x,E){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),s!=null?x==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+yn(s)):n.value!==""+yn(s)&&(n.value=""+yn(s)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),s!=null?Nd(n,x,yn(s)):i!=null?Nd(n,x,yn(i)):l!=null&&n.removeAttribute("value"),f==null&&m!=null&&(n.defaultChecked=!!m),f!=null&&(n.checked=f&&typeof f!="function"&&typeof f!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.name=""+yn(E):n.removeAttribute("name")}function iy(n,s,i,l,f,m,x,E){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),s!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||s!=null)){jd(n);return}i=i!=null?""+yn(i):"",s=s!=null?""+yn(s):i,E||s===n.value||(n.value=s),n.defaultValue=s}l=l??f,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=E?n.checked:!!l,n.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x),jd(n)}function Nd(n,s,i){s==="number"&&Bl(n.ownerDocument)===n||n.defaultValue===""+i||(n.defaultValue=""+i)}function Nr(n,s,i,l){if(n=n.options,s){s={};for(var f=0;f<i.length;f++)s["$"+i[f]]=!0;for(i=0;i<n.length;i++)f=s.hasOwnProperty("$"+n[i].value),n[i].selected!==f&&(n[i].selected=f),f&&l&&(n[i].defaultSelected=!0)}else{for(i=""+yn(i),s=null,f=0;f<n.length;f++){if(n[f].value===i){n[f].selected=!0,l&&(n[f].defaultSelected=!0);return}s!==null||n[f].disabled||(s=n[f])}s!==null&&(s.selected=!0)}}function oy(n,s,i){if(s!=null&&(s=""+yn(s),s!==n.value&&(n.value=s),i==null)){n.defaultValue!==s&&(n.defaultValue=s);return}n.defaultValue=i!=null?""+yn(i):""}function ly(n,s,i,l){if(s==null){if(l!=null){if(i!=null)throw Error(r(92));if(ue(l)){if(1<l.length)throw Error(r(93));l=l[0]}i=l}i==null&&(i=""),s=i}i=yn(s),n.defaultValue=i,l=n.textContent,l===i&&l!==""&&l!==null&&(n.value=l),jd(n)}function kr(n,s){if(s){var i=n.firstChild;if(i&&i===n.lastChild&&i.nodeType===3){i.nodeValue=s;return}}n.textContent=s}var V_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function cy(n,s,i){var l=s.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?n.setProperty(s,""):s==="float"?n.cssFloat="":n[s]="":l?n.setProperty(s,i):typeof i!="number"||i===0||V_.has(s)?s==="float"?n.cssFloat=i:n[s]=(""+i).trim():n[s]=i+"px"}function uy(n,s,i){if(s!=null&&typeof s!="object")throw Error(r(62));if(n=n.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||s!=null&&s.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var f in s)l=s[f],s.hasOwnProperty(f)&&i[f]!==l&&cy(n,f,l)}else for(var m in s)s.hasOwnProperty(m)&&cy(n,m,s[m])}function kd(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var q_=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),K_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hl(n){return K_.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function ma(){}var zd=null;function Rd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var zr=null,Rr=null;function dy(n){var s=Or(n);if(s&&(n=s.stateNode)){var i=n[Gt]||null;e:switch(n=s.stateNode,s.type){case"input":if(Md(n,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),s=i.name,i.type==="radio"&&s!=null){for(i=n;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+vn(""+s)+'"][type="radio"]'),s=0;s<i.length;s++){var l=i[s];if(l!==n&&l.form===n.form){var f=l[Gt]||null;if(!f)throw Error(r(90));Md(l,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(s=0;s<i.length;s++)l=i[s],l.form===n.form&&ry(l)}break e;case"textarea":oy(n,i.value,i.defaultValue);break e;case"select":s=i.value,s!=null&&Nr(n,!!i.multiple,s,!1)}}}var Dd=!1;function fy(n,s,i){if(Dd)return n(s,i);Dd=!0;try{var l=n(s);return l}finally{if(Dd=!1,(zr!==null||Rr!==null)&&(Ac(),zr&&(s=zr,n=Rr,Rr=zr=null,dy(s),n)))for(s=0;s<n.length;s++)dy(n[s])}}function eo(n,s){var i=n.stateNode;if(i===null)return null;var l=i[Gt]||null;if(l===null)return null;i=l[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(i&&typeof i!="function")throw Error(r(231,s,typeof i));return i}var ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pd=!1;if(ga)try{var to={};Object.defineProperty(to,"passive",{get:function(){Pd=!0}}),window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch{Pd=!1}var $a=null,Ld=null,Ul=null;function hy(){if(Ul)return Ul;var n,s=Ld,i=s.length,l,f="value"in $a?$a.value:$a.textContent,m=f.length;for(n=0;n<i&&s[n]===f[n];n++);var x=i-n;for(l=1;l<=x&&s[i-l]===f[m-l];l++);return Ul=f.slice(n,1<l?1-l:void 0)}function Vl(n){var s=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&s===13&&(n=13)):n=s,n===10&&(n=13),32<=n||n===13?n:0}function ql(){return!0}function py(){return!1}function Ft(n){function s(i,l,f,m,x){this._reactName=i,this._targetInst=f,this.type=l,this.nativeEvent=m,this.target=x,this.currentTarget=null;for(var E in n)n.hasOwnProperty(E)&&(i=n[E],this[E]=i?i(m):m[E]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?ql:py,this.isPropagationStopped=py,this}return y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=ql)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=ql)},persist:function(){},isPersistent:ql}),s}var Ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kl=Ft(Ls),no=y({},Ls,{view:0,detail:0}),I_=Ft(no),Bd,Hd,ao,Il=y({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vd,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ao&&(ao&&n.type==="mousemove"?(Bd=n.screenX-ao.screenX,Hd=n.screenY-ao.screenY):Hd=Bd=0,ao=n),Bd)},movementY:function(n){return"movementY"in n?n.movementY:Hd}}),my=Ft(Il),$_=y({},Il,{dataTransfer:0}),Z_=Ft($_),G_=y({},no,{relatedTarget:0}),Ud=Ft(G_),F_=y({},Ls,{animationName:0,elapsedTime:0,pseudoElement:0}),Q_=Ft(F_),Y_=y({},Ls,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),X_=Ft(Y_),W_=y({},Ls,{data:0}),gy=Ft(W_),J_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},eA={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},tA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function nA(n){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(n):(n=tA[n])?!!s[n]:!1}function Vd(){return nA}var aA=y({},no,{key:function(n){if(n.key){var s=J_[n.key]||n.key;if(s!=="Unidentified")return s}return n.type==="keypress"?(n=Vl(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?eA[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vd,charCode:function(n){return n.type==="keypress"?Vl(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Vl(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),sA=Ft(aA),rA=y({},Il,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yy=Ft(rA),iA=y({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vd}),oA=Ft(iA),lA=y({},Ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),cA=Ft(lA),uA=y({},Il,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),dA=Ft(uA),fA=y({},Ls,{newState:0,oldState:0}),hA=Ft(fA),pA=[9,13,27,32],qd=ga&&"CompositionEvent"in window,so=null;ga&&"documentMode"in document&&(so=document.documentMode);var mA=ga&&"TextEvent"in window&&!so,vy=ga&&(!qd||so&&8<so&&11>=so),xy=" ",by=!1;function wy(n,s){switch(n){case"keyup":return pA.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Sy(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Dr=!1;function gA(n,s){switch(n){case"compositionend":return Sy(s);case"keypress":return s.which!==32?null:(by=!0,xy);case"textInput":return n=s.data,n===xy&&by?null:n;default:return null}}function yA(n,s){if(Dr)return n==="compositionend"||!qd&&wy(n,s)?(n=hy(),Ul=Ld=$a=null,Dr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return vy&&s.locale!=="ko"?null:s.data;default:return null}}var vA={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ey(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s==="input"?!!vA[n.type]:s==="textarea"}function Ty(n,s,i,l){zr?Rr?Rr.push(l):Rr=[l]:zr=l,s=zc(s,"onChange"),0<s.length&&(i=new Kl("onChange","change",null,i,l),n.push({event:i,listeners:s}))}var ro=null,io=null;function xA(n){ix(n,0)}function $l(n){var s=Ji(n);if(ry(s))return n}function _y(n,s){if(n==="change")return s}var Ay=!1;if(ga){var Kd;if(ga){var Id="oninput"in document;if(!Id){var Cy=document.createElement("div");Cy.setAttribute("oninput","return;"),Id=typeof Cy.oninput=="function"}Kd=Id}else Kd=!1;Ay=Kd&&(!document.documentMode||9<document.documentMode)}function Oy(){ro&&(ro.detachEvent("onpropertychange",jy),io=ro=null)}function jy(n){if(n.propertyName==="value"&&$l(io)){var s=[];Ty(s,io,n,Rd(n)),fy(xA,s)}}function bA(n,s,i){n==="focusin"?(Oy(),ro=s,io=i,ro.attachEvent("onpropertychange",jy)):n==="focusout"&&Oy()}function wA(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $l(io)}function SA(n,s){if(n==="click")return $l(s)}function EA(n,s){if(n==="input"||n==="change")return $l(s)}function TA(n,s){return n===s&&(n!==0||1/n===1/s)||n!==n&&s!==s}var sn=typeof Object.is=="function"?Object.is:TA;function oo(n,s){if(sn(n,s))return!0;if(typeof n!="object"||n===null||typeof s!="object"||s===null)return!1;var i=Object.keys(n),l=Object.keys(s);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var f=i[l];if(!an.call(s,f)||!sn(n[f],s[f]))return!1}return!0}function My(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Ny(n,s){var i=My(n);n=0;for(var l;i;){if(i.nodeType===3){if(l=n+i.textContent.length,n<=s&&l>=s)return{node:i,offset:s-n};n=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=My(i)}}function ky(n,s){return n&&s?n===s?!0:n&&n.nodeType===3?!1:s&&s.nodeType===3?ky(n,s.parentNode):"contains"in n?n.contains(s):n.compareDocumentPosition?!!(n.compareDocumentPosition(s)&16):!1:!1}function zy(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var s=Bl(n.document);s instanceof n.HTMLIFrameElement;){try{var i=typeof s.contentWindow.location.href=="string"}catch{i=!1}if(i)n=s.contentWindow;else break;s=Bl(n.document)}return s}function $d(n){var s=n&&n.nodeName&&n.nodeName.toLowerCase();return s&&(s==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||s==="textarea"||n.contentEditable==="true")}var _A=ga&&"documentMode"in document&&11>=document.documentMode,Pr=null,Zd=null,lo=null,Gd=!1;function Ry(n,s,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Gd||Pr==null||Pr!==Bl(l)||(l=Pr,"selectionStart"in l&&$d(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),lo&&oo(lo,l)||(lo=l,l=zc(Zd,"onSelect"),0<l.length&&(s=new Kl("onSelect","select",null,s,i),n.push({event:s,listeners:l}),s.target=Pr)))}function Bs(n,s){var i={};return i[n.toLowerCase()]=s.toLowerCase(),i["Webkit"+n]="webkit"+s,i["Moz"+n]="moz"+s,i}var Lr={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionrun:Bs("Transition","TransitionRun"),transitionstart:Bs("Transition","TransitionStart"),transitioncancel:Bs("Transition","TransitionCancel"),transitionend:Bs("Transition","TransitionEnd")},Fd={},Dy={};ga&&(Dy=document.createElement("div").style,"AnimationEvent"in window||(delete Lr.animationend.animation,delete Lr.animationiteration.animation,delete Lr.animationstart.animation),"TransitionEvent"in window||delete Lr.transitionend.transition);function Hs(n){if(Fd[n])return Fd[n];if(!Lr[n])return n;var s=Lr[n],i;for(i in s)if(s.hasOwnProperty(i)&&i in Dy)return Fd[n]=s[i];return n}var Py=Hs("animationend"),Ly=Hs("animationiteration"),By=Hs("animationstart"),AA=Hs("transitionrun"),CA=Hs("transitionstart"),OA=Hs("transitioncancel"),Hy=Hs("transitionend"),Uy=new Map,Qd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Qd.push("scrollEnd");function Ln(n,s){Uy.set(n,s),Ps(s,[n])}var Zl=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},xn=[],Br=0,Yd=0;function Gl(){for(var n=Br,s=Yd=Br=0;s<n;){var i=xn[s];xn[s++]=null;var l=xn[s];xn[s++]=null;var f=xn[s];xn[s++]=null;var m=xn[s];if(xn[s++]=null,l!==null&&f!==null){var x=l.pending;x===null?f.next=f:(f.next=x.next,x.next=f),l.pending=f}m!==0&&Vy(i,f,m)}}function Fl(n,s,i,l){xn[Br++]=n,xn[Br++]=s,xn[Br++]=i,xn[Br++]=l,Yd|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function Xd(n,s,i,l){return Fl(n,s,i,l),Ql(n)}function Us(n,s){return Fl(n,null,null,s),Ql(n)}function Vy(n,s,i){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i);for(var f=!1,m=n.return;m!==null;)m.childLanes|=i,l=m.alternate,l!==null&&(l.childLanes|=i),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(f=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,f&&s!==null&&(f=31-kt(i),n=m.hiddenUpdates,l=n[f],l===null?n[f]=[s]:l.push(s),s.lane=i|536870912),m):null}function Ql(n){if(50<No)throw No=0,oh=null,Error(r(185));for(var s=n.return;s!==null;)n=s,s=n.return;return n.tag===3?n.stateNode:null}var Hr={};function jA(n,s,i,l){this.tag=n,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(n,s,i,l){return new jA(n,s,i,l)}function Wd(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ya(n,s){var i=n.alternate;return i===null?(i=rn(n.tag,s,n.key,n.mode),i.elementType=n.elementType,i.type=n.type,i.stateNode=n.stateNode,i.alternate=n,n.alternate=i):(i.pendingProps=s,i.type=n.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=n.flags&65011712,i.childLanes=n.childLanes,i.lanes=n.lanes,i.child=n.child,i.memoizedProps=n.memoizedProps,i.memoizedState=n.memoizedState,i.updateQueue=n.updateQueue,s=n.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},i.sibling=n.sibling,i.index=n.index,i.ref=n.ref,i.refCleanup=n.refCleanup,i}function qy(n,s){n.flags&=65011714;var i=n.alternate;return i===null?(n.childLanes=0,n.lanes=s,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=i.childLanes,n.lanes=i.lanes,n.child=i.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=i.memoizedProps,n.memoizedState=i.memoizedState,n.updateQueue=i.updateQueue,n.type=i.type,s=i.dependencies,n.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),n}function Yl(n,s,i,l,f,m){var x=0;if(l=n,typeof n=="function")Wd(n)&&(x=1);else if(typeof n=="string")x=RC(n,i,F.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case X:return n=rn(31,i,s,f),n.elementType=X,n.lanes=m,n;case _:return Vs(i.children,f,m,s);case k:x=8,f|=24;break;case M:return n=rn(12,i,s,f|2),n.elementType=M,n.lanes=m,n;case B:return n=rn(13,i,s,f),n.elementType=B,n.lanes=m,n;case V:return n=rn(19,i,s,f),n.elementType=V,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case A:x=10;break e;case L:x=9;break e;case U:x=11;break e;case C:x=14;break e;case R:x=16,l=null;break e}x=29,i=Error(r(130,n===null?"null":typeof n,"")),l=null}return s=rn(x,i,s,f),s.elementType=n,s.type=l,s.lanes=m,s}function Vs(n,s,i,l){return n=rn(7,n,l,s),n.lanes=i,n}function Jd(n,s,i){return n=rn(6,n,null,s),n.lanes=i,n}function Ky(n){var s=rn(18,null,null,0);return s.stateNode=n,s}function ef(n,s,i){return s=rn(4,n.children!==null?n.children:[],n.key,s),s.lanes=i,s.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},s}var Iy=new WeakMap;function bn(n,s){if(typeof n=="object"&&n!==null){var i=Iy.get(n);return i!==void 0?i:(s={value:n,source:s,stack:Gi(s)},Iy.set(n,s),s)}return{value:n,source:s,stack:Gi(s)}}var Ur=[],Vr=0,Xl=null,co=0,wn=[],Sn=0,Za=null,Yn=1,Xn="";function va(n,s){Ur[Vr++]=co,Ur[Vr++]=Xl,Xl=n,co=s}function $y(n,s,i){wn[Sn++]=Yn,wn[Sn++]=Xn,wn[Sn++]=Za,Za=n;var l=Yn;n=Xn;var f=32-kt(l)-1;l&=~(1<<f),i+=1;var m=32-kt(s)+f;if(30<m){var x=f-f%5;m=(l&(1<<x)-1).toString(32),l>>=x,f-=x,Yn=1<<32-kt(s)+f|i<<f|l,Xn=m+n}else Yn=1<<m|i<<f|l,Xn=n}function tf(n){n.return!==null&&(va(n,1),$y(n,1,0))}function nf(n){for(;n===Xl;)Xl=Ur[--Vr],Ur[Vr]=null,co=Ur[--Vr],Ur[Vr]=null;for(;n===Za;)Za=wn[--Sn],wn[Sn]=null,Xn=wn[--Sn],wn[Sn]=null,Yn=wn[--Sn],wn[Sn]=null}function Zy(n,s){wn[Sn++]=Yn,wn[Sn++]=Xn,wn[Sn++]=Za,Yn=s.id,Xn=s.overflow,Za=n}var Ot=null,Qe=null,Pe=!1,Ga=null,En=!1,af=Error(r(519));function Fa(n){var s=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw uo(bn(s,n)),af}function Gy(n){var s=n.stateNode,i=n.type,l=n.memoizedProps;switch(s[Ct]=n,s[Gt]=l,i){case"dialog":ke("cancel",s),ke("close",s);break;case"iframe":case"object":case"embed":ke("load",s);break;case"video":case"audio":for(i=0;i<zo.length;i++)ke(zo[i],s);break;case"source":ke("error",s);break;case"img":case"image":case"link":ke("error",s),ke("load",s);break;case"details":ke("toggle",s);break;case"input":ke("invalid",s),iy(s,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":ke("invalid",s);break;case"textarea":ke("invalid",s),ly(s,l.value,l.defaultValue,l.children)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||s.textContent===""+i||l.suppressHydrationWarning===!0||ux(s.textContent,i)?(l.popover!=null&&(ke("beforetoggle",s),ke("toggle",s)),l.onScroll!=null&&ke("scroll",s),l.onScrollEnd!=null&&ke("scrollend",s),l.onClick!=null&&(s.onclick=ma),s=!0):s=!1,s||Fa(n,!0)}function Fy(n){for(Ot=n.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:En=!1;return;case 27:case 3:En=!0;return;default:Ot=Ot.return}}function qr(n){if(n!==Ot)return!1;if(!Pe)return Fy(n),Pe=!0,!1;var s=n.tag,i;if((i=s!==3&&s!==27)&&((i=s===5)&&(i=n.type,i=!(i!=="form"&&i!=="button")||Sh(n.type,n.memoizedProps)),i=!i),i&&Qe&&Fa(n),Fy(n),s===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Qe=xx(n)}else if(s===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));Qe=xx(n)}else s===27?(s=Qe,ls(n.type)?(n=Ch,Ch=null,Qe=n):Qe=s):Qe=Ot?_n(n.stateNode.nextSibling):null;return!0}function qs(){Qe=Ot=null,Pe=!1}function sf(){var n=Ga;return n!==null&&(Wt===null?Wt=n:Wt.push.apply(Wt,n),Ga=null),n}function uo(n){Ga===null?Ga=[n]:Ga.push(n)}var rf=j(null),Ks=null,xa=null;function Qa(n,s,i){I(rf,s._currentValue),s._currentValue=i}function ba(n){n._currentValue=rf.current,G(rf)}function of(n,s,i){for(;n!==null;){var l=n.alternate;if((n.childLanes&s)!==s?(n.childLanes|=s,l!==null&&(l.childLanes|=s)):l!==null&&(l.childLanes&s)!==s&&(l.childLanes|=s),n===i)break;n=n.return}}function lf(n,s,i,l){var f=n.child;for(f!==null&&(f.return=n);f!==null;){var m=f.dependencies;if(m!==null){var x=f.child;m=m.firstContext;e:for(;m!==null;){var E=m;m=f;for(var N=0;N<s.length;N++)if(E.context===s[N]){m.lanes|=i,E=m.alternate,E!==null&&(E.lanes|=i),of(m.return,i,n),l||(x=null);break e}m=E.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(r(341));x.lanes|=i,m=x.alternate,m!==null&&(m.lanes|=i),of(x,i,n),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===n){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function Kr(n,s,i,l){n=null;for(var f=s,m=!1;f!==null;){if(!m){if((f.flags&524288)!==0)m=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var E=f.type;sn(f.pendingProps.value,x.value)||(n!==null?n.push(E):n=[E])}}else if(f===de.current){if(x=f.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(n!==null?n.push(Bo):n=[Bo])}f=f.return}n!==null&&lf(s,n,i,l),s.flags|=262144}function Wl(n){for(n=n.firstContext;n!==null;){if(!sn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Is(n){Ks=n,xa=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function jt(n){return Qy(Ks,n)}function Jl(n,s){return Ks===null&&Is(n),Qy(n,s)}function Qy(n,s){var i=s._currentValue;if(s={context:s,memoizedValue:i,next:null},xa===null){if(n===null)throw Error(r(308));xa=s,n.dependencies={lanes:0,firstContext:s},n.flags|=524288}else xa=xa.next=s;return i}var MA=typeof AbortController<"u"?AbortController:function(){var n=[],s=this.signal={aborted:!1,addEventListener:function(i,l){n.push(l)}};this.abort=function(){s.aborted=!0,n.forEach(function(i){return i()})}},NA=e.unstable_scheduleCallback,kA=e.unstable_NormalPriority,dt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function cf(){return{controller:new MA,data:new Map,refCount:0}}function fo(n){n.refCount--,n.refCount===0&&NA(kA,function(){n.controller.abort()})}var ho=null,uf=0,Ir=0,$r=null;function zA(n,s){if(ho===null){var i=ho=[];uf=0,Ir=hh(),$r={status:"pending",value:void 0,then:function(l){i.push(l)}}}return uf++,s.then(Yy,Yy),s}function Yy(){if(--uf===0&&ho!==null){$r!==null&&($r.status="fulfilled");var n=ho;ho=null,Ir=0,$r=null;for(var s=0;s<n.length;s++)(0,n[s])()}}function RA(n,s){var i=[],l={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return n.then(function(){l.status="fulfilled",l.value=s;for(var f=0;f<i.length;f++)(0,i[f])(s)},function(f){for(l.status="rejected",l.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),l}var Xy=O.S;O.S=function(n,s){R0=Ht(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&zA(n,s),Xy!==null&&Xy(n,s)};var $s=j(null);function df(){var n=$s.current;return n!==null?n:Ge.pooledCache}function ec(n,s){s===null?I($s,$s.current):I($s,s.pool)}function Wy(){var n=df();return n===null?null:{parent:dt._currentValue,pool:n}}var Zr=Error(r(460)),ff=Error(r(474)),tc=Error(r(542)),nc={then:function(){}};function Jy(n){return n=n.status,n==="fulfilled"||n==="rejected"}function ev(n,s,i){switch(i=n[i],i===void 0?n.push(s):i!==s&&(s.then(ma,ma),s=i),s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,nv(n),n;default:if(typeof s.status=="string")s.then(ma,ma);else{if(n=Ge,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=s,n.status="pending",n.then(function(l){if(s.status==="pending"){var f=s;f.status="fulfilled",f.value=l}},function(l){if(s.status==="pending"){var f=s;f.status="rejected",f.reason=l}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw n=s.reason,nv(n),n}throw Gs=s,Zr}}function Zs(n){try{var s=n._init;return s(n._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(Gs=i,Zr):i}}var Gs=null;function tv(){if(Gs===null)throw Error(r(459));var n=Gs;return Gs=null,n}function nv(n){if(n===Zr||n===tc)throw Error(r(483))}var Gr=null,po=0;function ac(n){var s=po;return po+=1,Gr===null&&(Gr=[]),ev(Gr,n,s)}function mo(n,s){s=s.props.ref,n.ref=s!==void 0?s:null}function sc(n,s){throw s.$$typeof===b?Error(r(525)):(n=Object.prototype.toString.call(s),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":n)))}function av(n){function s(H,z){if(n){var q=H.deletions;q===null?(H.deletions=[z],H.flags|=16):q.push(z)}}function i(H,z){if(!n)return null;for(;z!==null;)s(H,z),z=z.sibling;return null}function l(H){for(var z=new Map;H!==null;)H.key!==null?z.set(H.key,H):z.set(H.index,H),H=H.sibling;return z}function f(H,z){return H=ya(H,z),H.index=0,H.sibling=null,H}function m(H,z,q){return H.index=q,n?(q=H.alternate,q!==null?(q=q.index,q<z?(H.flags|=67108866,z):q):(H.flags|=67108866,z)):(H.flags|=1048576,z)}function x(H){return n&&H.alternate===null&&(H.flags|=67108866),H}function E(H,z,q,Y){return z===null||z.tag!==6?(z=Jd(q,H.mode,Y),z.return=H,z):(z=f(z,q),z.return=H,z)}function N(H,z,q,Y){var ye=q.type;return ye===_?Q(H,z,q.props.children,Y,q.key):z!==null&&(z.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===R&&Zs(ye)===z.type)?(z=f(z,q.props),mo(z,q),z.return=H,z):(z=Yl(q.type,q.key,q.props,null,H.mode,Y),mo(z,q),z.return=H,z)}function K(H,z,q,Y){return z===null||z.tag!==4||z.stateNode.containerInfo!==q.containerInfo||z.stateNode.implementation!==q.implementation?(z=ef(q,H.mode,Y),z.return=H,z):(z=f(z,q.children||[]),z.return=H,z)}function Q(H,z,q,Y,ye){return z===null||z.tag!==7?(z=Vs(q,H.mode,Y,ye),z.return=H,z):(z=f(z,q),z.return=H,z)}function W(H,z,q){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=Jd(""+z,H.mode,q),z.return=H,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case w:return q=Yl(z.type,z.key,z.props,null,H.mode,q),mo(q,z),q.return=H,q;case T:return z=ef(z,H.mode,q),z.return=H,z;case R:return z=Zs(z),W(H,z,q)}if(ue(z)||te(z))return z=Vs(z,H.mode,q,null),z.return=H,z;if(typeof z.then=="function")return W(H,ac(z),q);if(z.$$typeof===A)return W(H,Jl(H,z),q);sc(H,z)}return null}function $(H,z,q,Y){var ye=z!==null?z.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ye!==null?null:E(H,z,""+q,Y);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return q.key===ye?N(H,z,q,Y):null;case T:return q.key===ye?K(H,z,q,Y):null;case R:return q=Zs(q),$(H,z,q,Y)}if(ue(q)||te(q))return ye!==null?null:Q(H,z,q,Y,null);if(typeof q.then=="function")return $(H,z,ac(q),Y);if(q.$$typeof===A)return $(H,z,Jl(H,q),Y);sc(H,q)}return null}function Z(H,z,q,Y,ye){if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return H=H.get(q)||null,E(z,H,""+Y,ye);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case w:return H=H.get(Y.key===null?q:Y.key)||null,N(z,H,Y,ye);case T:return H=H.get(Y.key===null?q:Y.key)||null,K(z,H,Y,ye);case R:return Y=Zs(Y),Z(H,z,q,Y,ye)}if(ue(Y)||te(Y))return H=H.get(q)||null,Q(z,H,Y,ye,null);if(typeof Y.then=="function")return Z(H,z,q,ac(Y),ye);if(Y.$$typeof===A)return Z(H,z,q,Jl(z,Y),ye);sc(z,Y)}return null}function fe(H,z,q,Y){for(var ye=null,Le=null,ge=z,Oe=z=0,Re=null;ge!==null&&Oe<q.length;Oe++){ge.index>Oe?(Re=ge,ge=null):Re=ge.sibling;var Be=$(H,ge,q[Oe],Y);if(Be===null){ge===null&&(ge=Re);break}n&&ge&&Be.alternate===null&&s(H,ge),z=m(Be,z,Oe),Le===null?ye=Be:Le.sibling=Be,Le=Be,ge=Re}if(Oe===q.length)return i(H,ge),Pe&&va(H,Oe),ye;if(ge===null){for(;Oe<q.length;Oe++)ge=W(H,q[Oe],Y),ge!==null&&(z=m(ge,z,Oe),Le===null?ye=ge:Le.sibling=ge,Le=ge);return Pe&&va(H,Oe),ye}for(ge=l(ge);Oe<q.length;Oe++)Re=Z(ge,H,Oe,q[Oe],Y),Re!==null&&(n&&Re.alternate!==null&&ge.delete(Re.key===null?Oe:Re.key),z=m(Re,z,Oe),Le===null?ye=Re:Le.sibling=Re,Le=Re);return n&&ge.forEach(function(hs){return s(H,hs)}),Pe&&va(H,Oe),ye}function ve(H,z,q,Y){if(q==null)throw Error(r(151));for(var ye=null,Le=null,ge=z,Oe=z=0,Re=null,Be=q.next();ge!==null&&!Be.done;Oe++,Be=q.next()){ge.index>Oe?(Re=ge,ge=null):Re=ge.sibling;var hs=$(H,ge,Be.value,Y);if(hs===null){ge===null&&(ge=Re);break}n&&ge&&hs.alternate===null&&s(H,ge),z=m(hs,z,Oe),Le===null?ye=hs:Le.sibling=hs,Le=hs,ge=Re}if(Be.done)return i(H,ge),Pe&&va(H,Oe),ye;if(ge===null){for(;!Be.done;Oe++,Be=q.next())Be=W(H,Be.value,Y),Be!==null&&(z=m(Be,z,Oe),Le===null?ye=Be:Le.sibling=Be,Le=Be);return Pe&&va(H,Oe),ye}for(ge=l(ge);!Be.done;Oe++,Be=q.next())Be=Z(ge,H,Oe,Be.value,Y),Be!==null&&(n&&Be.alternate!==null&&ge.delete(Be.key===null?Oe:Be.key),z=m(Be,z,Oe),Le===null?ye=Be:Le.sibling=Be,Le=Be);return n&&ge.forEach(function($C){return s(H,$C)}),Pe&&va(H,Oe),ye}function Ze(H,z,q,Y){if(typeof q=="object"&&q!==null&&q.type===_&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case w:e:{for(var ye=q.key;z!==null;){if(z.key===ye){if(ye=q.type,ye===_){if(z.tag===7){i(H,z.sibling),Y=f(z,q.props.children),Y.return=H,H=Y;break e}}else if(z.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===R&&Zs(ye)===z.type){i(H,z.sibling),Y=f(z,q.props),mo(Y,q),Y.return=H,H=Y;break e}i(H,z);break}else s(H,z);z=z.sibling}q.type===_?(Y=Vs(q.props.children,H.mode,Y,q.key),Y.return=H,H=Y):(Y=Yl(q.type,q.key,q.props,null,H.mode,Y),mo(Y,q),Y.return=H,H=Y)}return x(H);case T:e:{for(ye=q.key;z!==null;){if(z.key===ye)if(z.tag===4&&z.stateNode.containerInfo===q.containerInfo&&z.stateNode.implementation===q.implementation){i(H,z.sibling),Y=f(z,q.children||[]),Y.return=H,H=Y;break e}else{i(H,z);break}else s(H,z);z=z.sibling}Y=ef(q,H.mode,Y),Y.return=H,H=Y}return x(H);case R:return q=Zs(q),Ze(H,z,q,Y)}if(ue(q))return fe(H,z,q,Y);if(te(q)){if(ye=te(q),typeof ye!="function")throw Error(r(150));return q=ye.call(q),ve(H,z,q,Y)}if(typeof q.then=="function")return Ze(H,z,ac(q),Y);if(q.$$typeof===A)return Ze(H,z,Jl(H,q),Y);sc(H,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,z!==null&&z.tag===6?(i(H,z.sibling),Y=f(z,q),Y.return=H,H=Y):(i(H,z),Y=Jd(q,H.mode,Y),Y.return=H,H=Y),x(H)):i(H,z)}return function(H,z,q,Y){try{po=0;var ye=Ze(H,z,q,Y);return Gr=null,ye}catch(ge){if(ge===Zr||ge===tc)throw ge;var Le=rn(29,ge,null,H.mode);return Le.lanes=Y,Le.return=H,Le}finally{}}}var Fs=av(!0),sv=av(!1),Ya=!1;function hf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pf(n,s){n=n.updateQueue,s.updateQueue===n&&(s.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Xa(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Wa(n,s,i){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,(Ue&2)!==0){var f=l.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s,s=Ql(n),Vy(n,null,i),s}return Fl(n,l,s,i),Ql(n)}function go(n,s,i){if(s=s.updateQueue,s!==null&&(s=s.shared,(i&4194048)!==0)){var l=s.lanes;l&=n.pendingLanes,i|=l,s.lanes=i,$t(n,i)}}function mf(n,s){var i=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var f=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var x={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?f=m=x:m=m.next=x,i=i.next}while(i!==null);m===null?f=m=s:m=m.next=s}else f=m=s;i={baseState:l.baseState,firstBaseUpdate:f,lastBaseUpdate:m,shared:l.shared,callbacks:l.callbacks},n.updateQueue=i;return}n=i.lastBaseUpdate,n===null?i.firstBaseUpdate=s:n.next=s,i.lastBaseUpdate=s}var gf=!1;function yo(){if(gf){var n=$r;if(n!==null)throw n}}function vo(n,s,i,l){gf=!1;var f=n.updateQueue;Ya=!1;var m=f.firstBaseUpdate,x=f.lastBaseUpdate,E=f.shared.pending;if(E!==null){f.shared.pending=null;var N=E,K=N.next;N.next=null,x===null?m=K:x.next=K,x=N;var Q=n.alternate;Q!==null&&(Q=Q.updateQueue,E=Q.lastBaseUpdate,E!==x&&(E===null?Q.firstBaseUpdate=K:E.next=K,Q.lastBaseUpdate=N))}if(m!==null){var W=f.baseState;x=0,Q=K=N=null,E=m;do{var $=E.lane&-536870913,Z=$!==E.lane;if(Z?(ze&$)===$:(l&$)===$){$!==0&&$===Ir&&(gf=!0),Q!==null&&(Q=Q.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var fe=n,ve=E;$=s;var Ze=i;switch(ve.tag){case 1:if(fe=ve.payload,typeof fe=="function"){W=fe.call(Ze,W,$);break e}W=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=ve.payload,$=typeof fe=="function"?fe.call(Ze,W,$):fe,$==null)break e;W=y({},W,$);break e;case 2:Ya=!0}}$=E.callback,$!==null&&(n.flags|=64,Z&&(n.flags|=8192),Z=f.callbacks,Z===null?f.callbacks=[$]:Z.push($))}else Z={lane:$,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Q===null?(K=Q=Z,N=W):Q=Q.next=Z,x|=$;if(E=E.next,E===null){if(E=f.shared.pending,E===null)break;Z=E,E=Z.next,Z.next=null,f.lastBaseUpdate=Z,f.shared.pending=null}}while(!0);Q===null&&(N=W),f.baseState=N,f.firstBaseUpdate=K,f.lastBaseUpdate=Q,m===null&&(f.shared.lanes=0),as|=x,n.lanes=x,n.memoizedState=W}}function rv(n,s){if(typeof n!="function")throw Error(r(191,n));n.call(s)}function iv(n,s){var i=n.callbacks;if(i!==null)for(n.callbacks=null,n=0;n<i.length;n++)rv(i[n],s)}var Fr=j(null),rc=j(0);function ov(n,s){n=ja,I(rc,n),I(Fr,s),ja=n|s.baseLanes}function yf(){I(rc,ja),I(Fr,Fr.current)}function vf(){ja=rc.current,G(Fr),G(rc)}var on=j(null),Tn=null;function Ja(n){var s=n.alternate;I(ot,ot.current&1),I(on,n),Tn===null&&(s===null||Fr.current!==null||s.memoizedState!==null)&&(Tn=n)}function xf(n){I(ot,ot.current),I(on,n),Tn===null&&(Tn=n)}function lv(n){n.tag===22?(I(ot,ot.current),I(on,n),Tn===null&&(Tn=n)):es()}function es(){I(ot,ot.current),I(on,on.current)}function ln(n){G(on),Tn===n&&(Tn=null),G(ot)}var ot=j(0);function ic(n){for(var s=n;s!==null;){if(s.tag===13){var i=s.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||_h(i)||Ah(i)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var wa=0,Ce=null,Ie=null,ft=null,oc=!1,Qr=!1,Qs=!1,lc=0,xo=0,Yr=null,DA=0;function at(){throw Error(r(321))}function bf(n,s){if(s===null)return!1;for(var i=0;i<s.length&&i<n.length;i++)if(!sn(n[i],s[i]))return!1;return!0}function wf(n,s,i,l,f,m){return wa=m,Ce=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,O.H=n===null||n.memoizedState===null?$v:Pf,Qs=!1,m=i(l,f),Qs=!1,Qr&&(m=uv(s,i,l,f)),cv(n),m}function cv(n){O.H=So;var s=Ie!==null&&Ie.next!==null;if(wa=0,ft=Ie=Ce=null,oc=!1,xo=0,Yr=null,s)throw Error(r(300));n===null||ht||(n=n.dependencies,n!==null&&Wl(n)&&(ht=!0))}function uv(n,s,i,l){Ce=n;var f=0;do{if(Qr&&(Yr=null),xo=0,Qr=!1,25<=f)throw Error(r(301));if(f+=1,ft=Ie=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}O.H=Zv,m=s(i,l)}while(Qr);return m}function PA(){var n=O.H,s=n.useState()[0];return s=typeof s.then=="function"?bo(s):s,n=n.useState()[0],(Ie!==null?Ie.memoizedState:null)!==n&&(Ce.flags|=1024),s}function Sf(){var n=lc!==0;return lc=0,n}function Ef(n,s,i){s.updateQueue=n.updateQueue,s.flags&=-2053,n.lanes&=~i}function Tf(n){if(oc){for(n=n.memoizedState;n!==null;){var s=n.queue;s!==null&&(s.pending=null),n=n.next}oc=!1}wa=0,ft=Ie=Ce=null,Qr=!1,xo=lc=0,Yr=null}function Vt(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?Ce.memoizedState=ft=n:ft=ft.next=n,ft}function lt(){if(Ie===null){var n=Ce.alternate;n=n!==null?n.memoizedState:null}else n=Ie.next;var s=ft===null?Ce.memoizedState:ft.next;if(s!==null)ft=s,Ie=n;else{if(n===null)throw Ce.alternate===null?Error(r(467)):Error(r(310));Ie=n,n={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},ft===null?Ce.memoizedState=ft=n:ft=ft.next=n}return ft}function cc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bo(n){var s=xo;return xo+=1,Yr===null&&(Yr=[]),n=ev(Yr,n,s),s=Ce,(ft===null?s.memoizedState:ft.next)===null&&(s=s.alternate,O.H=s===null||s.memoizedState===null?$v:Pf),n}function uc(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return bo(n);if(n.$$typeof===A)return jt(n)}throw Error(r(438,String(n)))}function _f(n){var s=null,i=Ce.updateQueue;if(i!==null&&(s=i.memoCache),s==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(s={data:l.data.map(function(f){return f.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),i===null&&(i=cc(),Ce.updateQueue=i),i.memoCache=s,i=s.data[s.index],i===void 0)for(i=s.data[s.index]=Array(n),l=0;l<n;l++)i[l]=J;return s.index++,i}function Sa(n,s){return typeof s=="function"?s(n):s}function dc(n){var s=lt();return Af(s,Ie,n)}function Af(n,s,i){var l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=i;var f=n.baseQueue,m=l.pending;if(m!==null){if(f!==null){var x=f.next;f.next=m.next,m.next=x}s.baseQueue=f=m,l.pending=null}if(m=n.baseState,f===null)n.memoizedState=m;else{s=f.next;var E=x=null,N=null,K=s,Q=!1;do{var W=K.lane&-536870913;if(W!==K.lane?(ze&W)===W:(wa&W)===W){var $=K.revertLane;if($===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),W===Ir&&(Q=!0);else if((wa&$)===$){K=K.next,$===Ir&&(Q=!0);continue}else W={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},N===null?(E=N=W,x=m):N=N.next=W,Ce.lanes|=$,as|=$;W=K.action,Qs&&i(m,W),m=K.hasEagerState?K.eagerState:i(m,W)}else $={lane:W,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},N===null?(E=N=$,x=m):N=N.next=$,Ce.lanes|=W,as|=W;K=K.next}while(K!==null&&K!==s);if(N===null?x=m:N.next=E,!sn(m,n.memoizedState)&&(ht=!0,Q&&(i=$r,i!==null)))throw i;n.memoizedState=m,n.baseState=x,n.baseQueue=N,l.lastRenderedState=m}return f===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Cf(n){var s=lt(),i=s.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var l=i.dispatch,f=i.pending,m=s.memoizedState;if(f!==null){i.pending=null;var x=f=f.next;do m=n(m,x.action),x=x.next;while(x!==f);sn(m,s.memoizedState)||(ht=!0),s.memoizedState=m,s.baseQueue===null&&(s.baseState=m),i.lastRenderedState=m}return[m,l]}function dv(n,s,i){var l=Ce,f=lt(),m=Pe;if(m){if(i===void 0)throw Error(r(407));i=i()}else i=s();var x=!sn((Ie||f).memoizedState,i);if(x&&(f.memoizedState=i,ht=!0),f=f.queue,Mf(pv.bind(null,l,f,n),[n]),f.getSnapshot!==s||x||ft!==null&&ft.memoizedState.tag&1){if(l.flags|=2048,Xr(9,{destroy:void 0},hv.bind(null,l,f,i,s),null),Ge===null)throw Error(r(349));m||(wa&127)!==0||fv(l,s,i)}return i}function fv(n,s,i){n.flags|=16384,n={getSnapshot:s,value:i},s=Ce.updateQueue,s===null?(s=cc(),Ce.updateQueue=s,s.stores=[n]):(i=s.stores,i===null?s.stores=[n]:i.push(n))}function hv(n,s,i,l){s.value=i,s.getSnapshot=l,mv(s)&&gv(n)}function pv(n,s,i){return i(function(){mv(s)&&gv(n)})}function mv(n){var s=n.getSnapshot;n=n.value;try{var i=s();return!sn(n,i)}catch{return!0}}function gv(n){var s=Us(n,2);s!==null&&Jt(s,n,2)}function Of(n){var s=Vt();if(typeof n=="function"){var i=n;if(n=i(),Qs){Dn(!0);try{i()}finally{Dn(!1)}}}return s.memoizedState=s.baseState=n,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:n},s}function yv(n,s,i,l){return n.baseState=i,Af(n,Ie,typeof l=="function"?l:Sa)}function LA(n,s,i,l,f){if(pc(n))throw Error(r(485));if(n=s.action,n!==null){var m={payload:f,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){m.listeners.push(x)}};O.T!==null?i(!0):m.isTransition=!1,l(m),i=s.pending,i===null?(m.next=s.pending=m,vv(s,m)):(m.next=i.next,s.pending=i.next=m)}}function vv(n,s){var i=s.action,l=s.payload,f=n.state;if(s.isTransition){var m=O.T,x={};O.T=x;try{var E=i(f,l),N=O.S;N!==null&&N(x,E),xv(n,s,E)}catch(K){jf(n,s,K)}finally{m!==null&&x.types!==null&&(m.types=x.types),O.T=m}}else try{m=i(f,l),xv(n,s,m)}catch(K){jf(n,s,K)}}function xv(n,s,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){bv(n,s,l)},function(l){return jf(n,s,l)}):bv(n,s,i)}function bv(n,s,i){s.status="fulfilled",s.value=i,wv(s),n.state=i,s=n.pending,s!==null&&(i=s.next,i===s?n.pending=null:(i=i.next,s.next=i,vv(n,i)))}function jf(n,s,i){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do s.status="rejected",s.reason=i,wv(s),s=s.next;while(s!==l)}n.action=null}function wv(n){n=n.listeners;for(var s=0;s<n.length;s++)(0,n[s])()}function Sv(n,s){return s}function Ev(n,s){if(Pe){var i=Ge.formState;if(i!==null){e:{var l=Ce;if(Pe){if(Qe){t:{for(var f=Qe,m=En;f.nodeType!==8;){if(!m){f=null;break t}if(f=_n(f.nextSibling),f===null){f=null;break t}}m=f.data,f=m==="F!"||m==="F"?f:null}if(f){Qe=_n(f.nextSibling),l=f.data==="F!";break e}}Fa(l)}l=!1}l&&(s=i[0])}}return i=Vt(),i.memoizedState=i.baseState=s,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sv,lastRenderedState:s},i.queue=l,i=qv.bind(null,Ce,l),l.dispatch=i,l=Of(!1),m=Df.bind(null,Ce,!1,l.queue),l=Vt(),f={state:s,dispatch:null,action:n,pending:null},l.queue=f,i=LA.bind(null,Ce,f,m,i),f.dispatch=i,l.memoizedState=n,[s,i,!1]}function Tv(n){var s=lt();return _v(s,Ie,n)}function _v(n,s,i){if(s=Af(n,s,Sv)[0],n=dc(Sa)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var l=bo(s)}catch(x){throw x===Zr?tc:x}else l=s;s=lt();var f=s.queue,m=f.dispatch;return i!==s.memoizedState&&(Ce.flags|=2048,Xr(9,{destroy:void 0},BA.bind(null,f,i),null)),[l,m,n]}function BA(n,s){n.action=s}function Av(n){var s=lt(),i=Ie;if(i!==null)return _v(s,i,n);lt(),s=s.memoizedState,i=lt();var l=i.queue.dispatch;return i.memoizedState=n,[s,l,!1]}function Xr(n,s,i,l){return n={tag:n,create:i,deps:l,inst:s,next:null},s=Ce.updateQueue,s===null&&(s=cc(),Ce.updateQueue=s),i=s.lastEffect,i===null?s.lastEffect=n.next=n:(l=i.next,i.next=n,n.next=l,s.lastEffect=n),n}function Cv(){return lt().memoizedState}function fc(n,s,i,l){var f=Vt();Ce.flags|=n,f.memoizedState=Xr(1|s,{destroy:void 0},i,l===void 0?null:l)}function hc(n,s,i,l){var f=lt();l=l===void 0?null:l;var m=f.memoizedState.inst;Ie!==null&&l!==null&&bf(l,Ie.memoizedState.deps)?f.memoizedState=Xr(s,m,i,l):(Ce.flags|=n,f.memoizedState=Xr(1|s,m,i,l))}function Ov(n,s){fc(8390656,8,n,s)}function Mf(n,s){hc(2048,8,n,s)}function HA(n){Ce.flags|=4;var s=Ce.updateQueue;if(s===null)s=cc(),Ce.updateQueue=s,s.events=[n];else{var i=s.events;i===null?s.events=[n]:i.push(n)}}function jv(n){var s=lt().memoizedState;return HA({ref:s,nextImpl:n}),function(){if((Ue&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}function Mv(n,s){return hc(4,2,n,s)}function Nv(n,s){return hc(4,4,n,s)}function kv(n,s){if(typeof s=="function"){n=n();var i=s(n);return function(){typeof i=="function"?i():s(null)}}if(s!=null)return n=n(),s.current=n,function(){s.current=null}}function zv(n,s,i){i=i!=null?i.concat([n]):null,hc(4,4,kv.bind(null,s,n),i)}function Nf(){}function Rv(n,s){var i=lt();s=s===void 0?null:s;var l=i.memoizedState;return s!==null&&bf(s,l[1])?l[0]:(i.memoizedState=[n,s],n)}function Dv(n,s){var i=lt();s=s===void 0?null:s;var l=i.memoizedState;if(s!==null&&bf(s,l[1]))return l[0];if(l=n(),Qs){Dn(!0);try{n()}finally{Dn(!1)}}return i.memoizedState=[l,s],l}function kf(n,s,i){return i===void 0||(wa&1073741824)!==0&&(ze&261930)===0?n.memoizedState=s:(n.memoizedState=i,n=P0(),Ce.lanes|=n,as|=n,i)}function Pv(n,s,i,l){return sn(i,s)?i:Fr.current!==null?(n=kf(n,i,l),sn(n,s)||(ht=!0),n):(wa&42)===0||(wa&1073741824)!==0&&(ze&261930)===0?(ht=!0,n.memoizedState=i):(n=P0(),Ce.lanes|=n,as|=n,s)}function Lv(n,s,i,l,f){var m=D.p;D.p=m!==0&&8>m?m:8;var x=O.T,E={};O.T=E,Df(n,!1,s,i);try{var N=f(),K=O.S;if(K!==null&&K(E,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var Q=RA(N,l);wo(n,s,Q,dn(n))}else wo(n,s,l,dn(n))}catch(W){wo(n,s,{then:function(){},status:"rejected",reason:W},dn())}finally{D.p=m,x!==null&&E.types!==null&&(x.types=E.types),O.T=x}}function UA(){}function zf(n,s,i,l){if(n.tag!==5)throw Error(r(476));var f=Bv(n).queue;Lv(n,f,s,P,i===null?UA:function(){return Hv(n),i(l)})}function Bv(n){var s=n.memoizedState;if(s!==null)return s;s={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:P},next:null};var i={};return s.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:i},next:null},n.memoizedState=s,n=n.alternate,n!==null&&(n.memoizedState=s),s}function Hv(n){var s=Bv(n);s.next===null&&(s=n.alternate.memoizedState),wo(n,s.next.queue,{},dn())}function Rf(){return jt(Bo)}function Uv(){return lt().memoizedState}function Vv(){return lt().memoizedState}function VA(n){for(var s=n.return;s!==null;){switch(s.tag){case 24:case 3:var i=dn();n=Xa(i);var l=Wa(s,n,i);l!==null&&(Jt(l,s,i),go(l,s,i)),s={cache:cf()},n.payload=s;return}s=s.return}}function qA(n,s,i){var l=dn();i={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},pc(n)?Kv(s,i):(i=Xd(n,s,i,l),i!==null&&(Jt(i,n,l),Iv(i,s,l)))}function qv(n,s,i){var l=dn();wo(n,s,i,l)}function wo(n,s,i,l){var f={lane:l,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(pc(n))Kv(s,f);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=s.lastRenderedReducer,m!==null))try{var x=s.lastRenderedState,E=m(x,i);if(f.hasEagerState=!0,f.eagerState=E,sn(E,x))return Fl(n,s,f,0),Ge===null&&Gl(),!1}catch{}finally{}if(i=Xd(n,s,f,l),i!==null)return Jt(i,n,l),Iv(i,s,l),!0}return!1}function Df(n,s,i,l){if(l={lane:2,revertLane:hh(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},pc(n)){if(s)throw Error(r(479))}else s=Xd(n,i,l,2),s!==null&&Jt(s,n,2)}function pc(n){var s=n.alternate;return n===Ce||s!==null&&s===Ce}function Kv(n,s){Qr=oc=!0;var i=n.pending;i===null?s.next=s:(s.next=i.next,i.next=s),n.pending=s}function Iv(n,s,i){if((i&4194048)!==0){var l=s.lanes;l&=n.pendingLanes,i|=l,s.lanes=i,$t(n,i)}}var So={readContext:jt,use:uc,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};So.useEffectEvent=at;var $v={readContext:jt,use:uc,useCallback:function(n,s){return Vt().memoizedState=[n,s===void 0?null:s],n},useContext:jt,useEffect:Ov,useImperativeHandle:function(n,s,i){i=i!=null?i.concat([n]):null,fc(4194308,4,kv.bind(null,s,n),i)},useLayoutEffect:function(n,s){return fc(4194308,4,n,s)},useInsertionEffect:function(n,s){fc(4,2,n,s)},useMemo:function(n,s){var i=Vt();s=s===void 0?null:s;var l=n();if(Qs){Dn(!0);try{n()}finally{Dn(!1)}}return i.memoizedState=[l,s],l},useReducer:function(n,s,i){var l=Vt();if(i!==void 0){var f=i(s);if(Qs){Dn(!0);try{i(s)}finally{Dn(!1)}}}else f=s;return l.memoizedState=l.baseState=f,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:f},l.queue=n,n=n.dispatch=qA.bind(null,Ce,n),[l.memoizedState,n]},useRef:function(n){var s=Vt();return n={current:n},s.memoizedState=n},useState:function(n){n=Of(n);var s=n.queue,i=qv.bind(null,Ce,s);return s.dispatch=i,[n.memoizedState,i]},useDebugValue:Nf,useDeferredValue:function(n,s){var i=Vt();return kf(i,n,s)},useTransition:function(){var n=Of(!1);return n=Lv.bind(null,Ce,n.queue,!0,!1),Vt().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,s,i){var l=Ce,f=Vt();if(Pe){if(i===void 0)throw Error(r(407));i=i()}else{if(i=s(),Ge===null)throw Error(r(349));(ze&127)!==0||fv(l,s,i)}f.memoizedState=i;var m={value:i,getSnapshot:s};return f.queue=m,Ov(pv.bind(null,l,m,n),[n]),l.flags|=2048,Xr(9,{destroy:void 0},hv.bind(null,l,m,i,s),null),i},useId:function(){var n=Vt(),s=Ge.identifierPrefix;if(Pe){var i=Xn,l=Yn;i=(l&~(1<<32-kt(l)-1)).toString(32)+i,s="_"+s+"R_"+i,i=lc++,0<i&&(s+="H"+i.toString(32)),s+="_"}else i=DA++,s="_"+s+"r_"+i.toString(32)+"_";return n.memoizedState=s},useHostTransitionStatus:Rf,useFormState:Ev,useActionState:Ev,useOptimistic:function(n){var s=Vt();s.memoizedState=s.baseState=n;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=i,s=Df.bind(null,Ce,!0,i),i.dispatch=s,[n,s]},useMemoCache:_f,useCacheRefresh:function(){return Vt().memoizedState=VA.bind(null,Ce)},useEffectEvent:function(n){var s=Vt(),i={impl:n};return s.memoizedState=i,function(){if((Ue&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}},Pf={readContext:jt,use:uc,useCallback:Rv,useContext:jt,useEffect:Mf,useImperativeHandle:zv,useInsertionEffect:Mv,useLayoutEffect:Nv,useMemo:Dv,useReducer:dc,useRef:Cv,useState:function(){return dc(Sa)},useDebugValue:Nf,useDeferredValue:function(n,s){var i=lt();return Pv(i,Ie.memoizedState,n,s)},useTransition:function(){var n=dc(Sa)[0],s=lt().memoizedState;return[typeof n=="boolean"?n:bo(n),s]},useSyncExternalStore:dv,useId:Uv,useHostTransitionStatus:Rf,useFormState:Tv,useActionState:Tv,useOptimistic:function(n,s){var i=lt();return yv(i,Ie,n,s)},useMemoCache:_f,useCacheRefresh:Vv};Pf.useEffectEvent=jv;var Zv={readContext:jt,use:uc,useCallback:Rv,useContext:jt,useEffect:Mf,useImperativeHandle:zv,useInsertionEffect:Mv,useLayoutEffect:Nv,useMemo:Dv,useReducer:Cf,useRef:Cv,useState:function(){return Cf(Sa)},useDebugValue:Nf,useDeferredValue:function(n,s){var i=lt();return Ie===null?kf(i,n,s):Pv(i,Ie.memoizedState,n,s)},useTransition:function(){var n=Cf(Sa)[0],s=lt().memoizedState;return[typeof n=="boolean"?n:bo(n),s]},useSyncExternalStore:dv,useId:Uv,useHostTransitionStatus:Rf,useFormState:Av,useActionState:Av,useOptimistic:function(n,s){var i=lt();return Ie!==null?yv(i,Ie,n,s):(i.baseState=n,[n,i.queue.dispatch])},useMemoCache:_f,useCacheRefresh:Vv};Zv.useEffectEvent=jv;function Lf(n,s,i,l){s=n.memoizedState,i=i(l,s),i=i==null?s:y({},s,i),n.memoizedState=i,n.lanes===0&&(n.updateQueue.baseState=i)}var Bf={enqueueSetState:function(n,s,i){n=n._reactInternals;var l=dn(),f=Xa(l);f.payload=s,i!=null&&(f.callback=i),s=Wa(n,f,l),s!==null&&(Jt(s,n,l),go(s,n,l))},enqueueReplaceState:function(n,s,i){n=n._reactInternals;var l=dn(),f=Xa(l);f.tag=1,f.payload=s,i!=null&&(f.callback=i),s=Wa(n,f,l),s!==null&&(Jt(s,n,l),go(s,n,l))},enqueueForceUpdate:function(n,s){n=n._reactInternals;var i=dn(),l=Xa(i);l.tag=2,s!=null&&(l.callback=s),s=Wa(n,l,i),s!==null&&(Jt(s,n,i),go(s,n,i))}};function Gv(n,s,i,l,f,m,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,m,x):s.prototype&&s.prototype.isPureReactComponent?!oo(i,l)||!oo(f,m):!0}function Fv(n,s,i,l){n=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(i,l),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(i,l),s.state!==n&&Bf.enqueueReplaceState(s,s.state,null)}function Ys(n,s){var i=s;if("ref"in s){i={};for(var l in s)l!=="ref"&&(i[l]=s[l])}if(n=n.defaultProps){i===s&&(i=y({},i));for(var f in n)i[f]===void 0&&(i[f]=n[f])}return i}function Qv(n){Zl(n)}function Yv(n){console.error(n)}function Xv(n){Zl(n)}function mc(n,s){try{var i=n.onUncaughtError;i(s.value,{componentStack:s.stack})}catch(l){setTimeout(function(){throw l})}}function Wv(n,s,i){try{var l=n.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Hf(n,s,i){return i=Xa(i),i.tag=3,i.payload={element:null},i.callback=function(){mc(n,s)},i}function Jv(n){return n=Xa(n),n.tag=3,n}function e0(n,s,i,l){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var m=l.value;n.payload=function(){return f(m)},n.callback=function(){Wv(s,i,l)}}var x=i.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){Wv(s,i,l),typeof f!="function"&&(ss===null?ss=new Set([this]):ss.add(this));var E=l.stack;this.componentDidCatch(l.value,{componentStack:E!==null?E:""})})}function KA(n,s,i,l,f){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(s=i.alternate,s!==null&&Kr(s,i,f,!0),i=on.current,i!==null){switch(i.tag){case 31:case 13:return Tn===null?Cc():i.alternate===null&&st===0&&(st=3),i.flags&=-257,i.flags|=65536,i.lanes=f,l===nc?i.flags|=16384:(s=i.updateQueue,s===null?i.updateQueue=new Set([l]):s.add(l),uh(n,l,f)),!1;case 22:return i.flags|=65536,l===nc?i.flags|=16384:(s=i.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=s):(i=s.retryQueue,i===null?s.retryQueue=new Set([l]):i.add(l)),uh(n,l,f)),!1}throw Error(r(435,i.tag))}return uh(n,l,f),Cc(),!1}if(Pe)return s=on.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=f,l!==af&&(n=Error(r(422),{cause:l}),uo(bn(n,i)))):(l!==af&&(s=Error(r(423),{cause:l}),uo(bn(s,i))),n=n.current.alternate,n.flags|=65536,f&=-f,n.lanes|=f,l=bn(l,i),f=Hf(n.stateNode,l,f),mf(n,f),st!==4&&(st=2)),!1;var m=Error(r(520),{cause:l});if(m=bn(m,i),Mo===null?Mo=[m]:Mo.push(m),st!==4&&(st=2),s===null)return!0;l=bn(l,i),i=s;do{switch(i.tag){case 3:return i.flags|=65536,n=f&-f,i.lanes|=n,n=Hf(i.stateNode,l,n),mf(i,n),!1;case 1:if(s=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(ss===null||!ss.has(m))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Jv(f),e0(f,n,i,l),mf(i,f),!1}i=i.return}while(i!==null);return!1}var Uf=Error(r(461)),ht=!1;function Mt(n,s,i,l){s.child=n===null?sv(s,null,i,l):Fs(s,n.child,i,l)}function t0(n,s,i,l,f){i=i.render;var m=s.ref;if("ref"in l){var x={};for(var E in l)E!=="ref"&&(x[E]=l[E])}else x=l;return Is(s),l=wf(n,s,i,x,m,f),E=Sf(),n!==null&&!ht?(Ef(n,s,f),Ea(n,s,f)):(Pe&&E&&tf(s),s.flags|=1,Mt(n,s,l,f),s.child)}function n0(n,s,i,l,f){if(n===null){var m=i.type;return typeof m=="function"&&!Wd(m)&&m.defaultProps===void 0&&i.compare===null?(s.tag=15,s.type=m,a0(n,s,m,l,f)):(n=Yl(i.type,null,l,s,s.mode,f),n.ref=s.ref,n.return=s,s.child=n)}if(m=n.child,!Ff(n,f)){var x=m.memoizedProps;if(i=i.compare,i=i!==null?i:oo,i(x,l)&&n.ref===s.ref)return Ea(n,s,f)}return s.flags|=1,n=ya(m,l),n.ref=s.ref,n.return=s,s.child=n}function a0(n,s,i,l,f){if(n!==null){var m=n.memoizedProps;if(oo(m,l)&&n.ref===s.ref)if(ht=!1,s.pendingProps=l=m,Ff(n,f))(n.flags&131072)!==0&&(ht=!0);else return s.lanes=n.lanes,Ea(n,s,f)}return Vf(n,s,i,l,f)}function s0(n,s,i,l){var f=l.children,m=n!==null?n.memoizedState:null;if(n===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((s.flags&128)!==0){if(m=m!==null?m.baseLanes|i:i,n!==null){for(l=s.child=n.child,f=0;l!==null;)f=f|l.lanes|l.childLanes,l=l.sibling;l=f&~m}else l=0,s.child=null;return r0(n,s,m,i,l)}if((i&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},n!==null&&ec(s,m!==null?m.cachePool:null),m!==null?ov(s,m):yf(),lv(s);else return l=s.lanes=536870912,r0(n,s,m!==null?m.baseLanes|i:i,i,l)}else m!==null?(ec(s,m.cachePool),ov(s,m),es(),s.memoizedState=null):(n!==null&&ec(s,null),yf(),es());return Mt(n,s,f,i),s.child}function Eo(n,s){return n!==null&&n.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function r0(n,s,i,l,f){var m=df();return m=m===null?null:{parent:dt._currentValue,pool:m},s.memoizedState={baseLanes:i,cachePool:m},n!==null&&ec(s,null),yf(),lv(s),n!==null&&Kr(n,s,l,!0),s.childLanes=f,null}function gc(n,s){return s=vc({mode:s.mode,children:s.children},n.mode),s.ref=n.ref,n.child=s,s.return=n,s}function i0(n,s,i){return Fs(s,n.child,null,i),n=gc(s,s.pendingProps),n.flags|=2,ln(s),s.memoizedState=null,n}function IA(n,s,i){var l=s.pendingProps,f=(s.flags&128)!==0;if(s.flags&=-129,n===null){if(Pe){if(l.mode==="hidden")return n=gc(s,l),s.lanes=536870912,Eo(null,n);if(xf(s),(n=Qe)?(n=vx(n,En),n=n!==null&&n.data==="&"?n:null,n!==null&&(s.memoizedState={dehydrated:n,treeContext:Za!==null?{id:Yn,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},i=Ky(n),i.return=s,s.child=i,Ot=s,Qe=null)):n=null,n===null)throw Fa(s);return s.lanes=536870912,null}return gc(s,l)}var m=n.memoizedState;if(m!==null){var x=m.dehydrated;if(xf(s),f)if(s.flags&256)s.flags&=-257,s=i0(n,s,i);else if(s.memoizedState!==null)s.child=n.child,s.flags|=128,s=null;else throw Error(r(558));else if(ht||Kr(n,s,i,!1),f=(i&n.childLanes)!==0,ht||f){if(l=Ge,l!==null&&(x=Zt(l,i),x!==0&&x!==m.retryLane))throw m.retryLane=x,Us(n,x),Jt(l,n,x),Uf;Cc(),s=i0(n,s,i)}else n=m.treeContext,Qe=_n(x.nextSibling),Ot=s,Pe=!0,Ga=null,En=!1,n!==null&&Zy(s,n),s=gc(s,l),s.flags|=4096;return s}return n=ya(n.child,{mode:l.mode,children:l.children}),n.ref=s.ref,s.child=n,n.return=s,n}function yc(n,s){var i=s.ref;if(i===null)n!==null&&n.ref!==null&&(s.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(r(284));(n===null||n.ref!==i)&&(s.flags|=4194816)}}function Vf(n,s,i,l,f){return Is(s),i=wf(n,s,i,l,void 0,f),l=Sf(),n!==null&&!ht?(Ef(n,s,f),Ea(n,s,f)):(Pe&&l&&tf(s),s.flags|=1,Mt(n,s,i,f),s.child)}function o0(n,s,i,l,f,m){return Is(s),s.updateQueue=null,i=uv(s,l,i,f),cv(n),l=Sf(),n!==null&&!ht?(Ef(n,s,m),Ea(n,s,m)):(Pe&&l&&tf(s),s.flags|=1,Mt(n,s,i,m),s.child)}function l0(n,s,i,l,f){if(Is(s),s.stateNode===null){var m=Hr,x=i.contextType;typeof x=="object"&&x!==null&&(m=jt(x)),m=new i(l,m),s.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Bf,s.stateNode=m,m._reactInternals=s,m=s.stateNode,m.props=l,m.state=s.memoizedState,m.refs={},hf(s),x=i.contextType,m.context=typeof x=="object"&&x!==null?jt(x):Hr,m.state=s.memoizedState,x=i.getDerivedStateFromProps,typeof x=="function"&&(Lf(s,i,x,l),m.state=s.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(x=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),x!==m.state&&Bf.enqueueReplaceState(m,m.state,null),vo(s,l,m,f),yo(),m.state=s.memoizedState),typeof m.componentDidMount=="function"&&(s.flags|=4194308),l=!0}else if(n===null){m=s.stateNode;var E=s.memoizedProps,N=Ys(i,E);m.props=N;var K=m.context,Q=i.contextType;x=Hr,typeof Q=="object"&&Q!==null&&(x=jt(Q));var W=i.getDerivedStateFromProps;Q=typeof W=="function"||typeof m.getSnapshotBeforeUpdate=="function",E=s.pendingProps!==E,Q||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E||K!==x)&&Fv(s,m,l,x),Ya=!1;var $=s.memoizedState;m.state=$,vo(s,l,m,f),yo(),K=s.memoizedState,E||$!==K||Ya?(typeof W=="function"&&(Lf(s,i,W,l),K=s.memoizedState),(N=Ya||Gv(s,i,N,l,$,K,x))?(Q||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(s.flags|=4194308)):(typeof m.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=l,s.memoizedState=K),m.props=l,m.state=K,m.context=x,l=N):(typeof m.componentDidMount=="function"&&(s.flags|=4194308),l=!1)}else{m=s.stateNode,pf(n,s),x=s.memoizedProps,Q=Ys(i,x),m.props=Q,W=s.pendingProps,$=m.context,K=i.contextType,N=Hr,typeof K=="object"&&K!==null&&(N=jt(K)),E=i.getDerivedStateFromProps,(K=typeof E=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(x!==W||$!==N)&&Fv(s,m,l,N),Ya=!1,$=s.memoizedState,m.state=$,vo(s,l,m,f),yo();var Z=s.memoizedState;x!==W||$!==Z||Ya||n!==null&&n.dependencies!==null&&Wl(n.dependencies)?(typeof E=="function"&&(Lf(s,i,E,l),Z=s.memoizedState),(Q=Ya||Gv(s,i,Q,l,$,Z,N)||n!==null&&n.dependencies!==null&&Wl(n.dependencies))?(K||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(l,Z,N),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(l,Z,N)),typeof m.componentDidUpdate=="function"&&(s.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof m.componentDidUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(s.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(s.flags|=1024),s.memoizedProps=l,s.memoizedState=Z),m.props=l,m.state=Z,m.context=N,l=Q):(typeof m.componentDidUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(s.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&$===n.memoizedState||(s.flags|=1024),l=!1)}return m=l,yc(n,s),l=(s.flags&128)!==0,m||l?(m=s.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:m.render(),s.flags|=1,n!==null&&l?(s.child=Fs(s,n.child,null,f),s.child=Fs(s,null,i,f)):Mt(n,s,i,f),s.memoizedState=m.state,n=s.child):n=Ea(n,s,f),n}function c0(n,s,i,l){return qs(),s.flags|=256,Mt(n,s,i,l),s.child}var qf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kf(n){return{baseLanes:n,cachePool:Wy()}}function If(n,s,i){return n=n!==null?n.childLanes&~i:0,s&&(n|=un),n}function u0(n,s,i){var l=s.pendingProps,f=!1,m=(s.flags&128)!==0,x;if((x=m)||(x=n!==null&&n.memoizedState===null?!1:(ot.current&2)!==0),x&&(f=!0,s.flags&=-129),x=(s.flags&32)!==0,s.flags&=-33,n===null){if(Pe){if(f?Ja(s):es(),(n=Qe)?(n=vx(n,En),n=n!==null&&n.data!=="&"?n:null,n!==null&&(s.memoizedState={dehydrated:n,treeContext:Za!==null?{id:Yn,overflow:Xn}:null,retryLane:536870912,hydrationErrors:null},i=Ky(n),i.return=s,s.child=i,Ot=s,Qe=null)):n=null,n===null)throw Fa(s);return Ah(n)?s.lanes=32:s.lanes=536870912,null}var E=l.children;return l=l.fallback,f?(es(),f=s.mode,E=vc({mode:"hidden",children:E},f),l=Vs(l,f,i,null),E.return=s,l.return=s,E.sibling=l,s.child=E,l=s.child,l.memoizedState=Kf(i),l.childLanes=If(n,x,i),s.memoizedState=qf,Eo(null,l)):(Ja(s),$f(s,E))}var N=n.memoizedState;if(N!==null&&(E=N.dehydrated,E!==null)){if(m)s.flags&256?(Ja(s),s.flags&=-257,s=Zf(n,s,i)):s.memoizedState!==null?(es(),s.child=n.child,s.flags|=128,s=null):(es(),E=l.fallback,f=s.mode,l=vc({mode:"visible",children:l.children},f),E=Vs(E,f,i,null),E.flags|=2,l.return=s,E.return=s,l.sibling=E,s.child=l,Fs(s,n.child,null,i),l=s.child,l.memoizedState=Kf(i),l.childLanes=If(n,x,i),s.memoizedState=qf,s=Eo(null,l));else if(Ja(s),Ah(E)){if(x=E.nextSibling&&E.nextSibling.dataset,x)var K=x.dgst;x=K,l=Error(r(419)),l.stack="",l.digest=x,uo({value:l,source:null,stack:null}),s=Zf(n,s,i)}else if(ht||Kr(n,s,i,!1),x=(i&n.childLanes)!==0,ht||x){if(x=Ge,x!==null&&(l=Zt(x,i),l!==0&&l!==N.retryLane))throw N.retryLane=l,Us(n,l),Jt(x,n,l),Uf;_h(E)||Cc(),s=Zf(n,s,i)}else _h(E)?(s.flags|=192,s.child=n.child,s=null):(n=N.treeContext,Qe=_n(E.nextSibling),Ot=s,Pe=!0,Ga=null,En=!1,n!==null&&Zy(s,n),s=$f(s,l.children),s.flags|=4096);return s}return f?(es(),E=l.fallback,f=s.mode,N=n.child,K=N.sibling,l=ya(N,{mode:"hidden",children:l.children}),l.subtreeFlags=N.subtreeFlags&65011712,K!==null?E=ya(K,E):(E=Vs(E,f,i,null),E.flags|=2),E.return=s,l.return=s,l.sibling=E,s.child=l,Eo(null,l),l=s.child,E=n.child.memoizedState,E===null?E=Kf(i):(f=E.cachePool,f!==null?(N=dt._currentValue,f=f.parent!==N?{parent:N,pool:N}:f):f=Wy(),E={baseLanes:E.baseLanes|i,cachePool:f}),l.memoizedState=E,l.childLanes=If(n,x,i),s.memoizedState=qf,Eo(n.child,l)):(Ja(s),i=n.child,n=i.sibling,i=ya(i,{mode:"visible",children:l.children}),i.return=s,i.sibling=null,n!==null&&(x=s.deletions,x===null?(s.deletions=[n],s.flags|=16):x.push(n)),s.child=i,s.memoizedState=null,i)}function $f(n,s){return s=vc({mode:"visible",children:s},n.mode),s.return=n,n.child=s}function vc(n,s){return n=rn(22,n,null,s),n.lanes=0,n}function Zf(n,s,i){return Fs(s,n.child,null,i),n=$f(s,s.pendingProps.children),n.flags|=2,s.memoizedState=null,n}function d0(n,s,i){n.lanes|=s;var l=n.alternate;l!==null&&(l.lanes|=s),of(n.return,s,i)}function Gf(n,s,i,l,f,m){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:f,treeForkCount:m}:(x.isBackwards=s,x.rendering=null,x.renderingStartTime=0,x.last=l,x.tail=i,x.tailMode=f,x.treeForkCount=m)}function f0(n,s,i){var l=s.pendingProps,f=l.revealOrder,m=l.tail;l=l.children;var x=ot.current,E=(x&2)!==0;if(E?(x=x&1|2,s.flags|=128):x&=1,I(ot,x),Mt(n,s,l,i),l=Pe?co:0,!E&&n!==null&&(n.flags&128)!==0)e:for(n=s.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&d0(n,i,s);else if(n.tag===19)d0(n,i,s);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===s)break e;for(;n.sibling===null;){if(n.return===null||n.return===s)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(f){case"forwards":for(i=s.child,f=null;i!==null;)n=i.alternate,n!==null&&ic(n)===null&&(f=i),i=i.sibling;i=f,i===null?(f=s.child,s.child=null):(f=i.sibling,i.sibling=null),Gf(s,!1,f,i,m,l);break;case"backwards":case"unstable_legacy-backwards":for(i=null,f=s.child,s.child=null;f!==null;){if(n=f.alternate,n!==null&&ic(n)===null){s.child=f;break}n=f.sibling,f.sibling=i,i=f,f=n}Gf(s,!0,i,null,m,l);break;case"together":Gf(s,!1,null,null,void 0,l);break;default:s.memoizedState=null}return s.child}function Ea(n,s,i){if(n!==null&&(s.dependencies=n.dependencies),as|=s.lanes,(i&s.childLanes)===0)if(n!==null){if(Kr(n,s,i,!1),(i&s.childLanes)===0)return null}else return null;if(n!==null&&s.child!==n.child)throw Error(r(153));if(s.child!==null){for(n=s.child,i=ya(n,n.pendingProps),s.child=i,i.return=s;n.sibling!==null;)n=n.sibling,i=i.sibling=ya(n,n.pendingProps),i.return=s;i.sibling=null}return s.child}function Ff(n,s){return(n.lanes&s)!==0?!0:(n=n.dependencies,!!(n!==null&&Wl(n)))}function $A(n,s,i){switch(s.tag){case 3:be(s,s.stateNode.containerInfo),Qa(s,dt,n.memoizedState.cache),qs();break;case 27:case 5:_t(s);break;case 4:be(s,s.stateNode.containerInfo);break;case 10:Qa(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,xf(s),null;break;case 13:var l=s.memoizedState;if(l!==null)return l.dehydrated!==null?(Ja(s),s.flags|=128,null):(i&s.child.childLanes)!==0?u0(n,s,i):(Ja(s),n=Ea(n,s,i),n!==null?n.sibling:null);Ja(s);break;case 19:var f=(n.flags&128)!==0;if(l=(i&s.childLanes)!==0,l||(Kr(n,s,i,!1),l=(i&s.childLanes)!==0),f){if(l)return f0(n,s,i);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),I(ot,ot.current),l)break;return null;case 22:return s.lanes=0,s0(n,s,i,s.pendingProps);case 24:Qa(s,dt,n.memoizedState.cache)}return Ea(n,s,i)}function h0(n,s,i){if(n!==null)if(n.memoizedProps!==s.pendingProps)ht=!0;else{if(!Ff(n,i)&&(s.flags&128)===0)return ht=!1,$A(n,s,i);ht=(n.flags&131072)!==0}else ht=!1,Pe&&(s.flags&1048576)!==0&&$y(s,co,s.index);switch(s.lanes=0,s.tag){case 16:e:{var l=s.pendingProps;if(n=Zs(s.elementType),s.type=n,typeof n=="function")Wd(n)?(l=Ys(n,l),s.tag=1,s=l0(null,s,n,l,i)):(s.tag=0,s=Vf(null,s,n,l,i));else{if(n!=null){var f=n.$$typeof;if(f===U){s.tag=11,s=t0(null,s,n,l,i);break e}else if(f===C){s.tag=14,s=n0(null,s,n,l,i);break e}}throw s=ie(n)||n,Error(r(306,s,""))}}return s;case 0:return Vf(n,s,s.type,s.pendingProps,i);case 1:return l=s.type,f=Ys(l,s.pendingProps),l0(n,s,l,f,i);case 3:e:{if(be(s,s.stateNode.containerInfo),n===null)throw Error(r(387));l=s.pendingProps;var m=s.memoizedState;f=m.element,pf(n,s),vo(s,l,null,i);var x=s.memoizedState;if(l=x.cache,Qa(s,dt,l),l!==m.cache&&lf(s,[dt],i,!0),yo(),l=x.element,m.isDehydrated)if(m={element:l,isDehydrated:!1,cache:x.cache},s.updateQueue.baseState=m,s.memoizedState=m,s.flags&256){s=c0(n,s,l,i);break e}else if(l!==f){f=bn(Error(r(424)),s),uo(f),s=c0(n,s,l,i);break e}else{switch(n=s.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Qe=_n(n.firstChild),Ot=s,Pe=!0,Ga=null,En=!0,i=sv(s,null,l,i),s.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(qs(),l===f){s=Ea(n,s,i);break e}Mt(n,s,l,i)}s=s.child}return s;case 26:return yc(n,s),n===null?(i=Tx(s.type,null,s.pendingProps,null))?s.memoizedState=i:Pe||(i=s.type,n=s.pendingProps,l=Rc(me.current).createElement(i),l[Ct]=s,l[Gt]=n,Nt(l,i,n),wt(l),s.stateNode=l):s.memoizedState=Tx(s.type,n.memoizedProps,s.pendingProps,n.memoizedState),null;case 27:return _t(s),n===null&&Pe&&(l=s.stateNode=wx(s.type,s.pendingProps,me.current),Ot=s,En=!0,f=Qe,ls(s.type)?(Ch=f,Qe=_n(l.firstChild)):Qe=f),Mt(n,s,s.pendingProps.children,i),yc(n,s),n===null&&(s.flags|=4194304),s.child;case 5:return n===null&&Pe&&((f=l=Qe)&&(l=wC(l,s.type,s.pendingProps,En),l!==null?(s.stateNode=l,Ot=s,Qe=_n(l.firstChild),En=!1,f=!0):f=!1),f||Fa(s)),_t(s),f=s.type,m=s.pendingProps,x=n!==null?n.memoizedProps:null,l=m.children,Sh(f,m)?l=null:x!==null&&Sh(f,x)&&(s.flags|=32),s.memoizedState!==null&&(f=wf(n,s,PA,null,null,i),Bo._currentValue=f),yc(n,s),Mt(n,s,l,i),s.child;case 6:return n===null&&Pe&&((n=i=Qe)&&(i=SC(i,s.pendingProps,En),i!==null?(s.stateNode=i,Ot=s,Qe=null,n=!0):n=!1),n||Fa(s)),null;case 13:return u0(n,s,i);case 4:return be(s,s.stateNode.containerInfo),l=s.pendingProps,n===null?s.child=Fs(s,null,l,i):Mt(n,s,l,i),s.child;case 11:return t0(n,s,s.type,s.pendingProps,i);case 7:return Mt(n,s,s.pendingProps,i),s.child;case 8:return Mt(n,s,s.pendingProps.children,i),s.child;case 12:return Mt(n,s,s.pendingProps.children,i),s.child;case 10:return l=s.pendingProps,Qa(s,s.type,l.value),Mt(n,s,l.children,i),s.child;case 9:return f=s.type._context,l=s.pendingProps.children,Is(s),f=jt(f),l=l(f),s.flags|=1,Mt(n,s,l,i),s.child;case 14:return n0(n,s,s.type,s.pendingProps,i);case 15:return a0(n,s,s.type,s.pendingProps,i);case 19:return f0(n,s,i);case 31:return IA(n,s,i);case 22:return s0(n,s,i,s.pendingProps);case 24:return Is(s),l=jt(dt),n===null?(f=df(),f===null&&(f=Ge,m=cf(),f.pooledCache=m,m.refCount++,m!==null&&(f.pooledCacheLanes|=i),f=m),s.memoizedState={parent:l,cache:f},hf(s),Qa(s,dt,f)):((n.lanes&i)!==0&&(pf(n,s),vo(s,null,null,i),yo()),f=n.memoizedState,m=s.memoizedState,f.parent!==l?(f={parent:l,cache:l},s.memoizedState=f,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=f),Qa(s,dt,l)):(l=m.cache,Qa(s,dt,l),l!==f.cache&&lf(s,[dt],i,!0))),Mt(n,s,s.pendingProps.children,i),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}function Ta(n){n.flags|=4}function Qf(n,s,i,l,f){if((s=(n.mode&32)!==0)&&(s=!1),s){if(n.flags|=16777216,(f&335544128)===f)if(n.stateNode.complete)n.flags|=8192;else if(U0())n.flags|=8192;else throw Gs=nc,ff}else n.flags&=-16777217}function p0(n,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!jx(s))if(U0())n.flags|=8192;else throw Gs=nc,ff}function xc(n,s){s!==null&&(n.flags|=4),n.flags&16384&&(s=n.tag!==22?zt():536870912,n.lanes|=s,ti|=s)}function To(n,s){if(!Pe)switch(n.tailMode){case"hidden":s=n.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?n.tail=null:i.sibling=null;break;case"collapsed":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?s||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function Ye(n){var s=n.alternate!==null&&n.alternate.child===n.child,i=0,l=0;if(s)for(var f=n.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags&65011712,l|=f.flags&65011712,f.return=n,f=f.sibling;else for(f=n.child;f!==null;)i|=f.lanes|f.childLanes,l|=f.subtreeFlags,l|=f.flags,f.return=n,f=f.sibling;return n.subtreeFlags|=l,n.childLanes=i,s}function ZA(n,s,i){var l=s.pendingProps;switch(nf(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(s),null;case 1:return Ye(s),null;case 3:return i=s.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),s.memoizedState.cache!==l&&(s.flags|=2048),ba(dt),De(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(n===null||n.child===null)&&(qr(s)?Ta(s):n===null||n.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,sf())),Ye(s),null;case 26:var f=s.type,m=s.memoizedState;return n===null?(Ta(s),m!==null?(Ye(s),p0(s,m)):(Ye(s),Qf(s,f,null,l,i))):m?m!==n.memoizedState?(Ta(s),Ye(s),p0(s,m)):(Ye(s),s.flags&=-16777217):(n=n.memoizedProps,n!==l&&Ta(s),Ye(s),Qf(s,f,n,l,i)),null;case 27:if(Lt(s),i=me.current,f=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==l&&Ta(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return Ye(s),null}n=F.current,qr(s)?Gy(s):(n=wx(f,l,i),s.stateNode=n,Ta(s))}return Ye(s),null;case 5:if(Lt(s),f=s.type,n!==null&&s.stateNode!=null)n.memoizedProps!==l&&Ta(s);else{if(!l){if(s.stateNode===null)throw Error(r(166));return Ye(s),null}if(m=F.current,qr(s))Gy(s);else{var x=Rc(me.current);switch(m){case 1:m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":m=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":m=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":m=x.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof l.is=="string"?x.createElement("select",{is:l.is}):x.createElement("select"),l.multiple?m.multiple=!0:l.size&&(m.size=l.size);break;default:m=typeof l.is=="string"?x.createElement(f,{is:l.is}):x.createElement(f)}}m[Ct]=s,m[Gt]=l;e:for(x=s.child;x!==null;){if(x.tag===5||x.tag===6)m.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===s)break e;for(;x.sibling===null;){if(x.return===null||x.return===s)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}s.stateNode=m;e:switch(Nt(m,f,l),f){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ta(s)}}return Ye(s),Qf(s,s.type,n===null?null:n.memoizedProps,s.pendingProps,i),null;case 6:if(n&&s.stateNode!=null)n.memoizedProps!==l&&Ta(s);else{if(typeof l!="string"&&s.stateNode===null)throw Error(r(166));if(n=me.current,qr(s)){if(n=s.stateNode,i=s.memoizedProps,l=null,f=Ot,f!==null)switch(f.tag){case 27:case 5:l=f.memoizedProps}n[Ct]=s,n=!!(n.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||ux(n.nodeValue,i)),n||Fa(s,!0)}else n=Rc(n).createTextNode(l),n[Ct]=s,s.stateNode=n}return Ye(s),null;case 31:if(i=s.memoizedState,n===null||n.memoizedState!==null){if(l=qr(s),i!==null){if(n===null){if(!l)throw Error(r(318));if(n=s.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(557));n[Ct]=s}else qs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Ye(s),n=!1}else i=sf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=i),n=!0;if(!n)return s.flags&256?(ln(s),s):(ln(s),null);if((s.flags&128)!==0)throw Error(r(558))}return Ye(s),null;case 13:if(l=s.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(f=qr(s),l!==null&&l.dehydrated!==null){if(n===null){if(!f)throw Error(r(318));if(f=s.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Ct]=s}else qs(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Ye(s),f=!1}else f=sf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=f),f=!0;if(!f)return s.flags&256?(ln(s),s):(ln(s),null)}return ln(s),(s.flags&128)!==0?(s.lanes=i,s):(i=l!==null,n=n!==null&&n.memoizedState!==null,i&&(l=s.child,f=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(f=l.alternate.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==f&&(l.flags|=2048)),i!==n&&i&&(s.child.flags|=8192),xc(s,s.updateQueue),Ye(s),null);case 4:return De(),n===null&&yh(s.stateNode.containerInfo),Ye(s),null;case 10:return ba(s.type),Ye(s),null;case 19:if(G(ot),l=s.memoizedState,l===null)return Ye(s),null;if(f=(s.flags&128)!==0,m=l.rendering,m===null)if(f)To(l,!1);else{if(st!==0||n!==null&&(n.flags&128)!==0)for(n=s.child;n!==null;){if(m=ic(n),m!==null){for(s.flags|=128,To(l,!1),n=m.updateQueue,s.updateQueue=n,xc(s,n),s.subtreeFlags=0,n=i,i=s.child;i!==null;)qy(i,n),i=i.sibling;return I(ot,ot.current&1|2),Pe&&va(s,l.treeForkCount),s.child}n=n.sibling}l.tail!==null&&Ht()>Tc&&(s.flags|=128,f=!0,To(l,!1),s.lanes=4194304)}else{if(!f)if(n=ic(m),n!==null){if(s.flags|=128,f=!0,n=n.updateQueue,s.updateQueue=n,xc(s,n),To(l,!0),l.tail===null&&l.tailMode==="hidden"&&!m.alternate&&!Pe)return Ye(s),null}else 2*Ht()-l.renderingStartTime>Tc&&i!==536870912&&(s.flags|=128,f=!0,To(l,!1),s.lanes=4194304);l.isBackwards?(m.sibling=s.child,s.child=m):(n=l.last,n!==null?n.sibling=m:s.child=m,l.last=m)}return l.tail!==null?(n=l.tail,l.rendering=n,l.tail=n.sibling,l.renderingStartTime=Ht(),n.sibling=null,i=ot.current,I(ot,f?i&1|2:i&1),Pe&&va(s,l.treeForkCount),n):(Ye(s),null);case 22:case 23:return ln(s),vf(),l=s.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(s.flags|=8192):l&&(s.flags|=8192),l?(i&536870912)!==0&&(s.flags&128)===0&&(Ye(s),s.subtreeFlags&6&&(s.flags|=8192)):Ye(s),i=s.updateQueue,i!==null&&xc(s,i.retryQueue),i=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),l=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(l=s.memoizedState.cachePool.pool),l!==i&&(s.flags|=2048),n!==null&&G($s),null;case 24:return i=null,n!==null&&(i=n.memoizedState.cache),s.memoizedState.cache!==i&&(s.flags|=2048),ba(dt),Ye(s),null;case 25:return null;case 30:return null}throw Error(r(156,s.tag))}function GA(n,s){switch(nf(s),s.tag){case 1:return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 3:return ba(dt),De(),n=s.flags,(n&65536)!==0&&(n&128)===0?(s.flags=n&-65537|128,s):null;case 26:case 27:case 5:return Lt(s),null;case 31:if(s.memoizedState!==null){if(ln(s),s.alternate===null)throw Error(r(340));qs()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 13:if(ln(s),n=s.memoizedState,n!==null&&n.dehydrated!==null){if(s.alternate===null)throw Error(r(340));qs()}return n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 19:return G(ot),null;case 4:return De(),null;case 10:return ba(s.type),null;case 22:case 23:return ln(s),vf(),n!==null&&G($s),n=s.flags,n&65536?(s.flags=n&-65537|128,s):null;case 24:return ba(dt),null;case 25:return null;default:return null}}function m0(n,s){switch(nf(s),s.tag){case 3:ba(dt),De();break;case 26:case 27:case 5:Lt(s);break;case 4:De();break;case 31:s.memoizedState!==null&&ln(s);break;case 13:ln(s);break;case 19:G(ot);break;case 10:ba(s.type);break;case 22:case 23:ln(s),vf(),n!==null&&G($s);break;case 24:ba(dt)}}function _o(n,s){try{var i=s.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var f=l.next;i=f;do{if((i.tag&n)===n){l=void 0;var m=i.create,x=i.inst;l=m(),x.destroy=l}i=i.next}while(i!==f)}}catch(E){qe(s,s.return,E)}}function ts(n,s,i){try{var l=s.updateQueue,f=l!==null?l.lastEffect:null;if(f!==null){var m=f.next;l=m;do{if((l.tag&n)===n){var x=l.inst,E=x.destroy;if(E!==void 0){x.destroy=void 0,f=s;var N=i,K=E;try{K()}catch(Q){qe(f,N,Q)}}}l=l.next}while(l!==m)}}catch(Q){qe(s,s.return,Q)}}function g0(n){var s=n.updateQueue;if(s!==null){var i=n.stateNode;try{iv(s,i)}catch(l){qe(n,n.return,l)}}}function y0(n,s,i){i.props=Ys(n.type,n.memoizedProps),i.state=n.memoizedState;try{i.componentWillUnmount()}catch(l){qe(n,s,l)}}function Ao(n,s){try{var i=n.ref;if(i!==null){switch(n.tag){case 26:case 27:case 5:var l=n.stateNode;break;case 30:l=n.stateNode;break;default:l=n.stateNode}typeof i=="function"?n.refCleanup=i(l):i.current=l}}catch(f){qe(n,s,f)}}function Wn(n,s){var i=n.ref,l=n.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(f){qe(n,s,f)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){qe(n,s,f)}else i.current=null}function v0(n){var s=n.type,i=n.memoizedProps,l=n.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(f){qe(n,n.return,f)}}function Yf(n,s,i){try{var l=n.stateNode;mC(l,n.type,i,s),l[Gt]=s}catch(f){qe(n,n.return,f)}}function x0(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ls(n.type)||n.tag===4}function Xf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||x0(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ls(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Wf(n,s,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,s?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(n,s):(s=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,s.appendChild(n),i=i._reactRootContainer,i!=null||s.onclick!==null||(s.onclick=ma));else if(l!==4&&(l===27&&ls(n.type)&&(i=n.stateNode,s=null),n=n.child,n!==null))for(Wf(n,s,i),n=n.sibling;n!==null;)Wf(n,s,i),n=n.sibling}function bc(n,s,i){var l=n.tag;if(l===5||l===6)n=n.stateNode,s?i.insertBefore(n,s):i.appendChild(n);else if(l!==4&&(l===27&&ls(n.type)&&(i=n.stateNode),n=n.child,n!==null))for(bc(n,s,i),n=n.sibling;n!==null;)bc(n,s,i),n=n.sibling}function b0(n){var s=n.stateNode,i=n.memoizedProps;try{for(var l=n.type,f=s.attributes;f.length;)s.removeAttributeNode(f[0]);Nt(s,l,i),s[Ct]=n,s[Gt]=i}catch(m){qe(n,n.return,m)}}var _a=!1,pt=!1,Jf=!1,w0=typeof WeakSet=="function"?WeakSet:Set,St=null;function FA(n,s){if(n=n.containerInfo,bh=Vc,n=zy(n),$d(n)){if("selectionStart"in n)var i={start:n.selectionStart,end:n.selectionEnd};else e:{i=(i=n.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var f=l.anchorOffset,m=l.focusNode;l=l.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var x=0,E=-1,N=-1,K=0,Q=0,W=n,$=null;t:for(;;){for(var Z;W!==i||f!==0&&W.nodeType!==3||(E=x+f),W!==m||l!==0&&W.nodeType!==3||(N=x+l),W.nodeType===3&&(x+=W.nodeValue.length),(Z=W.firstChild)!==null;)$=W,W=Z;for(;;){if(W===n)break t;if($===i&&++K===f&&(E=x),$===m&&++Q===l&&(N=x),(Z=W.nextSibling)!==null)break;W=$,$=W.parentNode}W=Z}i=E===-1||N===-1?null:{start:E,end:N}}else i=null}i=i||{start:0,end:0}}else i=null;for(wh={focusedElem:n,selectionRange:i},Vc=!1,St=s;St!==null;)if(s=St,n=s.child,(s.subtreeFlags&1028)!==0&&n!==null)n.return=s,St=n;else for(;St!==null;){switch(s=St,m=s.alternate,n=s.flags,s.tag){case 0:if((n&4)!==0&&(n=s.updateQueue,n=n!==null?n.events:null,n!==null))for(i=0;i<n.length;i++)f=n[i],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,i=s,f=m.memoizedProps,m=m.memoizedState,l=i.stateNode;try{var fe=Ys(i.type,f);n=l.getSnapshotBeforeUpdate(fe,m),l.__reactInternalSnapshotBeforeUpdate=n}catch(ve){qe(i,i.return,ve)}}break;case 3:if((n&1024)!==0){if(n=s.stateNode.containerInfo,i=n.nodeType,i===9)Th(n);else if(i===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Th(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(r(163))}if(n=s.sibling,n!==null){n.return=s.return,St=n;break}St=s.return}}function S0(n,s,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Ca(n,i),l&4&&_o(5,i);break;case 1:if(Ca(n,i),l&4)if(n=i.stateNode,s===null)try{n.componentDidMount()}catch(x){qe(i,i.return,x)}else{var f=Ys(i.type,s.memoizedProps);s=s.memoizedState;try{n.componentDidUpdate(f,s,n.__reactInternalSnapshotBeforeUpdate)}catch(x){qe(i,i.return,x)}}l&64&&g0(i),l&512&&Ao(i,i.return);break;case 3:if(Ca(n,i),l&64&&(n=i.updateQueue,n!==null)){if(s=null,i.child!==null)switch(i.child.tag){case 27:case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}try{iv(n,s)}catch(x){qe(i,i.return,x)}}break;case 27:s===null&&l&4&&b0(i);case 26:case 5:Ca(n,i),s===null&&l&4&&v0(i),l&512&&Ao(i,i.return);break;case 12:Ca(n,i);break;case 31:Ca(n,i),l&4&&_0(n,i);break;case 13:Ca(n,i),l&4&&A0(n,i),l&64&&(n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(i=aC.bind(null,i),EC(n,i))));break;case 22:if(l=i.memoizedState!==null||_a,!l){s=s!==null&&s.memoizedState!==null||pt,f=_a;var m=pt;_a=l,(pt=s)&&!m?Oa(n,i,(i.subtreeFlags&8772)!==0):Ca(n,i),_a=f,pt=m}break;case 30:break;default:Ca(n,i)}}function E0(n){var s=n.alternate;s!==null&&(n.alternate=null,E0(s)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(s=n.stateNode,s!==null&&Od(s)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var We=null,Qt=!1;function Aa(n,s,i){for(i=i.child;i!==null;)T0(n,s,i),i=i.sibling}function T0(n,s,i){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(zs,i)}catch{}switch(i.tag){case 26:pt||Wn(i,s),Aa(n,s,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:pt||Wn(i,s);var l=We,f=Qt;ls(i.type)&&(We=i.stateNode,Qt=!1),Aa(n,s,i),Do(i.stateNode),We=l,Qt=f;break;case 5:pt||Wn(i,s);case 6:if(l=We,f=Qt,We=null,Aa(n,s,i),We=l,Qt=f,We!==null)if(Qt)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(i.stateNode)}catch(m){qe(i,s,m)}else try{We.removeChild(i.stateNode)}catch(m){qe(i,s,m)}break;case 18:We!==null&&(Qt?(n=We,gx(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,i.stateNode),ci(n)):gx(We,i.stateNode));break;case 4:l=We,f=Qt,We=i.stateNode.containerInfo,Qt=!0,Aa(n,s,i),We=l,Qt=f;break;case 0:case 11:case 14:case 15:ts(2,i,s),pt||ts(4,i,s),Aa(n,s,i);break;case 1:pt||(Wn(i,s),l=i.stateNode,typeof l.componentWillUnmount=="function"&&y0(i,s,l)),Aa(n,s,i);break;case 21:Aa(n,s,i);break;case 22:pt=(l=pt)||i.memoizedState!==null,Aa(n,s,i),pt=l;break;default:Aa(n,s,i)}}function _0(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ci(n)}catch(i){qe(s,s.return,i)}}}function A0(n,s){if(s.memoizedState===null&&(n=s.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ci(n)}catch(i){qe(s,s.return,i)}}function QA(n){switch(n.tag){case 31:case 13:case 19:var s=n.stateNode;return s===null&&(s=n.stateNode=new w0),s;case 22:return n=n.stateNode,s=n._retryCache,s===null&&(s=n._retryCache=new w0),s;default:throw Error(r(435,n.tag))}}function wc(n,s){var i=QA(n);s.forEach(function(l){if(!i.has(l)){i.add(l);var f=sC.bind(null,n,l);l.then(f,f)}})}function Yt(n,s){var i=s.deletions;if(i!==null)for(var l=0;l<i.length;l++){var f=i[l],m=n,x=s,E=x;e:for(;E!==null;){switch(E.tag){case 27:if(ls(E.type)){We=E.stateNode,Qt=!1;break e}break;case 5:We=E.stateNode,Qt=!1;break e;case 3:case 4:We=E.stateNode.containerInfo,Qt=!0;break e}E=E.return}if(We===null)throw Error(r(160));T0(m,x,f),We=null,Qt=!1,m=f.alternate,m!==null&&(m.return=null),f.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)C0(s,n),s=s.sibling}var Bn=null;function C0(n,s){var i=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Yt(s,n),Xt(n),l&4&&(ts(3,n,n.return),_o(3,n),ts(5,n,n.return));break;case 1:Yt(s,n),Xt(n),l&512&&(pt||i===null||Wn(i,i.return)),l&64&&_a&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(i=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var f=Bn;if(Yt(s,n),Xt(n),l&512&&(pt||i===null||Wn(i,i.return)),l&4){var m=i!==null?i.memoizedState:null;if(l=n.memoizedState,i===null)if(l===null)if(n.stateNode===null){e:{l=n.type,i=n.memoizedProps,f=f.ownerDocument||f;t:switch(l){case"title":m=f.getElementsByTagName("title")[0],(!m||m[Wi]||m[Ct]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=f.createElement(l),f.head.insertBefore(m,f.querySelector("head > title"))),Nt(m,l,i),m[Ct]=n,wt(m),l=m;break e;case"link":var x=Cx("link","href",f).get(l+(i.href||""));if(x){for(var E=0;E<x.length;E++)if(m=x[E],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){x.splice(E,1);break t}}m=f.createElement(l),Nt(m,l,i),f.head.appendChild(m);break;case"meta":if(x=Cx("meta","content",f).get(l+(i.content||""))){for(E=0;E<x.length;E++)if(m=x[E],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){x.splice(E,1);break t}}m=f.createElement(l),Nt(m,l,i),f.head.appendChild(m);break;default:throw Error(r(468,l))}m[Ct]=n,wt(m),l=m}n.stateNode=l}else Ox(f,n.type,n.stateNode);else n.stateNode=Ax(f,l,n.memoizedProps);else m!==l?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,l===null?Ox(f,n.type,n.stateNode):Ax(f,l,n.memoizedProps)):l===null&&n.stateNode!==null&&Yf(n,n.memoizedProps,i.memoizedProps)}break;case 27:Yt(s,n),Xt(n),l&512&&(pt||i===null||Wn(i,i.return)),i!==null&&l&4&&Yf(n,n.memoizedProps,i.memoizedProps);break;case 5:if(Yt(s,n),Xt(n),l&512&&(pt||i===null||Wn(i,i.return)),n.flags&32){f=n.stateNode;try{kr(f,"")}catch(fe){qe(n,n.return,fe)}}l&4&&n.stateNode!=null&&(f=n.memoizedProps,Yf(n,f,i!==null?i.memoizedProps:f)),l&1024&&(Jf=!0);break;case 6:if(Yt(s,n),Xt(n),l&4){if(n.stateNode===null)throw Error(r(162));l=n.memoizedProps,i=n.stateNode;try{i.nodeValue=l}catch(fe){qe(n,n.return,fe)}}break;case 3:if(Lc=null,f=Bn,Bn=Dc(s.containerInfo),Yt(s,n),Bn=f,Xt(n),l&4&&i!==null&&i.memoizedState.isDehydrated)try{ci(s.containerInfo)}catch(fe){qe(n,n.return,fe)}Jf&&(Jf=!1,O0(n));break;case 4:l=Bn,Bn=Dc(n.stateNode.containerInfo),Yt(s,n),Xt(n),Bn=l;break;case 12:Yt(s,n),Xt(n);break;case 31:Yt(s,n),Xt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,wc(n,l)));break;case 13:Yt(s,n),Xt(n),n.child.flags&8192&&n.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Ec=Ht()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,wc(n,l)));break;case 22:f=n.memoizedState!==null;var N=i!==null&&i.memoizedState!==null,K=_a,Q=pt;if(_a=K||f,pt=Q||N,Yt(s,n),pt=Q,_a=K,Xt(n),l&8192)e:for(s=n.stateNode,s._visibility=f?s._visibility&-2:s._visibility|1,f&&(i===null||N||_a||pt||Xs(n)),i=null,s=n;;){if(s.tag===5||s.tag===26){if(i===null){N=i=s;try{if(m=N.stateNode,f)x=m.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{E=N.stateNode;var W=N.memoizedProps.style,$=W!=null&&W.hasOwnProperty("display")?W.display:null;E.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(fe){qe(N,N.return,fe)}}}else if(s.tag===6){if(i===null){N=s;try{N.stateNode.nodeValue=f?"":N.memoizedProps}catch(fe){qe(N,N.return,fe)}}}else if(s.tag===18){if(i===null){N=s;try{var Z=N.stateNode;f?yx(Z,!0):yx(N.stateNode,!1)}catch(fe){qe(N,N.return,fe)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===n)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===n)break e;for(;s.sibling===null;){if(s.return===null||s.return===n)break e;i===s&&(i=null),s=s.return}i===s&&(i=null),s.sibling.return=s.return,s=s.sibling}l&4&&(l=n.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,wc(n,i))));break;case 19:Yt(s,n),Xt(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,wc(n,l)));break;case 30:break;case 21:break;default:Yt(s,n),Xt(n)}}function Xt(n){var s=n.flags;if(s&2){try{for(var i,l=n.return;l!==null;){if(x0(l)){i=l;break}l=l.return}if(i==null)throw Error(r(160));switch(i.tag){case 27:var f=i.stateNode,m=Xf(n);bc(n,m,f);break;case 5:var x=i.stateNode;i.flags&32&&(kr(x,""),i.flags&=-33);var E=Xf(n);bc(n,E,x);break;case 3:case 4:var N=i.stateNode.containerInfo,K=Xf(n);Wf(n,K,N);break;default:throw Error(r(161))}}catch(Q){qe(n,n.return,Q)}n.flags&=-3}s&4096&&(n.flags&=-4097)}function O0(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var s=n;O0(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),n=n.sibling}}function Ca(n,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)S0(n,s.alternate,s),s=s.sibling}function Xs(n){for(n=n.child;n!==null;){var s=n;switch(s.tag){case 0:case 11:case 14:case 15:ts(4,s,s.return),Xs(s);break;case 1:Wn(s,s.return);var i=s.stateNode;typeof i.componentWillUnmount=="function"&&y0(s,s.return,i),Xs(s);break;case 27:Do(s.stateNode);case 26:case 5:Wn(s,s.return),Xs(s);break;case 22:s.memoizedState===null&&Xs(s);break;case 30:Xs(s);break;default:Xs(s)}n=n.sibling}}function Oa(n,s,i){for(i=i&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var l=s.alternate,f=n,m=s,x=m.flags;switch(m.tag){case 0:case 11:case 15:Oa(f,m,i),_o(4,m);break;case 1:if(Oa(f,m,i),l=m,f=l.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(K){qe(l,l.return,K)}if(l=m,f=l.updateQueue,f!==null){var E=l.stateNode;try{var N=f.shared.hiddenCallbacks;if(N!==null)for(f.shared.hiddenCallbacks=null,f=0;f<N.length;f++)rv(N[f],E)}catch(K){qe(l,l.return,K)}}i&&x&64&&g0(m),Ao(m,m.return);break;case 27:b0(m);case 26:case 5:Oa(f,m,i),i&&l===null&&x&4&&v0(m),Ao(m,m.return);break;case 12:Oa(f,m,i);break;case 31:Oa(f,m,i),i&&x&4&&_0(f,m);break;case 13:Oa(f,m,i),i&&x&4&&A0(f,m);break;case 22:m.memoizedState===null&&Oa(f,m,i),Ao(m,m.return);break;case 30:break;default:Oa(f,m,i)}s=s.sibling}}function eh(n,s){var i=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),n=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(n=s.memoizedState.cachePool.pool),n!==i&&(n!=null&&n.refCount++,i!=null&&fo(i))}function th(n,s){n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&fo(n))}function Hn(n,s,i,l){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)j0(n,s,i,l),s=s.sibling}function j0(n,s,i,l){var f=s.flags;switch(s.tag){case 0:case 11:case 15:Hn(n,s,i,l),f&2048&&_o(9,s);break;case 1:Hn(n,s,i,l);break;case 3:Hn(n,s,i,l),f&2048&&(n=null,s.alternate!==null&&(n=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==n&&(s.refCount++,n!=null&&fo(n)));break;case 12:if(f&2048){Hn(n,s,i,l),n=s.stateNode;try{var m=s.memoizedProps,x=m.id,E=m.onPostCommit;typeof E=="function"&&E(x,s.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(N){qe(s,s.return,N)}}else Hn(n,s,i,l);break;case 31:Hn(n,s,i,l);break;case 13:Hn(n,s,i,l);break;case 23:break;case 22:m=s.stateNode,x=s.alternate,s.memoizedState!==null?m._visibility&2?Hn(n,s,i,l):Co(n,s):m._visibility&2?Hn(n,s,i,l):(m._visibility|=2,Wr(n,s,i,l,(s.subtreeFlags&10256)!==0||!1)),f&2048&&eh(x,s);break;case 24:Hn(n,s,i,l),f&2048&&th(s.alternate,s);break;default:Hn(n,s,i,l)}}function Wr(n,s,i,l,f){for(f=f&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var m=n,x=s,E=i,N=l,K=x.flags;switch(x.tag){case 0:case 11:case 15:Wr(m,x,E,N,f),_o(8,x);break;case 23:break;case 22:var Q=x.stateNode;x.memoizedState!==null?Q._visibility&2?Wr(m,x,E,N,f):Co(m,x):(Q._visibility|=2,Wr(m,x,E,N,f)),f&&K&2048&&eh(x.alternate,x);break;case 24:Wr(m,x,E,N,f),f&&K&2048&&th(x.alternate,x);break;default:Wr(m,x,E,N,f)}s=s.sibling}}function Co(n,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var i=n,l=s,f=l.flags;switch(l.tag){case 22:Co(i,l),f&2048&&eh(l.alternate,l);break;case 24:Co(i,l),f&2048&&th(l.alternate,l);break;default:Co(i,l)}s=s.sibling}}var Oo=8192;function Jr(n,s,i){if(n.subtreeFlags&Oo)for(n=n.child;n!==null;)M0(n,s,i),n=n.sibling}function M0(n,s,i){switch(n.tag){case 26:Jr(n,s,i),n.flags&Oo&&n.memoizedState!==null&&DC(i,Bn,n.memoizedState,n.memoizedProps);break;case 5:Jr(n,s,i);break;case 3:case 4:var l=Bn;Bn=Dc(n.stateNode.containerInfo),Jr(n,s,i),Bn=l;break;case 22:n.memoizedState===null&&(l=n.alternate,l!==null&&l.memoizedState!==null?(l=Oo,Oo=16777216,Jr(n,s,i),Oo=l):Jr(n,s,i));break;default:Jr(n,s,i)}}function N0(n){var s=n.alternate;if(s!==null&&(n=s.child,n!==null)){s.child=null;do s=n.sibling,n.sibling=null,n=s;while(n!==null)}}function jo(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var i=0;i<s.length;i++){var l=s[i];St=l,z0(l,n)}N0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)k0(n),n=n.sibling}function k0(n){switch(n.tag){case 0:case 11:case 15:jo(n),n.flags&2048&&ts(9,n,n.return);break;case 3:jo(n);break;case 12:jo(n);break;case 22:var s=n.stateNode;n.memoizedState!==null&&s._visibility&2&&(n.return===null||n.return.tag!==13)?(s._visibility&=-3,Sc(n)):jo(n);break;default:jo(n)}}function Sc(n){var s=n.deletions;if((n.flags&16)!==0){if(s!==null)for(var i=0;i<s.length;i++){var l=s[i];St=l,z0(l,n)}N0(n)}for(n=n.child;n!==null;){switch(s=n,s.tag){case 0:case 11:case 15:ts(8,s,s.return),Sc(s);break;case 22:i=s.stateNode,i._visibility&2&&(i._visibility&=-3,Sc(s));break;default:Sc(s)}n=n.sibling}}function z0(n,s){for(;St!==null;){var i=St;switch(i.tag){case 0:case 11:case 15:ts(8,i,s);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:fo(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,St=l;else e:for(i=n;St!==null;){l=St;var f=l.sibling,m=l.return;if(E0(l),l===i){St=null;break e}if(f!==null){f.return=m,St=f;break e}St=m}}}var YA={getCacheForType:function(n){var s=jt(dt),i=s.data.get(n);return i===void 0&&(i=n(),s.data.set(n,i)),i},cacheSignal:function(){return jt(dt).controller.signal}},XA=typeof WeakMap=="function"?WeakMap:Map,Ue=0,Ge=null,Ne=null,ze=0,Ve=0,cn=null,ns=!1,ei=!1,nh=!1,ja=0,st=0,as=0,Ws=0,ah=0,un=0,ti=0,Mo=null,Wt=null,sh=!1,Ec=0,R0=0,Tc=1/0,_c=null,ss=null,yt=0,rs=null,ni=null,Ma=0,rh=0,ih=null,D0=null,No=0,oh=null;function dn(){return(Ue&2)!==0&&ze!==0?ze&-ze:O.T!==null?hh():Ad()}function P0(){if(un===0)if((ze&536870912)===0||Pe){var n=Tr;Tr<<=1,(Tr&3932160)===0&&(Tr=262144),un=n}else un=536870912;return n=on.current,n!==null&&(n.flags|=32),un}function Jt(n,s,i){(n===Ge&&(Ve===2||Ve===9)||n.cancelPendingCommit!==null)&&(ai(n,0),is(n,ze,un,!1)),et(n,i),((Ue&2)===0||n!==Ge)&&(n===Ge&&((Ue&2)===0&&(Ws|=i),st===4&&is(n,ze,un,!1)),Jn(n))}function L0(n,s,i){if((Ue&6)!==0)throw Error(r(327));var l=!i&&(s&127)===0&&(s&n.expiredLanes)===0||Xe(n,s),f=l?eC(n,s):ch(n,s,!0),m=l;do{if(f===0){ei&&!l&&is(n,s,0,!1);break}else{if(i=n.current.alternate,m&&!WA(i)){f=ch(n,s,!1),m=!1;continue}if(f===2){if(m=s,n.errorRecoveryDisabledLanes&m)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){s=x;e:{var E=n;f=Mo;var N=E.current.memoizedState.isDehydrated;if(N&&(ai(E,x).flags|=256),x=ch(E,x,!1),x!==2){if(nh&&!N){E.errorRecoveryDisabledLanes|=m,Ws|=m,f=4;break e}m=Wt,Wt=f,m!==null&&(Wt===null?Wt=m:Wt.push.apply(Wt,m))}f=x}if(m=!1,f!==2)continue}}if(f===1){ai(n,0),is(n,s,0,!0);break}e:{switch(l=n,m=f,m){case 0:case 1:throw Error(r(345));case 4:if((s&4194048)!==s)break;case 6:is(l,s,un,!ns);break e;case 2:Wt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((s&62914560)===s&&(f=Ec+300-Ht(),10<f)){if(is(l,s,un,!ns),we(l,0,!0)!==0)break e;Ma=s,l.timeoutHandle=px(B0.bind(null,l,i,Wt,_c,sh,s,un,Ws,ti,ns,m,"Throttled",-0,0),f);break e}B0(l,i,Wt,_c,sh,s,un,Ws,ti,ns,m,null,-0,0)}}break}while(!0);Jn(n)}function B0(n,s,i,l,f,m,x,E,N,K,Q,W,$,Z){if(n.timeoutHandle=-1,W=s.subtreeFlags,W&8192||(W&16785408)===16785408){W={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ma},M0(s,m,W);var fe=(m&62914560)===m?Ec-Ht():(m&4194048)===m?R0-Ht():0;if(fe=PC(W,fe),fe!==null){Ma=m,n.cancelPendingCommit=fe(Z0.bind(null,n,s,m,i,l,f,x,E,N,Q,W,null,$,Z)),is(n,m,x,!K);return}}Z0(n,s,m,i,l,f,x,E,N)}function WA(n){for(var s=n;;){var i=s.tag;if((i===0||i===11||i===15)&&s.flags&16384&&(i=s.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var f=i[l],m=f.getSnapshot;f=f.value;try{if(!sn(m(),f))return!1}catch{return!1}}if(i=s.child,s.subtreeFlags&16384&&i!==null)i.return=s,s=i;else{if(s===n)break;for(;s.sibling===null;){if(s.return===null||s.return===n)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function is(n,s,i,l){s&=~ah,s&=~Ws,n.suspendedLanes|=s,n.pingedLanes&=~s,l&&(n.warmLanes|=s),l=n.expirationTimes;for(var f=s;0<f;){var m=31-kt(f),x=1<<m;l[m]=-1,f&=~x}i!==0&&Ds(n,i,s)}function Ac(){return(Ue&6)===0?(ko(0),!1):!0}function lh(){if(Ne!==null){if(Ve===0)var n=Ne.return;else n=Ne,xa=Ks=null,Tf(n),Gr=null,po=0,n=Ne;for(;n!==null;)m0(n.alternate,n),n=n.return;Ne=null}}function ai(n,s){var i=n.timeoutHandle;i!==-1&&(n.timeoutHandle=-1,vC(i)),i=n.cancelPendingCommit,i!==null&&(n.cancelPendingCommit=null,i()),Ma=0,lh(),Ge=n,Ne=i=ya(n.current,null),ze=s,Ve=0,cn=null,ns=!1,ei=Xe(n,s),nh=!1,ti=un=ah=Ws=as=st=0,Wt=Mo=null,sh=!1,(s&8)!==0&&(s|=s&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=s;0<l;){var f=31-kt(l),m=1<<f;s|=n[f],l&=~m}return ja=s,Gl(),i}function H0(n,s){Ce=null,O.H=So,s===Zr||s===tc?(s=tv(),Ve=3):s===ff?(s=tv(),Ve=4):Ve=s===Uf?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,cn=s,Ne===null&&(st=1,mc(n,bn(s,n.current)))}function U0(){var n=on.current;return n===null?!0:(ze&4194048)===ze?Tn===null:(ze&62914560)===ze||(ze&536870912)!==0?n===Tn:!1}function V0(){var n=O.H;return O.H=So,n===null?So:n}function q0(){var n=O.A;return O.A=YA,n}function Cc(){st=4,ns||(ze&4194048)!==ze&&on.current!==null||(ei=!0),(as&134217727)===0&&(Ws&134217727)===0||Ge===null||is(Ge,ze,un,!1)}function ch(n,s,i){var l=Ue;Ue|=2;var f=V0(),m=q0();(Ge!==n||ze!==s)&&(_c=null,ai(n,s)),s=!1;var x=st;e:do try{if(Ve!==0&&Ne!==null){var E=Ne,N=cn;switch(Ve){case 8:lh(),x=6;break e;case 3:case 2:case 9:case 6:on.current===null&&(s=!0);var K=Ve;if(Ve=0,cn=null,si(n,E,N,K),i&&ei){x=0;break e}break;default:K=Ve,Ve=0,cn=null,si(n,E,N,K)}}JA(),x=st;break}catch(Q){H0(n,Q)}while(!0);return s&&n.shellSuspendCounter++,xa=Ks=null,Ue=l,O.H=f,O.A=m,Ne===null&&(Ge=null,ze=0,Gl()),x}function JA(){for(;Ne!==null;)K0(Ne)}function eC(n,s){var i=Ue;Ue|=2;var l=V0(),f=q0();Ge!==n||ze!==s?(_c=null,Tc=Ht()+500,ai(n,s)):ei=Xe(n,s);e:do try{if(Ve!==0&&Ne!==null){s=Ne;var m=cn;t:switch(Ve){case 1:Ve=0,cn=null,si(n,s,m,1);break;case 2:case 9:if(Jy(m)){Ve=0,cn=null,I0(s);break}s=function(){Ve!==2&&Ve!==9||Ge!==n||(Ve=7),Jn(n)},m.then(s,s);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Jy(m)?(Ve=0,cn=null,I0(s)):(Ve=0,cn=null,si(n,s,m,7));break;case 5:var x=null;switch(Ne.tag){case 26:x=Ne.memoizedState;case 5:case 27:var E=Ne;if(x?jx(x):E.stateNode.complete){Ve=0,cn=null;var N=E.sibling;if(N!==null)Ne=N;else{var K=E.return;K!==null?(Ne=K,Oc(K)):Ne=null}break t}}Ve=0,cn=null,si(n,s,m,5);break;case 6:Ve=0,cn=null,si(n,s,m,6);break;case 8:lh(),st=6;break e;default:throw Error(r(462))}}tC();break}catch(Q){H0(n,Q)}while(!0);return xa=Ks=null,O.H=l,O.A=f,Ue=i,Ne!==null?0:(Ge=null,ze=0,Gl(),st)}function tC(){for(;Ne!==null&&!Bt();)K0(Ne)}function K0(n){var s=h0(n.alternate,n,ja);n.memoizedProps=n.pendingProps,s===null?Oc(n):Ne=s}function I0(n){var s=n,i=s.alternate;switch(s.tag){case 15:case 0:s=o0(i,s,s.pendingProps,s.type,void 0,ze);break;case 11:s=o0(i,s,s.pendingProps,s.type.render,s.ref,ze);break;case 5:Tf(s);default:m0(i,s),s=Ne=qy(s,ja),s=h0(i,s,ja)}n.memoizedProps=n.pendingProps,s===null?Oc(n):Ne=s}function si(n,s,i,l){xa=Ks=null,Tf(s),Gr=null,po=0;var f=s.return;try{if(KA(n,f,s,i,ze)){st=1,mc(n,bn(i,n.current)),Ne=null;return}}catch(m){if(f!==null)throw Ne=f,m;st=1,mc(n,bn(i,n.current)),Ne=null;return}s.flags&32768?(Pe||l===1?n=!0:ei||(ze&536870912)!==0?n=!1:(ns=n=!0,(l===2||l===9||l===3||l===6)&&(l=on.current,l!==null&&l.tag===13&&(l.flags|=16384))),$0(s,n)):Oc(s)}function Oc(n){var s=n;do{if((s.flags&32768)!==0){$0(s,ns);return}n=s.return;var i=ZA(s.alternate,s,ja);if(i!==null){Ne=i;return}if(s=s.sibling,s!==null){Ne=s;return}Ne=s=n}while(s!==null);st===0&&(st=5)}function $0(n,s){do{var i=GA(n.alternate,n);if(i!==null){i.flags&=32767,Ne=i;return}if(i=n.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!s&&(n=n.sibling,n!==null)){Ne=n;return}Ne=n=i}while(n!==null);st=6,Ne=null}function Z0(n,s,i,l,f,m,x,E,N){n.cancelPendingCommit=null;do jc();while(yt!==0);if((Ue&6)!==0)throw Error(r(327));if(s!==null){if(s===n.current)throw Error(r(177));if(m=s.lanes|s.childLanes,m|=Yd,It(n,i,m,x,E,N),n===Ge&&(Ne=Ge=null,ze=0),ni=s,rs=n,Ma=i,rh=m,ih=f,D0=l,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,rC(ks,function(){return X0(),null})):(n.callbackNode=null,n.callbackPriority=0),l=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||l){l=O.T,O.T=null,f=D.p,D.p=2,x=Ue,Ue|=4;try{FA(n,s,i)}finally{Ue=x,D.p=f,O.T=l}}yt=1,G0(),F0(),Q0()}}function G0(){if(yt===1){yt=0;var n=rs,s=ni,i=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||i){i=O.T,O.T=null;var l=D.p;D.p=2;var f=Ue;Ue|=4;try{C0(s,n);var m=wh,x=zy(n.containerInfo),E=m.focusedElem,N=m.selectionRange;if(x!==E&&E&&E.ownerDocument&&ky(E.ownerDocument.documentElement,E)){if(N!==null&&$d(E)){var K=N.start,Q=N.end;if(Q===void 0&&(Q=K),"selectionStart"in E)E.selectionStart=K,E.selectionEnd=Math.min(Q,E.value.length);else{var W=E.ownerDocument||document,$=W&&W.defaultView||window;if($.getSelection){var Z=$.getSelection(),fe=E.textContent.length,ve=Math.min(N.start,fe),Ze=N.end===void 0?ve:Math.min(N.end,fe);!Z.extend&&ve>Ze&&(x=Ze,Ze=ve,ve=x);var H=Ny(E,ve),z=Ny(E,Ze);if(H&&z&&(Z.rangeCount!==1||Z.anchorNode!==H.node||Z.anchorOffset!==H.offset||Z.focusNode!==z.node||Z.focusOffset!==z.offset)){var q=W.createRange();q.setStart(H.node,H.offset),Z.removeAllRanges(),ve>Ze?(Z.addRange(q),Z.extend(z.node,z.offset)):(q.setEnd(z.node,z.offset),Z.addRange(q))}}}}for(W=[],Z=E;Z=Z.parentNode;)Z.nodeType===1&&W.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<W.length;E++){var Y=W[E];Y.element.scrollLeft=Y.left,Y.element.scrollTop=Y.top}}Vc=!!bh,wh=bh=null}finally{Ue=f,D.p=l,O.T=i}}n.current=s,yt=2}}function F0(){if(yt===2){yt=0;var n=rs,s=ni,i=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||i){i=O.T,O.T=null;var l=D.p;D.p=2;var f=Ue;Ue|=4;try{S0(n,s.alternate,s)}finally{Ue=f,D.p=l,O.T=i}}yt=3}}function Q0(){if(yt===4||yt===3){yt=0,Va();var n=rs,s=ni,i=Ma,l=D0;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?yt=5:(yt=0,ni=rs=null,Y0(n,n.pendingLanes));var f=n.pendingLanes;if(f===0&&(ss=null),Pn(i),s=s.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(zs,s,void 0,(s.current.flags&128)===128)}catch{}if(l!==null){s=O.T,f=D.p,D.p=2,O.T=null;try{for(var m=n.onRecoverableError,x=0;x<l.length;x++){var E=l[x];m(E.value,{componentStack:E.stack})}}finally{O.T=s,D.p=f}}(Ma&3)!==0&&jc(),Jn(n),f=n.pendingLanes,(i&261930)!==0&&(f&42)!==0?n===oh?No++:(No=0,oh=n):No=0,ko(0)}}function Y0(n,s){(n.pooledCacheLanes&=s)===0&&(s=n.pooledCache,s!=null&&(n.pooledCache=null,fo(s)))}function jc(){return G0(),F0(),Q0(),X0()}function X0(){if(yt!==5)return!1;var n=rs,s=rh;rh=0;var i=Pn(Ma),l=O.T,f=D.p;try{D.p=32>i?32:i,O.T=null,i=ih,ih=null;var m=rs,x=Ma;if(yt=0,ni=rs=null,Ma=0,(Ue&6)!==0)throw Error(r(331));var E=Ue;if(Ue|=4,k0(m.current),j0(m,m.current,x,i),Ue=E,ko(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(zs,m)}catch{}return!0}finally{D.p=f,O.T=l,Y0(n,s)}}function W0(n,s,i){s=bn(i,s),s=Hf(n.stateNode,s,2),n=Wa(n,s,2),n!==null&&(et(n,2),Jn(n))}function qe(n,s,i){if(n.tag===3)W0(n,n,i);else for(;s!==null;){if(s.tag===3){W0(s,n,i);break}else if(s.tag===1){var l=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ss===null||!ss.has(l))){n=bn(i,n),i=Jv(2),l=Wa(s,i,2),l!==null&&(e0(i,l,s,n),et(l,2),Jn(l));break}}s=s.return}}function uh(n,s,i){var l=n.pingCache;if(l===null){l=n.pingCache=new XA;var f=new Set;l.set(s,f)}else f=l.get(s),f===void 0&&(f=new Set,l.set(s,f));f.has(i)||(nh=!0,f.add(i),n=nC.bind(null,n,s,i),s.then(n,n))}function nC(n,s,i){var l=n.pingCache;l!==null&&l.delete(s),n.pingedLanes|=n.suspendedLanes&i,n.warmLanes&=~i,Ge===n&&(ze&i)===i&&(st===4||st===3&&(ze&62914560)===ze&&300>Ht()-Ec?(Ue&2)===0&&ai(n,0):ah|=i,ti===ze&&(ti=0)),Jn(n)}function J0(n,s){s===0&&(s=zt()),n=Us(n,s),n!==null&&(et(n,s),Jn(n))}function aC(n){var s=n.memoizedState,i=0;s!==null&&(i=s.retryLane),J0(n,i)}function sC(n,s){var i=0;switch(n.tag){case 31:case 13:var l=n.stateNode,f=n.memoizedState;f!==null&&(i=f.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(s),J0(n,i)}function rC(n,s){return Fi(n,s)}var Mc=null,ri=null,dh=!1,Nc=!1,fh=!1,os=0;function Jn(n){n!==ri&&n.next===null&&(ri===null?Mc=ri=n:ri=ri.next=n),Nc=!0,dh||(dh=!0,oC())}function ko(n,s){if(!fh&&Nc){fh=!0;do for(var i=!1,l=Mc;l!==null;){if(n!==0){var f=l.pendingLanes;if(f===0)var m=0;else{var x=l.suspendedLanes,E=l.pingedLanes;m=(1<<31-kt(42|n)+1)-1,m&=f&~(x&~E),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,ax(l,m))}else m=ze,m=we(l,l===Ge?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(m&3)===0||Xe(l,m)||(i=!0,ax(l,m));l=l.next}while(i);fh=!1}}function iC(){ex()}function ex(){Nc=dh=!1;var n=0;os!==0&&yC()&&(n=os);for(var s=Ht(),i=null,l=Mc;l!==null;){var f=l.next,m=tx(l,s);m===0?(l.next=null,i===null?Mc=f:i.next=f,f===null&&(ri=i)):(i=l,(n!==0||(m&3)!==0)&&(Nc=!0)),l=f}yt!==0&&yt!==5||ko(n),os!==0&&(os=0)}function tx(n,s){for(var i=n.suspendedLanes,l=n.pingedLanes,f=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var x=31-kt(m),E=1<<x,N=f[x];N===-1?((E&i)===0||(E&l)!==0)&&(f[x]=bt(E,s)):N<=s&&(n.expiredLanes|=E),m&=~E}if(s=Ge,i=ze,i=we(n,n===s?i:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l=n.callbackNode,i===0||n===s&&(Ve===2||Ve===9)||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Qi(l),n.callbackNode=null,n.callbackPriority=0;if((i&3)===0||Xe(n,i)){if(s=i&-i,s===n.callbackPriority)return s;switch(l!==null&&Qi(l),Pn(i)){case 2:case 8:i=Rl;break;case 32:i=ks;break;case 268435456:i=ha;break;default:i=ks}return l=nx.bind(null,n),i=Fi(i,l),n.callbackPriority=s,n.callbackNode=i,s}return l!==null&&l!==null&&Qi(l),n.callbackPriority=2,n.callbackNode=null,2}function nx(n,s){if(yt!==0&&yt!==5)return n.callbackNode=null,n.callbackPriority=0,null;var i=n.callbackNode;if(jc()&&n.callbackNode!==i)return null;var l=ze;return l=we(n,n===Ge?l:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),l===0?null:(L0(n,l,s),tx(n,Ht()),n.callbackNode!=null&&n.callbackNode===i?nx.bind(null,n):null)}function ax(n,s){if(jc())return null;L0(n,s,!0)}function oC(){xC(function(){(Ue&6)!==0?Fi(Ns,iC):ex()})}function hh(){if(os===0){var n=Ir;n===0&&(n=Er,Er<<=1,(Er&261888)===0&&(Er=256)),os=n}return os}function sx(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Hl(""+n)}function rx(n,s){var i=s.ownerDocument.createElement("input");return i.name=s.name,i.value=s.value,n.id&&i.setAttribute("form",n.id),s.parentNode.insertBefore(i,s),n=new FormData(n),i.parentNode.removeChild(i),n}function lC(n,s,i,l,f){if(s==="submit"&&i&&i.stateNode===f){var m=sx((f[Gt]||null).action),x=l.submitter;x&&(s=(s=x[Gt]||null)?sx(s.formAction):x.getAttribute("formAction"),s!==null&&(m=s,x=null));var E=new Kl("action","action",null,l,f);n.push({event:E,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(os!==0){var N=x?rx(f,x):new FormData(f);zf(i,{pending:!0,data:N,method:f.method,action:m},null,N)}}else typeof m=="function"&&(E.preventDefault(),N=x?rx(f,x):new FormData(f),zf(i,{pending:!0,data:N,method:f.method,action:m},m,N))},currentTarget:f}]})}}for(var ph=0;ph<Qd.length;ph++){var mh=Qd[ph],cC=mh.toLowerCase(),uC=mh[0].toUpperCase()+mh.slice(1);Ln(cC,"on"+uC)}Ln(Py,"onAnimationEnd"),Ln(Ly,"onAnimationIteration"),Ln(By,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(AA,"onTransitionRun"),Ln(CA,"onTransitionStart"),Ln(OA,"onTransitionCancel"),Ln(Hy,"onTransitionEnd"),Mr("onMouseEnter",["mouseout","mouseover"]),Mr("onMouseLeave",["mouseout","mouseover"]),Mr("onPointerEnter",["pointerout","pointerover"]),Mr("onPointerLeave",["pointerout","pointerover"]),Ps("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ps("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ps("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ps("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ps("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ps("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),dC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zo));function ix(n,s){s=(s&4)!==0;for(var i=0;i<n.length;i++){var l=n[i],f=l.event;l=l.listeners;e:{var m=void 0;if(s)for(var x=l.length-1;0<=x;x--){var E=l[x],N=E.instance,K=E.currentTarget;if(E=E.listener,N!==m&&f.isPropagationStopped())break e;m=E,f.currentTarget=K;try{m(f)}catch(Q){Zl(Q)}f.currentTarget=null,m=N}else for(x=0;x<l.length;x++){if(E=l[x],N=E.instance,K=E.currentTarget,E=E.listener,N!==m&&f.isPropagationStopped())break e;m=E,f.currentTarget=K;try{m(f)}catch(Q){Zl(Q)}f.currentTarget=null,m=N}}}}function ke(n,s){var i=s[Cd];i===void 0&&(i=s[Cd]=new Set);var l=n+"__bubble";i.has(l)||(ox(s,n,2,!1),i.add(l))}function gh(n,s,i){var l=0;s&&(l|=4),ox(i,n,l,s)}var kc="_reactListening"+Math.random().toString(36).slice(2);function yh(n){if(!n[kc]){n[kc]=!0,ey.forEach(function(i){i!=="selectionchange"&&(dC.has(i)||gh(i,!1,n),gh(i,!0,n))});var s=n.nodeType===9?n:n.ownerDocument;s===null||s[kc]||(s[kc]=!0,gh("selectionchange",!1,s))}}function ox(n,s,i,l){switch(Px(s)){case 2:var f=HC;break;case 8:f=UC;break;default:f=kh}i=f.bind(null,s,i,n),f=void 0,!Pd||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),l?f!==void 0?n.addEventListener(s,i,{capture:!0,passive:f}):n.addEventListener(s,i,!0):f!==void 0?n.addEventListener(s,i,{passive:f}):n.addEventListener(s,i,!1)}function vh(n,s,i,l,f){var m=l;if((s&1)===0&&(s&2)===0&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var E=l.stateNode.containerInfo;if(E===f)break;if(x===4)for(x=l.return;x!==null;){var N=x.tag;if((N===3||N===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;E!==null;){if(x=Cr(E),x===null)return;if(N=x.tag,N===5||N===6||N===26||N===27){l=m=x;continue e}E=E.parentNode}}l=l.return}fy(function(){var K=m,Q=Rd(i),W=[];e:{var $=Uy.get(n);if($!==void 0){var Z=Kl,fe=n;switch(n){case"keypress":if(Vl(i)===0)break e;case"keydown":case"keyup":Z=sA;break;case"focusin":fe="focus",Z=Ud;break;case"focusout":fe="blur",Z=Ud;break;case"beforeblur":case"afterblur":Z=Ud;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=my;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Z_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=oA;break;case Py:case Ly:case By:Z=Q_;break;case Hy:Z=cA;break;case"scroll":case"scrollend":Z=I_;break;case"wheel":Z=dA;break;case"copy":case"cut":case"paste":Z=X_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=yy;break;case"toggle":case"beforetoggle":Z=hA}var ve=(s&4)!==0,Ze=!ve&&(n==="scroll"||n==="scrollend"),H=ve?$!==null?$+"Capture":null:$;ve=[];for(var z=K,q;z!==null;){var Y=z;if(q=Y.stateNode,Y=Y.tag,Y!==5&&Y!==26&&Y!==27||q===null||H===null||(Y=eo(z,H),Y!=null&&ve.push(Ro(z,Y,q))),Ze)break;z=z.return}0<ve.length&&($=new Z($,fe,null,i,Q),W.push({event:$,listeners:ve}))}}if((s&7)===0){e:{if($=n==="mouseover"||n==="pointerover",Z=n==="mouseout"||n==="pointerout",$&&i!==zd&&(fe=i.relatedTarget||i.fromElement)&&(Cr(fe)||fe[Ar]))break e;if((Z||$)&&($=Q.window===Q?Q:($=Q.ownerDocument)?$.defaultView||$.parentWindow:window,Z?(fe=i.relatedTarget||i.toElement,Z=K,fe=fe?Cr(fe):null,fe!==null&&(Ze=c(fe),ve=fe.tag,fe!==Ze||ve!==5&&ve!==27&&ve!==6)&&(fe=null)):(Z=null,fe=K),Z!==fe)){if(ve=my,Y="onMouseLeave",H="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(ve=yy,Y="onPointerLeave",H="onPointerEnter",z="pointer"),Ze=Z==null?$:Ji(Z),q=fe==null?$:Ji(fe),$=new ve(Y,z+"leave",Z,i,Q),$.target=Ze,$.relatedTarget=q,Y=null,Cr(Q)===K&&(ve=new ve(H,z+"enter",fe,i,Q),ve.target=q,ve.relatedTarget=Ze,Y=ve),Ze=Y,Z&&fe)t:{for(ve=fC,H=Z,z=fe,q=0,Y=H;Y;Y=ve(Y))q++;Y=0;for(var ye=z;ye;ye=ve(ye))Y++;for(;0<q-Y;)H=ve(H),q--;for(;0<Y-q;)z=ve(z),Y--;for(;q--;){if(H===z||z!==null&&H===z.alternate){ve=H;break t}H=ve(H),z=ve(z)}ve=null}else ve=null;Z!==null&&lx(W,$,Z,ve,!1),fe!==null&&Ze!==null&&lx(W,Ze,fe,ve,!0)}}e:{if($=K?Ji(K):window,Z=$.nodeName&&$.nodeName.toLowerCase(),Z==="select"||Z==="input"&&$.type==="file")var Le=_y;else if(Ey($))if(Ay)Le=EA;else{Le=wA;var ge=bA}else Z=$.nodeName,!Z||Z.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?K&&kd(K.elementType)&&(Le=_y):Le=SA;if(Le&&(Le=Le(n,K))){Ty(W,Le,i,Q);break e}ge&&ge(n,$,K),n==="focusout"&&K&&$.type==="number"&&K.memoizedProps.value!=null&&Nd($,"number",$.value)}switch(ge=K?Ji(K):window,n){case"focusin":(Ey(ge)||ge.contentEditable==="true")&&(Pr=ge,Zd=K,lo=null);break;case"focusout":lo=Zd=Pr=null;break;case"mousedown":Gd=!0;break;case"contextmenu":case"mouseup":case"dragend":Gd=!1,Ry(W,i,Q);break;case"selectionchange":if(_A)break;case"keydown":case"keyup":Ry(W,i,Q)}var Oe;if(qd)e:{switch(n){case"compositionstart":var Re="onCompositionStart";break e;case"compositionend":Re="onCompositionEnd";break e;case"compositionupdate":Re="onCompositionUpdate";break e}Re=void 0}else Dr?wy(n,i)&&(Re="onCompositionEnd"):n==="keydown"&&i.keyCode===229&&(Re="onCompositionStart");Re&&(vy&&i.locale!=="ko"&&(Dr||Re!=="onCompositionStart"?Re==="onCompositionEnd"&&Dr&&(Oe=hy()):($a=Q,Ld="value"in $a?$a.value:$a.textContent,Dr=!0)),ge=zc(K,Re),0<ge.length&&(Re=new gy(Re,n,null,i,Q),W.push({event:Re,listeners:ge}),Oe?Re.data=Oe:(Oe=Sy(i),Oe!==null&&(Re.data=Oe)))),(Oe=mA?gA(n,i):yA(n,i))&&(Re=zc(K,"onBeforeInput"),0<Re.length&&(ge=new gy("onBeforeInput","beforeinput",null,i,Q),W.push({event:ge,listeners:Re}),ge.data=Oe)),lC(W,n,K,i,Q)}ix(W,s)})}function Ro(n,s,i){return{instance:n,listener:s,currentTarget:i}}function zc(n,s){for(var i=s+"Capture",l=[];n!==null;){var f=n,m=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||m===null||(f=eo(n,i),f!=null&&l.unshift(Ro(n,f,m)),f=eo(n,s),f!=null&&l.push(Ro(n,f,m))),n.tag===3)return l;n=n.return}return[]}function fC(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function lx(n,s,i,l,f){for(var m=s._reactName,x=[];i!==null&&i!==l;){var E=i,N=E.alternate,K=E.stateNode;if(E=E.tag,N!==null&&N===l)break;E!==5&&E!==26&&E!==27||K===null||(N=K,f?(K=eo(i,m),K!=null&&x.unshift(Ro(i,K,N))):f||(K=eo(i,m),K!=null&&x.push(Ro(i,K,N)))),i=i.return}x.length!==0&&n.push({event:s,listeners:x})}var hC=/\r\n?/g,pC=/\u0000|\uFFFD/g;function cx(n){return(typeof n=="string"?n:""+n).replace(hC,`
`).replace(pC,"")}function ux(n,s){return s=cx(s),cx(n)===s}function $e(n,s,i,l,f,m){switch(i){case"children":typeof l=="string"?s==="body"||s==="textarea"&&l===""||kr(n,l):(typeof l=="number"||typeof l=="bigint")&&s!=="body"&&kr(n,""+l);break;case"className":Ll(n,"class",l);break;case"tabIndex":Ll(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ll(n,i,l);break;case"style":uy(n,l,m);break;case"data":if(s!=="object"){Ll(n,"data",l);break}case"src":case"href":if(l===""&&(s!=="a"||i!=="href")){n.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Hl(""+l),n.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(s!=="input"&&$e(n,s,"name",f.name,f,null),$e(n,s,"formEncType",f.formEncType,f,null),$e(n,s,"formMethod",f.formMethod,f,null),$e(n,s,"formTarget",f.formTarget,f,null)):($e(n,s,"encType",f.encType,f,null),$e(n,s,"method",f.method,f,null),$e(n,s,"target",f.target,f,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(i);break}l=Hl(""+l),n.setAttribute(i,l);break;case"onClick":l!=null&&(n.onclick=ma);break;case"onScroll":l!=null&&ke("scroll",n);break;case"onScrollEnd":l!=null&&ke("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(i=l.__html,i!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=i}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}i=Hl(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""+l):n.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,""):n.removeAttribute(i);break;case"capture":case"download":l===!0?n.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(i,l):n.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(i,l):n.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(i):n.setAttribute(i,l);break;case"popover":ke("beforetoggle",n),ke("toggle",n),Pl(n,"popover",l);break;case"xlinkActuate":pa(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":pa(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":pa(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":pa(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":pa(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":pa(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":pa(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":pa(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":pa(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pl(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=q_.get(i)||i,Pl(n,i,l))}}function xh(n,s,i,l,f,m){switch(i){case"style":uy(n,l,m);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(i=l.__html,i!=null){if(f.children!=null)throw Error(r(60));n.innerHTML=i}}break;case"children":typeof l=="string"?kr(n,l):(typeof l=="number"||typeof l=="bigint")&&kr(n,""+l);break;case"onScroll":l!=null&&ke("scroll",n);break;case"onScrollEnd":l!=null&&ke("scrollend",n);break;case"onClick":l!=null&&(n.onclick=ma);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ty.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),s=i.slice(2,f?i.length-7:void 0),m=n[Gt]||null,m=m!=null?m[i]:null,typeof m=="function"&&n.removeEventListener(s,m,f),typeof l=="function")){typeof m!="function"&&m!==null&&(i in n?n[i]=null:n.hasAttribute(i)&&n.removeAttribute(i)),n.addEventListener(s,l,f);break e}i in n?n[i]=l:l===!0?n.setAttribute(i,""):Pl(n,i,l)}}}function Nt(n,s,i){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",n),ke("load",n);var l=!1,f=!1,m;for(m in i)if(i.hasOwnProperty(m)){var x=i[m];if(x!=null)switch(m){case"src":l=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$e(n,s,m,x,i,null)}}f&&$e(n,s,"srcSet",i.srcSet,i,null),l&&$e(n,s,"src",i.src,i,null);return;case"input":ke("invalid",n);var E=m=x=f=null,N=null,K=null;for(l in i)if(i.hasOwnProperty(l)){var Q=i[l];if(Q!=null)switch(l){case"name":f=Q;break;case"type":x=Q;break;case"checked":N=Q;break;case"defaultChecked":K=Q;break;case"value":m=Q;break;case"defaultValue":E=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(r(137,s));break;default:$e(n,s,l,Q,i,null)}}iy(n,m,E,N,K,x,f,!1);return;case"select":ke("invalid",n),l=x=m=null;for(f in i)if(i.hasOwnProperty(f)&&(E=i[f],E!=null))switch(f){case"value":m=E;break;case"defaultValue":x=E;break;case"multiple":l=E;default:$e(n,s,f,E,i,null)}s=m,i=x,n.multiple=!!l,s!=null?Nr(n,!!l,s,!1):i!=null&&Nr(n,!!l,i,!0);return;case"textarea":ke("invalid",n),m=f=l=null;for(x in i)if(i.hasOwnProperty(x)&&(E=i[x],E!=null))switch(x){case"value":l=E;break;case"defaultValue":f=E;break;case"children":m=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:$e(n,s,x,E,i,null)}ly(n,l,f,m);return;case"option":for(N in i)if(i.hasOwnProperty(N)&&(l=i[N],l!=null))switch(N){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:$e(n,s,N,l,i,null)}return;case"dialog":ke("beforetoggle",n),ke("toggle",n),ke("cancel",n),ke("close",n);break;case"iframe":case"object":ke("load",n);break;case"video":case"audio":for(l=0;l<zo.length;l++)ke(zo[l],n);break;case"image":ke("error",n),ke("load",n);break;case"details":ke("toggle",n);break;case"embed":case"source":case"link":ke("error",n),ke("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in i)if(i.hasOwnProperty(K)&&(l=i[K],l!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:$e(n,s,K,l,i,null)}return;default:if(kd(s)){for(Q in i)i.hasOwnProperty(Q)&&(l=i[Q],l!==void 0&&xh(n,s,Q,l,i,void 0));return}}for(E in i)i.hasOwnProperty(E)&&(l=i[E],l!=null&&$e(n,s,E,l,i,null))}function mC(n,s,i,l){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,m=null,x=null,E=null,N=null,K=null,Q=null;for(Z in i){var W=i[Z];if(i.hasOwnProperty(Z)&&W!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":N=W;default:l.hasOwnProperty(Z)||$e(n,s,Z,null,l,W)}}for(var $ in l){var Z=l[$];if(W=i[$],l.hasOwnProperty($)&&(Z!=null||W!=null))switch($){case"type":m=Z;break;case"name":f=Z;break;case"checked":K=Z;break;case"defaultChecked":Q=Z;break;case"value":x=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(137,s));break;default:Z!==W&&$e(n,s,$,Z,l,W)}}Md(n,x,E,N,K,Q,m,f);return;case"select":Z=x=E=$=null;for(m in i)if(N=i[m],i.hasOwnProperty(m)&&N!=null)switch(m){case"value":break;case"multiple":Z=N;default:l.hasOwnProperty(m)||$e(n,s,m,null,l,N)}for(f in l)if(m=l[f],N=i[f],l.hasOwnProperty(f)&&(m!=null||N!=null))switch(f){case"value":$=m;break;case"defaultValue":E=m;break;case"multiple":x=m;default:m!==N&&$e(n,s,f,m,l,N)}s=E,i=x,l=Z,$!=null?Nr(n,!!i,$,!1):!!l!=!!i&&(s!=null?Nr(n,!!i,s,!0):Nr(n,!!i,i?[]:"",!1));return;case"textarea":Z=$=null;for(E in i)if(f=i[E],i.hasOwnProperty(E)&&f!=null&&!l.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:$e(n,s,E,null,l,f)}for(x in l)if(f=l[x],m=i[x],l.hasOwnProperty(x)&&(f!=null||m!=null))switch(x){case"value":$=f;break;case"defaultValue":Z=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(r(91));break;default:f!==m&&$e(n,s,x,f,l,m)}oy(n,$,Z);return;case"option":for(var fe in i)if($=i[fe],i.hasOwnProperty(fe)&&$!=null&&!l.hasOwnProperty(fe))switch(fe){case"selected":n.selected=!1;break;default:$e(n,s,fe,null,l,$)}for(N in l)if($=l[N],Z=i[N],l.hasOwnProperty(N)&&$!==Z&&($!=null||Z!=null))switch(N){case"selected":n.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:$e(n,s,N,$,l,Z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ve in i)$=i[ve],i.hasOwnProperty(ve)&&$!=null&&!l.hasOwnProperty(ve)&&$e(n,s,ve,null,l,$);for(K in l)if($=l[K],Z=i[K],l.hasOwnProperty(K)&&$!==Z&&($!=null||Z!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(r(137,s));break;default:$e(n,s,K,$,l,Z)}return;default:if(kd(s)){for(var Ze in i)$=i[Ze],i.hasOwnProperty(Ze)&&$!==void 0&&!l.hasOwnProperty(Ze)&&xh(n,s,Ze,void 0,l,$);for(Q in l)$=l[Q],Z=i[Q],!l.hasOwnProperty(Q)||$===Z||$===void 0&&Z===void 0||xh(n,s,Q,$,l,Z);return}}for(var H in i)$=i[H],i.hasOwnProperty(H)&&$!=null&&!l.hasOwnProperty(H)&&$e(n,s,H,null,l,$);for(W in l)$=l[W],Z=i[W],!l.hasOwnProperty(W)||$===Z||$==null&&Z==null||$e(n,s,W,$,l,Z)}function dx(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function gC(){if(typeof performance.getEntriesByType=="function"){for(var n=0,s=0,i=performance.getEntriesByType("resource"),l=0;l<i.length;l++){var f=i[l],m=f.transferSize,x=f.initiatorType,E=f.duration;if(m&&E&&dx(x)){for(x=0,E=f.responseEnd,l+=1;l<i.length;l++){var N=i[l],K=N.startTime;if(K>E)break;var Q=N.transferSize,W=N.initiatorType;Q&&dx(W)&&(N=N.responseEnd,x+=Q*(N<E?1:(E-K)/(N-K)))}if(--l,s+=8*(m+x)/(f.duration/1e3),n++,10<n)break}}if(0<n)return s/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var bh=null,wh=null;function Rc(n){return n.nodeType===9?n:n.ownerDocument}function fx(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function hx(n,s){if(n===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&s==="foreignObject"?0:n}function Sh(n,s){return n==="textarea"||n==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Eh=null;function yC(){var n=window.event;return n&&n.type==="popstate"?n===Eh?!1:(Eh=n,!0):(Eh=null,!1)}var px=typeof setTimeout=="function"?setTimeout:void 0,vC=typeof clearTimeout=="function"?clearTimeout:void 0,mx=typeof Promise=="function"?Promise:void 0,xC=typeof queueMicrotask=="function"?queueMicrotask:typeof mx<"u"?function(n){return mx.resolve(null).then(n).catch(bC)}:px;function bC(n){setTimeout(function(){throw n})}function ls(n){return n==="head"}function gx(n,s){var i=s,l=0;do{var f=i.nextSibling;if(n.removeChild(i),f&&f.nodeType===8)if(i=f.data,i==="/$"||i==="/&"){if(l===0){n.removeChild(f),ci(s);return}l--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")l++;else if(i==="html")Do(n.ownerDocument.documentElement);else if(i==="head"){i=n.ownerDocument.head,Do(i);for(var m=i.firstChild;m;){var x=m.nextSibling,E=m.nodeName;m[Wi]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&m.rel.toLowerCase()==="stylesheet"||i.removeChild(m),m=x}}else i==="body"&&Do(n.ownerDocument.body);i=f}while(i);ci(s)}function yx(n,s){var i=n;n=0;do{var l=i.nextSibling;if(i.nodeType===1?s?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(s?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),l&&l.nodeType===8)if(i=l.data,i==="/$"){if(n===0)break;n--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||n++;i=l}while(i)}function Th(n){var s=n.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var i=s;switch(s=s.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Th(i),Od(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}n.removeChild(i)}}function wC(n,s,i,l){for(;n.nodeType===1;){var f=i;if(n.nodeName.toLowerCase()!==s.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Wi])switch(s){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==f.rel||n.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||n.getAttribute("title")!==(f.title==null?null:f.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(f.src==null?null:f.src)||n.getAttribute("type")!==(f.type==null?null:f.type)||n.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(s==="input"&&n.type==="hidden"){var m=f.name==null?null:""+f.name;if(f.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=_n(n.nextSibling),n===null)break}return null}function SC(n,s,i){if(s==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!i||(n=_n(n.nextSibling),n===null))return null;return n}function vx(n,s){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=_n(n.nextSibling),n===null))return null;return n}function _h(n){return n.data==="$?"||n.data==="$~"}function Ah(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function EC(n,s){var i=n.ownerDocument;if(n.data==="$~")n._reactRetry=s;else if(n.data!=="$?"||i.readyState!=="loading")s();else{var l=function(){s(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),n._reactRetry=l}}function _n(n){for(;n!=null;n=n.nextSibling){var s=n.nodeType;if(s===1||s===3)break;if(s===8){if(s=n.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return n}var Ch=null;function xx(n){n=n.nextSibling;for(var s=0;n;){if(n.nodeType===8){var i=n.data;if(i==="/$"||i==="/&"){if(s===0)return _n(n.nextSibling);s--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||s++}n=n.nextSibling}return null}function bx(n){n=n.previousSibling;for(var s=0;n;){if(n.nodeType===8){var i=n.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(s===0)return n;s--}else i!=="/$"&&i!=="/&"||s++}n=n.previousSibling}return null}function wx(n,s,i){switch(s=Rc(i),n){case"html":if(n=s.documentElement,!n)throw Error(r(452));return n;case"head":if(n=s.head,!n)throw Error(r(453));return n;case"body":if(n=s.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}function Do(n){for(var s=n.attributes;s.length;)n.removeAttributeNode(s[0]);Od(n)}var An=new Map,Sx=new Set;function Dc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Na=D.d;D.d={f:TC,r:_C,D:AC,C:CC,L:OC,m:jC,X:NC,S:MC,M:kC};function TC(){var n=Na.f(),s=Ac();return n||s}function _C(n){var s=Or(n);s!==null&&s.tag===5&&s.type==="form"?Hv(s):Na.r(n)}var ii=typeof document>"u"?null:document;function Ex(n,s,i){var l=ii;if(l&&typeof s=="string"&&s){var f=vn(s);f='link[rel="'+n+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),Sx.has(f)||(Sx.add(f),n={rel:n,crossOrigin:i,href:s},l.querySelector(f)===null&&(s=l.createElement("link"),Nt(s,"link",n),wt(s),l.head.appendChild(s)))}}function AC(n){Na.D(n),Ex("dns-prefetch",n,null)}function CC(n,s){Na.C(n,s),Ex("preconnect",n,s)}function OC(n,s,i){Na.L(n,s,i);var l=ii;if(l&&n&&s){var f='link[rel="preload"][as="'+vn(s)+'"]';s==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+vn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+vn(i.imageSizes)+'"]')):f+='[href="'+vn(n)+'"]';var m=f;switch(s){case"style":m=oi(n);break;case"script":m=li(n)}An.has(m)||(n=y({rel:"preload",href:s==="image"&&i&&i.imageSrcSet?void 0:n,as:s},i),An.set(m,n),l.querySelector(f)!==null||s==="style"&&l.querySelector(Po(m))||s==="script"&&l.querySelector(Lo(m))||(s=l.createElement("link"),Nt(s,"link",n),wt(s),l.head.appendChild(s)))}}function jC(n,s){Na.m(n,s);var i=ii;if(i&&n){var l=s&&typeof s.as=="string"?s.as:"script",f='link[rel="modulepreload"][as="'+vn(l)+'"][href="'+vn(n)+'"]',m=f;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=li(n)}if(!An.has(m)&&(n=y({rel:"modulepreload",href:n},s),An.set(m,n),i.querySelector(f)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Lo(m)))return}l=i.createElement("link"),Nt(l,"link",n),wt(l),i.head.appendChild(l)}}}function MC(n,s,i){Na.S(n,s,i);var l=ii;if(l&&n){var f=jr(l).hoistableStyles,m=oi(n);s=s||"default";var x=f.get(m);if(!x){var E={loading:0,preload:null};if(x=l.querySelector(Po(m)))E.loading=5;else{n=y({rel:"stylesheet",href:n,"data-precedence":s},i),(i=An.get(m))&&Oh(n,i);var N=x=l.createElement("link");wt(N),Nt(N,"link",n),N._p=new Promise(function(K,Q){N.onload=K,N.onerror=Q}),N.addEventListener("load",function(){E.loading|=1}),N.addEventListener("error",function(){E.loading|=2}),E.loading|=4,Pc(x,s,l)}x={type:"stylesheet",instance:x,count:1,state:E},f.set(m,x)}}}function NC(n,s){Na.X(n,s);var i=ii;if(i&&n){var l=jr(i).hoistableScripts,f=li(n),m=l.get(f);m||(m=i.querySelector(Lo(f)),m||(n=y({src:n,async:!0},s),(s=An.get(f))&&jh(n,s),m=i.createElement("script"),wt(m),Nt(m,"link",n),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function kC(n,s){Na.M(n,s);var i=ii;if(i&&n){var l=jr(i).hoistableScripts,f=li(n),m=l.get(f);m||(m=i.querySelector(Lo(f)),m||(n=y({src:n,async:!0,type:"module"},s),(s=An.get(f))&&jh(n,s),m=i.createElement("script"),wt(m),Nt(m,"link",n),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},l.set(f,m))}}function Tx(n,s,i,l){var f=(f=me.current)?Dc(f):null;if(!f)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(s=oi(i.href),i=jr(f).hoistableStyles,l=i.get(s),l||(l={type:"style",instance:null,count:0,state:null},i.set(s,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){n=oi(i.href);var m=jr(f).hoistableStyles,x=m.get(n);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,x),(m=f.querySelector(Po(n)))&&!m._p&&(x.instance=m,x.state.loading=5),An.has(n)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},An.set(n,i),m||zC(f,n,i,x.state))),s&&l===null)throw Error(r(528,""));return x}if(s&&l!==null)throw Error(r(529,""));return null;case"script":return s=i.async,i=i.src,typeof i=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=li(i),i=jr(f).hoistableScripts,l=i.get(s),l||(l={type:"script",instance:null,count:0,state:null},i.set(s,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function oi(n){return'href="'+vn(n)+'"'}function Po(n){return'link[rel="stylesheet"]['+n+"]"}function _x(n){return y({},n,{"data-precedence":n.precedence,precedence:null})}function zC(n,s,i,l){n.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=n.createElement("link"),l.preload=s,s.addEventListener("load",function(){return l.loading|=1}),s.addEventListener("error",function(){return l.loading|=2}),Nt(s,"link",i),wt(s),n.head.appendChild(s))}function li(n){return'[src="'+vn(n)+'"]'}function Lo(n){return"script[async]"+n}function Ax(n,s,i){if(s.count++,s.instance===null)switch(s.type){case"style":var l=n.querySelector('style[data-href~="'+vn(i.href)+'"]');if(l)return s.instance=l,wt(l),l;var f=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),wt(l),Nt(l,"style",f),Pc(l,i.precedence,n),s.instance=l;case"stylesheet":f=oi(i.href);var m=n.querySelector(Po(f));if(m)return s.state.loading|=4,s.instance=m,wt(m),m;l=_x(i),(f=An.get(f))&&Oh(l,f),m=(n.ownerDocument||n).createElement("link"),wt(m);var x=m;return x._p=new Promise(function(E,N){x.onload=E,x.onerror=N}),Nt(m,"link",l),s.state.loading|=4,Pc(m,i.precedence,n),s.instance=m;case"script":return m=li(i.src),(f=n.querySelector(Lo(m)))?(s.instance=f,wt(f),f):(l=i,(f=An.get(m))&&(l=y({},i),jh(l,f)),n=n.ownerDocument||n,f=n.createElement("script"),wt(f),Nt(f,"link",l),n.head.appendChild(f),s.instance=f);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(l=s.instance,s.state.loading|=4,Pc(l,i.precedence,n));return s.instance}function Pc(n,s,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=l.length?l[l.length-1]:null,m=f,x=0;x<l.length;x++){var E=l[x];if(E.dataset.precedence===s)m=E;else if(m!==f)break}m?m.parentNode.insertBefore(n,m.nextSibling):(s=i.nodeType===9?i.head:i,s.insertBefore(n,s.firstChild))}function Oh(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.title==null&&(n.title=s.title)}function jh(n,s){n.crossOrigin==null&&(n.crossOrigin=s.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=s.referrerPolicy),n.integrity==null&&(n.integrity=s.integrity)}var Lc=null;function Cx(n,s,i){if(Lc===null){var l=new Map,f=Lc=new Map;f.set(i,l)}else f=Lc,l=f.get(i),l||(l=new Map,f.set(i,l));if(l.has(n))return l;for(l.set(n,null),i=i.getElementsByTagName(n),f=0;f<i.length;f++){var m=i[f];if(!(m[Wi]||m[Ct]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var x=m.getAttribute(s)||"";x=n+x;var E=l.get(x);E?E.push(m):l.set(x,[m])}}return l}function Ox(n,s,i){n=n.ownerDocument||n,n.head.insertBefore(i,s==="title"?n.querySelector("head > title"):null)}function RC(n,s,i){if(i===1||s.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return n=s.disabled,typeof s.precedence=="string"&&n==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function jx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function DC(n,s,i,l){if(i.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var f=oi(l.href),m=s.querySelector(Po(f));if(m){s=m._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(n.count++,n=Bc.bind(n),s.then(n,n)),i.state.loading|=4,i.instance=m,wt(m);return}m=s.ownerDocument||s,l=_x(l),(f=An.get(f))&&Oh(l,f),m=m.createElement("link"),wt(m);var x=m;x._p=new Promise(function(E,N){x.onload=E,x.onerror=N}),Nt(m,"link",l),i.instance=m}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(i,s),(s=i.state.preload)&&(i.state.loading&3)===0&&(n.count++,i=Bc.bind(n),s.addEventListener("load",i),s.addEventListener("error",i))}}var Mh=0;function PC(n,s){return n.stylesheets&&n.count===0&&Uc(n,n.stylesheets),0<n.count||0<n.imgCount?function(i){var l=setTimeout(function(){if(n.stylesheets&&Uc(n,n.stylesheets),n.unsuspend){var m=n.unsuspend;n.unsuspend=null,m()}},6e4+s);0<n.imgBytes&&Mh===0&&(Mh=62500*gC());var f=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Uc(n,n.stylesheets),n.unsuspend)){var m=n.unsuspend;n.unsuspend=null,m()}},(n.imgBytes>Mh?50:800)+s);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(l),clearTimeout(f)}}:null}function Bc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Uc(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Hc=null;function Uc(n,s){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Hc=new Map,s.forEach(LC,n),Hc=null,Bc.call(n))}function LC(n,s){if(!(s.state.loading&4)){var i=Hc.get(n);if(i)var l=i.get(null);else{i=new Map,Hc.set(n,i);for(var f=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<f.length;m++){var x=f[m];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(i.set(x.dataset.precedence,x),l=x)}l&&i.set(null,l)}f=s.instance,x=f.getAttribute("data-precedence"),m=i.get(x)||l,m===l&&i.set(null,f),i.set(x,f),this.count++,l=Bc.bind(this),f.addEventListener("load",l),f.addEventListener("error",l),m?m.parentNode.insertBefore(f,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(f,n.firstChild)),s.state.loading|=4}}var Bo={$$typeof:A,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function BC(n,s,i,l,f,m,x,E,N){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ka(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ka(0),this.hiddenUpdates=Ka(null),this.identifierPrefix=l,this.onUncaughtError=f,this.onCaughtError=m,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function Mx(n,s,i,l,f,m,x,E,N,K,Q,W){return n=new BC(n,s,i,x,N,K,Q,W,E),s=1,m===!0&&(s|=24),m=rn(3,null,null,s),n.current=m,m.stateNode=n,s=cf(),s.refCount++,n.pooledCache=s,s.refCount++,m.memoizedState={element:l,isDehydrated:i,cache:s},hf(m),n}function Nx(n){return n?(n=Hr,n):Hr}function kx(n,s,i,l,f,m){f=Nx(f),l.context===null?l.context=f:l.pendingContext=f,l=Xa(s),l.payload={element:i},m=m===void 0?null:m,m!==null&&(l.callback=m),i=Wa(n,l,s),i!==null&&(Jt(i,n,s),go(i,n,s))}function zx(n,s){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var i=n.retryLane;n.retryLane=i!==0&&i<s?i:s}}function Nh(n,s){zx(n,s),(n=n.alternate)&&zx(n,s)}function Rx(n){if(n.tag===13||n.tag===31){var s=Us(n,67108864);s!==null&&Jt(s,n,67108864),Nh(n,67108864)}}function Dx(n){if(n.tag===13||n.tag===31){var s=dn();s=_r(s);var i=Us(n,s);i!==null&&Jt(i,n,s),Nh(n,s)}}var Vc=!0;function HC(n,s,i,l){var f=O.T;O.T=null;var m=D.p;try{D.p=2,kh(n,s,i,l)}finally{D.p=m,O.T=f}}function UC(n,s,i,l){var f=O.T;O.T=null;var m=D.p;try{D.p=8,kh(n,s,i,l)}finally{D.p=m,O.T=f}}function kh(n,s,i,l){if(Vc){var f=zh(l);if(f===null)vh(n,s,l,qc,i),Lx(n,l);else if(qC(f,n,s,i,l))l.stopPropagation();else if(Lx(n,l),s&4&&-1<VC.indexOf(n)){for(;f!==null;){var m=Or(f);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var x=Qn(m.pendingLanes);if(x!==0){var E=m;for(E.pendingLanes|=2,E.entangledLanes|=2;x;){var N=1<<31-kt(x);E.entanglements[1]|=N,x&=~N}Jn(m),(Ue&6)===0&&(Tc=Ht()+500,ko(0))}}break;case 31:case 13:E=Us(m,2),E!==null&&Jt(E,m,2),Ac(),Nh(m,2)}if(m=zh(l),m===null&&vh(n,s,l,qc,i),m===f)break;f=m}f!==null&&l.stopPropagation()}else vh(n,s,l,null,i)}}function zh(n){return n=Rd(n),Rh(n)}var qc=null;function Rh(n){if(qc=null,n=Cr(n),n!==null){var s=c(n);if(s===null)n=null;else{var i=s.tag;if(i===13){if(n=u(s),n!==null)return n;n=null}else if(i===31){if(n=d(s),n!==null)return n;n=null}else if(i===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;n=null}else s!==n&&(n=null)}}return qc=n,null}function Px(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Td()){case Ns:return 2;case Rl:return 8;case ks:case Yi:return 32;case ha:return 268435456;default:return 32}default:return 32}}var Dh=!1,cs=null,us=null,ds=null,Ho=new Map,Uo=new Map,fs=[],VC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Lx(n,s){switch(n){case"focusin":case"focusout":cs=null;break;case"dragenter":case"dragleave":us=null;break;case"mouseover":case"mouseout":ds=null;break;case"pointerover":case"pointerout":Ho.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(s.pointerId)}}function Vo(n,s,i,l,f,m){return n===null||n.nativeEvent!==m?(n={blockedOn:s,domEventName:i,eventSystemFlags:l,nativeEvent:m,targetContainers:[f]},s!==null&&(s=Or(s),s!==null&&Rx(s)),n):(n.eventSystemFlags|=l,s=n.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),n)}function qC(n,s,i,l,f){switch(s){case"focusin":return cs=Vo(cs,n,s,i,l,f),!0;case"dragenter":return us=Vo(us,n,s,i,l,f),!0;case"mouseover":return ds=Vo(ds,n,s,i,l,f),!0;case"pointerover":var m=f.pointerId;return Ho.set(m,Vo(Ho.get(m)||null,n,s,i,l,f)),!0;case"gotpointercapture":return m=f.pointerId,Uo.set(m,Vo(Uo.get(m)||null,n,s,i,l,f)),!0}return!1}function Bx(n){var s=Cr(n.target);if(s!==null){var i=c(s);if(i!==null){if(s=i.tag,s===13){if(s=u(i),s!==null){n.blockedOn=s,Wg(n.priority,function(){Dx(i)});return}}else if(s===31){if(s=d(i),s!==null){n.blockedOn=s,Wg(n.priority,function(){Dx(i)});return}}else if(s===3&&i.stateNode.current.memoizedState.isDehydrated){n.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Kc(n){if(n.blockedOn!==null)return!1;for(var s=n.targetContainers;0<s.length;){var i=zh(n.nativeEvent);if(i===null){i=n.nativeEvent;var l=new i.constructor(i.type,i);zd=l,i.target.dispatchEvent(l),zd=null}else return s=Or(i),s!==null&&Rx(s),n.blockedOn=i,!1;s.shift()}return!0}function Hx(n,s,i){Kc(n)&&i.delete(s)}function KC(){Dh=!1,cs!==null&&Kc(cs)&&(cs=null),us!==null&&Kc(us)&&(us=null),ds!==null&&Kc(ds)&&(ds=null),Ho.forEach(Hx),Uo.forEach(Hx)}function Ic(n,s){n.blockedOn===s&&(n.blockedOn=null,Dh||(Dh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,KC)))}var $c=null;function Ux(n){$c!==n&&($c=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){$c===n&&($c=null);for(var s=0;s<n.length;s+=3){var i=n[s],l=n[s+1],f=n[s+2];if(typeof l!="function"){if(Rh(l||i)===null)continue;break}var m=Or(i);m!==null&&(n.splice(s,3),s-=3,zf(m,{pending:!0,data:f,method:i.method,action:l},l,f))}}))}function ci(n){function s(N){return Ic(N,n)}cs!==null&&Ic(cs,n),us!==null&&Ic(us,n),ds!==null&&Ic(ds,n),Ho.forEach(s),Uo.forEach(s);for(var i=0;i<fs.length;i++){var l=fs[i];l.blockedOn===n&&(l.blockedOn=null)}for(;0<fs.length&&(i=fs[0],i.blockedOn===null);)Bx(i),i.blockedOn===null&&fs.shift();if(i=(n.ownerDocument||n).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var f=i[l],m=i[l+1],x=f[Gt]||null;if(typeof m=="function")x||Ux(i);else if(x){var E=null;if(m&&m.hasAttribute("formAction")){if(f=m,x=m[Gt]||null)E=x.formAction;else if(Rh(f)!==null)continue}else E=x.action;typeof E=="function"?i[l+1]=E:(i.splice(l,3),l-=3),Ux(i)}}}function Vx(){function n(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function s(){f!==null&&(f(),f=null),l||setTimeout(i,20)}function i(){if(!l&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,f=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(i,100),function(){l=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),f!==null&&(f(),f=null)}}}function Ph(n){this._internalRoot=n}Zc.prototype.render=Ph.prototype.render=function(n){var s=this._internalRoot;if(s===null)throw Error(r(409));var i=s.current,l=dn();kx(i,l,n,s,null,null)},Zc.prototype.unmount=Ph.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var s=n.containerInfo;kx(n.current,2,null,n,null,null),Ac(),s[Ar]=null}};function Zc(n){this._internalRoot=n}Zc.prototype.unstable_scheduleHydration=function(n){if(n){var s=Ad();n={blockedOn:null,target:n,priority:s};for(var i=0;i<fs.length&&s!==0&&s<fs[i].priority;i++);fs.splice(i,0,n),i===0&&Bx(n)}};var qx=t.version;if(qx!=="19.2.1")throw Error(r(527,qx,"19.2.1"));D.findDOMNode=function(n){var s=n._reactInternals;if(s===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=p(s),n=n!==null?v(n):null,n=n===null?null:n.stateNode,n};var IC={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gc.isDisabled&&Gc.supportsFiber)try{zs=Gc.inject(IC),Ut=Gc}catch{}}return Io.createRoot=function(n,s){if(!o(n))throw Error(r(299));var i=!1,l="",f=Qv,m=Yv,x=Xv;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(l=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(m=s.onCaughtError),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),s=Mx(n,1,!1,null,null,i,l,null,f,m,x,Vx),n[Ar]=s.current,yh(n),new Ph(s)},Io.hydrateRoot=function(n,s,i){if(!o(n))throw Error(r(299));var l=!1,f="",m=Qv,x=Yv,E=Xv,N=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(x=i.onCaughtError),i.onRecoverableError!==void 0&&(E=i.onRecoverableError),i.formState!==void 0&&(N=i.formState)),s=Mx(n,1,!0,s,i??null,l,f,N,m,x,E,Vx),s.context=Nx(null),i=s.current,l=dn(),l=_r(l),f=Xa(l),f.callback=null,Wa(i,f,l),i=l,s.current.lanes=i,et(s,i),Jn(s),n[Ar]=s.current,yh(n),new Zc(s)},Io.version="19.2.1",Io}var pb;function r5(){if(pb)return Kh.exports;pb=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Kh.exports=s5(),Kh.exports}var i5=r5(),Gh,mb;function o5(){if(mb)return Gh;mb=1;var e=typeof Element<"u",t=typeof Map=="function",a=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(c,u){if(c===u)return!0;if(c&&u&&typeof c=="object"&&typeof u=="object"){if(c.constructor!==u.constructor)return!1;var d,h,p;if(Array.isArray(c)){if(d=c.length,d!=u.length)return!1;for(h=d;h--!==0;)if(!o(c[h],u[h]))return!1;return!0}var v;if(t&&c instanceof Map&&u instanceof Map){if(c.size!==u.size)return!1;for(v=c.entries();!(h=v.next()).done;)if(!u.has(h.value[0]))return!1;for(v=c.entries();!(h=v.next()).done;)if(!o(h.value[1],u.get(h.value[0])))return!1;return!0}if(a&&c instanceof Set&&u instanceof Set){if(c.size!==u.size)return!1;for(v=c.entries();!(h=v.next()).done;)if(!u.has(h.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(c)&&ArrayBuffer.isView(u)){if(d=c.length,d!=u.length)return!1;for(h=d;h--!==0;)if(c[h]!==u[h])return!1;return!0}if(c.constructor===RegExp)return c.source===u.source&&c.flags===u.flags;if(c.valueOf!==Object.prototype.valueOf&&typeof c.valueOf=="function"&&typeof u.valueOf=="function")return c.valueOf()===u.valueOf();if(c.toString!==Object.prototype.toString&&typeof c.toString=="function"&&typeof u.toString=="function")return c.toString()===u.toString();if(p=Object.keys(c),d=p.length,d!==Object.keys(u).length)return!1;for(h=d;h--!==0;)if(!Object.prototype.hasOwnProperty.call(u,p[h]))return!1;if(e&&c instanceof Element)return!1;for(h=d;h--!==0;)if(!((p[h]==="_owner"||p[h]==="__v"||p[h]==="__o")&&c.$$typeof)&&!o(c[p[h]],u[p[h]]))return!1;return!0}return c!==c&&u!==u}return Gh=function(u,d){try{return o(u,d)}catch(h){if((h.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw h}},Gh}var l5=o5();const c5=Sl(l5);var Fh,gb;function u5(){if(gb)return Fh;gb=1;var e=function(t,a,r,o,c,u,d,h){if(!t){var p;if(a===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var v=[r,o,c,u,d,h],y=0;p=new Error(a.replace(/%s/g,function(){return v[y++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}};return Fh=e,Fh}var d5=u5();const yb=Sl(d5);var Qh,vb;function f5(){return vb||(vb=1,Qh=function(t,a,r,o){var c=r?r.call(o,t,a):void 0;if(c!==void 0)return!!c;if(t===a)return!0;if(typeof t!="object"||!t||typeof a!="object"||!a)return!1;var u=Object.keys(t),d=Object.keys(a);if(u.length!==d.length)return!1;for(var h=Object.prototype.hasOwnProperty.bind(a),p=0;p<u.length;p++){var v=u[p];if(!h(v))return!1;var y=t[v],b=a[v];if(c=r?r.call(o,y,b,v):void 0,c===!1||c===void 0&&y!==b)return!1}return!0}),Qh}var h5=f5();const p5=Sl(h5);var HS=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(HS||{}),Yh={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},xb=Object.values(HS),Um={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},m5=Object.entries(Um).reduce((e,[t,a])=>(e[a]=t,e),{}),qn="data-rh",_i={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Ai=(e,t)=>{for(let a=e.length-1;a>=0;a-=1){const r=e[a];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},g5=e=>{let t=Ai(e,"title");const a=Ai(e,_i.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),a&&t)return a.replace(/%s/g,()=>t);const r=Ai(e,_i.DEFAULT_TITLE);return t||r||void 0},y5=e=>Ai(e,_i.ON_CHANGE_CLIENT_STATE)||(()=>{}),Xh=(e,t)=>t.filter(a=>typeof a[e]<"u").map(a=>a[e]).reduce((a,r)=>({...a,...r}),{}),v5=(e,t)=>t.filter(a=>typeof a.base<"u").map(a=>a.base).reverse().reduce((a,r)=>{if(!a.length){const o=Object.keys(r);for(let c=0;c<o.length;c+=1){const d=o[c].toLowerCase();if(e.indexOf(d)!==-1&&r[d])return a.concat(r)}}return a},[]),x5=e=>console&&typeof console.warn=="function"&&console.warn(e),$o=(e,t,a)=>{const r={};return a.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&x5(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,c)=>{const u={};c.filter(h=>{let p;const v=Object.keys(h);for(let b=0;b<v.length;b+=1){const w=v[b],T=w.toLowerCase();t.indexOf(T)!==-1&&!(p==="rel"&&h[p].toLowerCase()==="canonical")&&!(T==="rel"&&h[T].toLowerCase()==="stylesheet")&&(p=T),t.indexOf(w)!==-1&&(w==="innerHTML"||w==="cssText"||w==="itemprop")&&(p=w)}if(!p||!h[p])return!1;const y=h[p].toLowerCase();return r[p]||(r[p]={}),u[p]||(u[p]={}),r[p][y]?!1:(u[p][y]=!0,!0)}).reverse().forEach(h=>o.push(h));const d=Object.keys(u);for(let h=0;h<d.length;h+=1){const p=d[h],v={...r[p],...u[p]};r[p]=v}return o},[]).reverse()},b5=(e,t)=>{if(Array.isArray(e)&&e.length){for(let a=0;a<e.length;a+=1)if(e[a][t])return!0}return!1},w5=e=>({baseTag:v5(["href"],e),bodyAttributes:Xh("bodyAttributes",e),defer:Ai(e,_i.DEFER),encode:Ai(e,_i.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Xh("htmlAttributes",e),linkTags:$o("link",["rel","href"],e),metaTags:$o("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:$o("noscript",["innerHTML"],e),onChangeClientState:y5(e),scriptTags:$o("script",["src","innerHTML"],e),styleTags:$o("style",["cssText"],e),title:g5(e),titleAttributes:Xh("titleAttributes",e),prioritizeSeoTags:b5(e,_i.PRIORITIZE_SEO_TAGS)}),US=e=>Array.isArray(e)?e.join(""):e,S5=(e,t)=>{const a=Object.keys(e);for(let r=0;r<a.length;r+=1)if(t[a[r]]&&t[a[r]].includes(e[a[r]]))return!0;return!1},Wh=(e,t)=>Array.isArray(e)?e.reduce((a,r)=>(S5(r,t)?a.priority.push(r):a.default.push(r),a),{priority:[],default:[]}):{default:e,priority:[]},bb=(e,t)=>({...e,[t]:void 0}),E5=["noscript","script","style"],Dp=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),VS=e=>Object.keys(e).reduce((t,a)=>{const r=typeof e[a]<"u"?`${a}="${e[a]}"`:`${a}`;return t?`${t} ${r}`:r},""),T5=(e,t,a,r)=>{const o=VS(a),c=US(t);return o?`<${e} ${qn}="true" ${o}>${Dp(c,r)}</${e}>`:`<${e} ${qn}="true">${Dp(c,r)}</${e}>`},_5=(e,t,a=!0)=>t.reduce((r,o)=>{const c=o,u=Object.keys(c).filter(p=>!(p==="innerHTML"||p==="cssText")).reduce((p,v)=>{const y=typeof c[v]>"u"?v:`${v}="${Dp(c[v],a)}"`;return p?`${p} ${y}`:y},""),d=c.innerHTML||c.cssText||"",h=E5.indexOf(e)===-1;return`${r}<${e} ${qn}="true" ${u}${h?"/>":`>${d}</${e}>`}`},""),qS=(e,t={})=>Object.keys(e).reduce((a,r)=>{const o=Um[r];return a[o||r]=e[r],a},t),A5=(e,t,a)=>{const r={key:t,[qn]:!0},o=qS(a,r);return[se.createElement("title",o,t)]},gu=(e,t)=>t.map((a,r)=>{const o={key:r,[qn]:!0};return Object.keys(a).forEach(c=>{const d=Um[c]||c;if(d==="innerHTML"||d==="cssText"){const h=a.innerHTML||a.cssText;o.dangerouslySetInnerHTML={__html:h}}else o[d]=a[c]}),se.createElement(e,o)}),Mn=(e,t,a=!0)=>{switch(e){case"title":return{toComponent:()=>A5(e,t.title,t.titleAttributes),toString:()=>T5(e,t.title,t.titleAttributes,a)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>qS(t),toString:()=>VS(t)};default:return{toComponent:()=>gu(e,t),toString:()=>_5(e,t,a)}}},C5=({metaTags:e,linkTags:t,scriptTags:a,encode:r})=>{const o=Wh(e,Yh.meta),c=Wh(t,Yh.link),u=Wh(a,Yh.script);return{priorityMethods:{toComponent:()=>[...gu("meta",o.priority),...gu("link",c.priority),...gu("script",u.priority)],toString:()=>`${Mn("meta",o.priority,r)} ${Mn("link",c.priority,r)} ${Mn("script",u.priority,r)}`},metaTags:o.default,linkTags:c.default,scriptTags:u.default}},O5=e=>{const{baseTag:t,bodyAttributes:a,encode:r=!0,htmlAttributes:o,noscriptTags:c,styleTags:u,title:d="",titleAttributes:h,prioritizeSeoTags:p}=e;let{linkTags:v,metaTags:y,scriptTags:b}=e,w={toComponent:()=>{},toString:()=>""};return p&&({priorityMethods:w,linkTags:v,metaTags:y,scriptTags:b}=C5(e)),{priority:w,base:Mn("base",t,r),bodyAttributes:Mn("bodyAttributes",a,r),htmlAttributes:Mn("htmlAttributes",o,r),link:Mn("link",v,r),meta:Mn("meta",y,r),noscript:Mn("noscript",c,r),script:Mn("script",b,r),style:Mn("style",u,r),title:Mn("title",{title:d,titleAttributes:h},r)}},Pp=O5,Wc=[],KS=!!(typeof window<"u"&&window.document&&window.document.createElement),Lp=class{instances=[];canUseDOM=KS;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Wc:this.instances,add:e=>{(this.canUseDOM?Wc:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Wc:this.instances).indexOf(e);(this.canUseDOM?Wc:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Pp({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},j5={},IS=se.createContext(j5),$S=class ZS extends S.Component{static canUseDOM=KS;helmetData;constructor(t){super(t),this.helmetData=new Lp(this.props.context||{},ZS.canUseDOM)}render(){return se.createElement(IS.Provider,{value:this.helmetData.value},this.props.children)}},di=(e,t)=>{const a=document.head||document.querySelector("head"),r=a.querySelectorAll(`${e}[${qn}]`),o=[].slice.call(r),c=[];let u;return t&&t.length&&t.forEach(d=>{const h=document.createElement(e);for(const p in d)if(Object.prototype.hasOwnProperty.call(d,p))if(p==="innerHTML")h.innerHTML=d.innerHTML;else if(p==="cssText")h.styleSheet?h.styleSheet.cssText=d.cssText:h.appendChild(document.createTextNode(d.cssText));else{const v=p,y=typeof d[v]>"u"?"":d[v];h.setAttribute(p,y)}h.setAttribute(qn,"true"),o.some((p,v)=>(u=v,h.isEqualNode(p)))?o.splice(u,1):c.push(h)}),o.forEach(d=>d.parentNode?.removeChild(d)),c.forEach(d=>a.appendChild(d)),{oldTags:o,newTags:c}},Bp=(e,t)=>{const a=document.getElementsByTagName(e)[0];if(!a)return;const r=a.getAttribute(qn),o=r?r.split(","):[],c=[...o],u=Object.keys(t);for(const d of u){const h=t[d]||"";a.getAttribute(d)!==h&&a.setAttribute(d,h),o.indexOf(d)===-1&&o.push(d);const p=c.indexOf(d);p!==-1&&c.splice(p,1)}for(let d=c.length-1;d>=0;d-=1)a.removeAttribute(c[d]);o.length===c.length?a.removeAttribute(qn):a.getAttribute(qn)!==u.join(",")&&a.setAttribute(qn,u.join(","))},M5=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=US(e)),Bp("title",t)},wb=(e,t)=>{const{baseTag:a,bodyAttributes:r,htmlAttributes:o,linkTags:c,metaTags:u,noscriptTags:d,onChangeClientState:h,scriptTags:p,styleTags:v,title:y,titleAttributes:b}=e;Bp("body",r),Bp("html",o),M5(y,b);const w={baseTag:di("base",a),linkTags:di("link",c),metaTags:di("meta",u),noscriptTags:di("noscript",d),scriptTags:di("script",p),styleTags:di("style",v)},T={},_={};Object.keys(w).forEach(k=>{const{newTags:M,oldTags:L}=w[k];M.length&&(T[k]=M),L.length&&(_[k]=w[k].oldTags)}),t&&t(),h(e,T,_)},Zo=null,N5=e=>{Zo&&cancelAnimationFrame(Zo),e.defer?Zo=requestAnimationFrame(()=>{wb(e,()=>{Zo=null})}):(wb(e),Zo=null)},k5=N5,Sb=class extends S.Component{rendered=!1;shouldComponentUpdate(e){return!p5(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let a=null;const r=w5(e.get().map(o=>{const c={...o.props};return delete c.context,c}));$S.canUseDOM?k5(r):Pp&&(a=Pp(r)),t(a)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},z5=class extends S.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!c5(bb(this.props,"helmetData"),bb(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,a,r){return{...t,[e.type]:[...t[e.type]||[],{...a,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,a,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...a}};case"body":return{...t,bodyAttributes:{...a}};case"html":return{...t,htmlAttributes:{...a}};default:return{...t,[e.type]:{...a}}}}mapArrayTypeChildrenToProps(e,t){let a={...t};return Object.keys(e).forEach(r=>{a={...a,[r]:e[r]}}),a}warnOnInvalidChildren(e,t){return yb(xb.some(a=>e.type===a),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${xb.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),yb(!t||typeof t=="string"||Array.isArray(t)&&!t.some(a=>typeof a!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let a={};return se.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...c}=r.props,u=Object.keys(c).reduce((h,p)=>(h[m5[p]||p]=c[p],h),{});let{type:d}=r;switch(typeof d=="symbol"?d=d.toString():this.warnOnInvalidChildren(r,o),d){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":a=this.flattenArrayTypeChildren(r,a,u,o);break;default:t=this.mapObjectTypeChildren(r,t,u,o);break}}),this.mapArrayTypeChildrenToProps(a,t)}render(){const{children:e,...t}=this.props;let a={...t},{helmetData:r}=t;if(e&&(a=this.mapChildrenToProps(e,a)),r&&!(r instanceof Lp)){const o=r;r=new Lp(o.context,!0),delete a.helmetData}return r?se.createElement(Sb,{...a,context:r.value}):se.createElement(IS.Consumer,null,o=>se.createElement(Sb,{...a,context:o}))}},R5=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,a){this.keyToValue.set(t,a),this.valueToKey.set(a,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),GS=(function(){function e(t){this.generateIdentifier=t,this.kv=new R5}return e.prototype.register=function(t,a){this.kv.getByValue(t)||(a||(a=this.generateIdentifier(t)),this.kv.set(a,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),D5=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(r[c]=o[c])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),P5=(function(e){D5(t,e);function t(){var a=e.call(this,function(r){return r.name})||this;return a.classToAllowedProps=new Map,a}return t.prototype.register=function(a,r){typeof r=="object"?(r.allowProps&&this.classToAllowedProps.set(a,r.allowProps),e.prototype.register.call(this,a,r.identifier)):e.prototype.register.call(this,a,r)},t.prototype.getAllowedProps=function(a){return this.classToAllowedProps.get(a)},t})(GS),L5=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)c.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(u)throw u.error}}return c};function B5(e){if("values"in Object)return Object.values(e);var t=[];for(var a in e)e.hasOwnProperty(a)&&t.push(e[a]);return t}function H5(e,t){var a=B5(e);if("find"in a)return a.find(t);for(var r=a,o=0;o<r.length;o++){var c=r[o];if(t(c))return c}}function Ni(e,t){Object.entries(e).forEach(function(a){var r=L5(a,2),o=r[0],c=r[1];return t(c,o)})}function yu(e,t){return e.indexOf(t)!==-1}function Eb(e,t){for(var a=0;a<e.length;a++){var r=e[a];if(t(r))return r}}var U5=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return H5(this.transfomers,function(a){return a.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),V5=function(e){return Object.prototype.toString.call(e).slice(8,-1)},FS=function(e){return typeof e>"u"},q5=function(e){return e===null},ll=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},Hp=function(e){return ll(e)&&Object.keys(e).length===0},Ss=function(e){return Array.isArray(e)},K5=function(e){return typeof e=="string"},I5=function(e){return typeof e=="number"&&!isNaN(e)},$5=function(e){return typeof e=="boolean"},Z5=function(e){return e instanceof RegExp},cl=function(e){return e instanceof Map},ul=function(e){return e instanceof Set},QS=function(e){return V5(e)==="Symbol"},G5=function(e){return e instanceof Date&&!isNaN(e.valueOf())},F5=function(e){return e instanceof Error},Tb=function(e){return typeof e=="number"&&isNaN(e)},Q5=function(e){return $5(e)||q5(e)||FS(e)||I5(e)||K5(e)||QS(e)},Y5=function(e){return typeof e=="bigint"},X5=function(e){return e===1/0||e===-1/0},W5=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},J5=function(e){return e instanceof URL},YS=function(e){return e.replace(/\./g,"\\.")},Jh=function(e){return e.map(String).map(YS).join(".")},Jo=function(e){for(var t=[],a="",r=0;r<e.length;r++){var o=e.charAt(r),c=o==="\\"&&e.charAt(r+1)===".";if(c){a+=".",r++;continue}var u=o===".";if(u){t.push(a),a="";continue}a+=o}var d=a;return t.push(d),t},Up=function(){return Up=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Up.apply(this,arguments)},Vp=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)c.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(u)throw u.error}}return c},qp=function(e,t){for(var a=0,r=t.length,o=e.length;a<r;a++,o++)e[o]=t[a];return e};function ea(e,t,a,r){return{isApplicable:e,annotation:t,transform:a,untransform:r}}var XS=[ea(FS,"undefined",function(){return null},function(){}),ea(Y5,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),ea(G5,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),ea(F5,"Error",function(e,t){var a={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(r){a[r]=e[r]}),a},function(e,t){var a=new Error(e.message);return a.name=e.name,a.stack=e.stack,t.allowedErrorProps.forEach(function(r){a[r]=e[r]}),a}),ea(Z5,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),a=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,a)}),ea(ul,"set",function(e){return qp([],Vp(e.values()))},function(e){return new Set(e)}),ea(cl,"map",function(e){return qp([],Vp(e.entries()))},function(e){return new Map(e)}),ea(function(e){return Tb(e)||X5(e)},"number",function(e){return Tb(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),ea(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),ea(J5,"URL",function(e){return e.toString()},function(e){return new URL(e)})];function td(e,t,a,r){return{isApplicable:e,annotation:t,transform:a,untransform:r}}var WS=td(function(e,t){if(QS(e)){var a=!!t.symbolRegistry.getIdentifier(e);return a}return!1},function(e,t){var a=t.symbolRegistry.getIdentifier(e);return["symbol",a]},function(e){return e.description},function(e,t,a){var r=a.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),eM=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),JS=td(W5,function(e){return["typed-array",e.constructor.name]},function(e){return qp([],Vp(e))},function(e,t){var a=eM[t[1]];if(!a)throw new Error("Trying to deserialize unknown typed array");return new a(e)});function e2(e,t){if(e?.constructor){var a=!!t.classRegistry.getIdentifier(e.constructor);return a}return!1}var t2=td(e2,function(e,t){var a=t.classRegistry.getIdentifier(e.constructor);return["class",a]},function(e,t){var a=t.classRegistry.getAllowedProps(e.constructor);if(!a)return Up({},e);var r={};return a.forEach(function(o){r[o]=e[o]}),r},function(e,t,a){var r=a.classRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(r.prototype),e)}),n2=td(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var a=t.customTransformerRegistry.findApplicable(e);return["custom",a.name]},function(e,t){var a=t.customTransformerRegistry.findApplicable(e);return a.serialize(e)},function(e,t,a){var r=a.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),tM=[t2,WS,n2,JS],_b=function(e,t){var a=Eb(tM,function(o){return o.isApplicable(e,t)});if(a)return{value:a.transform(e,t),type:a.annotation(e,t)};var r=Eb(XS,function(o){return o.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation}},a2={};XS.forEach(function(e){a2[e.annotation]=e});var nM=function(e,t,a){if(Ss(t))switch(t[0]){case"symbol":return WS.untransform(e,t,a);case"class":return t2.untransform(e,t,a);case"custom":return n2.untransform(e,t,a);case"typed-array":return JS.untransform(e,t,a);default:throw new Error("Unknown transformation: "+t)}else{var r=a2[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,a)}},gi=function(e,t){for(var a=e.keys();t>0;)a.next(),t--;return a.next().value};function s2(e){if(yu(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(yu(e,"prototype"))throw new Error("prototype is not allowed as a property");if(yu(e,"constructor"))throw new Error("constructor is not allowed as a property")}var aM=function(e,t){s2(t);for(var a=0;a<t.length;a++){var r=t[a];if(ul(e))e=gi(e,+r);else if(cl(e)){var o=+r,c=+t[++a]==0?"key":"value",u=gi(e,o);switch(c){case"key":e=u;break;case"value":e=e.get(u);break}}else e=e[r]}return e},Kp=function(e,t,a){if(s2(t),t.length===0)return a(e);for(var r=e,o=0;o<t.length-1;o++){var c=t[o];if(Ss(r)){var u=+c;r=r[u]}else if(ll(r))r=r[c];else if(ul(r)){var d=+c;r=gi(r,d)}else if(cl(r)){var h=o===t.length-2;if(h)break;var d=+c,p=+t[++o]==0?"key":"value",v=gi(r,d);switch(p){case"key":r=v;break;case"value":r=r.get(v);break}}}var y=t[t.length-1];if(Ss(r)?r[+y]=a(r[+y]):ll(r)&&(r[y]=a(r[y])),ul(r)){var b=gi(r,+y),w=a(b);b!==w&&(r.delete(b),r.add(w))}if(cl(r)){var d=+t[t.length-2],T=gi(r,d),p=+y==0?"key":"value";switch(p){case"key":{var _=a(T);r.set(_,r.get(T)),_!==T&&r.delete(T);break}case"value":{r.set(T,a(r.get(T)));break}}}return e},Da=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)c.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(u)throw u.error}}return c},xs=function(e,t){for(var a=0,r=t.length,o=e.length;a<r;a++,o++)e[o]=t[a];return e};function Ip(e,t,a){if(a===void 0&&(a=[]),!!e){if(!Ss(e)){Ni(e,function(u,d){return Ip(u,t,xs(xs([],Da(a)),Da(Jo(d))))});return}var r=Da(e,2),o=r[0],c=r[1];c&&Ni(c,function(u,d){Ip(u,t,xs(xs([],Da(a)),Da(Jo(d))))}),t(o,a)}}function sM(e,t,a){return Ip(t,function(r,o){e=Kp(e,o,function(c){return nM(c,r,a)})}),e}function rM(e,t){function a(u,d){var h=aM(e,Jo(d));u.map(Jo).forEach(function(p){e=Kp(e,p,function(){return h})})}if(Ss(t)){var r=Da(t,2),o=r[0],c=r[1];o.forEach(function(u){e=Kp(e,Jo(u),function(){return e})}),c&&Ni(c,a)}else Ni(t,a);return e}var iM=function(e,t){return ll(e)||Ss(e)||cl(e)||ul(e)||e2(e,t)};function oM(e,t,a){var r=a.get(e);r?r.push(t):a.set(e,[t])}function lM(e,t){var a={},r=void 0;return e.forEach(function(o){if(!(o.length<=1)){t||(o=o.map(function(h){return h.map(String)}).sort(function(h,p){return h.length-p.length}));var c=Da(o),u=c[0],d=c.slice(1);u.length===0?r=d.map(Jh):a[Jh(u)]=d.map(Jh)}}),r?Hp(a)?[r]:[r,a]:Hp(a)?void 0:a}var r2=function(e,t,a,r,o,c,u){var d;o===void 0&&(o=[]),c===void 0&&(c=[]),u===void 0&&(u=new Map);var h=Q5(e);if(!h){oM(e,o,t);var p=u.get(e);if(p)return r?{transformedValue:null}:p}if(!iM(e,a)){var v=_b(e,a),y=v?{transformedValue:v.value,annotations:[v.type]}:{transformedValue:e};return h||u.set(e,y),y}if(yu(c,e))return{transformedValue:null};var b=_b(e,a),w=(d=b?.value)!==null&&d!==void 0?d:e,T=Ss(w)?[]:{},_={};Ni(w,function(M,L){var A=r2(M,t,a,r,xs(xs([],Da(o)),[L]),xs(xs([],Da(c)),[e]),u);T[L]=A.transformedValue,Ss(A.annotations)?_[L]=A.annotations:ll(A.annotations)&&Ni(A.annotations,function(U,B){_[YS(L)+"."+B]=U})});var k=Hp(_)?{transformedValue:T,annotations:b?[b.type]:void 0}:{transformedValue:T,annotations:b?[b.type,_]:_};return h||u.set(e,k),k};function i2(e){return Object.prototype.toString.call(e).slice(8,-1)}function Ab(e){return i2(e)==="Array"}function cM(e){if(i2(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function uM(e,t,a,r,o){const c={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";c==="enumerable"&&(e[t]=a),o&&c==="nonenumerable"&&Object.defineProperty(e,t,{value:a,enumerable:!1,writable:!0,configurable:!0})}function $p(e,t={}){if(Ab(e))return e.map(o=>$p(o,t));if(!cM(e))return e;const a=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...a,...r].reduce((o,c)=>{if(Ab(t.props)&&!t.props.includes(c))return o;const u=e[c],d=$p(u,t);return uM(o,c,d,e,t.nonenumerable),o},{})}var nr=function(){return nr=Object.assign||function(e){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},nr.apply(this,arguments)},dM=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),o,c=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)c.push(o.value)}catch(d){u={error:d}}finally{try{o&&!o.done&&(a=r.return)&&a.call(r)}finally{if(u)throw u.error}}return c},fM=function(e,t){for(var a=0,r=t.length,o=e.length;a<r;a++,o++)e[o]=t[a];return e},Ua=(function(){function e(t){var a=t===void 0?{}:t,r=a.dedupe,o=r===void 0?!1:r;this.classRegistry=new P5,this.symbolRegistry=new GS(function(c){var u;return(u=c.description)!==null&&u!==void 0?u:""}),this.customTransformerRegistry=new U5,this.allowedErrorProps=[],this.dedupe=o}return e.prototype.serialize=function(t){var a=new Map,r=r2(t,a,this,this.dedupe),o={json:r.transformedValue};r.annotations&&(o.meta=nr(nr({},o.meta),{values:r.annotations}));var c=lM(a,this.dedupe);return c&&(o.meta=nr(nr({},o.meta),{referentialEqualities:c})),o},e.prototype.deserialize=function(t){var a=t.json,r=t.meta,o=$p(a);return r?.values&&(o=sM(o,r.values,this)),r?.referentialEqualities&&(o=rM(o,r.referentialEqualities)),o},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,a){this.classRegistry.register(t,a)},e.prototype.registerSymbol=function(t,a){this.symbolRegistry.register(t,a)},e.prototype.registerCustom=function(t,a){this.customTransformerRegistry.register(nr({name:a},t))},e.prototype.allowErrorProps=function(){for(var t,a=[],r=0;r<arguments.length;r++)a[r]=arguments[r];(t=this.allowedErrorProps).push.apply(t,fM([],dM(a)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();Ua.serialize;Ua.deserialize;Ua.stringify;Ua.parse;Ua.registerClass;Ua.registerCustom;Ua.registerSymbol;Ua.allowErrorProps;const hM="modulepreload",pM=function(e){return"/"+e},Cb={},je=function(t,a,r){let o=Promise.resolve();if(a&&a.length>0){let h=function(p){return Promise.all(p.map(v=>Promise.resolve(v).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const u=document.querySelector("meta[property=csp-nonce]"),d=u?.nonce||u?.getAttribute("nonce");o=h(a.map(p=>{if(p=pM(p),p in Cb)return;Cb[p]=!0;const v=p.endsWith(".css"),y=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const b=document.createElement("link");if(b.rel=v?"stylesheet":hM,v||(b.as="script"),b.crossOrigin="",b.href=p,d&&b.setAttribute("nonce",d),document.head.appendChild(b),v)return new Promise((w,T)=>{b.addEventListener("load",w),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${p}`)))})}))}function c(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&c(d.reason);return t().catch(c)})};var mM=(e,t,a,r,o,c,u,d)=>{let h=document.documentElement,p=["light","dark"];function v(w){(Array.isArray(e)?e:[e]).forEach(T=>{let _=T==="class",k=_&&c?o.map(M=>c[M]||M):o;_?(h.classList.remove(...k),h.classList.add(c&&c[w]?c[w]:w)):h.setAttribute(T,w)}),y(w)}function y(w){d&&p.includes(w)&&(h.style.colorScheme=w)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)v(r);else try{let w=localStorage.getItem(t)||a,T=u&&w==="system"?b():w;v(T)}catch{}},gM=S.createContext(void 0),yM={setTheme:e=>{},themes:[]},vM=()=>{var e;return(e=S.useContext(gM))!=null?e:yM};S.memo(({forcedTheme:e,storageKey:t,attribute:a,enableSystem:r,enableColorScheme:o,defaultTheme:c,value:u,themes:d,nonce:h,scriptProps:p})=>{let v=JSON.stringify([a,t,c,e,d,u,r,o]).slice(1,-1);return S.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${mM.toString()})(${v})`}})});var Vm=BS();const xM=Sl(Vm);function bM(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",t.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}const wM=e=>{switch(e){case"success":return TM;case"info":return AM;case"warning":return _M;case"error":return CM;default:return null}},SM=Array(12).fill(0),EM=({visible:e,className:t})=>se.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},se.createElement("div",{className:"sonner-spinner"},SM.map((a,r)=>se.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),TM=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),_M=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),AM=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),CM=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},se.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),OM=se.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},se.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),se.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),jM=()=>{const[e,t]=se.useState(document.hidden);return se.useEffect(()=>{const a=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",a),()=>window.removeEventListener("visibilitychange",a)},[]),e};let Zp=1;class MM{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const a=this.subscribers.indexOf(t);this.subscribers.splice(a,1)}),this.publish=t=>{this.subscribers.forEach(a=>a(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var a;const{message:r,...o}=t,c=typeof t?.id=="number"||((a=t.id)==null?void 0:a.length)>0?t.id:Zp++,u=this.toasts.find(h=>h.id===c),d=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),u?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...t,id:c,title:r}),{...h,...t,id:c,dismissible:d,title:r}):h):this.addToast({title:r,...o,dismissible:d,id:c}),c},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(a=>a({id:t,dismiss:!0})))):this.toasts.forEach(a=>{this.subscribers.forEach(r=>r({id:a.id,dismiss:!0}))}),t),this.message=(t,a)=>this.create({...a,message:t}),this.error=(t,a)=>this.create({...a,message:t,type:"error"}),this.success=(t,a)=>this.create({...a,type:"success",message:t}),this.info=(t,a)=>this.create({...a,type:"info",message:t}),this.warning=(t,a)=>this.create({...a,type:"warning",message:t}),this.loading=(t,a)=>this.create({...a,type:"loading",message:t}),this.promise=(t,a)=>{if(!a)return;let r;a.loading!==void 0&&(r=this.create({...a,promise:t,type:"loading",message:a.loading,description:typeof a.description!="function"?a.description:void 0}));const o=Promise.resolve(t instanceof Function?t():t);let c=r!==void 0,u;const d=o.then(async p=>{if(u=["resolve",p],se.isValidElement(p))c=!1,this.create({id:r,type:"default",message:p});else if(kM(p)&&!p.ok){c=!1;const y=typeof a.error=="function"?await a.error(`HTTP error! status: ${p.status}`):a.error,b=typeof a.description=="function"?await a.description(`HTTP error! status: ${p.status}`):a.description,T=typeof y=="object"&&!se.isValidElement(y)?y:{message:y};this.create({id:r,type:"error",description:b,...T})}else if(p instanceof Error){c=!1;const y=typeof a.error=="function"?await a.error(p):a.error,b=typeof a.description=="function"?await a.description(p):a.description,T=typeof y=="object"&&!se.isValidElement(y)?y:{message:y};this.create({id:r,type:"error",description:b,...T})}else if(a.success!==void 0){c=!1;const y=typeof a.success=="function"?await a.success(p):a.success,b=typeof a.description=="function"?await a.description(p):a.description,T=typeof y=="object"&&!se.isValidElement(y)?y:{message:y};this.create({id:r,type:"success",description:b,...T})}}).catch(async p=>{if(u=["reject",p],a.error!==void 0){c=!1;const v=typeof a.error=="function"?await a.error(p):a.error,y=typeof a.description=="function"?await a.description(p):a.description,w=typeof v=="object"&&!se.isValidElement(v)?v:{message:v};this.create({id:r,type:"error",description:y,...w})}}).finally(()=>{c&&(this.dismiss(r),r=void 0),a.finally==null||a.finally.call(a)}),h=()=>new Promise((p,v)=>d.then(()=>u[0]==="reject"?v(u[1]):p(u[1])).catch(v));return typeof r!="string"&&typeof r!="number"?{unwrap:h}:Object.assign(r,{unwrap:h})},this.custom=(t,a)=>{const r=a?.id||Zp++;return this.create({jsx:t(r),id:r,...a}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const en=new MM,NM=(e,t)=>{const a=t?.id||Zp++;return en.addToast({title:e,...t,id:a}),a},kM=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",zM=NM,RM=()=>en.toasts,DM=()=>en.getActiveToasts(),jH=Object.assign(zM,{success:en.success,info:en.info,warning:en.warning,error:en.error,custom:en.custom,message:en.message,promise:en.promise,dismiss:en.dismiss,loading:en.loading},{getHistory:RM,getToasts:DM});bM("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function Jc(e){return e.label!==void 0}const PM=3,LM="24px",BM="16px",Ob=4e3,HM=356,UM=14,VM=45,qM=200;function ta(...e){return e.filter(Boolean).join(" ")}function KM(e){const[t,a]=e.split("-"),r=[];return t&&r.push(t),a&&r.push(a),r}const IM=e=>{var t,a,r,o,c,u,d,h,p;const{invert:v,toast:y,unstyled:b,interacting:w,setHeights:T,visibleToasts:_,heights:k,index:M,toasts:L,expanded:A,removeToast:U,defaultRichColors:B,closeButton:V,style:C,cancelButtonStyle:R,actionButtonStyle:X,className:J="",descriptionClassName:re="",duration:te,position:le,gap:ie,expandByDefault:ue,classNames:O,icons:D,closeButtonAriaLabel:P="Close toast"}=e,[ne,oe]=se.useState(null),[j,G]=se.useState(null),[I,F]=se.useState(!1),[ae,me]=se.useState(!1),[de,be]=se.useState(!1),[De,_t]=se.useState(!1),[Lt,At]=se.useState(!1),[fa,Rn]=se.useState(0),[Zi,Sr]=se.useState(0),Ms=se.useRef(y.duration||te||Ob),Gi=se.useRef(null),an=se.useRef(null),Fi=M===0,Qi=M+1<=_,Bt=y.type,Va=y.dismissible!==!1,Ht=y.className||"",Td=y.descriptionClassName||"",Ns=se.useMemo(()=>k.findIndex(we=>we.toastId===y.id)||0,[k,y.id]),Rl=se.useMemo(()=>{var we;return(we=y.closeButton)!=null?we:V},[y.closeButton,V]),ks=se.useMemo(()=>y.duration||te||Ob,[y.duration,te]),Yi=se.useRef(0),ha=se.useRef(0),Dl=se.useRef(0),qa=se.useRef(null),[zs,Ut]=le.split("-"),Dn=se.useMemo(()=>k.reduce((we,Xe,bt)=>bt>=Ns?we:we+Xe.height,0),[k,Ns]),kt=jM(),_d=y.invert||v,Xi=Bt==="loading";ha.current=se.useMemo(()=>Ns*ie+Dn,[Ns,Dn]),se.useEffect(()=>{Ms.current=ks},[ks]),se.useEffect(()=>{F(!0)},[]),se.useEffect(()=>{const we=an.current;if(we){const Xe=we.getBoundingClientRect().height;return Sr(Xe),T(bt=>[{toastId:y.id,height:Xe,position:y.position},...bt]),()=>T(bt=>bt.filter(zt=>zt.toastId!==y.id))}},[T,y.id]),se.useLayoutEffect(()=>{if(!I)return;const we=an.current,Xe=we.style.height;we.style.height="auto";const bt=we.getBoundingClientRect().height;we.style.height=Xe,Sr(bt),T(zt=>zt.find(et=>et.toastId===y.id)?zt.map(et=>et.toastId===y.id?{...et,height:bt}:et):[{toastId:y.id,height:bt,position:y.position},...zt])},[I,y.title,y.description,T,y.id,y.jsx,y.action,y.cancel]);const Fn=se.useCallback(()=>{me(!0),Rn(ha.current),T(we=>we.filter(Xe=>Xe.toastId!==y.id)),setTimeout(()=>{U(y)},qM)},[y,U,T,ha]);se.useEffect(()=>{if(y.promise&&Bt==="loading"||y.duration===1/0||y.type==="loading")return;let we;return A||w||kt?(()=>{if(Dl.current<Yi.current){const zt=new Date().getTime()-Yi.current;Ms.current=Ms.current-zt}Dl.current=new Date().getTime()})():(()=>{Ms.current!==1/0&&(Yi.current=new Date().getTime(),we=setTimeout(()=>{y.onAutoClose==null||y.onAutoClose.call(y,y),Fn()},Ms.current))})(),()=>clearTimeout(we)},[A,w,y,Bt,kt,Fn]),se.useEffect(()=>{y.delete&&(Fn(),y.onDismiss==null||y.onDismiss.call(y,y))},[Fn,y.delete]);function Er(){var we;if(D?.loading){var Xe;return se.createElement("div",{className:ta(O?.loader,y==null||(Xe=y.classNames)==null?void 0:Xe.loader,"sonner-loader"),"data-visible":Bt==="loading"},D.loading)}return se.createElement(EM,{className:ta(O?.loader,y==null||(we=y.classNames)==null?void 0:we.loader),visible:Bt==="loading"})}const Tr=y.icon||D?.[Bt]||wM(Bt);var Rs,Qn;return se.createElement("li",{tabIndex:0,ref:an,className:ta(J,Ht,O?.toast,y==null||(t=y.classNames)==null?void 0:t.toast,O?.default,O?.[Bt],y==null||(a=y.classNames)==null?void 0:a[Bt]),"data-sonner-toast":"","data-rich-colors":(Rs=y.richColors)!=null?Rs:B,"data-styled":!(y.jsx||y.unstyled||b),"data-mounted":I,"data-promise":!!y.promise,"data-swiped":Lt,"data-removed":ae,"data-visible":Qi,"data-y-position":zs,"data-x-position":Ut,"data-index":M,"data-front":Fi,"data-swiping":de,"data-dismissible":Va,"data-type":Bt,"data-invert":_d,"data-swipe-out":De,"data-swipe-direction":j,"data-expanded":!!(A||ue&&I),"data-testid":y.testId,style:{"--index":M,"--toasts-before":M,"--z-index":L.length-M,"--offset":`${ae?fa:ha.current}px`,"--initial-height":ue?"auto":`${Zi}px`,...C,...y.style},onDragEnd:()=>{be(!1),oe(null),qa.current=null},onPointerDown:we=>{we.button!==2&&(Xi||!Va||(Gi.current=new Date,Rn(ha.current),we.target.setPointerCapture(we.pointerId),we.target.tagName!=="BUTTON"&&(be(!0),qa.current={x:we.clientX,y:we.clientY})))},onPointerUp:()=>{var we,Xe,bt;if(De||!Va)return;qa.current=null;const zt=Number(((we=an.current)==null?void 0:we.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ka=Number(((Xe=an.current)==null?void 0:Xe.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),et=new Date().getTime()-((bt=Gi.current)==null?void 0:bt.getTime()),It=ne==="x"?zt:Ka,Ds=Math.abs(It)/et;if(Math.abs(It)>=VM||Ds>.11){Rn(ha.current),y.onDismiss==null||y.onDismiss.call(y,y),G(ne==="x"?zt>0?"right":"left":Ka>0?"down":"up"),Fn(),_t(!0);return}else{var $t,Zt;($t=an.current)==null||$t.style.setProperty("--swipe-amount-x","0px"),(Zt=an.current)==null||Zt.style.setProperty("--swipe-amount-y","0px")}At(!1),be(!1),oe(null)},onPointerMove:we=>{var Xe,bt,zt;if(!qa.current||!Va||((Xe=window.getSelection())==null?void 0:Xe.toString().length)>0)return;const et=we.clientY-qa.current.y,It=we.clientX-qa.current.x;var Ds;const $t=(Ds=e.swipeDirections)!=null?Ds:KM(le);!ne&&(Math.abs(It)>1||Math.abs(et)>1)&&oe(Math.abs(It)>Math.abs(et)?"x":"y");let Zt={x:0,y:0};const _r=Pn=>1/(1.5+Math.abs(Pn)/20);if(ne==="y"){if($t.includes("top")||$t.includes("bottom"))if($t.includes("top")&&et<0||$t.includes("bottom")&&et>0)Zt.y=et;else{const Pn=et*_r(et);Zt.y=Math.abs(Pn)<Math.abs(et)?Pn:et}}else if(ne==="x"&&($t.includes("left")||$t.includes("right")))if($t.includes("left")&&It<0||$t.includes("right")&&It>0)Zt.x=It;else{const Pn=It*_r(It);Zt.x=Math.abs(Pn)<Math.abs(It)?Pn:It}(Math.abs(Zt.x)>0||Math.abs(Zt.y)>0)&&At(!0),(bt=an.current)==null||bt.style.setProperty("--swipe-amount-x",`${Zt.x}px`),(zt=an.current)==null||zt.style.setProperty("--swipe-amount-y",`${Zt.y}px`)}},Rl&&!y.jsx&&Bt!=="loading"?se.createElement("button",{"aria-label":P,"data-disabled":Xi,"data-close-button":!0,onClick:Xi||!Va?()=>{}:()=>{Fn(),y.onDismiss==null||y.onDismiss.call(y,y)},className:ta(O?.closeButton,y==null||(r=y.classNames)==null?void 0:r.closeButton)},(Qn=D?.close)!=null?Qn:OM):null,(Bt||y.icon||y.promise)&&y.icon!==null&&(D?.[Bt]!==null||y.icon)?se.createElement("div",{"data-icon":"",className:ta(O?.icon,y==null||(o=y.classNames)==null?void 0:o.icon)},y.promise||y.type==="loading"&&!y.icon?y.icon||Er():null,y.type!=="loading"?Tr:null):null,se.createElement("div",{"data-content":"",className:ta(O?.content,y==null||(c=y.classNames)==null?void 0:c.content)},se.createElement("div",{"data-title":"",className:ta(O?.title,y==null||(u=y.classNames)==null?void 0:u.title)},y.jsx?y.jsx:typeof y.title=="function"?y.title():y.title),y.description?se.createElement("div",{"data-description":"",className:ta(re,Td,O?.description,y==null||(d=y.classNames)==null?void 0:d.description)},typeof y.description=="function"?y.description():y.description):null),se.isValidElement(y.cancel)?y.cancel:y.cancel&&Jc(y.cancel)?se.createElement("button",{"data-button":!0,"data-cancel":!0,style:y.cancelButtonStyle||R,onClick:we=>{Jc(y.cancel)&&Va&&(y.cancel.onClick==null||y.cancel.onClick.call(y.cancel,we),Fn())},className:ta(O?.cancelButton,y==null||(h=y.classNames)==null?void 0:h.cancelButton)},y.cancel.label):null,se.isValidElement(y.action)?y.action:y.action&&Jc(y.action)?se.createElement("button",{"data-button":!0,"data-action":!0,style:y.actionButtonStyle||X,onClick:we=>{Jc(y.action)&&(y.action.onClick==null||y.action.onClick.call(y.action,we),!we.defaultPrevented&&Fn())},className:ta(O?.actionButton,y==null||(p=y.classNames)==null?void 0:p.actionButton)},y.action.label):null)};function jb(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function $M(e,t){const a={};return[e,t].forEach((r,o)=>{const c=o===1,u=c?"--mobile-offset":"--offset",d=c?BM:LM;function h(p){["top","right","bottom","left"].forEach(v=>{a[`${u}-${v}`]=typeof p=="number"?`${p}px`:p})}typeof r=="number"||typeof r=="string"?h(r):typeof r=="object"?["top","right","bottom","left"].forEach(p=>{r[p]===void 0?a[`${u}-${p}`]=d:a[`${u}-${p}`]=typeof r[p]=="number"?`${r[p]}px`:r[p]}):h(d)}),a}const ZM=se.forwardRef(function(t,a){const{id:r,invert:o,position:c="bottom-right",hotkey:u=["altKey","KeyT"],expand:d,closeButton:h,className:p,offset:v,mobileOffset:y,theme:b="light",richColors:w,duration:T,style:_,visibleToasts:k=PM,toastOptions:M,dir:L=jb(),gap:A=UM,icons:U,containerAriaLabel:B="Notifications"}=t,[V,C]=se.useState([]),R=se.useMemo(()=>r?V.filter(I=>I.toasterId===r):V.filter(I=>!I.toasterId),[V,r]),X=se.useMemo(()=>Array.from(new Set([c].concat(R.filter(I=>I.position).map(I=>I.position)))),[R,c]),[J,re]=se.useState([]),[te,le]=se.useState(!1),[ie,ue]=se.useState(!1),[O,D]=se.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=se.useRef(null),ne=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),oe=se.useRef(null),j=se.useRef(!1),G=se.useCallback(I=>{C(F=>{var ae;return(ae=F.find(me=>me.id===I.id))!=null&&ae.delete||en.dismiss(I.id),F.filter(({id:me})=>me!==I.id)})},[]);return se.useEffect(()=>en.subscribe(I=>{if(I.dismiss){requestAnimationFrame(()=>{C(F=>F.map(ae=>ae.id===I.id?{...ae,delete:!0}:ae))});return}setTimeout(()=>{xM.flushSync(()=>{C(F=>{const ae=F.findIndex(me=>me.id===I.id);return ae!==-1?[...F.slice(0,ae),{...F[ae],...I},...F.slice(ae+1)]:[I,...F]})})})}),[V]),se.useEffect(()=>{if(b!=="system"){D(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?D("dark"):D("light")),typeof window>"u")return;const I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:F})=>{D(F?"dark":"light")})}catch{I.addListener(({matches:ae})=>{try{D(ae?"dark":"light")}catch(me){console.error(me)}})}},[b]),se.useEffect(()=>{V.length<=1&&le(!1)},[V]),se.useEffect(()=>{const I=F=>{var ae;if(u.every(be=>F[be]||F.code===be)){var de;le(!0),(de=P.current)==null||de.focus()}F.code==="Escape"&&(document.activeElement===P.current||(ae=P.current)!=null&&ae.contains(document.activeElement))&&le(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[u]),se.useEffect(()=>{if(P.current)return()=>{oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null,j.current=!1)}},[P.current]),se.createElement("section",{ref:a,"aria-label":`${B} ${ne}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},X.map((I,F)=>{var ae;const[me,de]=I.split("-");return R.length?se.createElement("ol",{key:I,dir:L==="auto"?jb():L,tabIndex:-1,ref:P,className:p,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":me,"data-x-position":de,style:{"--front-toast-height":`${((ae=J[0])==null?void 0:ae.height)||0}px`,"--width":`${HM}px`,"--gap":`${A}px`,..._,...$M(v,y)},onBlur:be=>{j.current&&!be.currentTarget.contains(be.relatedTarget)&&(j.current=!1,oe.current&&(oe.current.focus({preventScroll:!0}),oe.current=null))},onFocus:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||j.current||(j.current=!0,oe.current=be.relatedTarget)},onMouseEnter:()=>le(!0),onMouseMove:()=>le(!0),onMouseLeave:()=>{ie||le(!1)},onDragEnd:()=>le(!1),onPointerDown:be=>{be.target instanceof HTMLElement&&be.target.dataset.dismissible==="false"||ue(!0)},onPointerUp:()=>ue(!1)},R.filter(be=>!be.position&&F===0||be.position===I).map((be,De)=>{var _t,Lt;return se.createElement(IM,{key:be.id,icons:U,index:De,toast:be,defaultRichColors:w,duration:(_t=M?.duration)!=null?_t:T,className:M?.className,descriptionClassName:M?.descriptionClassName,invert:o,visibleToasts:k,closeButton:(Lt=M?.closeButton)!=null?Lt:h,interacting:ie,position:I,style:M?.style,unstyled:M?.unstyled,classNames:M?.classNames,cancelButtonStyle:M?.cancelButtonStyle,actionButtonStyle:M?.actionButtonStyle,closeButtonAriaLabel:M?.closeButtonAriaLabel,removeToast:G,toasts:R.filter(At=>At.position==be.position),heights:J.filter(At=>At.position==be.position),setHeights:re,expandByDefault:d,gap:A,expanded:te,swipeDirections:t.swipeDirections})})):null}))}),GM=({...e})=>{const{theme:t="system"}=vM();return g.jsx(ZM,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function za(e,t,{checkForDefaultPrevented:a=!0}={}){return function(o){if(e?.(o),a===!1||!o.defaultPrevented)return t?.(o)}}function Mb(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function o2(...e){return t=>{let a=!1;const r=e.map(o=>{const c=Mb(o,t);return!a&&typeof c=="function"&&(a=!0),c});if(a)return()=>{for(let o=0;o<r.length;o++){const c=r[o];typeof c=="function"?c():Mb(e[o],null)}}}}function vr(...e){return S.useCallback(o2(...e),e)}function l2(e,t=[]){let a=[];function r(c,u){const d=S.createContext(u),h=a.length;a=[...a,u];const p=y=>{const{scope:b,children:w,...T}=y,_=b?.[e]?.[h]||d,k=S.useMemo(()=>T,Object.values(T));return g.jsx(_.Provider,{value:k,children:w})};p.displayName=c+"Provider";function v(y,b){const w=b?.[e]?.[h]||d,T=S.useContext(w);if(T)return T;if(u!==void 0)return u;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[p,v]}const o=()=>{const c=a.map(u=>S.createContext(u));return function(d){const h=d?.[e]||c;return S.useMemo(()=>({[`__scope${e}`]:{...d,[e]:h}}),[d,h])}};return o.scopeName=e,[r,FM(o,...t)]}function FM(...e){const t=e[0];if(e.length===1)return t;const a=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const u=r.reduce((d,{useScope:h,scopeName:p})=>{const y=h(c)[`__scope${p}`];return{...d,...y}},{});return S.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return a.scopeName=t.scopeName,a}function QM(e){const t=YM(e),a=S.forwardRef((r,o)=>{const{children:c,...u}=r,d=S.Children.toArray(c),h=d.find(WM);if(h){const p=h.props.children,v=d.map(y=>y===h?S.Children.count(p)>1?S.Children.only(null):S.isValidElement(p)?p.props.children:null:y);return g.jsx(t,{...u,ref:o,children:S.isValidElement(p)?S.cloneElement(p,void 0,v):null})}return g.jsx(t,{...u,ref:o,children:c})});return a.displayName=`${e}.Slot`,a}function YM(e){const t=S.forwardRef((a,r)=>{const{children:o,...c}=a;if(S.isValidElement(o)){const u=eN(o),d=JM(c,o.props);return o.type!==S.Fragment&&(d.ref=r?o2(r,u):u),S.cloneElement(o,d)}return S.Children.count(o)>1?S.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var c2=Symbol("radix.slottable");function XM(e){const t=({children:a})=>g.jsx(g.Fragment,{children:a});return t.displayName=`${e}.Slottable`,t.__radixId=c2,t}function WM(e){return S.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===c2}function JM(e,t){const a={...t};for(const r in t){const o=e[r],c=t[r];/^on[A-Z]/.test(r)?o&&c?a[r]=(...d)=>{const h=c(...d);return o(...d),h}:o&&(a[r]=o):r==="style"?a[r]={...o,...c}:r==="className"&&(a[r]=[o,c].filter(Boolean).join(" "))}return{...e,...a}}function eN(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var tN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xr=tN.reduce((e,t)=>{const a=QM(`Primitive.${t}`),r=S.forwardRef((o,c)=>{const{asChild:u,...d}=o,h=u?a:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),g.jsx(h,{...d,ref:c})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function nN(e,t){e&&Vm.flushSync(()=>e.dispatchEvent(t))}function nd(e){const t=S.useRef(e);return S.useEffect(()=>{t.current=e}),S.useMemo(()=>(...a)=>t.current?.(...a),[])}function aN(e,t=globalThis?.document){const a=nd(e);S.useEffect(()=>{const r=o=>{o.key==="Escape"&&a(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[a,t])}var sN="DismissableLayer",Gp="dismissableLayer.update",rN="dismissableLayer.pointerDownOutside",iN="dismissableLayer.focusOutside",Nb,u2=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),d2=S.forwardRef((e,t)=>{const{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:u,onDismiss:d,...h}=e,p=S.useContext(u2),[v,y]=S.useState(null),b=v?.ownerDocument??globalThis?.document,[,w]=S.useState({}),T=vr(t,C=>y(C)),_=Array.from(p.layers),[k]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),M=_.indexOf(k),L=v?_.indexOf(v):-1,A=p.layersWithOutsidePointerEventsDisabled.size>0,U=L>=M,B=cN(C=>{const R=C.target,X=[...p.branches].some(J=>J.contains(R));!U||X||(o?.(C),u?.(C),C.defaultPrevented||d?.())},b),V=uN(C=>{const R=C.target;[...p.branches].some(J=>J.contains(R))||(c?.(C),u?.(C),C.defaultPrevented||d?.())},b);return aN(C=>{L===p.layers.size-1&&(r?.(C),!C.defaultPrevented&&d&&(C.preventDefault(),d()))},b),S.useEffect(()=>{if(v)return a&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Nb=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(v)),p.layers.add(v),kb(),()=>{a&&p.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Nb)}},[v,b,a,p]),S.useEffect(()=>()=>{v&&(p.layers.delete(v),p.layersWithOutsidePointerEventsDisabled.delete(v),kb())},[v,p]),S.useEffect(()=>{const C=()=>w({});return document.addEventListener(Gp,C),()=>document.removeEventListener(Gp,C)},[]),g.jsx(xr.div,{...h,ref:T,style:{pointerEvents:A?U?"auto":"none":void 0,...e.style},onFocusCapture:za(e.onFocusCapture,V.onFocusCapture),onBlurCapture:za(e.onBlurCapture,V.onBlurCapture),onPointerDownCapture:za(e.onPointerDownCapture,B.onPointerDownCapture)})});d2.displayName=sN;var oN="DismissableLayerBranch",lN=S.forwardRef((e,t)=>{const a=S.useContext(u2),r=S.useRef(null),o=vr(t,r);return S.useEffect(()=>{const c=r.current;if(c)return a.branches.add(c),()=>{a.branches.delete(c)}},[a.branches]),g.jsx(xr.div,{...e,ref:o})});lN.displayName=oN;function cN(e,t=globalThis?.document){const a=nd(e),r=S.useRef(!1),o=S.useRef(()=>{});return S.useEffect(()=>{const c=d=>{if(d.target&&!r.current){let h=function(){f2(rN,a,p,{discrete:!0})};const p={originalEvent:d};d.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=h,t.addEventListener("click",o.current,{once:!0})):h()}else t.removeEventListener("click",o.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",c),t.removeEventListener("click",o.current)}},[t,a]),{onPointerDownCapture:()=>r.current=!0}}function uN(e,t=globalThis?.document){const a=nd(e),r=S.useRef(!1);return S.useEffect(()=>{const o=c=>{c.target&&!r.current&&f2(iN,a,{originalEvent:c},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,a]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function kb(){const e=new CustomEvent(Gp);document.dispatchEvent(e)}function f2(e,t,a,{discrete:r}){const o=a.originalEvent.target,c=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:a});t&&o.addEventListener(e,t,{once:!0}),r?nN(o,c):o.dispatchEvent(c)}var dl=globalThis?.document?S.useLayoutEffect:()=>{};const dN=["top","right","bottom","left"],Es=Math.min,pn=Math.max,Nu=Math.round,eu=Math.floor,sa=e=>({x:e,y:e}),fN={left:"right",right:"left",bottom:"top",top:"bottom"},hN={start:"end",end:"start"};function Fp(e,t,a){return pn(e,Es(t,a))}function La(e,t){return typeof e=="function"?e(t):e}function Ba(e){return e.split("-")[0]}function Pi(e){return e.split("-")[1]}function qm(e){return e==="x"?"y":"x"}function Km(e){return e==="y"?"height":"width"}const pN=new Set(["top","bottom"]);function aa(e){return pN.has(Ba(e))?"y":"x"}function Im(e){return qm(aa(e))}function mN(e,t,a){a===void 0&&(a=!1);const r=Pi(e),o=Im(e),c=Km(o);let u=o==="x"?r===(a?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(u=ku(u)),[u,ku(u)]}function gN(e){const t=ku(e);return[Qp(e),t,Qp(t)]}function Qp(e){return e.replace(/start|end/g,t=>hN[t])}const zb=["left","right"],Rb=["right","left"],yN=["top","bottom"],vN=["bottom","top"];function xN(e,t,a){switch(e){case"top":case"bottom":return a?t?Rb:zb:t?zb:Rb;case"left":case"right":return t?yN:vN;default:return[]}}function bN(e,t,a,r){const o=Pi(e);let c=xN(Ba(e),a==="start",r);return o&&(c=c.map(u=>u+"-"+o),t&&(c=c.concat(c.map(Qp)))),c}function ku(e){return e.replace(/left|right|bottom|top/g,t=>fN[t])}function wN(e){return{top:0,right:0,bottom:0,left:0,...e}}function h2(e){return typeof e!="number"?wN(e):{top:e,right:e,bottom:e,left:e}}function zu(e){const{x:t,y:a,width:r,height:o}=e;return{width:r,height:o,top:a,left:t,right:t+r,bottom:a+o,x:t,y:a}}function Db(e,t,a){let{reference:r,floating:o}=e;const c=aa(t),u=Im(t),d=Km(u),h=Ba(t),p=c==="y",v=r.x+r.width/2-o.width/2,y=r.y+r.height/2-o.height/2,b=r[d]/2-o[d]/2;let w;switch(h){case"top":w={x:v,y:r.y-o.height};break;case"bottom":w={x:v,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y};break;case"left":w={x:r.x-o.width,y};break;default:w={x:r.x,y:r.y}}switch(Pi(t)){case"start":w[u]-=b*(a&&p?-1:1);break;case"end":w[u]+=b*(a&&p?-1:1);break}return w}const SN=async(e,t,a)=>{const{placement:r="bottom",strategy:o="absolute",middleware:c=[],platform:u}=a,d=c.filter(Boolean),h=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:o}),{x:v,y}=Db(p,r,h),b=r,w={},T=0;for(let _=0;_<d.length;_++){const{name:k,fn:M}=d[_],{x:L,y:A,data:U,reset:B}=await M({x:v,y,initialPlacement:r,placement:b,strategy:o,middlewareData:w,rects:p,platform:u,elements:{reference:e,floating:t}});v=L??v,y=A??y,w={...w,[k]:{...w[k],...U}},B&&T<=50&&(T++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(p=B.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:o}):B.rects),{x:v,y}=Db(p,b,h)),_=-1)}return{x:v,y,placement:b,strategy:o,middlewareData:w}};async function fl(e,t){var a;t===void 0&&(t={});const{x:r,y:o,platform:c,rects:u,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:y="floating",altBoundary:b=!1,padding:w=0}=La(t,e),T=h2(w),k=d[b?y==="floating"?"reference":"floating":y],M=zu(await c.getClippingRect({element:(a=await(c.isElement==null?void 0:c.isElement(k)))==null||a?k:k.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),L=y==="floating"?{x:r,y:o,width:u.floating.width,height:u.floating.height}:u.reference,A=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),U=await(c.isElement==null?void 0:c.isElement(A))?await(c.getScale==null?void 0:c.getScale(A))||{x:1,y:1}:{x:1,y:1},B=zu(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:L,offsetParent:A,strategy:h}):L);return{top:(M.top-B.top+T.top)/U.y,bottom:(B.bottom-M.bottom+T.bottom)/U.y,left:(M.left-B.left+T.left)/U.x,right:(B.right-M.right+T.right)/U.x}}const EN=e=>({name:"arrow",options:e,async fn(t){const{x:a,y:r,placement:o,rects:c,platform:u,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=La(e,t)||{};if(p==null)return{};const y=h2(v),b={x:a,y:r},w=Im(o),T=Km(w),_=await u.getDimensions(p),k=w==="y",M=k?"top":"left",L=k?"bottom":"right",A=k?"clientHeight":"clientWidth",U=c.reference[T]+c.reference[w]-b[w]-c.floating[T],B=b[w]-c.reference[w],V=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let C=V?V[A]:0;(!C||!await(u.isElement==null?void 0:u.isElement(V)))&&(C=d.floating[A]||c.floating[T]);const R=U/2-B/2,X=C/2-_[T]/2-1,J=Es(y[M],X),re=Es(y[L],X),te=J,le=C-_[T]-re,ie=C/2-_[T]/2+R,ue=Fp(te,ie,le),O=!h.arrow&&Pi(o)!=null&&ie!==ue&&c.reference[T]/2-(ie<te?J:re)-_[T]/2<0,D=O?ie<te?ie-te:ie-le:0;return{[w]:b[w]+D,data:{[w]:ue,centerOffset:ie-ue-D,...O&&{alignmentOffset:D}},reset:O}}}),TN=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,r;const{placement:o,middlewareData:c,rects:u,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:y=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:_=!0,...k}=La(e,t);if((a=c.arrow)!=null&&a.alignmentOffset)return{};const M=Ba(o),L=aa(d),A=Ba(d)===d,U=await(h.isRTL==null?void 0:h.isRTL(p.floating)),B=b||(A||!_?[ku(d)]:gN(d)),V=T!=="none";!b&&V&&B.push(...bN(d,_,T,U));const C=[d,...B],R=await fl(t,k),X=[];let J=((r=c.flip)==null?void 0:r.overflows)||[];if(v&&X.push(R[M]),y){const ie=mN(o,u,U);X.push(R[ie[0]],R[ie[1]])}if(J=[...J,{placement:o,overflows:X}],!X.every(ie=>ie<=0)){var re,te;const ie=(((re=c.flip)==null?void 0:re.index)||0)+1,ue=C[ie];if(ue&&(!(y==="alignment"?L!==aa(ue):!1)||J.every(P=>aa(P.placement)===L?P.overflows[0]>0:!0)))return{data:{index:ie,overflows:J},reset:{placement:ue}};let O=(te=J.filter(D=>D.overflows[0]<=0).sort((D,P)=>D.overflows[1]-P.overflows[1])[0])==null?void 0:te.placement;if(!O)switch(w){case"bestFit":{var le;const D=(le=J.filter(P=>{if(V){const ne=aa(P.placement);return ne===L||ne==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(ne=>ne>0).reduce((ne,oe)=>ne+oe,0)]).sort((P,ne)=>P[1]-ne[1])[0])==null?void 0:le[0];D&&(O=D);break}case"initialPlacement":O=d;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function Pb(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Lb(e){return dN.some(t=>e[t]>=0)}const _N=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:a}=t,{strategy:r="referenceHidden",...o}=La(e,t);switch(r){case"referenceHidden":{const c=await fl(t,{...o,elementContext:"reference"}),u=Pb(c,a.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Lb(u)}}}case"escaped":{const c=await fl(t,{...o,altBoundary:!0}),u=Pb(c,a.floating);return{data:{escapedOffsets:u,escaped:Lb(u)}}}default:return{}}}}},p2=new Set(["left","top"]);async function AN(e,t){const{placement:a,platform:r,elements:o}=e,c=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=Ba(a),d=Pi(a),h=aa(a)==="y",p=p2.has(u)?-1:1,v=c&&h?-1:1,y=La(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:T}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return d&&typeof T=="number"&&(w=d==="end"?T*-1:T),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const CN=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var a,r;const{x:o,y:c,placement:u,middlewareData:d}=t,h=await AN(t,e);return u===((a=d.offset)==null?void 0:a.placement)&&(r=d.arrow)!=null&&r.alignmentOffset?{}:{x:o+h.x,y:c+h.y,data:{...h,placement:u}}}}},ON=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:r,placement:o}=t,{mainAxis:c=!0,crossAxis:u=!1,limiter:d={fn:k=>{let{x:M,y:L}=k;return{x:M,y:L}}},...h}=La(e,t),p={x:a,y:r},v=await fl(t,h),y=aa(Ba(o)),b=qm(y);let w=p[b],T=p[y];if(c){const k=b==="y"?"top":"left",M=b==="y"?"bottom":"right",L=w+v[k],A=w-v[M];w=Fp(L,w,A)}if(u){const k=y==="y"?"top":"left",M=y==="y"?"bottom":"right",L=T+v[k],A=T-v[M];T=Fp(L,T,A)}const _=d.fn({...t,[b]:w,[y]:T});return{..._,data:{x:_.x-a,y:_.y-r,enabled:{[b]:c,[y]:u}}}}}},jN=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:r,placement:o,rects:c,middlewareData:u}=t,{offset:d=0,mainAxis:h=!0,crossAxis:p=!0}=La(e,t),v={x:a,y:r},y=aa(o),b=qm(y);let w=v[b],T=v[y];const _=La(d,t),k=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(h){const A=b==="y"?"height":"width",U=c.reference[b]-c.floating[A]+k.mainAxis,B=c.reference[b]+c.reference[A]-k.mainAxis;w<U?w=U:w>B&&(w=B)}if(p){var M,L;const A=b==="y"?"width":"height",U=p2.has(Ba(o)),B=c.reference[y]-c.floating[A]+(U&&((M=u.offset)==null?void 0:M[y])||0)+(U?0:k.crossAxis),V=c.reference[y]+c.reference[A]+(U?0:((L=u.offset)==null?void 0:L[y])||0)-(U?k.crossAxis:0);T<B?T=B:T>V&&(T=V)}return{[b]:w,[y]:T}}}},MN=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a,r;const{placement:o,rects:c,platform:u,elements:d}=t,{apply:h=()=>{},...p}=La(e,t),v=await fl(t,p),y=Ba(o),b=Pi(o),w=aa(o)==="y",{width:T,height:_}=c.floating;let k,M;y==="top"||y==="bottom"?(k=y,M=b===(await(u.isRTL==null?void 0:u.isRTL(d.floating))?"start":"end")?"left":"right"):(M=y,k=b==="end"?"top":"bottom");const L=_-v.top-v.bottom,A=T-v.left-v.right,U=Es(_-v[k],L),B=Es(T-v[M],A),V=!t.middlewareData.shift;let C=U,R=B;if((a=t.middlewareData.shift)!=null&&a.enabled.x&&(R=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=L),V&&!b){const J=pn(v.left,0),re=pn(v.right,0),te=pn(v.top,0),le=pn(v.bottom,0);w?R=T-2*(J!==0||re!==0?J+re:pn(v.left,v.right)):C=_-2*(te!==0||le!==0?te+le:pn(v.top,v.bottom))}await h({...t,availableWidth:R,availableHeight:C});const X=await u.getDimensions(d.floating);return T!==X.width||_!==X.height?{reset:{rects:!0}}:{}}}};function ad(){return typeof window<"u"}function Li(e){return m2(e)?(e.nodeName||"").toLowerCase():"#document"}function gn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ua(e){var t;return(t=(m2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function m2(e){return ad()?e instanceof Node||e instanceof gn(e).Node:!1}function In(e){return ad()?e instanceof Element||e instanceof gn(e).Element:!1}function oa(e){return ad()?e instanceof HTMLElement||e instanceof gn(e).HTMLElement:!1}function Bb(e){return!ad()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof gn(e).ShadowRoot}const NN=new Set(["inline","contents"]);function Cl(e){const{overflow:t,overflowX:a,overflowY:r,display:o}=$n(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+a)&&!NN.has(o)}const kN=new Set(["table","td","th"]);function zN(e){return kN.has(Li(e))}const RN=[":popover-open",":modal"];function sd(e){return RN.some(t=>{try{return e.matches(t)}catch{return!1}})}const DN=["transform","translate","scale","rotate","perspective"],PN=["transform","translate","scale","rotate","perspective","filter"],LN=["paint","layout","strict","content"];function $m(e){const t=Zm(),a=In(e)?$n(e):e;return DN.some(r=>a[r]?a[r]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||PN.some(r=>(a.willChange||"").includes(r))||LN.some(r=>(a.contain||"").includes(r))}function BN(e){let t=Ts(e);for(;oa(t)&&!ki(t);){if($m(t))return t;if(sd(t))return null;t=Ts(t)}return null}function Zm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const HN=new Set(["html","body","#document"]);function ki(e){return HN.has(Li(e))}function $n(e){return gn(e).getComputedStyle(e)}function rd(e){return In(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ts(e){if(Li(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bb(e)&&e.host||ua(e);return Bb(t)?t.host:t}function g2(e){const t=Ts(e);return ki(t)?e.ownerDocument?e.ownerDocument.body:e.body:oa(t)&&Cl(t)?t:g2(t)}function hl(e,t,a){var r;t===void 0&&(t=[]),a===void 0&&(a=!0);const o=g2(e),c=o===((r=e.ownerDocument)==null?void 0:r.body),u=gn(o);if(c){const d=Yp(u);return t.concat(u,u.visualViewport||[],Cl(o)?o:[],d&&a?hl(d):[])}return t.concat(o,hl(o,[],a))}function Yp(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function y2(e){const t=$n(e);let a=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=oa(e),c=o?e.offsetWidth:a,u=o?e.offsetHeight:r,d=Nu(a)!==c||Nu(r)!==u;return d&&(a=c,r=u),{width:a,height:r,$:d}}function Gm(e){return In(e)?e:e.contextElement}function Ci(e){const t=Gm(e);if(!oa(t))return sa(1);const a=t.getBoundingClientRect(),{width:r,height:o,$:c}=y2(t);let u=(c?Nu(a.width):a.width)/r,d=(c?Nu(a.height):a.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!d||!Number.isFinite(d))&&(d=1),{x:u,y:d}}const UN=sa(0);function v2(e){const t=gn(e);return!Zm()||!t.visualViewport?UN:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VN(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==gn(e)?!1:t}function dr(e,t,a,r){t===void 0&&(t=!1),a===void 0&&(a=!1);const o=e.getBoundingClientRect(),c=Gm(e);let u=sa(1);t&&(r?In(r)&&(u=Ci(r)):u=Ci(e));const d=VN(c,a,r)?v2(c):sa(0);let h=(o.left+d.x)/u.x,p=(o.top+d.y)/u.y,v=o.width/u.x,y=o.height/u.y;if(c){const b=gn(c),w=r&&In(r)?gn(r):r;let T=b,_=Yp(T);for(;_&&r&&w!==T;){const k=Ci(_),M=_.getBoundingClientRect(),L=$n(_),A=M.left+(_.clientLeft+parseFloat(L.paddingLeft))*k.x,U=M.top+(_.clientTop+parseFloat(L.paddingTop))*k.y;h*=k.x,p*=k.y,v*=k.x,y*=k.y,h+=A,p+=U,T=gn(_),_=Yp(T)}}return zu({width:v,height:y,x:h,y:p})}function id(e,t){const a=rd(e).scrollLeft;return t?t.left+a:dr(ua(e)).left+a}function x2(e,t){const a=e.getBoundingClientRect(),r=a.left+t.scrollLeft-id(e,a),o=a.top+t.scrollTop;return{x:r,y:o}}function qN(e){let{elements:t,rect:a,offsetParent:r,strategy:o}=e;const c=o==="fixed",u=ua(r),d=t?sd(t.floating):!1;if(r===u||d&&c)return a;let h={scrollLeft:0,scrollTop:0},p=sa(1);const v=sa(0),y=oa(r);if((y||!y&&!c)&&((Li(r)!=="body"||Cl(u))&&(h=rd(r)),oa(r))){const w=dr(r);p=Ci(r),v.x=w.x+r.clientLeft,v.y=w.y+r.clientTop}const b=u&&!y&&!c?x2(u,h):sa(0);return{width:a.width*p.x,height:a.height*p.y,x:a.x*p.x-h.scrollLeft*p.x+v.x+b.x,y:a.y*p.y-h.scrollTop*p.y+v.y+b.y}}function KN(e){return Array.from(e.getClientRects())}function IN(e){const t=ua(e),a=rd(e),r=e.ownerDocument.body,o=pn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),c=pn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-a.scrollLeft+id(e);const d=-a.scrollTop;return $n(r).direction==="rtl"&&(u+=pn(t.clientWidth,r.clientWidth)-o),{width:o,height:c,x:u,y:d}}const Hb=25;function $N(e,t){const a=gn(e),r=ua(e),o=a.visualViewport;let c=r.clientWidth,u=r.clientHeight,d=0,h=0;if(o){c=o.width,u=o.height;const v=Zm();(!v||v&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}const p=id(r);if(p<=0){const v=r.ownerDocument,y=v.body,b=getComputedStyle(y),w=v.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,T=Math.abs(r.clientWidth-y.clientWidth-w);T<=Hb&&(c-=T)}else p<=Hb&&(c+=p);return{width:c,height:u,x:d,y:h}}const ZN=new Set(["absolute","fixed"]);function GN(e,t){const a=dr(e,!0,t==="fixed"),r=a.top+e.clientTop,o=a.left+e.clientLeft,c=oa(e)?Ci(e):sa(1),u=e.clientWidth*c.x,d=e.clientHeight*c.y,h=o*c.x,p=r*c.y;return{width:u,height:d,x:h,y:p}}function Ub(e,t,a){let r;if(t==="viewport")r=$N(e,a);else if(t==="document")r=IN(ua(e));else if(In(t))r=GN(t,a);else{const o=v2(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return zu(r)}function b2(e,t){const a=Ts(e);return a===t||!In(a)||ki(a)?!1:$n(a).position==="fixed"||b2(a,t)}function FN(e,t){const a=t.get(e);if(a)return a;let r=hl(e,[],!1).filter(d=>In(d)&&Li(d)!=="body"),o=null;const c=$n(e).position==="fixed";let u=c?Ts(e):e;for(;In(u)&&!ki(u);){const d=$n(u),h=$m(u);!h&&d.position==="fixed"&&(o=null),(c?!h&&!o:!h&&d.position==="static"&&!!o&&ZN.has(o.position)||Cl(u)&&!h&&b2(e,u))?r=r.filter(v=>v!==u):o=d,u=Ts(u)}return t.set(e,r),r}function QN(e){let{element:t,boundary:a,rootBoundary:r,strategy:o}=e;const u=[...a==="clippingAncestors"?sd(t)?[]:FN(t,this._c):[].concat(a),r],d=u[0],h=u.reduce((p,v)=>{const y=Ub(t,v,o);return p.top=pn(y.top,p.top),p.right=Es(y.right,p.right),p.bottom=Es(y.bottom,p.bottom),p.left=pn(y.left,p.left),p},Ub(t,d,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function YN(e){const{width:t,height:a}=y2(e);return{width:t,height:a}}function XN(e,t,a){const r=oa(t),o=ua(t),c=a==="fixed",u=dr(e,!0,c,t);let d={scrollLeft:0,scrollTop:0};const h=sa(0);function p(){h.x=id(o)}if(r||!r&&!c)if((Li(t)!=="body"||Cl(o))&&(d=rd(t)),r){const w=dr(t,!0,c,t);h.x=w.x+t.clientLeft,h.y=w.y+t.clientTop}else o&&p();c&&!r&&o&&p();const v=o&&!r&&!c?x2(o,d):sa(0),y=u.left+d.scrollLeft-h.x-v.x,b=u.top+d.scrollTop-h.y-v.y;return{x:y,y:b,width:u.width,height:u.height}}function ep(e){return $n(e).position==="static"}function Vb(e,t){if(!oa(e)||$n(e).position==="fixed")return null;if(t)return t(e);let a=e.offsetParent;return ua(e)===a&&(a=a.ownerDocument.body),a}function w2(e,t){const a=gn(e);if(sd(e))return a;if(!oa(e)){let o=Ts(e);for(;o&&!ki(o);){if(In(o)&&!ep(o))return o;o=Ts(o)}return a}let r=Vb(e,t);for(;r&&zN(r)&&ep(r);)r=Vb(r,t);return r&&ki(r)&&ep(r)&&!$m(r)?a:r||BN(e)||a}const WN=async function(e){const t=this.getOffsetParent||w2,a=this.getDimensions,r=await a(e.floating);return{reference:XN(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function JN(e){return $n(e).direction==="rtl"}const ek={convertOffsetParentRelativeRectToViewportRelativeRect:qN,getDocumentElement:ua,getClippingRect:QN,getOffsetParent:w2,getElementRects:WN,getClientRects:KN,getDimensions:YN,getScale:Ci,isElement:In,isRTL:JN};function S2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function tk(e,t){let a=null,r;const o=ua(e);function c(){var d;clearTimeout(r),(d=a)==null||d.disconnect(),a=null}function u(d,h){d===void 0&&(d=!1),h===void 0&&(h=1),c();const p=e.getBoundingClientRect(),{left:v,top:y,width:b,height:w}=p;if(d||t(),!b||!w)return;const T=eu(y),_=eu(o.clientWidth-(v+b)),k=eu(o.clientHeight-(y+w)),M=eu(v),A={rootMargin:-T+"px "+-_+"px "+-k+"px "+-M+"px",threshold:pn(0,Es(1,h))||1};let U=!0;function B(V){const C=V[0].intersectionRatio;if(C!==h){if(!U)return u();C?u(!1,C):r=setTimeout(()=>{u(!1,1e-7)},1e3)}C===1&&!S2(p,e.getBoundingClientRect())&&u(),U=!1}try{a=new IntersectionObserver(B,{...A,root:o.ownerDocument})}catch{a=new IntersectionObserver(B,A)}a.observe(e)}return u(!0),c}function nk(e,t,a,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:d=typeof IntersectionObserver=="function",animationFrame:h=!1}=r,p=Gm(e),v=o||c?[...p?hl(p):[],...hl(t)]:[];v.forEach(M=>{o&&M.addEventListener("scroll",a,{passive:!0}),c&&M.addEventListener("resize",a)});const y=p&&d?tk(p,a):null;let b=-1,w=null;u&&(w=new ResizeObserver(M=>{let[L]=M;L&&L.target===p&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var A;(A=w)==null||A.observe(t)})),a()}),p&&!h&&w.observe(p),w.observe(t));let T,_=h?dr(e):null;h&&k();function k(){const M=dr(e);_&&!S2(_,M)&&a(),_=M,T=requestAnimationFrame(k)}return a(),()=>{var M;v.forEach(L=>{o&&L.removeEventListener("scroll",a),c&&L.removeEventListener("resize",a)}),y?.(),(M=w)==null||M.disconnect(),w=null,h&&cancelAnimationFrame(T)}}const ak=CN,sk=ON,rk=TN,ik=MN,ok=_N,qb=EN,lk=jN,ck=(e,t,a)=>{const r=new Map,o={platform:ek,...a},c={...o.platform,_c:r};return SN(e,t,{...o,platform:c})};var uk=typeof document<"u",dk=function(){},vu=uk?S.useLayoutEffect:dk;function Ru(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 a,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(a=e.length,a!==t.length)return!1;for(r=a;r--!==0;)if(!Ru(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),a=o.length,a!==Object.keys(t).length)return!1;for(r=a;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=a;r--!==0;){const c=o[r];if(!(c==="_owner"&&e.$$typeof)&&!Ru(e[c],t[c]))return!1}return!0}return e!==e&&t!==t}function E2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Kb(e,t){const a=E2(e);return Math.round(t*a)/a}function tp(e){const t=S.useRef(e);return vu(()=>{t.current=e}),t}function fk(e){e===void 0&&(e={});const{placement:t="bottom",strategy:a="absolute",middleware:r=[],platform:o,elements:{reference:c,floating:u}={},transform:d=!0,whileElementsMounted:h,open:p}=e,[v,y]=S.useState({x:0,y:0,strategy:a,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=S.useState(r);Ru(b,r)||w(r);const[T,_]=S.useState(null),[k,M]=S.useState(null),L=S.useCallback(P=>{P!==V.current&&(V.current=P,_(P))},[]),A=S.useCallback(P=>{P!==C.current&&(C.current=P,M(P))},[]),U=c||T,B=u||k,V=S.useRef(null),C=S.useRef(null),R=S.useRef(v),X=h!=null,J=tp(h),re=tp(o),te=tp(p),le=S.useCallback(()=>{if(!V.current||!C.current)return;const P={placement:t,strategy:a,middleware:b};re.current&&(P.platform=re.current),ck(V.current,C.current,P).then(ne=>{const oe={...ne,isPositioned:te.current!==!1};ie.current&&!Ru(R.current,oe)&&(R.current=oe,Vm.flushSync(()=>{y(oe)}))})},[b,t,a,re,te]);vu(()=>{p===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,y(P=>({...P,isPositioned:!1})))},[p]);const ie=S.useRef(!1);vu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),vu(()=>{if(U&&(V.current=U),B&&(C.current=B),U&&B){if(J.current)return J.current(U,B,le);le()}},[U,B,le,J,X]);const ue=S.useMemo(()=>({reference:V,floating:C,setReference:L,setFloating:A}),[L,A]),O=S.useMemo(()=>({reference:U,floating:B}),[U,B]),D=S.useMemo(()=>{const P={position:a,left:0,top:0};if(!O.floating)return P;const ne=Kb(O.floating,v.x),oe=Kb(O.floating,v.y);return d?{...P,transform:"translate("+ne+"px, "+oe+"px)",...E2(O.floating)>=1.5&&{willChange:"transform"}}:{position:a,left:ne,top:oe}},[a,d,O.floating,v.x,v.y]);return S.useMemo(()=>({...v,update:le,refs:ue,elements:O,floatingStyles:D}),[v,le,ue,O,D])}const hk=e=>{function t(a){return{}.hasOwnProperty.call(a,"current")}return{name:"arrow",options:e,fn(a){const{element:r,padding:o}=typeof e=="function"?e(a):e;return r&&t(r)?r.current!=null?qb({element:r.current,padding:o}).fn(a):{}:r?qb({element:r,padding:o}).fn(a):{}}}},pk=(e,t)=>({...ak(e),options:[e,t]}),mk=(e,t)=>({...sk(e),options:[e,t]}),gk=(e,t)=>({...lk(e),options:[e,t]}),yk=(e,t)=>({...rk(e),options:[e,t]}),vk=(e,t)=>({...ik(e),options:[e,t]}),xk=(e,t)=>({...ok(e),options:[e,t]}),bk=(e,t)=>({...hk(e),options:[e,t]});var wk="Arrow",T2=S.forwardRef((e,t)=>{const{children:a,width:r=10,height:o=5,...c}=e;return g.jsx(xr.svg,{...c,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?a:g.jsx("polygon",{points:"0,0 30,0 15,10"})})});T2.displayName=wk;var Sk=T2;function Ek(e){const[t,a]=S.useState(void 0);return dl(()=>{if(e){a({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let u,d;if("borderBoxSize"in c){const h=c.borderBoxSize,p=Array.isArray(h)?h[0]:h;u=p.inlineSize,d=p.blockSize}else u=e.offsetWidth,d=e.offsetHeight;a({width:u,height:d})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else a(void 0)},[e]),t}var _2="Popper",[A2,C2]=l2(_2),[MH,O2]=A2(_2),j2="PopperAnchor",M2=S.forwardRef((e,t)=>{const{__scopePopper:a,virtualRef:r,...o}=e,c=O2(j2,a),u=S.useRef(null),d=vr(t,u),h=S.useRef(null);return S.useEffect(()=>{const p=h.current;h.current=r?.current||u.current,p!==h.current&&c.onAnchorChange(h.current)}),r?null:g.jsx(xr.div,{...o,ref:d})});M2.displayName=j2;var Fm="PopperContent",[Tk,_k]=A2(Fm),N2=S.forwardRef((e,t)=>{const{__scopePopper:a,side:r="bottom",sideOffset:o=0,align:c="center",alignOffset:u=0,arrowPadding:d=0,avoidCollisions:h=!0,collisionBoundary:p=[],collisionPadding:v=0,sticky:y="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:T,..._}=e,k=O2(Fm,a),[M,L]=S.useState(null),A=vr(t,de=>L(de)),[U,B]=S.useState(null),V=Ek(U),C=V?.width??0,R=V?.height??0,X=r+(c!=="center"?"-"+c:""),J=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},re=Array.isArray(p)?p:[p],te=re.length>0,le={padding:J,boundary:re.filter(Ck),altBoundary:te},{refs:ie,floatingStyles:ue,placement:O,isPositioned:D,middlewareData:P}=fk({strategy:"fixed",placement:X,whileElementsMounted:(...de)=>nk(...de,{animationFrame:w==="always"}),elements:{reference:k.anchor},middleware:[pk({mainAxis:o+R,alignmentAxis:u}),h&&mk({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?gk():void 0,...le}),h&&yk({...le}),vk({...le,apply:({elements:de,rects:be,availableWidth:De,availableHeight:_t})=>{const{width:Lt,height:At}=be.reference,fa=de.floating.style;fa.setProperty("--radix-popper-available-width",`${De}px`),fa.setProperty("--radix-popper-available-height",`${_t}px`),fa.setProperty("--radix-popper-anchor-width",`${Lt}px`),fa.setProperty("--radix-popper-anchor-height",`${At}px`)}}),U&&bk({element:U,padding:d}),Ok({arrowWidth:C,arrowHeight:R}),b&&xk({strategy:"referenceHidden",...le})]}),[ne,oe]=R2(O),j=nd(T);dl(()=>{D&&j?.()},[D,j]);const G=P.arrow?.x,I=P.arrow?.y,F=P.arrow?.centerOffset!==0,[ae,me]=S.useState();return dl(()=>{M&&me(window.getComputedStyle(M).zIndex)},[M]),g.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...ue,transform:D?ue.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ae,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:g.jsx(Tk,{scope:a,placedSide:ne,onArrowChange:B,arrowX:G,arrowY:I,shouldHideArrow:F,children:g.jsx(xr.div,{"data-side":ne,"data-align":oe,..._,ref:A,style:{..._.style,animation:D?void 0:"none"}})})})});N2.displayName=Fm;var k2="PopperArrow",Ak={top:"bottom",right:"left",bottom:"top",left:"right"},z2=S.forwardRef(function(t,a){const{__scopePopper:r,...o}=t,c=_k(k2,r),u=Ak[c.placedSide];return g.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:g.jsx(Sk,{...o,ref:a,style:{...o.style,display:"block"}})})});z2.displayName=k2;function Ck(e){return e!==null}var Ok=e=>({name:"transformOrigin",options:e,fn(t){const{placement:a,rects:r,middlewareData:o}=t,u=o.arrow?.centerOffset!==0,d=u?0:e.arrowWidth,h=u?0:e.arrowHeight,[p,v]=R2(a),y={start:"0%",center:"50%",end:"100%"}[v],b=(o.arrow?.x??0)+d/2,w=(o.arrow?.y??0)+h/2;let T="",_="";return p==="bottom"?(T=u?y:`${b}px`,_=`${-h}px`):p==="top"?(T=u?y:`${b}px`,_=`${r.floating.height+h}px`):p==="right"?(T=`${-h}px`,_=u?y:`${w}px`):p==="left"&&(T=`${r.floating.width+h}px`,_=u?y:`${w}px`),{data:{x:T,y:_}}}});function R2(e){const[t,a="center"]=e.split("-");return[t,a]}var jk=M2,Mk=N2,Nk=z2;function kk(e,t){return S.useReducer((a,r)=>t[a][r]??a,e)}var D2=e=>{const{present:t,children:a}=e,r=zk(t),o=typeof a=="function"?a({present:r.isPresent}):S.Children.only(a),c=vr(r.ref,Rk(o));return typeof a=="function"||r.isPresent?S.cloneElement(o,{ref:c}):null};D2.displayName="Presence";function zk(e){const[t,a]=S.useState(),r=S.useRef(null),o=S.useRef(e),c=S.useRef("none"),u=e?"mounted":"unmounted",[d,h]=kk(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const p=tu(r.current);c.current=d==="mounted"?p:"none"},[d]),dl(()=>{const p=r.current,v=o.current;if(v!==e){const b=c.current,w=tu(p);e?h("MOUNT"):w==="none"||p?.display==="none"?h("UNMOUNT"):h(v&&b!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,h]),dl(()=>{if(t){let p;const v=t.ownerDocument.defaultView??window,y=w=>{const _=tu(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&_&&(h("ANIMATION_END"),!o.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",p=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},b=w=>{w.target===t&&(c.current=tu(r.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",y),t.addEventListener("animationend",y),()=>{v.clearTimeout(p),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",y),t.removeEventListener("animationend",y)}}else h("ANIMATION_END")},[t,h]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:S.useCallback(p=>{r.current=p?getComputedStyle(p):null,a(p)},[])}}function tu(e){return e?.animationName||"none"}function Rk(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;return a?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a?e.props.ref:e.props.ref||e.ref)}var Dk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),Pk="VisuallyHidden",P2=S.forwardRef((e,t)=>g.jsx(xr.span,{...e,ref:t,style:{...Dk,...e.style}}));P2.displayName=Pk;var Lk=P2,[od]=l2("Tooltip",[C2]),Qm=C2(),L2="TooltipProvider",Bk=700,Ib="tooltip.open",[Hk,B2]=od(L2),H2=e=>{const{__scopeTooltip:t,delayDuration:a=Bk,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:c}=e,u=S.useRef(!0),d=S.useRef(!1),h=S.useRef(0);return S.useEffect(()=>{const p=h.current;return()=>window.clearTimeout(p)},[]),g.jsx(Hk,{scope:t,isOpenDelayedRef:u,delayDuration:a,onOpen:S.useCallback(()=>{window.clearTimeout(h.current),u.current=!1},[]),onClose:S.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.current=!0,r)},[r]),isPointerInTransitRef:d,onPointerInTransitChange:S.useCallback(p=>{d.current=p},[]),disableHoverableContent:o,children:c})};H2.displayName=L2;var U2="Tooltip",[NH,ld]=od(U2),Xp="TooltipTrigger",Uk=S.forwardRef((e,t)=>{const{__scopeTooltip:a,...r}=e,o=ld(Xp,a),c=B2(Xp,a),u=Qm(a),d=S.useRef(null),h=vr(t,d,o.onTriggerChange),p=S.useRef(!1),v=S.useRef(!1),y=S.useCallback(()=>p.current=!1,[]);return S.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),g.jsx(jk,{asChild:!0,...u,children:g.jsx(xr.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:h,onPointerMove:za(e.onPointerMove,b=>{b.pointerType!=="touch"&&!v.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),v.current=!0)}),onPointerLeave:za(e.onPointerLeave,()=>{o.onTriggerLeave(),v.current=!1}),onPointerDown:za(e.onPointerDown,()=>{o.open&&o.onClose(),p.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:za(e.onFocus,()=>{p.current||o.onOpen()}),onBlur:za(e.onBlur,o.onClose),onClick:za(e.onClick,o.onClose)})})});Uk.displayName=Xp;var Vk="TooltipPortal",[kH,qk]=od(Vk,{forceMount:void 0}),zi="TooltipContent",Kk=S.forwardRef((e,t)=>{const a=qk(zi,e.__scopeTooltip),{forceMount:r=a.forceMount,side:o="top",...c}=e,u=ld(zi,e.__scopeTooltip);return g.jsx(D2,{present:r||u.open,children:u.disableHoverableContent?g.jsx(V2,{side:o,...c,ref:t}):g.jsx(Ik,{side:o,...c,ref:t})})}),Ik=S.forwardRef((e,t)=>{const a=ld(zi,e.__scopeTooltip),r=B2(zi,e.__scopeTooltip),o=S.useRef(null),c=vr(t,o),[u,d]=S.useState(null),{trigger:h,onClose:p}=a,v=o.current,{onPointerInTransitChange:y}=r,b=S.useCallback(()=>{d(null),y(!1)},[y]),w=S.useCallback((T,_)=>{const k=T.currentTarget,M={x:T.clientX,y:T.clientY},L=Qk(M,k.getBoundingClientRect()),A=Yk(M,L),U=Xk(_.getBoundingClientRect()),B=Jk([...A,...U]);d(B),y(!0)},[y]);return S.useEffect(()=>()=>b(),[b]),S.useEffect(()=>{if(h&&v){const T=k=>w(k,v),_=k=>w(k,h);return h.addEventListener("pointerleave",T),v.addEventListener("pointerleave",_),()=>{h.removeEventListener("pointerleave",T),v.removeEventListener("pointerleave",_)}}},[h,v,w,b]),S.useEffect(()=>{if(u){const T=_=>{const k=_.target,M={x:_.clientX,y:_.clientY},L=h?.contains(k)||v?.contains(k),A=!Wk(M,u);L?b():A&&(b(),p())};return document.addEventListener("pointermove",T),()=>document.removeEventListener("pointermove",T)}},[h,v,u,p,b]),g.jsx(V2,{...e,ref:c})}),[$k,Zk]=od(U2,{isInside:!1}),Gk=XM("TooltipContent"),V2=S.forwardRef((e,t)=>{const{__scopeTooltip:a,children:r,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:u,...d}=e,h=ld(zi,a),p=Qm(a),{onClose:v}=h;return S.useEffect(()=>(document.addEventListener(Ib,v),()=>document.removeEventListener(Ib,v)),[v]),S.useEffect(()=>{if(h.trigger){const y=b=>{b.target?.contains(h.trigger)&&v()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[h.trigger,v]),g.jsx(d2,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:y=>y.preventDefault(),onDismiss:v,children:g.jsxs(Mk,{"data-state":h.stateAttribute,...p,...d,ref:t,style:{...d.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[g.jsx(Gk,{children:r}),g.jsx($k,{scope:a,isInside:!0,children:g.jsx(Lk,{id:h.contentId,role:"tooltip",children:o||r})})]})})});Kk.displayName=zi;var q2="TooltipArrow",Fk=S.forwardRef((e,t)=>{const{__scopeTooltip:a,...r}=e,o=Qm(a);return Zk(q2,a).isInside?null:g.jsx(Nk,{...o,...r,ref:t})});Fk.displayName=q2;function Qk(e,t){const a=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),c=Math.abs(t.left-e.x);switch(Math.min(a,r,o,c)){case c:return"left";case o:return"right";case a:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Yk(e,t,a=5){const r=[];switch(t){case"top":r.push({x:e.x-a,y:e.y+a},{x:e.x+a,y:e.y+a});break;case"bottom":r.push({x:e.x-a,y:e.y-a},{x:e.x+a,y:e.y-a});break;case"left":r.push({x:e.x+a,y:e.y-a},{x:e.x+a,y:e.y+a});break;case"right":r.push({x:e.x-a,y:e.y-a},{x:e.x-a,y:e.y+a});break}return r}function Xk(e){const{top:t,right:a,bottom:r,left:o}=e;return[{x:o,y:t},{x:a,y:t},{x:a,y:r},{x:o,y:r}]}function Wk(e,t){const{x:a,y:r}=e;let o=!1;for(let c=0,u=t.length-1;c<t.length;u=c++){const d=t[c],h=t[u],p=d.x,v=d.y,y=h.x,b=h.y;v>r!=b>r&&a<(y-p)*(r-v)/(b-v)+p&&(o=!o)}return o}function Jk(e){const t=e.slice();return t.sort((a,r)=>a.x<r.x?-1:a.x>r.x?1:a.y<r.y?-1:a.y>r.y?1:0),ez(t)}function ez(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const c=t[t.length-1],u=t[t.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))t.pop();else break}t.push(o)}t.pop();const a=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;a.length>=2;){const c=a[a.length-1],u=a[a.length-2];if((c.x-u.x)*(o.y-u.y)>=(c.y-u.y)*(o.x-u.x))a.pop();else break}a.push(o)}return a.pop(),t.length===1&&a.length===1&&t[0].x===a[0].x&&t[0].y===a[0].y?t:t.concat(a)}var tz=H2;function K2(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=K2(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function nz(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=K2(e))&&(r&&(r+=" "),r+=t);return r}const Ym="-",az=e=>{const t=rz(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{const d=u.split(Ym);return d[0]===""&&d.length!==1&&d.shift(),I2(d,t)||sz(u)},getConflictingClassGroupIds:(u,d)=>{const h=a[u]||[];return d&&r[u]?[...h,...r[u]]:h}}},I2=(e,t)=>{if(e.length===0)return t.classGroupId;const a=e[0],r=t.nextPart.get(a),o=r?I2(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const c=e.join(Ym);return t.validators.find(({validator:u})=>u(c))?.classGroupId},$b=/^\[(.+)\]$/,sz=e=>{if($b.test(e)){const t=$b.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},rz=e=>{const{theme:t,classGroups:a}=e,r={nextPart:new Map,validators:[]};for(const o in a)Wp(a[o],r,o,t);return r},Wp=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){const c=o===""?t:Zb(t,o);c.classGroupId=a;return}if(typeof o=="function"){if(iz(o)){Wp(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([c,u])=>{Wp(u,Zb(t,c),a,r)})})},Zb=(e,t)=>{let a=e;return t.split(Ym).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},iz=e=>e.isThemeGetter,oz=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map;const o=(c,u)=>{a.set(c,u),t++,t>e&&(t=0,r=a,a=new Map)};return{get(c){let u=a.get(c);if(u!==void 0)return u;if((u=r.get(c))!==void 0)return o(c,u),u},set(c,u){a.has(c)?a.set(c,u):o(c,u)}}},Jp="!",em=":",lz=em.length,cz=e=>{const{prefix:t,experimentalParseClassName:a}=e;let r=o=>{const c=[];let u=0,d=0,h=0,p;for(let T=0;T<o.length;T++){let _=o[T];if(u===0&&d===0){if(_===em){c.push(o.slice(h,T)),h=T+lz;continue}if(_==="/"){p=T;continue}}_==="["?u++:_==="]"?u--:_==="("?d++:_===")"&&d--}const v=c.length===0?o:o.substring(h),y=uz(v),b=y!==v,w=p&&p>h?p-h:void 0;return{modifiers:c,hasImportantModifier:b,baseClassName:y,maybePostfixModifierPosition:w}};if(t){const o=t+em,c=r;r=u=>u.startsWith(o)?c(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(a){const o=r;r=c=>a({className:c,parseClassName:o})}return r},uz=e=>e.endsWith(Jp)?e.substring(0,e.length-1):e.startsWith(Jp)?e.substring(1):e,dz=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let c=[];return r.forEach(u=>{u[0]==="["||t[u]?(o.push(...c.sort(),u),c=[]):c.push(u)}),o.push(...c.sort()),o}},fz=e=>({cache:oz(e.cacheSize),parseClassName:cz(e),sortModifiers:dz(e),...az(e)}),hz=/\s+/,pz=(e,t)=>{const{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],d=e.trim().split(hz);let h="";for(let p=d.length-1;p>=0;p-=1){const v=d[p],{isExternal:y,modifiers:b,hasImportantModifier:w,baseClassName:T,maybePostfixModifierPosition:_}=a(v);if(y){h=v+(h.length>0?" "+h:h);continue}let k=!!_,M=r(k?T.substring(0,_):T);if(!M){if(!k){h=v+(h.length>0?" "+h:h);continue}if(M=r(T),!M){h=v+(h.length>0?" "+h:h);continue}k=!1}const L=c(b).join(":"),A=w?L+Jp:L,U=A+M;if(u.includes(U))continue;u.push(U);const B=o(M,k);for(let V=0;V<B.length;++V){const C=B[V];u.push(A+C)}h=v+(h.length>0?" "+h:h)}return h};function mz(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=$2(t))&&(r&&(r+=" "),r+=a);return r}const $2=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=$2(e[r]))&&(a&&(a+=" "),a+=t);return a};function gz(e,...t){let a,r,o,c=u;function u(h){const p=t.reduce((v,y)=>y(v),e());return a=fz(p),r=a.cache.get,o=a.cache.set,c=d,d(h)}function d(h){const p=r(h);if(p)return p;const v=pz(h,a);return o(h,v),v}return function(){return c(mz.apply(null,arguments))}}const vt=e=>{const t=a=>a[e]||[];return t.isThemeGetter=!0,t},Z2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,G2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,yz=/^\d+\/\d+$/,vz=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xz=/\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$/,bz=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wz=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Sz=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fi=e=>yz.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),ps=e=>!!e&&Number.isInteger(Number(e)),np=e=>e.endsWith("%")&&Me(e.slice(0,-1)),ka=e=>vz.test(e),Ez=()=>!0,Tz=e=>xz.test(e)&&!bz.test(e),F2=()=>!1,_z=e=>wz.test(e),Az=e=>Sz.test(e),Cz=e=>!he(e)&&!pe(e),Oz=e=>Bi(e,X2,F2),he=e=>Z2.test(e),Js=e=>Bi(e,W2,Tz),ap=e=>Bi(e,zz,Me),Gb=e=>Bi(e,Q2,F2),jz=e=>Bi(e,Y2,Az),nu=e=>Bi(e,J2,_z),pe=e=>G2.test(e),Go=e=>Hi(e,W2),Mz=e=>Hi(e,Rz),Fb=e=>Hi(e,Q2),Nz=e=>Hi(e,X2),kz=e=>Hi(e,Y2),au=e=>Hi(e,J2,!0),Bi=(e,t,a)=>{const r=Z2.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},Hi=(e,t,a=!1)=>{const r=G2.exec(e);return r?r[1]?t(r[1]):a:!1},Q2=e=>e==="position"||e==="percentage",Y2=e=>e==="image"||e==="url",X2=e=>e==="length"||e==="size"||e==="bg-size",W2=e=>e==="length",zz=e=>e==="number",Rz=e=>e==="family-name",J2=e=>e==="shadow",Dz=()=>{const e=vt("color"),t=vt("font"),a=vt("text"),r=vt("font-weight"),o=vt("tracking"),c=vt("leading"),u=vt("breakpoint"),d=vt("container"),h=vt("spacing"),p=vt("radius"),v=vt("shadow"),y=vt("inset-shadow"),b=vt("text-shadow"),w=vt("drop-shadow"),T=vt("blur"),_=vt("perspective"),k=vt("aspect"),M=vt("ease"),L=vt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],U=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...U(),pe,he],V=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],R=()=>[pe,he,h],X=()=>[fi,"full","auto",...R()],J=()=>[ps,"none","subgrid",pe,he],re=()=>["auto",{span:["full",ps,pe,he]},ps,pe,he],te=()=>[ps,"auto",pe,he],le=()=>["auto","min","max","fr",pe,he],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ue=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...R()],D=()=>[fi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],P=()=>[e,pe,he],ne=()=>[...U(),Fb,Gb,{position:[pe,he]}],oe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",Nz,Oz,{size:[pe,he]}],G=()=>[np,Go,Js],I=()=>["","none","full",p,pe,he],F=()=>["",Me,Go,Js],ae=()=>["solid","dashed","dotted","double"],me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[Me,np,Fb,Gb],be=()=>["","none",T,pe,he],De=()=>["none",Me,pe,he],_t=()=>["none",Me,pe,he],Lt=()=>[Me,pe,he],At=()=>[fi,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ka],breakpoint:[ka],color:[Ez],container:[ka],"drop-shadow":[ka],ease:["in","out","in-out"],font:[Cz],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ka],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ka],shadow:[ka],spacing:["px",Me],text:[ka],"text-shadow":[ka],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fi,he,pe,k]}],container:["container"],columns:[{columns:[Me,he,pe,d]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],sr:["sr-only","not-sr-only"],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:B()}],overflow:[{overflow:V()}],"overflow-x":[{"overflow-x":V()}],"overflow-y":[{"overflow-y":V()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:X()}],"inset-x":[{"inset-x":X()}],"inset-y":[{"inset-y":X()}],start:[{start:X()}],end:[{end:X()}],top:[{top:X()}],right:[{right:X()}],bottom:[{bottom:X()}],left:[{left:X()}],visibility:["visible","invisible","collapse"],z:[{z:[ps,"auto",pe,he]}],basis:[{basis:[fi,"full","auto",d,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,fi,"auto","initial","none",he]}],grow:[{grow:["",Me,pe,he]}],shrink:[{shrink:["",Me,pe,he]}],order:[{order:[ps,"first","last","none",pe,he]}],"grid-cols":[{"grid-cols":J()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":J()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":le()}],"auto-rows":[{"auto-rows":le()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...ue(),"normal"]}],"justify-self":[{"justify-self":["auto",...ue()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...ue(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ue(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...ue(),"baseline"]}],"place-self":[{"place-self":["auto",...ue()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:D()}],w:[{w:[d,"screen",...D()]}],"min-w":[{"min-w":[d,"screen","none",...D()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[u]},...D()]}],h:[{h:["screen","lh",...D()]}],"min-h":[{"min-h":["screen","lh","none",...D()]}],"max-h":[{"max-h":["screen","lh",...D()]}],"font-size":[{text:["base",a,Go,Js]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,pe,ap]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",np,he]}],"font-family":[{font:[Mz,he,t]}],"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:[o,pe,he]}],"line-clamp":[{"line-clamp":[Me,"none",pe,ap]}],leading:[{leading:[c,...R()]}],"list-image":[{"list-image":["none",pe,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",pe,Js]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Me,"auto",pe,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:oe()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ps,pe,he],radial:["",pe,he],conic:[ps,pe,he]},kz,jz]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:G()}],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],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:F()}],"border-w-x":[{"border-x":F()}],"border-w-y":[{"border-y":F()}],"border-w-s":[{"border-s":F()}],"border-w-e":[{"border-e":F()}],"border-w-t":[{"border-t":F()}],"border-w-r":[{"border-r":F()}],"border-w-b":[{"border-b":F()}],"border-w-l":[{"border-l":F()}],"divide-x":[{"divide-x":F()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":F()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,pe,he]}],"outline-w":[{outline:["",Me,Go,Js]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",v,au,nu]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",y,au,nu]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:F()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Me,Js]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":F()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",b,au,nu]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Me,pe,he]}],"mix-blend":[{"mix-blend":[...me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[pe,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":U()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:oe()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,he]}],filter:[{filter:["","none",pe,he]}],blur:[{blur:be()}],brightness:[{brightness:[Me,pe,he]}],contrast:[{contrast:[Me,pe,he]}],"drop-shadow":[{"drop-shadow":["","none",w,au,nu]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Me,pe,he]}],"hue-rotate":[{"hue-rotate":[Me,pe,he]}],invert:[{invert:["",Me,pe,he]}],saturate:[{saturate:[Me,pe,he]}],sepia:[{sepia:["",Me,pe,he]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,he]}],"backdrop-blur":[{"backdrop-blur":be()}],"backdrop-brightness":[{"backdrop-brightness":[Me,pe,he]}],"backdrop-contrast":[{"backdrop-contrast":[Me,pe,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,pe,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,pe,he]}],"backdrop-invert":[{"backdrop-invert":["",Me,pe,he]}],"backdrop-opacity":[{"backdrop-opacity":[Me,pe,he]}],"backdrop-saturate":[{"backdrop-saturate":[Me,pe,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,pe,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",pe,he]}],ease:[{ease:["linear","initial",M,pe,he]}],delay:[{delay:[Me,pe,he]}],animate:[{animate:["none",L,pe,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,pe,he]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:De()}],"rotate-x":[{"rotate-x":De()}],"rotate-y":[{"rotate-y":De()}],"rotate-z":[{"rotate-z":De()}],scale:[{scale:_t()}],"scale-x":[{"scale-x":_t()}],"scale-y":[{"scale-y":_t()}],"scale-z":[{"scale-z":_t()}],"scale-3d":["scale-3d"],skew:[{skew:Lt()}],"skew-x":[{"skew-x":Lt()}],"skew-y":[{"skew-y":Lt()}],transform:[{transform:[pe,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:At()}],"translate-x":[{"translate-x":At()}],"translate-y":[{"translate-y":At()}],"translate-z":[{"translate-z":At()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",pe,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"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",pe,he]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Me,Go,Js,ap]}],stroke:[{stroke:["none",...P()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Pz=gz(Dz);function Lz(...e){return Pz(nz(e))}function Bz({delayDuration:e=0,...t}){return g.jsx(tz,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}function Hz(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var a,r,o,c,u=[],d="",h=e.split("/");for(h[0]||h.shift();o=h.shift();)a=o[0],a==="*"?(u.push(a),d+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):a===":"?(r=o.indexOf("?",1),c=o.indexOf(".",1),u.push(o.substring(1,~r?r:~c?c:o.length)),d+=~r&&!~c?"(?:/([^/]+?))?":"/([^/]+?)",~c&&(d+=(~r?"?":"")+"\\"+o.substring(c))):d+="/"+o;return{keys:u,pattern:new RegExp("^"+d+(t?"(?=$|/)":"/?$"),"i")}}var sp={exports:{}},rp={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Qb;function Uz(){if(Qb)return rp;Qb=1;var e=Qu();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var a=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,c=e.useLayoutEffect,u=e.useDebugValue;function d(y,b){var w=b(),T=r({inst:{value:w,getSnapshot:b}}),_=T[0].inst,k=T[1];return c(function(){_.value=w,_.getSnapshot=b,h(_)&&k({inst:_})},[y,w,b]),o(function(){return h(_)&&k({inst:_}),y(function(){h(_)&&k({inst:_})})},[y]),u(w),w}function h(y){var b=y.getSnapshot;y=y.value;try{var w=b();return!a(y,w)}catch{return!0}}function p(y,b){return b()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:d;return rp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,rp}var Yb;function Vz(){return Yb||(Yb=1,sp.exports=Uz()),sp.exports}var qz=Vz();const Kz=oS.useInsertionEffect,Iz=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$z=Iz?S.useLayoutEffect:S.useEffect,Zz=Kz||$z,eE=e=>{const t=S.useRef([e,(...a)=>t[0](...a)]).current;return Zz(()=>{t[0]=e}),t[1]},Gz="popstate",Xm="pushState",Wm="replaceState",Fz="hashchange",Xb=[Gz,Xm,Wm,Fz],Qz=e=>{for(const t of Xb)addEventListener(t,e);return()=>{for(const t of Xb)removeEventListener(t,e)}},tE=(e,t)=>qz.useSyncExternalStore(Qz,e,t),Yz=()=>location.search,Xz=({ssrSearch:e=""}={})=>tE(Yz,()=>e),Wb=()=>location.pathname,Wz=({ssrPath:e}={})=>tE(Wb,e?()=>e:Wb),Jz=(e,{replace:t=!1,state:a=null}={})=>history[t?Wm:Xm](a,"",e),e4=(e={})=>[Wz(e),Jz],Jb=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Jb]>"u"){for(const e of[Xm,Wm]){const t=history[e];history[e]=function(){const a=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),a}}Object.defineProperty(window,Jb,{value:!0})}const t4=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",nE=(e="")=>e==="/"?"":e,n4=(e,t)=>e[0]==="~"?e.slice(1):nE(t)+e,a4=(e="",t)=>t4(tm(nE(e)),tm(t)),s4=e=>e[0]==="?"?e.slice(1):e,tm=e=>{try{return decodeURI(e)}catch{return e}},r4=e=>tm(s4(e)),aE={hook:e4,searchHook:Xz,parser:Hz,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},sE=S.createContext(aE),Ui=()=>S.useContext(sE),rE={},iE=S.createContext(rE),i4=()=>S.useContext(iE),cd=e=>{const[t,a]=e.hook(e);return[a4(e.base,t),eE((r,o)=>a(n4(r,e.base),o))]},Vi=()=>cd(Ui()),zH=()=>{const e=Ui();return r4(e.searchHook(e))},oE=(e,t,a,r)=>{const{pattern:o,keys:c}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),u=o.exec(a)||[],[d,...h]=u;return d!==void 0?[!0,(()=>{const p=c!==!1?Object.fromEntries(c.map((y,b)=>[y,h[b]])):u.groups;let v={...h};return p&&Object.assign(v,p),v})(),...r?[d]:[]]:[!1,null]},o4=({children:e,...t})=>{const a=Ui(),r=t.hook?aE:a;let o=r;const[c,u]=t.ssrPath?.split("?")??[];u&&(t.ssrSearch=u,t.ssrPath=c),t.hrefs=t.hrefs??t.hook?.hrefs;let d=S.useRef({}),h=d.current,p=h;for(let v in r){const y=v==="base"?r[v]+(t[v]||""):t[v]||r[v];h===p&&y!==p[v]&&(d.current=p={...p}),p[v]=y,(y!==r[v]||y!==o[v])&&(o=p)}return S.createElement(sE.Provider,{value:o,children:e})},e1=({children:e,component:t},a)=>t?S.createElement(t,{params:a}):typeof e=="function"?e(a):e,l4=e=>{let t=S.useRef(rE);const a=t.current;return t.current=Object.keys(e).length!==Object.keys(a).length||Object.entries(e).some(([r,o])=>o!==a[r])?e:a},Te=({path:e,nest:t,match:a,...r})=>{const o=Ui(),[c]=cd(o),[u,d,h]=a??oE(o.parser,e,c,t),p=l4({...i4(),...d});if(!u)return null;const v=h?S.createElement(o4,{base:h},e1(r,p)):e1(r,p);return S.createElement(iE.Provider,{value:p,children:v})},ms=S.forwardRef((e,t)=>{const a=Ui(),[r,o]=cd(a),{to:c="",href:u=c,onClick:d,asChild:h,children:p,className:v,replace:y,state:b,...w}=e,T=eE(k=>{k.ctrlKey||k.metaKey||k.altKey||k.shiftKey||k.button!==0||(d?.(k),k.defaultPrevented||(k.preventDefault(),o(u,e)))}),_=a.hrefs(u[0]==="~"?u.slice(1):a.base+u,a);return h&&S.isValidElement(p)?S.cloneElement(p,{onClick:T,href:_}):S.createElement("a",{...w,onClick:T,href:_,className:v?.call?v(r===u):v,children:p,ref:t})}),nm=e=>Array.isArray(e)?e.flatMap(t=>nm(t&&t.type===S.Fragment?t.props.children:t)):[e],c4=({children:e,location:t})=>{const a=Ui(),[r]=cd(a);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),nm(e).forEach(c=>{if(S.isValidElement(c)&&c.props.path){const u=c.props.path;window.__WOUTER_ROUTES__.includes(u)||window.__WOUTER_ROUTES__.push(u)}}));for(const o of nm(e)){let c=0;if(S.isValidElement(o)&&(c=oE(a.parser,o.props.path,t||r,o.props.nest))[0])return S.cloneElement(o,{match:c})}return null};function Jm(){if(typeof window>"u")return null;const e=window;return e._paq?e._paq:null}function u4(e,t){const a=Jm();a&&(t&&a.push(["setReferrerUrl",window.location.origin+t]),a.push(["setCustomUrl",window.location.origin+e]),a.push(["setDocumentTitle",document.title]),a.push(["trackPageView"]),a.push(["enableLinkTracking"]))}const lE={BERATUNG_ANFRAGE:1,KONTAKTFORMULAR:2,KATALOG_BESTELLUNG:3,RETOURE_EINGEREICHT:4};function d4(e,t){const a=Jm();a&&a.push(t?["trackGoal",e,0,{dimension1:t}]:["trackGoal",e])}function eg(e,t,a){const r=Jm();r&&r.push(a?["trackEvent",e,t,a]:["trackEvent",e,t])}const tg="Lead",t1=new Set;function cE(e,t){t1.has(e)||(t1.add(e),t())}function f4(e){eg(tg,"CTA geklickt",e)}function h4(e,t){const a=`start:${t??e}`;cE(a,()=>eg(tg,"Formular begonnen",e))}function uE(e,t,a){const r=`lead:${a??t}`;cE(r,()=>{eg(tg,"Anfrage gesendet",t),d4(e,t)})}function ee(e,t,a){function r(d,h){var p;Object.defineProperty(d,"_zod",{value:d._zod??{},enumerable:!1}),(p=d._zod).traits??(p.traits=new Set),d._zod.traits.add(e),t(d,h);for(const v in u.prototype)v in d||Object.defineProperty(d,v,{value:u.prototype[v].bind(d)});d._zod.constr=u,d._zod.def=h}const o=a?.Parent??Object;class c extends o{}Object.defineProperty(c,"name",{value:e});function u(d){var h;const p=a?.Parent?new c:this;r(p,d),(h=p._zod).deferred??(h.deferred=[]);for(const v of p._zod.deferred)v();return p}return Object.defineProperty(u,"init",{value:r}),Object.defineProperty(u,Symbol.hasInstance,{value:d=>a?.Parent&&d instanceof a.Parent?!0:d?._zod?.traits?.has(e)}),Object.defineProperty(u,"name",{value:e}),u}class Oi extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class dE extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const fE={};function fr(e){return fE}function p4(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function am(e,t){return typeof t=="bigint"?t.toString():t}function ng(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function ag(e){return e==null}function sg(e){const t=e.startsWith("^")?1:0,a=e.endsWith("$")?e.length-1:e.length;return e.slice(t,a)}const n1=Symbol("evaluating");function Fe(e,t,a){let r;Object.defineProperty(e,t,{get(){if(r!==n1)return r===void 0&&(r=n1,r=a()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function br(e,t,a){Object.defineProperty(e,t,{value:a,writable:!0,enumerable:!0,configurable:!0})}function wr(...e){const t={};for(const a of e){const r=Object.getOwnPropertyDescriptors(a);Object.assign(t,r)}return Object.defineProperties({},t)}function a1(e){return JSON.stringify(e)}const hE="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Du(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const m4=ng(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function pl(e){if(Du(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const a=t.prototype;return!(Du(a)===!1||Object.prototype.hasOwnProperty.call(a,"isPrototypeOf")===!1)}function pE(e){return pl(e)?{...e}:Array.isArray(e)?[...e]:e}const g4=new Set(["string","number","symbol"]);function ud(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Os(e,t,a){const r=new e._zod.constr(t??e._zod.def);return(!t||a?.parent)&&(r._zod.parent=e),r}function Se(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function y4(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function v4(e,t){const a=e._zod.def,r=wr(e._zod.def,{get shape(){const o={};for(const c in t){if(!(c in a.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(o[c]=a.shape[c])}return br(this,"shape",o),o},checks:[]});return Os(e,r)}function x4(e,t){const a=e._zod.def,r=wr(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const c in t){if(!(c in a.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete o[c]}return br(this,"shape",o),o},checks:[]});return Os(e,r)}function b4(e,t){if(!pl(t))throw new Error("Invalid input to extend: expected a plain object");const a=e._zod.def.checks;if(a&&a.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=wr(e._zod.def,{get shape(){const c={...e._zod.def.shape,...t};return br(this,"shape",c),c},checks:[]});return Os(e,o)}function w4(e,t){if(!pl(t))throw new Error("Invalid input to safeExtend: expected a plain object");const a={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return br(this,"shape",r),r},checks:e._zod.def.checks};return Os(e,a)}function S4(e,t){const a=wr(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return br(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return Os(e,a)}function E4(e,t,a){const r=wr(t._zod.def,{get shape(){const o=t._zod.def.shape,c={...o};if(a)for(const u in a){if(!(u in o))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(c[u]=e?new e({type:"optional",innerType:o[u]}):o[u])}else for(const u in o)c[u]=e?new e({type:"optional",innerType:o[u]}):o[u];return br(this,"shape",c),c},checks:[]});return Os(t,r)}function T4(e,t,a){const r=wr(t._zod.def,{get shape(){const o=t._zod.def.shape,c={...o};if(a)for(const u in a){if(!(u in c))throw new Error(`Unrecognized key: "${u}"`);a[u]&&(c[u]=new e({type:"nonoptional",innerType:o[u]}))}else for(const u in o)c[u]=new e({type:"nonoptional",innerType:o[u]});return br(this,"shape",c),c},checks:[]});return Os(t,r)}function yi(e,t=0){if(e.aborted===!0)return!0;for(let a=t;a<e.issues.length;a++)if(e.issues[a]?.continue!==!0)return!0;return!1}function mE(e,t){return t.map(a=>{var r;return(r=a).path??(r.path=[]),a.path.unshift(e),a})}function su(e){return typeof e=="string"?e:e?.message}function hr(e,t,a){const r={...e,path:e.path??[]};if(!e.message){const o=su(e.inst?._zod.def?.error?.(e))??su(t?.error?.(e))??su(a.customError?.(e))??su(a.localeError?.(e))??"Invalid input";r.message=o}return delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function rg(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function ml(...e){const[t,a,r]=e;return typeof t=="string"?{message:t,code:"custom",input:a,inst:r}:{...t}}const gE=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,am,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},yE=ee("$ZodError",gE),vE=ee("$ZodError",gE,{Parent:Error});function _4(e,t=a=>a.message){const a={},r=[];for(const o of e.issues)o.path.length>0?(a[o.path[0]]=a[o.path[0]]||[],a[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:a}}function A4(e,t=a=>a.message){const a={_errors:[]},r=o=>{for(const c of o.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>r({issues:u}));else if(c.code==="invalid_key")r({issues:c.issues});else if(c.code==="invalid_element")r({issues:c.issues});else if(c.path.length===0)a._errors.push(t(c));else{let u=a,d=0;for(;d<c.path.length;){const h=c.path[d];d===c.path.length-1?(u[h]=u[h]||{_errors:[]},u[h]._errors.push(t(c))):u[h]=u[h]||{_errors:[]},u=u[h],d++}}};return r(e),a}const ig=e=>(t,a,r,o)=>{const c=r?Object.assign(r,{async:!1}):{async:!1},u=t._zod.run({value:a,issues:[]},c);if(u instanceof Promise)throw new Oi;if(u.issues.length){const d=new(o?.Err??e)(u.issues.map(h=>hr(h,c,fr())));throw hE(d,o?.callee),d}return u.value},og=e=>async(t,a,r,o)=>{const c=r?Object.assign(r,{async:!0}):{async:!0};let u=t._zod.run({value:a,issues:[]},c);if(u instanceof Promise&&(u=await u),u.issues.length){const d=new(o?.Err??e)(u.issues.map(h=>hr(h,c,fr())));throw hE(d,o?.callee),d}return u.value},dd=e=>(t,a,r)=>{const o=r?{...r,async:!1}:{async:!1},c=t._zod.run({value:a,issues:[]},o);if(c instanceof Promise)throw new Oi;return c.issues.length?{success:!1,error:new(e??yE)(c.issues.map(u=>hr(u,o,fr())))}:{success:!0,data:c.value}},C4=dd(vE),fd=e=>async(t,a,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let c=t._zod.run({value:a,issues:[]},o);return c instanceof Promise&&(c=await c),c.issues.length?{success:!1,error:new e(c.issues.map(u=>hr(u,o,fr())))}:{success:!0,data:c.value}},O4=fd(vE),j4=e=>(t,a,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ig(e)(t,a,o)},M4=e=>(t,a,r)=>ig(e)(t,a,r),N4=e=>async(t,a,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return og(e)(t,a,o)},k4=e=>async(t,a,r)=>og(e)(t,a,r),z4=e=>(t,a,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return dd(e)(t,a,o)},R4=e=>(t,a,r)=>dd(e)(t,a,r),D4=e=>async(t,a,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return fd(e)(t,a,o)},P4=e=>async(t,a,r)=>fd(e)(t,a,r),L4=/^[cC][^\s-]{8,}$/,B4=/^[0-9a-z]+$/,H4=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,U4=/^[0-9a-vA-V]{20}$/,V4=/^[A-Za-z0-9]{27}$/,q4=/^[a-zA-Z0-9_-]{21}$/,K4=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,I4=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,s1=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,$4=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Z4="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function G4(){return new RegExp(Z4,"u")}const F4=/^(?:(?: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])$/,Q4=/^(([0-9a-fA-F]{1,4}:){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}|:))$/,Y4=/^((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])\/([0-9]|[1-2][0-9]|3[0-2])$/,X4=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,W4=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,xE=/^[A-Za-z0-9_-]*$/,J4=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,e3=/^\+(?:[0-9]){6,14}[0-9]$/,bE="(?:(?:\\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])))",t3=new RegExp(`^${bE}$`);function wE(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function n3(e){return new RegExp(`^${wE(e)}$`)}function a3(e){const t=wE({precision:e.precision}),a=["Z"];e.local&&a.push(""),e.offset&&a.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${a.join("|")})`;return new RegExp(`^${bE}T(?:${r})$`)}const s3=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},r3=/^[^A-Z]*$/,i3=/^[^a-z]*$/,da=ee("$ZodCheck",(e,t)=>{var a;e._zod??(e._zod={}),e._zod.def=t,(a=e._zod).onattach??(a.onattach=[])}),o3=ee("$ZodCheckMaxLength",(e,t)=>{var a;da.init(e,t),(a=e._zod.def).when??(a.when=r=>{const o=r.value;return!ag(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const u=rg(o);r.issues.push({origin:u,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),l3=ee("$ZodCheckMinLength",(e,t)=>{var a;da.init(e,t),(a=e._zod.def).when??(a.when=r=>{const o=r.value;return!ag(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const u=rg(o);r.issues.push({origin:u,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),c3=ee("$ZodCheckLengthEquals",(e,t)=>{var a;da.init(e,t),(a=e._zod.def).when??(a.when=r=>{const o=r.value;return!ag(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,c=o.length;if(c===t.length)return;const u=rg(o),d=c>t.length;r.issues.push({origin:u,...d?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),hd=ee("$ZodCheckStringFormat",(e,t)=>{var a,r;da.init(e,t),e._zod.onattach.push(o=>{const c=o._zod.bag;c.format=t.format,t.pattern&&(c.patterns??(c.patterns=new Set),c.patterns.add(t.pattern))}),t.pattern?(a=e._zod).check??(a.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),u3=ee("$ZodCheckRegex",(e,t)=>{hd.init(e,t),e._zod.check=a=>{t.pattern.lastIndex=0,!t.pattern.test(a.value)&&a.issues.push({origin:"string",code:"invalid_format",format:"regex",input:a.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),d3=ee("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=r3),hd.init(e,t)}),f3=ee("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=i3),hd.init(e,t)}),h3=ee("$ZodCheckIncludes",(e,t)=>{da.init(e,t);const a=ud(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${a}`:a);t.pattern=r,e._zod.onattach.push(o=>{const c=o._zod.bag;c.patterns??(c.patterns=new Set),c.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),p3=ee("$ZodCheckStartsWith",(e,t)=>{da.init(e,t);const a=new RegExp(`^${ud(t.prefix)}.*`);t.pattern??(t.pattern=a),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),m3=ee("$ZodCheckEndsWith",(e,t)=>{da.init(e,t);const a=new RegExp(`.*${ud(t.suffix)}$`);t.pattern??(t.pattern=a),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(a)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),g3=ee("$ZodCheckOverwrite",(e,t)=>{da.init(e,t),e._zod.check=a=>{a.value=t.tx(a.value)}});class y3{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
`).filter(u=>u),o=Math.min(...r.map(u=>u.length-u.trimStart().length)),c=r.map(u=>u.slice(o)).map(u=>" ".repeat(this.indent*2)+u);for(const u of c)this.content.push(u)}compile(){const t=Function,a=this?.args,o=[...(this?.content??[""]).map(c=>`  ${c}`)];return new t(...a,o.join(`
`))}}const v3={major:4,minor:1,patch:12},xt=ee("$ZodType",(e,t)=>{var a;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=v3;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const o of r)for(const c of o._zod.onattach)c(e);if(r.length===0)(a=e._zod).deferred??(a.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(u,d,h)=>{let p=yi(u),v;for(const y of d){if(y._zod.def.when){if(!y._zod.def.when(u))continue}else if(p)continue;const b=u.issues.length,w=y._zod.check(u);if(w instanceof Promise&&h?.async===!1)throw new Oi;if(v||w instanceof Promise)v=(v??Promise.resolve()).then(async()=>{await w,u.issues.length!==b&&(p||(p=yi(u,b)))});else{if(u.issues.length===b)continue;p||(p=yi(u,b))}}return v?v.then(()=>u):u},c=(u,d,h)=>{if(yi(u))return u.aborted=!0,u;const p=o(d,r,h);if(p instanceof Promise){if(h.async===!1)throw new Oi;return p.then(v=>e._zod.parse(v,h))}return e._zod.parse(p,h)};e._zod.run=(u,d)=>{if(d.skipChecks)return e._zod.parse(u,d);if(d.direction==="backward"){const p=e._zod.parse({value:u.value,issues:[]},{...d,skipChecks:!0});return p instanceof Promise?p.then(v=>c(v,u,d)):c(p,u,d)}const h=e._zod.parse(u,d);if(h instanceof Promise){if(d.async===!1)throw new Oi;return h.then(p=>o(p,r,d))}return o(h,r,d)}}e["~standard"]={validate:o=>{try{const c=C4(e,o);return c.success?{value:c.data}:{issues:c.error?.issues}}catch{return O4(e,o).then(u=>u.success?{value:u.data}:{issues:u.error?.issues})}},vendor:"zod",version:1}}),lg=ee("$ZodString",(e,t)=>{xt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??s3(e._zod.bag),e._zod.parse=(a,r)=>{if(t.coerce)try{a.value=String(a.value)}catch{}return typeof a.value=="string"||a.issues.push({expected:"string",code:"invalid_type",input:a.value,inst:e}),a}}),Je=ee("$ZodStringFormat",(e,t)=>{hd.init(e,t),lg.init(e,t)}),x3=ee("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=I4),Je.init(e,t)}),b3=ee("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=s1(r))}else t.pattern??(t.pattern=s1());Je.init(e,t)}),w3=ee("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=$4),Je.init(e,t)}),S3=ee("$ZodURL",(e,t)=>{Je.init(e,t),e._zod.check=a=>{try{const r=a.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:J4.source,input:a.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||a.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:a.value,inst:e,continue:!t.abort})),t.normalize?a.value=o.href:a.value=r;return}catch{a.issues.push({code:"invalid_format",format:"url",input:a.value,inst:e,continue:!t.abort})}}}),E3=ee("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=G4()),Je.init(e,t)}),T3=ee("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=q4),Je.init(e,t)}),_3=ee("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=L4),Je.init(e,t)}),A3=ee("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=B4),Je.init(e,t)}),C3=ee("$ZodULID",(e,t)=>{t.pattern??(t.pattern=H4),Je.init(e,t)}),O3=ee("$ZodXID",(e,t)=>{t.pattern??(t.pattern=U4),Je.init(e,t)}),j3=ee("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=V4),Je.init(e,t)}),M3=ee("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=a3(t)),Je.init(e,t)}),N3=ee("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=t3),Je.init(e,t)}),k3=ee("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=n3(t)),Je.init(e,t)}),z3=ee("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=K4),Je.init(e,t)}),R3=ee("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=F4),Je.init(e,t),e._zod.onattach.push(a=>{const r=a._zod.bag;r.format="ipv4"})}),D3=ee("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Q4),Je.init(e,t),e._zod.onattach.push(a=>{const r=a._zod.bag;r.format="ipv6"}),e._zod.check=a=>{try{new URL(`http://[${a.value}]`)}catch{a.issues.push({code:"invalid_format",format:"ipv6",input:a.value,inst:e,continue:!t.abort})}}}),P3=ee("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Y4),Je.init(e,t)}),L3=ee("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=X4),Je.init(e,t),e._zod.check=a=>{const r=a.value.split("/");try{if(r.length!==2)throw new Error;const[o,c]=r;if(!c)throw new Error;const u=Number(c);if(`${u}`!==c)throw new Error;if(u<0||u>128)throw new Error;new URL(`http://[${o}]`)}catch{a.issues.push({code:"invalid_format",format:"cidrv6",input:a.value,inst:e,continue:!t.abort})}}});function SE(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const B3=ee("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=W4),Je.init(e,t),e._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64"}),e._zod.check=a=>{SE(a.value)||a.issues.push({code:"invalid_format",format:"base64",input:a.value,inst:e,continue:!t.abort})}});function H3(e){if(!xE.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"=");return SE(a)}const U3=ee("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=xE),Je.init(e,t),e._zod.onattach.push(a=>{a._zod.bag.contentEncoding="base64url"}),e._zod.check=a=>{H3(a.value)||a.issues.push({code:"invalid_format",format:"base64url",input:a.value,inst:e,continue:!t.abort})}}),V3=ee("$ZodE164",(e,t)=>{t.pattern??(t.pattern=e3),Je.init(e,t)});function q3(e,t=null){try{const a=e.split(".");if(a.length!==3)return!1;const[r]=a;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const K3=ee("$ZodJWT",(e,t)=>{Je.init(e,t),e._zod.check=a=>{q3(a.value,t.alg)||a.issues.push({code:"invalid_format",format:"jwt",input:a.value,inst:e,continue:!t.abort})}}),I3=ee("$ZodUnknown",(e,t)=>{xt.init(e,t),e._zod.parse=a=>a}),$3=ee("$ZodNever",(e,t)=>{xt.init(e,t),e._zod.parse=(a,r)=>(a.issues.push({expected:"never",code:"invalid_type",input:a.value,inst:e}),a)});function r1(e,t,a){e.issues.length&&t.issues.push(...mE(a,e.issues)),t.value[a]=e.value}const Z3=ee("$ZodArray",(e,t)=>{xt.init(e,t),e._zod.parse=(a,r)=>{const o=a.value;if(!Array.isArray(o))return a.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),a;a.value=Array(o.length);const c=[];for(let u=0;u<o.length;u++){const d=o[u],h=t.element._zod.run({value:d,issues:[]},r);h instanceof Promise?c.push(h.then(p=>r1(p,a,u))):r1(h,a,u)}return c.length?Promise.all(c).then(()=>a):a}});function Pu(e,t,a,r){e.issues.length&&t.issues.push(...mE(a,e.issues)),e.value===void 0?a in r&&(t.value[a]=void 0):t.value[a]=e.value}function EE(e){const t=Object.keys(e.shape);for(const r of t)if(!e.shape?.[r]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${r}": expected a Zod schema`);const a=y4(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(a)}}function TE(e,t,a,r,o,c){const u=[],d=o.keySet,h=o.catchall._zod,p=h.def.type;for(const v of Object.keys(t)){if(d.has(v))continue;if(p==="never"){u.push(v);continue}const y=h.run({value:t[v],issues:[]},r);y instanceof Promise?e.push(y.then(b=>Pu(b,a,v,t))):Pu(y,a,v,t)}return u.length&&a.issues.push({code:"unrecognized_keys",keys:u,input:t,inst:c}),e.length?Promise.all(e).then(()=>a):a}const G3=ee("$ZodObject",(e,t)=>{if(xt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const d=t.shape;Object.defineProperty(t,"shape",{get:()=>{const h={...d};return Object.defineProperty(t,"shape",{value:h}),h}})}const r=ng(()=>EE(t));Fe(e._zod,"propValues",()=>{const d=t.shape,h={};for(const p in d){const v=d[p]._zod;if(v.values){h[p]??(h[p]=new Set);for(const y of v.values)h[p].add(y)}}return h});const o=Du,c=t.catchall;let u;e._zod.parse=(d,h)=>{u??(u=r.value);const p=d.value;if(!o(p))return d.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),d;d.value={};const v=[],y=u.shape;for(const b of u.keys){const T=y[b]._zod.run({value:p[b],issues:[]},h);T instanceof Promise?v.push(T.then(_=>Pu(_,d,b,p))):Pu(T,d,b,p)}return c?TE(v,p,d,h,r.value,e):v.length?Promise.all(v).then(()=>d):d}}),F3=ee("$ZodObjectJIT",(e,t)=>{G3.init(e,t);const a=e._zod.parse,r=ng(()=>EE(t)),o=b=>{const w=new y3(["shape","payload","ctx"]),T=r.value,_=A=>{const U=a1(A);return`shape[${U}]._zod.run({ value: input[${U}], issues: [] }, ctx)`};w.write("const input = payload.value;");const k=Object.create(null);let M=0;for(const A of T.keys)k[A]=`key_${M++}`;w.write("const newResult = {};");for(const A of T.keys){const U=k[A],B=a1(A);w.write(`const ${U} = ${_(A)};`),w.write(`
        if (${U}.issues.length) {
          payload.issues = payload.issues.concat(${U}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${B}, ...iss.path] : [${B}]
          })));
        }
        
        
        if (${U}.value === undefined) {
          if (${B} in input) {
            newResult[${B}] = undefined;
          }
        } else {
          newResult[${B}] = ${U}.value;
        }
        
      `)}w.write("payload.value = newResult;"),w.write("return payload;");const L=w.compile();return(A,U)=>L(b,A,U)};let c;const u=Du,d=!fE.jitless,p=d&&m4.value,v=t.catchall;let y;e._zod.parse=(b,w)=>{y??(y=r.value);const T=b.value;return u(T)?d&&p&&w?.async===!1&&w.jitless!==!0?(c||(c=o(t.shape)),b=c(b,w),v?TE([],T,b,w,y,e):b):a(b,w):(b.issues.push({expected:"object",code:"invalid_type",input:T,inst:e}),b)}});function i1(e,t,a,r){for(const c of e)if(c.issues.length===0)return t.value=c.value,t;const o=e.filter(c=>!yi(c));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:a,errors:e.map(c=>c.issues.map(u=>hr(u,r,fr())))}),t)}const Q3=ee("$ZodUnion",(e,t)=>{xt.init(e,t),Fe(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),Fe(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Fe(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),Fe(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(c=>c._zod.pattern);return new RegExp(`^(${o.map(c=>sg(c.source)).join("|")})$`)}});const a=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,c)=>{if(a)return r(o,c);let u=!1;const d=[];for(const h of t.options){const p=h._zod.run({value:o.value,issues:[]},c);if(p instanceof Promise)d.push(p),u=!0;else{if(p.issues.length===0)return p;d.push(p)}}return u?Promise.all(d).then(h=>i1(h,o,e,c)):i1(d,o,e,c)}}),Y3=ee("$ZodIntersection",(e,t)=>{xt.init(e,t),e._zod.parse=(a,r)=>{const o=a.value,c=t.left._zod.run({value:o,issues:[]},r),u=t.right._zod.run({value:o,issues:[]},r);return c instanceof Promise||u instanceof Promise?Promise.all([c,u]).then(([h,p])=>o1(a,h,p)):o1(a,c,u)}});function sm(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(pl(e)&&pl(t)){const a=Object.keys(t),r=Object.keys(e).filter(c=>a.indexOf(c)!==-1),o={...e,...t};for(const c of r){const u=sm(e[c],t[c]);if(!u.valid)return{valid:!1,mergeErrorPath:[c,...u.mergeErrorPath]};o[c]=u.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const a=[];for(let r=0;r<e.length;r++){const o=e[r],c=t[r],u=sm(o,c);if(!u.valid)return{valid:!1,mergeErrorPath:[r,...u.mergeErrorPath]};a.push(u.data)}return{valid:!0,data:a}}return{valid:!1,mergeErrorPath:[]}}function o1(e,t,a){if(t.issues.length&&e.issues.push(...t.issues),a.issues.length&&e.issues.push(...a.issues),yi(e))return e;const r=sm(t.value,a.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const X3=ee("$ZodEnum",(e,t)=>{xt.init(e,t);const a=p4(t.entries),r=new Set(a);e._zod.values=r,e._zod.pattern=new RegExp(`^(${a.filter(o=>g4.has(typeof o)).map(o=>typeof o=="string"?ud(o):o.toString()).join("|")})$`),e._zod.parse=(o,c)=>{const u=o.value;return r.has(u)||o.issues.push({code:"invalid_value",values:a,input:u,inst:e}),o}}),W3=ee("$ZodTransform",(e,t)=>{xt.init(e,t),e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new dE(e.constructor.name);const o=t.transform(a.value,a);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(u=>(a.value=u,a));if(o instanceof Promise)throw new Oi;return a.value=o,a}});function l1(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const J3=ee("$ZodOptional",(e,t)=>{xt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),Fe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${sg(a.source)})?$`):void 0}),e._zod.parse=(a,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(a,r);return o instanceof Promise?o.then(c=>l1(c,a.value)):l1(o,a.value)}return a.value===void 0?a:t.innerType._zod.run(a,r)}}),eR=ee("$ZodNullable",(e,t)=>{xt.init(e,t),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"pattern",()=>{const a=t.innerType._zod.pattern;return a?new RegExp(`^(${sg(a.source)}|null)$`):void 0}),Fe(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(a,r)=>a.value===null?a:t.innerType._zod.run(a,r)}),tR=ee("$ZodDefault",(e,t)=>{xt.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);if(a.value===void 0)return a.value=t.defaultValue,a;const o=t.innerType._zod.run(a,r);return o instanceof Promise?o.then(c=>c1(c,t)):c1(o,t)}});function c1(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const nR=ee("$ZodPrefault",(e,t)=>{xt.init(e,t),e._zod.optin="optional",Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>(r.direction==="backward"||a.value===void 0&&(a.value=t.defaultValue),t.innerType._zod.run(a,r))}),aR=ee("$ZodNonOptional",(e,t)=>{xt.init(e,t),Fe(e._zod,"values",()=>{const a=t.innerType._zod.values;return a?new Set([...a].filter(r=>r!==void 0)):void 0}),e._zod.parse=(a,r)=>{const o=t.innerType._zod.run(a,r);return o instanceof Promise?o.then(c=>u1(c,e)):u1(o,e)}});function u1(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const sR=ee("$ZodCatch",(e,t)=>{xt.init(e,t),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),Fe(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const o=t.innerType._zod.run(a,r);return o instanceof Promise?o.then(c=>(a.value=c.value,c.issues.length&&(a.value=t.catchValue({...a,error:{issues:c.issues.map(u=>hr(u,r,fr()))},input:a.value}),a.issues=[]),a)):(a.value=o.value,o.issues.length&&(a.value=t.catchValue({...a,error:{issues:o.issues.map(c=>hr(c,r,fr()))},input:a.value}),a.issues=[]),a)}}),rR=ee("$ZodPipe",(e,t)=>{xt.init(e,t),Fe(e._zod,"values",()=>t.in._zod.values),Fe(e._zod,"optin",()=>t.in._zod.optin),Fe(e._zod,"optout",()=>t.out._zod.optout),Fe(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(a,r)=>{if(r.direction==="backward"){const c=t.out._zod.run(a,r);return c instanceof Promise?c.then(u=>ru(u,t.in,r)):ru(c,t.in,r)}const o=t.in._zod.run(a,r);return o instanceof Promise?o.then(c=>ru(c,t.out,r)):ru(o,t.out,r)}});function ru(e,t,a){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},a)}const iR=ee("$ZodReadonly",(e,t)=>{xt.init(e,t),Fe(e._zod,"propValues",()=>t.innerType._zod.propValues),Fe(e._zod,"values",()=>t.innerType._zod.values),Fe(e._zod,"optin",()=>t.innerType._zod.optin),Fe(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(a,r)=>{if(r.direction==="backward")return t.innerType._zod.run(a,r);const o=t.innerType._zod.run(a,r);return o instanceof Promise?o.then(d1):d1(o)}});function d1(e){return e.value=Object.freeze(e.value),e}const oR=ee("$ZodCustom",(e,t)=>{da.init(e,t),xt.init(e,t),e._zod.parse=(a,r)=>a,e._zod.check=a=>{const r=a.value,o=t.fn(r);if(o instanceof Promise)return o.then(c=>f1(c,a,r,e));f1(o,a,r,e)}});function f1(e,t,a,r){if(!e){const o={code:"custom",input:a,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(ml(o))}}class lR{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...a){const r=a[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const a=this._map.get(t);return a&&typeof a=="object"&&"id"in a&&this._idmap.delete(a.id),this._map.delete(t),this}get(t){const a=t._zod.parent;if(a){const r={...this.get(a)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function cR(){return new lR}const iu=cR();function uR(e,t){return new e({type:"string",...Se(t)})}function dR(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...Se(t)})}function h1(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...Se(t)})}function fR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...Se(t)})}function hR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...Se(t)})}function pR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...Se(t)})}function mR(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...Se(t)})}function gR(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...Se(t)})}function yR(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...Se(t)})}function vR(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...Se(t)})}function xR(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...Se(t)})}function bR(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...Se(t)})}function wR(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...Se(t)})}function SR(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...Se(t)})}function ER(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...Se(t)})}function TR(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...Se(t)})}function _R(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...Se(t)})}function AR(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...Se(t)})}function CR(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...Se(t)})}function OR(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...Se(t)})}function jR(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...Se(t)})}function MR(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...Se(t)})}function NR(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...Se(t)})}function kR(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...Se(t)})}function zR(e,t){return new e({type:"string",format:"date",check:"string_format",...Se(t)})}function RR(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...Se(t)})}function DR(e,t){return new e({type:"string",format:"duration",check:"string_format",...Se(t)})}function PR(e){return new e({type:"unknown"})}function LR(e,t){return new e({type:"never",...Se(t)})}function _E(e,t){return new o3({check:"max_length",...Se(t),maximum:e})}function Lu(e,t){return new l3({check:"min_length",...Se(t),minimum:e})}function AE(e,t){return new c3({check:"length_equals",...Se(t),length:e})}function BR(e,t){return new u3({check:"string_format",format:"regex",...Se(t),pattern:e})}function HR(e){return new d3({check:"string_format",format:"lowercase",...Se(e)})}function UR(e){return new f3({check:"string_format",format:"uppercase",...Se(e)})}function VR(e,t){return new h3({check:"string_format",format:"includes",...Se(t),includes:e})}function qR(e,t){return new p3({check:"string_format",format:"starts_with",...Se(t),prefix:e})}function KR(e,t){return new m3({check:"string_format",format:"ends_with",...Se(t),suffix:e})}function Ol(e){return new g3({check:"overwrite",tx:e})}function IR(e){return Ol(t=>t.normalize(e))}function $R(){return Ol(e=>e.trim())}function ZR(){return Ol(e=>e.toLowerCase())}function GR(){return Ol(e=>e.toUpperCase())}function FR(e,t,a){return new e({type:"array",element:t,...Se(a)})}function QR(e,t,a){return new e({type:"custom",check:"custom",fn:t,...Se(a)})}function YR(e){const t=XR(a=>(a.addIssue=r=>{if(typeof r=="string")a.issues.push(ml(r,a.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=a.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),a.issues.push(ml(o))}},e(a.value,a)));return t}function XR(e,t){const a=new da({check:"custom",...Se(t)});return a._zod.check=e,a}const WR=ee("ZodISODateTime",(e,t)=>{M3.init(e,t),nt.init(e,t)});function JR(e){return kR(WR,e)}const eD=ee("ZodISODate",(e,t)=>{N3.init(e,t),nt.init(e,t)});function tD(e){return zR(eD,e)}const nD=ee("ZodISOTime",(e,t)=>{k3.init(e,t),nt.init(e,t)});function aD(e){return RR(nD,e)}const sD=ee("ZodISODuration",(e,t)=>{z3.init(e,t),nt.init(e,t)});function rD(e){return DR(sD,e)}const iD=(e,t)=>{yE.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:a=>A4(e,a)},flatten:{value:a=>_4(e,a)},addIssue:{value:a=>{e.issues.push(a),e.message=JSON.stringify(e.issues,am,2)}},addIssues:{value:a=>{e.issues.push(...a),e.message=JSON.stringify(e.issues,am,2)}},isEmpty:{get(){return e.issues.length===0}}})},zn=ee("ZodError",iD,{Parent:Error}),oD=ig(zn),lD=og(zn),cD=dd(zn),uD=fd(zn),dD=j4(zn),fD=M4(zn),hD=N4(zn),pD=k4(zn),mD=z4(zn),gD=R4(zn),yD=D4(zn),vD=P4(zn),Tt=ee("ZodType",(e,t)=>(xt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...a)=>e.clone(wr(t,{checks:[...t.checks??[],...a.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(a,r)=>Os(e,a,r),e.brand=()=>e,e.register=((a,r)=>(a.add(e,r),e)),e.parse=(a,r)=>oD(e,a,r,{callee:e.parse}),e.safeParse=(a,r)=>cD(e,a,r),e.parseAsync=async(a,r)=>lD(e,a,r,{callee:e.parseAsync}),e.safeParseAsync=async(a,r)=>uD(e,a,r),e.spa=e.safeParseAsync,e.encode=(a,r)=>dD(e,a,r),e.decode=(a,r)=>fD(e,a,r),e.encodeAsync=async(a,r)=>hD(e,a,r),e.decodeAsync=async(a,r)=>pD(e,a,r),e.safeEncode=(a,r)=>mD(e,a,r),e.safeDecode=(a,r)=>gD(e,a,r),e.safeEncodeAsync=async(a,r)=>yD(e,a,r),e.safeDecodeAsync=async(a,r)=>vD(e,a,r),e.refine=(a,r)=>e.check(c6(a,r)),e.superRefine=a=>e.check(u6(a)),e.overwrite=a=>e.check(Ol(a)),e.optional=()=>g1(e),e.nullable=()=>y1(e),e.nullish=()=>g1(y1(e)),e.nonoptional=a=>n6(e,a),e.array=()=>VD(e),e.or=a=>$D([e,a]),e.and=a=>GD(e,a),e.transform=a=>v1(e,YD(a)),e.default=a=>JD(e,a),e.prefault=a=>t6(e,a),e.catch=a=>s6(e,a),e.pipe=a=>v1(e,a),e.readonly=()=>o6(e),e.describe=a=>{const r=e.clone();return iu.add(r,{description:a}),r},Object.defineProperty(e,"description",{get(){return iu.get(e)?.description},configurable:!0}),e.meta=(...a)=>{if(a.length===0)return iu.get(e);const r=e.clone();return iu.add(r,a[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),CE=ee("_ZodString",(e,t)=>{lg.init(e,t),Tt.init(e,t);const a=e._zod.bag;e.format=a.format??null,e.minLength=a.minimum??null,e.maxLength=a.maximum??null,e.regex=(...r)=>e.check(BR(...r)),e.includes=(...r)=>e.check(VR(...r)),e.startsWith=(...r)=>e.check(qR(...r)),e.endsWith=(...r)=>e.check(KR(...r)),e.min=(...r)=>e.check(Lu(...r)),e.max=(...r)=>e.check(_E(...r)),e.length=(...r)=>e.check(AE(...r)),e.nonempty=(...r)=>e.check(Lu(1,...r)),e.lowercase=r=>e.check(HR(r)),e.uppercase=r=>e.check(UR(r)),e.trim=()=>e.check($R()),e.normalize=(...r)=>e.check(IR(...r)),e.toLowerCase=()=>e.check(ZR()),e.toUpperCase=()=>e.check(GR())}),xD=ee("ZodString",(e,t)=>{lg.init(e,t),CE.init(e,t),e.email=a=>e.check(dR(bD,a)),e.url=a=>e.check(gR(wD,a)),e.jwt=a=>e.check(NR(PD,a)),e.emoji=a=>e.check(yR(SD,a)),e.guid=a=>e.check(h1(p1,a)),e.uuid=a=>e.check(fR(ou,a)),e.uuidv4=a=>e.check(hR(ou,a)),e.uuidv6=a=>e.check(pR(ou,a)),e.uuidv7=a=>e.check(mR(ou,a)),e.nanoid=a=>e.check(vR(ED,a)),e.guid=a=>e.check(h1(p1,a)),e.cuid=a=>e.check(xR(TD,a)),e.cuid2=a=>e.check(bR(_D,a)),e.ulid=a=>e.check(wR(AD,a)),e.base64=a=>e.check(OR(zD,a)),e.base64url=a=>e.check(jR(RD,a)),e.xid=a=>e.check(SR(CD,a)),e.ksuid=a=>e.check(ER(OD,a)),e.ipv4=a=>e.check(TR(jD,a)),e.ipv6=a=>e.check(_R(MD,a)),e.cidrv4=a=>e.check(AR(ND,a)),e.cidrv6=a=>e.check(CR(kD,a)),e.e164=a=>e.check(MR(DD,a)),e.datetime=a=>e.check(JR(a)),e.date=a=>e.check(tD(a)),e.time=a=>e.check(aD(a)),e.duration=a=>e.check(rD(a))});function vi(e){return uR(xD,e)}const nt=ee("ZodStringFormat",(e,t)=>{Je.init(e,t),CE.init(e,t)}),bD=ee("ZodEmail",(e,t)=>{w3.init(e,t),nt.init(e,t)}),p1=ee("ZodGUID",(e,t)=>{x3.init(e,t),nt.init(e,t)}),ou=ee("ZodUUID",(e,t)=>{b3.init(e,t),nt.init(e,t)}),wD=ee("ZodURL",(e,t)=>{S3.init(e,t),nt.init(e,t)}),SD=ee("ZodEmoji",(e,t)=>{E3.init(e,t),nt.init(e,t)}),ED=ee("ZodNanoID",(e,t)=>{T3.init(e,t),nt.init(e,t)}),TD=ee("ZodCUID",(e,t)=>{_3.init(e,t),nt.init(e,t)}),_D=ee("ZodCUID2",(e,t)=>{A3.init(e,t),nt.init(e,t)}),AD=ee("ZodULID",(e,t)=>{C3.init(e,t),nt.init(e,t)}),CD=ee("ZodXID",(e,t)=>{O3.init(e,t),nt.init(e,t)}),OD=ee("ZodKSUID",(e,t)=>{j3.init(e,t),nt.init(e,t)}),jD=ee("ZodIPv4",(e,t)=>{R3.init(e,t),nt.init(e,t)}),MD=ee("ZodIPv6",(e,t)=>{D3.init(e,t),nt.init(e,t)}),ND=ee("ZodCIDRv4",(e,t)=>{P3.init(e,t),nt.init(e,t)}),kD=ee("ZodCIDRv6",(e,t)=>{L3.init(e,t),nt.init(e,t)}),zD=ee("ZodBase64",(e,t)=>{B3.init(e,t),nt.init(e,t)}),RD=ee("ZodBase64URL",(e,t)=>{U3.init(e,t),nt.init(e,t)}),DD=ee("ZodE164",(e,t)=>{V3.init(e,t),nt.init(e,t)}),PD=ee("ZodJWT",(e,t)=>{K3.init(e,t),nt.init(e,t)}),LD=ee("ZodUnknown",(e,t)=>{I3.init(e,t),Tt.init(e,t)});function m1(){return PR(LD)}const BD=ee("ZodNever",(e,t)=>{$3.init(e,t),Tt.init(e,t)});function HD(e){return LR(BD,e)}const UD=ee("ZodArray",(e,t)=>{Z3.init(e,t),Tt.init(e,t),e.element=t.element,e.min=(a,r)=>e.check(Lu(a,r)),e.nonempty=a=>e.check(Lu(1,a)),e.max=(a,r)=>e.check(_E(a,r)),e.length=(a,r)=>e.check(AE(a,r)),e.unwrap=()=>e.element});function VD(e,t){return FR(UD,e,t)}const qD=ee("ZodObject",(e,t)=>{F3.init(e,t),Tt.init(e,t),Fe(e,"shape",()=>t.shape),e.keyof=()=>FD(Object.keys(e._zod.def.shape)),e.catchall=a=>e.clone({...e._zod.def,catchall:a}),e.passthrough=()=>e.clone({...e._zod.def,catchall:m1()}),e.loose=()=>e.clone({...e._zod.def,catchall:m1()}),e.strict=()=>e.clone({...e._zod.def,catchall:HD()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=a=>b4(e,a),e.safeExtend=a=>w4(e,a),e.merge=a=>S4(e,a),e.pick=a=>v4(e,a),e.omit=a=>x4(e,a),e.partial=(...a)=>E4(OE,e,a[0]),e.required=(...a)=>T4(jE,e,a[0])});function KD(e,t){const a={type:"object",shape:e??{},...Se(t)};return new qD(a)}const ID=ee("ZodUnion",(e,t)=>{Q3.init(e,t),Tt.init(e,t),e.options=t.options});function $D(e,t){return new ID({type:"union",options:e,...Se(t)})}const ZD=ee("ZodIntersection",(e,t)=>{Y3.init(e,t),Tt.init(e,t)});function GD(e,t){return new ZD({type:"intersection",left:e,right:t})}const rm=ee("ZodEnum",(e,t)=>{X3.init(e,t),Tt.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const a=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const c={};for(const u of r)if(a.has(u))c[u]=t.entries[u];else throw new Error(`Key ${u} not found in enum`);return new rm({...t,checks:[],...Se(o),entries:c})},e.exclude=(r,o)=>{const c={...t.entries};for(const u of r)if(a.has(u))delete c[u];else throw new Error(`Key ${u} not found in enum`);return new rm({...t,checks:[],...Se(o),entries:c})}});function FD(e,t){const a=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new rm({type:"enum",entries:a,...Se(t)})}const QD=ee("ZodTransform",(e,t)=>{W3.init(e,t),Tt.init(e,t),e._zod.parse=(a,r)=>{if(r.direction==="backward")throw new dE(e.constructor.name);a.addIssue=c=>{if(typeof c=="string")a.issues.push(ml(c,a.value,t));else{const u=c;u.fatal&&(u.continue=!1),u.code??(u.code="custom"),u.input??(u.input=a.value),u.inst??(u.inst=e),a.issues.push(ml(u))}};const o=t.transform(a.value,a);return o instanceof Promise?o.then(c=>(a.value=c,a)):(a.value=o,a)}});function YD(e){return new QD({type:"transform",transform:e})}const OE=ee("ZodOptional",(e,t)=>{J3.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function g1(e){return new OE({type:"optional",innerType:e})}const XD=ee("ZodNullable",(e,t)=>{eR.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function y1(e){return new XD({type:"nullable",innerType:e})}const WD=ee("ZodDefault",(e,t)=>{tR.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function JD(e,t){return new WD({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():pE(t)}})}const e6=ee("ZodPrefault",(e,t)=>{nR.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function t6(e,t){return new e6({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():pE(t)}})}const jE=ee("ZodNonOptional",(e,t)=>{aR.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function n6(e,t){return new jE({type:"nonoptional",innerType:e,...Se(t)})}const a6=ee("ZodCatch",(e,t)=>{sR.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function s6(e,t){return new a6({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const r6=ee("ZodPipe",(e,t)=>{rR.init(e,t),Tt.init(e,t),e.in=t.in,e.out=t.out});function v1(e,t){return new r6({type:"pipe",in:e,out:t})}const i6=ee("ZodReadonly",(e,t)=>{iR.init(e,t),Tt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function o6(e){return new i6({type:"readonly",innerType:e})}const l6=ee("ZodCustom",(e,t)=>{oR.init(e,t),Tt.init(e,t)});function c6(e,t={}){return QR(l6,e,t)}function u6(e){return YR(e)}const ME=200,NE=512,pd=512;function pi(e,t=ME){if(typeof e!="string")return;const a=e.replace(/[\x00-\x1F\x7F-\x9F]/g,"").replace(/[^A-Za-z0-9äöüÄÖÜß._~:/?#[\]@!$'()*+,;=%\- ]/g,"").trim().slice(0,t).trim();return a.length>0?a:void 0}function kE(e){if(typeof e!="string")return;const t=e.trim();if(!(t.length===0||t.length>NE)&&/^[A-Za-z0-9._~\-=+/%]+$/.test(t))return t}function cg(e,t=pd){if(typeof e!="string")return;let a=e.trim();if(a.length===0)return;try{/^https?:\/\//i.test(a)&&(a=new URL(a).pathname)}catch{return}if(a=a.split("?")[0].split("#")[0],!a.startsWith("/"))return;const r=a.replace(/[\x00-\x1F\x7F-\x9F]/g,"").replace(/[^A-Za-z0-9\-._~/%]/g,"").slice(0,t);return r.length>0?r:void 0}function zE(e,t=pd){if(typeof e!="string")return;const a=e.trim();if(a.length!==0)try{const r=new URL(a);return r.protocol!=="http:"&&r.protocol!=="https:"?void 0:`${r.origin}${r.pathname}`.slice(0,t)}catch{return}}const d6=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;function f6(e){return typeof e=="string"&&d6.test(e)}const Fo=vi().max(ME*4).optional().transform(e=>pi(e)),x1=vi().max(pd*4).optional().transform(e=>cg(e));KD({leadId:vi().refine(f6,"Ungültige Lead-ID"),utmSource:Fo,utmMedium:Fo,utmCampaign:Fo,utmContent:Fo,utmTerm:Fo,oppref:vi().max(NE*2).optional().transform(e=>kE(e)),firstLandingPage:x1,submitPage:x1,referrer:vi().max(pd*4).optional().transform(e=>zE(e)),firstSeenAt:vi().datetime().optional()}).optional();const Bu=2,ug="stusche_consent_v2",RE="stusche_cookie_consent",DE="stusche_analytics_consent",im="stusche:consent-changed",om="stusche:consent-open";function md(){return typeof window<"u"&&typeof document<"u"}function dg(){if(!md())return null;try{const e=window.localStorage.getItem(ug);if(e){const t=JSON.parse(e);if(t&&t.version===Bu)return{necessary:!0,statistics:t.statistics===!0,marketing:t.marketing===!0,version:Bu,updatedAt:typeof t.updatedAt=="string"?t.updatedAt:new Date().toISOString()}}return h6()}catch{return null}}function h6(){try{if(!window.localStorage.getItem(RE))return null;const a={necessary:!0,statistics:window.localStorage.getItem(DE)==="accepted",marketing:!1,version:Bu,updatedAt:new Date().toISOString()};return window.localStorage.setItem(ug,JSON.stringify(a)),a}catch{return null}}function p6(){return dg()?.statistics===!0}function jl(){return dg()?.marketing===!0}function m6(e){const t={necessary:!0,statistics:e.statistics===!0,marketing:e.marketing===!0,version:Bu,updatedAt:new Date().toISOString()};if(md()){try{window.localStorage.setItem(ug,JSON.stringify(t)),window.localStorage.removeItem(RE),window.localStorage.removeItem(DE)}catch{}window.dispatchEvent(new CustomEvent(im,{detail:t}))}return t}function g6(e){if(!md())return()=>{};const t=a=>e(a.detail);return window.addEventListener(im,t),()=>window.removeEventListener(im,t)}function y6(){md()&&window.dispatchEvent(new CustomEvent(om))}const fg="stusche_attr_v1";let On=null,lm=!1;function _s(){return typeof window<"u"&&typeof document<"u"}function v6(){if(!_s())return null;try{const e=window.sessionStorage.getItem(fg);if(!e)return null;const t=JSON.parse(e);return t&&typeof t=="object"?t:null}catch{return null}}function ip(e){if(!(!_s()||!jl()))try{window.sessionStorage.setItem(fg,JSON.stringify(e))}catch{}}function x6(){if(_s())try{window.sessionStorage.removeItem(fg)}catch{}}function b6(e){const t={};let a;try{a=new URLSearchParams(e)}catch{return t}const r=pi(a.get("utm_source")??void 0),o=pi(a.get("utm_medium")??void 0),c=pi(a.get("utm_campaign")??void 0),u=pi(a.get("utm_content")??void 0),d=pi(a.get("utm_term")??void 0),h=kE(a.get("oppref")??void 0);return r&&(t.utmSource=r),o&&(t.utmMedium=o),c&&(t.utmCampaign=c),u&&(t.utmContent=u),d&&(t.utmTerm=d),h&&(t.oppref=h),t}function b1(e){return!!(e.utmSource||e.utmMedium||e.utmCampaign||e.utmContent||e.utmTerm||e.oppref)}function PE(){if(!_s())return;if(!On){const t=jl()?v6():null;t&&(On=t)}const e=b6(window.location.search);On?!b1(On)&&b1(e)&&(On={...On,...e},ip(On)):(On={...e,firstLandingPage:cg(window.location.pathname),referrer:zE(document.referrer),firstSeenAt:new Date().toISOString()},ip(On)),!lm&&(lm=!0,g6(t=>{t.marketing&&On&&ip(On),t.marketing||x6()}))}function w6(){return!lm&&_s()&&PE(),On}function cm(){if(_s()&&typeof window.crypto?.randomUUID=="function")return window.crypto.randomUUID();const e=new Uint8Array(16);if(_s()&&window.crypto?.getRandomValues)window.crypto.getRandomValues(e);else for(let a=0;a<16;a++)e[a]=Math.floor(Math.random()*256);e[6]=e[6]&15|64,e[8]=e[8]&63|128;const t=Array.from(e,a=>a.toString(16).padStart(2,"0")).join("");return`${t.slice(0,8)}-${t.slice(8,12)}-${t.slice(12,16)}-${t.slice(16,20)}-${t.slice(20)}`}function LE(e){const t=w6()??{};return{leadId:e,...t,submitPage:_s()?cg(window.location.pathname):void 0,submittedAt:new Date().toISOString()}}/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),BE=(...e)=>e.filter((t,a,r)=>!!t&&r.indexOf(t)===a).join(" ");/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var E6={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.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T6=S.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:c,iconNode:u,...d},h)=>S.createElement("svg",{ref:h,...E6,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:BE("lucide",o),...d},[...u.map(([p,v])=>S.createElement(p,v)),...Array.isArray(c)?c:[c]]));/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ae=(e,t)=>{const a=S.forwardRef(({className:r,...o},c)=>S.createElement(T6,{ref:c,iconNode:t,className:BE(`lucide-${S6(e)}`,r),...o}));return a.displayName=`${e}`,a};/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _6=Ae("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A6=Ae("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hn=Ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HE=Ae("Award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C6=Ae("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gd=Ae("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O6=Ae("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xu=Ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hi=Ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j6=Ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vs=Ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M6=Ae("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N6=Ae("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hu=Ae("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hg=Ae("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UE=Ae("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k6=Ae("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z6=Ae("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R6=Ae("LayoutGrid",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D6=Ae("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pg=Ae("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uu=Ae("MapPin",[["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"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P6=Ae("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L6=Ae("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VE=Ae("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qE=Ae("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mg=Ae("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ra=Ae("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B6=Ae("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H6=Ae("Ruler",[["path",{d:"M21.3 15.3a2.4 2.4 0 0 1 0 3.4l-2.6 2.6a2.4 2.4 0 0 1-3.4 0L2.7 8.7a2.41 2.41 0 0 1 0-3.4l2.6-2.6a2.41 2.41 0 0 1 3.4 0Z",key:"icamh8"}],["path",{d:"m14.5 12.5 2-2",key:"inckbg"}],["path",{d:"m11.5 9.5 2-2",key:"fmmyf7"}],["path",{d:"m8.5 6.5 2-2",key:"vc6u1g"}],["path",{d:"m17.5 15.5 2-2",key:"wo5hmg"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const U6=Ae("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vu=Ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V6=Ae("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q6=Ae("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K6=Ae("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I6=Ae("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KE=Ae("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $6=Ae("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z6=Ae("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IE=Ae("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gg=Ae("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $E=Ae("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
 * @license lucide-react v0.453.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pr=Ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class G6 extends S.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?g.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:g.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[g.jsx($6,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),g.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),g.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:g.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),g.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:Lz("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[g.jsx(B6,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const ZE=S.createContext(null);function F6({children:e}){const[t,a]=S.useState(!1),[r,o]=S.useState(null),c=S.useCallback(d=>{f4(d.sourceLabel),o(d),a(!0),document.body.style.overflow="hidden"},[]),u=S.useCallback(()=>{a(!1),document.body.style.overflow="",setTimeout(()=>o(null),300)},[]);return g.jsx(ZE.Provider,{"data-loc":"client/src/contexts/WizardContext.tsx:37",value:{isOpen:t,wizardCtx:r,openWizard:c,closeWizard:u},children:e})}function yd(){const e=S.useContext(ZE);if(!e)throw new Error("useWizard must be used within WizardProvider");return e}const Q6="https://bzrcdn.openai.com/sdk/oaiq.min.js";function GE(){return""}function qu(){return GE().length>0}let Vn="idle",ir=[];const w1=new Set;function Y6(){const e=ir;ir=[];for(const t of e)try{t()}catch(a){console.warn("[OpenAIAds] Event konnte nicht gesendet werden:",a)}}function FE(){if(typeof window>"u"||typeof document>"u"||Vn!=="idle"||!qu()||!jl())return;Vn="loading";const e=document.createElement("script");e.src=Q6,e.async=!0,e.onload=()=>{if(typeof window.oaiq!="function"){Vn="failed",ir=[];return}try{window.oaiq("init",{pixelId:GE()}),Vn="ready",Y6()}catch(t){Vn="failed",ir=[],console.warn("[OpenAIAds] Initialisierung fehlgeschlagen:",t)}},e.onerror=()=>{Vn="failed",ir=[]},document.head.appendChild(e)}function QE(e){if(typeof window>"u"||!qu()||!jl()||!e||w1.has(e))return;w1.add(e);const t=()=>{typeof window.oaiq=="function"&&window.oaiq("measure","lead_created",{type:"customer_action"},{event_id:e})};if(Vn==="ready"){t();return}Vn!=="failed"&&(ir.push(t),Vn==="idle"&&FE())}function X6(){ir=[],Vn==="loading"&&(Vn="failed")}function W6(e,t){switch(t.type){case"LOADED":return{phase:"steps",currentStep:t.startStep??0,answers:{}};case"NEXT":return e.phase!=="steps"?e:{phase:"steps",currentStep:e.currentStep+1,answers:t.answers};case"BACK":return e.phase!=="steps"||e.currentStep===0?e:{phase:"steps",currentStep:e.currentStep-1,answers:e.answers};case"GO_CONTACT":return{phase:"contact",answers:t.answers};case"SUCCESS":return{phase:"success"};case"RESET":return{phase:"loading"};default:return e}}function J6(){const{isOpen:e,wizardCtx:t,closeWizard:a}=yd(),[r,o]=S.useReducer(W6,{phase:"loading"}),[c,u]=S.useState({}),[d,h]=S.useState({name:"",email:"",phone:"",practice:"",message:"",strasse:"",plz:"",ort:""}),[p,v]=S.useState(null),y=S.useRef(null),b=Object.values(c).some(O=>O.includes("post")),[w,T]=S.useState(""),_=S.useRef(0),k=S.useRef(""),M=Mi.wizard.getConfig.useQuery({configKey:t?.configKey??"general_contact"},{enabled:e&&!!t}),L=Mi.wizard.submit.useMutation({onSuccess:()=>{o({type:"SUCCESS"});const O=t?.sourceLabel??"Wizard";uE(lE.BERATUNG_ANFRAGE,O,k.current),QE(k.current)},onError:O=>v(O.message)});if(S.useEffect(()=>{e&&t&&(u(t.preselect??{}),h({name:"",email:"",phone:"",practice:"",message:"",strasse:"",plz:"",ort:""}),v(null),T(""),_.current=Date.now(),k.current=cm(),h4(t.sourceLabel,k.current),o({type:"RESET"}))},[e,t]),S.useEffect(()=>{M.data&&r.phase==="loading"&&o({type:"LOADED",startStep:0})},[M.data,r.phase,t]),S.useEffect(()=>{const O=D=>{D.key==="Escape"&&a()};return e&&document.addEventListener("keydown",O),()=>document.removeEventListener("keydown",O)},[e,a]),!e||!t)return null;const A=M.data?.steps??[],U=A.length,B=(O,D,P)=>{u(ne=>{const oe=ne[O]??[];if(P==="radio")return{...ne,[O]:[D]};const j=oe.includes(D);return{...ne,[O]:j?oe.filter(G=>G!==D):[...oe,D]}})},V=()=>{if(r.phase!=="steps")return;r.currentStep+1>=U?o({type:"GO_CONTACT",answers:c}):o({type:"NEXT",answers:c,totalSteps:U})},C=()=>{r.phase==="contact"?(o({type:"NEXT",answers:c,totalSteps:U-1}),setTimeout(()=>{o({phase:"steps",currentStep:U-1,answers:c})},0)):r.phase==="steps"&&r.currentStep>0&&o({type:"BACK"})},R=()=>{if(!d.name.trim()){v("Bitte geben Sie Ihren Namen ein.");return}if(!d.email.trim()){v("Bitte geben Sie Ihre E-Mail-Adresse an.");return}if(!d.phone.trim()){v("Bitte geben Sie Ihre Telefonnummer an.");return}if(!d.plz.trim()){v("Bitte geben Sie Ihre Postleitzahl an.");return}if(!d.ort.trim()){v("Bitte geben Sie Ihren Ort an.");return}if(b&&!d.strasse.trim()){v("Bitte geben Sie Ihre Straße und Hausnummer an.");return}v(null),L.mutate({configKey:t.configKey,sourceLabel:t.sourceLabel,answers:c,name:d.name,email:d.email||void 0,phone:d.phone||void 0,practice:d.practice||void 0,message:d.message||void 0,strasse:d.strasse||void 0,plz:d.plz||void 0,ort:d.ort||void 0,_hp:w,_openedAt:_.current,tracking:LE(k.current)})},X=U+1,J=r.phase==="contact"?U:r.phase==="steps"?r.currentStep:0,re=X>0?Math.round(J/X*100):0,te=r.phase==="steps"?A[r.currentStep]:null,le=te?c[te.id]??[]:[],ie=!te||le.length>0,ue=r.phase==="contact"||r.phase==="steps"&&r.currentStep>0;return g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:212",ref:y,className:"wiz-overlay",onClick:O=>{O.target===y.current&&a()},role:"dialog","aria-modal":"true","aria-label":t.sourceLabel,children:g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:220",className:"wiz-panel",children:[g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:223",className:"wiz-header",children:[g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:224",children:[g.jsx("p",{"data-loc":"client/src/components/ContactWizardModal.tsx:225",className:"wiz-header-label",children:"Anfrage"}),g.jsx("h2",{"data-loc":"client/src/components/ContactWizardModal.tsx:226",className:"wiz-header-title",children:t.sourceLabel})]}),g.jsx("button",{"data-loc":"client/src/components/ContactWizardModal.tsx:228",onClick:a,className:"wiz-close-btn","aria-label":"Schließen",children:g.jsx(pr,{"data-loc":"client/src/components/ContactWizardModal.tsx:233",size:18})})]}),r.phase!=="success"&&g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:239",className:"wiz-progress-track",children:g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:240",className:"wiz-progress-fill",style:{width:`${re}%`}})}),r.phase!=="success"&&U>0&&g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:246",className:"wiz-steps-row",children:[Array.from({length:X}).map((O,D)=>{const P=D<J,ne=D===J;return g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:251",className:"flex items-center gap-2",children:[g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:252",className:`wiz-step-dot ${P?"wiz-step-dot--done":ne?"wiz-step-dot--active":"wiz-step-dot--pending"}`,children:P?g.jsx(xu,{"data-loc":"client/src/components/ContactWizardModal.tsx:259",size:10,strokeWidth:3}):D+1}),D<X-1&&g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:262",className:`wiz-step-connector ${P?"wiz-step-connector--done":"wiz-step-connector--pending"}`})]},D)}),g.jsx("span",{"data-loc":"client/src/components/ContactWizardModal.tsx:267",className:"wiz-step-counter",children:J<X?`${J+1} / ${X}`:""})]}),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:276",className:"wiz-content","aria-live":"polite","aria-atomic":"false",children:[(r.phase==="loading"||M.isLoading)&&g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:280",className:"wiz-loading",children:g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:281",className:"wiz-spinner"})}),r.phase==="steps"&&te&&g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:287",children:[g.jsx("h3",{"data-loc":"client/src/components/ContactWizardModal.tsx:288",className:"wiz-step-title",children:te.title}),te.subtitle&&g.jsx("p",{"data-loc":"client/src/components/ContactWizardModal.tsx:290",className:"wiz-step-subtitle",children:te.subtitle}),g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:292",children:te.options.map(O=>{const D=le.includes(O.id);return g.jsxs("button",{"data-loc":"client/src/components/ContactWizardModal.tsx:296",onClick:()=>B(te.id,O.id,te.type),className:`wiz-option${D?" wiz-option--selected":""}`,children:[g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:301",className:`wiz-option-indicator ${te.type==="radio"?"wiz-option-indicator--radio":"wiz-option-indicator--checkbox"}${D?" wiz-option-indicator--selected":""}`,children:D&&g.jsx(xu,{"data-loc":"client/src/components/ContactWizardModal.tsx:308",size:10,color:"white",strokeWidth:3})}),g.jsx("span",{"data-loc":"client/src/components/ContactWizardModal.tsx:310",className:"wiz-option-label",children:O.label})]},O.id)})})]}),r.phase==="contact"&&g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:320",children:[g.jsx("h3",{"data-loc":"client/src/components/ContactWizardModal.tsx:321",className:"wiz-contact-title",children:"Ihre Kontaktdaten"}),g.jsx("p",{"data-loc":"client/src/components/ContactWizardModal.tsx:322",className:"wiz-contact-subtitle",children:"Wir melden uns schnellstmöglich bei Ihnen."}),[{key:"name",label:"Name *",Icon:IE,placeholder:"Dr. Max Mustermann",type:"text",autoComplete:"name"},{key:"email",label:"E-Mail *",Icon:pg,placeholder:"praxis@beispiel.de",type:"email",autoComplete:"email"},{key:"phone",label:"Telefon *",Icon:Ra,placeholder:"+49 30 123456",type:"tel",autoComplete:"tel"},{key:"practice",label:"Praxisname",Icon:gd,placeholder:"Gemeinschaftspraxis Muster",type:"text",autoComplete:"organization"}].map(({key:O,label:D,Icon:P,placeholder:ne,type:oe,autoComplete:j})=>g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:330",children:[g.jsx("label",{"data-loc":"client/src/components/ContactWizardModal.tsx:331",className:"wiz-field-label",children:D}),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:332",className:"wiz-input-wrap",children:[g.jsx(P,{"data-loc":"client/src/components/ContactWizardModal.tsx:333",size:14,className:"wiz-input-icon"}),g.jsx("input",{"data-loc":"client/src/components/ContactWizardModal.tsx:334",type:oe,name:O,autoComplete:j,placeholder:ne,value:d[O],onChange:G=>h(I=>({...I,[O]:G.target.value})),className:"wiz-input"})]})]},O)),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:348",className:"wiz-address-row",children:[g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:349",style:{flex:"0 0 38%"},children:[g.jsx("label",{"data-loc":"client/src/components/ContactWizardModal.tsx:350",className:"wiz-field-label",children:"PLZ *"}),g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:351",className:"wiz-input-wrap",children:g.jsx("input",{"data-loc":"client/src/components/ContactWizardModal.tsx:352",type:"text",name:"plz",autoComplete:"postal-code",placeholder:"12345",value:d.plz,onChange:O=>h(D=>({...D,plz:O.target.value})),className:"wiz-input wiz-input-no-icon",maxLength:10})})]}),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:364",style:{flex:"1"},children:[g.jsx("label",{"data-loc":"client/src/components/ContactWizardModal.tsx:365",className:"wiz-field-label",children:"Ort *"}),g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:366",className:"wiz-input-wrap",children:g.jsx("input",{"data-loc":"client/src/components/ContactWizardModal.tsx:367",type:"text",name:"ort",autoComplete:"address-level2",placeholder:"Berlin",value:d.ort,onChange:O=>h(D=>({...D,ort:O.target.value})),className:"wiz-input wiz-input-no-icon"})})]})]}),b&&g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:382",className:"wiz-address-section",children:[g.jsxs("p",{"data-loc":"client/src/components/ContactWizardModal.tsx:383",className:"wiz-address-hint",children:[g.jsx(Uu,{"data-loc":"client/src/components/ContactWizardModal.tsx:384",size:13,className:"inline mr-1 text-blue-500","aria-hidden":"true"}),"Lieferadresse für den Katalogversand per Post"]}),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:387",children:[g.jsx("label",{"data-loc":"client/src/components/ContactWizardModal.tsx:388",className:"wiz-field-label",children:"Straße & Hausnummer *"}),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:389",className:"wiz-input-wrap",children:[g.jsx(Uu,{"data-loc":"client/src/components/ContactWizardModal.tsx:390",size:14,className:"wiz-input-icon"}),g.jsx("input",{"data-loc":"client/src/components/ContactWizardModal.tsx:391",type:"text",name:"strasse",autoComplete:"street-address",placeholder:"Musterstraße 12",value:d.strasse,onChange:O=>h(D=>({...D,strasse:O.target.value})),className:"wiz-input"})]})]})]}),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:405",children:[g.jsx("label",{"data-loc":"client/src/components/ContactWizardModal.tsx:406",className:"wiz-field-label",children:"Nachricht (optional)"}),g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:407",className:"wiz-input-wrap",children:[g.jsx(VE,{"data-loc":"client/src/components/ContactWizardModal.tsx:408",size:14,className:"wiz-textarea-icon"}),g.jsx("textarea",{"data-loc":"client/src/components/ContactWizardModal.tsx:409",placeholder:"Weitere Informationen oder Fragen...",value:d.message,onChange:O=>h(D=>({...D,message:O.target.value})),rows:3,className:"wiz-textarea"})]})]}),p&&g.jsx("p",{"data-loc":"client/src/components/ContactWizardModal.tsx:420",className:"wiz-error",children:p}),g.jsx("input",{"data-loc":"client/src/components/ContactWizardModal.tsx:424",type:"text",name:"website",autoComplete:"off",tabIndex:-1,"aria-hidden":"true",className:"wiz-honeypot",value:w,onChange:O=>T(O.target.value)}),g.jsxs("p",{"data-loc":"client/src/components/ContactWizardModal.tsx:436",className:"wiz-privacy-note",children:["Mit dem Absenden stimmen Sie der Verarbeitung Ihrer Daten gemäß unserer"," ",g.jsx("a",{"data-loc":"client/src/components/ContactWizardModal.tsx:438",href:"/datenschutz",target:"_blank",rel:"noopener noreferrer",className:"wiz-privacy-link",children:"Datenschutzerklärung"})," ","zu. Wir verwenden Ihre Daten ausschließlich zur Bearbeitung Ihrer Anfrage."]})]}),r.phase==="success"&&g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:448",className:"wiz-success",children:[g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:449",className:"wiz-success-icon",children:g.jsx(xu,{"data-loc":"client/src/components/ContactWizardModal.tsx:450",size:28,strokeWidth:2.5,className:"text-blue-500"})}),g.jsx("h3",{"data-loc":"client/src/components/ContactWizardModal.tsx:452",className:"wiz-success-title",children:"Anfrage gesendet!"}),g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:453",className:"wiz-success-divider"}),g.jsx("p",{"data-loc":"client/src/components/ContactWizardModal.tsx:454",className:"wiz-success-text",children:"Vielen Dank für Ihre Anfrage. Wir melden uns in der Regel innerhalb von 24 Stunden bei Ihnen."}),g.jsx("button",{"data-loc":"client/src/components/ContactWizardModal.tsx:457",onClick:a,className:"gyn-btn-primary wiz-success-close",children:"Schließen"})]})]}),r.phase!=="success"&&r.phase!=="loading"&&!M.isLoading&&g.jsxs("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:470",className:"wiz-footer",children:[ue?g.jsxs("button",{"data-loc":"client/src/components/ContactWizardModal.tsx:472",onClick:C,className:"wiz-back-btn",children:[g.jsx(j6,{"data-loc":"client/src/components/ContactWizardModal.tsx:473",size:14}),"Zurück"]}):g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:477"}),r.phase==="steps"&&g.jsxs("button",{"data-loc":"client/src/components/ContactWizardModal.tsx:481",onClick:V,disabled:!ie,className:`gyn-btn-primary${ie?"":" wiz-btn-disabled"}`,children:[(r.currentStep>=U-1,"Weiter"),g.jsx(vs,{"data-loc":"client/src/components/ContactWizardModal.tsx:487",size:14})]}),r.phase==="contact"&&g.jsx("button",{"data-loc":"client/src/components/ContactWizardModal.tsx:492",onClick:R,disabled:L.isPending,className:`gyn-btn-primary${L.isPending?" wiz-btn-pending":""}`,children:L.isPending?g.jsxs(g.Fragment,{children:[g.jsx("div",{"data-loc":"client/src/components/ContactWizardModal.tsx:499",className:"wiz-spinner wiz-spinner--sm"}),"Senden…"]}):g.jsxs(g.Fragment,{children:[g.jsx(V6,{"data-loc":"client/src/components/ContactWizardModal.tsx:504",size:13}),"Anfrage senden"]})})]})]})})}function op(){const e="//matomo.stusche.de/",t=document,a=t.createElement("script");a.async=!0,a.defer=!0,a.src=e+"matomo.js",t.body.appendChild(a)}function eP(){if(typeof window>"u"||window._matomoLoaded)return;window._matomoLoaded=!0;const e=window._paq=window._paq||[];e.push(["trackPageView"]),e.push(["enableLinkTracking"]),e.push(["disableCookies"]),e.push(["setTrackerUrl","//matomo.stusche.de/"+"matomo.php"]),e.push(["setSiteId","1"]),typeof window.requestIdleCallback=="function"?window.requestIdleCallback(op,{timeout:3e3}):document.readyState==="complete"?setTimeout(op,500):window.addEventListener("load",()=>setTimeout(op,500),{once:!0})}function tP(){if(typeof window>"u")return;(window._paq=window._paq||[]).push(["optUserOut"])}function S1(e,t){e?eP():tP(),t?FE():X6()}function nP(){const[e,t]=S.useState(!1),[a,r]=S.useState(!1),[o,c]=S.useState(!1),[u,d]=S.useState(!1),h=S.useCallback(w=>{c(p6()),d(jl()),r(w),t(!0)},[]);S.useEffect(()=>{const w=dg();if(!w){const T=setTimeout(()=>t(!0),1200);return()=>clearTimeout(T)}S1(w.statistics,w.marketing)},[]),S.useEffect(()=>{const w=()=>h(!0);return window.addEventListener(om,w),()=>window.removeEventListener(om,w)},[h]);const p=(w,T)=>{m6({statistics:w,marketing:T}),S1(w,T),t(!1),r(!1)},v=()=>p(!0,!0),y=()=>p(!1,!1),b=()=>p(o,u);return e?g.jsx("div",{"data-loc":"client/src/components/CookieBanner.tsx:120",className:"cookie-banner",role:"region","aria-label":"Datenschutzeinstellungen",children:g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:121",className:"cookie-banner-inner",children:[g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:123",className:"cookie-banner-top",children:[g.jsx("div",{"data-loc":"client/src/components/CookieBanner.tsx:124",className:"cookie-banner-icon",children:g.jsx(N6,{"data-loc":"client/src/components/CookieBanner.tsx:125",size:18})}),g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:127",className:"cookie-banner-content",children:[g.jsxs("p",{"data-loc":"client/src/components/CookieBanner.tsx:128",className:"cookie-banner-text",children:["Diese Website verwendet technisch notwendige Cookies für den sicheren Betrieb. Fonts und Ressourcen werden lokal bereitgestellt. Für anonyme Nutzungsstatistiken setzen wir ",g.jsx("strong",{"data-loc":"client/src/components/CookieBanner.tsx:131",children:"Matomo Analytics"})," ein – selbst gehostet in Deutschland.",qu()&&g.jsxs(g.Fragment,{children:[" Für die Messung unserer Anzeigen nutzen wir zusätzlich ",g.jsx("strong",{"data-loc":"client/src/components/CookieBanner.tsx:133",children:"OpenAI Ads"}),"."]})," ","Sie entscheiden, was davon aktiv ist."," ",g.jsx("a",{"data-loc":"client/src/components/CookieBanner.tsx:136",href:"/datenschutz",className:"cookie-banner-link",children:"Datenschutzerklärung"})]}),a&&g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:140",className:"cookie-banner-details",children:[g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:141",className:"cookie-detail-item",children:[g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:142",className:"cookie-detail-header",children:[g.jsx("span",{"data-loc":"client/src/components/CookieBanner.tsx:143",className:"cookie-detail-badge cookie-detail-badge--required",children:"Notwendig"}),g.jsx("strong",{"data-loc":"client/src/components/CookieBanner.tsx:144",children:"Technisch notwendige Cookies"})]}),g.jsx("p",{"data-loc":"client/src/components/CookieBanner.tsx:146",children:"Session-Cookies für den sicheren Betrieb des Praxisportals und das Speichern dieser Auswahl. Keine Abschaltung möglich."})]}),g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:152",className:"cookie-detail-item",children:[g.jsxs("label",{"data-loc":"client/src/components/CookieBanner.tsx:153",className:"cookie-detail-header",style:{cursor:"pointer"},children:[g.jsx("input",{"data-loc":"client/src/components/CookieBanner.tsx:154",type:"checkbox",checked:o,onChange:w=>c(w.target.checked),"aria-label":"Statistik erlauben"}),g.jsx(O6,{"data-loc":"client/src/components/CookieBanner.tsx:160",size:14}),g.jsx("span",{"data-loc":"client/src/components/CookieBanner.tsx:161",className:"cookie-detail-badge cookie-detail-badge--analytics",children:"Statistik"}),g.jsx("strong",{"data-loc":"client/src/components/CookieBanner.tsx:162",children:"Matomo Analytics"})]}),g.jsx("p",{"data-loc":"client/src/components/CookieBanner.tsx:164",children:"Anonyme Besucherstatistiken. Selbst gehostet auf unserem Server in Deutschland. Keine Weitergabe an Dritte, IP-Adressen werden anonymisiert, kein Cross-Site-Tracking und keine Cookies."})]}),qu()&&g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:172",className:"cookie-detail-item",children:[g.jsxs("label",{"data-loc":"client/src/components/CookieBanner.tsx:173",className:"cookie-detail-header",style:{cursor:"pointer"},children:[g.jsx("input",{"data-loc":"client/src/components/CookieBanner.tsx:174",type:"checkbox",checked:u,onChange:w=>d(w.target.checked),"aria-label":"Marketing erlauben"}),g.jsx(P6,{"data-loc":"client/src/components/CookieBanner.tsx:180",size:14}),g.jsx("span",{"data-loc":"client/src/components/CookieBanner.tsx:181",className:"cookie-detail-badge cookie-detail-badge--marketing",children:"Marketing"}),g.jsx("strong",{"data-loc":"client/src/components/CookieBanner.tsx:182",children:"OpenAI Ads (ChatGPT Ads)"})]}),g.jsx("p",{"data-loc":"client/src/components/CookieBanner.tsx:184",children:"Misst, ob eine Anfrage auf eine unserer Anzeigen in ChatGPT zurückgeht. Dabei werden Daten an OpenAI in den USA übermittelt. Ohne Ihre Zustimmung wird nichts geladen und keine Verbindung zu OpenAI aufgebaut."})]})]}),g.jsx("button",{"data-loc":"client/src/components/CookieBanner.tsx:194",onClick:()=>r(!a),className:"cookie-banner-details-toggle",children:a?"Details ausblenden":"Einstellungen anzeigen"})]})]}),g.jsxs("div",{"data-loc":"client/src/components/CookieBanner.tsx:204",className:"cookie-banner-actions",children:[g.jsx("button",{"data-loc":"client/src/components/CookieBanner.tsx:205",onClick:v,className:"cookie-banner-btn cookie-banner-btn--accept",children:"Alle akzeptieren"}),a&&g.jsx("button",{"data-loc":"client/src/components/CookieBanner.tsx:209",onClick:b,className:"cookie-banner-btn cookie-banner-btn--necessary",children:"Auswahl speichern"}),g.jsx("button",{"data-loc":"client/src/components/CookieBanner.tsx:213",onClick:y,className:"cookie-banner-btn cookie-banner-btn--necessary",children:"Nur notwendige"}),g.jsx("button",{"data-loc":"client/src/components/CookieBanner.tsx:216",onClick:y,className:"cookie-banner-btn cookie-banner-btn--close","aria-label":"Ablehnen und schließen",children:g.jsx(pr,{"data-loc":"client/src/components/CookieBanner.tsx:221",size:14})})]})]})}):null}const aP=S.createContext(void 0);function sP({children:e,defaultTheme:t="light",switchable:a=!1}){const[r,o]=S.useState(()=>a&&localStorage.getItem("theme")||t);S.useEffect(()=>{const u=document.documentElement;r==="dark"?u.classList.add("dark"):u.classList.remove("dark"),a&&localStorage.setItem("theme",r)},[r,a]);const c=a?()=>{o(u=>u==="light"?"dark":"light")}:void 0;return g.jsx(aP.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:r,toggleTheme:c,switchable:a},children:e})}const yg=S.createContext({});function qi(e){const t=S.useRef(null);return t.current===null&&(t.current=e()),t.current}const vg=typeof window<"u",vd=vg?S.useLayoutEffect:S.useEffect,xd=S.createContext(null);function xg(e,t){e.indexOf(t)===-1&&e.push(t)}function bg(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}const la=(e,t,a)=>a>t?t:a<e?e:a;let gl=()=>{};const Ha={},YE=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function XE(e){return typeof e=="object"&&e!==null}const WE=e=>/^0[^.\s]+$/u.test(e);function wg(e){let t;return()=>(t===void 0&&(t=e()),t)}const nn=e=>e,rP=(e,t)=>a=>t(e(a)),Ml=(...e)=>e.reduce(rP),Ri=(e,t,a)=>{const r=t-e;return r===0?1:(a-e)/r};class Sg{constructor(){this.subscriptions=[]}add(t){return xg(this.subscriptions,t),()=>bg(this.subscriptions,t)}notify(t,a,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,a,r);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ra=e=>e*1e3,kn=e=>e/1e3;function Eg(e,t){return t?e*(1e3/t):0}const JE=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,iP=1e-7,oP=12;function lP(e,t,a,r,o){let c,u,d=0;do u=t+(a-t)/2,c=JE(u,r,o)-e,c>0?a=u:t=u;while(Math.abs(c)>iP&&++d<oP);return u}function Nl(e,t,a,r){if(e===t&&a===r)return nn;const o=c=>lP(c,0,1,e,a);return c=>c===0||c===1?c:JE(o(c),t,r)}const eT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,tT=e=>t=>1-e(1-t),nT=Nl(.33,1.53,.69,.99),Tg=tT(nT),aT=eT(Tg),sT=e=>(e*=2)<1?.5*Tg(e):.5*(2-Math.pow(2,-10*(e-1))),_g=e=>1-Math.sin(Math.acos(e)),rT=tT(_g),iT=eT(_g),cP=Nl(.42,0,1,1),uP=Nl(0,0,.58,1),oT=Nl(.42,0,.58,1),dP=e=>Array.isArray(e)&&typeof e[0]!="number",lT=e=>Array.isArray(e)&&typeof e[0]=="number",fP={linear:nn,easeIn:cP,easeInOut:oT,easeOut:uP,circIn:_g,circInOut:iT,circOut:rT,backIn:Tg,backInOut:aT,backOut:nT,anticipate:sT},hP=e=>typeof e=="string",E1=e=>{if(lT(e)){gl(e.length===4);const[t,a,r,o]=e;return Nl(t,a,r,o)}else if(hP(e))return fP[e];return e},lu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function pP(e,t){let a=new Set,r=new Set,o=!1,c=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function h(v){u.has(v)&&(p.schedule(v),e()),v(d)}const p={schedule:(v,y=!1,b=!1)=>{const T=b&&o?a:r;return y&&u.add(v),T.has(v)||T.add(v),v},cancel:v=>{r.delete(v),u.delete(v)},process:v=>{if(d=v,o){c=!0;return}o=!0,[a,r]=[r,a],a.forEach(h),a.clear(),o=!1,c&&(c=!1,p.process(v))}};return p}const mP=40;function cT(e,t){let a=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,u=lu.reduce((A,U)=>(A[U]=pP(c),A),{}),{setup:d,read:h,resolveKeyframes:p,preUpdate:v,update:y,preRender:b,render:w,postRender:T}=u,_=()=>{const A=Ha.useManualTiming?o.timestamp:performance.now();a=!1,Ha.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(A-o.timestamp,mP),1)),o.timestamp=A,o.isProcessing=!0,d.process(o),h.process(o),p.process(o),v.process(o),y.process(o),b.process(o),w.process(o),T.process(o),o.isProcessing=!1,a&&t&&(r=!1,e(_))},k=()=>{a=!0,r=!0,o.isProcessing||e(_)};return{schedule:lu.reduce((A,U)=>{const B=u[U];return A[U]=(V,C=!1,R=!1)=>(a||k(),B.schedule(V,C,R)),A},{}),cancel:A=>{for(let U=0;U<lu.length;U++)u[lu[U]].cancel(A)},state:o,steps:u}}const{schedule:Ke,cancel:Zn,state:Et,steps:lp}=cT(typeof requestAnimationFrame<"u"?requestAnimationFrame:nn,!0);let bu;function gP(){bu=void 0}const tn={now:()=>(bu===void 0&&tn.set(Et.isProcessing||Ha.useManualTiming?Et.timestamp:performance.now()),bu),set:e=>{bu=e,queueMicrotask(gP)}},uT=e=>t=>typeof t=="string"&&t.startsWith(e),Ag=uT("--"),yP=uT("var(--"),Cg=e=>yP(e)?vP.test(e.split("/*")[0].trim()):!1,vP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ki={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},yl={...Ki,transform:e=>la(0,1,e)},cu={...Ki,default:1},el=e=>Math.round(e*1e5)/1e5,Og=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function xP(e){return e==null}const bP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jg=(e,t)=>a=>!!(typeof a=="string"&&bP.test(a)&&a.startsWith(e)||t&&!xP(a)&&Object.prototype.hasOwnProperty.call(a,t)),dT=(e,t,a)=>r=>{if(typeof r!="string")return r;const[o,c,u,d]=r.match(Og);return{[e]:parseFloat(o),[t]:parseFloat(c),[a]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},wP=e=>la(0,255,e),cp={...Ki,transform:e=>Math.round(wP(e))},sr={test:jg("rgb","red"),parse:dT("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+cp.transform(e)+", "+cp.transform(t)+", "+cp.transform(a)+", "+el(yl.transform(r))+")"};function SP(e){let t="",a="",r="",o="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,a+=a,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const um={test:jg("#"),parse:SP,transform:sr.transform},kl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ys=kl("deg"),ia=kl("%"),xe=kl("px"),EP=kl("vh"),TP=kl("vw"),T1={...ia,parse:e=>ia.parse(e)/100,transform:e=>ia.transform(e*100)},xi={test:jg("hsl","hue"),parse:dT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+ia.transform(el(t))+", "+ia.transform(el(a))+", "+el(yl.transform(r))+")"},gt={test:e=>sr.test(e)||um.test(e)||xi.test(e),parse:e=>sr.test(e)?sr.parse(e):xi.test(e)?xi.parse(e):um.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?sr.transform(e):xi.transform(e),getAnimatableNone:e=>{const t=gt.parse(e);return t.alpha=0,gt.transform(t)}},_P=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function AP(e){return isNaN(e)&&typeof e=="string"&&(e.match(Og)?.length||0)+(e.match(_P)?.length||0)>0}const fT="number",hT="color",CP="var",OP="var(",_1="${}",jP=/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 vl(e){const t=e.toString(),a=[],r={color:[],number:[],var:[]},o=[];let c=0;const d=t.replace(jP,h=>(gt.test(h)?(r.color.push(c),o.push(hT),a.push(gt.parse(h))):h.startsWith(OP)?(r.var.push(c),o.push(CP),a.push(h)):(r.number.push(c),o.push(fT),a.push(parseFloat(h))),++c,_1)).split(_1);return{values:a,split:d,indexes:r,types:o}}function pT(e){return vl(e).values}function mT(e){const{split:t,types:a}=vl(e),r=t.length;return o=>{let c="";for(let u=0;u<r;u++)if(c+=t[u],o[u]!==void 0){const d=a[u];d===fT?c+=el(o[u]):d===hT?c+=gt.transform(o[u]):c+=o[u]}return c}}const MP=e=>typeof e=="number"?0:gt.test(e)?gt.getAnimatableNone(e):e;function NP(e){const t=pT(e);return mT(e)(t.map(MP))}const As={test:AP,parse:pT,createTransformer:mT,getAnimatableNone:NP};function up(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function kP({hue:e,saturation:t,lightness:a,alpha:r}){e/=360,t/=100,a/=100;let o=0,c=0,u=0;if(!t)o=c=u=a;else{const d=a<.5?a*(1+t):a+t-a*t,h=2*a-d;o=up(h,d,e+1/3),c=up(h,d,e),u=up(h,d,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:r}}function Ku(e,t){return a=>a>0?t:e}const tt=(e,t,a)=>e+(t-e)*a,dp=(e,t,a)=>{const r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},zP=[um,sr,xi],RP=e=>zP.find(t=>t.test(e));function A1(e){const t=RP(e);if(!t)return!1;let a=t.parse(e);return t===xi&&(a=kP(a)),a}const C1=(e,t)=>{const a=A1(e),r=A1(t);if(!a||!r)return Ku(e,t);const o={...a};return c=>(o.red=dp(a.red,r.red,c),o.green=dp(a.green,r.green,c),o.blue=dp(a.blue,r.blue,c),o.alpha=tt(a.alpha,r.alpha,c),sr.transform(o))},dm=new Set(["none","hidden"]);function DP(e,t){return dm.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function PP(e,t){return a=>tt(e,t,a)}function Mg(e){return typeof e=="number"?PP:typeof e=="string"?Cg(e)?Ku:gt.test(e)?C1:HP:Array.isArray(e)?gT:typeof e=="object"?gt.test(e)?C1:LP:Ku}function gT(e,t){const a=[...e],r=a.length,o=e.map((c,u)=>Mg(c)(c,t[u]));return c=>{for(let u=0;u<r;u++)a[u]=o[u](c);return a}}function LP(e,t){const a={...e,...t},r={};for(const o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mg(e[o])(e[o],t[o]));return o=>{for(const c in r)a[c]=r[c](o);return a}}function BP(e,t){const a=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const c=t.types[o],u=e.indexes[c][r[c]],d=e.values[u]??0;a[o]=d,r[c]++}return a}const HP=(e,t)=>{const a=As.createTransformer(t),r=vl(e),o=vl(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?dm.has(e)&&!o.values.length||dm.has(t)&&!r.values.length?DP(e,t):Ml(gT(BP(r,o),o.values),a):Ku(e,t)};function yT(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?tt(e,t,a):Mg(e)(e,t)}const UP=e=>{const t=({timestamp:a})=>e(a);return{start:(a=!0)=>Ke.update(t,a),stop:()=>Zn(t),now:()=>Et.isProcessing?Et.timestamp:tn.now()}},vT=(e,t,a=10)=>{let r="";const o=Math.max(Math.round(t/a),2);for(let c=0;c<o;c++)r+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Iu=2e4;function Ng(e){let t=0;const a=50;let r=e.next(t);for(;!r.done&&t<Iu;)t+=a,r=e.next(t);return t>=Iu?1/0:t}function VP(e,t=100,a){const r=a({...e,keyframes:[0,t]}),o=Math.min(Ng(r),Iu);return{type:"keyframes",ease:c=>r.next(o*c).value/t,duration:kn(o)}}const qP=5;function xT(e,t,a){const r=Math.max(t-qP,0);return Eg(a-e(r),t-r)}const rt={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},fp=.001;function KP({duration:e=rt.duration,bounce:t=rt.bounce,velocity:a=rt.velocity,mass:r=rt.mass}){let o,c,u=1-t;u=la(rt.minDamping,rt.maxDamping,u),e=la(rt.minDuration,rt.maxDuration,kn(e)),u<1?(o=p=>{const v=p*u,y=v*e,b=v-a,w=fm(p,u),T=Math.exp(-y);return fp-b/w*T},c=p=>{const y=p*u*e,b=y*a+a,w=Math.pow(u,2)*Math.pow(p,2)*e,T=Math.exp(-y),_=fm(Math.pow(p,2),u);return(-o(p)+fp>0?-1:1)*((b-w)*T)/_}):(o=p=>{const v=Math.exp(-p*e),y=(p-a)*e+1;return-fp+v*y},c=p=>{const v=Math.exp(-p*e),y=(a-p)*(e*e);return v*y});const d=5/e,h=$P(o,c,d);if(e=ra(e),isNaN(h))return{stiffness:rt.stiffness,damping:rt.damping,duration:e};{const p=Math.pow(h,2)*r;return{stiffness:p,damping:u*2*Math.sqrt(r*p),duration:e}}}const IP=12;function $P(e,t,a){let r=a;for(let o=1;o<IP;o++)r=r-e(r)/t(r);return r}function fm(e,t){return e*Math.sqrt(1-t*t)}const ZP=["duration","bounce"],GP=["stiffness","damping","mass"];function O1(e,t){return t.some(a=>e[a]!==void 0)}function FP(e){let t={velocity:rt.velocity,stiffness:rt.stiffness,damping:rt.damping,mass:rt.mass,isResolvedFromDuration:!1,...e};if(!O1(e,GP)&&O1(e,ZP))if(e.visualDuration){const a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,c=2*la(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:rt.mass,stiffness:o,damping:c}}else{const a=KP(e);t={...t,...a,mass:rt.mass},t.isResolvedFromDuration=!0}return t}function $u(e=rt.visualDuration,t=rt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=a;const c=a.keyframes[0],u=a.keyframes[a.keyframes.length-1],d={done:!1,value:c},{stiffness:h,damping:p,mass:v,duration:y,velocity:b,isResolvedFromDuration:w}=FP({...a,velocity:-kn(a.velocity||0)}),T=b||0,_=p/(2*Math.sqrt(h*v)),k=u-c,M=kn(Math.sqrt(h/v)),L=Math.abs(k)<5;r||(r=L?rt.restSpeed.granular:rt.restSpeed.default),o||(o=L?rt.restDelta.granular:rt.restDelta.default);let A;if(_<1){const B=fm(M,_);A=V=>{const C=Math.exp(-_*M*V);return u-C*((T+_*M*k)/B*Math.sin(B*V)+k*Math.cos(B*V))}}else if(_===1)A=B=>u-Math.exp(-M*B)*(k+(T+M*k)*B);else{const B=M*Math.sqrt(_*_-1);A=V=>{const C=Math.exp(-_*M*V),R=Math.min(B*V,300);return u-C*((T+_*M*k)*Math.sinh(R)+B*k*Math.cosh(R))/B}}const U={calculatedDuration:w&&y||null,next:B=>{const V=A(B);if(w)d.done=B>=y;else{let C=B===0?T:0;_<1&&(C=B===0?ra(T):xT(A,B,V));const R=Math.abs(C)<=r,X=Math.abs(u-V)<=o;d.done=R&&X}return d.value=d.done?u:V,d},toString:()=>{const B=Math.min(Ng(U),Iu),V=vT(C=>U.next(B*C).value,B,30);return B+"ms "+V},toTransition:()=>{}};return U}$u.applyToOptions=e=>{const t=VP(e,100,$u);return e.ease=t.ease,e.duration=ra(t.duration),e.type="keyframes",e};function hm({keyframes:e,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:d,max:h,restDelta:p=.5,restSpeed:v}){const y=e[0],b={done:!1,value:y},w=R=>d!==void 0&&R<d||h!==void 0&&R>h,T=R=>d===void 0?h:h===void 0||Math.abs(d-R)<Math.abs(h-R)?d:h;let _=a*t;const k=y+_,M=u===void 0?k:u(k);M!==k&&(_=M-y);const L=R=>-_*Math.exp(-R/r),A=R=>M+L(R),U=R=>{const X=L(R),J=A(R);b.done=Math.abs(X)<=p,b.value=b.done?M:J};let B,V;const C=R=>{w(b.value)&&(B=R,V=$u({keyframes:[b.value,T(b.value)],velocity:xT(A,R,b.value),damping:o,stiffness:c,restDelta:p,restSpeed:v}))};return C(0),{calculatedDuration:null,next:R=>{let X=!1;return!V&&B===void 0&&(X=!0,U(R),C(R)),B!==void 0&&R>=B?V.next(R-B):(!X&&U(R),b)}}}function QP(e,t,a){const r=[],o=a||Ha.mix||yT,c=e.length-1;for(let u=0;u<c;u++){let d=o(e[u],e[u+1]);if(t){const h=Array.isArray(t)?t[u]||nn:t;d=Ml(h,d)}r.push(d)}return r}function kg(e,t,{clamp:a=!0,ease:r,mixer:o}={}){const c=e.length;if(gl(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const d=QP(t,r,o),h=d.length,p=v=>{if(u&&v<e[0])return t[0];let y=0;if(h>1)for(;y<e.length-2&&!(v<e[y+1]);y++);const b=Ri(e[y],e[y+1],v);return d[y](b)};return a?v=>p(la(e[0],e[c-1],v)):p}function YP(e,t){const a=e[e.length-1];for(let r=1;r<=t;r++){const o=Ri(0,t,r);e.push(tt(a,1,o))}}function bT(e){const t=[0];return YP(t,e.length-1),t}function XP(e,t){return e.map(a=>a*t)}function WP(e,t){return e.map(()=>t||oT).splice(0,e.length-1)}function tl({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){const o=dP(r)?r.map(E1):E1(r),c={done:!1,value:t[0]},u=XP(a&&a.length===t.length?a:bT(t),e),d=kg(u,t,{ease:Array.isArray(o)?o:WP(t,o)});return{calculatedDuration:e,next:h=>(c.value=d(h),c.done=h>=e,c)}}const JP=e=>e!==null;function zg(e,{repeat:t,repeatType:a="loop"},r,o=1){const c=e.filter(JP),d=o<0||t&&a!=="loop"&&t%2===1?0:c.length-1;return!d||r===void 0?c[d]:r}const e8={decay:hm,inertia:hm,tween:tl,keyframes:tl,spring:$u};function wT(e){typeof e.type=="string"&&(e.type=e8[e.type])}class Rg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const t8=e=>e/100;class Dg extends Rg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;wT(t);const{type:a=tl,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=t;let{keyframes:d}=t;const h=a||tl;h!==tl&&typeof d[0]!="number"&&(this.mixKeyframes=Ml(t8,yT(d[0],d[1])),d=[0,100]);const p=h({...t,keyframes:d});c==="mirror"&&(this.mirroredGenerator=h({...t,keyframes:[...d].reverse(),velocity:-u})),p.calculatedDuration===null&&(p.calculatedDuration=Ng(p));const{calculatedDuration:v}=p;this.calculatedDuration=v,this.resolvedDuration=v+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=p}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:r,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:h}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:v,repeat:y,repeatType:b,repeatDelay:w,type:T,onUpdate:_,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const M=this.currentTime-p*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?M<0:M>o;this.currentTime=Math.max(M,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let A=this.currentTime,U=r;if(y){const R=Math.min(this.currentTime,o)/d;let X=Math.floor(R),J=R%1;!J&&R>=1&&(J=1),J===1&&X--,X=Math.min(X,y+1),!!(X%2)&&(b==="reverse"?(J=1-J,w&&(J-=w/d)):b==="mirror"&&(U=u)),A=la(0,1,J)*d}const B=L?{done:!1,value:v[0]}:U.next(A);c&&(B.value=c(B.value));let{done:V}=B;!L&&h!==null&&(V=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const C=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&V);return C&&T!==hm&&(B.value=zg(v,this.options,k,this.speed)),_&&_(B.value),C&&this.finish(),B}then(t,a){return this.finished.then(t,a)}get duration(){return kn(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+kn(t)}get time(){return kn(this.currentTime)}set time(t){t=ra(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tn.now());const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=kn(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=UP,startTime:a}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=a??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function n8(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const rr=e=>e*180/Math.PI,pm=e=>{const t=rr(Math.atan2(e[1],e[0]));return mm(t)},a8={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:pm,rotateZ:pm,skewX:e=>rr(Math.atan(e[1])),skewY:e=>rr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},mm=e=>(e=e%360,e<0&&(e+=360),e),j1=pm,M1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),N1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),s8={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:M1,scaleY:N1,scale:e=>(M1(e)+N1(e))/2,rotateX:e=>mm(rr(Math.atan2(e[6],e[5]))),rotateY:e=>mm(rr(Math.atan2(-e[2],e[0]))),rotateZ:j1,rotate:j1,skewX:e=>rr(Math.atan(e[4])),skewY:e=>rr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gm(e){return e.includes("scale")?1:0}function ym(e,t){if(!e||e==="none")return gm(t);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(a)r=s8,o=a;else{const d=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=a8,o=d}if(!o)return gm(t);const c=r[t],u=o[1].split(",").map(i8);return typeof c=="function"?c(u):u[c]}const r8=(e,t)=>{const{transform:a="none"}=getComputedStyle(e);return ym(a,t)};function i8(e){return parseFloat(e.trim())}const Ii=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],$i=new Set(Ii),k1=e=>e===Ki||e===xe,o8=new Set(["x","y","z"]),l8=Ii.filter(e=>!o8.has(e));function c8(e){const t=[];return l8.forEach(a=>{const r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}const or={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),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:(e,{transform:t})=>ym(t,"x"),y:(e,{transform:t})=>ym(t,"y")};or.translateX=or.x;or.translateY=or.y;const lr=new Set;let vm=!1,xm=!1,bm=!1;function ST(){if(xm){const e=Array.from(lr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{const o=c8(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=a.get(r);o&&o.forEach(([c,u])=>{r.getValue(c)?.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}xm=!1,vm=!1,lr.forEach(e=>e.complete(bm)),lr.clear()}function ET(){lr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(xm=!0)})}function u8(){bm=!0,ET(),ST(),bm=!1}class Pg{constructor(t,a,r,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(lr.add(this),vm||(vm=!0,Ke.read(ET),Ke.resolveKeyframes(ST))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:r,motionValue:o}=this;if(t[0]===null){const c=o?.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&a){const d=r.readValue(a,u);d!=null&&(t[0]=d)}t[0]===void 0&&(t[0]=u),o&&c===void 0&&o.set(t[0])}n8(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lr.delete(this)}cancel(){this.state==="scheduled"&&(lr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const d8=e=>e.startsWith("--");function f8(e,t,a){d8(t)?e.style.setProperty(t,a):e.style[t]=a}const TT=wg(()=>window.ScrollTimeline!==void 0),h8={};function p8(e,t){const a=wg(e);return()=>h8[t]??a()}const _T=p8(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Xo=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,z1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xo([0,.65,.55,1]),circOut:Xo([.55,0,1,.45]),backIn:Xo([.31,.01,.66,-.59]),backOut:Xo([.33,1.53,.69,.99])};function AT(e,t){if(e)return typeof e=="function"?_T()?vT(e,t):"ease-out":lT(e)?Xo(e):Array.isArray(e)?e.map(a=>AT(a,t)||z1.easeOut):z1[e]}function m8(e,t,a,{delay:r=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:d="easeOut",times:h}={},p=void 0){const v={[t]:a};h&&(v.offset=h);const y=AT(d,o);Array.isArray(y)&&(v.easing=y);const b={delay:r,duration:o,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(v,b)}function CT(e){return typeof e=="function"&&"applyToOptions"in e}function g8({type:e,...t}){return CT(e)&&_T()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class y8 extends Rg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:a,name:r,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:d,onComplete:h}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t,gl(typeof t.type!="string");const p=g8(t);this.animation=m8(a,r,o,p,c),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const v=zg(o,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(v):f8(a,r,v),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return kn(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+kn(t)}get time(){return kn(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=ra(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&TT()?(this.animation.timeline=t,nn):a(this)}}const OT={anticipate:sT,backInOut:aT,circInOut:iT};function v8(e){return e in OT}function x8(e){typeof e.ease=="string"&&v8(e.ease)&&(e.ease=OT[e.ease])}const R1=10;class b8 extends y8{constructor(t){x8(t),wT(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:r,onComplete:o,element:c,...u}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const d=new Dg({...u,autoplay:!1}),h=ra(this.finishedTime??this.time);a.setWithVelocity(d.sample(h-R1).value,d.sample(h).value,R1),d.stop()}}const D1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(As.test(e)||e==="0")&&!e.startsWith("url("));function w8(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function S8(e,t,a,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=D1(o,t),d=D1(c,t);return!u||!d?!1:w8(e)||(a==="spring"||CT(a))&&r}function wm(e){e.duration=0,e.type="keyframes"}const E8=new Set(["opacity","clipPath","filter","transform"]),T8=wg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function _8(e){const{motionValue:t,name:a,repeatDelay:r,repeatType:o,damping:c,type:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=t.owner.getProps();return T8()&&a&&E8.has(a)&&(a!=="transform"||!p)&&!h&&!r&&o!=="mirror"&&c!==0&&u!=="inertia"}const A8=40;class C8 extends Rg{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:d,name:h,motionValue:p,element:v,...y}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const b={autoplay:t,delay:a,type:r,repeat:o,repeatDelay:c,repeatType:u,name:h,motionValue:p,element:v,...y},w=v?.KeyframeResolver||Pg;this.keyframeResolver=new w(d,(T,_,k)=>this.onKeyframesResolved(T,_,b,!k),h,p,v),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,a,r,o){this.keyframeResolver=void 0;const{name:c,type:u,velocity:d,delay:h,isHandoff:p,onUpdate:v}=r;this.resolvedAt=tn.now(),S8(t,c,u,d)||((Ha.instantAnimations||!h)&&v?.(zg(t,r,a)),t[0]=t[t.length-1],wm(r),r.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>A8?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:t},w=!p&&_8(b)?new b8({...b,element:b.motionValue.owner.current}):new Dg(b);w.finished.then(()=>this.notifyFinished()).catch(nn),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),u8()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const O8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function j8(e){const t=O8.exec(e);if(!t)return[,];const[,a,r,o]=t;return[`--${a??r}`,o]}function jT(e,t,a=1){const[r,o]=j8(e);if(!r)return;const c=window.getComputedStyle(t).getPropertyValue(r);if(c){const u=c.trim();return YE(u)?parseFloat(u):u}return Cg(o)?jT(o,t,a+1):o}function Lg(e,t){return e?.[t]??e?.default??e}const MT=new Set(["width","height","top","left","right","bottom",...Ii]),M8={test:e=>e==="auto",parse:e=>e},NT=e=>t=>t.test(e),kT=[Ki,xe,ia,ys,TP,EP,M8],P1=e=>kT.find(NT(e));function N8(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WE(e):!0}const k8=new Set(["brightness","contrast","saturate","opacity"]);function z8(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=a.match(Og)||[];if(!r)return e;const o=a.replace(r,"");let c=k8.has(t)?1:0;return r!==a&&(c*=100),t+"("+c+o+")"}const R8=/\b([a-z-]*)\(.*?\)/gu,Sm={...As,getAnimatableNone:e=>{const t=e.match(R8);return t?t.map(z8).join(" "):e}},L1={...Ki,transform:Math.round},D8={rotate:ys,rotateX:ys,rotateY:ys,rotateZ:ys,scale:cu,scaleX:cu,scaleY:cu,scaleZ:cu,skew:ys,skewX:ys,skewY:ys,distance:xe,translateX:xe,translateY:xe,translateZ:xe,x:xe,y:xe,z:xe,perspective:xe,transformPerspective:xe,opacity:yl,originX:T1,originY:T1,originZ:xe},Bg={borderWidth:xe,borderTopWidth:xe,borderRightWidth:xe,borderBottomWidth:xe,borderLeftWidth:xe,borderRadius:xe,radius:xe,borderTopLeftRadius:xe,borderTopRightRadius:xe,borderBottomRightRadius:xe,borderBottomLeftRadius:xe,width:xe,maxWidth:xe,height:xe,maxHeight:xe,top:xe,right:xe,bottom:xe,left:xe,padding:xe,paddingTop:xe,paddingRight:xe,paddingBottom:xe,paddingLeft:xe,margin:xe,marginTop:xe,marginRight:xe,marginBottom:xe,marginLeft:xe,backgroundPositionX:xe,backgroundPositionY:xe,...D8,zIndex:L1,fillOpacity:yl,strokeOpacity:yl,numOctaves:L1},P8={...Bg,color:gt,backgroundColor:gt,outlineColor:gt,fill:gt,stroke:gt,borderColor:gt,borderTopColor:gt,borderRightColor:gt,borderBottomColor:gt,borderLeftColor:gt,filter:Sm,WebkitFilter:Sm},zT=e=>P8[e];function RT(e,t){let a=zT(e);return a!==Sm&&(a=As),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const L8=new Set(["auto","none","0"]);function B8(e,t,a){let r=0,o;for(;r<e.length&&!o;){const c=e[r];typeof c=="string"&&!L8.has(c)&&vl(c).values.length&&(o=e[r]),r++}if(o&&a)for(const c of t)e[c]=RT(a,o)}class H8 extends Pg{constructor(t,a,r,o,c){super(t,a,r,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let h=0;h<t.length;h++){let p=t[h];if(typeof p=="string"&&(p=p.trim(),Cg(p))){const v=jT(p,a.current);v!==void 0&&(t[h]=v),h===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!MT.has(r)||t.length!==2)return;const[o,c]=t,u=P1(o),d=P1(c);if(u!==d)if(k1(u)&&k1(d))for(let h=0;h<t.length;h++){const p=t[h];typeof p=="string"&&(t[h]=parseFloat(p))}else or[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||N8(t[o]))&&r.push(o);r.length&&B8(t,r,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=or[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const o=a[a.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){const{element:t,name:a,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(a);o&&o.jump(this.measuredOrigin,!1);const c=r.length-1,u=r[c];r[c]=or[a](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([d,h])=>{t.getValue(d).set(h)}),this.resolveNoneKeyframes()}}function DT(e,t,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){const o=document.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const PT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Hg(e){return XE(e)&&"offsetHeight"in e}const B1=30,U8=e=>!isNaN(parseFloat(e)),nl={current:void 0};class V8{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const o=tn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=U8(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Sg);const r=this.events[t].add(a);return t==="change"?()=>{r(),Ke.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return nl.current&&nl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>B1)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,B1);return Eg(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Kn(e,t){return new V8(e,t)}const{schedule:Ug}=cT(queueMicrotask,!1),Un={x:!1,y:!1};function LT(){return Un.x||Un.y}function q8(e){return e==="x"||e==="y"?Un[e]?null:(Un[e]=!0,()=>{Un[e]=!1}):Un.x||Un.y?null:(Un.x=Un.y=!0,()=>{Un.x=Un.y=!1})}function BT(e,t){const a=DT(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function H1(e){return!(e.pointerType==="touch"||LT())}function K8(e,t,a={}){const[r,o,c]=BT(e,a),u=d=>{if(!H1(d))return;const{target:h}=d,p=t(h,d);if(typeof p!="function"||!h)return;const v=y=>{H1(y)&&(p(y),h.removeEventListener("pointerleave",v))};h.addEventListener("pointerleave",v,o)};return r.forEach(d=>{d.addEventListener("pointerenter",u,o)}),c}const HT=(e,t)=>t?e===t?!0:HT(e,t.parentElement):!1,Vg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,I8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $8(e){return I8.has(e.tagName)||e.tabIndex!==-1}const wu=new WeakSet;function U1(e){return t=>{t.key==="Enter"&&e(t)}}function hp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Z8=(e,t)=>{const a=e.currentTarget;if(!a)return;const r=U1(()=>{if(wu.has(a))return;hp(a,"down");const o=U1(()=>{hp(a,"up")}),c=()=>hp(a,"cancel");a.addEventListener("keyup",o,t),a.addEventListener("blur",c,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function V1(e){return Vg(e)&&!LT()}function G8(e,t,a={}){const[r,o,c]=BT(e,a),u=d=>{const h=d.currentTarget;if(!V1(d))return;wu.add(h);const p=t(h,d),v=(w,T)=>{window.removeEventListener("pointerup",y),window.removeEventListener("pointercancel",b),wu.has(h)&&wu.delete(h),V1(w)&&typeof p=="function"&&p(w,{success:T})},y=w=>{v(w,h===window||h===document||a.useGlobalTarget||HT(h,w.target))},b=w=>{v(w,!1)};window.addEventListener("pointerup",y,o),window.addEventListener("pointercancel",b,o)};return r.forEach(d=>{(a.useGlobalTarget?window:d).addEventListener("pointerdown",u,o),Hg(d)&&(d.addEventListener("focus",p=>Z8(p,o)),!$8(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),c}function qg(e){return XE(e)&&"ownerSVGElement"in e}const Su=new WeakMap;let Eu;const UT=(e,t,a)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:qg(r)&&"getBBox"in r?r.getBBox()[t]:r[a],F8=UT("inline","width","offsetWidth"),Q8=UT("block","height","offsetHeight");function Y8({target:e,borderBoxSize:t}){Su.get(e)?.forEach(a=>{a(e,{get width(){return F8(e,t)},get height(){return Q8(e,t)}})})}function X8(e){e.forEach(Y8)}function W8(){typeof ResizeObserver>"u"||(Eu=new ResizeObserver(X8))}function J8(e,t){Eu||W8();const a=DT(e);return a.forEach(r=>{let o=Su.get(r);o||(o=new Set,Su.set(r,o)),o.add(t),Eu?.observe(r)}),()=>{a.forEach(r=>{const o=Su.get(r);o?.delete(t),o?.size||Eu?.unobserve(r)})}}const Tu=new Set;let bi;function e9(){bi=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Tu.forEach(t=>t(e))},window.addEventListener("resize",bi)}function t9(e){return Tu.add(e),bi||e9(),()=>{Tu.delete(e),!Tu.size&&typeof bi=="function"&&(window.removeEventListener("resize",bi),bi=void 0)}}function n9(e,t){return typeof e=="function"?t9(e):J8(e,t)}function VT(e,t){let a;const r=()=>{const{currentTime:o}=t,u=(o===null?0:o.value)/100;a!==u&&e(u),a=u};return Ke.preUpdate(r,!0),()=>Zn(r)}function a9(e){return qg(e)&&e.tagName==="svg"}function s9(...e){const t=!Array.isArray(e[0]),a=t?0:-1,r=e[0+a],o=e[1+a],c=e[2+a],u=e[3+a],d=kg(o,c,u);return t?d(r):d}const Pt=e=>!!(e&&e.getVelocity),r9=[...kT,gt,As],i9=e=>r9.find(NT(e)),bd=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function q1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function o9(...e){return t=>{let a=!1;const r=e.map(o=>{const c=q1(o,t);return!a&&typeof c=="function"&&(a=!0),c});if(a)return()=>{for(let o=0;o<r.length;o++){const c=r[o];typeof c=="function"?c():q1(e[o],null)}}}}function l9(...e){return S.useCallback(o9(...e),e)}class c9 extends S.Component{getSnapshotBeforeUpdate(t){const a=this.props.childRef.current;if(a&&t.isPresent&&!this.props.isPresent){const r=a.offsetParent,o=Hg(r)&&r.offsetWidth||0,c=this.props.sizeRef.current;c.height=a.offsetHeight||0,c.width=a.offsetWidth||0,c.top=a.offsetTop,c.left=a.offsetLeft,c.right=o-c.width-c.left}return null}componentDidUpdate(){}render(){return this.props.children}}function u9({children:e,isPresent:t,anchorX:a,root:r}){const o=S.useId(),c=S.useRef(null),u=S.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=S.useContext(bd),h=l9(c,e?.ref);return S.useInsertionEffect(()=>{const{width:p,height:v,top:y,left:b,right:w}=u.current;if(t||!c.current||!p||!v)return;const T=a==="left"?`left: ${b}`:`right: ${w}`;c.current.dataset.motionPopId=o;const _=document.createElement("style");d&&(_.nonce=d);const k=r??document.head;return k.appendChild(_),_.sheet&&_.sheet.insertRule(`
          [data-motion-pop-id="${o}"] {
            position: absolute !important;
            width: ${p}px !important;
            height: ${v}px !important;
            ${T}px !important;
            top: ${y}px !important;
          }
        `),()=>{k.contains(_)&&k.removeChild(_)}},[t]),g.jsx(c9,{isPresent:t,childRef:c,sizeRef:u,children:S.cloneElement(e,{ref:h})})}const d9=({children:e,initial:t,isPresent:a,onExitComplete:r,custom:o,presenceAffectsLayout:c,mode:u,anchorX:d,root:h})=>{const p=qi(f9),v=S.useId();let y=!0,b=S.useMemo(()=>(y=!1,{id:v,initial:t,isPresent:a,custom:o,onExitComplete:w=>{p.set(w,!0);for(const T of p.values())if(!T)return;r&&r()},register:w=>(p.set(w,!1),()=>p.delete(w))}),[a,p,r]);return c&&y&&(b={...b}),S.useMemo(()=>{p.forEach((w,T)=>p.set(T,!1))},[a]),S.useEffect(()=>{!a&&!p.size&&r&&r()},[a]),u==="popLayout"&&(e=g.jsx(u9,{isPresent:a,anchorX:d,root:h,children:e})),g.jsx(xd.Provider,{value:b,children:e})};function f9(){return new Map}function qT(e=!0){const t=S.useContext(xd);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:r,register:o}=t,c=S.useId();S.useEffect(()=>{if(e)return o(c)},[e]);const u=S.useCallback(()=>e&&r&&r(c),[c,r,e]);return!a&&r?[!1,u]:[!0]}const uu=e=>e.key||"";function K1(e){const t=[];return S.Children.forEach(e,a=>{S.isValidElement(a)&&t.push(a)}),t}const mi=({children:e,custom:t,initial:a=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:c="sync",propagate:u=!1,anchorX:d="left",root:h})=>{const[p,v]=qT(u),y=S.useMemo(()=>K1(e),[e]),b=u&&!p?[]:y.map(uu),w=S.useRef(!0),T=S.useRef(y),_=qi(()=>new Map),[k,M]=S.useState(y),[L,A]=S.useState(y);vd(()=>{w.current=!1,T.current=y;for(let V=0;V<L.length;V++){const C=uu(L[V]);b.includes(C)?_.delete(C):_.get(C)!==!0&&_.set(C,!1)}},[L,b.length,b.join("-")]);const U=[];if(y!==k){let V=[...y];for(let C=0;C<L.length;C++){const R=L[C],X=uu(R);b.includes(X)||(V.splice(C,0,R),U.push(R))}return c==="wait"&&U.length&&(V=U),A(K1(V)),M(y),null}const{forceRender:B}=S.useContext(yg);return g.jsx(g.Fragment,{children:L.map(V=>{const C=uu(V),R=u&&!p?!1:y===L||b.includes(C),X=()=>{if(_.has(C))_.set(C,!0);else return;let J=!0;_.forEach(re=>{re||(J=!1)}),J&&(B?.(),A(T.current),u&&v?.(),r&&r())};return g.jsx(d9,{isPresent:R,initial:!w.current||a?void 0:!1,custom:t,presenceAffectsLayout:o,mode:c,root:h,onExitComplete:R?void 0:X,anchorX:d,children:V},C)})})},KT=S.createContext({strict:!1}),I1={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"]},Di={};for(const e in I1)Di[e]={isEnabled:t=>I1[e].some(a=>!!t[a])};function h9(e){for(const t in e)Di[t]={...Di[t],...e[t]}}const p9=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 Zu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||p9.has(e)}let IT=e=>!Zu(e);function m9(e){typeof e=="function"&&(IT=t=>t.startsWith("on")?!Zu(t):e(t))}try{m9(require("@emotion/is-prop-valid").default)}catch{}function g9(e,t,a){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(IT(o)||a===!0&&Zu(o)||!t&&!Zu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const wd=S.createContext({});function Sd(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function xl(e){return typeof e=="string"||Array.isArray(e)}const Kg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ig=["initial",...Kg];function Ed(e){return Sd(e.animate)||Ig.some(t=>xl(e[t]))}function $T(e){return!!(Ed(e)||e.variants)}function y9(e,t){if(Ed(e)){const{initial:a,animate:r}=e;return{initial:a===!1||xl(a)?a:void 0,animate:xl(r)?r:void 0}}return e.inherit!==!1?t:{}}function v9(e){const{initial:t,animate:a}=y9(e,S.useContext(wd));return S.useMemo(()=>({initial:t,animate:a}),[$1(t),$1(a)])}function $1(e){return Array.isArray(e)?e.join(" "):e}const bl={};function x9(e){for(const t in e)bl[t]=e[t],Ag(t)&&(bl[t].isCSSVariable=!0)}function ZT(e,{layout:t,layoutId:a}){return $i.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!bl[e]||e==="opacity")}const b9={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},w9=Ii.length;function S9(e,t,a){let r="",o=!0;for(let c=0;c<w9;c++){const u=Ii[c],d=e[u];if(d===void 0)continue;let h=!0;if(typeof d=="number"?h=d===(u.startsWith("scale")?1:0):h=parseFloat(d)===0,!h||a){const p=PT(d,Bg[u]);if(!h){o=!1;const v=b9[u]||u;r+=`${v}(${p}) `}a&&(t[u]=p)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function $g(e,t,a){const{style:r,vars:o,transformOrigin:c}=e;let u=!1,d=!1;for(const h in t){const p=t[h];if($i.has(h)){u=!0;continue}else if(Ag(h)){o[h]=p;continue}else{const v=PT(p,Bg[h]);h.startsWith("origin")?(d=!0,c[h]=v):r[h]=v}}if(t.transform||(u||a?r.transform=S9(t,e.transform,a):r.transform&&(r.transform="none")),d){const{originX:h="50%",originY:p="50%",originZ:v=0}=c;r.transformOrigin=`${h} ${p} ${v}`}}const Zg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function GT(e,t,a){for(const r in t)!Pt(t[r])&&!ZT(r,a)&&(e[r]=t[r])}function E9({transformTemplate:e},t){return S.useMemo(()=>{const a=Zg();return $g(a,t,e),Object.assign({},a.vars,a.style)},[t])}function T9(e,t){const a=e.style||{},r={};return GT(r,a,e),Object.assign(r,E9(e,t)),r}function _9(e,t){const a={},r=T9(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=r,a}const A9={offset:"stroke-dashoffset",array:"stroke-dasharray"},C9={offset:"strokeDashoffset",array:"strokeDasharray"};function O9(e,t,a=1,r=0,o=!0){e.pathLength=1;const c=o?A9:C9;e[c.offset]=xe.transform(-r);const u=xe.transform(t),d=xe.transform(a);e[c.array]=`${u} ${d}`}function FT(e,{attrX:t,attrY:a,attrScale:r,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...d},h,p,v){if($g(e,d,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:b}=e;y.transform&&(b.transform=y.transform,delete y.transform),(b.transform||y.transformOrigin)&&(b.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),b.transform&&(b.transformBox=v?.transformBox??"fill-box",delete y.transformBox),t!==void 0&&(y.x=t),a!==void 0&&(y.y=a),r!==void 0&&(y.scale=r),o!==void 0&&O9(y,o,c,u,!1)}const QT=()=>({...Zg(),attrs:{}}),YT=e=>typeof e=="string"&&e.toLowerCase()==="svg";function j9(e,t,a,r){const o=S.useMemo(()=>{const c=QT();return FT(c,t,YT(r),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};GT(c,e.style,e),o.style={...c,...o.style}}return o}const M9=["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 Gg(e){return typeof e!="string"||e.includes("-")?!1:!!(M9.indexOf(e)>-1||/[A-Z]/u.test(e))}function N9(e,t,a,{latestValues:r},o,c=!1){const d=(Gg(e)?j9:_9)(t,r,o,e),h=g9(t,typeof e=="string",c),p=e!==S.Fragment?{...h,...d,ref:a}:{},{children:v}=t,y=S.useMemo(()=>Pt(v)?v.get():v,[v]);return S.createElement(e,{...p,children:y})}function Z1(e){const t=[{},{}];return e?.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function Fg(e,t,a,r){if(typeof t=="function"){const[o,c]=Z1(r);t=t(a!==void 0?a:e.custom,o,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,c]=Z1(r);t=t(a!==void 0?a:e.custom,o,c)}return t}function _u(e){return Pt(e)?e.get():e}function k9({scrapeMotionValuesFromProps:e,createRenderState:t},a,r,o){return{latestValues:z9(a,r,o,e),renderState:t()}}function z9(e,t,a,r){const o={},c=r(e,{});for(const b in c)o[b]=_u(c[b]);let{initial:u,animate:d}=e;const h=Ed(e),p=$T(e);t&&p&&!h&&e.inherit!==!1&&(u===void 0&&(u=t.initial),d===void 0&&(d=t.animate));let v=a?a.initial===!1:!1;v=v||u===!1;const y=v?d:u;if(y&&typeof y!="boolean"&&!Sd(y)){const b=Array.isArray(y)?y:[y];for(let w=0;w<b.length;w++){const T=Fg(e,b[w]);if(T){const{transitionEnd:_,transition:k,...M}=T;for(const L in M){let A=M[L];if(Array.isArray(A)){const U=v?A.length-1:0;A=A[U]}A!==null&&(o[L]=A)}for(const L in _)o[L]=_[L]}}}return o}const XT=e=>(t,a)=>{const r=S.useContext(wd),o=S.useContext(xd),c=()=>k9(e,t,r,o);return a?c():qi(c)};function Qg(e,t,a){const{style:r}=e,o={};for(const c in r)(Pt(r[c])||t.style&&Pt(t.style[c])||ZT(c,e)||a?.getValue(c)?.liveStyle!==void 0)&&(o[c]=r[c]);return o}const R9=XT({scrapeMotionValuesFromProps:Qg,createRenderState:Zg});function WT(e,t,a){const r=Qg(e,t,a);for(const o in e)if(Pt(e[o])||Pt(t[o])){const c=Ii.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=e[o]}return r}const D9=XT({scrapeMotionValuesFromProps:WT,createRenderState:QT}),P9=Symbol.for("motionComponentSymbol");function wi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function L9(e,t,a){return S.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),a&&(typeof a=="function"?a(r):wi(a)&&(a.current=r))},[t])}const Yg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),B9="framerAppearId",JT="data-"+Yg(B9),e_=S.createContext({});function H9(e,t,a,r,o){const{visualElement:c}=S.useContext(wd),u=S.useContext(KT),d=S.useContext(xd),h=S.useContext(bd).reducedMotion,p=S.useRef(null);r=r||u.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:c,props:a,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:h}));const v=p.current,y=S.useContext(e_);v&&!v.projection&&o&&(v.type==="html"||v.type==="svg")&&U9(p.current,a,o,y);const b=S.useRef(!1);S.useInsertionEffect(()=>{v&&b.current&&v.update(a,d)});const w=a[JT],T=S.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return vd(()=>{v&&(b.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),T.current&&v.animationState&&v.animationState.animateChanges())}),S.useEffect(()=>{v&&(!T.current&&v.animationState&&v.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),T.current=!1),v.enteringChildren=void 0)}),v}function U9(e,t,a,r){const{layoutId:o,layout:c,drag:u,dragConstraints:d,layoutScroll:h,layoutRoot:p,layoutCrossfade:v}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:t_(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||d&&wi(d),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:v,layoutScroll:h,layoutRoot:p})}function t_(e){if(e)return e.options.allowProjection!==!1?e.projection:t_(e.parent)}function pp(e,{forwardMotionProps:t=!1}={},a,r){a&&h9(a);const o=Gg(e)?D9:R9;function c(d,h){let p;const v={...S.useContext(bd),...d,layoutId:V9(d)},{isStatic:y}=v,b=v9(d),w=o(d,y);if(!y&&vg){q9();const T=K9(v);p=T.MeasureLayout,b.visualElement=H9(e,w,v,r,T.ProjectionNode)}return g.jsxs(wd.Provider,{value:b,children:[p&&b.visualElement?g.jsx(p,{visualElement:b.visualElement,...v}):null,N9(e,d,L9(w,b.visualElement,h),w,y,t)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=S.forwardRef(c);return u[P9]=e,u}function V9({layoutId:e}){const t=S.useContext(yg).id;return t&&e!==void 0?t+"-"+e:e}function q9(e,t){S.useContext(KT).strict}function K9(e){const{drag:t,layout:a}=Di;if(!t&&!a)return{};const r={...t,...a};return{MeasureLayout:t?.isEnabled(e)||a?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function I9(e,t){if(typeof Proxy>"u")return pp;const a=new Map,r=(c,u)=>pp(c,u,e,t),o=(c,u)=>r(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?r:(a.has(u)||a.set(u,pp(u,void 0,e,t)),a.get(u))})}function n_({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function $9({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Z9(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function mp(e){return e===void 0||e===1}function Em({scale:e,scaleX:t,scaleY:a}){return!mp(e)||!mp(t)||!mp(a)}function tr(e){return Em(e)||a_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a_(e){return G1(e.x)||G1(e.y)}function G1(e){return e&&e!=="0%"}function Gu(e,t,a){const r=e-a,o=t*r;return a+o}function F1(e,t,a,r,o){return o!==void 0&&(e=Gu(e,o,r)),Gu(e,a,r)+t}function Tm(e,t=0,a=1,r,o){e.min=F1(e.min,t,a,r,o),e.max=F1(e.max,t,a,r,o)}function s_(e,{x:t,y:a}){Tm(e.x,t.translate,t.scale,t.originPoint),Tm(e.y,a.translate,a.scale,a.originPoint)}const Q1=.999999999999,Y1=1.0000000000001;function G9(e,t,a,r=!1){const o=a.length;if(!o)return;t.x=t.y=1;let c,u;for(let d=0;d<o;d++){c=a[d],u=c.projectionDelta;const{visualElement:h}=c.options;h&&h.props.style&&h.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Ei(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,s_(e,u)),r&&tr(c.latestValues)&&Ei(e,c.latestValues))}t.x<Y1&&t.x>Q1&&(t.x=1),t.y<Y1&&t.y>Q1&&(t.y=1)}function Si(e,t){e.min=e.min+t,e.max=e.max+t}function X1(e,t,a,r,o=.5){const c=tt(e.min,e.max,o);Tm(e,t,a,c,r)}function Ei(e,t){X1(e.x,t.x,t.scaleX,t.scale,t.originX),X1(e.y,t.y,t.scaleY,t.scale,t.originY)}function r_(e,t){return n_(Z9(e.getBoundingClientRect(),t))}function F9(e,t,a){const r=r_(e,a),{scroll:o}=t;return o&&(Si(r.x,o.offset.x),Si(r.y,o.offset.y)),r}const W1=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ti=()=>({x:W1(),y:W1()}),J1=()=>({min:0,max:0}),ct=()=>({x:J1(),y:J1()}),_m={current:null},i_={current:!1};function Q9(){if(i_.current=!0,!!vg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>_m.current=e.matches;e.addEventListener("change",t),t()}else _m.current=!1}const Y9=new WeakMap;function X9(e,t,a){for(const r in t){const o=t[r],c=a[r];if(Pt(o))e.addValue(r,o);else if(Pt(c))e.addValue(r,Kn(o,{owner:e}));else if(c!==o)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(r);e.addValue(r,Kn(u!==void 0?u:o,{owner:e}))}}for(const r in a)t[r]===void 0&&e.removeValue(r);return t}const ew=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class W9{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:c,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Pg,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 b=tn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,Ke.render(this.render,!1,!0))};const{latestValues:h,renderState:p}=u;this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=p,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=d,this.blockInitialAnimation=!!c,this.isControllingVariants=Ed(a),this.isVariantNode=$T(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:v,...y}=this.scrapeMotionValuesFromProps(a,{},this);for(const b in y){const w=y[b];h[b]!==void 0&&Pt(w)&&w.set(h[b])}}mount(t){this.current=t,Y9.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((a,r)=>this.bindToMotionValue(r,a)),i_.current||Q9(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_m.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Zn(this.notifyUpdate),Zn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const a=this.features[t];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=$i.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=a.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Ke.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{o(),c&&c(),a.owner&&a.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 Di){const a=Di[t];if(!a)continue;const{isEnabled:r,Feature:o}=a;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ct()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<ew.length;r++){const o=ew[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=t[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=X9(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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 a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=Kn(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(YE(r)||WE(r))?r=parseFloat(r):!i9(r)&&As.test(a)&&(r=RT(t,a)),this.setBaseTarget(t,Pt(r)?r.get():r)),Pt(r)?r.get():r}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){const{initial:a}=this.props;let r;if(typeof a=="string"||typeof a=="object"){const c=Fg(this.props,a,this.presenceContext?.custom);c&&(r=c[t])}if(a&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Pt(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Sg),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){Ug.render(this.render)}}class o_ extends W9{constructor(){super(...arguments),this.KeyframeResolver=H8}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){return t.style?t.style[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Pt(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function l_(e,{style:t,vars:a},r,o){const c=e.style;let u;for(u in t)c[u]=t[u];o?.applyProjectionStyles(c,r);for(u in a)c.setProperty(u,a[u])}function J9(e){return window.getComputedStyle(e)}class e7 extends o_{constructor(){super(...arguments),this.type="html",this.renderInstance=l_}readValueFromInstance(t,a){if($i.has(a))return this.projection?.isProjecting?gm(a):r8(t,a);{const r=J9(t),o=(Ag(a)?r.getPropertyValue(a):r[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:a}){return r_(t,a)}build(t,a,r){$g(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return Qg(t,a,r)}}const c_=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 t7(e,t,a,r){l_(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(c_.has(o)?o:Yg(o),t.attrs[o])}class n7 extends o_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ct}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if($i.has(a)){const r=zT(a);return r&&r.default||0}return a=c_.has(a)?a:Yg(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return WT(t,a,r)}build(t,a,r){FT(t,a,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,a,r,o){t7(t,a,r,o)}mount(t){this.isSVGTag=YT(t.tagName),super.mount(t)}}const a7=(e,t)=>Gg(e)?new n7(t):new e7(t,{allowProjection:e!==S.Fragment});function ji(e,t,a){const r=e.getProps();return Fg(r,t,a!==void 0?a:r.custom,e)}const Am=e=>Array.isArray(e);function s7(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,Kn(a))}function r7(e){return Am(e)?e[e.length-1]||0:e}function i7(e,t){const a=ji(e,t);let{transitionEnd:r={},transition:o={},...c}=a||{};c={...c,...r};for(const u in c){const d=r7(c[u]);s7(e,u,d)}}function o7(e){return!!(Pt(e)&&e.add)}function Cm(e,t){const a=e.getValue("willChange");if(o7(a))return a.add(t);if(!a&&Ha.WillChange){const r=new Ha.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function u_(e){return e.props[JT]}const l7=e=>e!==null;function c7(e,{repeat:t,repeatType:a="loop"},r){const o=e.filter(l7),c=t&&a!=="loop"&&t%2===1?0:o.length-1;return o[c]}const u7={type:"spring",stiffness:500,damping:25,restSpeed:10},d7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),f7={type:"keyframes",duration:.8},h7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},p7=(e,{keyframes:t})=>t.length>2?f7:$i.has(e)?e.startsWith("scale")?d7(t[1]):u7:h7;function m7({when:e,delay:t,delayChildren:a,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:d,from:h,elapsed:p,...v}){return!!Object.keys(v).length}const Xg=(e,t,a,r={},o,c)=>u=>{const d=Lg(r,e)||{},h=d.delay||r.delay||0;let{elapsed:p=0}=r;p=p-ra(h);const v={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...d,delay:-p,onUpdate:b=>{t.set(b),d.onUpdate&&d.onUpdate(b)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:e,motionValue:t,element:c?void 0:o};m7(d)||Object.assign(v,p7(e,v)),v.duration&&(v.duration=ra(v.duration)),v.repeatDelay&&(v.repeatDelay=ra(v.repeatDelay)),v.from!==void 0&&(v.keyframes[0]=v.from);let y=!1;if((v.type===!1||v.duration===0&&!v.repeatDelay)&&(wm(v),v.delay===0&&(y=!0)),(Ha.instantAnimations||Ha.skipAnimations)&&(y=!0,wm(v),v.delay=0),v.allowFlatten=!d.type&&!d.ease,y&&!c&&t.get()!==void 0){const b=c7(v.keyframes,d);if(b!==void 0){Ke.update(()=>{v.onUpdate(b),v.onComplete()});return}}return d.isSync?new Dg(v):new C8(v)};function g7({protectedKeys:e,needsAnimating:t},a){const r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function d_(e,t,{delay:a=0,transitionOverride:r,type:o}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:u,...d}=t;r&&(c=r);const h=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const v in d){const y=e.getValue(v,e.latestValues[v]??null),b=d[v];if(b===void 0||p&&g7(p,v))continue;const w={delay:a,...Lg(c||{},v)},T=y.get();if(T!==void 0&&!y.isAnimating&&!Array.isArray(b)&&b===T&&!w.velocity)continue;let _=!1;if(window.MotionHandoffAnimation){const M=u_(e);if(M){const L=window.MotionHandoffAnimation(M,v,Ke);L!==null&&(w.startTime=L,_=!0)}}Cm(e,v),y.start(Xg(v,y,b,e.shouldReduceMotion&&MT.has(v)?{type:!1}:w,e,_));const k=y.animation;k&&h.push(k)}return u&&Promise.all(h).then(()=>{Ke.update(()=>{u&&i7(e,u)})}),h}function f_(e,t,a,r=0,o=1){const c=Array.from(e).sort((p,v)=>p.sortNodePosition(v)).indexOf(t),u=e.size,d=(u-1)*r;return typeof a=="function"?a(c,u):o===1?c*r:d-c*r}function Om(e,t,a={}){const r=ji(e,t,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};a.transitionOverride&&(o=a.transitionOverride);const c=r?()=>Promise.all(d_(e,r,a)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:v,staggerDirection:y}=o;return y7(e,t,h,p,v,y,a)}:()=>Promise.resolve(),{when:d}=o;if(d){const[h,p]=d==="beforeChildren"?[c,u]:[u,c];return h().then(()=>p())}else return Promise.all([c(),u(a.delay)])}function y7(e,t,a=0,r=0,o=0,c=1,u){const d=[];for(const h of e.variantChildren)h.notify("AnimationStart",t),d.push(Om(h,t,{...u,delay:a+(typeof r=="function"?0:r)+f_(e.variantChildren,h,r,o,c)}).then(()=>h.notify("AnimationComplete",t)));return Promise.all(d)}function v7(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(c=>Om(e,c,a));r=Promise.all(o)}else if(typeof t=="string")r=Om(e,t,a);else{const o=typeof t=="function"?ji(e,t,a.custom):t;r=Promise.all(d_(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}function h_(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(t[r]!==e[r])return!1;return!0}const x7=Ig.length;function p_(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?p_(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<x7;a++){const r=Ig[a],o=e.props[r];(xl(o)||o===!1)&&(t[r]=o)}return t}const b7=[...Kg].reverse(),w7=Kg.length;function S7(e){return t=>Promise.all(t.map(({animation:a,options:r})=>v7(e,a,r)))}function E7(e){let t=S7(e),a=tw(),r=!0;const o=h=>(p,v)=>{const y=ji(e,v,h==="exit"?e.presenceContext?.custom:void 0);if(y){const{transition:b,transitionEnd:w,...T}=y;p={...p,...T,...w}}return p};function c(h){t=h(e)}function u(h){const{props:p}=e,v=p_(e.parent)||{},y=[],b=new Set;let w={},T=1/0;for(let k=0;k<w7;k++){const M=b7[k],L=a[M],A=p[M]!==void 0?p[M]:v[M],U=xl(A),B=M===h?L.isActive:null;B===!1&&(T=k);let V=A===v[M]&&A!==p[M]&&U;if(V&&r&&e.manuallyAnimateOnMount&&(V=!1),L.protectedKeys={...w},!L.isActive&&B===null||!A&&!L.prevProp||Sd(A)||typeof A=="boolean")continue;const C=T7(L.prevProp,A);let R=C||M===h&&L.isActive&&!V&&U||k>T&&U,X=!1;const J=Array.isArray(A)?A:[A];let re=J.reduce(o(M),{});B===!1&&(re={});const{prevResolvedValues:te={}}=L,le={...te,...re},ie=D=>{R=!0,b.has(D)&&(X=!0,b.delete(D)),L.needsAnimating[D]=!0;const P=e.getValue(D);P&&(P.liveStyle=!1)};for(const D in le){const P=re[D],ne=te[D];if(w.hasOwnProperty(D))continue;let oe=!1;Am(P)&&Am(ne)?oe=!h_(P,ne):oe=P!==ne,oe?P!=null?ie(D):b.add(D):P!==void 0&&b.has(D)?ie(D):L.protectedKeys[D]=!0}L.prevProp=A,L.prevResolvedValues=re,L.isActive&&(w={...w,...re}),r&&e.blockInitialAnimation&&(R=!1);const ue=V&&C;R&&(!ue||X)&&y.push(...J.map(D=>{const P={type:M};if(typeof D=="string"&&r&&!ue&&e.manuallyAnimateOnMount&&e.parent){const{parent:ne}=e,oe=ji(ne,D);if(ne.enteringChildren&&oe){const{delayChildren:j}=oe.transition||{};P.delay=f_(ne.enteringChildren,e,j)}}return{animation:D,options:P}}))}if(b.size){const k={};if(typeof p.initial!="boolean"){const M=ji(e,Array.isArray(p.initial)?p.initial[0]:p.initial);M&&M.transition&&(k.transition=M.transition)}b.forEach(M=>{const L=e.getBaseTarget(M),A=e.getValue(M);A&&(A.liveStyle=!0),k[M]=L??null}),y.push({animation:k})}let _=!!y.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(_=!1),r=!1,_?t(y):Promise.resolve()}function d(h,p){if(a[h].isActive===p)return Promise.resolve();e.variantChildren?.forEach(y=>y.animationState?.setActive(h,p)),a[h].isActive=p;const v=u(h);for(const y in a)a[y].protectedKeys={};return v}return{animateChanges:u,setActive:d,setAnimateFunction:c,getState:()=>a,reset:()=>{a=tw(),r=!0}}}function T7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!h_(t,e):!1}function er(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function tw(){return{animate:er(!0),whileInView:er(),whileHover:er(),whileTap:er(),whileDrag:er(),whileFocus:er(),exit:er()}}class js{constructor(t){this.isMounted=!1,this.node=t}update(){}}class _7 extends js{constructor(t){super(t),t.animationState||(t.animationState=E7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Sd(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let A7=0;class C7 extends js{constructor(){super(...arguments),this.id=A7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);a&&!t&&o.then(()=>{a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const O7={animation:{Feature:_7},exit:{Feature:C7}};function wl(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}function zl(e){return{point:{x:e.pageX,y:e.pageY}}}const j7=e=>t=>Vg(t)&&e(t,zl(t));function al(e,t,a,r){return wl(e,t,j7(a),r)}const m_=1e-4,M7=1-m_,N7=1+m_,g_=.01,k7=0-g_,z7=0+g_;function Kt(e){return e.max-e.min}function R7(e,t,a){return Math.abs(e-t)<=a}function nw(e,t,a,r=.5){e.origin=r,e.originPoint=tt(t.min,t.max,e.origin),e.scale=Kt(a)/Kt(t),e.translate=tt(a.min,a.max,e.origin)-e.originPoint,(e.scale>=M7&&e.scale<=N7||isNaN(e.scale))&&(e.scale=1),(e.translate>=k7&&e.translate<=z7||isNaN(e.translate))&&(e.translate=0)}function sl(e,t,a,r){nw(e.x,t.x,a.x,r?r.originX:void 0),nw(e.y,t.y,a.y,r?r.originY:void 0)}function aw(e,t,a){e.min=a.min+t.min,e.max=e.min+Kt(t)}function D7(e,t,a){aw(e.x,t.x,a.x),aw(e.y,t.y,a.y)}function sw(e,t,a){e.min=t.min-a.min,e.max=e.min+Kt(t)}function rl(e,t,a){sw(e.x,t.x,a.x),sw(e.y,t.y,a.y)}function jn(e){return[e("x"),e("y")]}const y_=({current:e})=>e?e.ownerDocument.defaultView:null,rw=(e,t)=>Math.abs(e-t);function P7(e,t){const a=rw(e.x,t.x),r=rw(e.y,t.y);return Math.sqrt(a**2+r**2)}class v_{constructor(t,a,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=yp(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,T=P7(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!T)return;const{point:_}=b,{timestamp:k}=Et;this.history.push({..._,timestamp:k});const{onStart:M,onMove:L}=this.handlers;w||(M&&M(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),L&&L(this.lastMoveEvent,b)},this.handlePointerMove=(b,w)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=gp(w,this.transformPagePoint),Ke.update(this.updatePoint,!0)},this.handlePointerUp=(b,w)=>{this.end();const{onEnd:T,onSessionEnd:_,resumeAnimation:k}=this.handlers;if(this.dragSnapToOrigin&&k&&k(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const M=yp(b.type==="pointercancel"?this.lastMoveEventInfo:gp(w,this.transformPagePoint),this.history);this.startEvent&&T&&T(b,M),_&&_(b,M)},!Vg(t))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=r,this.distanceThreshold=u,this.contextWindow=o||window;const d=zl(t),h=gp(d,this.transformPagePoint),{point:p}=h,{timestamp:v}=Et;this.history=[{...p,timestamp:v}];const{onSessionStart:y}=a;y&&y(t,yp(h,this.history)),this.removeListeners=Ml(al(this.contextWindow,"pointermove",this.handlePointerMove),al(this.contextWindow,"pointerup",this.handlePointerUp),al(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zn(this.updatePoint)}}function gp(e,t){return t?{point:t(e.point)}:e}function iw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function yp({point:e},t){return{point:e,delta:iw(e,x_(t)),offset:iw(e,L7(t)),velocity:B7(t,.1)}}function L7(e){return e[0]}function x_(e){return e[e.length-1]}function B7(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null;const o=x_(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>ra(t)));)a--;if(!r)return{x:0,y:0};const c=kn(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function H7(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?tt(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?tt(a,e,r.max):Math.min(e,a)),e}function ow(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function U7(e,{top:t,left:a,bottom:r,right:o}){return{x:ow(e.x,a,o),y:ow(e.y,t,r)}}function lw(e,t){let a=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function V7(e,t){return{x:lw(e.x,t.x),y:lw(e.y,t.y)}}function q7(e,t){let a=.5;const r=Kt(e),o=Kt(t);return o>r?a=Ri(t.min,t.max-r,e.min):r>o&&(a=Ri(e.min,e.max-o,t.min)),la(0,1,a)}function K7(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const jm=.35;function I7(e=jm){return e===!1?e=0:e===!0&&(e=jm),{x:cw(e,"left","right"),y:cw(e,"top","bottom")}}function cw(e,t,a){return{min:uw(e,t),max:uw(e,a)}}function uw(e,t){return typeof e=="number"?e:e[t]||0}const $7=new WeakMap;class Z7{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=ct(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=y=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(zl(y).point)},u=(y,b)=>{const{drag:w,dragPropagation:T,onDragStart:_}=this.getProps();if(w&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=q8(w),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),jn(M=>{let L=this.getAxisMotionValue(M).get()||0;if(ia.test(L)){const{projection:A}=this.visualElement;if(A&&A.layout){const U=A.layout.layoutBox[M];U&&(L=Kt(U)*(parseFloat(L)/100))}}this.originPoint[M]=L}),_&&Ke.postRender(()=>_(y,b)),Cm(this.visualElement,"transform");const{animationState:k}=this.visualElement;k&&k.setActive("whileDrag",!0)},d=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:T,onDirectionLock:_,onDrag:k}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:M}=b;if(T&&this.currentDirection===null){this.currentDirection=G7(M),this.currentDirection!==null&&_&&_(this.currentDirection);return}this.updateAxis("x",b.point,M),this.updateAxis("y",b.point,M),this.visualElement.render(),k&&k(y,b)},h=(y,b)=>{this.latestPointerEvent=y,this.latestPanInfo=b,this.stop(y,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>jn(y=>this.getAnimationState(y)==="paused"&&this.getAxisMotionValue(y).animation?.play()),{dragSnapToOrigin:v}=this.getProps();this.panSession=new v_(t,{onSessionStart:c,onStart:u,onMove:d,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:v,distanceThreshold:r,contextWindow:y_(this.visualElement)})}stop(t,a){const r=t||this.latestPointerEvent,o=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!r)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&Ke.postRender(()=>d(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(t,a,r){const{drag:o}=this.getProps();if(!r||!du(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=H7(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:a}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&wi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=U7(r.layoutBox,t):this.constraints=!1,this.elastic=I7(a),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&jn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=K7(r.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!wi(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=F9(r,o.root,this.visualElement.getTransformPagePoint());let u=V7(o.layout.layoutBox,c);if(a){const d=a($9(u));this.hasMutatedConstraints=!!d,d&&(u=n_(d))}return u}startAnimation(t){const{drag:a,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),h=this.constraints||{},p=jn(v=>{if(!du(v,a,this.currentDirection))return;let y=h&&h[v]||{};u&&(y={min:0,max:0});const b=o?200:1e6,w=o?40:1e7,T={type:"inertia",velocity:r?t[v]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...c,...y};return this.startAxisValueAnimation(v,T)});return Promise.all(p).then(d)}startAxisValueAnimation(t,a){const r=this.getAxisMotionValue(t);return Cm(this.visualElement,t),r.start(Xg(t,r,0,a,this.visualElement,!1))}stopAnimation(){jn(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){jn(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[a];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){jn(a=>{const{drag:r}=this.getProps();if(!du(a,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(a);if(o&&o.layout){const{min:u,max:d}=o.layout.layoutBox[a];c.set(t[a]-tt(u,d,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!wi(a)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};jn(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const h=d.get();o[u]=q7({min:h,max:h},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),jn(u=>{if(!du(u,t,null))return;const d=this.getAxisMotionValue(u),{min:h,max:p}=this.constraints[u];d.set(tt(h,p,o[u]))})}addListeners(){if(!this.visualElement.current)return;$7.set(this.visualElement,this);const t=this.visualElement.current,a=al(t,"pointerdown",h=>{const{drag:p,dragListener:v=!0}=this.getProps();p&&v&&this.start(h)}),r=()=>{const{dragConstraints:h}=this.getProps();wi(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),Ke.read(r);const u=wl(window,"resize",()=>this.scalePositionWithinConstraints()),d=o.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(jn(v=>{const y=this.getAxisMotionValue(v);y&&(this.originPoint[v]+=h[v].translate,y.set(y.get()+h[v].translate))}),this.visualElement.render())}));return()=>{u(),a(),c(),d&&d()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=jm,dragMomentum:d=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:d}}}function du(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function G7(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class F7 extends js{constructor(t){super(t),this.removeGroupControls=nn,this.removeListeners=nn,this.controls=new Z7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||nn}unmount(){this.removeGroupControls(),this.removeListeners()}}const dw=e=>(t,a)=>{e&&Ke.postRender(()=>e(t,a))};class Q7 extends js{constructor(){super(...arguments),this.removePointerDownListener=nn}onPointerDown(t){this.session=new v_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:y_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:dw(t),onStart:dw(a),onMove:r,onEnd:(c,u)=>{delete this.session,o&&Ke.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=al(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 Au={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xe.test(e))e=parseFloat(e);else return e;const a=fw(e,t.target.x),r=fw(e,t.target.y);return`${a}% ${r}%`}},Y7={correct:(e,{treeScale:t,projectionDelta:a})=>{const r=e,o=As.parse(e);if(o.length>5)return r;const c=As.createTransformer(e),u=typeof o[0]!="number"?1:0,d=a.x.scale*t.x,h=a.y.scale*t.y;o[0+u]/=d,o[1+u]/=h;const p=tt(d,h,.5);return typeof o[2+u]=="number"&&(o[2+u]/=p),typeof o[3+u]=="number"&&(o[3+u]/=p),c(o)}};let vp=!1;class X7 extends S.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=t;x9(W7),c&&(a.group&&a.group.add(c),r&&r.register&&o&&r.register(c),vp&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Au.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:r,drag:o,isPresent:c}=this.props,{projection:u}=r;return u&&(u.isPresent=c,vp=!0,o||t.layoutDependency!==a||a===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Ke.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Ug.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:o}=t;vp=!0,o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function b_(e){const[t,a]=qT(),r=S.useContext(yg);return g.jsx(X7,{...e,layoutGroup:r,switchLayoutGroup:S.useContext(e_),isPresent:t,safeToRemove:a})}const W7={borderRadius:{...Qo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qo,borderTopRightRadius:Qo,borderBottomLeftRadius:Qo,borderBottomRightRadius:Qo,boxShadow:Y7};function J7(e,t,a){const r=Pt(e)?e:Kn(e);return r.start(Xg("",r,t,a)),r.animation}const eL=(e,t)=>e.depth-t.depth;class tL{constructor(){this.children=[],this.isDirty=!1}add(t){xg(this.children,t),this.isDirty=!0}remove(t){bg(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(eL),this.isDirty=!1,this.children.forEach(t)}}function nL(e,t){const a=tn.now(),r=({timestamp:o})=>{const c=o-a;c>=t&&(Zn(r),e(c-t))};return Ke.setup(r,!0),()=>Zn(r)}const w_=["TopLeft","TopRight","BottomLeft","BottomRight"],aL=w_.length,hw=e=>typeof e=="string"?parseFloat(e):e,pw=e=>typeof e=="number"||xe.test(e);function sL(e,t,a,r,o,c){o?(e.opacity=tt(0,a.opacity??1,rL(r)),e.opacityExit=tt(t.opacity??1,0,iL(r))):c&&(e.opacity=tt(t.opacity??1,a.opacity??1,r));for(let u=0;u<aL;u++){const d=`border${w_[u]}Radius`;let h=mw(t,d),p=mw(a,d);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||pw(h)===pw(p)?(e[d]=Math.max(tt(hw(h),hw(p),r),0),(ia.test(p)||ia.test(h))&&(e[d]+="%")):e[d]=p}(t.rotate||a.rotate)&&(e.rotate=tt(t.rotate||0,a.rotate||0,r))}function mw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const rL=S_(0,.5,rT),iL=S_(.5,.95,nn);function S_(e,t,a){return r=>r<e?0:r>t?1:a(Ri(e,t,r))}function gw(e,t){e.min=t.min,e.max=t.max}function Cn(e,t){gw(e.x,t.x),gw(e.y,t.y)}function yw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function vw(e,t,a,r,o){return e-=t,e=Gu(e,1/a,r),o!==void 0&&(e=Gu(e,1/o,r)),e}function oL(e,t=0,a=1,r=.5,o,c=e,u=e){if(ia.test(t)&&(t=parseFloat(t),t=tt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let d=tt(c.min,c.max,r);e===c&&(d-=t),e.min=vw(e.min,t,a,d,o),e.max=vw(e.max,t,a,d,o)}function xw(e,t,[a,r,o],c,u){oL(e,t[a],t[r],t[o],t.scale,c,u)}const lL=["x","scaleX","originX"],cL=["y","scaleY","originY"];function bw(e,t,a,r){xw(e.x,t,lL,a?a.x:void 0,r?r.x:void 0),xw(e.y,t,cL,a?a.y:void 0,r?r.y:void 0)}function ww(e){return e.translate===0&&e.scale===1}function E_(e){return ww(e.x)&&ww(e.y)}function Sw(e,t){return e.min===t.min&&e.max===t.max}function uL(e,t){return Sw(e.x,t.x)&&Sw(e.y,t.y)}function Ew(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function T_(e,t){return Ew(e.x,t.x)&&Ew(e.y,t.y)}function Tw(e){return Kt(e.x)/Kt(e.y)}function _w(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class dL{constructor(){this.members=[]}add(t){xg(this.members,t),t.scheduleRender()}remove(t){if(bg(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(o=>t===o);if(a===0)return!1;let r;for(let o=a;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){r=c;break}}return r?(this.promote(r),!0):!1}promote(t,a){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,a&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:r}=t;a.onExitComplete&&a.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function fL(e,t,a){let r="";const o=e.x.translate/t.x,c=e.y.translate/t.y,u=a?.z||0;if((o||c||u)&&(r=`translate3d(${o}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:p,rotate:v,rotateX:y,rotateY:b,skewX:w,skewY:T}=a;p&&(r=`perspective(${p}px) ${r}`),v&&(r+=`rotate(${v}deg) `),y&&(r+=`rotateX(${y}deg) `),b&&(r+=`rotateY(${b}deg) `),w&&(r+=`skewX(${w}deg) `),T&&(r+=`skewY(${T}deg) `)}const d=e.x.scale*t.x,h=e.y.scale*t.y;return(d!==1||h!==1)&&(r+=`scale(${d}, ${h})`),r||"none"}const xp=["","X","Y","Z"],hL=1e3;let pL=0;function bp(e,t,a,r){const{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function __(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=u_(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Ke,!(o||c))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&__(r)}function A_({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(u={},d=t?.()){this.id=pL++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(yL),this.nodes.forEach(wL),this.nodes.forEach(SL),this.nodes.forEach(vL)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new tL)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Sg),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const h=this.eventHandlers.get(u);h&&h.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=qg(u)&&!a9(u),this.instance=u;const{layoutId:d,layout:h,visualElement:p}=this.options;if(p&&!p.current&&p.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||d)&&(this.isLayoutDirty=!0),e){let v,y=0;const b=()=>this.root.updateBlockedByResize=!1;Ke.read(()=>{y=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==y&&(y=w,this.root.updateBlockedByResize=!0,v&&v(),v=nL(b,250),Au.hasAnimatedSinceResize&&(Au.hasAnimatedSinceResize=!1,this.nodes.forEach(Ow)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&p&&(d||h)&&this.addEventListener("didUpdate",({delta:v,hasLayoutChanged:y,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const T=this.options.transition||p.getDefaultTransition()||CL,{onLayoutAnimationStart:_,onLayoutAnimationComplete:k}=p.getProps(),M=!this.targetLayout||!T_(this.targetLayout,w),L=!y&&b;if(this.options.layoutRoot||this.resumeFrom||L||y&&(M||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const A={...Lg(T,"layout"),onPlay:_,onComplete:k};(p.shouldReduceMotion||this.options.layoutRoot)&&(A.delay=0,A.type=!1),this.startAnimation(A),this.setAnimationOrigin(v,L)}else y||Ow(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zn(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(EL),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&__(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let v=0;v<this.path.length;v++){const y=this.path[v];y.shouldResetTransform=!0,y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:d,layout:h}=this.options;if(d===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Aw);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Cw);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(bL),this.nodes.forEach(mL),this.nodes.forEach(gL)):this.nodes.forEach(Cw),this.clearAllSnapshots();const d=tn.now();Et.delta=la(0,1e3/60,d-Et.timestamp),Et.timestamp=d,Et.isProcessing=!0,lp.update.process(Et),lp.preRender.process(Et),lp.render.process(Et),Et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ug.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xL),this.sharedNodes.forEach(TL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ke.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ke.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Kt(this.snapshot.measuredBox.x)&&!Kt(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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ct(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d&&this.instance){const h=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!E_(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,v=p!==this.prevTransformTemplateValue;u&&this.instance&&(d||tr(this.latestValues)||v)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let h=this.removeElementScroll(d);return u&&(h=this.removeTransform(h)),OL(h),{animationId:this.root.animationId,measuredBox:d,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return ct();const d=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(jL))){const{scroll:p}=this.root;p&&(Si(d.x,p.offset.x),Si(d.y,p.offset.y))}return d}removeElementScroll(u){const d=ct();if(Cn(d,u),this.scroll?.wasRoot)return d;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:v,options:y}=p;p!==this.root&&v&&y.layoutScroll&&(v.wasRoot&&Cn(d,u),Si(d.x,v.offset.x),Si(d.y,v.offset.y))}return d}applyTransform(u,d=!1){const h=ct();Cn(h,u);for(let p=0;p<this.path.length;p++){const v=this.path[p];!d&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Ei(h,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),tr(v.latestValues)&&Ei(h,v.latestValues)}return tr(this.latestValues)&&Ei(h,this.latestValues),h}removeTransform(u){const d=ct();Cn(d,u);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!tr(p.latestValues))continue;Em(p.latestValues)&&p.updateSnapshot();const v=ct(),y=p.measurePageBox();Cn(v,y),bw(d,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,v)}return tr(this.latestValues)&&bw(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==Et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==d;if(!(u||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:v,layoutId:y}=this.options;if(!(!this.layout||!(v||y))){if(this.resolvedRelativeTargetAt=Et.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),rl(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ct(),this.targetWithTransforms=ct()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),D7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Cn(this.target,this.layout.layoutBox),s_(this.target,this.targetDelta)):Cn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ct(),this.relativeTargetOrigin=ct(),rl(this.relativeTargetOrigin,this.target,b.target),Cn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Em(this.parent.latestValues)||a_(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const u=this.getLead(),d=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Et.timestamp&&(h=!1),h)return;const{layout:p,layoutId:v}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||v))return;Cn(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,b=this.treeScale.y;G9(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=ct());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yw(this.prevProjectionDelta.x,this.projectionDelta.x),yw(this.prevProjectionDelta.y,this.projectionDelta.y)),sl(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==b||!_w(this.projectionDelta.x,this.prevProjectionDelta.x)||!_w(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const d=this.getStack();d&&d.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ti(),this.projectionDelta=Ti(),this.projectionDeltaWithTransform=Ti()}setAnimationOrigin(u,d=!1){const h=this.snapshot,p=h?h.latestValues:{},v={...this.latestValues},y=Ti();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const b=ct(),w=h?h.source:void 0,T=this.layout?this.layout.source:void 0,_=w!==T,k=this.getStack(),M=!k||k.members.length<=1,L=!!(_&&!M&&this.options.crossfade===!0&&!this.path.some(AL));this.animationProgress=0;let A;this.mixTargetDelta=U=>{const B=U/1e3;jw(y.x,u.x,B),jw(y.y,u.y,B),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rl(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),_L(this.relativeTarget,this.relativeTargetOrigin,b,B),A&&uL(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=ct()),Cn(A,this.relativeTarget)),_&&(this.animationValues=v,sL(v,p,this.latestValues,B,L,M)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=B},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ke.update(()=>{Au.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Kn(0)),this.currentAnimation=J7(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),u.onUpdate&&u.onUpdate(d)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(hL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:h,layout:p,latestValues:v}=u;if(!(!d||!h||!p)){if(this!==u&&this.layout&&p&&C_(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||ct();const y=Kt(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+y;const b=Kt(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+b}Cn(d,h),Ei(d,v),sl(this.projectionDeltaWithTransform,this.layoutCorrected,d,v)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new dL),this.sharedNodes.get(u).add(d);const p=d.options.initialPromotionConfig;d.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(d=!0),!d)return;const p={};h.z&&bp("z",u,p,this.animationValues);for(let v=0;v<xp.length;v++)bp(`rotate${xp[v]}`,u,p,this.animationValues),bp(`skew${xp[v]}`,u,p,this.animationValues);u.render();for(const v in p)u.setStaticValue(v,p[v]),this.animationValues&&(this.animationValues[v]=p[v]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=_u(d?.pointerEvents)||"",u.transform=h?h(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=_u(d?.pointerEvents)||""),this.hasProjected&&!tr(this.latestValues)&&(u.transform=h?h({},""):"none",this.hasProjected=!1);return}u.visibility="";const v=p.animationValues||p.latestValues;this.applyTransformsToTarget();let y=fL(this.projectionDeltaWithTransform,this.treeScale,v);h&&(y=h(v,y)),u.transform=y;const{x:b,y:w}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,p.animationValues?u.opacity=p===this?v.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:v.opacityExit:u.opacity=p===this?v.opacity!==void 0?v.opacity:"":v.opacityExit!==void 0?v.opacityExit:0;for(const T in bl){if(v[T]===void 0)continue;const{correct:_,applyTo:k,isCSSVariable:M}=bl[T],L=y==="none"?v[T]:_(v[T],p);if(k){const A=k.length;for(let U=0;U<A;U++)u[k[U]]=L}else M?this.options.visualElement.renderState.vars[T]=L:u[T]=L}this.options.layoutId&&(u.pointerEvents=p===this?_u(d?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(Aw),this.root.sharedNodes.clear()}}}function mL(e){e.updateLayout()}function gL(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:r}=e.layout,{animationType:o}=e.options,c=t.source!==e.layout.source;o==="size"?jn(v=>{const y=c?t.measuredBox[v]:t.layoutBox[v],b=Kt(y);y.min=a[v].min,y.max=y.min+b}):C_(o,t.layoutBox,a)&&jn(v=>{const y=c?t.measuredBox[v]:t.layoutBox[v],b=Kt(a[v]);y.max=y.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[v].max=e.relativeTarget[v].min+b)});const u=Ti();sl(u,a,t.layoutBox);const d=Ti();c?sl(d,e.applyTransform(r,!0),t.measuredBox):sl(d,a,t.layoutBox);const h=!E_(u);let p=!1;if(!e.resumeFrom){const v=e.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:y,layout:b}=v;if(y&&b){const w=ct();rl(w,t.layoutBox,y.layoutBox);const T=ct();rl(T,a,b.layoutBox),T_(w,T)||(p=!0),v.options.layoutRoot&&(e.relativeTarget=T,e.relativeTargetOrigin=w,e.relativeParent=v)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:t,delta:d,layoutDelta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function yL(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xL(e){e.clearSnapshot()}function Aw(e){e.clearMeasurements()}function Cw(e){e.isLayoutDirty=!1}function bL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ow(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function wL(e){e.resolveTargetDelta()}function SL(e){e.calcProjection()}function EL(e){e.resetSkewAndRotation()}function TL(e){e.removeLeadSnapshot()}function jw(e,t,a){e.translate=tt(t.translate,0,a),e.scale=tt(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function Mw(e,t,a,r){e.min=tt(t.min,a.min,r),e.max=tt(t.max,a.max,r)}function _L(e,t,a,r){Mw(e.x,t.x,a.x,r),Mw(e.y,t.y,a.y,r)}function AL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const CL={duration:.45,ease:[.4,0,.1,1]},Nw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kw=Nw("applewebkit/")&&!Nw("chrome/")?Math.round:nn;function zw(e){e.min=kw(e.min),e.max=kw(e.max)}function OL(e){zw(e.x),zw(e.y)}function C_(e,t,a){return e==="position"||e==="preserve-aspect"&&!R7(Tw(t),Tw(a),.2)}function jL(e){return e!==e.root&&e.scroll?.wasRoot}const ML=A_({attachResizeListener:(e,t)=>wl(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),wp={current:void 0},O_=A_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!wp.current){const e=new ML({});e.mount(window),e.setOptions({layoutScroll:!0}),wp.current=e}return wp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),NL={pan:{Feature:Q7},drag:{Feature:F7,ProjectionNode:O_,MeasureLayout:b_}};function Rw(e,t,a){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");const o="onHover"+a,c=r[o];c&&Ke.postRender(()=>c(t,zl(t)))}class kL extends js{mount(){const{current:t}=this.node;t&&(this.unmount=K8(t,(a,r)=>(Rw(this.node,r,"Start"),o=>Rw(this.node,o,"End"))))}unmount(){}}class zL extends js{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=Ml(wl(this.node.current,"focus",()=>this.onFocus()),wl(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Dw(e,t,a){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");const o="onTap"+(a==="End"?"":a),c=r[o];c&&Ke.postRender(()=>c(t,zl(t)))}class RL extends js{mount(){const{current:t}=this.node;t&&(this.unmount=G8(t,(a,r)=>(Dw(this.node,r,"Start"),(o,{success:c})=>Dw(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Mm=new WeakMap,Sp=new WeakMap,DL=e=>{const t=Mm.get(e.target);t&&t(e)},PL=e=>{e.forEach(DL)};function LL({root:e,...t}){const a=e||document;Sp.has(a)||Sp.set(a,{});const r=Sp.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(PL,{root:e,...t})),r[o]}function BL(e,t,a){const r=LL(t);return Mm.set(e,a),r.observe(e),()=>{Mm.delete(e),r.unobserve(e)}}const HL={some:0,all:1};class UL extends js{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:o="some",once:c}=t,u={root:a?a.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:HL[o]},d=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,c&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:v,onViewportLeave:y}=this.node.getProps(),b=p?v:y;b&&b(h)};return BL(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(VL(t,a))&&this.startObserver()}unmount(){}}function VL({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const qL={inView:{Feature:UL},tap:{Feature:RL},focus:{Feature:zL},hover:{Feature:kL}},KL={layout:{ProjectionNode:O_,MeasureLayout:b_}},IL={...O7,...qL,...NL,...KL},_e=I9(IL,a7),$L=50,Pw=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),ZL=()=>({time:0,x:Pw(),y:Pw()}),GL={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function Lw(e,t,a,r){const o=a[t],{length:c,position:u}=GL[t],d=o.current,h=a.time;o.current=e[`scroll${u}`],o.scrollLength=e[`scroll${c}`]-e[`client${c}`],o.offset.length=0,o.offset[0]=0,o.offset[1]=o.scrollLength,o.progress=Ri(0,o.scrollLength,o.current);const p=r-h;o.velocity=p>$L?0:Eg(o.current-d,p)}function FL(e,t,a){Lw(e,"x",t,a),Lw(e,"y",t,a),t.time=a}function QL(e,t){const a={x:0,y:0};let r=e;for(;r&&r!==t;)if(Hg(r))a.x+=r.offsetLeft,a.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const o=r.getBoundingClientRect();r=r.parentElement;const c=r.getBoundingClientRect();a.x+=o.left-c.left,a.y+=o.top-c.top}else if(r instanceof SVGGraphicsElement){const{x:o,y:c}=r.getBBox();a.x+=o,a.y+=c;let u=null,d=r.parentNode;for(;!u;)d.tagName==="svg"&&(u=d),d=r.parentNode;r=u}else break;return a}const Nm={start:0,center:.5,end:1};function Bw(e,t,a=0){let r=0;if(e in Nm&&(e=Nm[e]),typeof e=="string"){const o=parseFloat(e);e.endsWith("px")?r=o:e.endsWith("%")?e=o/100:e.endsWith("vw")?r=o/100*document.documentElement.clientWidth:e.endsWith("vh")?r=o/100*document.documentElement.clientHeight:e=o}return typeof e=="number"&&(r=t*e),a+r}const YL=[0,0];function XL(e,t,a,r){let o=Array.isArray(e)?e:YL,c=0,u=0;return typeof e=="number"?o=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?o=e.split(" "):o=[e,Nm[e]?e:"0"]),c=Bw(o[0],a,r),u=Bw(o[1],t),c-u}const WL={All:[[0,0],[1,1]]},JL={x:0,y:0};function eB(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function tB(e,t,a){const{offset:r=WL.All}=a,{target:o=e,axis:c="y"}=a,u=c==="y"?"height":"width",d=o!==e?QL(o,e):JL,h=o===e?{width:e.scrollWidth,height:e.scrollHeight}:eB(o),p={width:e.clientWidth,height:e.clientHeight};t[c].offset.length=0;let v=!t[c].interpolate;const y=r.length;for(let b=0;b<y;b++){const w=XL(r[b],p[u],h[u],d[c]);!v&&w!==t[c].interpolatorOffsets[b]&&(v=!0),t[c].offset[b]=w}v&&(t[c].interpolate=kg(t[c].offset,bT(r),{clamp:!1}),t[c].interpolatorOffsets=[...t[c].offset]),t[c].progress=la(0,1,t[c].interpolate(t[c].current))}function nB(e,t=e,a){if(a.x.targetOffset=0,a.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)a.x.targetOffset+=r.offsetLeft,a.y.targetOffset+=r.offsetTop,r=r.offsetParent}a.x.targetLength=t===e?t.scrollWidth:t.clientWidth,a.y.targetLength=t===e?t.scrollHeight:t.clientHeight,a.x.containerLength=e.clientWidth,a.y.containerLength=e.clientHeight}function aB(e,t,a,r={}){return{measure:o=>{nB(e,r.target,a),FL(e,a,o),(r.offset||r.target)&&tB(e,a,r)},notify:()=>t(a)}}const Yo=new WeakMap,Hw=new WeakMap,Ep=new WeakMap,Uw=e=>e===document.scrollingElement?window:e;function j_(e,{container:t=document.scrollingElement,...a}={}){if(!t)return nn;let r=Ep.get(t);r||(r=new Set,Ep.set(t,r));const o=ZL(),c=aB(t,e,o,a);if(r.add(c),!Yo.has(t)){const d=()=>{for(const y of r)y.measure(Et.timestamp);Ke.preUpdate(h)},h=()=>{for(const y of r)y.notify()},p=()=>Ke.read(d);Yo.set(t,p);const v=Uw(t);window.addEventListener("resize",p,{passive:!0}),t!==document.documentElement&&Hw.set(t,n9(t,p)),v.addEventListener("scroll",p,{passive:!0}),p()}const u=Yo.get(t);return Ke.read(u,!1,!0),()=>{Zn(u);const d=Ep.get(t);if(!d||(d.delete(c),d.size))return;const h=Yo.get(t);Yo.delete(t),h&&(Uw(t).removeEventListener("scroll",h),Hw.get(t)?.(),window.removeEventListener("resize",h))}}const Vw=new Map;function sB(e){const t={value:0},a=j_(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:a}}function M_({source:e,container:t,...a}){const{axis:r}=a;e&&(t=e);const o=Vw.get(t)??new Map;Vw.set(t,o);const c=a.target??"self",u=o.get(c)??{},d=r+(a.offset??[]).join(",");return u[d]||(u[d]=!a.target&&TT()?new ScrollTimeline({source:t,axis:r}):sB({container:t,...a})),u[d]}function rB(e,t){const a=M_(t);return e.attachTimeline({timeline:t.target?void 0:a,observe:r=>(r.pause(),VT(o=>{r.time=r.iterationDuration*o},a))})}function iB(e){return e.length===2}function oB(e,t){return iB(e)?j_(a=>{e(a[t.axis].progress,a)},t):VT(e,M_(t))}function lB(e,{axis:t="y",container:a=document.scrollingElement,...r}={}){if(!a)return nn;const o={axis:t,container:a,...r};return typeof e=="function"?oB(e,o):rB(e,o)}const cB=()=>({scrollX:Kn(0),scrollY:Kn(0),scrollXProgress:Kn(0),scrollYProgress:Kn(0)}),fu=e=>e?!e.current:!1;function qw({container:e,target:t,...a}={}){const r=qi(cB),o=S.useRef(null),c=S.useRef(!1),u=S.useCallback(()=>(o.current=lB((d,{x:h,y:p})=>{r.scrollX.set(h.current),r.scrollXProgress.set(h.progress),r.scrollY.set(p.current),r.scrollYProgress.set(p.progress)},{...a,container:e?.current||void 0,target:t?.current||void 0}),()=>{o.current?.()}),[e,t,JSON.stringify(a.offset)]);return vd(()=>{if(c.current=!1,fu(e)||fu(t)){c.current=!0;return}else return u()},[u]),S.useEffect(()=>{if(c.current)return gl(!fu(e)),gl(!fu(t)),u()},[u]),r}function uB(e){const t=qi(()=>Kn(e)),{isStatic:a}=S.useContext(bd);if(a){const[,r]=S.useState(e);S.useEffect(()=>t.on("change",r),[])}return t}function N_(e,t){const a=uB(t()),r=()=>a.set(t());return r(),vd(()=>{const o=()=>Ke.preRender(r,!1,!0),c=e.map(u=>u.on("change",o));return()=>{c.forEach(u=>u()),Zn(r)}}),a}function dB(e){nl.current=[],e();const t=N_(nl.current,e);return nl.current=void 0,t}function hu(e,t,a,r){if(typeof e=="function")return dB(e);const o=typeof t=="function"?t:s9(t,a,r);return Array.isArray(e)?Kw(e,o):Kw([e],([c])=>o(c))}function Kw(e,t){const a=qi(()=>[]);return N_(e,()=>{a.length=0;const r=e.length;for(let o=0;o<r;o++)a[o]=e[o].get();return t(a)})}function fB(e,t){const[a,r]=S.useState(e);return S.useEffect(()=>{const o=setTimeout(()=>r(e),t);return()=>clearTimeout(o)},[e,t]),a}const hB={produkt:"Produkte",leistung:"Leistungen",themenwelt:"Themenwelten",seite:"Seiten",karriere:"Karriere"};function pB({isOpen:e,onClose:t}){const[a,r]=S.useState(""),[o,c]=S.useState(-1),u=S.useRef(null),[,d]=Vi(),{openWizard:h}=yd(),p=fB(a,220),{data:v,isFetching:y}=Mi.search.query.useQuery({q:p},{enabled:p.length>=2}),b=v?.results??[],w=b.reduce((A,U)=>(A[U.category]||(A[U.category]=[]),A[U.category].push(U),A),{}),T=Object.keys(w);S.useEffect(()=>{e&&(setTimeout(()=>u.current?.focus(),100),r(""),c(-1))},[e]),S.useEffect(()=>{c(-1)},[p]),S.useEffect(()=>{const A=U=>{U.key==="Escape"&&t()};return e&&document.addEventListener("keydown",A),()=>document.removeEventListener("keydown",A)},[e,t]),S.useEffect(()=>(document.body.style.overflow=e?"hidden":"",()=>{document.body.style.overflow=""}),[e]);const _=S.useCallback(A=>{A.key==="ArrowDown"?(A.preventDefault(),c(U=>Math.min(U+1,b.length-1))):A.key==="ArrowUp"?(A.preventDefault(),c(U=>Math.max(U-1,-1))):A.key==="Enter"&&(A.preventDefault(),o>=0&&b[o]&&k(b[o].url))},[b,o]),k=A=>{t(),r(""),d(A)},M=p.length>=2,L=M&&!y&&b.length===0;return g.jsx(mi,{"data-loc":"client/src/components/SearchOverlay.tsx:93",children:e&&g.jsxs(g.Fragment,{children:[g.jsx(_e.div,{"data-loc":"client/src/components/SearchOverlay.tsx:97",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.22},onClick:t,className:"fixed inset-0 z-[1100]",style:{background:"rgba(5,12,30,0.7)",backdropFilter:"blur(5px)"},"aria-hidden":"true"},"backdrop"),g.jsxs(_e.div,{"data-loc":"client/src/components/SearchOverlay.tsx:110",role:"dialog","aria-modal":"true","aria-label":"Suche",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:32,stiffness:290},className:"fixed top-0 right-0 bottom-0 z-[1101] flex flex-col",style:{width:"min(460px, 100vw)",background:"#0a1628",borderLeft:"1px solid rgba(255,255,255,0.08)"},children:[g.jsxs("div",{"data-loc":"client/src/components/SearchOverlay.tsx:127",className:"flex items-center gap-3 px-5 py-4",style:{borderBottom:"1px solid rgba(255,255,255,0.08)"},children:[g.jsx(Vu,{"data-loc":"client/src/components/SearchOverlay.tsx:131",size:16,style:{color:"rgba(255,255,255,0.35)",flexShrink:0},"aria-hidden":"true"}),g.jsx("input",{"data-loc":"client/src/components/SearchOverlay.tsx:132",ref:u,type:"text",value:a,onChange:A=>r(A.target.value),onKeyDown:_,placeholder:"Produkte, Leistungen, Themen …",autoComplete:"off",spellCheck:!1,"aria-label":"Suche",className:"flex-1 bg-transparent border-none outline-none text-white placeholder-white/30 text-sm"}),a&&g.jsx("button",{"data-loc":"client/src/components/SearchOverlay.tsx:145",onClick:()=>r(""),"aria-label":"Suche löschen",className:"p-1 transition-colors hover:bg-white/8",style:{color:"rgba(255,255,255,0.4)"},children:g.jsx(pr,{"data-loc":"client/src/components/SearchOverlay.tsx:146",size:14})}),g.jsx("button",{"data-loc":"client/src/components/SearchOverlay.tsx:149",onClick:t,"aria-label":"Suche schließen",className:"ml-1 p-1.5 transition-colors hover:bg-white/8",style:{color:"rgba(255,255,255,0.45)"},children:g.jsx(pr,{"data-loc":"client/src/components/SearchOverlay.tsx:150",size:16})})]}),g.jsxs("div",{"data-loc":"client/src/components/SearchOverlay.tsx:155",className:"flex-1 overflow-y-auto",style:{overscrollBehavior:"contain"},children:[y&&g.jsxs("div",{"data-loc":"client/src/components/SearchOverlay.tsx:159",className:"px-5 py-6 flex items-center gap-3",style:{color:"rgba(255,255,255,0.3)"},children:[g.jsx("div",{"data-loc":"client/src/components/SearchOverlay.tsx:160",className:"w-3.5 h-3.5 border-2 animate-spin",style:{borderColor:"rgba(255,255,255,0.12)",borderTopColor:"rgba(255,255,255,0.5)"}}),g.jsx("span",{"data-loc":"client/src/components/SearchOverlay.tsx:161",className:"text-xs",children:"Suche läuft …"})]}),L&&g.jsxs("div",{"data-loc":"client/src/components/SearchOverlay.tsx:167",className:"px-5 py-10 flex flex-col items-center text-center",children:[g.jsx(Vu,{"data-loc":"client/src/components/SearchOverlay.tsx:168",size:20,style:{color:"rgba(255,255,255,0.15)"},className:"mb-4"}),g.jsxs("p",{"data-loc":"client/src/components/SearchOverlay.tsx:169",className:"text-sm font-medium mb-1",style:{color:"rgba(255,255,255,0.55)"},children:["Keine Ergebnisse für „",p,'"']}),g.jsx("p",{"data-loc":"client/src/components/SearchOverlay.tsx:172",className:"text-xs mb-6",style:{color:"rgba(255,255,255,0.25)"},children:"Kein passendes Produkt oder keine passende Leistung gefunden?"}),g.jsxs("button",{"data-loc":"client/src/components/SearchOverlay.tsx:175",onClick:()=>{t(),setTimeout(()=>h({configKey:"beratung_general",sourceLabel:`Suche – Keine Ergebnisse für „${p}"`}),200)},className:"flex items-center gap-2 px-4 py-2.5 text-sm font-semibold transition-all hover:bg-white/10",style:{color:"rgba(255,255,255,0.7)",border:"1px solid rgba(255,255,255,0.15)"},children:[g.jsx(VE,{"data-loc":"client/src/components/SearchOverlay.tsx:183",size:13}),"Persönliche Beratung anfragen",g.jsx(hn,{"data-loc":"client/src/components/SearchOverlay.tsx:185",size:12})]})]}),!M&&!y&&g.jsxs("div",{"data-loc":"client/src/components/SearchOverlay.tsx:192",className:"px-5 py-5",children:[g.jsx("p",{"data-loc":"client/src/components/SearchOverlay.tsx:193",className:"text-xs font-semibold mb-3",style:{color:"rgba(255,255,255,0.2)",letterSpacing:"0.1em",textTransform:"uppercase"},children:"Schnellzugriff"}),g.jsx("div",{"data-loc":"client/src/components/SearchOverlay.tsx:196",className:"flex flex-col",children:[{label:"Gynäkologie",url:"/themenwelten/gynaekologie"},{label:"Autoklaven",url:"/themenwelten/aufbereitung/autoklaven"},{label:"Thermodesinfektoren",url:"/themenwelten/aufbereitung/thermodesinfektoren"},{label:"Sprechstundenbedarf",url:"/leistungen/sprechstundenbedarf"},{label:"Praxisplanung",url:"/leistungen/praxisplanung"},{label:"MELAG Vacuklav Autoklaven",url:"/produkte/melag-vacuklav"},{label:"Miele Thermodesinfektoren",url:"/produkte/miele-thermodesinfektor"},{label:"EDAN F3 CTG",url:"/produkte/edan-f3-ctg"},{label:"Gynäkologische Stühle",url:"/themenwelten/gynaekologie/gynstuehle"}].map(A=>g.jsxs("button",{"data-loc":"client/src/components/SearchOverlay.tsx:208",onClick:()=>k(A.url),className:"flex items-center gap-2.5 px-2 py-2 text-left transition-colors hover:bg-white/5 group",children:[g.jsx(vs,{"data-loc":"client/src/components/SearchOverlay.tsx:213",size:12,style:{color:"rgba(255,255,255,0.18)",flexShrink:0},"aria-hidden":"true"}),g.jsx("span",{"data-loc":"client/src/components/SearchOverlay.tsx:214",className:"text-sm group-hover:text-white/80 transition-colors",style:{color:"rgba(255,255,255,0.45)"},children:A.label})]},A.url))})]}),!y&&T.length>0&&g.jsx("div",{"data-loc":"client/src/components/SearchOverlay.tsx:225",className:"px-5 py-5 flex flex-col gap-4",children:T.map(A=>g.jsxs("div",{"data-loc":"client/src/components/SearchOverlay.tsx:227",style:{border:"1px solid rgba(255,255,255,0.09)",background:"rgba(255,255,255,0.03)"},children:[g.jsx("div",{"data-loc":"client/src/components/SearchOverlay.tsx:235",className:"px-4 py-2.5",style:{borderBottom:"1px solid rgba(255,255,255,0.07)",background:"rgba(255,255,255,0.03)"},children:g.jsx("span",{"data-loc":"client/src/components/SearchOverlay.tsx:242",className:"text-xs font-semibold",style:{color:"rgba(255,255,255,0.35)",letterSpacing:"0.09em",textTransform:"uppercase"},children:hB[A]})}),g.jsx("div",{"data-loc":"client/src/components/SearchOverlay.tsx:251",children:w[A].map((U,B)=>{const V=b.indexOf(U),C=V===o,R=B===w[A].length-1;return g.jsxs("button",{"data-loc":"client/src/components/SearchOverlay.tsx:257",role:"option","aria-selected":C,onMouseEnter:()=>c(V),onMouseDown:X=>{X.preventDefault(),k(U.url)},className:"w-full flex items-center justify-between px-4 py-2.5 text-left transition-colors group",style:{background:C?"rgba(255,255,255,0.06)":"transparent",borderBottom:R?"none":"1px solid rgba(255,255,255,0.05)"},children:[g.jsx("span",{"data-loc":"client/src/components/SearchOverlay.tsx:269",className:"text-sm leading-snug",style:{color:C?"#5b9bd5":"rgba(255,255,255,0.72)",fontWeight:400},children:U.title}),g.jsx(hn,{"data-loc":"client/src/components/SearchOverlay.tsx:275",size:12,className:"flex-shrink-0 ml-3 transition-opacity",style:{color:C?"rgba(255,255,255,0.6)":"rgba(255,255,255,0.15)"},"aria-hidden":"true"})]},U.id)})})]},A))})]}),b.length>0&&g.jsxs("div",{"data-loc":"client/src/components/SearchOverlay.tsx:293",className:"px-5 py-2.5 flex items-center gap-4 text-xs",style:{borderTop:"1px solid rgba(255,255,255,0.07)",color:"rgba(255,255,255,0.2)"},children:[g.jsxs("span",{"data-loc":"client/src/components/SearchOverlay.tsx:297",className:"flex items-center gap-1.5",children:[g.jsx("kbd",{"data-loc":"client/src/components/SearchOverlay.tsx:298",className:"px-1 py-px font-mono text-[0.65rem]",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)"},children:"↑↓"}),"navigieren"]}),g.jsxs("span",{"data-loc":"client/src/components/SearchOverlay.tsx:301",className:"flex items-center gap-1.5",children:[g.jsx("kbd",{"data-loc":"client/src/components/SearchOverlay.tsx:302",className:"px-1 py-px font-mono text-[0.65rem]",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)"},children:"↵"}),"öffnen"]}),g.jsxs("span",{"data-loc":"client/src/components/SearchOverlay.tsx:305",className:"flex items-center gap-1.5",children:[g.jsx("kbd",{"data-loc":"client/src/components/SearchOverlay.tsx:306",className:"px-1 py-px font-mono text-[0.65rem]",style:{background:"rgba(255,255,255,0.07)",border:"1px solid rgba(255,255,255,0.1)"},children:"Esc"}),"schließen"]})]})]},"panel")]})})}const mB="/images/megamenu-leistungen-behandlungszimmer_9c41e7b2.webp",gB="/images/nav-themenwelten_6d18f3a9.webp",yB="/images/stusche-gebaeude-menu_portrait.webp",Iw=[{href:"/leistungen/praxisbedarf",label:"Lieferung von Praxisbedarf",desc:"Verbrauchsmaterial, Handschuhe, Desinfektion",icon:Z6},{href:"/leistungen/sprechstundenbedarf",label:"Sprechstundenbedarf",desc:"SSB-Abrechnung direkt über die Kasse",icon:q6},{href:"/leistungen/technischer-service",label:"Technischer Service & Wartung",desc:"Geräteservice, Validierung, RDG-Prüfung",icon:$E},{href:"/leistungen/praxisplanung",label:"3D-Praxisplanung & Beratung",desc:"Individuelle Raumplanung und Einrichtung",icon:R6},{href:"/leistungen/praxisportal",label:"Praxisportal",desc:"Online bestellen, Rechnungen verwalten",icon:UE},{href:"/leistungen/praxisgruendung",label:"Praxisgründung",desc:"Rundum-Begleitung von Anfang an",icon:gd},{href:"/leistungen/hygienemanagement",label:"Hygienemanagement",desc:"Begehung, Hygieneplan, Zertifikat",icon:hg}],$w=[{href:"/themenwelten/gynaekologie",label:"Gynäkologie",desc:"Gyn-Stühle, Ultraschall, Praxisausstattung",icon:k6},{href:"/themenwelten/chirurgie",label:"Chirurgie",desc:"OP-Bedarf, Instrumente, Sterilisation",icon:U6},{href:"/themenwelten/aufbereitung",label:"Aufbereitung & Sterilisation",desc:"RDG, Autoklaven, Validierung",icon:hg},{href:"/themenwelten/medizintechnik",label:"Medizintechnik",desc:"EKG, Spirometrie, Diagnostikgeräte",icon:_6},{href:"/themenwelten/op-leuchten",label:"OP-Leuchten",desc:"Untersuchungs- & OP-Leuchten von Dr. Mach",icon:D6}],Zw=[{href:"/aktionen/miele-hno-extra",label:"Miele HNO Extra-Aktion",desc:"Bis zu 1.000 € Aktionsvorteil auf Thermodesinfektoren",icon:KE}],Gw=[{href:"/ueber-uns/unser-team",label:"Unser Team",desc:"Persönliche Ansprechpartner vor Ort",icon:gg},{href:"/karriere",label:"Karriere",desc:"Offene Stellen & Ausbildung",icon:C6}];function Tp({items:e,image:t,categoryTitle:a,categoryDesc:r,currentLocation:o,onClose:c,quickActions:u,extraItems:d,extraLabel:h}){return g.jsxs(_e.div,{"data-loc":"client/src/components/Navigation.tsx:64",className:"mega-panel",initial:{clipPath:"inset(0 0 100% 0)",opacity:1},animate:{clipPath:"inset(0 0 0% 0)",opacity:1},exit:{clipPath:"inset(0 0 100% 0)",opacity:1},transition:{duration:.38,ease:[.22,1,.36,1]},role:"dialog","aria-label":`Untermenü ${a}`,children:[g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:73",className:"mega-panel-inner",children:[g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:75",className:"mega-panel-left",children:[g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:76",className:"mega-panel-cat-header",children:[g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:77",className:"mega-panel-cat-label",children:a}),g.jsx("p",{"data-loc":"client/src/components/Navigation.tsx:78",className:"mega-panel-cat-desc",children:r})]}),g.jsxs("nav",{"data-loc":"client/src/components/Navigation.tsx:80",className:"mega-panel-links","aria-label":a,children:[e.map(p=>{const v=p.icon,y=o===p.href||o.startsWith(p.href+"/");return g.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:85",href:p.href,className:`mega-panel-item${y?" mega-panel-item-active":""}`,children:[g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:90",className:"mega-panel-item-icon","aria-hidden":"true",children:g.jsx(v,{"data-loc":"client/src/components/Navigation.tsx:91",className:"w-4 h-4"})}),g.jsxs("span",{"data-loc":"client/src/components/Navigation.tsx:93",className:"mega-panel-item-body",children:[g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:94",className:"mega-panel-item-label",children:p.label}),g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:95",className:"mega-panel-item-desc",children:p.desc})]}),g.jsx(hn,{"data-loc":"client/src/components/Navigation.tsx:97",className:"mega-panel-item-arrow w-3.5 h-3.5","aria-hidden":"true"})]},p.href)}),d&&d.length>0&&g.jsxs(g.Fragment,{children:[g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:103",className:"mega-panel-divider","aria-hidden":"true"}),h&&g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:105",className:"mega-panel-extra-label",children:h}),d.map(p=>{const v=p.icon,y=o===p.href||o.startsWith(p.href+"/");return g.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:111",href:p.href,className:`mega-panel-item mega-panel-item-extra${y?" mega-panel-item-active":""}`,children:[g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:116",className:"mega-panel-item-icon","aria-hidden":"true",children:g.jsx(v,{"data-loc":"client/src/components/Navigation.tsx:117",className:"w-4 h-4"})}),g.jsxs("span",{"data-loc":"client/src/components/Navigation.tsx:119",className:"mega-panel-item-body",children:[g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:120",className:"mega-panel-item-label",children:p.label}),g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:121",className:"mega-panel-item-desc",children:p.desc})]}),g.jsx(hn,{"data-loc":"client/src/components/Navigation.tsx:123",className:"mega-panel-item-arrow w-3.5 h-3.5","aria-hidden":"true"})]},p.href)})]})]})]}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:133",className:"mega-panel-right",children:[g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:134",className:"mega-panel-img-wrap",children:[g.jsx("img",{"data-loc":"client/src/components/Navigation.tsx:135",src:t,alt:a,className:"mega-panel-img",loading:"eager",fetchPriority:"high"}),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:136",className:"mega-panel-img-overlay","aria-hidden":"true"})]}),u&&u.length>0&&g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:139",className:"mega-panel-quick",children:u.map((p,v)=>{const y=p.icon;return p.href?g.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:144",href:p.href,target:p.external?"_blank":void 0,rel:p.external?"noopener noreferrer":void 0,className:"mega-panel-quick-btn",children:[g.jsx(y,{"data-loc":"client/src/components/Navigation.tsx:151",className:"w-3.5 h-3.5","aria-hidden":"true"}),p.label,p.external&&g.jsx(Hu,{"data-loc":"client/src/components/Navigation.tsx:153",className:"w-3 h-3 opacity-60 ml-1","aria-hidden":"true"})]},v):g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:158",className:"mega-panel-quick-btn",onClick:()=>{p.onClick?.()},children:[g.jsx(y,{"data-loc":"client/src/components/Navigation.tsx:159",className:"w-3.5 h-3.5","aria-hidden":"true"}),p.label]},v)})})]})]}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:170",className:"mega-panel-footer",children:[g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:171",className:"mega-panel-footer-label",children:"Schnellzugriff:"}),g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:172",href:"/kontakt",className:"mega-panel-footer-link",children:"Beratung anfragen"}),g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:173",className:"mega-panel-footer-sep","aria-hidden":"true",children:"·"}),g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:174",onClick:()=>window.open("https://www.stusche.de/Praxisportal/Anmeldung.php","_blank","noopener,noreferrer"),className:"mega-panel-footer-link",style:{background:"none",border:"none",padding:0,cursor:"pointer"},children:["Praxisportal ",g.jsx(Hu,{"data-loc":"client/src/components/Navigation.tsx:179",className:"w-3 h-3 inline ml-0.5","aria-hidden":"true"})]})]})]})}function k_(){const{openWizard:e}=yd(),[t]=Vi(),a=t.startsWith("/leistungen")||t==="/retouren",r=t.startsWith("/themenwelten")||t.startsWith("/aktionen"),o=t.startsWith("/ueber-uns")||t.startsWith("/karriere"),[c,u]=S.useState(null),[d,h]=S.useState(!1),[p,v]=S.useState(!1),[y,b]=S.useState(!1),[w,T]=S.useState(!1),[_,k]=S.useState(!1),[M,L]=S.useState(!1),A=S.useRef(null);S.useEffect(()=>{const C=()=>k(window.scrollY>60);return window.addEventListener("scroll",C,{passive:!0}),()=>window.removeEventListener("scroll",C)},[]),S.useEffect(()=>{h(!1)},[t]),S.useEffect(()=>{const C=R=>{R.key==="Escape"&&(u(null),h(!1))};return window.addEventListener("keydown",C),()=>window.removeEventListener("keydown",C)},[]);const U=C=>{A.current&&clearTimeout(A.current),u(C)},B=()=>{A.current&&clearTimeout(A.current)},V=()=>{A.current=setTimeout(()=>u(null),220)};return g.jsxs(g.Fragment,{children:[g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:240",href:"#main-content",className:"sr-only focus:not-sr-only focus:fixed focus:top-4 focus:left-4 focus:z-[200] focus:bg-white focus:px-4 focus:py-2 focus:rounded focus:text-sm focus:font-medium focus:shadow-lg",style:{fontFamily:"'DM Sans', system-ui, sans-serif",color:"#0d1b3e"},children:"Zum Hauptinhalt springen"}),g.jsxs("nav",{"data-loc":"client/src/components/Navigation.tsx:252",className:`nav-root backdrop-blur-[20px] backdrop-filter${_?" nav-root--scrolled":""}`,"aria-label":"Hauptnavigation",onMouseLeave:V,children:[g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:257",className:"nav-inner",children:[g.jsx(_e.a,{"data-loc":"client/src/components/Navigation.tsx:259",href:"/",whileHover:{opacity:.85},transition:{duration:.2},className:"flex-shrink-0",children:g.jsx("img",{"data-loc":"client/src/components/Navigation.tsx:260",loading:"eager",src:"/stusche-logo-transparent@2x.webp",alt:"Stusche GmbH – Zur Startseite",className:"nav-logo"})}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:266",className:"hidden lg:flex items-center gap-4 xl:gap-8 absolute left-1/2 -translate-x-1/2 whitespace-nowrap",children:[g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:271",className:"relative",onMouseEnter:()=>U("leistungen"),children:g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:272",className:`nav-link${a?" nav-link-active":""}`,"aria-haspopup":"dialog","aria-expanded":c==="leistungen",children:["Leistungen",g.jsx(_e.span,{"data-loc":"client/src/components/Navigation.tsx:278",animate:{rotate:c==="leistungen"?180:0},transition:{duration:.25},"aria-hidden":"true",children:g.jsx(hi,{"data-loc":"client/src/components/Navigation.tsx:279",className:"w-3.5 h-3.5"})})]})}),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:285",className:"relative",onMouseEnter:()=>U("themenwelten"),children:g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:286",className:`nav-link${r?" nav-link-active":""}`,"aria-haspopup":"dialog","aria-expanded":c==="themenwelten",children:["Themenwelten",g.jsx(_e.span,{"data-loc":"client/src/components/Navigation.tsx:292",animate:{rotate:c==="themenwelten"?180:0},transition:{duration:.25},"aria-hidden":"true",children:g.jsx(hi,{"data-loc":"client/src/components/Navigation.tsx:293",className:"w-3.5 h-3.5"})})]})}),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:299",className:"relative",onMouseEnter:()=>U("ueberuns"),children:g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:300",className:`nav-link${o?" nav-link-active":""}`,"aria-haspopup":"dialog","aria-expanded":c==="ueberuns",children:["Über uns",g.jsx(_e.span,{"data-loc":"client/src/components/Navigation.tsx:306",animate:{rotate:c==="ueberuns"?180:0},transition:{duration:.25},"aria-hidden":"true",children:g.jsx(hi,{"data-loc":"client/src/components/Navigation.tsx:307",className:"w-3.5 h-3.5"})})]})}),g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:313",onClick:()=>window.open("https://www.stusche.de/Praxisportal/Anmeldung.php","_blank","noopener,noreferrer"),className:"nav-link",style:{textDecoration:"none",background:"none",border:"none",cursor:"pointer"},children:["Praxisportal",g.jsx(Hu,{"data-loc":"client/src/components/Navigation.tsx:319",className:"w-3 h-3 opacity-60","aria-hidden":"true"})]})]}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:324",className:"hidden lg:flex items-center gap-3 ml-auto flex-shrink-0",children:[g.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:325",href:"tel:+493328474747",className:"nav-phone-full items-center gap-1.5 text-sm text-white/70 hover:text-white transition-colors whitespace-nowrap","aria-label":"Anrufen: +49 3328 47 47 47",children:[g.jsx(Ra,{"data-loc":"client/src/components/Navigation.tsx:330",className:"w-3.5 h-3.5","aria-hidden":"true"}),"03328 47 47 47"]}),g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:333",href:"tel:+493328474747",className:"nav-phone-icon nav-hamburger","aria-label":"Anrufen: +49 3328 47 47 47",children:g.jsx(Ra,{"data-loc":"client/src/components/Navigation.tsx:338",className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsx("button",{"data-loc":"client/src/components/Navigation.tsx:340",onClick:()=>L(!0),className:"nav-hamburger","aria-label":"Suche öffnen",children:g.jsx(Vu,{"data-loc":"client/src/components/Navigation.tsx:341",className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:343",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Navigation – Beratung anfragen"}),className:"nav-cta",children:["Beratung ",g.jsx(hn,{"data-loc":"client/src/components/Navigation.tsx:347",className:"w-3 h-3","aria-hidden":"true"})]})]}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:352",className:"lg:hidden flex items-center gap-2 ml-auto flex-shrink-0",children:[g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:353",href:"tel:+493328474747",className:"nav-hamburger","aria-label":"Anrufen: +49 3328 47 47 47",children:g.jsx(Ra,{"data-loc":"client/src/components/Navigation.tsx:354",className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsx("button",{"data-loc":"client/src/components/Navigation.tsx:356",onClick:()=>L(!0),className:"nav-hamburger","aria-label":"Suche öffnen",children:g.jsx(Vu,{"data-loc":"client/src/components/Navigation.tsx:357",className:"w-4.5 h-4.5","aria-hidden":"true"})}),g.jsx("button",{"data-loc":"client/src/components/Navigation.tsx:359",className:"nav-hamburger",onClick:()=>h(!d),"aria-label":d?"Menü schließen":"Menü öffnen","aria-expanded":d,"aria-controls":"mobile-menu",children:d?g.jsx(pr,{"data-loc":"client/src/components/Navigation.tsx:366",className:"w-5 h-5"}):g.jsx(L6,{"data-loc":"client/src/components/Navigation.tsx:366",className:"w-5 h-5"})})]})]}),g.jsxs(mi,{"data-loc":"client/src/components/Navigation.tsx:372",children:[c==="leistungen"&&g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:374",className:"mega-wrapper",onMouseEnter:B,onMouseLeave:V,children:g.jsx(Tp,{"data-loc":"client/src/components/Navigation.tsx:375",items:Iw,image:mB,categoryTitle:"Leistungen",categoryDesc:"Von der Lieferung bis zur Praxisgründung – wir begleiten Sie in jedem Schritt.",currentLocation:t,onClose:()=>u(null),quickActions:[{label:"Beratung anfragen",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Mega-Menü Leistungen"}),icon:Ra},{label:"Praxisportal",onClick:()=>window.open("https://www.stusche.de/Praxisportal/Anmeldung.php","_blank","noopener,noreferrer"),icon:UE,external:!0}]})}),c==="themenwelten"&&g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:390",className:"mega-wrapper",onMouseEnter:B,onMouseLeave:V,children:g.jsx(Tp,{"data-loc":"client/src/components/Navigation.tsx:391",items:$w,image:gB,categoryTitle:"Themenwelten",categoryDesc:"Spezialisiertes Wissen und Produkte für Ihren Fachbereich.",currentLocation:t,onClose:()=>u(null),extraItems:Zw,extraLabel:"Aktuelle Aktionen",quickActions:[{label:"Beratung anfragen",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Mega-Menü Themenwelten"}),icon:Ra}]})}),c==="ueberuns"&&g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:407",className:"mega-wrapper",onMouseEnter:B,onMouseLeave:V,children:g.jsx(Tp,{"data-loc":"client/src/components/Navigation.tsx:408",items:Gw,image:yB,categoryTitle:"Über uns",categoryDesc:"Seit über 35 Jahren Ihr verlässlicher Praxispartner in der Region.",currentLocation:t,onClose:()=>u(null),quickActions:[{label:"Kontakt aufnehmen",href:"/kontakt",icon:Ra}]})})]})]}),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:426",className:`mega-blur-overlay backdrop-blur-[20px] backdrop-filter${c!==null?" mega-blur-overlay--visible":""}`,"aria-hidden":"true",onClick:()=>u(null)}),g.jsx(mi,{"data-loc":"client/src/components/Navigation.tsx:433",children:d&&g.jsxs(g.Fragment,{children:[g.jsx(_e.div,{"data-loc":"client/src/components/Navigation.tsx:436",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>h(!1),className:"fixed inset-0 bg-black/70 backdrop-blur-sm z-[100] lg:hidden","aria-hidden":"true"}),g.jsxs(_e.div,{"data-loc":"client/src/components/Navigation.tsx:444",id:"mobile-menu",role:"dialog","aria-modal":"true","aria-label":"Navigation",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:32,stiffness:320},className:"mobile-panel fixed top-0 right-0 bottom-0 w-[300px] z-[101] lg:hidden overflow-y-auto",children:[g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:455",className:"mobile-panel-header",children:[g.jsx("img",{"data-loc":"client/src/components/Navigation.tsx:456",loading:"eager",src:"/stusche-logo-transparent@2x.webp",alt:"Stusche GmbH",className:"nav-logo",style:{height:"1.25rem"}}),g.jsx("button",{"data-loc":"client/src/components/Navigation.tsx:457",onClick:()=>h(!1),className:"nav-hamburger","aria-label":"Menü schließen",children:g.jsx(pr,{"data-loc":"client/src/components/Navigation.tsx:458",className:"w-5 h-5","aria-hidden":"true"})})]}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:462",style:{paddingTop:"0.5rem"},children:[g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:464",className:"mobile-nav-section",children:[g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:465",onClick:()=>v(!p),className:"mobile-nav-btn","aria-expanded":p,children:["Leistungen",g.jsx(hi,{"data-loc":"client/src/components/Navigation.tsx:467",className:`w-3.5 h-3.5 transition-transform duration-200 ${p?"rotate-180":""}`,"aria-hidden":"true"})]}),g.jsx(mi,{"data-loc":"client/src/components/Navigation.tsx:469",children:p&&g.jsx(_e.div,{"data-loc":"client/src/components/Navigation.tsx:471",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",style:{paddingBottom:"1rem"},children:g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:472",style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Iw.map(C=>g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:474",href:C.href,className:"mobile-nav-link",onClick:()=>h(!1),children:C.label},C.href))})})})]}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:483",className:"mobile-nav-section",children:[g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:484",onClick:()=>b(!y),className:"mobile-nav-btn","aria-expanded":y,children:["Themenwelten",g.jsx(hi,{"data-loc":"client/src/components/Navigation.tsx:486",className:`w-3.5 h-3.5 transition-transform duration-200 ${y?"rotate-180":""}`,"aria-hidden":"true"})]}),g.jsx(mi,{"data-loc":"client/src/components/Navigation.tsx:488",children:y&&g.jsx(_e.div,{"data-loc":"client/src/components/Navigation.tsx:490",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",style:{paddingBottom:"1rem"},children:g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:491",style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[$w.map(C=>g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:493",href:C.href,className:"mobile-nav-link",onClick:()=>h(!1),children:C.label},C.href)),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:495",className:"mobile-nav-divider","aria-hidden":"true"}),g.jsx("span",{"data-loc":"client/src/components/Navigation.tsx:496",className:"mobile-nav-section-label",children:"Aktuelle Aktionen"}),Zw.map(C=>g.jsxs("a",{"data-loc":"client/src/components/Navigation.tsx:498",href:C.href,className:"mobile-nav-link mobile-nav-link-accent",onClick:()=>h(!1),children:[g.jsx(KE,{"data-loc":"client/src/components/Navigation.tsx:499",className:"w-3 h-3 text-red-500 flex-shrink-0","aria-hidden":"true"}),C.label]},C.href))]})})})]}),g.jsxs("div",{"data-loc":"client/src/components/Navigation.tsx:510",className:"mobile-nav-section",children:[g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:511",onClick:()=>T(!w),className:"mobile-nav-btn","aria-expanded":w,children:["Über uns",g.jsx(hi,{"data-loc":"client/src/components/Navigation.tsx:513",className:`w-3.5 h-3.5 transition-transform duration-200 ${w?"rotate-180":""}`,"aria-hidden":"true"})]}),g.jsx(mi,{"data-loc":"client/src/components/Navigation.tsx:515",children:w&&g.jsx(_e.div,{"data-loc":"client/src/components/Navigation.tsx:517",initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",style:{paddingBottom:"1rem"},children:g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:518",style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:Gw.map(C=>g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:520",href:C.href,className:"mobile-nav-link",onClick:()=>h(!1),children:C.label},C.href))})})})]}),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:529",className:"mobile-nav-section",children:g.jsxs("button",{"data-loc":"client/src/components/Navigation.tsx:530",onClick:()=>{h(!1),window.open("https://www.stusche.de/Praxisportal/Anmeldung.php","_blank","noopener,noreferrer")},className:"mobile-nav-btn",style:{textDecoration:"none",display:"flex",justifyContent:"space-between",background:"none",border:"none",cursor:"pointer",width:"100%"},children:["Praxisportal",g.jsx(Hu,{"data-loc":"client/src/components/Navigation.tsx:536",className:"w-3.5 h-3.5 opacity-60","aria-hidden":"true"})]})}),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:541",className:"mobile-nav-section",children:g.jsx("a",{"data-loc":"client/src/components/Navigation.tsx:542",href:"/kontakt",className:"mobile-nav-btn",style:{textDecoration:"none",display:"flex",justifyContent:"space-between"},onClick:()=>h(!1),children:"Kontakt"})}),g.jsx("div",{"data-loc":"client/src/components/Navigation.tsx:548",style:{padding:"1.5rem"},children:g.jsx("button",{"data-loc":"client/src/components/Navigation.tsx:549",onClick:()=>{h(!1),e({configKey:"beratung_general",sourceLabel:"Navigation (mobil) – Beratung anfragen"})},className:"nav-cta",style:{width:"100%",justifyContent:"center"},children:"Beratung anfragen"})})]})]})]})}),g.jsx(pB,{"data-loc":"client/src/components/Navigation.tsx:564",isOpen:M,onClose:()=>L(!1)})]})}function z_({activePage:e}){const t=[{label:"Praxisbedarf",href:"/leistungen/praxisbedarf",key:"praxisbedarf"},{label:"Sprechstundenbedarf",href:"/leistungen/sprechstundenbedarf",key:"sprechstundenbedarf"},{label:"Technischer Service",href:"/leistungen/technischer-service",key:"technischer-service"},{label:"3D-Praxisplanung",href:"/leistungen/praxisplanung",key:"praxisplanung"},{label:"Praxisportal",href:"/leistungen/praxisportal",key:"praxisportal"},{label:"Praxisgründung",href:"/leistungen/praxisgruendung",key:"praxisgruendung"},{label:"Hygienemanagement",href:"/leistungen/hygienemanagement",key:"hygienemanagement"}],a=[{label:"Unser Team",href:"/ueber-uns/unser-team"},{label:"Karriere",href:"/karriere"}],r=[{label:"Gynäkologie",href:"/themenwelten/gynaekologie",key:"gynaekologie",active:!0},{label:"Aufbereitung & Sterilisation",href:"/themenwelten/aufbereitung",key:"aufbereitung",active:!0},{label:"Autoklaven",href:"/themenwelten/aufbereitung/autoklaven",key:"aufbereitung-autoklaven",active:!0},{label:"Thermodesinfektoren",href:"/themenwelten/aufbereitung/thermodesinfektoren",key:"aufbereitung-thermodesinfektoren",active:!0},{label:"Medizintechnik",href:"/themenwelten/medizintechnik",key:"medizintechnik",active:!0},{label:"Chirurgie",href:"/themenwelten/chirurgie",key:"chirurgie",active:!0},{label:"OP- & Untersuchungsleuchten",href:"/themenwelten/op-leuchten",key:"op-leuchten",active:!0},{label:"Gynäkologische Stühle",href:"/themenwelten/gynaekologie/gynstuehle",key:"gynstuehle",active:!0}],o=[{label:"MELAG Vacuklav Autoklaven",href:"/produkte/melag-vacuklav",key:"melag-vacuklav"},{label:"Miele Thermodesinfektoren",href:"/produkte/miele-thermodesinfektor",key:"miele-thermodesinfektor"},{label:"EDAN F3 CTG",href:"/produkte/edan-f3-ctg",key:"edan-f3-ctg"},{label:"SCHMITZ medi-matic",href:"/produkte/medi-matic",key:"medi-matic"},{label:"Vitalograph Pneumotrac",href:"/produkte/vitalograph-pneumotrac",key:"vitalograph-pneumotrac"},{label:"boso TM-2450",href:"/produkte/boso-tm-2450",key:"boso-tm-2450"}];return g.jsx(g.Fragment,{children:g.jsx("footer",{"data-loc":"client/src/components/SiteFooter.tsx:69",className:"site-footer","aria-label":"Seitenfußzeile",children:g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:70",className:"container",children:[g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:72",className:"site-footer-top",children:[g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:74",children:[g.jsx("img",{"data-loc":"client/src/components/SiteFooter.tsx:75",loading:"eager",src:"/stusche-logo-transparent@2x.webp",alt:"Stusche GmbH",className:"site-footer-logo",width:"220",height:"28"}),g.jsxs("p",{"data-loc":"client/src/components/SiteFooter.tsx:82",className:"site-footer-tagline",children:["Ihr Praxisdienstleister",g.jsx("br",{"data-loc":"client/src/components/SiteFooter.tsx:83"}),"seit 1989"]})]}),g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:88",children:[g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:89",className:"site-footer-col-label",children:"Leistungen"}),g.jsx("ul",{"data-loc":"client/src/components/SiteFooter.tsx:90",className:"site-footer-list",children:t.map(c=>g.jsx("li",{"data-loc":"client/src/components/SiteFooter.tsx:92",children:g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:93",href:c.href,className:`site-footer-link${e===c.key?" site-footer-link-active":""}`,children:c.label})},c.key))})]}),g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:105",children:[g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:106",className:"site-footer-col-label",children:"Themenwelten"}),g.jsx("ul",{"data-loc":"client/src/components/SiteFooter.tsx:107",className:"site-footer-list",children:r.map(c=>c.active?g.jsx("li",{"data-loc":"client/src/components/SiteFooter.tsx:110",children:g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:111",href:c.href,className:`site-footer-link${e===c.key?" site-footer-link-active":""}`,children:c.label})},c.key):g.jsx("li",{"data-loc":"client/src/components/SiteFooter.tsx:119",children:g.jsx("span",{"data-loc":"client/src/components/SiteFooter.tsx:120",className:"site-footer-link-disabled",children:c.label})},c.key))}),g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:125",className:"site-footer-col-label",style:{marginTop:"1.5rem"},children:"Produkte"}),g.jsx("ul",{"data-loc":"client/src/components/SiteFooter.tsx:126",className:"site-footer-list",children:o.map(c=>g.jsx("li",{"data-loc":"client/src/components/SiteFooter.tsx:128",children:g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:129",href:c.href,className:`site-footer-link${e===c.key?" site-footer-link-active":""}`,children:c.label})},c.key))})]}),g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:141",children:[g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:142",className:"site-footer-col-label",children:"Über uns"}),g.jsx("ul",{"data-loc":"client/src/components/SiteFooter.tsx:143",className:"site-footer-list",children:a.map(c=>g.jsx("li",{"data-loc":"client/src/components/SiteFooter.tsx:145",children:g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:146",href:c.href,className:"site-footer-link",children:c.label})},c.href))})]}),g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:153",children:[g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:154",className:"site-footer-col-label",children:"Kontakt"}),g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:155",href:"tel:+493328474747",className:"site-footer-phone",children:"+49 3328 / 47 47 47"}),g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:158",className:"site-footer-hours",children:"Mo – Do, 8:00 – 17:00 Uhr"}),g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:159",className:"site-footer-hours",children:"Fr, 8:00 – 16:00 Uhr"}),g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:160",className:"site-footer-hours",style:{marginTop:"0.5rem"},children:"Fax: +49 3328 / 47 57 67"}),g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:163",href:"/kontakt",className:"site-footer-link",style:{marginTop:"0.75rem",display:"inline-block"},children:"Kontaktformular"})]})]}),g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:174",className:"site-footer-bottom",children:[g.jsxs("div",{"data-loc":"client/src/components/SiteFooter.tsx:175",className:"site-footer-copy-group",children:[g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:176",className:"site-footer-copy",children:"© 2026 Stusche GmbH"}),g.jsxs("span",{"data-loc":"client/src/components/SiteFooter.tsx:177",className:"site-footer-solar-badge",title:"30-kWp-Photovoltaik-Anlage auf unserem Firmengebäude",children:[g.jsx(I6,{"data-loc":"client/src/components/SiteFooter.tsx:178",className:"site-footer-solar-icon","aria-hidden":"true"}),"Betrieben mit Solarstrom"]})]}),g.jsxs("nav",{"data-loc":"client/src/components/SiteFooter.tsx:182",className:"site-footer-legal","aria-label":"Rechtliche Links",children:[g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:183",href:"/datenschutz",className:"site-footer-legal-link",children:"Datenschutz"}),g.jsx("span",{"data-loc":"client/src/components/SiteFooter.tsx:184",className:"site-footer-legal-sep","aria-hidden":"true",children:"·"}),g.jsx("button",{"data-loc":"client/src/components/SiteFooter.tsx:186",type:"button",className:"site-footer-legal-link",onClick:()=>y6(),children:"Datenschutzeinstellungen"}),g.jsx("span",{"data-loc":"client/src/components/SiteFooter.tsx:193",className:"site-footer-legal-sep","aria-hidden":"true",children:"·"}),g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:194",href:"/agb",className:"site-footer-legal-link",children:"AGB"}),g.jsx("span",{"data-loc":"client/src/components/SiteFooter.tsx:195",className:"site-footer-legal-sep","aria-hidden":"true",children:"·"}),g.jsx("a",{"data-loc":"client/src/components/SiteFooter.tsx:196",href:"/impressum",className:"site-footer-legal-link",children:"Impressum"})]}),g.jsx("p",{"data-loc":"client/src/components/SiteFooter.tsx:198",className:"site-footer-copy",style:{opacity:.4},children:"* Alle Preise exkl. MwSt. Ab 100 € netto versandkostenfrei, darunter 6,90 € Versandpauschale."})]})]})})})}const Pa="https://www.stusche.de",vB="Stusche – Ihr Praxisdienstleister";function R_({title:e,description:t,keywords:a,canonical:r,ogImage:o="/og-image.webp",ogType:c="website",schema:u,noIndex:d=!1}){const[h]=Vi();let p;r?r.startsWith("http")?p=r:p=`${Pa}${r.startsWith("/")?r:`/${r}`}`:p=`${Pa}${h}`;const v=u?Array.isArray(u)?u:[u]:[];return g.jsxs(z5,{"data-loc":"client/src/components/SEO.tsx:56",children:[g.jsx("title",{"data-loc":"client/src/components/SEO.tsx:58",children:e}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:59",name:"description",content:t}),a&&g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:60",name:"keywords",content:a}),d?g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:62",name:"robots",content:"noindex, nofollow"}):g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:63",name:"robots",content:"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1"}),g.jsx("link",{"data-loc":"client/src/components/SEO.tsx:65",rel:"canonical",href:p}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:68",property:"og:title",content:e}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:69",property:"og:description",content:t}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:70",property:"og:type",content:c}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:71",property:"og:url",content:p}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:72",property:"og:image",content:o.startsWith("http")?o:`${Pa}${o}`}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:73",property:"og:site_name",content:vB}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:74",property:"og:locale",content:"de_DE"}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:77",name:"twitter:card",content:"summary_large_image"}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:78",name:"twitter:title",content:e}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:79",name:"twitter:description",content:t}),g.jsx("meta",{"data-loc":"client/src/components/SEO.tsx:80",name:"twitter:image",content:o.startsWith("http")?o:`${Pa}${o}`}),v.map((y,b)=>g.jsx("script",{"data-loc":"client/src/components/SEO.tsx:84",type:"application/ld+json",children:JSON.stringify(y)},b))]})}function DH(e){return{"@context":"https://schema.org","@type":"Product",name:e.name,description:e.description,image:e.image||`${Pa}/images/default-product.webp`,brand:{"@type":"Brand",name:e.brand||"Stusche"},category:e.category||"Medical Equipment",offers:{"@type":"Offer",availability:"https://schema.org/InStock",priceCurrency:"EUR",seller:{"@type":"Organization",name:"Stusche GmbH"}}}}function PH(e){return{"@context":"https://schema.org","@type":"Service",name:e.name,description:e.description,serviceType:e.serviceType,provider:{"@type":"MedicalBusiness",name:"Stusche GmbH",url:Pa},areaServed:[{"@type":"City",name:"Berlin"},{"@type":"State",name:"Brandenburg"}]}}function xB(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,a)=>({"@type":"ListItem",position:a+1,name:t.name,item:t.url.startsWith("http")?t.url:`${Pa}${t.url}`}))}}function LH(e){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}}function BH(e){return{"@context":"https://schema.org","@type":"JobPosting",title:e.title,description:e.description,datePosted:e.datePosted||new Date().toISOString().split("T")[0],employmentType:e.employmentType||"FULL_TIME",hiringOrganization:{"@type":"Organization",name:"Stusche GmbH",sameAs:Pa,logo:`${Pa}/stusche-logo-transparent.webp`},jobLocation:{"@type":"Place",address:{"@type":"PostalAddress",streetAddress:"Iserstraße 12",addressLocality:e.jobLocation||"Teltow",addressRegion:"Brandenburg",postalCode:"14513",addressCountry:"DE"}}}}const Fw={anrede:"",name:"",praxis:"",strasse:"",plz:"",ort:"",email:"",telefon:"",anzahl:1,datenschutz:!1,_hp:""};function bB({open:e,onClose:t}){const[a,r]=S.useState(Fw),[o,c]=S.useState({}),[u,d]=S.useState(!1),h=S.useRef(Date.now()),p=S.useRef(cm()),v=Mi.katalog.bestellen.useMutation({onSuccess:()=>{d(!0),uE(lE.KATALOG_BESTELLUNG,"Katalogbestellung",p.current),QE(p.current)},onError:_=>c({name:_.message})}),y=_=>k=>{const M=k.target.type==="checkbox"?k.target.checked:k.target.value;r(L=>({...L,[_]:M})),c(L=>({...L,[_]:void 0}))},b=()=>{const _={};return(!a.name.trim()||a.name.trim().length<2)&&(_.name="Bitte vollständigen Namen angeben."),(!a.strasse.trim()||a.strasse.trim().length<3)&&(_.strasse="Bitte Straße und Hausnummer angeben."),/^\d{5}$/.test(a.plz)||(_.plz="Bitte eine gültige 5-stellige PLZ eingeben."),(!a.ort.trim()||a.ort.trim().length<2)&&(_.ort="Bitte Ort angeben."),a.email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a.email)&&(_.email="Bitte eine gültige E-Mail-Adresse eingeben."),a.datenschutz||(_.datenschutz="Bitte stimmen Sie der Datenschutzerklärung zu."),c(_),Object.keys(_).length===0},w=_=>{_.preventDefault(),b()&&v.mutate({anrede:a.anrede||void 0,name:a.name.trim(),praxis:a.praxis.trim()||void 0,strasse:a.strasse.trim(),plz:a.plz.trim(),ort:a.ort.trim(),email:a.email.trim()||void 0,telefon:a.telefon.trim()||void 0,anzahl:a.anzahl,_hp:a._hp,_openedAt:h.current,tracking:LE(p.current)})},T=()=>{r(Fw),c({}),d(!1),h.current=Date.now(),p.current=cm(),t()};return e?g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:110",className:"fixed inset-0 z-[1100] flex items-start sm:items-center justify-center sm:p-4",role:"dialog","aria-modal":"true","aria-label":"Katalog kostenlos bestellen",children:[g.jsx("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:117",className:"absolute inset-0 bg-black/60 backdrop-blur-sm",onClick:T,"aria-hidden":"true"}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:124",className:"relative w-full sm:max-w-lg bg-white rounded-none shadow-2xl flex flex-col mt-0 h-screen sm:h-auto sm:max-h-[90vh]",style:{height:"var(--modal-h, 100dvh)"},children:[g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:126",className:"bg-[#0a1628] px-6 py-5 flex items-center justify-between flex-shrink-0",children:[g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:127",children:[g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:128",className:"text-xs text-[#4a9eff] font-semibold uppercase tracking-widest",children:"Anfrage"}),g.jsx("h2",{"data-loc":"client/src/components/KatalogBestellModal.tsx:129",className:"text-white font-bold text-lg leading-tight",children:"Katalog bestellen"})]}),g.jsx("button",{"data-loc":"client/src/components/KatalogBestellModal.tsx:131",onClick:T,className:"w-8 h-8 rounded-none bg-white/10 hover:bg-white/20 flex items-center justify-center transition-colors","aria-label":"Schließen",children:g.jsx(pr,{"data-loc":"client/src/components/KatalogBestellModal.tsx:136",className:"w-4 h-4 text-white"})})]}),g.jsx("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:140",className:"overflow-y-auto flex-1 overscroll-contain",children:u?g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:143",className:"px-6 py-12 flex flex-col items-center text-center gap-4",children:[g.jsx("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:144",className:"w-16 h-16 rounded-none bg-green-50 flex items-center justify-center",children:g.jsx(M6,{"data-loc":"client/src/components/KatalogBestellModal.tsx:145",className:"w-9 h-9 text-green-500"})}),g.jsx("h3",{"data-loc":"client/src/components/KatalogBestellModal.tsx:147",className:"text-xl font-bold text-gray-900",children:"Bestellung eingegangen!"}),g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:148",className:"text-gray-500 text-sm max-w-xs",children:"Ihr Katalog wird kostenlos an die angegebene Adresse versendet. In der Regel erhalten Sie ihn innerhalb von 3–5 Werktagen."}),g.jsx("button",{"data-loc":"client/src/components/KatalogBestellModal.tsx:151",onClick:T,className:"mt-2 gyn-btn-primary",children:"Schließen"})]}):g.jsxs("form",{"data-loc":"client/src/components/KatalogBestellModal.tsx:159",onSubmit:w,noValidate:!0,className:"px-6 py-6 space-y-5",children:[g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:160",className:"text-sm text-gray-500",children:"Wir senden Ihnen den Stusche Katalog 2025/2026 kostenfrei per Post zu. Bitte füllen Sie die Lieferadresse aus."}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:165",type:"text",name:"website_url",value:a._hp,onChange:y("_hp"),tabIndex:-1,autoComplete:"nope","aria-hidden":"true",style:{position:"fixed",top:"-9999px",left:"-9999px",width:"1px",height:"1px",opacity:0,pointerEvents:"none"}}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:177",className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:178",children:[g.jsx("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:179",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Anrede"}),g.jsxs("select",{"data-loc":"client/src/components/KatalogBestellModal.tsx:180",value:a.anrede,onChange:y("anrede"),className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors",children:[g.jsx("option",{"data-loc":"client/src/components/KatalogBestellModal.tsx:185",value:"",children:"Bitte wählen"}),g.jsx("option",{"data-loc":"client/src/components/KatalogBestellModal.tsx:186",value:"Herr",children:"Herr"}),g.jsx("option",{"data-loc":"client/src/components/KatalogBestellModal.tsx:187",value:"Frau",children:"Frau"}),g.jsx("option",{"data-loc":"client/src/components/KatalogBestellModal.tsx:188",value:"Praxis",children:"Praxis"})]})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:191",children:[g.jsx("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:192",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:"Anzahl Exemplare"}),g.jsx("select",{"data-loc":"client/src/components/KatalogBestellModal.tsx:193",value:a.anzahl,onChange:_=>r(k=>({...k,anzahl:parseInt(_.target.value)})),className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors",children:[1,2,3,4,5].map(_=>g.jsxs("option",{"data-loc":"client/src/components/KatalogBestellModal.tsx:198",value:_,children:[_," Exemplar",_>1?"e":""]},_))})]})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:204",children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:205",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(IE,{"data-loc":"client/src/components/KatalogBestellModal.tsx:206",className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Name ",g.jsx("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:207",className:"text-red-500",children:"*"})]}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:209",type:"text",value:a.name,onChange:y("name"),placeholder:"Vor- und Nachname",autoComplete:"name",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.name?"border-red-400 bg-red-50":"border-gray-200"}`}),o.name&&g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:217",className:"mt-1 text-xs text-red-500",children:o.name})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:221",children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:222",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(gd,{"data-loc":"client/src/components/KatalogBestellModal.tsx:223",className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Praxisname / Einrichtung"]}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:226",type:"text",value:a.praxis,onChange:y("praxis"),placeholder:"z. B. Praxis Dr. Müller",autoComplete:"organization",className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors"})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:237",children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:238",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(Uu,{"data-loc":"client/src/components/KatalogBestellModal.tsx:239",className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Straße und Hausnummer ",g.jsx("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:240",className:"text-red-500",children:"*"})]}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:242",type:"text",value:a.strasse,onChange:y("strasse"),placeholder:"Musterstraße 12",autoComplete:"street-address",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.strasse?"border-red-400 bg-red-50":"border-gray-200"}`}),o.strasse&&g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:250",className:"mt-1 text-xs text-red-500",children:o.strasse})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:253",className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:254",children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:255",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:["PLZ ",g.jsx("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:255",className:"text-red-500",children:"*"})]}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:256",type:"text",value:a.plz,onChange:y("plz"),placeholder:"12345",maxLength:5,autoComplete:"postal-code",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.plz?"border-red-400 bg-red-50":"border-gray-200"}`}),o.plz&&g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:265",className:"mt-1 text-xs text-red-500",children:o.plz})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:267",children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:268",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:["Ort ",g.jsx("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:268",className:"text-red-500",children:"*"})]}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:269",type:"text",value:a.ort,onChange:y("ort"),placeholder:"Berlin",autoComplete:"address-level2",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.ort?"border-red-400 bg-red-50":"border-gray-200"}`}),o.ort&&g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:277",className:"mt-1 text-xs text-red-500",children:o.ort})]})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:282",className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:283",children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:284",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(pg,{"data-loc":"client/src/components/KatalogBestellModal.tsx:285",className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"E-Mail ",g.jsx("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:286",className:"text-gray-400 font-normal",children:"(optional)"})]}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:288",type:"email",value:a.email,onChange:y("email"),placeholder:"praxis@beispiel.de",autoComplete:"email",className:`w-full border rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors ${o.email?"border-red-400 bg-red-50":"border-gray-200"}`}),o.email&&g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:296",className:"mt-1 text-xs text-red-500",children:o.email})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:298",children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:299",className:"block text-xs font-semibold text-gray-700 mb-1.5",children:[g.jsx(Ra,{"data-loc":"client/src/components/KatalogBestellModal.tsx:300",className:"inline w-3.5 h-3.5 mr-1 text-gray-400"}),"Telefon ",g.jsx("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:301",className:"text-gray-400 font-normal",children:"(optional)"})]}),g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:303",type:"tel",value:a.telefon,onChange:y("telefon"),placeholder:"030 12345678",autoComplete:"tel",className:"w-full border border-gray-200 rounded-none px-3 py-2.5 text-sm text-gray-800 bg-gray-50 focus:outline-none focus:ring-2 focus:ring-[#1a6dcc]/30 focus:border-[#1a6dcc] transition-colors"})]})]}),g.jsxs("div",{"data-loc":"client/src/components/KatalogBestellModal.tsx:315",className:`rounded-none p-3 border ${o.datenschutz?"border-red-300 bg-red-50":"border-gray-100 bg-gray-50"}`,children:[g.jsxs("label",{"data-loc":"client/src/components/KatalogBestellModal.tsx:316",className:"flex items-start gap-2.5 cursor-pointer",children:[g.jsx("input",{"data-loc":"client/src/components/KatalogBestellModal.tsx:317",type:"checkbox",checked:a.datenschutz,onChange:y("datenschutz"),className:"mt-0.5 w-4 h-4 rounded border-gray-300 text-[#1a6dcc] focus:ring-[#1a6dcc]/30 flex-shrink-0"}),g.jsxs("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:323",className:"text-xs text-gray-600 leading-relaxed",children:["Ich stimme der Verarbeitung meiner Daten zur Katalogzusendung gemäß der"," ",g.jsx("a",{"data-loc":"client/src/components/KatalogBestellModal.tsx:325",href:"/datenschutz",target:"_blank",rel:"noopener noreferrer",className:"text-[#1a6dcc] underline hover:text-[#1557b0]",children:"Datenschutzerklärung"})," ","zu. Die Daten werden ausschließlich für den Versand verwendet und nicht an Dritte weitergegeben. ",g.jsx("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:328",className:"text-red-500",children:"*"})]})]}),o.datenschutz&&g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:331",className:"mt-1.5 text-xs text-red-500 pl-6",children:o.datenschutz})]}),g.jsx("button",{"data-loc":"client/src/components/KatalogBestellModal.tsx:335",type:"submit",disabled:v.isPending,className:"w-full gyn-btn-primary justify-center disabled:opacity-60 disabled:cursor-not-allowed",children:v.isPending?g.jsxs("span",{"data-loc":"client/src/components/KatalogBestellModal.tsx:341",className:"flex items-center gap-2",children:[g.jsxs("svg",{"data-loc":"client/src/components/KatalogBestellModal.tsx:342",className:"animate-spin w-4 h-4",fill:"none",viewBox:"0 0 24 24",children:[g.jsx("circle",{"data-loc":"client/src/components/KatalogBestellModal.tsx:343",className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),g.jsx("path",{"data-loc":"client/src/components/KatalogBestellModal.tsx:344",className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Wird gesendet…"]}):g.jsxs(g.Fragment,{children:[g.jsx(mg,{"data-loc":"client/src/components/KatalogBestellModal.tsx:350",className:"w-4 h-4"}),"Katalog kostenlos anfordern"]})}),g.jsx("p",{"data-loc":"client/src/components/KatalogBestellModal.tsx:356",className:"text-center text-xs text-gray-400",children:"Kostenlos · Keine Verpflichtung · Versand per Post"})]})})]})]}):null}const wB={melag:{src:"/images/melag_final_c7612f72.webp",alt:"MELAG – competence in hygiene",size:"h-5"},miele:{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele",bg:"bg-[#CC0000]",size:"h-5"},"miele professional":{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele Professional",bg:"bg-[#CC0000]",size:"h-5"},schmitz:{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz",size:"h-10"},"schmitz medical":{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz Medical",size:"h-10"},getinge:{src:"/images/getinge_final_98c16755.webp",alt:"Getinge",size:"h-6"},edan:{src:"/images/edan-logo_2459b379.webp",alt:"EDAN",size:"h-12"},"medical econet":{src:"/images/medical-econet-logo_f91f8b7f.webp",alt:"medical ECOnet",size:"h-8"},schiller:{src:"/images/schiller-logo_be708bcb.webp",alt:"SCHILLER",size:"h-7"},vitalograph:{src:"/images/vitalograph-logo_6590ad7d.webp",alt:"Vitalograph",size:"h-7"},"bosch + sohn":{src:"/images/bosch-sohn-boso-logo_c18316fa.webp",alt:"Bosch + Sohn / boso",size:"h-10"},"dr. mach":{src:"/images/dr-mach-logo_9b53143c.webp",alt:"Dr. Mach",size:"h-10"},erbe:{src:"/images/erbe-logo_ce09c39e.webp",alt:"ERBE Elektromedizin",size:"h-7"},"erbe elektromedizin":{src:"/images/erbe-logo_ce09c39e.webp",alt:"ERBE Elektromedizin",size:"h-7"},"serag-wiessner":{src:"/images/serag-wiessner-logo.webp",alt:"Serag-Wiessner",size:"h-7"},"serag wiessner":{src:"/images/serag-wiessner-logo.webp",alt:"Serag-Wiessner",size:"h-7"},"b. braun":{src:"/images/bbraun-logo.webp",alt:"B. Braun – Sharing Expertise",size:"h-8"},bbraun:{src:"/images/bbraun-logo.webp",alt:"B. Braun – Sharing Expertise",size:"h-8"}};function SB({hersteller:e,className:t=""}){const a=e.toLowerCase(),r=wB[a];if(!r)return g.jsx("span",{"data-loc":"client/src/components/HerstellerLogo.tsx:124",className:`text-[10px] font-semibold text-gray-400 tracking-widest uppercase ${t}`,children:e});const o=!!r.bg;return g.jsx("div",{"data-loc":"client/src/components/HerstellerLogo.tsx:134",className:`flex items-center justify-end ${t}`,title:r.alt,children:g.jsx("div",{"data-loc":"client/src/components/HerstellerLogo.tsx:138",className:`rounded px-1.5 py-0.5 opacity-80 hover:opacity-100 transition-opacity ${o?"bg-white shadow-sm":""}`,children:g.jsx("img",{"data-loc":"client/src/components/HerstellerLogo.tsx:143",src:r.src,alt:r.alt,className:`${r.size??"h-6"} w-auto object-contain`,loading:"lazy"})})})}const EB="/hero-loop-v2.webm",TB="/hero-loop-v2.mp4",Qw="/hero-poster-v2.webp",_B="/images/home-themenwelt-gyn-3TSczofTDCc8ZyxKa3Ywsb.webp",AB="/images/medi-matic-front_541c3967.webp",CB="/images/boso-tm2450-front_e8f1a2b3.webp",OB="/images/edan-f3-ctg-new_c4d5e6f7.webp",jB="/melag-vacuklav-44b-evolution.webp",mt=[{brand:"SCHMITZ",hersteller:"schmitz",brandColor:"#1a1a2e",name:"medi-matic®",tag:"Behandlungsstuhl",category:"Gynäkologie",desc:"Der preisgekrönte Behandlungsstuhl für die moderne gynäkologische Praxis. Wireless-Steuerung, 470 mm Ausgangshöhe und LED-Ambiente.",features:["4 Nutzerprofile, 16 Memorypositionen","470 mm Ausgangshöhe – sicheres Platznehmen","300 kg Arbeitslast","LED-Ambiente individuell dimmbar"],badge:"German Design Award 2023",img:AB,imgAlt:"SCHMITZ medi-matic Behandlungsstuhl",href:"/produkte/medi-matic",wizardConfig:"medimatic_inquiry",bgColor:"#f0f4f8"},{brand:"boso",hersteller:"bosch + sohn",brandColor:"#cc0000",name:"TM-2450",tag:"Blutdruckmessgerät",category:"Diagnostik",desc:"Vollautomatisches Blutdruckmessgerät für die Praxis. Klinisch validiert, ARTERY-Society-zertifiziert und einfach zu bedienen.",features:["Klinisch validiert nach ESH-Protokoll","Großes, gut lesbares Display","Speicher für 60 Messungen","Netz- und Batteriebetrieb möglich"],badge:"Klinisch validiert",img:CB,imgAlt:"boso TM-2450 Blutdruckmessgerät",href:"/produkte/boso-tm-2450",wizardConfig:"boso_tm2450_inquiry",bgColor:"#f5f0f0"},{brand:"EDAN",hersteller:"edan",brandColor:"#2d6a4f",name:"F3 CTG-Monitor",tag:"CTG-Gerät",category:"Gynäkologie",desc:"Moderner Fetal-Monitor für die Überwachung von Mutter und Kind. Kompakt, präzise und mit großem Farb-Touchscreen.",features:['Großes 10,4" Farb-Touchscreen-Display',"Integrierter Thermodrucker","Bluetooth & WLAN-Konnektivität","Bis zu 24h Aufzeichnung"],badge:"CE-zertifiziert",img:OB,imgAlt:"EDAN F3 CTG-Monitor",href:"/produkte/edan-f3-ctg",wizardConfig:"ctg_inquiry",bgColor:"#f0f5f2"},{brand:"MELAG",hersteller:"melag",brandColor:"#0066cc",name:"Vacuklav 44 B+ Evolution",tag:"Autoklav Klasse B",category:"Aufbereitung",desc:"Der Power-Autoklav für die große Praxis – mit DRYtelligence. 22 l Kammer, bis zu 9 kg Beladung, Sterilisation verpackter Instrumente in nur 20 Minuten.",features:["Klasse B – alle Instrumententypen","9 kg Beladekapazität","DRYtelligence® – intelligente Trocknung","XXL Colour-Touch Display"],badge:"KRINKO-konform",img:jB,imgAlt:"MELAG Vacuklav 44 B+ Evolution Autoklav",href:"/produkte/melag-vacuklav",wizardConfig:"autoklaven_inquiry",bgColor:"#f0f4fa"}],MB=[{icon:mg,title:"Praxisbedarf",desc:"Verbrauchsmaterialien, Diagnostik und Praxisausstattung – zuverlässig geliefert, direkt in Ihre Praxis.",href:"/leistungen/praxisbedarf",tag:"Lieferung"},{icon:K6,title:"Sprechstundenbedarf",desc:"Abrechnung nach § 300 SGB V – wir übernehmen die komplette Abwicklung mit den Krankenkassen.",href:"/leistungen/sprechstundenbedarf",tag:"Abrechnung"},{icon:$E,title:"Technischer Service",desc:"Wartung, Reparatur und STK nach MPBetreibV durch zertifizierte Techniker – vor Ort in Ihrer Praxis.",href:"/leistungen/technischer-service",tag:"Service"},{icon:H6,title:"3D-Praxisplanung",desc:"Individuelle Praxisplanung in 3D – von der ersten Skizze bis zur schlüsselfertigen Einrichtung.",href:"/leistungen/praxisplanung",tag:"Planung"},{icon:qE,title:"Praxisportal",desc:"Kostenfrei für alle Kunden: Bestellungen, SSB-Rezepte, Rechnungsarchiv und Geräte-Service in einem System.",href:"/leistungen/praxisportal",tag:"Kostenfrei"},{icon:hg,title:"Hygienemanagement",desc:"Begehung, Hygieneplan, Schulung und Zertifikat – alles aus einer Hand, rechtssicher nach IfSG und KRINKO.",href:"/leistungen/hygienemanagement",tag:"Compliance"}],NB=[{icon:gg,title:"Persönlicher Außendienst",desc:"Jede Praxis erhält einen festen Ansprechpartner – für Beratung, Bestellung und Vor-Ort-Besuche."},{icon:gd,title:"Schnelle Lieferung, oft am nächsten Werktag",desc:"Unser eigenes Lager in Teltow ermöglicht kurze Wege und schnelle Verfügbarkeit – direkt vor den Toren Berlins."},{icon:HE,title:"Zertifizierter Service",desc:"Alle Techniker sind nach MPBetreibV zertifiziert. Qualität und Compliance sind bei uns Standard."},{icon:qE,title:"Digitales Praxisportal",desc:"Kostenfrei für alle Kunden: Bestellungen, SSB-Rezepte, Rechnungsarchiv und Geräte-Service in einem System – eingerichtet von unserem Außendienst."}],kB=[{title:"Gynäkologie",desc:"Spezialisiertes Sortiment, Fachberatung und technischer Service – exklusiv für gynäkologische Praxen.",img:_B,href:"/themenwelten/gynaekologie",available:!0,badge:"Verfügbar"},{title:"Aufbereitung & Sterilisation",desc:"Autoklaven und Thermodesinfektoren – KRINKO-konforme Aufbereitungstechnik von MELAG, Miele und Getinge.",img:"/images/aufbereitung-hero_a1ca8875.webp",href:"/themenwelten/aufbereitung",available:!0,badge:"Verfügbar"},{title:"Medizintechnik",desc:"Diagnostikgeräte, Blutdruckmessgeräte und Spirometrie – zuverlässige Medizintechnik für den Praxisalltag.",img:"/images/unsplash-medizin_1576091160.webp",href:"/themenwelten/medizintechnik",available:!0,badge:"Verfügbar"},{title:"Chirurgie",desc:"Operationstische, HF-Geräte, Nahtmaterial und Aufbereitungstechnik – Komplettausstattung für chirurgische Praxen.",img:"/images/chirurgie-hero.webp",href:"/themenwelten/chirurgie",available:!0,badge:"Verfügbar"}],fn=(e=0)=>({initial:{opacity:0,y:28},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:e}});function zB(){const{openWizard:e}=yd(),[t,a]=S.useState(0),[r,o]=S.useState(!1),[c,u]=S.useState(!1),[d,h]=S.useState(!1);S.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const A=window.matchMedia("(min-width: 768px)"),U=()=>h(A.matches);return U(),A.addEventListener("change",U),()=>A.removeEventListener("change",U)},[]);const p=S.useRef(null),v=S.useRef(null),y=S.useCallback(()=>{a(A=>(A+1)%mt.length)},[]);S.useEffect(()=>{if(r)return;const A=setInterval(y,4e3);return()=>clearInterval(A)},[r,y]);const{scrollYProgress:b}=qw({target:p,offset:["start start","end start"]}),w=hu(b,[0,1],[1,0]),T=hu(b,[0,1],[1,1.08]),_=hu(b,[0,1],[0,80]),{scrollYProgress:k}=qw({target:v,offset:["start end","end start"]}),M=hu(k,[0,1],["-8%","8%"]),L={"@context":"https://schema.org","@type":"LocalBusiness","@id":"https://www.stusche.de/#business",name:"Stusche GmbH",url:"https://www.stusche.de",telephone:"+493328474747",faxNumber:"+493328475767",email:"info@stusche.de",address:{"@type":"PostalAddress",streetAddress:"Iserstraße 12",addressLocality:"Teltow",postalCode:"14513",addressRegion:"Brandenburg",addressCountry:"DE"},geo:{"@type":"GeoCoordinates",latitude:52.3983,longitude:13.2674},openingHoursSpecification:[{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday"],opens:"08:00",closes:"17:00"},{"@type":"OpeningHoursSpecification",dayOfWeek:"Friday",opens:"08:00",closes:"16:00"}],description:"Ihr Premiumpartner für Praxisbedarf, Sprechstundenbedarf, technischen Service und Praxisplanung – seit 1989.",foundingDate:"1989",areaServed:[{"@type":"City",name:"Berlin"},{"@type":"State",name:"Brandenburg"}],hasMap:"https://maps.google.com/?q=Iserstra%C3%9Fe+12,+14513+Teltow"};return g.jsxs(g.Fragment,{children:[g.jsx(R_,{"data-loc":"client/src/pages/Homepage.tsx:308",title:"Stusche GmbH | Praxisbedarf & Medizintechnik in Teltow bei Berlin",description:"Praxisbedarf, Sprechstundenbedarf, Medizintechnik und 3D-Praxisplanung für Arztpraxen in Berlin & Brandenburg. Seit 1989 Ihr Praxisdienstleister in Teltow.",keywords:"Praxisbedarf, Sprechstundenbedarf, Medizintechnik, Praxisplanung, Stusche, Teltow, Arztpraxis, Berlin, Brandenburg",canonical:"https://www.stusche.de/",schema:[L,xB([{name:"Startseite",url:"https://www.stusche.de"}])]}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:315",className:"min-h-screen bg-white gyn-font-body",children:[g.jsx(k_,{"data-loc":"client/src/pages/Homepage.tsx:316"}),g.jsxs("section",{"data-loc":"client/src/pages/Homepage.tsx:319",ref:p,className:"relative min-h-screen flex items-end overflow-clip",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:320",className:"absolute inset-0",style:{scale:T,opacity:w},children:[g.jsx("img",{"data-loc":"client/src/pages/Homepage.tsx:326",src:Qw,alt:"","aria-hidden":"true",fetchPriority:"high",decoding:"async",className:`absolute inset-0 w-full h-full object-cover object-center ${d?"md:hidden":""}`}),d&&g.jsxs("video",{"data-loc":"client/src/pages/Homepage.tsx:344",autoPlay:!0,muted:!0,loop:!0,playsInline:!0,poster:Qw,className:"absolute inset-0 w-full h-full object-cover","aria-hidden":"true",children:[g.jsx("source",{"data-loc":"client/src/pages/Homepage.tsx:353",src:EB,type:"video/webm"}),g.jsx("source",{"data-loc":"client/src/pages/Homepage.tsx:354",src:TB,type:"video/mp4"})]}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:357",className:"absolute inset-0 gyn-hero-gradient"})]}),g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:360",className:"container relative z-10 pb-16 pt-32 xl:pt-40",style:{y:_},children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:364",className:"max-w-4xl",children:[g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:365",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.1},children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:370",className:"gyn-badge",children:[g.jsx(Uu,{"data-loc":"client/src/pages/Homepage.tsx:371",className:"w-3 h-3","aria-hidden":"true"}),"Teltow · Brandenburg · Seit 1989"]})}),g.jsxs(_e.h1,{"data-loc":"client/src/pages/Homepage.tsx:376",className:"gyn-hero-title home-hero-h1 mb-6",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.9,delay:.2},children:[g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:382",className:"md:whitespace-nowrap",children:"Praxisbedarf & Medizintechnik"}),g.jsx("br",{"data-loc":"client/src/pages/Homepage.tsx:382"}),g.jsx("em",{"data-loc":"client/src/pages/Homepage.tsx:383",className:"text-blue-italic md:whitespace-nowrap",children:"für die moderne Arztpraxis"})]}),g.jsx(_e.p,{"data-loc":"client/src/pages/Homepage.tsx:386",className:"gyn-hero-subtitle mb-10",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.35},children:"Über 40.000 Artikel, Sprechstundenbedarf mit Kassenabrechnung und eigener technischer Service – persönlich betreut in Berlin & Brandenburg, seit 1989."}),g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:395",className:"flex flex-wrap gap-4",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8,delay:.5},children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:401",className:"flex flex-col gap-1",children:[g.jsxs("button",{"data-loc":"client/src/pages/Homepage.tsx:402",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Startseite – Hero"}),className:"gyn-btn-primary",children:["Beratung anfragen",g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:407",className:"w-3.5 h-3.5","aria-hidden":"true"})]}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:409",className:"text-white/50 text-xs pl-1",children:"Rückruf am selben Werktag"})]}),g.jsxs("a",{"data-loc":"client/src/pages/Homepage.tsx:411",href:"#leistungen",className:"gyn-btn-outline inline-flex items-center gap-2 border-white/30 text-white/70 hover:text-white hover:border-white/60 self-start",style:{height:"2.9375rem"},children:[g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:416",className:"w-3.5 h-3.5","aria-hidden":"true"}),"Leistungen entdecken"]})]}),g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:422",className:"mt-12 mb-8 hidden md:grid md:grid-cols-4 gap-8 max-w-lg",initial:{opacity:0},animate:{opacity:1},transition:{duration:1,delay:.65},children:[{value:"35+",label:"Jahre Erfahrung"},{value:"500+",label:"Praxen versorgt"},{value:"Täglich",label:"Liefertouren"},{value:"Vor Ort",label:"Außendienst & Service"}].map((A,U)=>g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:434",className:"gyn-stat-card",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:435",className:"gyn-stat-value",children:A.value}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:436",className:"gyn-stat-label",children:A.label})]},U))})]})})]}),g.jsx("section",{"data-loc":"client/src/pages/Homepage.tsx:445",className:"py-16 bg-[#f5f7fa] border-b border-gray-200",children:g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:446",className:"container",children:g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:447",className:"flex flex-col md:flex-row items-center gap-10 md:gap-16",...fn(0),children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:452",className:"flex-1 text-center md:text-left",children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:453",className:"flex items-center gap-3 justify-center md:justify-start mb-5",children:[g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:454",className:"block w-8 h-0.5 bg-red-600","aria-hidden":"true"}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:455",className:"text-xs font-semibold uppercase tracking-widest text-navy/50",children:"Miele Aktion · Gültig bis 31.12.2026"})]}),g.jsxs("h2",{"data-loc":"client/src/pages/Homepage.tsx:459",className:"text-3xl sm:text-4xl font-light text-navy leading-tight mb-4",children:["Jetzt bis zu"," ",g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:461",className:"font-bold text-red-600",children:"1.000 €"})," ","Aktionsvorteil sichern"]}),g.jsxs("p",{"data-loc":"client/src/pages/Homepage.tsx:464",className:"text-navy/55 text-base leading-relaxed max-w-xl mb-7",children:["Miele ExpertLine oder CompactLine Thermodesinfektor + HNO-Korbset +"," ","6 Monate Miele MOVE MedDent+ kostenlos – exklusiv für HNO-Praxen in Berlin & Brandenburg."]}),g.jsxs(ms,{"data-loc":"client/src/pages/Homepage.tsx:468",href:"/aktionen/miele-hno-extra",className:"gyn-btn-outline-dark inline-flex",children:["Zum Aktionsangebot",g.jsx(vs,{"data-loc":"client/src/pages/Homepage.tsx:473",className:"w-4 h-4"})]})]}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:477",className:"flex-shrink-0 w-full md:w-80 lg:w-96",children:g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:478",className:"bg-white p-8",children:g.jsx("img",{"data-loc":"client/src/pages/Homepage.tsx:479",src:"/images/miele-expertline-compactline.jpg",alt:"Miele ExpertLine und CompactLine Thermodesinfektoren für HNO-Praxen",className:"w-full h-auto object-contain block",loading:"lazy"})})})]})})}),g.jsx("section",{"data-loc":"client/src/pages/Homepage.tsx:492",className:"py-24 bg-white",children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:493",className:"container",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:494",className:"mb-14",...fn(0),children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:495",className:"gyn-section-label",children:"LEISTUNGEN"}),g.jsx("h2",{"data-loc":"client/src/pages/Homepage.tsx:498",className:"gyn-section-title mt-4",children:"Alles, was Ihre Praxis braucht"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:501",className:"gyn-section-subtitle mt-3 max-w-2xl",children:"Von der täglichen Versorgung bis zur langfristigen Planung – wir begleiten Sie in allen Bereichen."})]}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:506",className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:MB.map((A,U)=>g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:508",...fn(U*.07),children:g.jsxs(ms,{"data-loc":"client/src/pages/Homepage.tsx:509",href:A.href,className:"gyn-product-card group block h-full",children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:510",className:"flex items-center justify-between mb-4",children:[g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:511",className:"gyn-product-tag",children:A.tag}),g.jsx(A.icon,{"data-loc":"client/src/pages/Homepage.tsx:512",className:"w-5 h-5 text-blue-400/60","aria-hidden":"true"})]}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:514",className:"gyn-product-name",children:A.title}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:515",className:"gyn-product-meta home-leistung-meta mt-2 normal-case tracking-normal leading-relaxed",children:A.desc}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:516",className:"flex items-center gap-1 mt-5 text-blue-500 text-sm font-semibold",children:["Mehr erfahren",g.jsx(vs,{"data-loc":"client/src/pages/Homepage.tsx:518",className:"w-4 h-4 transition-transform group-hover:translate-x-1","aria-hidden":"true"})]})]})},A.title))})]})}),g.jsxs("section",{"data-loc":"client/src/pages/Homepage.tsx:528",className:"pt-10 pb-16 bg-white border-t border-gray-100",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:529",className:"container",children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:530",className:"flex items-center justify-center gap-4 mb-8",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:531",className:"flex-1 max-w-[120px] h-px bg-gradient-to-r from-transparent to-gray-300"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:532",className:"text-xs font-semibold tracking-[0.18em] text-gray-500 uppercase whitespace-nowrap",children:"Top-Marken aus unserem Sortiment"}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:535",className:"flex-1 max-w-[120px] h-px bg-gradient-to-l from-transparent to-gray-300"})]})}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:538",className:"marquee-track",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:539",className:"pointer-events-none absolute left-0 top-0 bottom-0 w-24 z-10 marquee-fade-left"}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:540",className:"pointer-events-none absolute right-0 top-0 bottom-0 w-24 z-10 marquee-fade-right"}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:541",className:"flex gap-16 items-center animate-marquee whitespace-nowrap",children:[{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele",h:"h-7"},{src:"/images/melag_final_c7612f72.webp",alt:"MELAG",h:"h-6"},{src:"/images/schiller-logo_be708bcb.webp",alt:"SCHILLER",h:"h-7"},{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz",h:"h-10"},{src:"/images/edan-logo_2459b379.webp",alt:"EDAN",h:"h-10"},{src:"/images/medical-econet-logo_f91f8b7f.webp",alt:"medical ECOnet",h:"h-8"},{src:"/images/vitalograph-logo_6590ad7d.webp",alt:"Vitalograph",h:"h-7"},{src:"/images/bosch-sohn-boso-logo_c18316fa.webp",alt:"Bosch + Sohn / boso",h:"h-9"},{src:"/images/dr-mach-logo_9b53143c.webp",alt:"Dr. Mach",h:"h-9"},{src:"/images/getinge_final_98c16755.webp",alt:"Getinge",h:"h-7"},{src:"/images/miele_final_2f01aaa4.webp",alt:"Miele",h:"h-7"},{src:"/images/melag_final_c7612f72.webp",alt:"MELAG",h:"h-6"},{src:"/images/schiller-logo_be708bcb.webp",alt:"SCHILLER",h:"h-7"},{src:"/images/schmitz_final_c5708868.webp",alt:"Schmitz",h:"h-10"},{src:"/images/edan-logo_2459b379.webp",alt:"EDAN",h:"h-10"},{src:"/images/medical-econet-logo_f91f8b7f.webp",alt:"medical ECOnet",h:"h-8"},{src:"/images/vitalograph-logo_6590ad7d.webp",alt:"Vitalograph",h:"h-7"},{src:"/images/bosch-sohn-boso-logo_c18316fa.webp",alt:"Bosch + Sohn / boso",h:"h-9"},{src:"/images/dr-mach-logo_9b53143c.webp",alt:"Dr. Mach",h:"h-9"},{src:"/images/getinge_final_98c16755.webp",alt:"Getinge",h:"h-7"}].map((A,U)=>g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:564",className:"inline-flex items-center justify-center flex-shrink-0 opacity-80 hover:opacity-100 transition-opacity duration-300",children:g.jsx("img",{"data-loc":"client/src/pages/Homepage.tsx:565",src:A.src,alt:A.alt,className:`${A.h} w-auto object-contain`,loading:"lazy"})},U))})]})]}),g.jsxs("section",{"data-loc":"client/src/pages/Homepage.tsx:573",id:"leistungen",className:"py-24 bg-navy",children:["          ",g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:573",className:"container",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:574",className:"mb-14",...fn(0),children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:575",className:"gyn-section-label gyn-section-label--on-dark",children:"THEMENWELTEN"}),g.jsx("h2",{"data-loc":"client/src/pages/Homepage.tsx:578",className:"gyn-section-title gyn-section-title--on-dark mt-4",children:"Unsere Themenwelten"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:581",className:"gyn-section-subtitle gyn-section-subtitle--on-dark mt-3 max-w-2xl",children:"Wir beliefern alle Fachrichtungen – von der Gynäkologie bis zur Chirurgie. Hier unsere Spezialisierungen:"})]}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:586",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-5",children:kB.map((A,U)=>g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:588",...fn(U*.1),children:A.available?g.jsxs(ms,{"data-loc":"client/src/pages/Homepage.tsx:590",href:A.href,className:"home-themenwelt-card group block",children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:591",className:"home-themenwelt-img-wrap",children:[A.img?g.jsx("img",{"data-loc":"client/src/pages/Homepage.tsx:593",src:A.img,alt:A.title,className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105",loading:"lazy"}):g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:600",className:"w-full h-full bg-navy flex items-center justify-center",children:A.icon&&g.jsx(A.icon,{"data-loc":"client/src/pages/Homepage.tsx:601",className:"w-20 h-20 text-blue-400/30","aria-hidden":"true"})}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:604",className:"home-themenwelt-img-overlay"}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:605",className:"home-themenwelt-badge home-themenwelt-badge-active",children:A.badge})]}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:607",className:"home-themenwelt-body",children:[g.jsx("h3",{"data-loc":"client/src/pages/Homepage.tsx:608",className:"home-themenwelt-title",children:A.title}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:609",className:"home-themenwelt-desc",children:A.desc}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:610",className:"home-themenwelt-cta",children:["Themenwelt entdecken",g.jsx(vs,{"data-loc":"client/src/pages/Homepage.tsx:612",className:"w-4 h-4 transition-transform group-hover:translate-x-1","aria-hidden":"true"})]})]})]}):g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:617",className:"home-themenwelt-card home-themenwelt-card-soon",children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:618",className:"home-themenwelt-img-wrap home-themenwelt-img-soon",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:619",className:"w-full h-full flex items-center justify-center",children:A.icon&&g.jsx(A.icon,{"data-loc":"client/src/pages/Homepage.tsx:620",className:"w-16 h-16 text-white/20","aria-hidden":"true"})}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:622",className:"home-themenwelt-badge home-themenwelt-badge-soon",children:A.badge})]}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:624",className:"home-themenwelt-body",children:[g.jsx("h3",{"data-loc":"client/src/pages/Homepage.tsx:625",className:"home-themenwelt-title home-themenwelt-title--soon",children:A.title}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:626",className:"home-themenwelt-desc home-themenwelt-desc--soon",children:A.desc})]})]})},A.title))})]})]}),g.jsxs("section",{"data-loc":"client/src/pages/Homepage.tsx:638",className:"home-warum-cinematic",ref:v,children:[g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:640",className:"home-warum-cinematic-photo",style:{y:M},"aria-hidden":"true"}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:646",className:"home-warum-cinematic-gradient","aria-hidden":"true"}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:649",className:"container home-warum-cinematic-inner",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:652",className:"home-warum-cinematic-header",...fn(0),children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:653",className:"gyn-section-label",style:{color:"rgba(255,255,255,0.55)"},children:"WARUM STUSCHE"}),g.jsxs("h2",{"data-loc":"client/src/pages/Homepage.tsx:654",className:"gyn-section-title-light mb-0",children:["Mehr als ein Lieferant –",g.jsx("br",{"data-loc":"client/src/pages/Homepage.tsx:655"}),g.jsx("em",{"data-loc":"client/src/pages/Homepage.tsx:656",className:"text-blue-italic",children:"Ihr Praxispartner"})]})]}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:661",className:"home-warum-cinematic-list",children:NB.map((A,U)=>g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:663",className:"home-warum-cinematic-item",...fn(.1+U*.08),children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:668",className:"home-warum-cinematic-item-icon",children:g.jsx(A.icon,{"data-loc":"client/src/pages/Homepage.tsx:669",className:"w-4 h-4","aria-hidden":"true"})}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:671",className:"home-warum-cinematic-item-body",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:672",className:"home-warum-cinematic-item-title",children:A.title}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:673",className:"home-warum-cinematic-item-desc",children:A.desc})]})]},A.title))}),g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:680",className:"home-warum-cinematic-cta",...fn(.5),children:[g.jsxs("button",{"data-loc":"client/src/pages/Homepage.tsx:681",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Startseite – Warum Stusche"}),className:"gyn-btn-primary",children:["Jetzt Beratung anfragen",g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:686",className:"w-4 h-4","aria-hidden":"true"})]}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:688",className:"home-warum-cinematic-note",children:"Persönlicher Außendienst · Eigenes Lager Teltow · Seit 1989"})]})]})]}),g.jsx("section",{"data-loc":"client/src/pages/Homepage.tsx:697",className:"py-24 bg-white",children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:698",className:"container",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:700",className:"mb-12",...fn(0),children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:701",className:"gyn-section-label",children:"PRODUKT-HIGHLIGHTS"}),g.jsxs("h2",{"data-loc":"client/src/pages/Homepage.tsx:704",className:"gyn-section-title mt-4",children:["Ausgewählte Produkte",g.jsx("br",{"data-loc":"client/src/pages/Homepage.tsx:705"}),g.jsx("em",{"data-loc":"client/src/pages/Homepage.tsx:706",className:"text-blue-italic",children:"für Ihre Praxis"})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:711",className:"home-slider",onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:718",className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",initial:{opacity:0,x:20},animate:{opacity:1,x:0},transition:{duration:.45,ease:[.22,1,.36,1]},children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:726",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:728",className:"gyn-section-label mt-0",children:mt[t].category}),g.jsx("h3",{"data-loc":"client/src/pages/Homepage.tsx:731",className:"home-slider-product-name mt-3",children:mt[t].name}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:734",className:"gyn-divider"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:735",className:"gyn-body-text mb-6",children:mt[t].desc}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:739",className:"space-y-1",children:mt[t].features.map(A=>g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:741",className:"gyn-check-item",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:742",className:"gyn-check-icon","aria-hidden":"true",children:g.jsx(xu,{"data-loc":"client/src/pages/Homepage.tsx:743",className:"w-3 h-3"})}),A]},A))}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:750",className:"flex flex-wrap items-center gap-4 mt-8",children:[mt[t].wizardConfig&&g.jsxs("button",{"data-loc":"client/src/pages/Homepage.tsx:752",className:"gyn-btn-primary inline-flex",onClick:()=>e({configKey:mt[t].wizardConfig,sourceLabel:`Slider – ${mt[t].name}`}),children:["Angebot anfragen",g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:757",className:"w-4 h-4","aria-hidden":"true"})]}),mt[t].href&&g.jsxs(ms,{"data-loc":"client/src/pages/Homepage.tsx:761",href:mt[t].href,className:"gyn-btn-outline-dark inline-flex",children:["Produkt entdecken",g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:763",className:"w-4 h-4","aria-hidden":"true"})]}),g.jsxs("span",{"data-loc":"client/src/pages/Homepage.tsx:766",className:"home-slider-badge-inline",children:[g.jsx(HE,{"data-loc":"client/src/pages/Homepage.tsx:767",className:"w-3.5 h-3.5","aria-hidden":"true"}),mt[t].badge]})]})]}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:774",className:"home-slider-img-wrap",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:776",className:"absolute top-0 right-0",children:g.jsx(SB,{"data-loc":"client/src/pages/Homepage.tsx:777",hersteller:mt[t].hersteller})}),g.jsx("img",{"data-loc":"client/src/pages/Homepage.tsx:779",src:mt[t].img,alt:mt[t].imgAlt,className:"home-slider-img",loading:"lazy"})]})]},t),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:789",className:"home-slider-controls",children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:790",className:"home-slider-dots",children:mt.map((A,U)=>g.jsx("button",{"data-loc":"client/src/pages/Homepage.tsx:792",onClick:()=>a(U),className:`home-slider-dot${U===t?" home-slider-dot--active":""}`,"aria-label":`Produkt ${U+1}: ${mt[U].name}`},U))}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:800",className:"home-slider-arrows",children:[g.jsx("button",{"data-loc":"client/src/pages/Homepage.tsx:801",onClick:()=>a((t-1+mt.length)%mt.length),className:"home-slider-arrow","aria-label":"Vorheriges Produkt",children:g.jsx(vs,{"data-loc":"client/src/pages/Homepage.tsx:806",className:"w-5 h-5 rotate-180","aria-hidden":"true"})}),g.jsxs("span",{"data-loc":"client/src/pages/Homepage.tsx:808",className:"home-slider-counter",children:[t+1," / ",mt.length]}),g.jsx("button",{"data-loc":"client/src/pages/Homepage.tsx:809",onClick:()=>a((t+1)%mt.length),className:"home-slider-arrow","aria-label":"Nächstes Produkt",children:g.jsx(vs,{"data-loc":"client/src/pages/Homepage.tsx:814",className:"w-5 h-5","aria-hidden":"true"})})]})]})]})]})}),g.jsx("section",{"data-loc":"client/src/pages/Homepage.tsx:825",className:"home-ueber-uns-section py-24",children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:826",className:"container",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:829",className:"flex items-center gap-6 pb-8",...fn(0),children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:833",className:"gyn-section-label gyn-section-label--no-margin",children:"ÜBER UNS"}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:836",className:"home-ueber-uns-trennlinie"}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:837",className:"home-ueber-uns-ort",children:"Teltow, Brandenburg"})]}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:841",className:"grid grid-cols-1 lg:grid-cols-12 gap-0",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:844",className:"lg:col-span-5 py-16 lg:py-24 lg:pr-16 home-ueber-uns-linke-spalte",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.8,ease:[.22,1,.36,1]},children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:852",className:"home-ueber-uns-jahreszahl",children:"1989"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:854",className:"home-ueber-uns-gruendung-label",children:"Gegründet in Teltow"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:857",className:"home-ueber-uns-gruendung-text",children:"Seit über 35 Jahren der verlässliche Partner für Arztpraxen in Berlin und Brandenburg."})]}),g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:863",className:"lg:col-span-7 py-16 lg:py-24 lg:pl-16",...fn(.15),children:[g.jsx("h2",{"data-loc":"client/src/pages/Homepage.tsx:867",className:"home-ueber-uns-heading",children:g.jsx("em",{"data-loc":"client/src/pages/Homepage.tsx:868",children:"Persönlich. Verlässlich. Vor Ort."})}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:872",className:"home-ueber-uns-row-list",children:[{label:"Persönlicher Kontakt",text:"Fester Außendienstpartner für jede Praxis – persönlicher Ansprechpartner statt anonymer Hotline, digital dokumentierte Vorgänge."},{label:"Eigenes Lager in Teltow",text:"Kurze Wege, schnelle Verfügbarkeit. Direkt vor den Toren Berlins."},{label:"Zertifizierter Service",text:"Alle Techniker nach MPBetreibV zertifiziert. Qualität ist unser Standard."}].map(A=>g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:878",className:"home-ueber-uns-row",children:[g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:879",className:"home-ueber-uns-row-label",children:A.label}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:880",className:"home-ueber-uns-row-text",children:A.text})]},A.label))}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:885",className:"flex flex-wrap gap-4",children:[g.jsxs(ms,{"data-loc":"client/src/pages/Homepage.tsx:886",href:"/ueber-uns/unser-team",className:"gyn-btn-outline-dark inline-flex",children:["Unser Team kennenlernen",g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:888",className:"w-4 h-4","aria-hidden":"true"})]}),g.jsx(ms,{"data-loc":"client/src/pages/Homepage.tsx:890",href:"/karriere",className:"gyn-btn-outline-dark inline-flex",children:"Karriere bei Stusche"})]}),g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:896",className:"mt-10 pt-8 home-ueber-uns-karriere-teaser",...fn(.35),children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:897",className:"flex flex-col sm:flex-row gap-3",children:[g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:898",className:"flex items-center gap-2 mr-4 flex-shrink-0",children:[g.jsx(gg,{"data-loc":"client/src/pages/Homepage.tsx:899",className:"w-4 h-4 text-blue-500","aria-hidden":"true"}),g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:900",className:"home-ueber-uns-stellen-label",children:"4 offene Stellen"})]}),[{title:"Fahrer & Montagetechniker Medizintechnik (m/w/d)",href:"/karriere/fahrer-montagetechniker"},{title:"Kreditorenbuchhalter (m/w/d)",href:"/karriere/kreditorenbuchhalter"}].map(A=>g.jsxs(ms,{"data-loc":"client/src/pages/Homepage.tsx:906",href:A.href,className:"home-karriere-job-link",children:[g.jsx("span",{"data-loc":"client/src/pages/Homepage.tsx:907",children:A.title}),g.jsx(vs,{"data-loc":"client/src/pages/Homepage.tsx:908",className:"w-4 h-4 flex-shrink-0","aria-hidden":"true"})]},A.title))]})})]})]})]})}),g.jsx("section",{"data-loc":"client/src/pages/Homepage.tsx:920",className:"py-24 bg-navy",children:g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:921",className:"container",children:g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:922",className:"max-w-2xl",...fn(0),children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:923",className:"gyn-section-label gyn-section-label--on-dark",children:"KONTAKT"}),g.jsx("h2",{"data-loc":"client/src/pages/Homepage.tsx:926",className:"gyn-section-title gyn-section-title--on-dark mt-4",children:"Bereit für den nächsten Schritt?"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:929",className:"gyn-section-subtitle gyn-section-subtitle--on-dark mt-4 mb-10",children:"Unser Außendienst kommt zu Ihnen – kostenlos, unverbindlich und auf Ihre Praxis zugeschnitten."}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:932",className:"flex flex-wrap gap-4",children:[g.jsxs("button",{"data-loc":"client/src/pages/Homepage.tsx:933",onClick:()=>e({configKey:"beratung_general",sourceLabel:"Startseite – CTA"}),className:"gyn-btn-primary",children:["Beratungsgespräch vereinbaren",g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:938",className:"w-4 h-4","aria-hidden":"true"})]}),g.jsx(ms,{"data-loc":"client/src/pages/Homepage.tsx:940",href:"/kontakt",className:"gyn-btn-outline inline-flex",children:"Kontakt & Standort"})]})]})})}),g.jsx("section",{"data-loc":"client/src/pages/Homepage.tsx:949",className:"py-24 bg-white",children:g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:950",className:"container",children:g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:951",className:"grid lg:grid-cols-2 gap-16 items-center",children:[g.jsxs(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:952",initial:{opacity:0,x:-30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7},children:[g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:958",className:"gyn-section-label",children:"Katalog 2025/2026"}),g.jsxs("h2",{"data-loc":"client/src/pages/Homepage.tsx:959",className:"gyn-section-title mb-6",children:["Unser Sortiment",g.jsx("br",{"data-loc":"client/src/pages/Homepage.tsx:960"}),g.jsx("em",{"data-loc":"client/src/pages/Homepage.tsx:961",className:"text-blue-italic",children:"im Überblick"})]}),g.jsx("div",{"data-loc":"client/src/pages/Homepage.tsx:963",className:"gyn-divider"}),g.jsx("p",{"data-loc":"client/src/pages/Homepage.tsx:964",className:"gyn-body-text mb-8",children:"Entdecken Sie unser vollständiges Sortiment für Praxisbedarf, Sprechstundenbedarf, Hygienemanagement und Medizintechnik – im Stusche Katalog 2025/2026."}),g.jsxs("div",{"data-loc":"client/src/pages/Homepage.tsx:967",className:"flex flex-wrap gap-3",children:[g.jsx("a",{"data-loc":"client/src/pages/Homepage.tsx:968",href:"https://www.stusche.de/files/stusche_katalog_2025/",target:"_blank",rel:"noopener noreferrer",children:g.jsxs("button",{"data-loc":"client/src/pages/Homepage.tsx:969",className:"gyn-btn-outline-dark",children:["Katalog online blättern ",g.jsx(hn,{"data-loc":"client/src/pages/Homepage.tsx:970",className:"w-3.5 h-3.5","aria-hidden":"true"})]})}),g.jsxs("button",{"data-loc":"client/src/pages/Homepage.tsx:973",className:"gyn-btn-outline-dark",onClick:()=>u(!0),children:[g.jsx(mg,{"data-loc":"client/src/pages/Homepage.tsx:977",className:"w-3.5 h-3.5","aria-hidden":"true"}),"Kostenlos zusenden lassen"]})]})]}),g.jsx(_e.div,{"data-loc":"client/src/pages/Homepage.tsx:982",initial:{opacity:0,x:30},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{duration:.7,delay:.15},className:"flex justify-center",children:g.jsx("a",{"data-loc":"client/src/pages/Homepage.tsx:989",href:"https://www.stusche.de/files/stusche_katalog_2025/",target:"_blank",rel:"noopener noreferrer",className:"block",children:g.jsx("img",{"data-loc":"client/src/pages/Homepage.tsx:990",src:"/images/stusche-katalog-2025_36a4a9c7.webp",alt:"Stusche Katalog 2025/2026",className:"w-80 lg:w-96 object-contain hover:scale-105 transition-transform duration-300",loading:"lazy"})})})]})})}),g.jsx(z_,{"data-loc":"client/src/pages/Homepage.tsx:1002"})]}),g.jsx(bB,{"data-loc":"client/src/pages/Homepage.tsx:1005",open:c,onClose:()=>u(!1)})]})}function Yw(){const[,e]=Vi();return g.jsxs(g.Fragment,{children:[g.jsx(R_,{"data-loc":"client/src/pages/NotFound.tsx:13",title:"Seite nicht gefunden | Stusche GmbH",description:"Die gesuchte Seite existiert nicht mehr oder wurde verschoben. Besuchen Sie unsere Startseite oder kontaktieren Sie uns direkt.",canonical:"/404",noIndex:!0}),g.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"gyn-page",children:[g.jsx(k_,{"data-loc":"client/src/pages/NotFound.tsx:20"}),g.jsxs("main",{"data-loc":"client/src/pages/NotFound.tsx:22",id:"main-content",className:"relative min-h-[80vh] flex items-center justify-center overflow-hidden",style:{background:"var(--stusche-navy-hero, #001a3a)"},children:[g.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:28",className:"absolute inset-0 pointer-events-none","aria-hidden":"true",style:{background:"radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,80,160,0.18) 0%, transparent 70%)"}}),g.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:37",className:"relative z-10 max-w-2xl w-full mx-auto px-6 py-28 text-center",children:[g.jsx(_e.p,{"data-loc":"client/src/pages/NotFound.tsx:39",className:"font-bold leading-none mb-6 select-none",style:{fontSize:"clamp(7rem, 20vw, 12rem)",color:"rgba(255,255,255,0.06)",letterSpacing:"-0.04em",lineHeight:1},initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},"aria-hidden":"true",children:"404"}),g.jsx(_e.h1,{"data-loc":"client/src/pages/NotFound.tsx:56",className:"text-3xl md:text-4xl font-bold text-white mb-4 -mt-8",initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.5,delay:.1},children:"Seite nicht gefunden"}),g.jsx(_e.p,{"data-loc":"client/src/pages/NotFound.tsx:66",className:"text-base md:text-lg mb-10 leading-relaxed",style:{color:"rgba(255,255,255,0.55)"},initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:"Die gesuchte Seite existiert nicht mehr oder wurde verschoben. Möglicherweise haben Sie einen veralteten Link verwendet."}),g.jsxs(_e.div,{"data-loc":"client/src/pages/NotFound.tsx:78",className:"flex flex-col sm:flex-row gap-4 justify-center mb-12",initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},children:[g.jsxs("button",{"data-loc":"client/src/pages/NotFound.tsx:84",onClick:()=>e("/"),className:"gyn-btn-primary inline-flex items-center justify-center gap-2",children:[g.jsx(z6,{"data-loc":"client/src/pages/NotFound.tsx:88",className:"w-4 h-4","aria-hidden":"true"}),"Zur Startseite"]}),g.jsxs("button",{"data-loc":"client/src/pages/NotFound.tsx:92",onClick:()=>history.back(),className:"gyn-btn-outline inline-flex items-center justify-center gap-2",children:[g.jsx(A6,{"data-loc":"client/src/pages/NotFound.tsx:96",className:"w-4 h-4","aria-hidden":"true"}),"Zurück"]})]}),g.jsx(_e.div,{"data-loc":"client/src/pages/NotFound.tsx:102",className:"border-t mb-10",style:{borderColor:"rgba(255,255,255,0.1)"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.4}}),g.jsxs(_e.p,{"data-loc":"client/src/pages/NotFound.tsx:111",className:"text-sm",style:{color:"rgba(255,255,255,0.45)"},initial:{opacity:0},animate:{opacity:1},transition:{duration:.5,delay:.45},children:["Benötigen Sie Hilfe?"," ",g.jsxs("a",{"data-loc":"client/src/pages/NotFound.tsx:119",href:"/kontakt",className:"underline underline-offset-2 transition-colors",style:{color:"rgba(255,255,255,0.7)"},children:[g.jsx(pg,{"data-loc":"client/src/pages/NotFound.tsx:124",className:"w-3.5 h-3.5 inline mr-1 -mt-0.5","aria-hidden":"true"}),"Kontaktieren Sie uns"]})," ","oder rufen Sie uns an:"," ",g.jsxs("a",{"data-loc":"client/src/pages/NotFound.tsx:128",href:"tel:+493328474747",className:"underline underline-offset-2 font-medium transition-colors",style:{color:"rgba(255,255,255,0.85)"},children:[g.jsx(Ra,{"data-loc":"client/src/pages/NotFound.tsx:133",className:"w-3.5 h-3.5 inline mr-1 -mt-0.5","aria-hidden":"true"}),"03328 47 47 47"]})]})]})]}),g.jsx(z_,{"data-loc":"client/src/pages/NotFound.tsx:140"})]})]})}const RB=S.lazy(()=>je(()=>import("./GynaekologieV3-DyJK2u_v.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),DB=S.lazy(()=>je(()=>import("./Praxisbedarf-BqU14Lrf.js"),__vite__mapDeps([7,1,2,6,3,8,9,10,11,12]))),PB=S.lazy(()=>je(()=>import("./Sprechstundenbedarf-4K5giwev.js"),__vite__mapDeps([13,2,11]))),LB=S.lazy(()=>je(()=>import("./TechnischerService-DahR-sE4.js"),__vite__mapDeps([14,1,2,11,15,10]))),BB=S.lazy(()=>je(()=>import("./Praxisplanung-BpQr7Dmk.js"),__vite__mapDeps([16,1,2,17,11]))),HB=S.lazy(()=>je(()=>import("./Praxisportal-P6RdGjoc.js"),__vite__mapDeps([18,1,2,9,11,12,19]))),UB=S.lazy(()=>je(()=>import("./Hygienemanagement-BtwQNPws.js"),__vite__mapDeps([20,1,2,12,4,21,11,22,23,24,19]))),VB=S.lazy(()=>je(()=>import("./Praxisgruendung-BHuU9HMZ.js"),__vite__mapDeps([25,1,2,24,11,12,26,3]))),qB=S.lazy(()=>je(()=>import("./Kontakt-D7geKcv3.js"),__vite__mapDeps([27,28,29]))),KB=S.lazy(()=>je(()=>import("./MediMatic-Dgc9LecP.js"),__vite__mapDeps([30,2,11]))),IB=S.lazy(()=>je(()=>import("./VitalographPneumotrac-CWqjAAq-.js"),__vite__mapDeps([31,2,32,33,34,12]))),$B=S.lazy(()=>je(()=>import("./VitalographAlphaConnect-BJpfCPWd.js"),__vite__mapDeps([35,32,34,33,36,37]))),ZB=S.lazy(()=>je(()=>import("./BosoTM2450-C2VphyTi.js"),__vite__mapDeps([38,2,10,33,36]))),GB=S.lazy(()=>je(()=>import("./MelagVacuklav-CwzOdTF2.js"),__vite__mapDeps([39,2,11,10,17,40]))),FB=S.lazy(()=>je(()=>import("./MieleThermodesinfektor-Dk8OaLQK.js"),__vite__mapDeps([41,2,5,42,12,28,10]))),QB=S.lazy(()=>je(()=>import("./EdanF3Ctg-ir0EEzGu.js"),__vite__mapDeps([43,2,8,34,33,10]))),YB=S.lazy(()=>je(()=>import("./Impressum-Bv6JpxHC.js"),__vite__mapDeps([44,12]))),XB=S.lazy(()=>je(()=>import("./Datenschutz-JYXxc9A0.js"),[])),WB=S.lazy(()=>je(()=>import("./AGB-CXtNZfyr.js"),[])),JB=S.lazy(()=>je(()=>import("./UnserTeam-CW9F8Qod.js"),__vite__mapDeps([45,24,46,6,47,26,11,10,48]))),eH=S.lazy(()=>je(()=>import("./Karriere-C3mOpTDn.js"),__vite__mapDeps([49,1,11,10]))),tH=S.lazy(()=>je(()=>import("./Aufbereitung-BKxrKmCK.js"),__vite__mapDeps([50,1,2,5,4,28,10]))),nH=S.lazy(()=>je(()=>import("./Autoklaven-BhR948mZ.js"),__vite__mapDeps([51,2,11,17,40,33,10]))),aH=S.lazy(()=>je(()=>import("./Thermodesinfektoren-C9qQ5dJW.js"),__vite__mapDeps([52,2,10,5,28,42,11]))),sH=S.lazy(()=>je(()=>import("./Medizintechnik-DETvNEfd.js"),__vite__mapDeps([53,2,32]))),rH=S.lazy(()=>je(()=>import("./OPLeuchten-D7IT8oKc.js"),__vite__mapDeps([54,2,28,47,11,15]))),iH=S.lazy(()=>je(()=>import("./Chirurgie-BJW5W5As.js"),__vite__mapDeps([55,1,2,4]))),oH=S.lazy(()=>je(()=>import("./Kreditorenbuchhalter-BrJrqdH2.js"),__vite__mapDeps([56,10,57,22,4,28,23]))),lH=S.lazy(()=>je(()=>import("./FahrerMontagetechniker-BW0QyZpM.js"),__vite__mapDeps([58,10,57,24,46,22,23,28]))),cH=S.lazy(()=>je(()=>import("./MieleHnoExtra-BSrMv9ZA.js"),__vite__mapDeps([59,2,10,11,3]))),uH=S.lazy(()=>je(()=>import("./Retouren-D9DaqLKw.js"),__vite__mapDeps([60,61,10,12]))),dH=S.lazy(()=>je(()=>import("./GynStuehle-DDI7qUN0.js"),__vite__mapDeps([62,36,63,4]))),fH=S.lazy(()=>je(()=>import("./AdminLogin-GrIrBbx5.js"),__vite__mapDeps([64,65,19,66,47]))),hH=S.lazy(()=>je(()=>import("./AdminPanel-BnN1JeRI.js"),__vite__mapDeps([67,68,65,63,21,19,28,10,69,57,70,71,72,29,73]))),pH=S.lazy(()=>je(()=>import("./GynNewsAdmin-Bw5J4JK7.js"),__vite__mapDeps([74,68,65,63,21,19,28,29,73,72,57,47,66,70]))),mH=S.lazy(()=>je(()=>import("./SearchIndexAdmin-C2QkjWgX.js"),__vite__mapDeps([75,68,65,63,21,19,76,10,12,29,28]))),gH=S.lazy(()=>je(()=>import("./RetourenAdmin-KBGo8tIl.js"),__vite__mapDeps([77,68,65,63,21,19,15,28,61,10,72,47,29,71,73,70]))),yH=S.lazy(()=>je(()=>import("./KatalogBestellungenAdmin-CrRqFXaV.js"),__vite__mapDeps([78,68,65,63,21,19,61,28,69,10]))),vH=S.lazy(()=>je(()=>import("./EmailEinstellungenAdmin-CzZhuyra.js"),__vite__mapDeps([79,68,65,63,21,19,73,72]))),xH=S.lazy(()=>je(()=>import("./EmailLogAdmin-Ds9cjbBf.js"),__vite__mapDeps([80,68,65,63,21,19,28,61,37,70]))),bH=S.lazy(()=>je(()=>import("./SeoReportAdmin-BY6C-VJY.js"),__vite__mapDeps([81,68,65,63,21,19,76,22,29,12,28,10,66,47,72])));function wH(){return g.jsxs("div",{"data-loc":"client/src/App.tsx:64",style:{minHeight:"60vh",display:"flex",alignItems:"center",justifyContent:"center"},children:[g.jsx("div",{"data-loc":"client/src/App.tsx:72",style:{width:32,height:32,border:"3px solid #e5e7eb",borderTopColor:"#0d1b3e",borderRadius:"50%",animation:"spin 0.7s linear infinite"}}),g.jsx("style",{"data-loc":"client/src/App.tsx:82",children:"@keyframes spin{to{transform:rotate(360deg)}}"})]})}PE();function SH(){const[e]=Vi();return S.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}function EH(){const[e]=Vi(),t=S.useRef(null);return S.useEffect(()=>{if(t.current===null){t.current=e;return}if(t.current===e)return;const a=t.current;t.current=e;const r=setTimeout(()=>u4(e,a),120);return()=>clearTimeout(r)},[e]),null}function TH(){return g.jsxs(g.Fragment,{children:[g.jsx(SH,{"data-loc":"client/src/App.tsx:135"}),g.jsx(EH,{"data-loc":"client/src/App.tsx:136"}),g.jsx(S.Suspense,{"data-loc":"client/src/App.tsx:137",fallback:g.jsx(wH,{"data-loc":"client/src/App.tsx:137"}),children:g.jsxs(c4,{"data-loc":"client/src/App.tsx:138",children:[g.jsx(Te,{"data-loc":"client/src/App.tsx:139",path:"/",component:zB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:140",path:"/themenwelten/gynaekologie",component:RB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:141",path:"/leistungen/praxisbedarf",component:DB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:142",path:"/leistungen/sprechstundenbedarf",component:PB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:143",path:"/leistungen/technischer-service",component:LB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:144",path:"/leistungen/praxisplanung",component:BB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:145",path:"/leistungen/praxisgruendung",component:VB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:146",path:"/leistungen/praxisportal",component:HB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:147",path:"/leistungen/hygienemanagement",component:UB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:148",path:"/kontakt",component:qB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:149",path:"/produkte/medi-matic",component:KB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:150",path:"/produkte/vitalograph-pneumotrac",component:IB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:151",path:"/produkte/vitalograph-alpha-connect",component:$B}),g.jsx(Te,{"data-loc":"client/src/App.tsx:152",path:"/produkte/boso-tm-2450",component:ZB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:153",path:"/produkte/melag-vacuklav",component:GB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:154",path:"/produkte/miele-thermodesinfektor",component:FB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:155",path:"/produkte/edan-f3-ctg",component:QB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:156",path:"/impressum",component:YB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:157",path:"/datenschutz",component:XB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:158",path:"/agb",component:WB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:159",path:"/retouren",component:uH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:160",path:"/ueber-uns/unser-team",component:JB}),g.jsx(Te,{"data-loc":"client/src/App.tsx:161",path:"/karriere",component:eH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:162",path:"/themenwelten/aufbereitung",component:tH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:163",path:"/themenwelten/aufbereitung/autoklaven",component:nH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:164",path:"/themenwelten/aufbereitung/thermodesinfektoren",component:aH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:165",path:"/themenwelten/medizintechnik",component:sH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:166",path:"/themenwelten/op-leuchten",component:rH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:167",path:"/themenwelten/chirurgie",component:iH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:168",path:"/themenwelten/gynaekologie/gynstuehle",component:dH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:169",path:"/karriere/kreditorenbuchhalter",component:oH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:170",path:"/karriere/fahrer-montagetechniker",component:lH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:171",path:"/aktionen/miele-hno-extra",component:cH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:172",path:"/admin/login",component:fH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:173",path:"/admin",component:hH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:174",path:"/admin/gyn-news",component:pH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:175",path:"/admin/search-index",component:mH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:176",path:"/admin/retouren",component:gH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:177",path:"/admin/katalog-bestellungen",component:yH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:178",path:"/admin/email-einstellungen",component:vH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:179",path:"/admin/email-log",component:xH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:180",path:"/admin/seo-report",component:bH}),g.jsx(Te,{"data-loc":"client/src/App.tsx:181",path:"/404",component:Yw}),g.jsx(Te,{"data-loc":"client/src/App.tsx:183",component:Yw})]})})]})}function _H(){return g.jsx(G6,{"data-loc":"client/src/App.tsx:192",children:g.jsx(sP,{"data-loc":"client/src/App.tsx:193",defaultTheme:"light",children:g.jsxs(Bz,{"data-loc":"client/src/App.tsx:194",children:[g.jsx(GM,{"data-loc":"client/src/App.tsx:195"}),g.jsx(TH,{"data-loc":"client/src/App.tsx:196"}),g.jsx(J6,{"data-loc":"client/src/App.tsx:197"}),g.jsx(nP,{"data-loc":"client/src/App.tsx:198"})]})})})}const Fu=new xO;Fu.getQueryCache().subscribe(e=>{e.type==="updated"&&e.action.type==="error"&&console.error("[API Query Error]",e.query.state.error)});Fu.getMutationCache().subscribe(e=>{e.type==="updated"&&e.action.type==="error"&&console.error("[API Mutation Error]",e.mutation.state.error)});const AH=Mi.createClient({links:[Oj({url:"/api/trpc",transformer:Ua,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});i5.createRoot(document.getElementById("root")).render(g.jsx($S,{"data-loc":"client/src/main.tsx:42",children:g.jsx(Mi.Provider,{"data-loc":"client/src/main.tsx:43",client:AH,queryClient:Fu,children:g.jsx(wO,{"data-loc":"client/src/main.tsx:44",client:Fu,children:g.jsx(F6,{"data-loc":"client/src/main.tsx:45",children:g.jsx(_H,{"data-loc":"client/src/main.tsx:46"})})})})}));export{k6 as $,hn as A,gd as B,hi as C,U6 as D,Hu as E,_6 as F,UE as G,SB as H,cm as I,uE as J,bB as K,ms as L,pg as M,k_ as N,lE as O,mg as P,QE as Q,H6 as R,R_ as S,Z6 as T,gg as U,h4 as V,$E as W,LE as X,D6 as Y,A6 as Z,mi as _,xB as a,DH as a0,i_ as a1,Q9 as a2,_m as a3,Sl as a4,I6 as a5,C6 as a6,BH as a7,oS as a8,dl as a9,l2 as aa,se as ab,vr as ac,QM as ad,xr as ae,za as af,D2 as ag,Lz as ah,$6 as ai,d4 as aj,pr as ak,B6 as al,IE as am,zH as an,KE as ao,VE as ap,L6 as aq,jH as ar,CH as as,qw as b,Ae as c,hu as d,Vi as e,PH as f,LH as g,xu as h,q6 as i,g as j,z_ as k,j6 as l,_e as m,vs as n,Vu as o,V6 as p,K6 as q,S as r,Ra as s,Mi as t,yd as u,Uu as v,HE as w,M6 as x,qE as y,O6 as z};