PageSourceSearch

https://henrywanderson.com/assets/index-BPrNfH0l.js

js henrywanderson.com collected 2026-10-06 13:23:47 UTC 647,509 bytes, 360 lines download raw bytes

vendor: 27,542 bytes, lines 1-9
1function ej(n,a){for(var l=0;l<a.length;l++){const o=a[l];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in n)){const f=Object.getOwnPropertyDescriptor(o,c);f&&Object.defineProperty(n,c,f.get?f:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function l(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(c){if(c.ep)return;c.ep=!0;const f=l(c);fetch(c.href,f)}})();function eg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xd={exports:{}},Li={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var z0;function tj(){if(z0)return Li;z0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(o,c,f){var m=null;if(f!==void 0&&(m=""+f),c.key!==void 0&&(m=""+c.key),"key"in c){f={};for(var h in c)h!=="key"&&(f[h]=c[h])}else f=c;return c=f.ref,{$$typeof:n,type:o,key:m,ref:c!==void 0?c:null,props:f}}return Li.Fragment=a,Li.jsx=l,Li.jsxs=l,Li}var R0;function nj(){return R0||(R0=1,xd.exports=tj()),xd.exports}var r=nj(),Ba=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},sj={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},aj=class{#t=sj;#e=!1;setTimeoutProvider(n){this.#t=n}setTimeout(n,a){return this.#t.setTimeout(n,a)}clearTimeout(n){this.#t.clearTimeout(n)}setInterval(n,a){return this.#t.setInterval(n,a)}clearInterval(n){this.#t.clearInterval(n)}},Ua=new aj;function rj(n){setTimeout(n,0)}var qa=typeof window>"u"||"Deno"in globalThis;function Lt(){}function ij(n,a){return typeof n=="function"?n(a):n}function Pd(n){return typeof n=="number"&&n>=0&&n!==1/0}function tg(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ta(n,a){return typeof n=="function"?n(a):n}function Nn(n,a){return typeof n=="function"?n(a):n}function k0(n,a){const{type:l="all",exact:o,fetchStatus:c,predicate:f,queryKey:m,stale:h}=n;if(m){if(o){if(a.queryHash!==vf(m,a.options))return!1}else if(!Fi(a.queryKey,m))return!1}if(l!=="all"){const p=a.isActive();if(l==="active"&&!p||l==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||c&&c!==a.state.fetchStatus||f&&!f(a))}function U0(n,a){const{exact:l,status:o,predicate:c,mutationKey:f}=n;if(f){if(!a.options.mutationKey)return!1;if(l){if(ra(a.options.mutationKey)!==ra(f))return!1}else if(!Fi(a.options.mutationKey,f))return!1}return!(o&&a.state.status!==o||c&&!c(a))}function vf(n,a){return(a?.queryKeyHashFn||ra)(n)}function ra(n){return JSON.stringify(n,(a,l)=>Bd(l)?Object.keys(l).sort().reduce((o,c)=>(o[c]=l[c],o),{}):l)}function Fi(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(l=>Fi(n[l],a[l])):!1}var lj=Object.prototype.hasOwnProperty;function yf(n,a){if(n===a)return n;const l=L0(n)&&L0(a);if(!l&&!(Bd(n)&&Bd(a)))return a;const c=(l?n:Object.keys(n)).length,f=l?a:Object.keys(a),m=f.length,h=l?new Array(m):{};let p=0;for(let x=0;x<m;x++){const v=l?x:f[x],b=n[v],j=a[v];if(b===j){h[v]=b,(l?x<c:lj.call(n,v))&&p++;continue}if(b===null||j===null||typeof b!="object"||typeof j!="object"){h[v]=j;continue}const C=yf(b,j);h[v]=C,C===b&&p++}return c===m&&p===c?n:h}function Xi(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const l in n)if(n[l]!==a[l])return!1;return!0}function L0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Bd(n){if(!q0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const l=a.prototype;return!(!q0(l)||!l.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function q0(n){return Object.prototype.toString.call(n)==="[object Object]"}function oj(n){return new Promise(a=>{Ua.setTimeout(a,n)})}function Qd(n,a,l){return typeof l.structuralSharing=="function"?l.structuralSharing(n,a):l.structuralSharing!==!1?yf(n,a):a}function cj(n,a,l=0){const o=[...n,a];return l&&o.length>l?o.slice(1):o}function uj(n,a,l=0){const o=[a,...n];return l&&o.length>l?o.slice(0,-1):o}var dn=Symbol();function ng(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===dn?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function sg(n,a){return typeof n=="function"?n(...a):!!n}var dj=class extends Ba{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!qa&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},jf=new dj;function Gd(){let n,a;const l=new Promise((c,f)=>{n=c,a=f});l.status="pending",l.catch(()=>{});function o(c){Object.assign(l,c),delete l.resolve,delete l.reject}return l.resolve=c=>{o({status:"fulfilled",value:c}),n(c)},l.reject=c=>{o({status:"rejected",reason:c}),a(c)},l}var fj=rj;function mj(){let n=[],a=0,l=h=>{h()},o=h=>{h()},c=fj;const f=h=>{a?n.push(h):c(()=>{l(h)})},m=()=>{const h=n;n=[],h.length&&c(()=>{o(()=>{h.forEach(p=>{l(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||m()}return p},batchCalls:h=>(...p)=>{f(()=>{h(...p)})},schedule:f,setNotifyFunction:h=>{l=h},setBatchNotifyFunction:h=>{o=h},setScheduler:h=>{c=h}}}var dt=mj(),hj=class extends Ba{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!qa&&window.addEventListener){const a=()=>n(!0),l=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",l,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",l)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(l=>{l(n)}))}isOnline(){return this.#t}},ko=new hj;function pj(n){return Math.min(1e3*2**n,3e4)}function ag(n){return(n??"online")==="online"?ko.isOnline():!0}var Yd=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function rg(n){let a=!1,l=0,o;const c=Gd(),f=()=>c.status!=="pending",m=S=>{if(!f()){const U=new Yd(S);j(U),n.onCancel?.(U)}},h=()=>{a=!0},p=()=>{a=!1},x=()=>jf.isFocused()&&(n.networkMode==="always"||ko.isOnline())&&n.canRun(),v=()=>ag(n.networkMode)&&n.canRun(),b=S=>{f()||(o?.(),c.resolve(S))},j=S=>{f()||(o?.(),c.reject(S))},C=()=>new Promise(S=>{o=U=>{(f()||x())&&S(U)},n.onPause?.()}).then(()=>{o=void 0,f()||n.onContinue?.()}),T=()=>{if(f())return;let S;const U=l===0?n.initialPromise:void 0;try{S=U??n.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(b).catch(_=>{if(f())return;const Z=n.retry??(qa?0:3),te=n.retryDelay??pj,oe=typeof te=="function"?te(l,_):te,X=Z===!0||typeof Z=="number"&&l<Z||typeof Z=="function"&&Z(l,_);if(a||!X){j(_);return}l++,n.onFail?.(l,_),oj(oe).then(()=>x()?void 0:C()).then(()=>{a?j(_):T()})})};return{promise:c,status:()=>c.status,cancel:m,continue:()=>(o?.(),c),cancelRetry:h,continueRetry:p,canStart:v,start:()=>(v()?T():C().then(T),c)}}var ig=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Pd(this.gcTime)&&(this.#t=Ua.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(qa?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Ua.clearTimeout(this.#t),this.#t=void 0)}},xj=class extends ig{#t;#e;#n;#a;#s;#r;#l;constructor(n){super(),this.#l=!1,this.#r=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=H0(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(n){if(this.options={...this.#r,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=H0(this.options);a.data!==void 0&&(this.setData(a.data,{updatedAt:a.dataUpdatedAt,manual:!0}),this.#t=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const l=Qd(this.state.data,n,this.options);return this.#i({data:l,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),l}setState(n,a){this.#i({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#s?.promise;return this.#s?.cancel(n),a?a.then(Lt).catch(Lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Nn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ta(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!tg(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#s&&(this.#l?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const l=new AbortController,o=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#l=!0,l.signal)})},c=()=>{const h=ng(this.options,a),x=(()=>{const v={client:this.#a,queryKey:this.queryKey,meta:this.meta};return o(v),v})();return this.#l=!1,this.options.persister?this.options.persister(h,x,this):h(x)},m=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:c};return o(h),h})();this.options.behavior?.onFetch(m,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#i({type:"fetch",meta:m.fetchOptions?.meta}),this.#s=rg({initialPromise:a?.initialPromise,fn:m.fetchFn,onCancel:h=>{h instanceof Yd&&h.revert&&this.setState({...this.#e,fetchStatus:"idle"}),l.abort()},onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0});try{const h=await this.#s.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Yd){if(h.silent)return this.#s.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const a=l=>{switch(n.type){case"failed":return{...l,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...l,fetchStatus:"paused"};case"continue":return{...l,fetchStatus:"fetching"};case"fetch":return{...l,...lg(l.data,this.options),fetchMeta:n.meta??null};case"success":const o={...l,data:n.data,dataUpdateCount:l.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?o:void 0,o;case"error":const c=n.error;return{...l,error:c,errorUpdateCount:l.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:l.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...l,isInvalidated:!0};case"setState":return{...l,...n.state}}};this.state=a(this.state),dt.batch(()=>{this.observers.forEach(l=>{l.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function lg(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ag(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function H0(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,l=a!==void 0,o=l?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:l?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:l?"success":"pending",fetchStatus:"idle"}}var nl=class extends Ba{constructor(n,a){super(),this.options=a,this.#t=n,this.#i=null,this.#l=Gd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#s;#r;#l;#i;#m;#d;#f;#c;#u;#o;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),P0(this.#e,this.options)?this.#h():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vd(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vd(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#j(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,l=this.#e;if(this.options=this.#t.defaultQueryOptions(n),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.#w(),this.#e.setOptions(this.options),a._defaulted&&!Xi(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&B0(this.#e,l,this.options,a)&&this.#h(),this.updateResult(),o&&(this.#e!==l||Nn(this.options.enabled,this.#e)!==Nn(a.enabled,this.#e)||ta(this.options.staleTime,this.#e)!==ta(a.staleTime,this.#e))&&this.#x();const c=this.#g();o&&(this.#e!==l||Nn(this.options.enabled,this.#e)!==Nn(a.enabled,this.#e)||c!==this.#o)&&this.#b(c)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),l=this.createResult(a,n);return bj(this,l)&&(this.#a=l,this.#r=this.options,this.#s=this.#e.state),l}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(l,o)=>(this.trackProp(o),a?.(o),o==="promise"&&!this.options.experimental_prefetchInRender&&this.#l.status==="pending"&&this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(l,o))})}trackProp(n){this.#p.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),l=this.#t.getQueryCache().build(this.#t,a);return l.fetch().then(()=>this.createResult(l,a))}fetch(n){return this.#h({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#h(n){this.#w();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Lt)),a}#x(){this.#y();const n=ta(this.options.staleTime,this.#e);if(qa||this.#a.isStale||!Pd(n))return;const l=tg(this.#a.dataUpdatedAt,n)+1;this.#c=Ua.setTimeout(()=>{this.#a.isStale||this.updateResult()},l)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#b(n){this.#j(),this.#o=n,!(qa||Nn(this.options.enabled,this.#e)===!1||!Pd(this.#o)||this.#o===0)&&(this.#u=Ua.setInterval(()=>{(this.options.refetchIntervalInBackground||jf.isFocused())&&this.#h()},this.#o))}#v(){this.#x(),this.#b(this.#g())}#y(){this.#c&&(Ua.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#u&&(Ua.clearInterval(this.#u),this.#u=void 0)}createResult(n,a){const l=this.#e,o=this.options,c=this.#a,f=this.#s,m=this.#r,p=n!==l?n.state:this.#n,{state:x}=n;let v={...x},b=!1,j;if(a._optimisticResults){const q=this.hasListeners(),ne=!q&&P0(n,a),se=q&&B0(n,l,a,o);(ne||se)&&(v={...v,...lg(x.data,n.options)}),a._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:C,errorUpdatedAt:T,status:S}=v;j=v.data;let U=!1;if(a.placeholderData!==void 0&&j===void 0&&S==="pending"){let q;c?.isPlaceholderData&&a.placeholderData===m?.placeholderData?(q=c.data,U=!0):q=typeof a.placeholderData=="function"?a.placeholderData(this.#f?.state.data,this.#f):a.placeholderData,q!==void 0&&(S="success",j=Qd(c?.data,q,a),b=!0)}if(a.select&&j!==void 0&&!U)if(c&&j===f?.data&&a.select===this.#m)j=this.#d;else try{this.#m=a.select,j=a.select(j),j=Qd(c?.data,j,a),this.#d=j,this.#i=null}catch(q){this.#i=q}this.#i&&(C=this.#i,j=this.#d,T=Date.now(),S="error");const _=v.fetchStatus==="fetching",Z=S==="pending",te=S==="error",oe=Z&&_,X=j!==void 0,z={status:S,fetchStatus:v.fetchStatus,isPending:Z,isSuccess:S==="success",isError:te,isInitialLoading:oe,isLoading:oe,data:j,dataUpdatedAt:v.dataUpdatedAt,error:C,errorUpdatedAt:T,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:_,isRefetching:_&&!Z,isLoadingError:te&&!X,isPaused:v.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:te&&X,isStale:wf(n,a),refetch:this.refetch,promise:this.#l,isEnabled:Nn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const q=K=>{z.status==="error"?K.reject(z.error):z.data!==void 0&&K.resolve(z.data)},ne=()=>{const K=this.#l=z.promise=Gd();q(K)},se=this.#l;switch(se.status){case"pending":n.queryHash===l.queryHash&&q(se);break;case"fulfilled":(z.status==="error"||z.data!==se.value)&&ne();break;case"rejected":(z.status!=="error"||z.error!==se.reason)&&ne();break}}return z}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#r=this.options,this.#s.data!==void 0&&(this.#f=this.#e),Xi(a,n))return;this.#a=a;const l=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!this.#p.size)return!0;const f=new Set(c??this.#p);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(m=>{const h=m;return this.#a[h]!==n[h]&&f.has(h)})};this.#N({listeners:l()})}#w(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#N(n){dt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function gj(n,a){return Nn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function P0(n,a){return gj(n,a)||n.state.data!==void 0&&Vd(n,a,a.refetchOnMount)}function Vd(n,a,l){if(Nn(a.enabled,n)!==!1&&ta(a.staleTime,n)!=="static"){const o=typeof l=="function"?l(n):l;return o==="always"||o!==!1&&wf(n,a)}return!1}function B0(n,a,l,o){return(n!==a||Nn(o.enabled,n)===!1)&&(!l.suspense||n.state.status!=="error")&&wf(n,l)}function wf(n,a){return Nn(a.enabled,n)!==!1&&n.isStaleByTime(ta(a.staleTime,n))}function bj(n,a){return!Xi(n.getCurrentResult(),a)}function Uo(n){return{onFetch:(a,l)=>{const o=a.options,c=a.fetchOptions?.meta?.fetchMore?.direction,f=a.state.data?.pages||[],m=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const x=async()=>{let v=!1;const b=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(a.signal.aborted?v=!0:a.signal.addEventListener("abort",()=>{v=!0}),a.signal)})},j=ng(a.options,a.fetchOptions),C=async(T,S,U)=>{if(v)return Promise.reject();if(S==null&&T.pages.length)return Promise.resolve(T);const Z=(()=>{const F={client:a.client,queryKey:a.queryKey,pageParam:S,direction:U?"backward":"forward",meta:a.options.meta};return b(F),F})(),te=await j(Z),{maxPages:oe}=a.options,X=U?uj:cj;return{pages:X(T.pages,te,oe),pageParams:X(T.pageParams,S,oe)}};if(c&&f.length){const T=c==="backward",S=T?og:Fd,U={pages:f,pageParams:m},_=S(o,U);h=await C(U,_,T)}else{const T=n??f.length;do{const S=p===0?m[0]??o.initialPageParam:Fd(o,h);if(p>0&&S==null)break;h=await C(h,S),p++}while(p<T)}return h};a.options.persister?a.fetchFn=()=>a.options.persister?.(x,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},l):a.fetchFn=x}}}function Fd(n,{pages:a,pageParams:l}){const o=a.length-1;return a.length>0?n.getNextPageParam(a[o],a,l[o],l):void 0}function og(n,{pages:a,pageParams:l}){return a.length>0?n.getPreviousPageParam?.(a[0],a,l[0],l):void 0}function vj(n,a){return a?Fd(n,a)!=null:!1}function yj(n,a){return!a||!n.getPreviousPageParam?!1:og(n,a)!=null}var cg=class extends nl{constructor(n,a){super(n,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:Uo()})}getOptimisticResult(n){return n.behavior=Uo(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,a){const{state:l}=n,o=super.createResult(n,a),{isFetching:c,isRefetching:f,isError:m,isRefetchError:h}=o,p=l.fetchMeta?.fetchMore?.direction,x=m&&p==="forward",v=c&&p==="forward",b=m&&p==="backward",j=c&&p==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:vj(a,l.data),hasPreviousPage:yj(a,l.data),isFetchNextPageError:x,isFetchingNextPage:v,isFetchPreviousPageError:b,isFetchingPreviousPage:j,isRefetchError:h&&!x&&!b,isRefetching:f&&!v&&!j}}},jj=class extends ig{#t;#e;#n;#a;constructor(n){super(),this.#t=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#e=[],this.state=n.state||ug(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(a=>a!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#s({type:"continue"})},l={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=rg({fn:()=>this.options.mutationFn?this.options.mutationFn(n,l):Promise.reject(new Error("No mutationFn found")),onFail:(f,m)=>{this.#s({type:"failed",failureCount:f,error:m})},onPause:()=>{this.#s({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",c=!this.#a.canStart();try{if(o)a();else{this.#s({type:"pending",variables:n,isPaused:c}),await this.#n.config.onMutate?.(n,this,l);const m=await this.options.onMutate?.(n,l);m!==this.state.context&&this.#s({type:"pending",context:m,variables:n,isPaused:c})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,l),await this.options.onSuccess?.(f,n,this.state.context,l),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(f,null,n,this.state.context,l),this.#s({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,n,this.state.context,this,l),await this.options.onError?.(f,n,this.state.context,l),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,l),await this.options.onSettled?.(void 0,f,n,this.state.context,l),f}finally{this.#s({type:"error",error:f})}}finally{this.#n.runNext(this)}}#s(n){const a=l=>{switch(n.type){case"failed":return{...l,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...l,isPaused:!0};case"continue":return{...l,isPaused:!1};case"pending":return{...l,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...l,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...l,data:void 0,error:n.error,failureCount:l.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),dt.batch(()=>{this.#e.forEach(l=>{l.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function ug(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wj=class extends Ba{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,l){const o=new jj({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:l});return this.add(o),o}add(n){this.#t.add(n);const a=jo(n);
9if(typeof a=="string"){const l=this.#e.get(a);l?l.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=jo(n);if(typeof a=="string"){const l=this.#e.get(a);if(l)if(l.length>1){const o=l.indexOf(n);o!==-1&&l.splice(o,1)}else l[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=jo(n);if(typeof a=="string"){const o=this.#e.get(a)?.find(c=>c.state.status==="pending");return!o||o===n}else return!0}runNext(n){const a=jo(n);return typeof a=="string"?this.#e.get(a)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){dt.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(l=>U0(a,l))}findAll(n={}){return this.getAll().filter(a=>U0(n,a))}notify(n){dt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return dt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Lt))))}};function jo(n){return n.options.scope?.id}var Nj=class extends Ba{#t;#e=void 0;#n;#a;constructor(a,l){super(),this.#t=a,this.setOptions(l),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const l=this.options;this.options=this.#t.defaultMutationOptions(a),Xi(this.options,l)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),l?.mutationKey&&this.options.mutationKey&&ra(l.mutationKey)!==ra(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#s(),this.#r(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(a,l){return this.#a=l,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#s(){const a=this.#n?.state??ug();this.#e={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#r(a){dt.batch(()=>{if(this.#a&&this.hasListeners()){const l=this.#e.variables,o=this.#e.context,c={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};a?.type==="success"?(this.#a.onSuccess?.(a.data,l,o,c),this.#a.onSettled?.(a.data,null,l,o,c)):a?.type==="error"&&(this.#a.onError?.(a.error,l,o,c),this.#a.onSettled?.(void 0,a.error,l,o,c))}this.listeners.forEach(l=>{l(this.#e)})})}};function Q0(n,a){const l=new Set(a);return n.filter(o=>!l.has(o))}function Sj(n,a,l){const o=n.slice(0);return o[a]=l,o}var Cj=class extends Ba{#t;#e;#n;#a;#s;#r;#l;#i;#m=[];constructor(n,a,l){super(),this.#t=n,this.#a=l,this.#n=[],this.#s=[],this.#e=[],this.setQueries(a)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(n=>{n.subscribe(a=>{this.#u(n,a)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(n=>{n.destroy()})}setQueries(n,a){this.#n=n,this.#a=a,dt.batch(()=>{const l=this.#s,o=this.#c(this.#n);this.#m=o,o.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const c=o.map(v=>v.observer),f=c.map(v=>v.getCurrentResult()),m=l.length!==c.length,h=c.some((v,b)=>v!==l[b]),p=m||h,x=p?!0:f.some((v,b)=>{const j=this.#e[b];return!j||!Xi(v,j)});!p&&!x||(p&&(this.#s=c),this.#e=f,this.hasListeners()&&(p&&(Q0(l,c).forEach(v=>{v.destroy()}),Q0(c,l).forEach(v=>{v.subscribe(b=>{this.#u(v,b)})})),this.#o()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(n=>n.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(n,a){const l=this.#c(n),o=l.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions));return[o,c=>this.#f(c??o,a),()=>this.#d(o,l)]}#d(n,a){return a.map((l,o)=>{const c=n[o];return l.defaultedQueryOptions.notifyOnChangeProps?c:l.observer.trackResult(c,f=>{a.forEach(m=>{m.observer.trackProp(f)})})})}#f(n,a){return a?((!this.#r||this.#e!==this.#i||a!==this.#l)&&(this.#l=a,this.#i=this.#e,this.#r=yf(this.#r,a(n))
vendor: 14,988 bytes, lines 9-17
9),this.#r):n}#c(n){const a=new Map(this.#s.map(o=>[o.options.queryHash,o])),l=[];return n.forEach(o=>{const c=this.#t.defaultQueryOptions(o),f=a.get(c.queryHash);f?l.push({defaultedQueryOptions:c,observer:f}):l.push({defaultedQueryOptions:c,observer:new nl(this.#t,c)})}),l}#u(n,a){const l=this.#s.indexOf(n);l!==-1&&(this.#e=Sj(this.#e,l,a),this.#o())}#o(){if(this.hasListeners()){const n=this.#r,a=this.#d(this.#e,this.#m),l=this.#f(a,this.#a?.combine);n!==l&&dt.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},Ej=class extends Ba{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,l){const o=a.queryKey,c=a.queryHash??vf(o,a);let f=this.get(c);return f||(f=new xj({client:n,queryKey:o,queryHash:c,options:n.defaultQueryOptions(a),state:l,defaultOptions:n.getQueryDefaults(o)}),this.add(f)),f}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){dt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(l=>k0(a,l))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(l=>k0(n,l)):a}notify(n){dt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){dt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){dt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Oj=class{#t;#e;#n;#a;#s;#r;#l;#i;constructor(n={}){this.#t=n.queryCache||new Ej,this.#e=n.mutationCache||new wj,this.#n=n.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#l=jf.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=ko.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#l?.(),this.#l=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),l=this.#t.build(this,a),o=l.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&l.isStaleByTime(ta(a.staleTime,l))&&this.prefetchQuery(a),Promise.resolve(o))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:l})=>{const o=l.data;return[a,o]})}setQueryData(n,a,l){const o=this.defaultQueryOptions({queryKey:n}),f=this.#t.get(o.queryHash)?.state.data,m=ij(a,f);if(m!==void 0)return this.#t.build(this,o).setData(m,{...l,manual:!0})}setQueriesData(n,a,l){return dt.batch(()=>this.#t.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,a,l)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;dt.batch(()=>{a.findAll(n).forEach(l=>{a.remove(l)})})}resetQueries(n,a){const l=this.#t;return dt.batch(()=>(l.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const l={revert:!0,...a},o=dt.batch(()=>this.#t.findAll(n).map(c=>c.cancel(l)));return Promise.all(o).then(Lt).catch(Lt)}invalidateQueries(n,a={}){return dt.batch(()=>(this.#t.findAll(n).forEach(l=>{l.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const l={...a,cancelRefetch:a.cancelRefetch??!0},o=dt.batch(()=>this.#t.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let f=c.fetch(void 0,l);return l.throwOnError||(f=f.catch(Lt)),c.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(o).then(Lt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const l=this.#t.build(this,a);return l.isStaleByTime(ta(a.staleTime,l))?l.fetch(a):Promise.resolve(l.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Lt).catch(Lt)}fetchInfiniteQuery(n){return n.behavior=Uo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Lt).catch(Lt)}ensureInfiniteQueryData(n){return n.behavior=Uo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ko.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(ra(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],l={};return a.forEach(o=>{Fi(n,o.queryKey)&&Object.assign(l,o.defaultOptions)}),l}setMutationDefaults(n,a){this.#s.set(ra(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#s.values()],l={};return a.forEach(o=>{Fi(n,o.mutationKey)&&Object.assign(l,o.defaultOptions)}),l}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=vf(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===dn&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},gd={exports:{}},Te={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var G0;function Aj(){if(G0)return Te;G0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),j=Symbol.iterator;function C(E){return E===null||typeof E!="object"?null:(E=j&&E[j]||E["@@iterator"],typeof E=="function"?E:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,U={};function _(E,G,k){this.props=E,this.context=G,this.refs=U,this.updater=k||T}_.prototype.isReactComponent={},_.prototype.setState=function(E,G){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,G,"setState")},_.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function Z(){}Z.prototype=_.prototype;function te(E,G,k){this.props=E,this.context=G,this.refs=U,this.updater=k||T}var oe=te.prototype=new Z;oe.constructor=te,S(oe,_.prototype),oe.isPureReactComponent=!0;var X=Array.isArray;function F(){}var z={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function ne(E,G,k){var M=k.ref;return{$$typeof:n,type:E,key:G,ref:M!==void 0?M:null,props:k}}function se(E,G){return ne(E.type,G,E.props)}function K(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function I(E){var G={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(k){return G[k]})}var ce=/\/+/g;function ie(E,G){return typeof E=="object"&&E!==null&&E.key!=null?I(""+E.key):G.toString(36)}function de(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then(F,F):(E.status="pending",E.then(function(G){E.status==="pending"&&(E.status="fulfilled",E.value=G)},function(G){E.status==="pending"&&(E.status="rejected",E.reason=G)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function N(E,G,k,M,Y){var W=typeof E;(W==="undefined"||W==="boolean")&&(E=null);var le=!1;if(E===null)le=!0;else switch(W){case"bigint":case"string":case"number":le=!0;break;case"object":switch(E.$$typeof){case n:case a:le=!0;break;case v:return le=E._init,N(le(E._payload),G,k,M,Y)}}if(le)return Y=Y(E),le=M===""?"."+ie(E,0):M,X(Y)?(k="",le!=null&&(k=le.replace(ce,"$&/")+"/"),N(Y,G,k,"",function(Ie){return Ie})):Y!=null&&(K(Y)&&(Y=se(Y,k+(Y.key==null||E&&E.key===Y.key?"":(""+Y.key).replace(ce,"$&/")+"/")+le)),G.push(Y)),1;le=0;var ue=M===""?".":M+":";if(X(E))for(var ve=0;ve<E.length;ve++)M=E[ve],W=ue+ie(M,ve),le+=N(M,G,k,W,Y);else if(ve=C(E),typeof ve=="function")for(E=ve.call(E),ve=0;!(M=E.next()).done;)M=M.value,W=ue+ie(M,ve++),le+=N(M,G,k,W,Y);else if(W==="object"){if(typeof E.then=="function")return N(de(E),G,k,M,Y);throw G=String(E),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return le}function L(E,G,k){if(E==null)return E;var M=[],Y=0;return N(E,M,"","",function(W){return G.call(k,W,Y++)}),M}function O(E){if(E._status===-1){var G=E._result;G=G(),G.then(function(k){(E._status===0||E._status===-1)&&(E._status=1,E._result=k)},function(k){(E._status===0||E._status===-1)&&(E._status=2,E._result=k)}),E._status===-1&&(E._status=0,E._result=G)}if(E._status===1)return E._result.default;throw E._result}var ae=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof E=="object"&&E!==null&&typeof E.message=="string"?String(E.message):String(E),error:E});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},me={map:L,forEach:function(E,G,k){L(E,function(){G.apply(this,arguments)},k)},count:function(E){var G=0;return L(E,function(){G++}),G},toArray:function(E){return L(E,function(G){return G})||[]},only:function(E){if(!K(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return Te.Activity=b,Te.Children=me,Te.Component=_,Te.Fragment=l,Te.Profiler=c,Te.PureComponent=te,Te.StrictMode=o,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,Te.__COMPILER_RUNTIME={__proto__:null,c:function(E){return z.H.useMemoCache(E)}},Te.cache=function(E){return function(){return E.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(E,G,k){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var M=S({},E.props),Y=E.key;if(G!=null)for(W in G.key!==void 0&&(Y=""+G.key),G)!q.call(G,W)||W==="key"||W==="__self"||W==="__source"||W==="ref"&&G.ref===void 0||(M[W]=G[W]);var W=arguments.length-2;if(W===1)M.children=k;else if(1<W){for(var le=Array(W),ue=0;ue<W;ue++)le[ue]=arguments[ue+2];M.children=le}return ne(E.type,Y,M)},Te.createContext=function(E){return E={$$typeof:m,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},Te.createElement=function(E,G,k){var M,Y={},W=null;if(G!=null)for(M in G.key!==void 0&&(W=""+G.key),G)q.call(G,M)&&M!=="key"&&M!=="__self"&&M!=="__source"&&(Y[M]=G[M]);var le=arguments.length-2;if(le===1)Y.children=k;else if(1<le){for(var ue=Array(le),ve=0;ve<le;ve++)ue[ve]=arguments[ve+2];Y.children=ue}if(E&&E.defaultProps)for(M in le=E.defaultProps,le)Y[M]===void 0&&(Y[M]=le[M]);return ne(E,W,Y)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(E){return{$$typeof:h,render:E}},Te.isValidElement=K,Te.lazy=function(E){return{$$typeof:v,_payload:{_status:-1,_result:E},_init:O}},Te.memo=function(E,G){return{$$typeof:x,type:E,compare:G===void 0?null:G}},Te.startTransition=function(E){var G=z.T,k={};z.T=k;try{var M=E(),Y=z.S;Y!==null&&Y(k,M),typeof M=="object"&&M!==null&&typeof M.then=="function"&&M.then(F,ae)}catch(W){ae(W)}finally{G!==null&&k.types!==null&&(G.types=k.types),z.T=G}},Te.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},Te.use=function(E){return z.H.use(E)},Te.useActionState=function(E,G,k){return z.H.useActionState(E,G,k)},Te.useCallback=function(E,G){return z.H.useCallback(E,G)},Te.useContext=function(E){return z.H.useContext(E)},Te.useDebugValue=function(){},Te.useDeferredValue=function(E,G){return z.H.useDeferredValue(E,G)},Te.useEffect=function(E,G){return z.H.useEffect(E,G)},Te.useEffectEvent=function(E){return z.H.useEffectEvent(E)},Te.useId=function(){return z.H.useId()},Te.useImperativeHandle=function(E,G,k){return z.H.useImperativeHandle(E,G,k)},Te.useInsertionEffect=function(E,G){return z.H.useInsertionEffect(E,G)},Te.useLayoutEffect=function(E,G){return z.H.useLayoutEffect(E,G)},Te.useMemo=function(E,G){return z.H.useMemo(E,G)},Te.useOptimistic=function(E,G){return z.H.useOptimistic(E,G)},Te.useReducer=function(E,G,k){return z.H.useReducer(E,G,k)},Te.useRef=function(E){return z.H.useRef(E)},Te.useState=function(E){return z.H.useState(E)},Te.useSyncExternalStore=function(E,G,k){return z.H.useSyncExternalStore(E,G,k)},Te.useTransition=function(){return z.H.useTransition()},Te.version="19.2.1",Te}var Y0;function Yo(){return Y0||(Y0=1,gd.exports=Aj()),gd.exports}var w=Yo();const fe=eg(w),Nf=ej({__proto__:null,default:fe},[w]);var dg=w.createContext(void 0),sl=n=>{const a=w.useContext(dg);if(n)return n;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},Tj=({client:n,children:a})=>(w.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(dg.Provider,{value:n,children:a})),fg=w.createContext(!1),mg=()=>w.useContext(fg);fg.Provider;function Mj(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var _j=w.createContext(Mj()),hg=()=>w.useContext(_j),pg=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},xg=n=>{w.useEffect(()=>{n.clearReset()},[n])},gg=({result:n,errorResetBoundary:a,throwOnError:l,query:o,suspense:c})=>n.isError&&!a.isReset()&&!n.isFetching&&o&&(c&&n.data===void 0||sg(l,[n.error,o])),Sf=(n,a)=>a.state.data===void 0,bg=n=>{if(n.suspense){const l=c=>c==="static"?c:Math.max(c??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...c)=>l(o(...c)):l(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},vg=(n,a)=>n.isLoading&&n.isFetching&&!a,Xd=(n,a)=>n?.suspense&&a.isPending,Lo=(n,a,l)=>a.fetchOptimistic(n).catch(()=>{l.clearReset()});function yg({queries:n,...a},l){const o=sl(l),c=mg(),f=hg(),m=w.useMemo(()=>n.map(S=>{const U=o.defaultQueryOptions(S);return U._optimisticResults=c?"isRestoring":"optimistic",U}
17),[n,o,c]);m.forEach(S=>{bg(S),pg(S,f)}),xg(f);const[h]=w.useState(()=>new Cj(o,m,a)),[p,x,v]=h.getOptimisticResult(m,a.combine),b=!c&&a.subscribed!==!1;w.useSyncExternalStore(w.useCallback(S=>b?h.subscribe(dt.batchCalls(S)):Lt,[h,b]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),w.useEffect(()=>{h.setQueries(m,a)},[m,a,h]);const C=p.some((S,U)=>Xd(m[U],S))?p.flatMap((S,U)=>{const _=m[U];if(_){const Z=new nl(o,_);if(Xd(_,S))return Lo(_,Z,f);vg(S,c)&&Lo(_,Z,f)}return[]}):[];if(C.length>0)throw Promise.all(C);const T=p.find((S,U)=>{const _=m[U];return _&&gg({result:S,errorResetBoundary:f,throwOnError:_.throwOnError,query:o.getQueryCache().get(_.queryHash),suspense:_.suspense})});if(T?.error)throw T.error;return x(v())}function Vo(n,a,l){const o=mg(),c=hg(),f=sl(l),m=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(m),m._optimisticResults=o?"isRestoring":"optimistic",bg(m),pg(m,c),xg(c);const h=!f.getQueryCache().get(m.queryHash),[p]=w.useState(()=>new a(f,m)),x=p.getOptimisticResult(m),v=!o&&n.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(b=>{const j=v?p.subscribe(dt.batchCalls(b)):Lt;return p.updateResult(),j},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(m)},[m,p]),Xd(m,x))throw Lo(m,p,c);if(gg({result:x,errorResetBoundary:c,throwOnError:m.throwOnError,query:f.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw x.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(m,x),m.experimental_prefetchInRender&&!qa&&vg(x,o)&&(h?Lo(m,p,c):f.getQueryCache().get(m.queryHash)?.promise)?.catch(Lt).finally(()=>{p.updateResult()}),m.notifyOnChangeProps?x:p.trackResult(x)}function Dj(n,a){return Vo(n,nl,a)}function zj(n,a){return Vo({...n,enabled:!0,suspense:!0,throwOnError:Sf,placeholderData:void 0},nl,a)}function Rj(n,a){return Vo({...n,enabled:!0,suspense:!0,throwOnError:Sf},cg,a)}function kj(n,a){return yg({...n,queries:n.queries.map(l=>({...l,suspense:!0,throwOnError:Sf,enabled:!0,placeholderData:void 0}))},a)}function Uj(n,a){const l=sl(a);l.getQueryState(n.queryKey)||l.prefetchQuery(n)}function Lj(n,a){const l=sl(a);l.getQueryState(n.queryKey)||l.prefetchInfiniteQuery(n)}function qj(n,a){const l=sl(a),[o]=w.useState(()=>new Nj(l,n));w.useEffect(()=>{o.setOptions(n)},[o,n]);const c=w.useSyncExternalStore(w.useCallback(m=>o.subscribe(dt.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),f=w.useCallback((m,h)=>{o.mutate(m,h).catch(Lt)},[o]);if(c.error&&sg(o.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:f,mutateAsync:c.mutate}}function Hj(n,a){return Vo(n,cg,a)}function Ha(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const Pj=typeof Symbol=="function"&&!!Symbol.asyncIterator;function jg(n){return Pj&&Ha(n)&&Symbol.asyncIterator in n}var Bj=Object.create,wg=Object.defineProperty,Qj=Object.getOwnPropertyDescriptor,Ng=Object.getOwnPropertyNames,Gj=Object.getPrototypeOf,Yj=Object.prototype.hasOwnProperty,al=(n,a)=>function(){return a||(0,n[Ng(n)[0]])((a={exports:{}}).exports,a),a.exports},Vj=(n,a,l,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(var c=Ng(a),f=0,m=c.length,h;f<m;f++)h=c[f],!Yj.call(n,h)&&h!==l&&wg(n,h,{get:(p=>a[p]).bind(null,h),enumerable:!(o=Qj(a,h))||o.enumerable});return n},Fo=(n,a,l)=>(l=n!=null?Bj(Gj(n)):{},Vj(wg(l,"default",{value:n,enumerable:!0}),n));const Sg=()=>{},V0=n=>{Object.freeze&&Object.freeze(n)};function Cg(n,a,l){var o;const c=a.join(".");return(o=l[c])!==null&&o!==void 0||(l[c]=new Proxy(Sg,{get(f,m){if(!(typeof m!="string"||m==="then"))return Cg(n,[...a,m],l)},apply(f,m,h){const p=a[a.length-1];let x={args:h,path:a};return p==="call"?x={args:h.length>=2?[h[1]]:[],path:a.slice(0,-1)}:p==="apply"&&(x={args:h.length>=2?h[1]:[],path:a.slice(0,-1)}),V0(x.args),V0(x.path),n(x)}})),l[c]}const Xo=n=>Cg(n,[],Object.create(null)),Cf=n=>new Proxy(Sg,{get(a,l){if(l!=="then")return n(l)}});var Eg=al({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function l(o){"@babel/helpers - typeof";return a.exports=l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a.exports.__esModule=!0,a.exports.default=a.exports,l(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Fj=al({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var l=Eg().default;function o(c,f){if(l(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var h=m.call(c,f||"default");if(l(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),Xj=al({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var l=Eg().default,o=Fj();function c(f){var m=o(f,"string");return l(m)=="symbol"?m:m+""}a.exports=c,a.exports.__esModule=!0,a.exports.default=a.exports}}),Og=al({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/
17defineProperty.js"(n,a){var l=Xj();function o(c,f,m){return(f=l(f))in c?Object.defineProperty(c,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[f]=m,c}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),Ef=al({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var l=Og();function o(f,m){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);m&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(f,x).enumerable})),h.push.apply(h,p)}return h}function c(f){for(var m=1;m<arguments.length;m++){var h=arguments[m]!=null?arguments[m]:{};m%2?o(Object(h),!0).forEach(function(p){l(f,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):o(Object(h)).forEach(function(p){Object.defineProperty(f,p,Object.getOwnPropertyDescriptor(h,p))})}return f}a.exports=c,a.exports.__esModule=!0,a.exports.default=a.exports}});Fo(Ef());Fo(Og());var wo=Fo(Ef());function Kj(n,a){if("error"in n){const o=a.deserialize(n.error);return{ok:!1,error:(0,wo.default)((0,wo.default)({},n),{},{error:o})}}return{ok:!0,result:(0,wo.default)((0,wo.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:a.deserialize(n.result.data)})}}var bd=class extends Error{constructor(){super("Unable to transform response from server")}};function Zj(n,a){let l;try{l=Kj(n,a)}catch{throw new bd}if(!l.ok&&(!Ha(l.error.error)||typeof l.error.error.code!="number"))throw new bd;if(l.ok&&!Ha(l.result))throw new bd;return l}Fo(Ef());function Ko(n){const a={subscribe(l){let o=null,c=!1,f=!1,m=!1;function h(){if(o===null){m=!0;return}f||(f=!0,typeof o=="function"?o():o&&o.unsubscribe())}return o=n({next(p){var x;c||(x=l.next)===null||x===void 0||x.call(l,p)},error(p){var x;c||(c=!0,(x=l.error)===null||x===void 0||x.call(l,p),h())},complete(){var p;c||(c=!0,(p=l.complete)===null||p===void 0||p.call(l),h())}}),m&&h(),{unsubscribe:h}},pipe(...l){return l.reduce($j,a)}};return a}function $j(n,a){return a(n)}function Ij(n){const a=new AbortController;return new Promise((o,c)=>{let f=!1;function m(){f||(f=!0,h.unsubscribe())}a.signal.addEventListener("abort",()=>{c(a.signal.reason)});const h=n.subscribe({next(p){f=!0,o(p),m()},error(p){c(p)},complete(){a.abort(),m()}})})}var Jj=Object.create,Ag=Object.defineProperty,Wj=Object.getOwnPropertyDescriptor,Tg=Object.getOwnPropertyNames,e2=Object.getPrototypeOf,t2=Object.prototype.hasOwnProperty,ca=(n,a)=>function(){return a||(0,n[Tg(n)[0]])((a={exports:{}}).exports,a),a.exports},n2=(n,a,l,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(var c=Tg(a),f=0,m=c.length,h;f<m;f++)h=c[f],!t2.call(n,h)&&h!==l&&Ag(n,h,{get:(p=>a[p]).bind(null,h),enumerable:!(o=Wj(a,h))||o.enumerable});return n},Qa=(n,a,l)=>(l=n!=null?Jj(e2(n)):{},n2(a||!n||!n.__esModule?Ag(l,"default",{value:n,enumerable:!0}):l,n)),s2=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,a){function l(o,c){if(o==null)return{};var f={};for(var m in o)if({}.hasOwnProperty.call(o,m)){if(c.includes(m))continue;f[m]=o[m]}return f}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),a2=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,a){var l=s2();function o(c,f){if(c==null)return{};var m,h,p=l(c,f);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(c);for(h=0;h<x.length;h++)m=x[h],f.includes(m)||{}.propertyIsEnumerable.call(c,m)&&(p[m]=c[m])}return p}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),Mg=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function l(o){"@babel/helpers - typeof";return a.exports=l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a.exports.__esModule=!0,a.exports.default=a.exports,l(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),r2=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var l=Mg().default;function o(c,f){if(l(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var h=m.call(c,f||"default");if(l(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),i2=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var l=Mg().default,o=r2();function c(f){var m=o(f,"string");return l(m)=="symbol"?m:m+""}a.exports=c,a.exports.__esModule=!0,a.exports.default=a.exports}}),l2=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/
17defineProperty.js"(n,a){var l=i2();function o(c,f,m){return(f=l(f))in c?Object.defineProperty(c,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[f]=m,c}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),rl=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var l=l2();function o(f,m){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);m&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(f,x).enumerable})),h.push.apply(h,p)}return h}function c(f){for(var m=1;m<arguments.length;m++){var h=arguments[m]!=null?arguments[m]:{};m%2?o(Object(h),!0).forEach(function(p){l(f,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):o(Object(h)).forEach(function(p){Object.defineProperty(f,p,Object.getOwnPropertyDescriptor(h,p))})}return f}a.exports=c,a.exports.__esModule=!0,a.exports.default=a.exports}}),o2=Qa(a2(),1),F0=Qa(rl(),1);const c2=["cursor","direction"];function Qn(n,a,l){const o=n.flatMap(c=>c.split("."));if(!a&&(!l||l==="any"))return o.length?[o]:[];if(l==="infinite"&&Ha(a)&&("direction"in a||"cursor"in a)){const{cursor:c,direction:f}=a,m=(0,o2.default)(a,c2);return[o,{input:m,type:"infinite"}]}return[o,(0,F0.default)((0,F0.default)({},typeof a<"u"&&a!==dn&&{input:a}),l&&l!=="any"&&{type:l})]}function _o(n){return Qn(n,void 0,"any")}var u2=Object.create,_g=Object.defineProperty,d2=Object.getOwnPropertyDescriptor,Dg=Object.getOwnPropertyNames,f2=Object.getPrototypeOf,m2=Object.prototype.hasOwnProperty,Xn=(n,a)=>function(){return a||(0,n[Dg(n)[0]])((a={exports:{}}).exports,a),a.exports},h2=(n,a,l,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(var c=Dg(a),f=0,m=c.length,h;f<m;f++)h=c[f],!m2.call(n,h)&&h!==l&&_g(n,h,{get:(p=>a[p]).bind(null,h),enumerable:!(o=d2(a,h))||o.enumerable});return n},pt=(n,a,l)=>(l=n!=null?u2(f2(n)):{},h2(a||!n||!n.__esModule?_g(l,"default",{value:n,enumerable:!0}):l,n)),zg=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function l(o){"@babel/helpers - typeof";return a.exports=l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},a.exports.__esModule=!0,a.exports.default=a.exports,l(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),p2=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var l=zg().default;function o(c,f){if(l(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var h=m.call(c,f||"default");if(l(h)!="object")return h;throw new TypeError("@@toPrimitive must return a primitive value.")}return(f==="string"?String:Number)(c)}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),x2=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var l=zg().default,o=p2();function c(f){var m=o(f,"string");return l(m)=="symbol"?m:m+""}a.exports=c,a.exports.__esModule=!0,a.exports.default=a.exports}}),Ga=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var l=x2();function o(c,f,m){return(f=l(f))in c?Object.defineProperty(c,f,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[f]=m,c}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),zn=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var l=Ga();function o(f,m){var h=Object.keys(f);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);m&&(p=p.filter(function(x){return Object.getOwnPropertyDescriptor(f,x).enumerable})),h.push.apply(h,p)}return h}function c(f){for(var m=1;m<arguments.length;m++){var h=arguments[m]!=null?arguments[m]:{};
17m%2?o(Object(h),!0).forEach(function(p){l(f,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(h)):o(Object(h)).forEach(function(p){Object.defineProperty(f,p,Object.getOwnPropertyDescriptor(h,p))})}return f}a.exports=c,a.exports.__esModule=!0,a.exports.default=a.exports}});function g2(n){return a=>{let l=0,o=null;const c=[];function f(){o||(o=a.subscribe({next(h){for(const x of c){var p;(p=x.next)===null||p===void 0||p.call(x,h)}},error(h){for(const x of c){var p;(p=x.error)===null||p===void 0||p.call(x,h)}},complete(){for(const p of c){var h;(h=p.complete)===null||h===void 0||h.call(p)}}}))}function m(){if(l===0&&o){const h=o;o=null,h.unsubscribe()}}return Ko(h=>(l++,c.push(h),f(),{unsubscribe(){l--,m();const p=c.findIndex(x=>x===h);p>-1&&c.splice(p,1)}}))}}function b2(n){let a=n;const l=[],o=m=>{a!==void 0&&m.next(a),l.push(m)},c=m=>{l.splice(l.indexOf(m),1)},f=Ko(m=>(o(m),()=>{c(m)}));return f.next=m=>{if(a!==m){a=m;for(const h of l)h.next(m)}},f.get=()=>a,f}function v2(n){return Ko(a=>{function l(c=0,f=n.op){const m=n.links[c];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:f,next(p){return l(c+1,p)}})}return l().subscribe(a)})}var No=pt(Ga(),1),_r=pt(zn(),1);function y2(n){return n instanceof qr}function j2(n){return Ha(n)&&Ha(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function w2(n,a){return typeof n=="string"?n:Ha(n)&&typeof n.message=="string"?n.message:a}var qr=class Do extends Error{constructor(a,l){var o,c;const f=l?.cause;super(a,{cause:f}),(0,No.default)(this,"cause",void 0),(0,No.default)(this,"shape",void 0),(0,No.default)(this,"data",void 0),(0,No.default)(this,"meta",void 0),this.meta=l?.meta,this.cause=f,this.shape=l==null||(o=l.result)===null||o===void 0?void 0:o.error,this.data=l==null||(c=l.result)===null||c===void 0?void 0:c.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Do.prototype)}static from(a,l={}){const o=a;return y2(o)?(l.meta&&(o.meta=(0,_r.default)((0,_r.default)({},o.meta),l.meta)),o):j2(o)?new Do(o.error.message,(0,_r.default)((0,_r.default)({},l),{},{result:o})):new Do(w2(o,"Unknown error"),(0,_r.default)((0,_r.default)({},l),{},{cause:o}))}};function N2(n){const a=n;return a?"input"in a?a:{input:a,output:a}:{input:{serialize:l=>l,deserialize:l=>l},output:{serialize:l=>l,deserialize:l=>l}}}const X0=n=>typeof n=="function";function S2(n){if(n)return n;if(typeof window<"u"&&X0(window.fetch))return window.fetch;if(typeof globalThis<"u"&&X0(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Gi=pt(zn());function C2(n){return{url:n.url.toString(),fetch:n.fetch,transformer:N2(n.transformer),methodOverride:n.methodOverride}}function E2(n){const a={};for(let l=0;l<n.length;l++){const o=n[l];a[l]=o}return a}const O2={query:"GET",mutation:"POST",subscription:"PATCH"};function Rg(n){return"input"in n?n.transformer.input.serialize(n.input):E2(n.inputs.map(a=>n.transformer.input.serialize(a)))}const kg=n=>{const a=n.url.split("?");let o=a[0].replace(/\/$/,"")+"/"+n.path;const c=[];if(a[1]&&c.push(a[1]),"inputs"in n&&c.push("batch=1"),n.type==="query"||n.type==="subscription"){const f=Rg(n);f!==void 0&&n.methodOverride!=="POST"&&c.push(`input=${encodeURIComponent(JSON.stringify(f))}`)}return c.length&&(o+="?"+c.join("&")),o},A2=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const a=Rg(n);return a!==void 0?JSON.stringify(a):void 0},T2=n=>z2((0,Gi.default)((0,Gi.default)({},n),{},{contentTypeHeader:"application/json",getUrl:kg,getBody:A2}));var M2=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const _2=n=>{var a;if(n?.aborted)throw(a=n.throwIfAborted)===null||a===void 0||a.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new M2};async function D2(n){var a;_2(n.signal);const l=n.getUrl(n),o=n.getBody(n),c=(a=n.methodOverride)!==null&&a!==void 0?a:O2[n.type],f=await(async()=>{const h=await n.headers();return Symbol.iterator in h?Object.fromEntries(h):h})(),m=(0,Gi.default)((0,Gi.default)((0,Gi.default)({},n.contentTypeHeader&&c!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),f);return S2(n.fetch)(l,{method:c,signal:n.signal,body:o,headers:m})}async function z2(n){const a={},l=await D2(n);a.response=l;const o=await l.json();return a.responseJSON=o,{json:o,meta:a}}pt(zn(),1);const K0=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Z0(n){let a=null,l=null;const o=()=>{clearTimeout(l),l=null,a=null};function c(h){const p=[[]];let x=0;for(;;){const j=h[x];if(!j)break;const C=p[p.length-1];if(j.aborted){var v;(v=j.reject)===null||v===void 0||v.call(j,new Error("Aborted")),x++;continue}if(n.validate(C.concat(j).map(S=>S.key))){C.push(j),x++;continue}if(C.length===0){var b;(b=j.reject)===null||b===void 0||b.call(j,new Error("Input is too big for a single dispatch")),x++;continue}p.push([])}return p}function f(){const h=c(a);o();
17for(const p of h){if(!p.length)continue;const x={items:p};for(const b of p)b.batch=x;n.fetch(x.items.map(b=>b.key)).then(async b=>{await Promise.all(b.map(async(C,T)=>{const S=x.items[T];try{var U;const Z=await Promise.resolve(C);(U=S.resolve)===null||U===void 0||U.call(S,Z)}catch(Z){var _;(_=S.reject)===null||_===void 0||_.call(S,Z)}S.batch=null,S.reject=null,S.resolve=null}));for(const C of x.items){var j;(j=C.reject)===null||j===void 0||j.call(C,new Error("Missing result")),C.batch=null}}).catch(b=>{for(const C of x.items){var j;(j=C.reject)===null||j===void 0||j.call(C,b),C.batch=null}})}}function m(h){var p;const x={aborted:!1,key:h,batch:null,resolve:K0,reject:K0},v=new Promise((b,j)=>{var C;x.reject=j,x.resolve=b,(C=a)!==null&&C!==void 0||(a=[]),a.push(x)});return(p=l)!==null&&p!==void 0||(l=setTimeout(f)),v}return{load:m}}function R2(...n){const a=new AbortController,l=n.length;let o=0;const c=()=>{++o===l&&a.abort()};for(const f of n)f?.aborted?c():f?.addEventListener("abort",c,{once:!0});return a.signal}var So=pt(zn(),1);function k2(n){var a,l;const o=C2(n),c=(a=n.maxURLLength)!==null&&a!==void 0?a:1/0,f=(l=n.maxItems)!==null&&l!==void 0?l:1/0;return()=>{const m=v=>({validate(b){if(c===1/0&&f===1/0)return!0;if(b.length>f)return!1;const j=b.map(S=>S.path).join(","),C=b.map(S=>S.input);return kg((0,So.default)((0,So.default)({},o),{},{type:v,path:j,inputs:C,signal:null})).length<=c},async fetch(b){const j=b.map(Z=>Z.path).join(","),C=b.map(Z=>Z.input),T=R2(...b.map(Z=>Z.signal)),S=await T2((0,So.default)((0,So.default)({},o),{},{path:j,inputs:C,type:v,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:b}):n.headers:{}},signal:T}));return(Array.isArray(S.json)?S.json:b.map(()=>S.json)).map(Z=>({meta:S.meta,json:Z}))}}),h=Z0(m("query")),p=Z0(m("mutation")),x={query:h,mutation:p};return({op:v})=>Ko(b=>{/* istanbul ignore if -- @preserve */if(v.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const C=x[v.type].load(v);let T;return C.then(S=>{T=S;const U=Zj(S.json,o.transformer.output);if(!U.ok){b.error(qr.from(U.error,{meta:S.meta}));return}b.next({context:S.meta,result:U.result}),b.complete()}).catch(S=>{b.error(qr.from(S,{meta:T?.meta}))}),()=>{}})}}pt(zn(),1);const Ug=(n,...a)=>typeof n=="function"?n(...a):n;pt(Ga(),1);function U2(){let n,a;return{promise:new Promise((o,c)=>{n=o,a=c}),resolve:n,reject:a}}async function L2(n){const a=await Ug(n.url);if(!n.connectionParams)return a;const o=`${a.includes("?")?"&":"?"}connectionParams=1`;return a+o}async function q2(n){const a={method:"connectionParams",data:await Ug(n)};return JSON.stringify(a)}pt(Ga(),1);var Ra=pt(Ga(),1);function H2(n){const{promise:a,resolve:l,reject:o}=U2();return n.addEventListener("open",()=>{n.removeEventListener("error",o),l()}),n.addEventListener("error",o),a}function P2(n,{intervalMs:a,pongTimeoutMs:l}){let o,c;function f(){o=setTimeout(()=>{n.send("PING"),c=setTimeout(()=>{n.close()},l)},a)}function m(){clearTimeout(o),f()}function h(){clearTimeout(c),m()}n.addEventListener("open",f),n.addEventListener("message",({data:p})=>{clearTimeout(o),f(),p==="PONG"&&h()}),n.addEventListener("close",()=>{clearTimeout(o),clearTimeout(c)})}var B2=class Kd{constructor(a){var l;if((0,Ra.default)(this,"id",++Kd.connectCount),(0,Ra.default)(this,"WebSocketPonyfill",void 0),(0,Ra.default)(this,"urlOptions",void 0),(0,Ra.default)(this,"keepAliveOpts",void 0),(0,Ra.default)(this,"wsObservable",b2(null)),(0,Ra.default)(this,"openPromise",null),this.WebSocketPonyfill=(l=a.WebSocketPonyfill)!==null&&l!==void 0?l: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=a.urlOptions,this.keepAliveOpts=a.keepAlive}get ws(){return this.wsObservable.get()}set ws(a){this.wsObservable.next(a)}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 a=this;if(a.openPromise)return a.openPromise;a.id=++Kd.connectCount;const l=L2(a.urlOptions).then(o=>new a.WebSocketPonyfill(o));a.openPromise=l.then(async o=>{a.ws=o,o.addEventListener("message",function({data:c}){c==="PING"&&this.send("PONG")}),a.keepAliveOpts.enabled&&P2(o,a.keepAliveOpts),o.addEventListener("close",()=>{a.ws===o&&(a.ws=null)}),await H2(o),a.urlOptions.connectionParams&&o.send(await q2(a.urlOptions.connectionParams))});try{await a.openPromise}finally{a.openPromise=null}}async close(){var a=this;try{await a.openPromise}finally{var l;
17(l=a.ws)===null||l===void 0||l.close()}}};(0,Ra.default)(B2,"connectCount",0);pt(Ga(),1);pt(zn(),1);var vd=pt(Ga(),1),$0=pt(zn(),1),Zo=class{constructor(n){(0,vd.default)(this,"links",void 0),(0,vd.default)(this,"runtime",void 0),(0,vd.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(a=>a(this.runtime))}$request(n){var a;return v2({links:this.links,op:(0,$0.default)((0,$0.default)({},n),{},{context:(a=n.context)!==null&&a!==void 0?a:{},id:++this.requestId})}).pipe(g2())}async requestAsPromise(n){var a=this;try{const l=a.$request(n);return(await Ij(l)).result.data}catch(l){throw qr.from(l)}}query(n,a,l){return this.requestAsPromise({type:"query",path:n,input:a,context:l?.context,signal:l?.signal})}mutation(n,a,l){return this.requestAsPromise({type:"mutation",path:n,input:a,context:l?.context,signal:l?.signal})}subscription(n,a,l){return this.$request({type:"subscription",path:n,input:a,context:l.context,signal:l.signal}).subscribe({next(c){switch(c.result.type){case"state":{var f;(f=l.onConnectionStateChange)===null||f===void 0||f.call(l,c.result);break}case"started":{var m;(m=l.onStarted)===null||m===void 0||m.call(l,{context:c.context});break}case"stopped":{var h;(h=l.onStopped)===null||h===void 0||h.call(l);break}case"data":case void 0:{var p;(p=l.onData)===null||p===void 0||p.call(l,c.result.data);break}}},error(c){var f;(f=l.onError)===null||f===void 0||f.call(l,c)},complete(){var c;(c=l.onComplete)===null||c===void 0||c.call(l)}})}};const Lg=Symbol.for("trpc_untypedClient"),Q2={query:"query",mutate:"mutation",subscribe:"subscription"},G2=n=>Q2[n];function qg(n){const a=Xo(({path:l,args:o})=>{const c=[...l],f=G2(c.pop()),m=c.join(".");return n[f](m,...o)});return Cf(l=>l===Lg?n:a[l])}function Y2(n){const a=new Zo(n);return qg(a)}function Of(n){return n[Lg]}pt(zn(),1);pt(zn(),1);var V2=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function l(c){var f,m,h,p=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,h=Symbol.iterator);p--;){if(m&&(f=c[m])!=null)return f.call(c);if(h&&(f=c[h])!=null)return new o(f.call(c));m="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function o(c){function f(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var h=m.done;return Promise.resolve(m.value).then(function(p){return{value:p,done:h}})}return o=function(h){this.s=h,this.n=h.next},o.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var p=this.s.return;return p===void 0?Promise.resolve({value:h,done:!0}):f(p.apply(this.s,arguments))},throw:function(h){var p=this.s.return;return p===void 0?Promise.reject(h):f(p.apply(this.s,arguments))}},new o(c)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}});pt(V2(),1);pt(zn(),1);var F2=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,a){function l(){var o=typeof SuppressedError=="function"?SuppressedError:function(h,p){var x=Error();return x.name="SuppressedError",x.error=h,x.suppressed=p,x},c={},f=[];function m(h,p){if(p!=null){if(Object(p)!==p)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(h)var x=p[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(x===void 0&&(x=p[Symbol.dispose||Symbol.for("Symbol.dispose")],h))var v=x;if(typeof x!="function")throw new TypeError("Object is not disposable.");v&&(x=function(){try{v.call(p)}catch(j){return Promise.reject(j)}}),f.push({v:p,d:x,a:h})}else h&&f.push({d:p,a:h});return p}return{e:c,u:m.bind(null,!1),a:m.bind(null,!0),d:function(){var p,x=this.e,v=0;function b(){for(;p=f.pop();)try{if(!p.a&&v===1)return v=0,f.push(p),Promise.resolve().then(b);if(p.d){var C=p.d.call(p.v);if(p.a)return v|=2,Promise.resolve(C).then(b,j)}else v|=1}catch(T){return j(T)}if(v===1)return x!==c?Promise.reject(x):Promise.resolve();if(x!==c)throw x}function j(C){return x=x!==c?new o(C,x):C,b()}return b()}}}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Hg=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,a){function l(o,c){this.v=o,this.k=c}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),X2=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,a){var l=Hg();function o(c){return new l(c,0)}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),K2=Xn({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,a){var l=Hg();function o(f){return function(){return new c(f.apply(this,arguments))}}function c(f){var m,h;function p(v,b){try{var j=f[v](b),C=j.value,T=C instanceof l;Promise.resolve(T?C.v:C).then(function(S){if(T){var U=v==="return"?"return":"next";if(!C.k||S.done)return p(U,S);S=f[U](S).value}x(j.done?"return":"normal",S)}
17,function(S){p("throw",S)})}catch(S){x("throw",S)}}function x(v,b){switch(v){case"return":m.resolve({value:b,done:!0});break;case"throw":m.reject(b);break;default:m.resolve({value:b,done:!1})}(m=m.next)?p(m.key,m.arg):h=null}this._invoke=function(v,b){return new Promise(function(j,C){var T={key:v,arg:b,resolve:j,reject:C,next:null};h?h=h.next=T:(m=h=T,p(v,b))})},typeof f.return!="function"&&(this.return=void 0)}c.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(f){return this._invoke("next",f)},c.prototype.throw=function(f){return this._invoke("throw",f)},c.prototype.return=function(f){return this._invoke("return",f)},a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}});pt(F2(),1);pt(X2(),1);pt(K2(),1);pt(zn(),1);function Z2(n){return Xo(({path:a,args:l})=>{var o;const c=[...a],f=c.pop();if(f==="useMutation")return n[f](c,...l);if(f==="_def")return{path:c};const[m,...h]=l,p=(o=h[0])!==null&&o!==void 0?o:{};return n[f](c,m,p)})}var yd;const $2=["client","ssrContext","ssrState","abortOnUnmount"],I2=(yd=w.createContext)===null||yd===void 0?void 0:yd.call(Nf,null),J2=n=>{switch(n){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 W2(n){return Xo(a=>{const l=[...a.path],o=l.pop(),c=[...a.args],f=c.shift(),m=J2(o),h=Qn(l,f,m);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(l,h,c[0]),queryOptions:()=>n.queryOptions(l,h,...c),fetch:()=>n.fetchQuery(h,...c),fetchInfinite:()=>n.fetchInfiniteQuery(h,c[0]),prefetch:()=>n.prefetchQuery(h,...c),prefetchInfinite:()=>n.prefetchInfiniteQuery(h,c[0]),ensureData:()=>n.ensureQueryData(h,...c),invalidate:()=>n.invalidateQueries(h,...c),reset:()=>n.resetQueries(h,...c),refetch:()=>n.refetchQueries(h,...c),cancel:()=>n.cancelQuery(h,...c),setData:()=>{n.setQueryData(h,c[0],c[1])},setQueriesData:()=>n.setQueriesData(h,c[0],c[1],c[2]),setInfiniteData:()=>{n.setInfiniteQueryData(h,c[0],c[1])},getData:()=>n.getQueryData(h),getInfiniteData:()=>n.getInfiniteQueryData(h),setMutationDefaults:()=>n.setMutationDefaults(_o(l),f),getMutationDefaults:()=>n.getMutationDefaults(_o(l)),isMutating:()=>n.isMutating({mutationKey:_o(l)})}[o]()})}function ew(n){const a=qg(n.client),l=W2(n);return Cf(o=>{const c=o;return c==="client"?a:$2.includes(c)?n[c]:l[o]})}var tw=Qa(rl(),1);function I0(n){const a=n instanceof Zo?n:Of(n);return Xo(l=>{const o=l.path,c=o.join("."),[f,m]=l.args;return(0,tw.default)({queryKey:Qn(o,f,"query"),queryFn:()=>a.query(c,f,m?.trpc)},m)})}var jd=Qa(rl(),1);function Pt(n,a,l){var o;const c=n[0];let f=(o=n[1])===null||o===void 0?void 0:o.input;if(l){var m;f=(0,jd.default)((0,jd.default)((0,jd.default)({},(m=f)!==null&&m!==void 0?m:{}),l.pageParam?{cursor:l.pageParam}:{}),{},{direction:l.direction})}return[c.join("."),f,a?.trpc]}var nw=ca({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function l(c){var f,m,h,p=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,h=Symbol.iterator);p--;){if(m&&(f=c[m])!=null)return f.call(c);if(h&&(f=c[h])!=null)return new o(f.call(c));m="@@asyncIterator",h="@@iterator"}throw new TypeError("Object is not async iterable")}function o(c){function f(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var h=m.done;return Promise.resolve(m.value).then(function(p){return{value:p,done:h}})}return o=function(h){this.s=h,this.n=h.next},o.prototype={s:null,n:null,next:function(){return f(this.n.apply(this.s,arguments))},return:function(h){var p=this.s.return;return p===void 0?Promise.resolve({value:h,done:!0}):f(p.apply(this.s,arguments))},throw:function(h){var p=this.s.return;return p===void 0?Promise.reject(h):f(p.apply(this.s,arguments))}},new o(c)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),sw=Qa(nw(),1);function Zd(n){return{path:n.path.join(".")}}function qi(n){const a=Zd(n);return w.useMemo(()=>a,[a])}async function Pg(n,a,l){const c=a.getQueryCache().build(a,{queryKey:l});c.setState({data:[],status:"success"});const f=[];var m=!1,h=!1,p;try{for(var x=(0,sw.default)(n),v;m=!(v=await x.next()).done;m=!1){const b=v.value;f.push(b),c.setState({data:[...f]})}}catch(b){h=!0,p=b}finally{try{m&&x.return!=null&&await x.return()}finally{if(h)throw p}}return f}var Ye=Qa(rl(),1);function aw(n){const{client:a,queryClient:l}=n,o=a instanceof Zo?a:Of(a);return{infiniteQueryOptions:(c,f,m)=>{var h,p;const x=((h=f[1])===null||h===void 0?void 0:h.input)===dn,v=async b=>{var j;const C=(0,Ye.default)((0,Ye.default)({},m),{},{trpc:(0,Ye.default)((0,Ye.default)({},m?.trpc),!(m==null||(j=m.trpc)===null||j===void 0)&&j.abortOnUnmount?{signal:b.signal}:{signal:null})});return await o.query(...Pt(f,C,{direction:b.direction,pageParam:b.pageParam}))};return Object.assign((0,Ye.default)((0,Ye.default)({},m),{},{initialData:m?.initialData,queryKey:f,queryFn:x?dn:v,initialPageParam:(p=m?.initialCursor)!==null&&p!==void 0?p:null}),{trpc:Zd({path:c})})},queryOptions:(c,f,m)=>{var h;const p=((h=f[1])===null||h===void 0?void 0:h.input)===dn,x=async v=>{var b;const j=(0,Ye.default)((0,Ye.default)({},m),{},{trpc:(0,Ye.default)((0,Ye.default)({},m?.trpc),!(m==null||(b=m.trpc)===null||b===void 0)&&b.abortOnUnmount?{signal:v.signal}:{signal:null})}),C=await o.query(...Pt(f,j));return jg(C)?Pg(C,l,f):C};return Object.assign((0,Ye.default)((0,Ye.default)({},m),{},{initialData:m?.initialData,queryKey:f,queryFn:p?dn:x}),{trpc:Zd({path:c})})},fetchQuery:(c,f)=>l.fetchQuery((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c,queryFn:()=>o.query(...Pt(c,f))})),fetchInfiniteQuery:(c,f)=>{var m;return l.fetchInfiniteQuery((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c,queryFn:({pageParam:h,direction:p})=>o.query(...Pt(c,f,{pageParam:h,direction:p})),initialPageParam:(m=f?.initialCursor)!==null&&m!==void 0?m:null}))},prefetchQuery:(c,f)=>l.prefetchQuery((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c,queryFn:()=>o.query(...Pt(c,f))})),prefetchInfiniteQuery:(c,f)=>{var m;return l.prefetchInfiniteQuery((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c,queryFn:({pageParam:h,direction:p})=>o.query(...Pt(c,f,{pageParam:h,direction:p})),initialPageParam:(m=f?.initialCursor)!==null&&m!==void 0?m:null}))},ensureQueryData:(c,f)=>l.ensureQueryData((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c,queryFn:()=>o.query(...Pt(c,f))})),invalidateQueries:(c,f,m)=>l.invalidateQueries((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c}),m),resetQueries:(c,f,m)=>l.resetQueries((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c}),m),refetchQueries:(c,f,m)=>l.refetchQueries((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c}),m),cancelQuery:(c,f)=>l.cancelQueries({queryKey:c},f),setQueryData:(c,f,m)=>l.setQueryData(c,f,m),setQueriesData:(c,f,m,h)=>l.setQueriesData((0,Ye.default)((0,Ye.default)({},f),{},{queryKey:c}),m,h),getQueryData:c=>l.getQueryData(c),setInfiniteQueryData:(c,f,m)=>l.setQueryData(c,f,m),getInfiniteQueryData:c=>l.getQueryData(c),setMutationDefaults:(c,f)=>{const m=c[0],h=p=>o.mutation(...Pt([m,{input:p}],n));return l.setMutationDefaults(c,typeof f=="function"?f({canonicalMutationFn:h}):f)},getMutationDefaults:c=>l.getMutationDefaults(c),isMutating:c=>l.isMutating((0,Ye.default)((0,Ye.default)({},c),{},{exact:!0}))}}var he=Qa(rl());const J0=(n,a)=>new Proxy(n,{get(o,c){return a(c),o[c]}});function rw(n){var a,l;const o=(a=void 0)!==null&&a!==void 0?a:X=>X.originalFn(),c=(l=void 0)!==null&&l!==void 0?l:I2,f=Y2,m=X=>{var F;const{abortOnUnmount:z=!1,queryClient:q,ssrContext:ne}=X,[se,K]=w.useState((F=X.ssrState)!==null&&F!==void 0?F:!1),I=X.client instanceof Zo?X.client:Of(X.client),ce=w.useMemo(()=>aw({client:I,queryClient:q}),[I,q]),ie=w.useMemo(()=>(0,he.default)({abortOnUnmount:z,queryClient:q,client:I,ssrContext:ne??null,ssrState:se},ce),[z,I,ce,q,ne,se]);return w.useEffect(()=>{K(de=>de?"mounted":!1)},[]),r.jsx(c.Provider,{value:ie,children:X.children})};function h(){const X=w.useContext(c);if(!X)throw new Error("Unable to find tRPC Context. Did you forget to wrap your Ap
17p inside `withTRPC` HoC?");return X}function p(X,F){var z;const{queryClient:q,ssrState:ne}=h();return ne&&ne!=="mounted"&&((z=q.getQueryCache().find({queryKey:X}))===null||z===void 0?void 0:z.state.status)==="error"?(0,he.default)({retryOnMount:!1},F):F}function x(X,F,z){var q,ne,se,K,I;const ce=h(),{abortOnUnmount:ie,client:de,ssrState:N,queryClient:L,prefetchQuery:O}=ce,ae=Qn(X,F,"query"),me=L.getQueryDefaults(ae),E=F===dn;typeof window>"u"&&N==="prepass"&&(z==null||(q=z.trpc)===null||q===void 0?void 0:q.ssr)!==!1&&((ne=z?.enabled)!==null&&ne!==void 0?ne:me?.enabled)!==!1&&!E&&!L.getQueryCache().find({queryKey:ae})&&O(ae,z);const G=p(ae,(0,he.default)((0,he.default)({},me),z)),k=(se=(K=z==null||(I=z.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&K!==void 0?K:void 0)!==null&&se!==void 0?se:ie,M=Dj((0,he.default)((0,he.default)({},G),{},{queryKey:ae,queryFn:E?F:async Y=>{const W=(0,he.default)((0,he.default)({},G),{},{trpc:(0,he.default)((0,he.default)({},G?.trpc),k?{signal:Y.signal}:{signal:null})}),le=await de.query(...Pt(ae,W));return jg(le)?Pg(le,L,ae):le}}),L);return M.trpc=qi({path:X}),M}function v(X,F,z){var q,ne,se;const K=h(),I=Qn(X,F,"query"),ce=F===dn,ie=(q=(ne=z==null||(se=z.trpc)===null||se===void 0?void 0:se.abortOnUnmount)!==null&&ne!==void 0?ne:void 0)!==null&&q!==void 0?q:K.abortOnUnmount;Uj((0,he.default)((0,he.default)({},z),{},{queryKey:I,queryFn:ce?F:de=>{const N={trpc:(0,he.default)((0,he.default)({},z?.trpc),ie?{signal:de.signal}:{})};return K.client.query(...Pt(I,N))}}))}function b(X,F,z){var q,ne,se;const K=h(),I=Qn(X,F,"query"),ce=(q=(ne=z==null||(se=z.trpc)===null||se===void 0?void 0:se.abortOnUnmount)!==null&&ne!==void 0?ne:void 0)!==null&&q!==void 0?q:K.abortOnUnmount,ie=zj((0,he.default)((0,he.default)({},z),{},{queryKey:I,queryFn:de=>{const N=(0,he.default)((0,he.default)({},z),{},{trpc:(0,he.default)((0,he.default)({},z?.trpc),ce?{signal:de.signal}:{signal:null})});return K.client.query(...Pt(I,N))}}),K.queryClient);return ie.trpc=qi({path:X}),[ie.data,ie]}function j(X,F){const{client:z,queryClient:q}=h(),ne=_o(X),se=q.defaultMutationOptions(q.getMutationDefaults(ne)),K=qj((0,he.default)((0,he.default)({},F),{},{mutationKey:ne,mutationFn:I=>z.mutation(...Pt([X,{input:I}],F)),onSuccess(...I){var ce,ie;return o({originalFn:()=>{var N,L,O;return(N=F==null||(L=F.onSuccess)===null||L===void 0?void 0:L.call(F,...I))!==null&&N!==void 0?N:se==null||(O=se.onSuccess)===null||O===void 0?void 0:O.call(se,...I)},queryClient:q,meta:(ce=(ie=F?.meta)!==null&&ie!==void 0?ie:se?.meta)!==null&&ce!==void 0?ce:{}})}}),q);return K.trpc=qi({path:X}),K}const C={data:void 0,error:null,status:"idle"},T={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function S(X,F,z){var q;const ne=(q=z?.enabled)!==null&&q!==void 0?q:F!==dn,se=ra(Qn(X,F,"any")),{client:K}=h(),I=w.useRef(z);w.useEffect(()=>{I.current=z});const[ce]=w.useState(new Set([])),ie=w.useCallback(E=>{ce.add(E)},[ce]),de=w.useRef(null),N=w.useCallback(E=>{const G=O.current,k=O.current=E(G);let M=!1;for(const Y of ce)if(G[Y]!==k[Y]){M=!0;break}M&&me(J0(k,ie))},[ie,ce]),L=w.useCallback(()=>{var E;if((E=de.current)===null||E===void 0||E.unsubscribe(),!ne){N(()=>(0,he.default)((0,he.default)({},C),{},{reset:L}));return}N(()=>(0,he.default)((0,he.default)({},T),{},{reset:L}));const G=K.subscription(X.join("."),F??void 0,{onStarted:()=>{var k,M;(k=(M=I.current).onStarted)===null||k===void 0||k.call(M),N(Y=>(0,he.default)((0,he.default)({},Y),{},{status:"pending",error:null}))},onData:k=>{var M,Y;(M=(Y=I.current).onData)===null||M===void 0||M.call(Y,k),N(W=>(0,he.default)((0,he.default)({},W),{},{status:"pending",data:k,error:null}))},onError:k=>{var M,Y;(M=(Y=I.current).onError)===null||M===void 0||M.call(Y,k),N(W=>(0,he.default)((0,he.default)({},W),{},{status:"error",error:k}))},onConnectionStateChange:k=>{N(M=>{switch(k.state){case"idle":return(0,he.default)((0,he.default)({},M),{},{status:k.state,error:null,data:void 0});case"connecting":return(0,he.default)((0,he.default)({},M),{},{error:k.error,status:k.state});
17case"pending":return M}})},onComplete:()=>{var k,M;(k=(M=I.current).onComplete)===null||k===void 0||k.call(M),N(Y=>(0,he.default)((0,he.default)({},Y),{},{status:"idle",error:null,data:void 0}))}});de.current=G},[K,se,ne,N]);w.useEffect(()=>(L(),()=>{var E;(E=de.current)===null||E===void 0||E.unsubscribe()}),[L]);const O=w.useRef(ne?(0,he.default)((0,he.default)({},T),{},{reset:L}):(0,he.default)((0,he.default)({},C),{},{reset:L})),[ae,me]=w.useState(J0(O.current,ie));return ae}function U(X,F,z){var q,ne,se,K,I;const{client:ce,ssrState:ie,prefetchInfiniteQuery:de,queryClient:N,abortOnUnmount:L}=h(),O=Qn(X,F,"infinite"),ae=N.getQueryDefaults(O),me=F===dn;typeof window>"u"&&ie==="prepass"&&(z==null||(q=z.trpc)===null||q===void 0?void 0:q.ssr)!==!1&&((ne=z?.enabled)!==null&&ne!==void 0?ne:ae?.enabled)!==!1&&!me&&!N.getQueryCache().find({queryKey:O})&&de(O,(0,he.default)((0,he.default)({},ae),z));const E=p(O,(0,he.default)((0,he.default)({},ae),z)),G=(se=z==null||(K=z.trpc)===null||K===void 0?void 0:K.abortOnUnmount)!==null&&se!==void 0?se:L,k=Hj((0,he.default)((0,he.default)({},E),{},{initialPageParam:(I=z.initialCursor)!==null&&I!==void 0?I:null,persister:z.persister,queryKey:O,queryFn:me?F:M=>{var Y;const W=(0,he.default)((0,he.default)({},E),{},{trpc:(0,he.default)((0,he.default)({},E?.trpc),G?{signal:M.signal}:{signal:null})});return ce.query(...Pt(O,W,{pageParam:(Y=M.pageParam)!==null&&Y!==void 0?Y:z.initialCursor,direction:M.direction}))}}),N);return k.trpc=qi({path:X}),k}function _(X,F,z){var q,ne,se;const K=h(),I=Qn(X,F,"infinite"),ce=K.queryClient.getQueryDefaults(I),ie=F===dn,de=p(I,(0,he.default)((0,he.default)({},ce),z)),N=(q=z==null||(ne=z.trpc)===null||ne===void 0?void 0:ne.abortOnUnmount)!==null&&q!==void 0?q:K.abortOnUnmount;Lj((0,he.default)((0,he.default)({},z),{},{initialPageParam:(se=z.initialCursor)!==null&&se!==void 0?se:null,queryKey:I,queryFn:ie?F:L=>{var O;const ae=(0,he.default)((0,he.default)({},de),{},{trpc:(0,he.default)((0,he.default)({},de?.trpc),N?{signal:L.signal}:{})});return K.client.query(...Pt(I,ae,{pageParam:(O=L.pageParam)!==null&&O!==void 0?O:z.initialCursor,direction:L.direction}))}}))}function Z(X,F,z){var q,ne,se;const K=h(),I=Qn(X,F,"infinite"),ce=K.queryClient.getQueryDefaults(I),ie=p(I,(0,he.default)((0,he.default)({},ce),z)),de=(q=z==null||(ne=z.trpc)===null||ne===void 0?void 0:ne.abortOnUnmount)!==null&&q!==void 0?q:K.abortOnUnmount,N=Rj((0,he.default)((0,he.default)({},z),{},{initialPageParam:(se=z.initialCursor)!==null&&se!==void 0?se:null,queryKey:I,queryFn:L=>{var O;const ae=(0,he.default)((0,he.default)({},ie),{},{trpc:(0,he.default)((0,he.default)({},ie?.trpc),de?{signal:L.signal}:{})});return K.client.query(...Pt(I,ae,{pageParam:(O=L.pageParam)!==null&&O!==void 0?O:z.initialCursor,direction:L.direction}))}}),K.queryClient);return N.trpc=qi({path:X}),[N.data,N]}return{Provider:m,createClient:f,useContext:h,useUtils:h,useQuery:x,usePrefetchQuery:v,useSuspenseQuery:b,useQueries:(X,F)=>{const{ssrState:z,queryClient:q,prefetchQuery:ne,client:se}=h(),K=I0(se),I=X(K);if(typeof window>"u"&&z==="prepass")for(const ie of I){var ce;const de=ie;((ce=de.trpc)===null||ce===void 0?void 0:ce.ssr)!==!1&&!q.getQueryCache().find({queryKey:de.queryKey})&&ne(de.queryKey,de)}return yg({queries:I.map(ie=>(0,he.default)((0,he.default)({},ie),{},{queryKey:ie.queryKey})),combine:F?.combine},q)},useSuspenseQueries:X=>{const{queryClient:F,client:z}=h(),q=I0(z),ne=X(q),se=kj({queries:ne.map(K=>(0,he.default)((0,he.default)({},K),{},{queryFn:K.queryFn,queryKey:K.queryKey}))},F);return[se.map(K=>K.data),se]},useMutation:j,useSubscription:S,useInfiniteQuery:U,usePrefetchInfiniteQuery:_,useSuspenseInfiniteQuery:Z}}function iw(n){const a=Z2(n);return Cf(l=>l==="useContext"||l==="useUtils"?()=>{const o=n.useUtils();return w.useMemo(()=>ew(o),[o])}:n.hasOwnProperty(l)?n[l]:a[l])}function lw(n){const a=rw();return iw(a)}const je=lw(),ow="app_session_id",cw="Please login (10001)";var wd={exports:{}},Hi={},Nd={exports:{}},Sd={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var W0;function uw(){return W0||(W0=1,(function(n){function a(N,L){var O=N.length;N.push(L);e:for(;0<O;){var ae=O-1>>>1,me=N[ae];if(0<c(me,L))N[ae]=L,N[O]=me,O=ae;else break e}}function l(N){return N.length===0?null:N[0]}function o(N){if(N.length===0)return null;var L=N[0],O=N.pop();if(O!==L){N[0]=O;e:for(var ae=0,me=N.length,E=me>>>1;ae<E;){var G=2*(ae+1)-1,k=N[G],M=G+1,Y=N[M];if(0>c(k,O))M<me&&0>c(Y,k)?(N[ae]=Y,N[M]=O,ae=M):(N[ae]=k,N[G]=O,ae=G);else if(M<me&&0>c(Y,O))N[ae]=Y,N[M]=O,ae=M;else break e}}return L}function c(N,L){var O=N.sortIndex-L.sortIndex;return O!==0?O:N.id-L.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var m=Date,h=m.now();n.unstable_now=function(){return m.now()-h}}var p=[],x=[],v=1,b=null,j=3,C=!1,T=!1,S=!1,U=!1,_=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,te=typeof setImmediate<"u"?setImmediate:null;function oe(N){for(var L=l(x);L!==null;){if(L.callback===null)o(x);else if(L.startTime<=N)o(x),L.sortIndex=L.expirationTime,a(p,L);else break;L=l(x)}}function X(N){if(S=!1,oe(N),!T)if(l(p)!==null)T=!0,F||(F=!0,I());else{var L=l(x);L!==null&&de(X,L.startTime-N)}}var F=!1,z=-1,q=5,ne=-1;function se(){return U?!0:!(n.unstable_now()-ne<q)}function K(){if(U=!1,F){var N=n.unstable_now();ne=N;var L=!0;try{e:{T=!1,S&&(S=!1,Z(z),z=-1),C=!0;var O=j;try{t:{for(oe(N),b=l(p);b!==null&&!(b.expirationTime>N&&se());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,j=b.priorityLevel;var me=ae(b.expirationTime<=N);if(N=n.unstable_now(),typeof me=="function"){b.callback=me,oe(N),L=!0;break t}b===l(p)&&o(p),oe(N)}else o(p);b=l(p)}if(b!==null)L=!0;else{var E=l(x);E!==null&&de(X,E.startTime-N),L=!1}}break e}finally{b=null,j=O,C=!1}L=void 0}}finally{L?I():F=!1}}}var I;if(typeof te=="function")I=function(){te(K)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,ie=ce.port2;ce.port1.onmessage=K,I=function(){ie.postMessage(null)}}else I=function(){_(K,0)};
vendor: 9,442 bytes, lines 25-41
25function de(N,L){z=_(function(){N(n.unstable_now())},L)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(N){N.callback=null},n.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<N?Math.floor(1e3/N):5},n.unstable_getCurrentPriorityLevel=function(){return j},n.unstable_next=function(N){switch(j){case 1:case 2:case 3:var L=3;break;default:L=j}var O=j;j=L;try{return N()}finally{j=O}},n.unstable_requestPaint=function(){U=!0},n.unstable_runWithPriority=function(N,L){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var O=j;j=N;try{return L()}finally{j=O}},n.unstable_scheduleCallback=function(N,L,O){var ae=n.unstable_now();switch(typeof O=="object"&&O!==null?(O=O.delay,O=typeof O=="number"&&0<O?ae+O:ae):O=ae,N){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=O+me,N={id:v++,callback:L,priorityLevel:N,startTime:O,expirationTime:me,sortIndex:-1},O>ae?(N.sortIndex=O,a(x,N),l(p)===null&&N===l(x)&&(S?(Z(z),z=-1):S=!0,de(X,O-ae))):(N.sortIndex=me,a(p,N),T||C||(T=!0,F||(F=!0,I()))),N},n.unstable_shouldYield=se,n.unstable_wrapCallback=function(N){var L=j;return function(){var O=j;j=L;try{return N.apply(this,arguments)}finally{j=O}}}})(Sd)),Sd}var ex;function dw(){return ex||(ex=1,Nd.exports=uw()),Nd.exports}var Cd={exports:{}},Ut={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var tx;function fw(){if(tx)return Ut;tx=1;var n=Yo();function a(p){var x="https://react.dev/errors/"+p;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)x+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(){}var o={d:{f:l,r:function(){throw Error(a(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,x,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:b==null?null:""+b,children:p,containerInfo:x,implementation:v}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,x){if(p==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Ut.createPortal=function(p,x){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(a(299));return f(p,x,null,v)},Ut.flushSync=function(p){var x=m.T,v=o.p;try{if(m.T=null,o.p=2,p)return p()}finally{m.T=x,o.p=v,o.d.f()}},Ut.preconnect=function(p,x){typeof p=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(p,x))},Ut.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},Ut.preinit=function(p,x){if(typeof p=="string"&&x&&typeof x.as=="string"){var v=x.as,b=h(v,x.crossOrigin),j=typeof x.integrity=="string"?x.integrity:void 0,C=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;v==="style"?o.d.S(p,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:b,integrity:j,fetchPriority:C}):v==="script"&&o.d.X(p,{crossOrigin:b,integrity:j,fetchPriority:C,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},Ut.preinitModule=function(p,x){if(typeof p=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var v=h(x.as,x.crossOrigin);o.d.M(p,{crossOrigin:v,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(p)},Ut.preload=function(p,x){if(typeof p=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var v=x.as,b=h(v,x.crossOrigin);o.d.L(p,v,{crossOrigin:b,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},Ut.preloadModule=function(p,x){if(typeof p=="string")if(x){var v=h(x.as,x.crossOrigin);o.d.m(p,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:v,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(p)},Ut.requestFormReset=function(p){o.d.r(p)},Ut.unstable_batchedUpdates=function(p,x){return p(x)},Ut.useFormState=function(p,x,v){return m.H.useFormState(p,x,v)},Ut.useFormStatus=function(){return m.H.useHostTransitionStatus()},Ut.version="19.2.1",Ut}var nx;function Bg(){if(nx)return Cd.exports;nx=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Cd.exports=fw(),Cd.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var sx;function mw(){if(sx)return Hi;sx=1;var n=dw(),a=Yo(),l=Bg();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var s=e,i=t;;){var u=s.return;if(u===null)break;var d=u.alternate;if(d===null){if(i=u.return,i!==null){s=i;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===s)return p(u),e;if(d===i)return p(u),t;d=d.sibling}throw Error(o(188))}if(s.return!==i.return)s=u,i=d;else{for(var g=!1,y=u.child;y;){if(y===s){g=!0,s=u,i=d;break}if(y===i){g=!0,i=u,s=d;break}y=y.sibling}if(!g){for(y=d.child;y;){if(y===s){g=!0,s=d,i=u;break}if(y===i){g=!0,i=d,s=u;break}y=y.sibling}if(!g)throw Error(o(189))}}if(s.alternate!==i)throw Error(o(190))}if(s.tag!==3)throw Error(o(188));return s.stateNode.current===s?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,j=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),U=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),te=Symbol.for("react.context"),oe=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),se=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function I(e){return e===null||typeof e!="object"?null:(e=K&&e[K]||e["@@iterator"],typeof e=="function"?e:null)}var ce=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ce?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case _:return"Profiler";case U:return"StrictMode";case X:return"Suspense";case F:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case te:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case oe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var de=Array.isArray,N=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O={pending:!1,data:null,method:null,action:null},ae=[],me=-1;function E(e){return{current:e}}function G(e){0>me||(e.current=ae[me],ae[me]=null,me--)}function k(e,t){me++,ae[me]=e.current,e.current=t}var M=E(null),Y=E(null),W=E(null),le=E(null);function ue(e,t){switch(k(W,t),k(Y,e),k(M,null),t.nodeType){case 9:case 11:e=(e
vendor: 11,600 bytes, lines 41-48
41=t.documentElement)&&(e=e.namespaceURI)?n0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=n0(t),e=s0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(M),k(M,e)}function ve(){G(M),G(Y),G(W)}function Ie(e){e.memoizedState!==null&&k(le,e);var t=M.current,s=s0(t,e.type);t!==s&&(k(Y,e),k(M,s))}function lt(e){Y.current===e&&(G(M),G(Y)),le.current===e&&(G(le),zi._currentValue=O)}var et,zt;function B(e){if(et===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);et=t&&t[1]||"",zt=-1<s.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+et+e+zt}var Re=!1;function Sn(e,t){if(!e||Re)return"";Re=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(V){var Q=V}Reflect.construct(e,[],ee)}else{try{ee.call()}catch(V){Q=V}e.call(ee.prototype)}}else{try{throw Error()}catch(V){Q=V}(ee=e())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(V){if(V&&Q&&typeof V.stack=="string")return[V.stack,Q.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=i.DetermineComponentFrameRoot(),g=d[0],y=d[1];if(g&&y){var A=g.split(`
44`),P=y.split(`
45`);for(u=i=0;i<A.length&&!A[i].includes("DetermineComponentFrameRoot");)i++;for(;u<P.length&&!P[u].includes("DetermineComponentFrameRoot");)u++;if(i===A.length||u===P.length)for(i=A.length-1,u=P.length-1;1<=i&&0<=u&&A[i]!==P[u];)u--;for(;1<=i&&0<=u;i--,u--)if(A[i]!==P[u]){if(i!==1||u!==1)do if(i--,u--,0>u||A[i]!==P[u]){var $=`
46`+A[i].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),$}while(1<=i&&0<=u);break}}}finally{Re=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?B(s):""}function Zn(e,t){switch(e.tag){case 26:case 27:case 5:return B(e.type);case 16:return B("Lazy");case 13:return e.child!==t&&t!==null?B("Suspense Fallback"):B("Suspense");case 19:return B("SuspenseList");case 0:case 15:return Sn(e.type,!1);case 11:return Sn(e.type.render,!1);case 1:return Sn(e.type,!0);case 31:return B("Activity");default:return""}}function $n(e){try{var t="",s=null;do t+=Zn(e,s),s=e,e=e.return;while(e);return t}catch(i){return`
47Error generating stack: `+i.message+`
48`+i.stack}}var qt=Object.prototype.hasOwnProperty,da=n.unstable_scheduleCallback,fa=n.unstable_cancelCallback,Ot=n.unstable_shouldYield,Wt=n.unstable_requestPaint,wt=n.unstable_now,Xr=n.unstable_getCurrentPriorityLevel,In=n.unstable_ImmediatePriority,Ya=n.unstable_UserBlockingPriority,Jn=n.unstable_NormalPriority,Cn=n.unstable_LowPriority,re=n.unstable_IdlePriority,pe=n.log,Ne=n.unstable_setDisableYieldValue,rt=null,Je=null;function Rt(e){if(typeof pe=="function"&&Ne(e),Je&&typeof Je.setStrictMode=="function")try{Je.setStrictMode(rt,e)}catch{}}var ft=Math.clz32?Math.clz32:Bt,en=Math.log,Wn=Math.LN2;function Bt(e){return e>>>=0,e===0?32:31-(en(e)/Wn|0)|0}var tn=256,Va=262144,ma=4194304;function kn(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Oe(e,t,s){var i=e.pendingLanes;if(i===0)return 0;var u=0,d=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~d,i!==0?u=kn(i):(g&=y,g!==0?u=kn(g):s||(s=y&~e,s!==0&&(u=kn(s))))):(y=i&~d,y!==0?u=kn(y):g!==0?u=kn(g):s||(s=i&~e,s!==0&&(u=kn(s)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,s=t&-t,d>=s||d===32&&(s&4194048)!==0)?t:u}function st(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Nt(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 kt(){var e=ma;return ma<<=1,(ma&62914560)===0&&(ma=4194304),e}function Os(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qt(e,t,s,i,u,d){var g=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var y=e.entanglements,A=e.expirationTimes,P=e.hiddenUpdates;for(s=g&~s;0<s;){var $=31-ft(s),ee=1<<$;y[$]=0,A[$]=-1;var Q=P[$];if(Q!==null)for(P[$]=null,$=0;$<Q.length;$++){var V=Q[$];V!==null&&(V.lane&=-536870913)}s&=~ee}i!==0&&ha(e,i,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(g&~t))}function ha(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-ft(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|s&261930}function Gt(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var i=31-ft(s),u=1<<i;u&t|e[i]&t&&(e[i]|=t),s&=~u}}function Yt(e,t){var s=t&-t;return s=(s&42)!==0?1:Fa(s),(s&(e.suspendedLanes|t))!==0?0:s}function Fa(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function En(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function ic(){var e=L.p;return e!==0?e:(e=window.event,e===void 0?32:E0(e.type))}function Qf(e,t){var s=L.p;try{return L.p=e,t()}finally{L.p=s}}var As=Math.random().toString(36).slice(2),At="__reactFiber$"+As,Vt="__reactProps$"+As,Xa="__reactContainer$"+As,lc="__reactEvents$"+As,Gv="__reactListeners$"+As,Yv="__reactHandles$"+As,Gf="__reactResources$"+As,Kr="__reactMarker$"+As;function oc(e){delete e[At],delete e[Vt],delete e[lc],delete e[Gv],delete e[Yv]}function Ka(e){var t=e[At];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Xa]||s[At]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=u0(e);e!==null;){if(s=e[At])return s;e=u0(e)}return t}e=s,s=e.parentNode}return null}function Za(e){if(e=e[At]||e[Xa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Zr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function $a(e){var t=e[Gf];return t||(t=e[Gf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function St(e){e[Kr]=!0}var Yf=new Set,Vf={};function pa(e,t){Ia(e,t),Ia(e+"Capture",t)}function Ia(e,t){for(Vf[e]=t,e=0;e<t.length;e++)Yf.add(t[e])}var Vv=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]*$"),Ff={},Xf={};function Fv(e){return qt.call(Xf,e)?!0:qt.call(Ff,e)?!1:Vv.test(e)?Xf[e]=!0:(Ff[e]=!0,!1)}function ol(e,t,s){if(Fv(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function cl(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function es(e,t,s,i){if(i===null)e.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+i)}}function mn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xv(e,t,s){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,d=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){s=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(g){s=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function cc(e){if(!e._valueTracker){var t=Kf(e)?"checked":"value";e._valueTracker=Xv(e,t,""+e[t])}}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),i="";return e&&(i=Kf(e)?e.checked?"true":"false":e.value),e=i,e!==s?(t.setValue(e),!0):!1}function ul(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Kv=/[\n"\\]/g;function hn(e){return e.replace(Kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function uc(e,t,s,i,u,d,g,y){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),t!=null?g==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+mn(t)):e.value!==""+mn(t)&&(e.value=""+mn(t)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),t!=null?dc(e,g,mn(t)):s!=null?dc(e,g,mn(s)):i!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+mn(y):e.removeAttribute("name")}function $f(e,t,s,i,u,d,g,y){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||s!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){cc(e);return}s=s!=null?""+mn(s):"",t=t!=null?""+mn(t):s,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),cc(e)}function dc(e,t,s){t==="number"&&ul(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function Ja(e,t,s,i){if(e=e.options,t){t={};for(var u=0;u<s.length;u++)t["$"+s[u]]=!0;for(s=0;s<e.length;s++)u=t.hasOwnProperty("$"+e[s].value),e[s].selected!==u&&(e[s].selected=u),u&&i&&(e[s].defaultSelected=!0)}else{for(s=""+mn(s),t=null,u=0;u<e.length;u++){if(e[u].value===s){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}
vendor: 4,574 bytes, line 48
48function If(e,t,s){if(t!=null&&(t=""+mn(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+mn(s):""}function Jf(e,t,s,i){if(t==null){if(i!=null){if(s!=null)throw Error(o(92));if(de(i)){if(1<i.length)throw Error(o(93));i=i[0]}s=i}s==null&&(s=""),t=s}s=mn(t),e.defaultValue=s,i=e.textContent,i===s&&i!==""&&i!==null&&(e.value=i),cc(e)}function Wa(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var Zv=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 Wf(e,t,s){var i=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,s):typeof s!="number"||s===0||Zv.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function em(e,t,s){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,s!=null){for(var i in s)!s.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&s[u]!==i&&Wf(e,u,i)}else for(var d in t)t.hasOwnProperty(d)&&Wf(e,d,t[d])}function fc(e){if(e.indexOf("-")===-1)return!1;switch(e){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 $v=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
48-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"]]),Iv=/^[\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 dl(e){return Iv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ts(){}var mc=null;function hc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var er=null,tr=null;function tm(e){var t=Za(e);if(t&&(e=t.stateNode)){var s=e[Vt]||null;e:switch(e=t.stateNode,t.type){case"input":if(uc(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+hn(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var i=s[t];if(i!==e&&i.form===e.form){var u=i[Vt]||null;if(!u)throw Error(o(90));uc(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<s.length;t++)i=s[t],i.form===e.form&&Zf(i)}break e;case"textarea":If(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&Ja(e,!!s.multiple,t,!1)}}}var pc=!1;function nm(e,t,s){if(pc)return e(t,s);pc=!0;try{var i=e(t);return i}finally{if(pc=!1,(er!==null||tr!==null)&&(Jl(),er&&(t=er,e=tr,tr=er=null,tm(t),e)))for(t=0;t<e.length;t++)tm(e[t])}}function $r(e,t){var s=e.stateNode;if(s===null)return null;var i=s[Vt]||null;if(i===null)return null;s=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(o(231,t,typeof s));return s}var ns=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xc=!1;if(ns)try{var Ir={};Object.defineProperty(Ir,"passive",{get:function(){xc=!0}}),window.addEventListener("test",Ir,Ir),window.removeEventListener("test",Ir,Ir)}catch{xc=!1}var Ts=null,gc=null,fl=null;
vendor: 4,902 bytes, line 48
48function sm(){if(fl)return fl;var e,t=gc,s=t.length,i,u="value"in Ts?Ts.value:Ts.textContent,d=u.length;for(e=0;e<s&&t[e]===u[e];e++);var g=s-e;for(i=1;i<=g&&t[s-i]===u[d-i];i++);return fl=u.slice(e,1<i?1-i:void 0)}function ml(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function hl(){return!0}function am(){return!1}function Ft(e){function t(s,i,u,d,g){this._reactName=s,this._targetInst=u,this.type=i,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(s=e[y],this[y]=s?s(d):d[y]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?hl:am,this.isPropagationStopped=am,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=hl)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=hl)},persist:function(){},isPersistent:hl}),t}var xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pl=Ft(xa),Jr=b({},xa,{view:0,detail:0}),Jv=Ft(Jr),bc,vc,Wr,xl=b({},Jr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Wr&&(Wr&&e.type==="mousemove"?(bc=e.screenX-Wr.screenX,vc=e.screenY-Wr.screenY):vc=bc=0,Wr=e),bc)},movementY:function(e){return"movementY"in e?e.movementY:vc}}),rm=Ft(xl),Wv=b({},xl,{dataTransfer:0}),ey=Ft(Wv),ty=b({},Jr,{relatedTarget:0}),yc=Ft(ty),ny=b({},xa,{animationName:0,elapsedTime:0,pseudoElement:0}),sy=Ft(ny),ay=b({},xa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ry=Ft(ay),iy=b({},xa,{data:0}),im=Ft(iy),ly={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oy={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"},cy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cy[e])?!!t[e]:!1}function jc(){return uy}var dy=b({},Jr,{key:function(e){if(e.key){var t=ly[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ml(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jc,charCode:function(e){return e.type==="keypress"?ml(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ml(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),fy=Ft(dy),my=b({},xl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),lm=Ft(my),hy=b({},Jr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jc}),py=Ft(hy),xy=b({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),gy=Ft(xy),by=b({},xl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vy=Ft(by),yy=b({},xa,{newState:0,oldState:0}),jy=Ft(yy),wy=[9,13,27,32],wc=ns&&"CompositionEvent"in window,ei=null;ns&&"documentMode"in document&&(ei=document.documentMode);var Ny=ns&&"TextEvent"in window&&!ei,om=ns&&(!wc||ei&&8<ei&&11>=ei),cm=" ",um=!1;function dm(e,t){switch(e){case"keyup":return wy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nr=!1;function Sy(e,t){switch(e){case"compositionend":return fm(t);case"keypress":return t.which!==32?null:(um=!0,cm);case"textInput":return e=t.data,e===cm&&um?null:e;default:return null}}function Cy(e,t){if(nr)return e==="compositionend"||!wc&&dm(e,t)?(e=sm(),fl=g
vendor: 6,226 bytes, line 48
48c=Ts=null,nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return om&&t.locale!=="ko"?null:t.data;default:return null}}var Ey={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 mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ey[e.type]:t==="textarea"}function hm(e,t,s,i){er?tr?tr.push(i):tr=[i]:er=i,t=ro(t,"onChange"),0<t.length&&(s=new pl("onChange","change",null,s,i),e.push({event:s,listeners:t}))}var ti=null,ni=null;function Oy(e){$p(e,0)}function gl(e){var t=Zr(e);if(Zf(t))return e}function pm(e,t){if(e==="change")return t}var xm=!1;if(ns){var Nc;if(ns){var Sc="oninput"in document;if(!Sc){var gm=document.createElement("div");gm.setAttribute("oninput","return;"),Sc=typeof gm.oninput=="function"}Nc=Sc}else Nc=!1;xm=Nc&&(!document.documentMode||9<document.documentMode)}function bm(){ti&&(ti.detachEvent("onpropertychange",vm),ni=ti=null)}function vm(e){if(e.propertyName==="value"&&gl(ni)){var t=[];hm(t,ni,e,hc(e)),nm(Oy,t)}}function Ay(e,t,s){e==="focusin"?(bm(),ti=t,ni=s,ti.attachEvent("onpropertychange",vm)):e==="focusout"&&bm()}function Ty(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return gl(ni)}function My(e,t){if(e==="click")return gl(t)}function _y(e,t){if(e==="input"||e==="change")return gl(t)}function Dy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nn=typeof Object.is=="function"?Object.is:Dy;function si(e,t){if(nn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(i=0;i<s.length;i++){var u=s[i];if(!qt.call(t,u)||!nn(e[u],t[u]))return!1}return!0}function ym(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jm(e,t){var s=ym(e);e=0;for(var i;s;){if(s.nodeType===3){if(i=e+s.textContent.length,e<=t&&i>=t)return{node:s,offset:t-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=ym(s)}}function wm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ul(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=ul(e.document)}return t}function Cc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var zy=ns&&"documentMode"in document&&11>=document.documentMode,sr=null,Ec=null,ai=null,Oc=!1;function Sm(e,t,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Oc||sr==null||sr!==ul(i)||(i=sr,"selectionStart"in i&&Cc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ai&&si(ai,i)||(ai=i,i=ro(Ec,"onSelect"),0<i.length&&(t=new pl("onSelect","select",null,t,s),e.push({event:t,listeners:i}),t.target=sr)))}function ga(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var ar={animationend:ga("Animation","AnimationEnd"),animationiteration:ga("Animation","AnimationIteration"),animationstart:ga("Animation","AnimationStart"),transitionrun:ga("Transition","TransitionRun"),transitionstart:ga("Transition","TransitionStart"),transitioncancel:ga("Transition","TransitionCancel"),transitionend:ga("Transition","TransitionEnd")},Ac={},Cm={};ns&&(Cm=document.createElement("div").style,"AnimationEvent"in window||(delete ar.animationend.animation,delete ar.animationiteration.animation,delete ar.animationstart.animation),"TransitionEvent"in window||delete ar.transitionend.transition);function ba(e){if(Ac[e])return Ac[e];if(!ar[e])return e;var t=ar[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Cm)return Ac[e]=t[s];return e}var Em=ba("animationend"),Om=ba("animationiteration"),Am=ba("animationstart"),Ry=ba("transitionrun"),ky=ba("transitionstart"),Uy=ba("transitioncancel"),Tm=ba("transitionend"),Mm=new Map,Tc="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(" ");Tc.push("scrollEnd");function On(e,t){Mm.set(e,t),pa(t,[e])}var bl=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pn=[],rr=0,Mc=0;function vl(){for(var e=rr,t=Mc=rr=0;t<e;){var s=pn[t];pn[t++]=null;var i=pn[t];pn[t++]=null;var u=pn[t];pn[t++]=null;var d=pn[t];if(pn[t++]=null,i!==null&&u!==null){var g=i.pending;g===null?u.next=u:(u.next=g.next,g.next=u),i.pending=u}d!==0&&_m(s,u,d)}}function yl(e,t,s,i){pn[rr++]=e,pn[rr++]=t,pn[rr++]=s,pn[rr++]=i,Mc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function _c(e,t,s,i){return yl(e,t,s,i),jl(e)}function va(e,t){return yl(e,null,null,t),jl(e)}
vendor: 19,326 bytes, line 48
48function _m(e,t,s){e.lanes|=s;var i=e.alternate;i!==null&&(i.lanes|=s);for(var u=!1,d=e.return;d!==null;)d.childLanes|=s,i=d.alternate,i!==null&&(i.childLanes|=s),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-ft(s),e=d.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=s|536870912),d):null}function jl(e){if(50<Ei)throw Ei=0,Pu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ir={};function Ly(e,t,s,i){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function sn(e,t,s,i){return new Ly(e,t,s,i)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ss(e,t){var s=e.alternate;return s===null?(s=sn(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Dm(e,t){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wl(e,t,s,i,u,d){var g=0;if(i=e,typeof e=="function")Dc(e)&&(g=1);else if(typeof e=="string")g=Q1(e,s,M.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=sn(31,s,t,u),e.elementType=ne,e.lanes=d,e;case S:return ya(s.children,u,d,t);case U:g=8,u|=24;break;case _:return e=sn(12,s,t,u|2),e.elementType=_,e.lanes=d,e;case X:return e=sn(13,s,t,u),e.elementType=X,e.lanes=d,e;case F:return e=sn(19,s,t,u),e.elementType=F,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case te:g=10;break e;case Z:g=9;break e;case oe:g=11;break e;case z:g=14;break e;case q:g=16,i=null;break e}g=29,s=Error(o(130,e===null?"null":typeof e,"")),i=null}return t=sn(g,s,t,u),t.elementType=e,t.type=i,t.lanes=d,t}function ya(e,t,s,i){return e=sn(7,e,i,t),e.lanes=s,e}function zc(e,t,s){return e=sn(6,e,null,t),e.lanes=s,e}function zm(e){var t=sn(18,null,null,0);return t.stateNode=e,t}function Rc(e,t,s){return t=sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Rm=new WeakMap;function xn(e,t){if(typeof e=="object"&&e!==null){var s=Rm.get(e);return s!==void 0?s:(t={value:e,source:t,stack:$n(t)},Rm.set(e,t),t)}return{value:e,source:t,stack:$n(t)}}var lr=[],or=0,Nl=null,ri=0,gn=[],bn=0,Ms=null,Un=1,Ln="";function as(e,t){lr[or++]=ri,lr[or++]=Nl,Nl=e,ri=t}function km(e,t,s){gn[bn++]=Un,gn[bn++]=Ln,gn[bn++]=Ms,Ms=e;var i=Un;e=Ln;var u=32-ft(i)-1;i&=~(1<<u),s+=1;var d=32-ft(t)+u;if(30<d){var g=u-u%5;d=(i&(1<<g)-1).toString(32),i>>=g,u-=g,Un=1<<32-ft(t)+u|s<<u|i,Ln=d+e}else Un=1<<d|s<<u|i,Ln=e}function kc(e){e.return!==null&&(as(e,1),km(e,1,0))}function Uc(e){for(;e===Nl;)Nl=lr[--or],lr[or]=null,ri=lr[--or],lr[or]=null;for(;e===Ms;)Ms=gn[--bn],gn[bn]=null,Ln=gn[--bn],gn[bn]=null,Un=gn[--bn],gn[bn]=null}function Um(e,t){gn[bn++]=Un,gn[bn++]=Ln,gn[bn++]=Ms,Un=t.id,Ln=t.overflow,Ms=e}var Tt=null,tt=null,Pe=!1,_s=null,vn=!1,Lc=Error(o(519));function Ds(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ii(xn(t,e)),Lc}function Lm(e){var t=e.stateNode,s=e.type,i=e.memoizedProps;switch(t[At]=e,t[Vt]=i,s){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(s=0;s<Ai.length;s++)Ue(Ai[s],t);break;case"source":Ue("error",t);break;case"img":case"image":case"link":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"input":Ue("invalid",t),$f(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),Jf(t,i.value,i.defaultValue,i.children)}s=i.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||i.suppressHydrationWarning===!0||e0(t.textContent,s)?(i.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),i.onScroll!=null&&Ue("scroll",t),i.onScrollEnd!=null&&Ue("scrollend",t),i.onClick!=null&&(t.onclick=ts),t=!0):t=!1,t||Ds(e,!0)}function qm(e){for(Tt=e.return;Tt;)switch(Tt.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:Tt=Tt.return}}function cr(e){if(e!==Tt)return!1;if(!Pe)return qm(e),Pe=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||td(e.type,e.memoizedProps)),s=!s),s&&tt&&Ds(e),qm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));tt=c0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));tt=c0(e)}else t===27?(t=tt,Fs(e.type)?(e=id,id=null,tt=e):tt=t):tt=Tt?jn(e.stateNode.nextSibling):null;return!0}function ja(){tt=Tt=null,Pe=!1}function qc(){var e=_s;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),_s=null),e}function ii(e){_s===null?_s=[e]:_s.push(e)}var Hc=E(null),wa=null,rs=null;function zs(e,t,s){k(Hc,t._currentValue),t._currentValue=s}function is(e){e._currentValue=Hc.current,G(Hc)}function Pc(e,t,s){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===s)break;e=e.return}}function Bc(e,t,s,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var g=u.child;d=d.firstContext;e:for(;d!==null;){var y=d;d=u;for(var A=0;A<t.length;A++)if(y.context===t[A]){d.lanes|=s,y=d.alternate,y!==null&&(y.lanes|=s),Pc(d.return,s,e),i||(g=null);break e}d=y.next}}else if(u.tag===18){if(g=u.return,g===null)throw Error(o(341));g.lanes|=s,d=g.alternate,d!==null&&(d.lanes|=s),Pc(g,s,e),g=null}else g=u.child;if(g!==null)g.return=u;else for(g=u;g!==null;){if(g===e){g=null;break}if(u=g.sibling,u!==null){u.return=g.return,g=u;break}g=g.return}u=g}}function ur(e,t,s,i){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var g=u.alternate;if(g===null)throw Error(o(387));if(g=g.memoizedProps,g!==null){var y=u.type;nn(u.pendingProps.value,g.value)||(e!==null?e.push(y):e=[y])}}else if(u===le.current){if(g=u.alternate,g===null)throw Error(o(387));g.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(zi):e=[zi])}u=u.return}e!==null&&Bc(t,e,s,i),t.flags|=262144}function Sl(e){for(e=e.firstContext;e!==null;){if(!nn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Na(e){wa=e,rs=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Mt(e){return Hm(wa,e)}function Cl(e,t){return wa===null&&Na(e),Hm(e,t)}function Hm(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},rs===null){if(e===null)throw Error(o(308));rs=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else rs=rs.next=t;return s}var qy=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},Hy=n.unstable_scheduleCallback,Py=n.unstable_NormalPriority,xt={$$typeof:te,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Qc(){return{controller:new qy,data:new Map,refCount:0}}function li(e){e.refCount--,e.refCount===0&&Hy(Py,function(){e.controller.abort()})}var oi=null,Gc=0,dr=0,fr=null;function By(e,t){if(oi===null){var s=oi=[];Gc=0,dr=Fu(),fr={status:"pending",value:void 0,then:function(i){s.push(i)}}}return Gc++,t.then(Pm,Pm),t}function Pm(){if(--Gc===0&&oi!==null){fr!==null&&(fr.status="fulfilled");var e=oi;oi=null,dr=0,fr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qy(e,t){var s=[],i={status:"pending",value:null,reason:null,then:function(u){s.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<s.length;u++)(0,s[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<s.length;u++)(0,s[u])(void 0)}),i}var Bm=N.S;N.S=function(e,t){Sp=wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&By(e,t),Bm!==null&&Bm(e,t)};var Sa=E(null);function Yc(){var e=Sa.current;return e!==null?e:We.pooledCache}function El(e,t){t===null?k(Sa,Sa.current):k(Sa,t.pool)}function Qm(){var e=Yc();return e===null?null:{parent:xt._currentValue,pool:e}}var mr=Error(o(460)),Vc=Error(o(474)),Ol=Error(o(542)),Al={then:function(){}};function Gm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ym(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(ts,ts),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fm(e),e;default:if(typeof t.status=="string")t.then(ts,ts);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fm(e),e}throw Ea=t,mr}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ea=s,mr):s}}var Ea=null;function Vm(){if(Ea===null)throw Error(o(459));var e=Ea;return Ea=null,e}function Fm(e){if(e===mr||e===Ol)throw Error(o(483))}var hr=null,ci=0;function Tl(e){var t=ci;return ci+=1,hr===null&&(hr=[]),Ym(hr,e,t)}function ui(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ml(e,t){throw t.$$typeof===j?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Xm(e){function t(R,D){if(e){var H=R.deletions;H===null?(R.deletions=[D],R.flags|=16):H.push(D)}}function s(R,D){if(!e)return null;for(;D!==null;)t(R,D),D=D.sibling;return null}function i(R){for(var D=new Map;R!==null;)R.key!==null?D.set(R.key,R):D.set(R.index,R),R=R.sibling;return D}function u(R,D){return R=ss(R,D),R.index=0,R.sibling=null,R}function d(R,D,H){return R.index=H,e?(H=R.alternate,H!==null?(H=H.index,H<D?(R.flags|=67108866,D):H):(R.flags|=67108866,D)):(R.flags|=1048576,D)}function g(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function y(R,D,H,J){return D===null||D.tag!==6?(D=zc(H,R.mode,J),D.return=R,D):(D=u(D,H),D.return=R,D)}function A(R,D,H,J){var we=H.type;return we===S?$(R,D,H.props.children,J,H.key):D!==null&&(D.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===q&&Ca(we)===D.type)?(D=u(D,H.props),ui(D,H),D.return=R,D):(D=wl(H.type,H.key,H.props,null,R.mode,J),ui(D,H),D.return=R,D)}function P(R,D,H,J){return D===null||D.tag!==4||D.stateNode.containerInfo!==H.containerInfo||D.stateNode.implementation!==H.implementation?(D=Rc(H,R.mode,J),D.return=R,D):(D=u(D,H.children||[]),D.return=R,D)}function $(R,D,H,J,we){return D===null||D.tag!==7?(D=ya(H,R.mode,J,we),D.return=R,D):(D=u(D,H),D.return=R,D)}function ee(R,D,H){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=zc(""+D,R.mode,H),D.return=R,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case C:return H=wl(D.type,D.key,D.props,null,R.mode,H),ui(H,D),H.return=R,H;case T:return D=Rc(D,R.mode,H),D.return=R,D;case q:return D=Ca(D),ee(R,D,H)}if(de(D)||I(D))return D=ya(D,R.mode,H,null),D.return=R,D;if(typeof D.then=="function")return ee(R,Tl(D),H);if(D.$$typeof===te)return ee(R,Cl(R,D),H);Ml(R,D)}return null}function Q(R,D,H,J){var we=D!==null?D.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return we!==null?null:y(R,D,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case C:return H.key===we?A(R,D,H,J):null;case T:return H.key===we?P(R,D,H,J):null;case q:return H=Ca(H),Q(R,D,H,J)}if(de(H)||I(H))return we!==null?null:$(R,D,H,J,null);if(typeof H.then=="function")return Q(R,D,Tl(H),J);if(H.$$typeof===te)return Q(R,D,Cl(R,H),J);Ml(R,H)}return null}function V(R,D,H,J,we){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return R=R.get(H)||null,y(D,R,""+J,we);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case C:return R=R.get(J.key===null?H:J.key)||null,A(D,R,J,we);case T:return R=R.get(J.key===null?H:J.key)||null,P(D,R,J,we);case q:return J=Ca(J),V(R,D,H,J,we)}if(de(J)||I(J))return R=R.get(H)||null,$(D,R,J,we,null);if(typeof J.then=="function")return V(R,D,H,Tl(J),we);if(J.$$typeof===te)return V(R,D,H,Cl(D,J),we);Ml(D,J)}return null}function xe(R,D,H,J){for(var we=null,Qe=null,ye=D,_e=D=0,qe=null;ye!==null&&_e<H.length;_e++){ye.index>_e?(qe=ye,ye=null):qe=ye.sibling;var Ge=Q(R,ye,H[_e],J);if(Ge===null){ye===null&&(ye=qe);break}e&&ye&&Ge.alternate===null&&t(R,ye),D=d(Ge,D,_e),Qe===null?we=Ge:Qe.sibling=Ge,Qe=Ge,ye=qe}if(_e===H.length)return s(R,ye),Pe&&as(R,_e),we;if(ye===null){for(;_e<H.length;_e++)ye=ee(R,H[_e],J),ye!==null&&(D=d(ye,D,_e),Qe===null?we=ye:Qe.sibling=ye,Qe=ye);return Pe&&as(R,_e),we}for(ye=i(ye);_e<H.length;_e++)qe=V(ye,R,_e,H[_e],J),qe!==null&&(e&&qe.alternate!==null&&ye.delete(qe.key===null?_e:qe.key),D=d(qe,D,_e),Qe===null?we=qe:Qe.sibling=qe,Qe=qe);return e&&ye.forEach(function(Is){return t(R,Is)}),Pe&&as(R,_e),we}function Ce(R,D,H,J){if(H==null)throw Error(o(151));for(var we=null,Qe=null,ye=D,_e=D=0,qe=null,Ge=H.next();ye!==null&&!Ge.done;_e++,Ge=H.next()){ye.index>_e?(qe=ye,ye=null):qe=ye.sibling;var Is=Q(R,ye,Ge.value,J);if(Is===null){ye===null&&(ye=qe);break}e&&ye&&Is.alternate===null&&t(R,ye),D=d(Is,D,_e),Qe===null?we=Is:Qe.sibling=Is,Qe=Is,ye=qe}if(Ge.done)return s(R,ye),Pe&&as(R,_e),we;if(ye===null){for(;!Ge.done;_e++,Ge=H.next())Ge=ee(R,Ge.value,J),Ge!==null&&(D=d(Ge,D,_e),Qe===null?we=Ge:Qe.sibling=Ge,Qe=Ge);return Pe&&as(R,_e),we}for(ye=i(ye);!Ge.done;_e++,Ge=H.next())Ge=V(ye,R,_e,Ge.value,J),Ge!==null&&(e&&Ge.alternate!==null&&ye.delete(Ge.key===null?_e:Ge.key),D=d(Ge,D,_e),Qe===null?we=Ge:Qe.sibling=Ge,Qe=Ge);return e&&ye.forEach(function(W1){return t(R,W1)}),Pe&&as(R,_e),we}function $e(R,D,H,J){if(typeof H=="object"&&H!==null&&H.type===S&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case C:e:{for(var we=H.key;D!==null;){if(D.key===we){if(we=H.type,we===S){if(D.tag===7){s(R,D.sibling),J=u(D,H.props.children),J.return=R,R=J;break e}}else if(D.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===q&&Ca(we)===D.type){s(R,D.sibling),J=u(D,H.props),ui(J,H),J.return=R,R=J;break e}s(R,D);break}else t(R,D);D=D.sibling}H.type===S?(J=ya(H.props.children,R.mode,J,H.key),J.return=R,R=J):(J=wl(H.type,H.key,H.props,null,R.mode,J),ui(J,H),J.return=R,R=J)}return g(R);case T:e:{for(we=H.key;D!==null;){if(D.key===we)if(D.tag===4&&D.stateNode.containerInfo===H.containerInfo&&D.stateNode.implementation===H.implementation){s(R,D.sibling),J=u(D,H.children||[]),J.return=R,R=J;break e}else{s(R,D);break}else t(R,D);D=D.sibling}J=Rc(H,R.mode,J),J.return=R,R=J}return g(R);case q:return H=Ca(H),$e(R,D,H,J)}if(de(H))return xe(R,D,H,J);if(I(H)){if(we=I(H),typeof we!="function")throw Error(o(150));return H=we.call(H),Ce(R,D,H,J)}if(typeof H.then=="function")return $e(R,D,Tl(H),J);if(H.$$typeof===te)return $e(R,D,Cl(R,H),J);Ml(R,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,D!==null&&D.tag===6?(s(R,D.sibling),J=u(D,H),J.return=R,R=J):(s(R,D),J=zc(H,R.mode,J),J.return=R,R=J),g(R)):s(R,D)}return function(R,D,H,J){try{ci=0;var we=$e(R,D,H,J);return hr=null,we}catch(ye){if(ye===mr||ye===Ol)throw ye;var Qe=sn(29,ye,null,R.mode);return Qe.lanes=J,Qe.return=R,Qe}finally{}}}var Oa=Xm(!0),Km=Xm(!1),Rs=!1;function Fc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ks(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Us(e,t,s){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ve&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=jl(e),_m(e,null,s),t}return yl(e,i,t,s),jl(e)}function di(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Gt(e,s)}}function Kc(e,t){var s=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,s===i)){var u=null,d=null;if(s=s.firstBaseUpdate,s!==null){do{var g={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};d===null?u=d=g:d=d.next=g,s=s.next}while(s!==null);d===null?u=d=t:d=d.next=t}else u=d=t;s={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:i.shared,callbacks:i.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var Zc=!1;function fi(){if(Zc){var e=fr;if(e!==null)throw e}}function mi(e,t,s,i){Zc=!1;var u=e.updateQueue;Rs=!1;var d=u.firstBaseUpdate,g=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var A=y,P=A.next;A.next=null,g===null?d=P:g.next=P,g=A;var $=e.alternate;$!==null&&($=$.updateQueue,y=$.lastBaseUpdate,y!==g&&(y===null?$.firstBaseUpdate=P:y.next=P,$.lastBaseUpdate=A))}if(d!==null){var ee=u.baseState;g=0,$=P=A=null,y=d;do{var Q=y.lane&-536870913,V=Q!==y.lane;if(V?(Le&Q)===Q:(i&Q)===Q){Q!==0&&Q===dr&&(Zc=!0),$!==null&&($=$.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var xe=e,Ce=y;Q=t;var $e=s;switch(Ce.tag){case 1:if(xe=Ce.payload,typeof xe=="function"){ee=xe.call($e,ee,Q);break e}ee=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=Ce.payload,Q=typeof xe=="function"?xe.call($e,ee,Q):xe,Q==null)break e;ee=b({},ee,Q);break e;case 2:Rs=!0}}Q=y.callback,Q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=u.callbacks,V===null?u.callbacks=[Q]:V.push(Q))}else V={lane:Q,tag:y.tag,payload:y.payload,callback:y.callback,next:null},$===null?(P=$=V,A=ee):$=$.next=V,g|=Q;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;V=y,y=V.next,V.next=null,u.lastBaseUpdate=V,u.shared.pending=null}}while(!0);$===null&&(A=ee),u.baseState=A,u.firstBaseUpdate=P,u.lastBaseUpdate=$,d===null&&(u.shared.lanes=0),Bs|=g,e.lanes=g,e.memoizedState=ee}}function Zm(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function $m(e,t){var s=e.callbacks;
vendor: 4,980 bytes, line 48
48if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Zm(s[e],t)}var pr=E(null),_l=E(0);function Im(e,t){e=ps,k(_l,e),k(pr,t),ps=e|t.baseLanes}function $c(){k(_l,ps),k(pr,pr.current)}function Ic(){ps=_l.current,G(pr),G(_l)}var an=E(null),yn=null;function Ls(e){var t=e.alternate;k(mt,mt.current&1),k(an,e),yn===null&&(t===null||pr.current!==null||t.memoizedState!==null)&&(yn=e)}function Jc(e){k(mt,mt.current),k(an,e),yn===null&&(yn=e)}function Jm(e){e.tag===22?(k(mt,mt.current),k(an,e),yn===null&&(yn=e)):qs()}function qs(){k(mt,mt.current),k(an,an.current)}function rn(e){G(an),yn===e&&(yn=null),G(mt)}var mt=E(0);function Dl(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ad(s)||rd(s)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ls=0,Me=null,Ke=null,gt=null,zl=!1,xr=!1,Aa=!1,Rl=0,hi=0,gr=null,Gy=0;function ot(){throw Error(o(321))}function Wc(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!nn(e[s],t[s]))return!1;return!0}function eu(e,t,s,i,u,d){return ls=d,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?kh:pu,Aa=!1,d=s(i,u),Aa=!1,xr&&(d=eh(t,s,i,u)),Wm(e),d}function Wm(e){N.H=gi;var t=Ke!==null&&Ke.next!==null;if(ls=0,gt=Ke=Me=null,zl=!1,hi=0,gr=null,t)throw Error(o(300));e===null||bt||(e=e.dependencies,e!==null&&Sl(e)&&(bt=!0))}function eh(e,t,s,i){Me=e;var u=0;do{if(xr&&(gr=null),hi=0,xr=!1,25<=u)throw Error(o(301));if(u+=1,gt=Ke=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}N.H=Uh,d=t(s,i)}while(xr);return d}function Yy(){var e=N.H,t=e.useState()[0];return t=typeof t.then=="function"?pi(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Me.flags|=1024),t}function tu(){var e=Rl!==0;return Rl=0,e}function nu(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function su(e){if(zl){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}zl=!1}ls=0,gt=Ke=Me=null,xr=!1,hi=Rl=0,gr=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Me.memoizedState=gt=e:gt=gt.next=e,gt}function ht(){if(Ke===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=gt===null?Me.memoizedState:gt.next;if(t!==null)gt=t,Ke=e;else{if(e===null)throw Me.alternate===null?Error(o(467)):Error(o(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},gt===null?Me.memoizedState=gt=e:gt=gt.next=e}return gt}function kl(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pi(e){var t=hi;return hi+=1,gr===null&&(gr=[]),e=Ym(gr,e,t),t=Me,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?kh:pu),e}function Ul(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pi(e);if(e.$$typeof===te)return Mt(e)}throw Error(o(438,String(e)))}function au(e){var t=null,s=Me.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var i=Me.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=kl(),Me.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),i=0;i<e;i++)s[i]=se;return t.index++,s}function os(e,t){return typeof t=="function"?t(e):t}function Ll(e){var t=ht();return ru(t,Ke,e)}function ru(e,t,s){var i=e.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=s;var u=e.baseQueue,d=i.pending;if(d!==null){if(u!==null){var g=u.next;u.next=d.next,d.next=g}t.baseQueue=u=d,i.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var y=g=null,A=null,P=t,$=!1;do{var ee=P.lane&-536870913;if(ee!==P.lane?(Le&ee)===ee:(ls&ee)===ee){var Q=P.revertLane;if(Q===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null}),ee===dr&&($=!0);else if((ls&Q)===Q){P=P.next,Q===dr&&($=!0);continue}else ee={lane:0,revertLane:P.revertLane,gesture:null,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},A===null?(y=A=ee,g=d):A=A.next=ee,Me.lanes|=Q,Bs|=Q;ee=P.action,Aa&&s(d,ee),d=P.hasEagerState?P.eagerState:s(d,ee)}else Q={lane:ee,revertLane:P.revertLane,gesture:P.gesture,action:P.action,hasEagerState:P.hasEagerState,eagerState:P.eagerState,next:null},A===null?(y=A=Q,g=d):A=A.next=Q,Me.lanes|=ee,Bs|=ee;P=P.next}
vendor: 15,476 bytes, line 48
48while(P!==null&&P!==t);if(A===null?g=d:A.next=y,!nn(d,e.memoizedState)&&(bt=!0,$&&(s=fr,s!==null)))throw s;e.memoizedState=d,e.baseState=g,e.baseQueue=A,i.lastRenderedState=d}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function iu(e){var t=ht(),s=t.queue;if(s===null)throw Error(o(311));s.lastRenderedReducer=e;var i=s.dispatch,u=s.pending,d=t.memoizedState;if(u!==null){s.pending=null;var g=u=u.next;do d=e(d,g.action),g=g.next;while(g!==u);nn(d,t.memoizedState)||(bt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),s.lastRenderedState=d}return[d,i]}function th(e,t,s){var i=Me,u=ht(),d=Pe;if(d){if(s===void 0)throw Error(o(407));s=s()}else s=t();var g=!nn((Ke||u).memoizedState,s);if(g&&(u.memoizedState=s,bt=!0),u=u.queue,cu(ah.bind(null,i,u,e),[e]),u.getSnapshot!==t||g||gt!==null&&gt.memoizedState.tag&1){if(i.flags|=2048,br(9,{destroy:void 0},sh.bind(null,i,u,s,t),null),We===null)throw Error(o(349));d||(ls&127)!==0||nh(i,t,s)}return s}function nh(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=Me.updateQueue,t===null?(t=kl(),Me.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function sh(e,t,s,i){t.value=s,t.getSnapshot=i,rh(t)&&ih(e)}function ah(e,t,s){return s(function(){rh(t)&&ih(e)})}function rh(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!nn(e,s)}catch{return!0}}function ih(e){var t=va(e,2);t!==null&&It(t,e,2)}function lu(e){var t=Ht();if(typeof e=="function"){var s=e;if(e=s(),Aa){Rt(!0);try{s()}finally{Rt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:e},t}function lh(e,t,s,i){return e.baseState=s,ru(e,Ke,typeof i=="function"?i:os)}function Vy(e,t,s,i,u){if(Pl(e))throw Error(o(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(g){d.listeners.push(g)}};N.T!==null?s(!0):d.isTransition=!1,i(d),s=t.pending,s===null?(d.next=t.pending=d,oh(t,d)):(d.next=s.next,t.pending=s.next=d)}}function oh(e,t){var s=t.action,i=t.payload,u=e.state;if(t.isTransition){var d=N.T,g={};N.T=g;try{var y=s(u,i),A=N.S;A!==null&&A(g,y),ch(e,t,y)}catch(P){ou(e,t,P)}finally{d!==null&&g.types!==null&&(d.types=g.types),N.T=d}}else try{d=s(u,i),ch(e,t,d)}catch(P){ou(e,t,P)}}function ch(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(i){uh(e,t,i)},function(i){return ou(e,t,i)}):uh(e,t,s)}function uh(e,t,s){t.status="fulfilled",t.value=s,dh(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,oh(e,s)))}function ou(e,t,s){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=s,dh(t),t=t.next;while(t!==i)}e.action=null}function dh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fh(e,t){return t}function mh(e,t){if(Pe){var s=We.formState;if(s!==null){e:{var i=Me;if(Pe){if(tt){t:{for(var u=tt,d=vn;u.nodeType!==8;){if(!d){u=null;break t}if(u=jn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){tt=jn(u.nextSibling),i=u.data==="F!";break e}}Ds(i)}i=!1}i&&(t=s[0])}}return s=Ht(),s.memoizedState=s.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fh,lastRenderedState:t},s.queue=i,s=Dh.bind(null,Me,i),i.dispatch=s,i=lu(!1),d=hu.bind(null,Me,!1,i.queue),i=Ht(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,s=Vy.bind(null,Me,u,d,s),u.dispatch=s,i.memoizedState=e,[t,s,!1]}function hh(e){var t=ht();return ph(t,Ke,e)}function ph(e,t,s){if(t=ru(e,t,fh)[0],e=Ll(os)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=pi(t)}catch(g){throw g===mr?Ol:g}else i=t;t=ht();var u=t.queue,d=u.dispatch;return s!==t.memoizedState&&(Me.flags|=2048,br(9,{destroy:void 0},Fy.bind(null,u,s),null)),[i,d,e]}function Fy(e,t){e.action=t}function xh(e){var t=ht(),s=Ke;if(s!==null)return ph(t,s,e);ht(),t=t.memoizedState,s=ht();var i=s.queue.dispatch;return s.memoizedState=e,[t,i,!1]}function br(e,t,s,i){return e={tag:e,create:s,deps:i,inst:t,next:null},t=Me.updateQueue,t===null&&(t=kl(),Me.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(i=s.next,s.next=e,e.next=i,t.lastEffect=e),e}function gh(){return ht().memoizedState}function ql(e,t,s,i){var u=Ht();Me.flags|=e,u.memoizedState=br(1|t,{destroy:void 0},s,i===void 0?null:i)}function Hl(e,t,s,i){var u=ht();i=i===void 0?null:i;var d=u.memoizedState.inst;Ke!==null&&i!==null&&Wc(i,Ke.memoizedState.deps)?u.memoizedState=br(t,d,s,i):(Me.flags|=e,u.memoizedState=br(1|t,d,s,i))}function bh(e,t){ql(8390656,8,e,t)}function cu(e,t){Hl(2048,8,e,t)}function Xy(e){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=kl(),Me.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function vh(e){var t=ht().memoizedState;return Xy({ref:t,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function yh(e,t){return Hl(4,2,e,t)}function jh(e,t){return Hl(4,4,e,t)}function wh(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nh(e,t,s){s=s!=null?s.concat([e]):null,Hl(4,4,wh.bind(null,t,e),s)}function uu(){}function Sh(e,t){var s=ht();t=t===void 0?null:t;var i=s.memoizedState;return t!==null&&Wc(t,i[1])?i[0]:(s.memoizedState=[e,t],e)}function Ch(e,t){var s=ht();t=t===void 0?null:t;var i=s.memoizedState;if(t!==null&&Wc(t,i[1]))return i[0];if(i=e(),Aa){Rt(!0);try{e()}finally{Rt(!1)}}return s.memoizedState=[i,t],i}function du(e,t,s){return s===void 0||(ls&1073741824)!==0&&(Le&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=Ep(),Me.lanes|=e,Bs|=e,s)}function Eh(e,t,s,i){return nn(s,t)?s:pr.current!==null?(e=du(e,s,i),nn(e,t)||(bt=!0),e):(ls&42)===0||(ls&1073741824)!==0&&(Le&261930)===0?(bt=!0,e.memoizedState=s):(e=Ep(),Me.lanes|=e,Bs|=e,t)}function Oh(e,t,s,i,u){var d=L.p;L.p=d!==0&&8>d?d:8;var g=N.T,y={};N.T=y,hu(e,!1,t,s);try{var A=u(),P=N.S;if(P!==null&&P(y,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var $=Qy(A,i);xi(e,t,$,cn(e))}else xi(e,t,i,cn(e))}catch(ee){xi(e,t,{then:function(){},status:"rejected",reason:ee},cn())}finally{L.p=d,g!==null&&y.types!==null&&(g.types=y.types),N.T=g}}function Ky(){}function fu(e,t,s,i){if(e.tag!==5)throw Error(o(476));var u=Ah(e).queue;Oh(e,u,t,O,s===null?Ky:function(){return Th(e),s(i)})}function Ah(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:O,baseState:O,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:O},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:os,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Th(e){var t=Ah(e);t.next===null&&(t=e.alternate.memoizedState),xi(e,t.next.queue,{},cn())}function mu(){return Mt(zi)}function Mh(){return ht().memoizedState}function _h(){return ht().memoizedState}function Zy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=cn();e=ks(s);var i=Us(t,e,s);i!==null&&(It(i,t,s),di(i,t,s)),t={cache:Qc()},e.payload=t;return}t=t.return}}function $y(e,t,s){var i=cn();s={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Pl(e)?zh(t,s):(s=_c(e,t,s,i),s!==null&&(It(s,e,i),Rh(s,t,i)))}function Dh(e,t,s){var i=cn();xi(e,t,s,i)}function xi(e,t,s,i){var u={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Pl(e))zh(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,y=d(g,s);if(u.hasEagerState=!0,u.eagerState=y,nn(y,g))return yl(e,t,u,0),We===null&&vl(),!1}catch{}finally{}if(s=_c(e,t,u,i),s!==null)return It(s,e,i),Rh(s,t,i),!0}return!1}function hu(e,t,s,i){if(i={lane:2,revertLane:Fu(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Pl(e)){if(t)throw Error(o(479))}else t=_c(e,s,i,2),t!==null&&It(t,e,2)}function Pl(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function zh(e,t){xr=zl=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Rh(e,t,s){if((s&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Gt(e,s)}}var gi={readContext:Mt,use:Ul,useCallback:ot,useContext:ot,useEffect:ot,useImperativeHandle:ot,useLayoutEffect:ot,useInsertionEffect:ot,useMemo:ot,useReducer:ot,useRef:ot,useState:ot,useDebugValue:ot,useDeferredValue:ot,useTransition:ot,useSyncExternalStore:ot,useId:ot,useHostTransitionStatus:ot,useFormState:ot,useActionState:ot,useOptimistic:ot,useMemoCache:ot,useCacheRefresh:ot};gi.useEffectEvent=ot;var kh={readContext:Mt,use:Ul,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:bh,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,ql(4194308,4,wh.bind(null,t,e),s)},useLayoutEffect:function(e,t){return ql(4194308,4,e,t)},useInsertionEffect:function(e,t){ql(4,2,e,t)},useMemo:function(e,t){var s=Ht();t=t===void 0?null:t;var i=e();if(Aa){Rt(!0);try{e()}finally{Rt(!1)}}return s.memoizedState=[i,t],i},useReducer:function(e,t,s){var i=Ht();if(s!==void 0){var u=s(t);if(Aa){Rt(!0);try{s(t)}finally{Rt(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=$y.bind(null,Me,e),[i.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=lu(e);var t=e.queue,s=Dh.bind(null,Me,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:uu,useDeferredValue:function(e,t){var s=Ht();return du(s,e,t)},useTransition:function(){var e=lu(!1);return e=Oh.bind(null,Me,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var i=Me,u=Ht();if(Pe){if(s===void 0)throw Error(o(407));s=s()}else{if(s=t(),We===null)throw Error(o(349));(Le&127)!==0||nh(i,t,s)}u.memoizedState=s;var d={value:s,getSnapshot:t};return u.queue=d,bh(ah.bind(null,i,d,e),[e]),i.flags|=2048,br(9,{destroy:void 0},sh.bind(null,i,d,s,t),null),s},useId:function(){var e=Ht(),t=We.identifierPrefix;if(Pe){var s=Ln,i=Un;s=(i&~(1<<32-ft(i)-1)).toString(32)+s,t="_"+t+"R_"+s,s=Rl++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=Gy++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mu,useFormState:mh,useActionState:mh,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=hu.bind(null,Me,!0,s),s.dispatch=t,[e,t]},useMemoCache:au,useCacheRefresh:function(){return Ht().memoizedState=Zy.bind(null,Me)},useEffectEvent:function(e){var t=Ht(),s={impl:e};return t.memoizedState=s,function(){if((Ve&2)!==0)throw Error(o(440));return s.impl.apply(void 0,arguments)}}},pu={readContext:Mt,use:Ul,useCallback:Sh,useContext:Mt,useEffect:cu,useImperativeHandle:Nh,useInsertionEffect:yh,useLayoutEffect:jh,useMemo:Ch,useReducer:Ll,useRef:gh,useState:function(){return Ll(os)},useDebugValue:uu,useDeferredValue:function(e,t){var s=ht();return Eh(s,Ke.memoizedState,e,t)},useTransition:function(){var e=Ll(os)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:pi(e),t]},useSyncExternalStore:th,useId:Mh,useHostTransitionStatus:mu,useFormState:hh,useActionState:hh,useOptimistic:function(e,t){var s=ht();return lh(s,Ke,e,t)},useMemoCache:au,useCacheRefresh:_h};pu.useEffectEvent=vh;var Uh={readContext:Mt,use:Ul,useCallback:Sh,useContext:Mt,useEffect:cu,useImperativeHandle:Nh,useInsertionEffect:yh,useLayoutEffect:jh,useMemo:Ch,useReducer:iu,useRef:gh,useState:function(){return iu(os)},useDebugValue:uu,useDeferredValue:function(e,t){var s=ht();return Ke===null?du(s,e,t):Eh(s,Ke.memoizedState,e,t)},useTransition:function(){var e=iu(os)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:pi(e),t]},useSyncExternalStore:th,useId:Mh,useHostTransitionStatus:mu,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var s=ht();return Ke!==null?lh(s,Ke,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:au,useCacheRefresh:_h};Uh.useEffectEvent=vh;function xu(e,t,s,i){t=e.memoizedState,s=s(i,t),s=s==null?t:b({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var gu={enqueueSetState:function(e,t,s){e=e._reactInternals;var i=cn(),u=ks(i);u.payload=t,s!=null&&(u.callback=s),t=Us(e,u,i),t!==null&&(It(t,e,i),di(t,e,i))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var i=cn(),u=ks(i);u.tag=1,u.payload=t,s!=null&&(u.callback=s),t=Us(e,u,i),t!==null&&(It(t,e,i),di(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=cn(),i=ks(s);i.tag=2,t!=null&&(i.callback=t),t=Us(e,i,s),t!==null&&(It(t,e,s),di(t,e,s))}};function Lh(e,t,s,i,u,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,d,g):t.prototype&&t.prototype.isPureReactComponent?!si(s,i)||!si(u,d):!0}function qh(e,t,s,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,i),t.state!==e&&gu.enqueueReplaceState(t,t.state,null)}function Ta(e,t){var s=t;if("ref"in t){s={};for(var i in t)i!=="ref"&&(s[i]=t[i])}if(e=e.defaultProps){s===t&&(s=b({},s));for(var u in e)s[u]===void 0&&(s[u]=e[u])}return s}function Hh(e){bl(e)}function Ph(e){console.error(e)}function Bh(e){bl(e)}function Bl(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Qh(e,t,s){try{var i=e.onCaughtError;i(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function bu(e,t,s){return s=ks(s),s.tag=3,s.payload={element:null},s.callback=function(){Bl(e,t)},s}function Gh(e){return e=ks(e),e.tag=3,e}function Yh(e,t,s,i){var u=s.type.getDerivedStateFromError;if(typeof u=="function"){var d=i.value;e.payload=function(){return u(d)},e.callback=function(){Qh(t,s,i)}}var g=s.stateNode;g!==null&&typeof g.componentDidCatch=="function"&&(e.callback=function(){Qh(t,s,i),typeof u!="function"&&(Qs===null?Qs=new Set([this]):Qs.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function Iy(e,t,s,i,u){if(s.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=s.alternate,t!==null&&ur(t,s,u,!0),s=an.current,s!==null){switch(s.tag){case 31:case 13:return yn===null?Wl():s.alternate===null&&ct===0&&(ct=3),s.flags&=-257,s.flags|=65536,s.lanes=u,i===Al?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([i]):t.add(i),Gu(e,i,u)),!1;case 22:return s.flags|=65536,i===Al?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([i]):s.add(i)),Gu(e,i,u)),!1}throw Error(o(435,s.tag))}return Gu(e,i,u),Wl(),!1}if(Pe)return t=an.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==Lc&&(e=Error(o(422),{cause:i}),ii(xn(e,s)))):(i!==Lc&&(t=Error(o(423),{cause:i}),ii(xn(t,s))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=xn(i,s),u=bu(e.stateNode,i,u),Kc(e,u),ct!==4&&(ct=2)),!1;var d=Error(o(520),{cause:i});if(d=xn(d,s),Ci===null?Ci=[d]:Ci.push(d),ct!==4&&(ct=2),t===null)return!0;
vendor: 11,943 bytes, line 48
48i=xn(i,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=u&-u,s.lanes|=e,e=bu(s.stateNode,i,e),Kc(s,e),!1;case 1:if(t=s.type,d=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Qs===null||!Qs.has(d))))return s.flags|=65536,u&=-u,s.lanes|=u,u=Gh(u),Yh(u,e,s,i),Kc(s,u),!1}s=s.return}while(s!==null);return!1}var vu=Error(o(461)),bt=!1;function _t(e,t,s,i){t.child=e===null?Km(t,null,s,i):Oa(t,e.child,s,i)}function Vh(e,t,s,i,u){s=s.render;var d=t.ref;if("ref"in i){var g={};for(var y in i)y!=="ref"&&(g[y]=i[y])}else g=i;return Na(t),i=eu(e,t,s,g,d,u),y=tu(),e!==null&&!bt?(nu(e,t,u),cs(e,t,u)):(Pe&&y&&kc(t),t.flags|=1,_t(e,t,i,u),t.child)}function Fh(e,t,s,i,u){if(e===null){var d=s.type;return typeof d=="function"&&!Dc(d)&&d.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=d,Xh(e,t,d,i,u)):(e=wl(s.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!Ou(e,u)){var g=d.memoizedProps;if(s=s.compare,s=s!==null?s:si,s(g,i)&&e.ref===t.ref)return cs(e,t,u)}return t.flags|=1,e=ss(d,i),e.ref=t.ref,e.return=t,t.child=e}function Xh(e,t,s,i,u){if(e!==null){var d=e.memoizedProps;if(si(d,i)&&e.ref===t.ref)if(bt=!1,t.pendingProps=i=d,Ou(e,u))(e.flags&131072)!==0&&(bt=!0);else return t.lanes=e.lanes,cs(e,t,u)}return yu(e,t,s,i,u)}function Kh(e,t,s,i){var u=i.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|s:s,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~d}else i=0,t.child=null;return Zh(e,t,d,s,i)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&El(t,d!==null?d.cachePool:null),d!==null?Im(t,d):$c(),Jm(t);else return i=t.lanes=536870912,Zh(e,t,d!==null?d.baseLanes|s:s,s,i)}else d!==null?(El(t,d.cachePool),Im(t,d),qs(),t.memoizedState=null):(e!==null&&El(t,null),$c(),qs());return _t(e,t,u,s),t.child}function bi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,s,i,u){var d=Yc();return d=d===null?null:{parent:xt._currentValue,pool:d},t.memoizedState={baseLanes:s,cachePool:d},e!==null&&El(t,null),$c(),Jm(t),e!==null&&ur(e,t,i,!0),t.childLanes=u,null}function Ql(e,t){return t=Yl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function $h(e,t,s){return Oa(t,e.child,null,s),e=Ql(t,t.pendingProps),e.flags|=2,rn(t),t.memoizedState=null,e}function Jy(e,t,s){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Pe){if(i.mode==="hidden")return e=Ql(t,i),t.lanes=536870912,bi(null,e);if(Jc(t),(e=tt)?(e=o0(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ms!==null?{id:Un,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},s=zm(e),s.return=t,t.child=s,Tt=t,tt=null)):e=null,e===null)throw Ds(t);return t.lanes=536870912,null}return Ql(t,i)}var d=e.memoizedState;if(d!==null){var g=d.dehydrated;if(Jc(t),u)if(t.flags&256)t.flags&=-257,t=$h(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(bt||ur(e,t,s,!1),u=(s&e.childLanes)!==0,bt||u){if(i=We,i!==null&&(g=Yt(i,s),g!==0&&g!==d.retryLane))throw d.retryLane=g,va(e,g),It(i,e,g),vu;Wl(),t=$h(e,t,s)}else e=d.treeContext,tt=jn(g.nextSibling),Tt=t,Pe=!0,_s=null,vn=!1,e!==null&&Um(t,e),t=Ql(t,i),t.flags|=4096;return t}return e=ss(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gl(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(o(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function yu(e,t,s,i,u){return Na(t),s=eu(e,t,s,i,void 0,u),i=tu(),e!==null&&!bt?(nu(e,t,u),cs(e,t,u)):(Pe&&i&&kc(t),t.flags|=1,_t(e,t,s,u),t.child)}function Ih(e,t,s,i,u,d){return Na(t),t.updateQueue=null,s=eh(t,i,s,u),Wm(e),i=tu(),e!==null&&!bt?(nu(e,t,d),cs(e,t,d)):(Pe&&i&&kc(t),t.flags|=1,_t(e,t,s,d),t.child)}function Jh(e,t,s,i,u){if(Na(t),t.stateNode===null){var d=ir,g=s.contextType;typeof g=="object"&&g!==null&&(d=Mt(g)),d=new s(i,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=gu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=i,d.state=t.memoizedState,d.refs={},Fc(t),g=s.contextType,d.context=typeof g=="object"&&g!==null?Mt(g):ir,d.state=t.memoizedState,g=s.getDerivedStateFromProps,typeof g=="function"&&(xu(t,s,g,i),d.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(g=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),g!==d.state&&gu.enqueueReplaceState(d,d.state,null),mi(t,i,d,u),fi(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){d=t.stateNode;var y=t.memoizedProps,A=Ta(s,y);d.props=A;var P=d.context,$=s.contextType;g=ir,typeof $=="object"&&$!==null&&(g=Mt($));var ee=s.getDerivedStateFromProps;$=typeof ee=="function"||typeof d.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,$||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y||P!==g)&&qh(t,d,i,g),Rs=!1;var Q=t.memoizedState;d.state=Q,mi(t,i,d,u),fi(),P=t.memoizedState,y||Q!==P||Rs?(typeof ee=="function"&&(xu(t,s,ee,i),P=t.memoizedState),(A=Rs||Lh(t,s,A,i,Q,P,g))?($||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=P),d.props=i,d.state=P,d.context=g,i=A):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{d=t.stateNode,Xc(e,t),g=t.memoizedProps,$=Ta(s,g),d.props=$,ee=t.pendingProps,Q=d.context,P=s.contextType,A=ir,typeof P=="object"&&P!==null&&(A=Mt(P)),y=s.getDerivedStateFromProps,(P=typeof y=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(g!==ee||Q!==A)&&qh(t,d,i,A),Rs=!1,Q=t.memoizedState,d.state=Q,mi(t,i,d,u),fi();var V=t.memoizedState;g!==ee||Q!==V||Rs||e!==null&&e.dependencies!==null&&Sl(e.dependencies)?(typeof y=="function"&&(xu(t,s,y,i),V=t.memoizedState),($=Rs||Lh(t,s,$,i,Q,V,A)||e!==null&&e.dependencies!==null&&Sl(e.dependencies))?(P||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(i,V,A),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(i,V,A)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=V),d.props=i,d.state=V,d.context=A,i=$):(typeof d.componentDidUpdate!="function"||g===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||g===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),i=!1)}return d=i,Gl(e,t),i=(t.flags&128)!==0,d||i?(d=t.stateNode,s=i&&typeof s.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&i?(t.child=Oa(t,e.child,null,u),t.child=Oa(t,null,s,u)):_t(e,t,s,u),t.memoizedState=d.state,e=t.child):e=cs(e,t,u),e}function Wh(e,t,s,i){return ja(),t.flags|=256,_t(e,t,s,i),t.child}var ju={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wu(e){return{baseLanes:e,cachePool:Qm()}}function Nu(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=on),e}function ep(e,t,s){var i=t.pendingProps,u=!1,d=(t.flags&128)!==0,g;if((g=d)||(g=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),g&&(u=!0,t.flags&=-129),g=(t.flags&32)!==0,t.flags&=-33,e===null){if(Pe){if(u?Ls(t):qs(),(e=tt)?(e=o0(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ms!==null?{id:Un,overflow:Ln}:null,retryLane:536870912,hydrationErrors:null},s=zm(e),s.return=t,t.child=s,Tt=t,tt=null)):e=null,e===null)throw Ds(t);return rd(e)?t.lanes=32:t.lanes=536870912,null}var y=i.children;return i=i.fallback,u?(qs(),u=t.mode,y=Yl({mode:"hidden",children:y},u),i=ya(i,u,s,null),y.return=t,i.return=t,y.sibling=i,t.child=y,i=t.child,i.memoizedState=wu(s),i.childLanes=Nu(e,g,s),t.memoizedState=ju,bi(null,i)):(Ls(t),Su(t,y))}var A=e.memoizedState;if(A!==null&&(y=A.dehydrated,y!==null)){if(d)t.flags&256?(Ls(t),t.flags&=-257,t=Cu(e,t,s)):t.memoizedState!==null?(qs(),t.child=e.child,t.flags|=128,t=null):(qs(),y=i.fallback,u=t.mode,i=Yl({mode:"visible",children:i.children},u),y=ya(y,u,s,null),y.flags|=2,i.return=t,y.return=t,i.sibling=y,t.child=i,Oa(t,e.child,null,s),i=t.child,i.memoizedState=wu(s),i.childLanes=Nu(e,g,s),t.memoizedState=ju,t=bi(null,i));else if(Ls(t),rd(y)){if(g=y.nextSibling&&y.nextSibling.dataset,g)var P=g.dgst;g=P,i=Error(o(419)),i.stack="",i.digest=g,ii({value:i,source:null,stack:null}),t=Cu(e,t,s)}else if(bt||ur(e,t,s,!1),g=(s&e.childLanes)!==0,bt||g){if(g=We,g!==null&&(i=Yt(g,s),i!==0&&i!==A.retryLane))throw A.retryLane=i,va(e,i),It(g,e,i),vu;ad(y)||Wl(),t=Cu(e,t,s)}else ad(y)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,tt=jn(y.nextSibling),Tt=t,Pe=!0,_s=null,vn=!1,e!==null&&Um(t,e),t=Su(t,i.children),t.flags|=4096);return t}return u?(qs(),y=i.fallback,u=t.mode,A=e.child,P=A.sibling,i=ss(A,{mode:"hidden",children:i.children}),i.subtreeFlags=A.subtreeFlags&65011712,P!==null?y=ss(P,y):(y=ya(y,u,s,null),y.flags|=2),y.return=t,i.return=t,i.sibling=y,t.child=i,bi(null,i),i=t.child,y=e.child.memoizedState,y===null?y=wu(s):(u=y.cachePool,u!==null?(A=xt._currentValue,u=u.parent!==A?{parent:A,pool:A}:u):u=Qm(),y={baseLanes:y.baseLanes|s,cachePool:u}),i.memoizedState=y,i.childLanes=Nu(e,g,s),t.memoizedState=ju,bi(e.child,i)):(Ls(t),s=e.child,e=s.sibling,s=ss(s,{mode:"visible",children:i.children}),s.return=t,s.sibling=null,e!==null&&(g=t.deletions,g===null?(t.deletions=[e],t.flags|=16):g.push(e)),t.child=s,t.memoizedState=null,s)}function Su(e,t){return t=Yl({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yl(e,t){return e=sn(22,e,null,t),e.lanes=0,e}function Cu(e,t,s){return Oa(t,e.child,null,s),e=Su(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function tp(e,t,s){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Pc(e.return,t,s)}function Eu(e,t,s,i,u,d){var g=e.memoizedState;g===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:s,tailMode:u,treeForkCount:d}:(g.isBackwards=t,g.rendering=null,g.renderingStartTime=0,g.last=i,g.tail=s,g.tailMode=u,g.treeForkCount=d)}function np(e,t,s){var i=t.pendingProps,u=i.revealOrder,d=i.tail;i=i.children;var g=mt.current,y=(g&2)!==0;if(y?(g=g&1|2,t.flags|=128):g&=1,k(mt,g),_t(e,t,i,s),i=Pe?ri:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tp(e,s,t);else if(e.tag===19)tp(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(s=t.child,u=null;s!==null;)e=s.alternate,e!==null&&Dl(e)===null&&(u=s),s=s.sibling;
vendor: 5,067 bytes, line 48
48s=u,s===null?(u=t.child,t.child=null):(u=s.sibling,s.sibling=null),Eu(t,!1,u,s,d,i);break;case"backwards":case"unstable_legacy-backwards":for(s=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Dl(e)===null){t.child=u;break}e=u.sibling,u.sibling=s,s=u,u=e}Eu(t,!0,s,null,d,i);break;case"together":Eu(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function cs(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),Bs|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(ur(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,s=ss(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=ss(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function Ou(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Sl(e)))}function Wy(e,t,s){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),zs(t,xt,e.memoizedState.cache),ja();break;case 27:case 5:Ie(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:zs(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Jc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ls(t),t.flags|=128,null):(s&t.child.childLanes)!==0?ep(e,t,s):(Ls(t),e=cs(e,t,s),e!==null?e.sibling:null);Ls(t);break;case 19:var u=(e.flags&128)!==0;if(i=(s&t.childLanes)!==0,i||(ur(e,t,s,!1),i=(s&t.childLanes)!==0),u){if(i)return np(e,t,s);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),k(mt,mt.current),i)break;return null;case 22:return t.lanes=0,Kh(e,t,s,t.pendingProps);case 24:zs(t,xt,e.memoizedState.cache)}return cs(e,t,s)}function sp(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)bt=!0;else{if(!Ou(e,s)&&(t.flags&128)===0)return bt=!1,Wy(e,t,s);bt=(e.flags&131072)!==0}else bt=!1,Pe&&(t.flags&1048576)!==0&&km(t,ri,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e=="function")Dc(e)?(i=Ta(e,i),t.tag=1,t=Jh(null,t,e,i,s)):(t.tag=0,t=yu(null,t,e,i,s));else{if(e!=null){var u=e.$$typeof;if(u===oe){t.tag=11,t=Vh(null,t,e,i,s);break e}else if(u===z){t.tag=14,t=Fh(null,t,e,i,s);break e}}throw t=ie(e)||e,Error(o(306,t,""))}}return t;case 0:return yu(e,t,t.type,t.pendingProps,s);case 1:return i=t.type,u=Ta(i,t.pendingProps),Jh(e,t,i,u,s);case 3:e:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(o(387));i=t.pendingProps;var d=t.memoizedState;u=d.element,Xc(e,t),mi(t,i,null,s);var g=t.memoizedState;if(i=g.cache,zs(t,xt,i),i!==d.cache&&Bc(t,[xt],s,!0),fi(),i=g.element,d.isDehydrated)if(d={element:i,isDehydrated:!1,cache:g.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=Wh(e,t,i,s);break e}else if(i!==u){u=xn(Error(o(424)),t),ii(u),t=Wh(e,t,i,s);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(tt=jn(e.firstChild),Tt=t,Pe=!0,_s=null,vn=!0,s=Km(t,null,i,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(ja(),i===u){t=cs(e,t,s);break e}_t(e,t,i,s)}t=t.child}return t;case 26:return Gl(e,t),e===null?(s=h0(t.type,null,t.pendingProps,null))?t.memoizedState=s:Pe||(s=t.type,e=t.pendingProps,i=io(W.current).createElement(s),i[At]=t,i[Vt]=e,Dt(i,s,e),St(i),t.stateNode=i):t.memoizedState=h0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ie(t),e===null&&Pe&&(i=t.stateNode=d0(t.type,t.pendingProps,W.current),Tt=t,vn=!0,u=tt,Fs(t.type)?(id=u,tt=jn(i.firstChild)):tt=u),_t(e,t,t.pendingProps.children,s),Gl(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pe&&((u=i=tt)&&(i=T1(i,t.type,t.pendingProps,vn),i!==null?(t.stateNode=i,Tt=t,tt=jn(i.firstChild),vn=!1,u=!0):u=!1),u||Ds(t)),Ie(t),u=t.type,d=t.pendingProps,g=e!==null?e.memoizedProps:null,i=d.children,td(u,d)?i=null:g!==null&&td(u,g)&&(t.flags|=32),t.memoizedState!==null&&(u=eu(e,t,Yy,null,null,s),zi._currentValue=u),Gl(e,t),_t(e,t,i,s),t.child;case 6:return e===null&&Pe&&((e=s=tt)&&(s=M1(s,t.pendingProps,vn),s!==null?(t.stateNode=s,Tt=t,tt=null,e=!0):e=!1),e||Ds(t)),null;case 13:return ep(e,t,s);case 4:return ue(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Oa(t,null,i,s):_t(e,t,i,s),t.child;case 11:return Vh(e,t,t.type,t.pendingProps,s);case 7:return _t(e,t,t.pendingProps,s),t.child;case 8:return _t(e,t,t.pendingProps.children,s),t.child;case 12:return _t(e,t,t.pendingProps.children,s),t.child;case 10:return i=t.pendingProps,zs(t,t.type,i.value),_t(e,t,i.children,s),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Na(t),u=Mt(u),i=i(u),t.flags|=1,_t(e,t,i,s),t.child;case 14:return Fh(e,t,t.type,t.pendingProps,s);case 15:return Xh(e,t,t.type,t.pendingProps,s);case 19:return np(e,t,s);case 31:return Jy(e,t,s);case 22:return Kh(e,t,s,t.pendingProps);case 24:return Na(t),i=Mt(xt),e===null?(u=Yc(),u===null&&(u=We,d=Qc(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=s),u=d),t.memoizedState={parent:i,
vendor: 9,354 bytes, line 48
48cache:u},Fc(t),zs(t,xt,u)):((e.lanes&s)!==0&&(Xc(e,t),mi(t,null,null,s),fi()),u=e.memoizedState,d=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),zs(t,xt,i)):(i=d.cache,zs(t,xt,i),i!==u.cache&&Bc(t,[xt],s,!0))),_t(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function us(e){e.flags|=4}function Au(e,t,s,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Mp())e.flags|=8192;else throw Ea=Al,Vc}else e.flags&=-16777217}function ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!v0(t))if(Mp())e.flags|=8192;else throw Ea=Al,Vc}function Vl(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kt():536870912,e.lanes|=t,wr|=t)}function vi(e,t){if(!Pe)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function nt(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,i=0;if(t)for(var u=e.child;u!==null;)s|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)s|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=s,t}function e1(e,t,s){var i=t.pendingProps;switch(Uc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return nt(t),null;case 1:return nt(t),null;case 3:return s=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),is(xt),ve(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(cr(t)?us(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,qc())),nt(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(us(t),d!==null?(nt(t),ap(t,d)):(nt(t),Au(t,u,null,i,s))):d?d!==e.memoizedState?(us(t),nt(t),ap(t,d)):(nt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&us(t),nt(t),Au(t,u,e,i,s)),null;case 27:if(lt(t),s=W.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&us(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return nt(t),null}e=M.current,cr(t)?Lm(t):(e=d0(u,i,s),t.stateNode=e,us(t))}return nt(t),null;case 5:if(lt(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&us(t);else{if(!i){if(t.stateNode===null)throw Error(o(166));return nt(t),null}if(d=M.current,cr(t))Lm(t);else{var g=io(W.current);switch(d){case 1:d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=g.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=g.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=g.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof i.is=="string"?g.createElement("select",{is:i.is}):g.createElement("select"),i.multiple?d.multiple=!0:i.size&&(d.size=i.size);break;default:d=typeof i.is=="string"?g.createElement(u,{is:i.is}):g.createElement(u)}}d[At]=t,d[Vt]=i;e:for(g=t.child;g!==null;){if(g.tag===5||g.tag===6)d.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===t)break e;for(;g.sibling===null;){if(g.return===null||g.return===t)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}t.stateNode=d;e:switch(Dt(d,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&us(t)}}return nt(t),Au(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&us(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(o(166));if(e=W.current,cr(t)){if(e=t.stateNode,s=t.memoizedProps,i=null,u=Tt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[At]=t,e=!!(e.nodeValue===s||i!==null&&i.suppressHydrationWarning===!0||e0(e.nodeValue,s)),e||Ds(t,!0)}else e=io(e).createTextNode(i),e[At]=t,t.stateNode=e}return nt(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(i=cr(t),s!==null){if(e===null){if(!i)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[At]=t}else ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),e=!1}else s=qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(rn(t),t):(rn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return nt(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=cr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[At]=t}else ja(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;nt(t),u=!1}else u=qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(rn(t),t):(rn(t),null)}return rn(t),(t.flags&128)!==0?(t.lanes=s,t):(s=i!==null,e=e!==null&&e.memoizedState!==null,s&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==u&&(i.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),Vl(t,t.updateQueue),nt(t),null);case 4:return ve(),e===null&&$u(t.stateNode.containerInfo),nt(t),null;case 10:return is(t.type),nt(t),null;case 19:if(G(mt),i=t.memoizedState,i===null)return nt(t),null;if(u=(t.flags&128)!==0,d=i.rendering,d===null)if(u)vi(i,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=Dl(e),d!==null){for(t.flags|=128,vi(i,!1),e=d.updateQueue,t.updateQueue=e,Vl(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Dm(s,e),s=s.sibling;return k(mt,mt.current&1|2),Pe&&as(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&wt()>$l&&(t.flags|=128,u=!0,vi(i,!1),t.lanes=4194304)}else{if(!u)if(e=Dl(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Vl(t,e),vi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!d.alternate&&!Pe)return nt(t),null}else 2*wt()-i.renderingStartTime>$l&&s!==536870912&&(t.flags|=128,u=!0,vi(i,!1),t.lanes=4194304);i.isBackwards?(d.sibling=t.child,t.child=d):(e=i.last,e!==null?e.sibling=d:t.child=d,i.last=d)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=wt(),e.sibling=null,s=mt.current,k(mt,u?s&1|2:s&1),Pe&&as(t,i.treeForkCount),e):(nt(t),null);case 22:case 23:return rn(t),Ic(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(s&536870912)!==0&&(t.flags&128)===0&&(nt(t),t.subtreeFlags&6&&(t.flags|=8192)):nt(t),s=t.updateQueue,s!==null&&Vl(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==s&&(t.flags|=2048),e!==null&&G(Sa),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),is(xt),nt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function t1(e,t){switch(Uc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return is(xt),ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return lt(t),null;case 31:if(t.memoizedState!==null){if(rn(t),t.alternate===null)throw Error(o(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(rn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));ja()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(mt),null;case 4:return ve(),null;case 10:return is(t.type),null;case 22:case 23:return rn(t),Ic(),e!==null&&G(Sa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return is(xt),null;case 25:return null;default:return null}}function rp(e,t){switch(Uc(t),t.tag){case 3:is(xt),ve();break;case 26:case 27:case 5:lt(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&rn(t);break;case 13:rn(t);break;case 19:G(mt);break;case 10:is(t.type);break;case 22:case 23:rn(t),Ic(),e!==null&&G(Sa);break;case 24:is(xt)}}function yi(e,t){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var u=i.next;s=u;do{if((s.tag&e)===e){i=void 0;var d=s.create,g=s.inst;i=d(),g.destroy=i}s=s.next}while(s!==u)}}catch(y){Xe(t,t.return,y)}}function Hs(e,t,s){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var d=u.next;i=d;do{if((i.tag&e)===e){var g=i.inst,y=g.destroy;if(y!==void 0){g.destroy=void 0,u=t;var A=s,P=y;try{P()}catch($){Xe(u,A,$)}}}i=i.next}while(i!==d)}}catch($){Xe(t,t.return,$)}}function ip(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{$m(t,s)}catch(i){Xe(e,e.return,i)}}}function lp(e,t,s){s.props=Ta(e.type,e.memoizedProps),s.state=e.memoizedState;
vendor: 20,247 bytes, line 48
48try{s.componentWillUnmount()}catch(i){Xe(e,t,i)}}function ji(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof s=="function"?e.refCleanup=s(i):s.current=i}}catch(u){Xe(e,t,u)}}function qn(e,t){var s=e.ref,i=e.refCleanup;if(s!==null)if(typeof i=="function")try{i()}catch(u){Xe(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(u){Xe(e,t,u)}else s.current=null}function op(e){var t=e.type,s=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&i.focus();break e;case"img":s.src?i.src=s.src:s.srcSet&&(i.srcset=s.srcSet)}}catch(u){Xe(e,e.return,u)}}function Tu(e,t,s){try{var i=e.stateNode;N1(i,e.type,s,t),i[Vt]=t}catch(u){Xe(e,e.return,u)}}function cp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Fs(e.type)||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Fs(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _u(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=ts));else if(i!==4&&(i===27&&Fs(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(_u(e,t,s),e=e.sibling;e!==null;)_u(e,t,s),e=e.sibling}function Fl(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(i!==4&&(i===27&&Fs(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(Fl(e,t,s),e=e.sibling;e!==null;)Fl(e,t,s),e=e.sibling}function up(e){var t=e.stateNode,s=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);Dt(t,i,s),t[At]=e,t[Vt]=s}catch(d){Xe(e,e.return,d)}}var ds=!1,vt=!1,Du=!1,dp=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function n1(e,t){if(e=e.containerInfo,Wu=ho,e=Nm(e),Cc(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var i=s.getSelection&&s.getSelection();if(i&&i.rangeCount!==0){s=i.anchorNode;var u=i.anchorOffset,d=i.focusNode;i=i.focusOffset;try{s.nodeType,d.nodeType}catch{s=null;break e}var g=0,y=-1,A=-1,P=0,$=0,ee=e,Q=null;t:for(;;){for(var V;ee!==s||u!==0&&ee.nodeType!==3||(y=g+u),ee!==d||i!==0&&ee.nodeType!==3||(A=g+i),ee.nodeType===3&&(g+=ee.nodeValue.length),(V=ee.firstChild)!==null;)Q=ee,ee=V;for(;;){if(ee===e)break t;if(Q===s&&++P===u&&(y=g),Q===d&&++$===i&&(A=g),(V=ee.nextSibling)!==null)break;ee=Q,Q=ee.parentNode}ee=V}s=y===-1||A===-1?null:{start:y,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(ed={focusedElem:e,selectionRange:s},ho=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)u=e[s],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,s=t,u=d.memoizedProps,d=d.memoizedState,i=s.stateNode;try{var xe=Ta(s.type,u);e=i.getSnapshotBeforeUpdate(xe,d),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){Xe(s,s.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)sd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}}function fp(e,t,s){var i=s.flags;switch(s.tag){case 0:case 11:case 15:ms(e,s),i&4&&yi(5,s);break;case 1:if(ms(e,s),i&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(g){Xe(s,s.return,g)}else{var u=Ta(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(g){Xe(s,s.return,g)}}i&64&&ip(s),i&512&&ji(s,s.return);break;case 3:if(ms(e,s),i&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{$m(e,t)}catch(g){Xe(s,s.return,g)}}break;case 27:t===null&&i&4&&up(s);case 26:case 5:ms(e,s),t===null&&i&4&&op(s),i&512&&ji(s,s.return);break;case 12:ms(e,s);break;case 31:ms(e,s),i&4&&pp(e,s);break;case 13:ms(e,s),i&4&&xp(e,s),i&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=d1.bind(null,s),_1(e,s))));break;case 22:if(i=s.memoizedState!==null||ds,!i){t=t!==null&&t.memoizedState!==null||vt,u=ds;var d=vt;ds=i,(vt=t)&&!d?hs(e,s,(s.subtreeFlags&8772)!==0):ms(e,s),ds=u,vt=d}break;case 30:break;default:ms(e,s)}}function mp(e){var t=e.alternate;t!==null&&(e.alternate=null,mp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&oc(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var at=null,Xt=!1;function fs(e,t,s){for(s=s.child;s!==null;)hp(e,t,s),s=s.sibling}function hp(e,t,s){if(Je&&typeof Je.onCommitFiberUnmount=="function")try{Je.onCommitFiberUnmount(rt,s)}catch{}switch(s.tag){case 26:vt||qn(s,t),fs(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:vt||qn(s,t);var i=at,u=Xt;Fs(s.type)&&(at=s.stateNode,Xt=!1),fs(e,t,s),Mi(s.stateNode),at=i,Xt=u;break;case 5:vt||qn(s,t);case 6:if(i=at,u=Xt,at=null,fs(e,t,s),at=i,Xt=u,at!==null)if(Xt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(s.stateNode)}catch(d){Xe(s,t,d)}else try{at.removeChild(s.stateNode)}catch(d){Xe(s,t,d)}break;case 18:at!==null&&(Xt?(e=at,i0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Mr(e)):i0(at,s.stateNode));break;case 4:i=at,u=Xt,at=s.stateNode.containerInfo,Xt=!0,fs(e,t,s),at=i,Xt=u;break;case 0:case 11:case 14:case 15:Hs(2,s,t),vt||Hs(4,s,t),fs(e,t,s);break;case 1:vt||(qn(s,t),i=s.stateNode,typeof i.componentWillUnmount=="function"&&lp(s,t,i)),fs(e,t,s);break;case 21:fs(e,t,s);break;case 22:vt=(i=vt)||s.memoizedState!==null,fs(e,t,s),vt=i;break;default:fs(e,t,s)}}function pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Mr(e)}catch(s){Xe(t,t.return,s)}}}function xp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Mr(e)}catch(s){Xe(t,t.return,s)}}function s1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dp),t;default:throw Error(o(435,e.tag))}}function Xl(e,t){var s=s1(e);t.forEach(function(i){if(!s.has(i)){s.add(i);var u=f1.bind(null,e,i);i.then(u,u)}})}function Kt(e,t){var s=t.deletions;if(s!==null)for(var i=0;i<s.length;i++){var u=s[i],d=e,g=t,y=g;e:for(;y!==null;){switch(y.tag){case 27:if(Fs(y.type)){at=y.stateNode,Xt=!1;break e}break;case 5:at=y.stateNode,Xt=!1;break e;case 3:case 4:at=y.stateNode.containerInfo,Xt=!0;break e}y=y.return}if(at===null)throw Error(o(160));hp(d,g,u),at=null,Xt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gp(t,e),t=t.sibling}var An=null;function gp(e,t){var s=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Kt(t,e),Zt(e),i&4&&(Hs(3,e,e.return),yi(3,e),Hs(5,e,e.return));break;case 1:Kt(t,e),Zt(e),i&512&&(vt||s===null||qn(s,s.return)),i&64&&ds&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?i:s.concat(i))));break;case 26:var u=An;if(Kt(t,e),Zt(e),i&512&&(vt||s===null||qn(s,s.return)),i&4){var d=s!==null?s.memoizedState:null;if(i=e.memoizedState,s===null)if(i===null)if(e.stateNode===null){e:{i=e.type,s=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":d=u.getElementsByTagName("title")[0],(!d||d[Kr]||d[At]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(i),u.head.insertBefore(d,u.querySelector("head > title"))),Dt(d,i,s),d[At]=e,St(d),i=d;break e;case"link":var g=g0("link","href",u).get(i+(s.href||""));if(g){for(var y=0;y<g.length;y++)if(d=g[y],d.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&d.getAttribute("rel")===(s.rel==null?null:s.rel)&&d.getAttribute("title")===(s.title==null?null:s.title)&&d.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){g.splice(y,1);break t}}d=u.createElement(i),Dt(d,i,s),u.head.appendChild(d);break;case"meta":if(g=g0("meta","content",u).get(i+(s.content||""))){for(y=0;y<g.length;y++)if(d=g[y],d.getAttribute("content")===(s.content==null?null:""+s.content)&&d.getAttribute("name")===(s.name==null?null:s.name)&&d.getAttribute("property")===(s.property==null?null:s.property)&&d.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&d.getAttribute("charset")===(s.charSet==null?null:s.charSet)){g.splice(y,1);break t}}d=u.createElement(i),Dt(d,i,s),u.head.appendChild(d);break;default:throw Error(o(468,i))}d[At]=e,St(d),i=d}e.stateNode=i}else b0(u,e.type,e.stateNode);else e.stateNode=x0(u,i,e.memoizedProps);else d!==i?(d===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):d.count--,i===null?b0(u,e.type,e.stateNode):x0(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Tu(e,e.memoizedProps,s.memoizedProps)}break;case 27:Kt(t,e),Zt(e),i&512&&(vt||s===null||qn(s,s.return)),s!==null&&i&4&&Tu(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Kt(t,e),Zt(e),i&512&&(vt||s===null||qn(s,s.return)),e.flags&32){u=e.stateNode;try{Wa(u,"")}catch(xe){Xe(e,e.return,xe)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,Tu(e,u,s!==null?s.memoizedProps:u)),i&1024&&(Du=!0);break;case 6:if(Kt(t,e),Zt(e),i&4){if(e.stateNode===null)throw Error(o(162));i=e.memoizedProps,s=e.stateNode;try{s.nodeValue=i}catch(xe){Xe(e,e.return,xe)}}break;case 3:if(co=null,u=An,An=lo(t.containerInfo),Kt(t,e),An=u,Zt(e),i&4&&s!==null&&s.memoizedState.isDehydrated)try{Mr(t.containerInfo)}catch(xe){Xe(e,e.return,xe)}Du&&(Du=!1,bp(e));break;case 4:i=An,An=lo(e.stateNode.containerInfo),Kt(t,e),Zt(e),An=i;break;case 12:Kt(t,e),Zt(e);break;case 31:Kt(t,e),Zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Xl(e,i)));break;case 13:Kt(t,e),Zt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Zl=wt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Xl(e,i)));break;case 22:u=e.memoizedState!==null;var A=s!==null&&s.memoizedState!==null,P=ds,$=vt;if(ds=P||u,vt=$||A,Kt(t,e),vt=$,ds=P,Zt(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(s===null||A||ds||vt||Ma(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){A=s=t;try{if(d=A.stateNode,u)g=d.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none";else{y=A.stateNode;var ee=A.memoizedProps.style,Q=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;y.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(xe){Xe(A,A.return,xe)}}}else if(t.tag===6){if(s===null){A=t;try{A.stateNode.nodeValue=u?"":A.memoizedProps}catch(xe){Xe(A,A.return,xe)}}}else if(t.tag===18){if(s===null){A=t;try{var V=A.stateNode;u?l0(V,!0):l0(A.stateNode,!1)}catch(xe){Xe(A,A.return,xe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(s=i.retryQueue,s!==null&&(i.retryQueue=null,Xl(e,s))));break;case 19:Kt(t,e),Zt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Xl(e,i)));break;case 30:break;case 21:break;default:Kt(t,e),Zt(e)}}function Zt(e){var t=e.flags;if(t&2){try{for(var s,i=e.return;i!==null;){if(cp(i)){s=i;break}i=i.return}if(s==null)throw Error(o(160));switch(s.tag){case 27:var u=s.stateNode,d=Mu(e);Fl(e,d,u);break;case 5:var g=s.stateNode;s.flags&32&&(Wa(g,""),s.flags&=-33);var y=Mu(e);Fl(e,y,g);break;case 3:case 4:var A=s.stateNode.containerInfo,P=Mu(e);_u(e,P,A);break;default:throw Error(o(161))}}catch($){Xe(e,e.return,$)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ms(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fp(e,t.alternate,t),t=t.sibling}function Ma(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Hs(4,t,t.return),Ma(t);break;case 1:qn(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&lp(t,t.return,s),Ma(t);break;case 27:Mi(t.stateNode);case 26:case 5:qn(t,t.return),Ma(t);break;case 22:t.memoizedState===null&&Ma(t);break;case 30:Ma(t);break;default:Ma(t)}e=e.sibling}}function hs(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,d=t,g=d.flags;switch(d.tag){case 0:case 11:case 15:hs(u,d,s),yi(4,d);break;case 1:if(hs(u,d,s),i=d,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(P){Xe(i,i.return,P)}if(i=d,u=i.updateQueue,u!==null){var y=i.stateNode;try{var A=u.shared.hiddenCallbacks;if(A!==null)for(u.shared.hiddenCallbacks=null,u=0;u<A.length;u++)Zm(A[u],y)}catch(P){Xe(i,i.return,P)}}s&&g&64&&ip(d),ji(d,d.return);break;case 27:up(d);case 26:case 5:hs(u,d,s),s&&i===null&&g&4&&op(d),ji(d,d.return);break;case 12:hs(u,d,s);break;case 31:hs(u,d,s),s&&g&4&&pp(u,d);break;case 13:hs(u,d,s),s&&g&4&&xp(u,d);break;case 22:d.memoizedState===null&&hs(u,d,s),ji(d,d.return);break;case 30:break;default:hs(u,d,s)}t=t.sibling}}function zu(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&li(s))}function Ru(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e))}function Tn(e,t,s,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)vp(e,t,s,i),t=t.sibling}function vp(e,t,s,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Tn(e,t,s,i),u&2048&&yi(9,t);break;case 1:Tn(e,t,s,i);break;case 3:Tn(e,t,s,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&li(e)));break;case 12:if(u&2048){Tn(e,t,s,i),e=t.stateNode;try{var d=t.memoizedProps,g=d.id,y=d.onPostCommit;typeof y=="function"&&y(g,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Xe(t,t.return,A)}}else Tn(e,t,s,i);break;case 31:Tn(e,t,s,i);break;case 13:Tn(e,t,s,i);break;case 23:break;case 22:d=t.stateNode,g=t.alternate,t.memoizedState!==null?d._visibility&2?Tn(e,t,s,i):wi(e,t):d._visibility&2?Tn(e,t,s,i):(d._visibility|=2,vr(e,t,s,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&zu(g,t);break;case 24:Tn(e,t,s,i),u&2048&&Ru(t.alternate,t);break;default:Tn(e,t,s,i)}}function vr(e,t,s,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,g=t,y=s,A=i,P=g.flags;switch(g.tag){case 0:case 11:case 15:vr(d,g,y,A,u),yi(8,g);break;case 23:break;case 22:var $=g.stateNode;g.memoizedState!==null?$._visibility&2?vr(d,g,y,A,u):wi(d,g):($._visibility|=2,vr(d,g,y,A,u)),u&&P&2048&&zu(g.alternate,g);break;case 24:vr(d,g,y,A,u),u&&P&2048&&Ru(g.alternate,g);break;default:vr(d,g,y,A,u)}t=t.sibling}}function wi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,i=t,u=i.flags;switch(i.tag){case 22:wi(s,i),u&2048&&zu(i.alternate,i);break;case 24:wi(s,i),u&2048&&Ru(i.alternate,i);break;default:wi(s,i)}t=t.sibling}}var Ni=8192;function yr(e,t,s){if(e.subtreeFlags&Ni)for(e=e.child;e!==null;)yp(e,t,s),e=e.sibling}function yp(e,t,s){switch(e.tag){case 26:yr(e,t,s),e.flags&Ni&&e.memoizedState!==null&&G1(s,An,e.memoizedState,e.memoizedProps);break;case 5:yr(e,t,s);break;case 3:case 4:var i=An;An=lo(e.stateNode.containerInfo),yr(e,t,s),An=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Ni,Ni=16777216,yr(e,t,s),Ni=i):yr(e,t,s));break;default:yr(e,t,s)}}function jp(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Si(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];Ct=i,Np(i,e)}jp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wp(e),e=e.sibling}function wp(e){switch(e.tag){case 0:case 11:case 15:Si(e),e.flags&2048&&Hs(9,e,e.return);break;case 3:Si(e);break;case 12:Si(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kl(e)):Si(e);break;default:Si(e)}}function Kl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];Ct=i,Np(i,e)}jp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Hs(8,t,t.return),Kl(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,Kl(t));break;default:Kl(t)}e=e.sibling}}function Np(e,t){for(;Ct!==null;){var s=Ct;switch(s.tag){case 0:case 11:case 15:Hs(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var i=s.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:li(s.memoizedState.cache)}if(i=s.child,i!==null)i.return=s,Ct=i;else e:for(s=e;Ct!==null;){i=Ct;var u=i.sibling,d=i.return;if(mp(i),i===s){Ct=null;break e}if(u!==null){u.return=d,Ct=u;break e}Ct=d}}}var a1={getCacheForType:function(e){var t=Mt(xt),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return Mt(xt).controller.signal}},r1=typeof WeakMap=="function"?WeakMap:Map,Ve=0,We=null,ke=null,Le=0,Fe=0,ln=null,Ps=!1,jr=!1,ku=!1,ps=0,ct=0,Bs=0,_a=0,Uu=0,on=0,wr=0,Ci=null,$t=null,Lu=!1,Zl=0,Sp=0,$l=1/0,Il=null,Qs=null,yt=0,Gs=null,Nr=null,xs=0,qu=0,Hu=null,Cp=null,Ei=0,Pu=null;function cn(){return(Ve&2)!==0&&Le!==0?Le&-Le:N.T!==null?Fu():ic()}function Ep(){if(on===0)if((Le&536870912)===0||Pe){var e=Va;Va<<=1,(Va&3932160)===0&&(Va=262144),on=e}else on=536870912;return e=an.current,e!==null&&(e.flags|=32),on}function It(e,t,s){(e===We&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)&&(Sr(e,0),Ys(e,Le,on,!1)),it(e,s),((Ve&2)===0||e!==We)&&(e===We&&((Ve&2)===0&&(_a|=s),ct===4&&Ys(e,Le,on,!1)),Hn(e))}function Op(e,t,s){if((Ve&6)!==0)throw Error(o(327));var i=!s&&(t&127)===0&&(t&e.expiredLanes)===0||st(e,t),u=i?o1(e,t):Qu(e,t,!0),d=i;do{if(u===0){jr&&!i&&Ys(e,t,0,!1);break}else{if(s=e.current.alternate,d&&!i1(s)){u=Qu(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var g=0;else g=e.pendingLanes&-536870913,g=g!==0?g:g&536870912?536870912:0;if(g!==0){t=g;e:{var y=e;u=Ci;var A=y.current.memoizedState.isDehydrated;if(A&&(Sr(y,g).flags|=256),g=Qu(y,g,!1),g!==2){if(ku&&!A){y.errorRecoveryDisabledLanes|=d,_a|=d,u=4;break e}d=$t,$t=u,d!==null&&($t===null?$t=d:$t.push.apply($t,d))}u=g}if(d=!1,u!==2)continue}}if(u===1){Sr(e,0),Ys(e,t,0,!0);break}e:{switch(i=e,d=u,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ys(i,t,on,!Ps);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=Zl+300-wt(),10<u)){if(Ys(i,t,on,!Ps),Oe(i,0,!0)!==0)break e;xs=t,i.timeoutHandle=a0(Ap.bind(null,i,s,$t,Il,Lu,t,on,_a,wr,Ps,d,"Throttled",-0,0),u);break e}Ap(i,s,$t,Il,Lu,t,on,_a,wr,Ps,d,null,-0,0)}}break}while(!0);Hn(e)}function Ap(e,t,s,i,u,d,g,y,A,P,$,ee,Q,V){if(e.timeoutHandle=-1,ee=t.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ts},yp(t,d,ee);
vendor: 16,513 bytes, line 48
48var xe=(d&62914560)===d?Zl-wt():(d&4194048)===d?Sp-wt():0;if(xe=Y1(ee,xe),xe!==null){xs=d,e.cancelPendingCommit=xe(Up.bind(null,e,t,d,s,i,u,g,y,A,$,ee,null,Q,V)),Ys(e,d,g,!P);return}}Up(e,t,d,s,i,u,g,y,A)}function i1(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var i=0;i<s.length;i++){var u=s[i],d=u.getSnapshot;u=u.value;try{if(!nn(d(),u))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ys(e,t,s,i){t&=~Uu,t&=~_a,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var d=31-ft(u),g=1<<d;i[d]=-1,u&=~g}s!==0&&ha(e,s,t)}function Jl(){return(Ve&6)===0?(Oi(0),!1):!0}function Bu(){if(ke!==null){if(Fe===0)var e=ke.return;else e=ke,rs=wa=null,su(e),hr=null,ci=0,e=ke;for(;e!==null;)rp(e.alternate,e),e=e.return;ke=null}}function Sr(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,E1(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),xs=0,Bu(),We=e,ke=s=ss(e.current,null),Le=t,Fe=0,ln=null,Ps=!1,jr=st(e,t),ku=!1,wr=on=Uu=_a=Bs=ct=0,$t=Ci=null,Lu=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-ft(i),d=1<<u;t|=e[u],i&=~d}return ps=t,vl(),s}function Tp(e,t){Me=null,N.H=gi,t===mr||t===Ol?(t=Vm(),Fe=3):t===Vc?(t=Vm(),Fe=4):Fe=t===vu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ln=t,ke===null&&(ct=1,Bl(e,xn(t,e.current)))}function Mp(){var e=an.current;return e===null?!0:(Le&4194048)===Le?yn===null:(Le&62914560)===Le||(Le&536870912)!==0?e===yn:!1}function _p(){var e=N.H;return N.H=gi,e===null?gi:e}function Dp(){var e=N.A;return N.A=a1,e}function Wl(){ct=4,Ps||(Le&4194048)!==Le&&an.current!==null||(jr=!0),(Bs&134217727)===0&&(_a&134217727)===0||We===null||Ys(We,Le,on,!1)}function Qu(e,t,s){var i=Ve;Ve|=2;var u=_p(),d=Dp();(We!==e||Le!==t)&&(Il=null,Sr(e,t)),t=!1;var g=ct;e:do try{if(Fe!==0&&ke!==null){var y=ke,A=ln;switch(Fe){case 8:Bu(),g=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var P=Fe;if(Fe=0,ln=null,Cr(e,y,A,P),s&&jr){g=0;break e}break;default:P=Fe,Fe=0,ln=null,Cr(e,y,A,P)}}l1(),g=ct;break}catch($){Tp(e,$)}while(!0);return t&&e.shellSuspendCounter++,rs=wa=null,Ve=i,N.H=u,N.A=d,ke===null&&(We=null,Le=0,vl()),g}function l1(){for(;ke!==null;)zp(ke)}function o1(e,t){var s=Ve;Ve|=2;var i=_p(),u=Dp();We!==e||Le!==t?(Il=null,$l=wt()+500,Sr(e,t)):jr=st(e,t);e:do try{if(Fe!==0&&ke!==null){t=ke;var d=ln;t:switch(Fe){case 1:Fe=0,ln=null,Cr(e,t,d,1);break;case 2:case 9:if(Gm(d)){Fe=0,ln=null,Rp(t);break}t=function(){Fe!==2&&Fe!==9||We!==e||(Fe=7),Hn(e)},d.then(t,t);break e;case 3:Fe=7;break e;case 4:Fe=5;break e;case 7:Gm(d)?(Fe=0,ln=null,Rp(t)):(Fe=0,ln=null,Cr(e,t,d,7));break;case 5:var g=null;switch(ke.tag){case 26:g=ke.memoizedState;case 5:case 27:var y=ke;if(g?v0(g):y.stateNode.complete){Fe=0,ln=null;var A=y.sibling;if(A!==null)ke=A;else{var P=y.return;P!==null?(ke=P,eo(P)):ke=null}break t}}Fe=0,ln=null,Cr(e,t,d,5);break;case 6:Fe=0,ln=null,Cr(e,t,d,6);break;case 8:Bu(),ct=6;break e;default:throw Error(o(462))}}c1();break}catch($){Tp(e,$)}while(!0);return rs=wa=null,N.H=i,N.A=u,Ve=s,ke!==null?0:(We=null,Le=0,vl(),ct)}function c1(){for(;ke!==null&&!Ot();)zp(ke)}function zp(e){var t=sp(e.alternate,e,ps);e.memoizedProps=e.pendingProps,t===null?eo(e):ke=t}function Rp(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=Ih(s,t,t.pendingProps,t.type,void 0,Le);break;case 11:t=Ih(s,t,t.pendingProps,t.type.render,t.ref,Le);break;case 5:su(t);default:rp(s,t),t=ke=Dm(t,ps),t=sp(s,t,ps)}e.memoizedProps=e.pendingProps,t===null?eo(e):ke=t}function Cr(e,t,s,i){rs=wa=null,su(t),hr=null,ci=0;var u=t.return;try{if(Iy(e,u,t,s,Le)){ct=1,Bl(e,xn(s,e.current)),ke=null;return}}catch(d){if(u!==null)throw ke=u,d;ct=1,Bl(e,xn(s,e.current)),ke=null;return}t.flags&32768?(Pe||i===1?e=!0:jr||(Le&536870912)!==0?e=!1:(Ps=e=!0,(i===2||i===9||i===3||i===6)&&(i=an.current,i!==null&&i.tag===13&&(i.flags|=16384))),kp(t,e)):eo(t)}function eo(e){var t=e;do{if((t.flags&32768)!==0){kp(t,Ps);return}e=t.return;var s=e1(t.alternate,t,ps);if(s!==null){ke=s;return}if(t=t.sibling,t!==null){ke=t;return}ke=t=e}while(t!==null);ct===0&&(ct=5)}function kp(e,t){do{var s=t1(e.alternate,e);if(s!==null){s.flags&=32767,ke=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){ke=e;return}ke=e=s}while(e!==null);ct=6,ke=null}function Up(e,t,s,i,u,d,g,y,A){e.cancelPendingCommit=null;do to();while(yt!==0);if((Ve&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=Mc,Qt(e,s,d,g,y,A),e===We&&(ke=We=null,Le=0),Nr=t,Gs=e,xs=s,qu=d,Hu=u,Cp=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,m1(Jn,function(){return Bp(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=N.T,N.T=null,u=L.p,L.p=2,g=Ve,Ve|=4;try{n1(e,t,s)}finally{Ve=g,L.p=u,N.T=i}}yt=1,Lp(),qp(),Hp()}}function Lp(){if(yt===1){yt=0;var e=Gs,t=Nr,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=N.T,N.T=null;var i=L.p;L.p=2;var u=Ve;Ve|=4;try{gp(t,e);var d=ed,g=Nm(e.containerInfo),y=d.focusedElem,A=d.selectionRange;if(g!==y&&y&&y.ownerDocument&&wm(y.ownerDocument.documentElement,y)){if(A!==null&&Cc(y)){var P=A.start,$=A.end;if($===void 0&&($=P),"selectionStart"in y)y.selectionStart=P,y.selectionEnd=Math.min($,y.value.length);else{var ee=y.ownerDocument||document,Q=ee&&ee.defaultView||window;if(Q.getSelection){var V=Q.getSelection(),xe=y.textContent.length,Ce=Math.min(A.start,xe),$e=A.end===void 0?Ce:Math.min(A.end,xe);!V.extend&&Ce>$e&&(g=$e,$e=Ce,Ce=g);var R=jm(y,Ce),D=jm(y,$e);if(R&&D&&(V.rangeCount!==1||V.anchorNode!==R.node||V.anchorOffset!==R.offset||V.focusNode!==D.node||V.focusOffset!==D.offset)){var H=ee.createRange();H.setStart(R.node,R.offset),V.removeAllRanges(),Ce>$e?(V.addRange(H),V.extend(D.node,D.offset)):(H.setEnd(D.node,D.offset),V.addRange(H))}}}}for(ee=[],V=y;V=V.parentNode;)V.nodeType===1&&ee.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<ee.length;y++){var J=ee[y];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}ho=!!Wu,ed=Wu=null}finally{Ve=u,L.p=i,N.T=s}}e.current=t,yt=2}}function qp(){if(yt===2){yt=0;var e=Gs,t=Nr,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=N.T,N.T=null;var i=L.p;L.p=2;var u=Ve;Ve|=4;try{fp(e,t.alternate,t)}finally{Ve=u,L.p=i,N.T=s}}yt=3}}function Hp(){if(yt===4||yt===3){yt=0,Wt();var e=Gs,t=Nr,s=xs,i=Cp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,Nr=Gs=null,Pp(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Qs=null),En(s),t=t.stateNode,Je&&typeof Je.onCommitFiberRoot=="function")try{Je.onCommitFiberRoot(rt,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=N.T,u=L.p,L.p=2,N.T=null;try{for(var d=e.onRecoverableError,g=0;g<i.length;g++){var y=i[g];d(y.value,{componentStack:y.stack})}}finally{N.T=t,L.p=u}}(xs&3)!==0&&to(),Hn(e),u=e.pendingLanes,(s&261930)!==0&&(u&42)!==0?e===Pu?Ei++:(Ei=0,Pu=e):Ei=0,Oi(0)}}function Pp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,li(t)))}function to(){return Lp(),qp(),Hp(),Bp()}function Bp(){if(yt!==5)return!1;var e=Gs,t=qu;qu=0;var s=En(xs),i=N.T,u=L.p;try{L.p=32>s?32:s,N.T=null,s=Hu,Hu=null;var d=Gs,g=xs;if(yt=0,Nr=Gs=null,xs=0,(Ve&6)!==0)throw Error(o(331));var y=Ve;if(Ve|=4,wp(d.current),vp(d,d.current,g,s),Ve=y,Oi(0,!1),Je&&typeof Je.onPostCommitFiberRoot=="function")try{Je.onPostCommitFiberRoot(rt,d)}catch{}return!0}finally{L.p=u,N.T=i,Pp(e,t)}}function Qp(e,t,s){t=xn(s,t),t=bu(e.stateNode,t,2),e=Us(e,t,2),e!==null&&(it(e,2),Hn(e))}function Xe(e,t,s){if(e.tag===3)Qp(e,e,s);else for(;t!==null;){if(t.tag===3){Qp(t,e,s);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Qs===null||!Qs.has(i))){e=xn(s,e),s=Gh(2),i=Us(t,s,2),i!==null&&(Yh(s,i,t,e),it(i,2),Hn(i));break}}t=t.return}}function Gu(e,t,s){var i=e.pingCache;if(i===null){i=e.pingCache=new r1;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(s)||(ku=!0,u.add(s),e=u1.bind(null,e,t,s),t.then(e,e))}function u1(e,t,s){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,We===e&&(Le&s)===s&&(ct===4||ct===3&&(Le&62914560)===Le&&300>wt()-Zl?(Ve&2)===0&&Sr(e,0):Uu|=s,wr===Le&&(wr=0)),Hn(e)}function Gp(e,t){t===0&&(t=kt()),e=va(e,t),e!==null&&(it(e,t),Hn(e))}function d1(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Gp(e,s)}function f1(e,t){var s=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(s=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(o(314))}i!==null&&i.delete(t),Gp(e,s)}function m1(e,t){return da(e,t)}var no=null,Er=null,Yu=!1,so=!1,Vu=!1,Vs=0;function Hn(e){e!==Er&&e.next===null&&(Er===null?no=Er=e:Er=Er.next=e),so=!0,Yu||(Yu=!0,p1())}function Oi(e,t){if(!Vu&&so){Vu=!0;do for(var s=!1,i=no;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var d=0;else{var g=i.suspendedLanes,y=i.pingedLanes;d=(1<<31-ft(42|e)+1)-1,d&=u&~(g&~y),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(s=!0,Xp(i,d))}else d=Le,d=Oe(i,i===We?d:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(d&3)===0||st(i,d)||(s=!0,Xp(i,d));i=i.next}while(s);Vu=!1}}function h1(){Yp()}function Yp(){so=Yu=!1;var e=0;Vs!==0&&C1()&&(e=Vs);for(var t=wt(),s=null,i=no;i!==null;){var u=i.next,d=Vp(i,t);d===0?(i.next=null,s===null?no=u:s.next=u,u===null&&(Er=s)):(s=i,(e!==0||(d&3)!==0)&&(so=!0)),i=u}yt!==0&&yt!==5||Oi(e),Vs!==0&&(Vs=0)}function Vp(e,t){for(var s=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var g=31-ft(d),y=1<<g,A=u[g];A===-1?((y&s)===0||(y&i)!==0)&&(u[g]=Nt(y,t)):A<=t&&(e.expiredLanes|=y),d&=~y}if(t=We,s=Le,s=Oe(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,s===0||e===t&&(Fe===2||Fe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&fa(i),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||st(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(i!==null&&fa(i),En(s)){case 2:case 8:s=Ya;break;case 32:s=Jn;break;case 268435456:s=re;break;default:s=Jn}return i=Fp.bind(null,e),s=da(s,i),e.callbackPriority=t,e.callbackNode=s,t}return i!==null&&i!==null&&fa(i),e.callbackPriority=2,e.callbackNode=null,2}function Fp(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(to()&&e.callbackNode!==s)return null;var i=Le;return i=Oe(e,e===We?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Op(e,i,t),Vp(e,wt()),e.callbackNode!=null&&e.callbackNode===s?Fp.bind(null,e):null)}function Xp(e,t){if(to())return null;Op(e,t,!0)}function p1(){O1(function(){(Ve&6)!==0?da(In,h1):Yp()})}function Fu(){if(Vs===0){var e=dr;e===0&&(e=tn,tn<<=1,(tn&261888)===0&&(tn=256)),Vs=e}return Vs}function Kp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:dl(""+e)}function Zp(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function x1(e,t,s,i,u){if(t==="submit"&&s&&s.stateNode===u){var d=Kp((u[Vt]||null).action),g=i.submitter;g&&(t=(t=g[Vt]||null)?Kp(t.formAction):g.getAttribute("formAction"),t!==null&&(d=t,g=null));var y=new pl("action","action",null,i,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Vs!==0){var A=g?Zp(u,g):new FormData(u);fu(s,{pending:!0,data:A,method:u.method,action:d},null,A)}}else typeof d=="function"&&(y.preventDefault(),A=g?Zp(u,g):new FormData(u),fu(s,{pending:!0,data:A,method:u.method,action:d},d,A))},currentTarget:u}]})}}for(var Xu=0;Xu<Tc.length;Xu++){var Ku=Tc[Xu],g1=Ku.toLowerCase(),b1=Ku[0].toUpperCase()+Ku.slice(1);On(g1,"on"+b1)}On(Em,"onAnimationEnd"),On(Om,"onAnimationIteration"),On(Am,"onAnimationStart"),On("dblclick","onDoubleClick"),On("focusin","onFocus"),On("focusout","onBlur"),On(Ry,"onTransitionRun"),On(ky,"onTransitionStart"),On(Uy,"onTransitionCancel"),On(Tm,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),pa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),pa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),pa("onBeforeInput",["compositionend","keypress","textInput","paste"]),pa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),pa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ai="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(" "),v1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ai));function $p(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var i=e[s],u=i.event;i=i.listeners;e:{var d=void 0;if(t)for(var g=i.length-1;0<=g;g--){var y=i[g],A=y.instance,P=y.currentTarget;if(y=y.listener,A!==d&&u.isPropagationStopped())break e;d=y,u.currentTarget=P;try{d(u)}catch($){bl($)}u.currentTarget=null,d=A}else for(g=0;g<i.length;g++){if(y=i[g],A=y.instance,P=y.currentTarget,y=y.listener,A!==d&&u.isPropagationStopped())break e;d=y,u.currentTarget=P;try{d(u)}catch($){bl($)}u.currentTarget=null,d=A}}}}function Ue(e,t){var s=t[lc];s===void 0&&(s=t[lc]=new Set);var i=e+"__bubble";s.has(i)||(Ip(t,e,2,!1),s.add(i))}function Zu(e,t,s){var i=0;t&&(i|=4),Ip(s,e,i,t)}var ao="_reactListening"+Math.random().toString(36).slice(2);function $u(e){if(!e[ao]){e[ao]=!0,Yf.forEach(function(s){s!=="selectionchange"&&(v1.has(s)||Zu(s,!1,e),Zu(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ao]||(t[ao]=!0,Zu("selectionchange",!1,t))}}function Ip(e,t,s,i){switch(E0(t)){case 2:var u=X1;break;case 8:u=K1;break;default:u=dd}s=u.bind(null,t,s,e),u=void 0,!xc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,s,{capture:!0,passive:u}):e.addEventListener(t,s,!0):u!==void 0?e.addEventListener(t,s,{passive:u}):e.addEventListener(t,s,!1)}function Iu(e,t,s,i,u){var d=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var g=i.tag;if(g===3||g===4){var y=i.stateNode.containerInfo;if(y===u)break;if(g===4)for(g=i.return;g!==null;){var A=g.tag;if((A===3||A===4)&&g.stateNode.containerInfo===u)return;g=g.return}for(;y!==null;){if(g=Ka(y),g===null)return;if(A=g.tag,A===5||A===6||A===26||A===27){i=d=g;continue e}y=y.parentNode}}i=i.return}nm(function(){var P=d,$=hc(s),ee=[];e:{var Q=Mm.get(e);if(Q!==void 0){var V=pl,xe=e;switch(e){case"keypress":if(ml(s)===0)break e;case"keydown":case"keyup":V=fy;break;case"focusin":xe="focus",V=yc;break;case"focusout":xe="blur",V=yc;break;case"beforeblur":case"afterblur":V=yc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=rm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=ey;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=py;break;case Em:case Om:case Am:V=sy;break;case Tm:V=gy;break;case"scroll":case"scrollend":V=Jv;break;case"wheel":V=vy;break;case"copy":case"cut":case"paste":V=ry;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=lm;break;case"toggle":case"beforetoggle":V=jy}var Ce=(t&4)!==0,$e=!Ce&&(e==="scroll"||e==="scrollend"),R=Ce?Q!==null?Q+"Capture":null:Q;Ce=[];for(var D=P,H;D!==null;){var J=D;if(H=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||H===null||R===null||(J=$r(D,R),J!=null&&
vendor: 1,157 bytes, line 48
48Ce.push(Ti(D,J,H))),$e)break;D=D.return}0<Ce.length&&(Q=new V(Q,xe,null,s,$),ee.push({event:Q,listeners:Ce}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Q&&s!==mc&&(xe=s.relatedTarget||s.fromElement)&&(Ka(xe)||xe[Xa]))break e;if((V||Q)&&(Q=$.window===$?$:(Q=$.ownerDocument)?Q.defaultView||Q.parentWindow:window,V?(xe=s.relatedTarget||s.toElement,V=P,xe=xe?Ka(xe):null,xe!==null&&($e=f(xe),Ce=xe.tag,xe!==$e||Ce!==5&&Ce!==27&&Ce!==6)&&(xe=null)):(V=null,xe=P),V!==xe)){if(Ce=rm,J="onMouseLeave",R="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=lm,J="onPointerLeave",R="onPointerEnter",D="pointer"),$e=V==null?Q:Zr(V),H=xe==null?Q:Zr(xe),Q=new Ce(J,D+"leave",V,s,$),Q.target=$e,Q.relatedTarget=H,J=null,Ka($)===P&&(Ce=new Ce(R,D+"enter",xe,s,$),Ce.target=H,Ce.relatedTarget=$e,J=Ce),$e=J,V&&xe)t:{for(Ce=y1,R=V,D=xe,H=0,J=R;J;J=Ce(J))H++;J=0;for(var we=D;we;we=Ce(we))J++;for(;0<H-J;)R=Ce(R),H--;for(;0<J-H;)D=Ce(D),J--;for(;H--;){if(R===D||D!==null&&R===D.alternate){Ce=R;break t}R=Ce(R),D=Ce(D)}Ce=null}else Ce=null;V!==null&&Jp(ee,Q,V,Ce,!1),xe!==null&&$e!==null&&Jp(ee,$e,xe,Ce,!0)}}
vendor: 5,196 bytes, lines 48-49
48e:{if(Q=P?Zr(P):window,V=Q.nodeName&&Q.nodeName.toLowerCase(),V==="select"||V==="input"&&Q.type==="file")var Qe=pm;else if(mm(Q))if(xm)Qe=_y;else{Qe=Ty;var ye=Ay}else V=Q.nodeName,!V||V.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?P&&fc(P.elementType)&&(Qe=pm):Qe=My;if(Qe&&(Qe=Qe(e,P))){hm(ee,Qe,s,$);break e}ye&&ye(e,Q,P),e==="focusout"&&P&&Q.type==="number"&&P.memoizedProps.value!=null&&dc(Q,"number",Q.value)}switch(ye=P?Zr(P):window,e){case"focusin":(mm(ye)||ye.contentEditable==="true")&&(sr=ye,Ec=P,ai=null);break;case"focusout":ai=Ec=sr=null;break;case"mousedown":Oc=!0;break;case"contextmenu":case"mouseup":case"dragend":Oc=!1,Sm(ee,s,$);break;case"selectionchange":if(zy)break;case"keydown":case"keyup":Sm(ee,s,$)}var _e;if(wc)e:{switch(e){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else nr?dm(e,s)&&(qe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(qe="onCompositionStart");qe&&(om&&s.locale!=="ko"&&(nr||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&nr&&(_e=sm()):(Ts=$,gc="value"in Ts?Ts.value:Ts.textContent,nr=!0)),ye=ro(P,qe),0<ye.length&&(qe=new im(qe,e,null,s,$),ee.push({event:qe,listeners:ye}),_e?qe.data=_e:(_e=fm(s),_e!==null&&(qe.data=_e)))),(_e=Ny?Sy(e,s):Cy(e,s))&&(qe=ro(P,"onBeforeInput"),0<qe.length&&(ye=new im("onBeforeInput","beforeinput",null,s,$),ee.push({event:ye,listeners:qe}),ye.data=_e)),x1(ee,e,P,s,$)}$p(ee,t)})}function Ti(e,t,s){return{instance:e,listener:t,currentTarget:s}}function ro(e,t){for(var s=t+"Capture",i=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=$r(e,s),u!=null&&i.unshift(Ti(e,u,d)),u=$r(e,t),u!=null&&i.push(Ti(e,u,d))),e.tag===3)return i;e=e.return}return[]}function y1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Jp(e,t,s,i,u){for(var d=t._reactName,g=[];s!==null&&s!==i;){var y=s,A=y.alternate,P=y.stateNode;if(y=y.tag,A!==null&&A===i)break;y!==5&&y!==26&&y!==27||P===null||(A=P,u?(P=$r(s,d),P!=null&&g.unshift(Ti(s,P,A))):u||(P=$r(s,d),P!=null&&g.push(Ti(s,P,A)))),s=s.return}g.length!==0&&e.push({event:t,listeners:g})}var j1=/\r\n?/g,w1=/\u0000|\uFFFD/g;function Wp(e){return(typeof e=="string"?e:""+e).replace(j1,`
49`).replace(w1,"")}function e0(e,t){return t=Wp(t),Wp(e)===t}function Ze(e,t,s,i,u,d){switch(s){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Wa(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Wa(e,""+i);break;case"className":cl(e,"class",i);break;case"tabIndex":cl(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":cl(e,s,i);break;case"style":em(e,i,d);break;case"data":if(t!=="object"){cl(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=dl(""+i),e.setAttribute(s,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(s,"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 d=="function"&&(s==="formAction"?(t!=="input"&&Ze(e,t,"name",u.name,u,null),Ze(e,t,"formEncType",u.formEncType,u,null),Ze(e,t,"formMethod",u.formMethod,u,null),Ze(e,t,"formTarget",u.formTarget,u,null)):(Ze(e,t,"encType",u.encType,u,null),Ze(e,t,"method",u.method,u,null),Ze(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=dl(""+i),e.setAttribute(s,i);break;case"onClick":i!=null&&(e.onclick=ts);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(s=i.__html,s!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}s=dl(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""+i):e.removeAttribute(s);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"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":i===!0?e.setAttribute(s,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,i):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(s,i):e.removeAttribute(s);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(s):e.setAttribute(s,i);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),ol(e,"popover",i);break;case"xlinkActuate":es(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":es(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":es(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":es(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":es(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":es(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":es(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":es(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":es(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":ol(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=$v.get(s)||s,ol(e,s,i))}}function Ju(e,t,s,i,u,d){switch(s){case"style":em(e,i,d);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(s=i.__html,s!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=s}}break;case"children":typeof i=="string"?Wa(e,i):(typeof i=="number"||typeof i=="bigint")&&Wa(e,""+i);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ts);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vf.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(u=s.endsWith("Capture"),t=s.slice(2,u?s.length-7:void 0),d=e[Vt]||null,d=d!=null?d[s]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof i=="function")){typeof d!="function"&&d!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,i,u);break e}s in e?e[s]=i:i===!0?e.setAttribute(s,""):ol(e,s,i)}}}function Dt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var i=!1,u=!1,d;for(d in s)if(s.hasOwnProperty(d)){var g=s[d];if(g!=null)switch(d){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ze(e,t,d,g,s,null)}}u&&Ze(e,t,"srcSet",s.srcSet,s,null),i&&Ze(e,t,"src",s.src,s,null);return;case"input":Ue("invalid",e);var y=d=g=u=null,A=null,P=null;for(i in s)if(s.hasOwnProperty(i)){var $=s[i];if($!=null)switch(i){case"name":u=$;break;case"type":g=$;break;case"checked":A=$;break;case"defaultChecked":P=$;break;case"value":d=$;break;case"defaultValue":y=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(o(137,t));break;default:Ze(e,t,i,$,s,null)}}$f(e,d,y,A,P,g,u,!1);return;case"select":Ue("invalid",e),i=g=d=null;for(u in s)if(s.hasOwnProperty(u)&&(y=s[u],y!=null))switch(u){case"value":d=y;break;case"defaultValue":g=y;break;case"multiple":i=y;default:Ze(e,t,u,y,s,null)}t=d,s=g,e.multiple=!!i,t!=null?Ja(e,!!i,t,!1):s!=null&&Ja(e,!!i,s,!0);return;case"textarea":Ue("invalid",e),d=u=i=null;for(g in s)if(s.hasOwnProperty(g)&&(y=s[g],y!=null))switch(g){case"value":i=y;break;case"defaultValue":u=y;break;case"children":d=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:Ze(e,t,g,y,s,null)}Jf(e,i,u,d);return;case"option":for(A in s)if(s.hasOwnProperty(A)&&(i=s[A],i!=null))switch(A){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Ze(e,t,A,i,s,null)}return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(i=0;i<Ai.length;i++)Ue(Ai[i],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(P in s)if(s.hasOwnProperty(P)&&(i=s[P],i!=null))switch(P){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Ze(e,t,P,i,s,null)}return;default:if(fc(t)){for($ in s)s.hasOwnProperty($)&&(i=s[$],i!==void 0&&Ju(e,t,$,i,s,void 0));return}}for(y in s)s.hasOwnProperty(y)&&(i=s[y],i!=null&&Ze(e,t,y,i,s,null))}function N1(e,t,s,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,g=null,y=null,A=null,P=null,$=null;for(V in s){var ee=s[V];if(s.hasOwnProperty(V)&&ee!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":A=ee;default:i.hasOwnProperty(V)||Ze(e,t,V,null,i,ee)}}for(var Q in i){var V=i[Q];if(ee=s[Q],i.hasOwnProperty(Q)&&(V!=null||ee!=null))switch(Q){case"type":d=V;break;case"name":u=V;break;case"checked":P=V;break;case"defaultChecked":$=V;break;case"value":g=V;break;case"defaultValue":y=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:V!==ee&&Ze(e,t,Q,V,i,ee)}}uc(e,g,y,A,P,$,d,u);return;case"select":V=g=y=Q=null;for(d in s)if(A=s[d],s.hasOwnProperty(d)&&A!=null)switch(d){case"value":break;case"multiple":V=A;default:i.hasOwnProperty(d)||Ze(e,t,d,null,i,A)}for(u in i)if(d=i[u],A=s[u],i.hasOwnProperty(u)&&(d!=null||A!=null))switch(u){case"value":Q=d;break;case"defaultValue":y=d;break;case"multiple":g=d;default:d!==A&&Ze(e,t,u,d,i,A)}t=y,s=g,i=V,Q!=null?Ja(e,!!s,Q,!1):!!i!=!!s&&(t!=null?Ja(e,!!s,t,!0):Ja(e,!!s,s?[]:"",!1));return;case"textarea":V=Q=null;
vendor: 4,711 bytes, line 49
49for(y in s)if(u=s[y],s.hasOwnProperty(y)&&u!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ze(e,t,y,null,i,u)}for(g in i)if(u=i[g],d=s[g],i.hasOwnProperty(g)&&(u!=null||d!=null))switch(g){case"value":Q=u;break;case"defaultValue":V=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==d&&Ze(e,t,g,u,i,d)}If(e,Q,V);return;case"option":for(var xe in s)if(Q=s[xe],s.hasOwnProperty(xe)&&Q!=null&&!i.hasOwnProperty(xe))switch(xe){case"selected":e.selected=!1;break;default:Ze(e,t,xe,null,i,Q)}for(A in i)if(Q=i[A],V=s[A],i.hasOwnProperty(A)&&Q!==V&&(Q!=null||V!=null))switch(A){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Ze(e,t,A,Q,i,V)}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 Ce in s)Q=s[Ce],s.hasOwnProperty(Ce)&&Q!=null&&!i.hasOwnProperty(Ce)&&Ze(e,t,Ce,null,i,Q);for(P in i)if(Q=i[P],V=s[P],i.hasOwnProperty(P)&&Q!==V&&(Q!=null||V!=null))switch(P){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(o(137,t));break;default:Ze(e,t,P,Q,i,V)}return;default:if(fc(t)){for(var $e in s)Q=s[$e],s.hasOwnProperty($e)&&Q!==void 0&&!i.hasOwnProperty($e)&&Ju(e,t,$e,void 0,i,Q);for($ in i)Q=i[$],V=s[$],!i.hasOwnProperty($)||Q===V||Q===void 0&&V===void 0||Ju(e,t,$,Q,i,V);return}}for(var R in s)Q=s[R],s.hasOwnProperty(R)&&Q!=null&&!i.hasOwnProperty(R)&&Ze(e,t,R,null,i,Q);for(ee in i)Q=i[ee],V=s[ee],!i.hasOwnProperty(ee)||Q===V||Q==null&&V==null||Ze(e,t,ee,Q,i,V)}function t0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),i=0;i<s.length;i++){var u=s[i],d=u.transferSize,g=u.initiatorType,y=u.duration;if(d&&y&&t0(g)){for(g=0,y=u.responseEnd,i+=1;i<s.length;i++){var A=s[i],P=A.startTime;if(P>y)break;var $=A.transferSize,ee=A.initiatorType;$&&t0(ee)&&(A=A.responseEnd,g+=$*(A<y?1:(y-P)/(A-P)))}if(--i,t+=8*(d+g)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Wu=null,ed=null;function io(e){return e.nodeType===9?e:e.ownerDocument}function n0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function s0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function td(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var nd=null;function C1(){var e=window.event;return e&&e.type==="popstate"?e===nd?!1:(nd=e,!0):(nd=null,!1)}var a0=typeof setTimeout=="function"?setTimeout:void 0,E1=typeof clearTimeout=="function"?clearTimeout:void 0,r0=typeof Promise=="function"?Promise:void 0,O1=typeof queueMicrotask=="function"?queueMicrotask:typeof r0<"u"?function(e){return r0.resolve(null).then(e).catch(A1)}:a0;function A1(e){setTimeout(function(){throw e})}function Fs(e){return e==="head"}function i0(e,t){var s=t,i=0;do{var u=s.nextSibling;if(e.removeChild(s),u&&u.nodeType===8)if(s=u.data,s==="/$"||s==="/&"){if(i===0){e.removeChild(u),Mr(t);return}i--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")i++;else if(s==="html")Mi(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,Mi(s);for(var d=s.firstChild;d;){var g=d.nextSibling,y=d.nodeName;d[Kr]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&d.rel.toLowerCase()==="stylesheet"||s.removeChild(d),d=g}}else s==="body"&&Mi(e.ownerDocument.body);s=u}while(s);Mr(t)}function l0(e,t){var s=e;e=0;do{var i=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),i&&i.nodeType===8)if(s=i.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=i}while(s)}function sd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":sd(s),oc(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function T1(e,t,s,i){for(;
vendor: 11,171 bytes, line 49
49e.nodeType===1;){var u=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Kr])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=jn(e.nextSibling),e===null)break}return null}function M1(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=jn(e.nextSibling),e===null))return null;return e}function o0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=jn(e.nextSibling),e===null))return null;return e}function ad(e){return e.data==="$?"||e.data==="$~"}function rd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _1(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var i=function(){t(),s.removeEventListener("DOMContentLoaded",i)};s.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function jn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var id=null;function c0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return jn(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function u0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function d0(e,t,s){switch(t=io(s),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Mi(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);oc(e)}var wn=new Map,f0=new Set;function lo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var gs=L.d;L.d={f:D1,r:z1,D:R1,C:k1,L:U1,m:L1,X:H1,S:q1,M:P1};function D1(){var e=gs.f(),t=Jl();return e||t}function z1(e){var t=Za(e);t!==null&&t.tag===5&&t.type==="form"?Th(t):gs.r(e)}var Or=typeof document>"u"?null:document;function m0(e,t,s){var i=Or;if(i&&typeof t=="string"&&t){var u=hn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof s=="string"&&(u+='[crossorigin="'+s+'"]'),f0.has(u)||(f0.add(u),e={rel:e,crossOrigin:s,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),Dt(t,"link",e),St(t),i.head.appendChild(t)))}}function R1(e){gs.D(e),m0("dns-prefetch",e,null)}function k1(e,t){gs.C(e,t),m0("preconnect",e,t)}function U1(e,t,s){gs.L(e,t,s);var i=Or;if(i&&e&&t){var u='link[rel="preload"][as="'+hn(t)+'"]';t==="image"&&s&&s.imageSrcSet?(u+='[imagesrcset="'+hn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(u+='[imagesizes="'+hn(s.imageSizes)+'"]')):u+='[href="'+hn(e)+'"]';var d=u;switch(t){case"style":d=Ar(e);break;case"script":d=Tr(e)}wn.has(d)||(e=b({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),wn.set(d,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(_i(d))||t==="script"&&i.querySelector(Di(d))||(t=i.createElement("link"),Dt(t,"link",e),St(t),i.head.appendChild(t)))}}function L1(e,t){gs.m(e,t);var s=Or;if(s&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+hn(i)+'"][href="'+hn(e)+'"]',d=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Tr(e)}if(!wn.has(d)&&(e=b({rel:"modulepreload",href:e},t),wn.set(d,e),s.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(Di(d)))return}i=s.createElement("link"),Dt(i,"link",e),St(i),s.head.appendChild(i)}}}function q1(e,t,s){gs.S(e,t,s);var i=Or;if(i&&e){var u=$a(i).hoistableStyles,d=Ar(e);t=t||"default";var g=u.get(d);if(!g){var y={loading:0,preload:null};if(g=i.querySelector(_i(d)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},s),(s=wn.get(d))&&ld(e,s);var A=g=i.createElement("link");St(A),Dt(A,"link",e),A._p=new Promise(function(P,$){A.onload=P,A.onerror=$}),A.addEventListener("load",function(){y.loading|=1}),A.addEventListener("error",function(){y.loading|=2}),y.loading|=4,oo(g,t,i)}g={type:"stylesheet",instance:g,count:1,state:y},u.set(d,g)}}}function H1(e,t){gs.X(e,t);var s=Or;if(s&&e){var i=$a(s).hoistableScripts,u=Tr(e),d=i.get(u);d||(d=s.querySelector(Di(u)),d||(e=b({src:e,async:!0},t),(t=wn.get(u))&&od(e,t),d=s.createElement("script"),St(d),Dt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function P1(e,t){gs.M(e,t);var s=Or;if(s&&e){var i=$a(s).hoistableScripts,u=Tr(e),d=i.get(u);d||(d=s.querySelector(Di(u)),d||(e=b({src:e,async:!0,type:"module"},t),(t=wn.get(u))&&od(e,t),d=s.createElement("script"),St(d),Dt(d,"link",e),s.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},i.set(u,d))}}function h0(e,t,s,i){var u=(u=W.current)?lo(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=Ar(s.href),s=$a(u).hoistableStyles,i=s.get(t),i||(i={type:"style",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Ar(s.href);var d=$a(u).hoistableStyles,g=d.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,g),(d=u.querySelector(_i(e)))&&!d._p&&(g.instance=d,g.state.loading=5),wn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},wn.set(e,s),d||B1(u,e,s,g.state))),t&&i===null)throw Error(o(528,""));return g}if(t&&i!==null)throw Error(o(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Tr(s),s=$a(u).hoistableScripts,i=s.get(t),i||(i={type:"script",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Ar(e){return'href="'+hn(e)+'"'}function _i(e){return'link[rel="stylesheet"]['+e+"]"}function p0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function B1(e,t,s,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Dt(t,"link",s),St(t),e.head.appendChild(t))}function Tr(e){return'[src="'+hn(e)+'"]'}function Di(e){return"script[async]"+e}function x0(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+hn(s.href)+'"]');if(i)return t.instance=i,St(i),i;var u=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),St(i),Dt(i,"style",u),oo(i,s.precedence,e),t.instance=i;case"stylesheet":u=Ar(s.href);var d=e.querySelector(_i(u));if(d)return t.state.loading|=4,t.instance=d,St(d),d;i=p0(s),(u=wn.get(u))&&ld(i,u),d=(e.ownerDocument||e).createElement("link"),St(d);var g=d;return g._p=new Promise(function(y,A){g.onload=y,g.onerror=A}),Dt(d,"link",i),t.state.loading|=4,oo(d,s.precedence,e),t.instance=d;case"script":return d=Tr(s.src),(u=e.querySelector(Di(d)))?(t.instance=u,St(u),u):(i=s,(u=wn.get(d))&&(i=b({},s),od(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),St(u),Dt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,oo(i,s.precedence,e));return t.instance}function oo(e,t,s){for(var i=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,d=u,g=0;g<i.length;g++){var y=i[g];if(y.dataset.precedence===t)d=y;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function ld(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function od(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var co=null;function g0(e,t,s){if(co===null){var i=new Map,u=co=new Map;u.set(s,i)}else u=co,i=u.get(s),i||(i=new Map,u.set(s,i));if(i.has(e))return i;for(i.set(e,null),s=s.getElementsByTagName(e),u=0;u<s.length;u++){var d=s[u];if(!(d[Kr]||d[At]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var g=d.getAttribute(t)||"";g=e+g;var y=i.get(g);y?y.push(d):i.set(g,[d])}}return i}function b0(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function Q1(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function v0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function G1(e,t,s,i){if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var u=Ar(i.href),d=t.querySelector(_i(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uo.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=d,St(d);return}d=t.ownerDocument||t,i=p0(i),(u=wn.get(u))&&ld(i,u),d=d.createElement("link"),St
vendor: 13,231 bytes, line 49
49(d);var g=d;g._p=new Promise(function(y,A){g.onload=y,g.onerror=A}),Dt(d,"link",i),s.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=uo.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var cd=0;function Y1(e,t){return e.stylesheets&&e.count===0&&mo(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var i=setTimeout(function(){if(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&cd===0&&(cd=62500*S1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>cd?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function uo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)mo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var fo=null;function mo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,fo=new Map,t.forEach(V1,e),fo=null,uo.call(e))}function V1(e,t){if(!(t.state.loading&4)){var s=fo.get(e);if(s)var i=s.get(null);else{s=new Map,fo.set(e,s);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var g=u[d];(g.nodeName==="LINK"||g.getAttribute("media")!=="not all")&&(s.set(g.dataset.precedence,g),i=g)}i&&s.set(null,i)}u=t.instance,g=u.getAttribute("data-precedence"),d=s.get(g)||i,d===i&&s.set(null,u),s.set(g,u),this.count++,i=uo.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var zi={$$typeof:te,Provider:null,Consumer:null,_currentValue:O,_currentValue2:O,_threadCount:0};function F1(e,t,s,i,u,d,g,y,A){this.tag=1,this.containerInfo=e,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=Os(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Os(0),this.hiddenUpdates=Os(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=g,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function y0(e,t,s,i,u,d,g,y,A,P,$,ee){return e=new F1(e,t,s,g,A,P,$,ee,y),t=1,d===!0&&(t|=24),d=sn(3,null,null,t),e.current=d,d.stateNode=e,t=Qc(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:i,isDehydrated:s,cache:t},Fc(d),e}function j0(e){return e?(e=ir,e):ir}function w0(e,t,s,i,u,d){u=j0(u),i.context===null?i.context=u:i.pendingContext=u,i=ks(t),i.payload={element:s},d=d===void 0?null:d,d!==null&&(i.callback=d),s=Us(e,i,t),s!==null&&(It(s,e,t),di(s,e,t))}function N0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function ud(e,t){N0(e,t),(e=e.alternate)&&N0(e,t)}function S0(e){if(e.tag===13||e.tag===31){var t=va(e,67108864);t!==null&&It(t,e,67108864),ud(e,67108864)}}function C0(e){if(e.tag===13||e.tag===31){var t=cn();t=Fa(t);var s=va(e,t);s!==null&&It(s,e,t),ud(e,t)}}var ho=!0;function X1(e,t,s,i){var u=N.T;N.T=null;var d=L.p;try{L.p=2,dd(e,t,s,i)}finally{L.p=d,N.T=u}}function K1(e,t,s,i){var u=N.T;N.T=null;var d=L.p;try{L.p=8,dd(e,t,s,i)}finally{L.p=d,N.T=u}}function dd(e,t,s,i){if(ho){var u=fd(i);if(u===null)Iu(e,t,i,po,s),O0(e,i);else if($1(u,e,t,s,i))i.stopPropagation();else if(O0(e,i),t&4&&-1<Z1.indexOf(e)){for(;u!==null;){var d=Za(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var g=kn(d.pendingLanes);if(g!==0){var y=d;for(y.pendingLanes|=2,y.entangledLanes|=2;g;){var A=1<<31-ft(g);y.entanglements[1]|=A,g&=~A}Hn(d),(Ve&6)===0&&($l=wt()+500,Oi(0))}}break;case 31:case 13:y=va(d,2),y!==null&&It(y,d,2),Jl(),ud(d,2)}if(d=fd(i),d===null&&Iu(e,t,i,po,s),d===u)break;u=d}u!==null&&i.stopPropagation()}else Iu(e,t,i,null,s)}}function fd(e){return e=hc(e),md(e)}var po=null;function md(e){if(po=null,e=Ka(e),e!==null){var t=f(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=m(t),e!==null)return e;e=null}else if(s===31){if(e=h(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return po=e,null}function E0(e){switch(e){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(Xr()){case In:return 2;case Ya:return 8;case Jn:case Cn:return 32;case re:return 268435456;default:return 32}default:return 32}}var hd=!1,Xs=null,Ks=null,Zs=null,Ri=new Map,ki=new Map,$s=[],Z1="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 O0(e,t){switch(e){case"focusin":case"focusout":Xs=null;break;case"dragenter":case"dragleave":Ks=null;break;case"mouseover":case"mouseout":Zs=null;break;case"pointerover":case"pointerout":Ri.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ki.delete(t.pointerId)}}function Ui(e,t,s,i,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:s,eventSystemFlags:i,nativeEvent:d,targetContainers:[u]},t!==null&&(t=Za(t),t!==null&&S0(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function $1(e,t,s,i,u){switch(t){case"focusin":return Xs=Ui(Xs,e,t,s,i,u),!0;case"dragenter":return Ks=Ui(Ks,e,t,s,i,u),!0;case"mouseover":return Zs=Ui(Zs,e,t,s,i,u),!0;case"pointerover":var d=u.pointerId;return Ri.set(d,Ui(Ri.get(d)||null,e,t,s,i,u)),!0;case"gotpointercapture":return d=u.pointerId,ki.set(d,Ui(ki.get(d)||null,e,t,s,i,u)),!0}return!1}function A0(e){var t=Ka(e.target);if(t!==null){var s=f(t);if(s!==null){if(t=s.tag,t===13){if(t=m(s),t!==null){e.blockedOn=t,Qf(e.priority,function(){C0(s)});return}}else if(t===31){if(t=h(s),t!==null){e.blockedOn=t,Qf(e.priority,function(){C0(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=fd(e.nativeEvent);if(s===null){s=e.nativeEvent;var i=new s.constructor(s.type,s);mc=i,s.target.dispatchEvent(i),mc=null}else return t=Za(s),t!==null&&S0(t),e.blockedOn=s,!1;t.shift()}return!0}function T0(e,t,s){xo(e)&&s.delete(t)}function I1(){hd=!1,Xs!==null&&xo(Xs)&&(Xs=null),Ks!==null&&xo(Ks)&&(Ks=null),Zs!==null&&xo(Zs)&&(Zs=null),Ri.forEach(T0),ki.forEach(T0)}function go(e,t){e.blockedOn===t&&(e.blockedOn=null,hd||(hd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,I1)))}var bo=null;function M0(e){bo!==e&&(bo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){bo===e&&(bo=null);for(var t=0;t<e.length;t+=3){var s=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(md(i||s)===null)continue;break}var d=Za(s);d!==null&&(e.splice(t,3),t-=3,fu(d,{pending:!0,data:u,method:s.method,action:i},i,u))}}))}function Mr(e){function t(A){return go(A,e)}Xs!==null&&go(Xs,e),Ks!==null&&go(Ks,e),Zs!==null&&go(Zs,e),Ri.forEach(t),ki.forEach(t);for(var s=0;s<$s.length;s++){var i=$s[s];i.blockedOn===e&&(i.blockedOn=null)}for(;0<$s.length&&(s=$s[0],s.blockedOn===null);)A0(s),s.blockedOn===null&&$s.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(i=0;i<s.length;i+=3){var u=s[i],d=s[i+1],g=u[Vt]||null;if(typeof d=="function")g||M0(s);else if(g){var y=null;if(d&&d.hasAttribute("formAction")){if(u=d,g=d[Vt]||null)y=g.formAction;else if(md(u)!==null)continue}else y=g.action;typeof y=="function"?s[i+1]=y:(s.splice(i,3),i-=3),M0(s)}}}function _0(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(g){return u=g})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(s,20)}function s(){if(!i&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function pd(e){this._internalRoot=e}vo.prototype.render=pd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var s=t.current,i=cn();w0(s,i,e,t,null,null)},vo.prototype.unmount=pd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;w0(e.current,2,null,e,null,null),Jl(),t[Xa]=null}};function vo(e){this._internalRoot=e}vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=ic();e={blockedOn:null,target:e,priority:t};for(var s=0;s<$s.length&&t!==0&&t<$s[s].priority;s++);$s.splice(s,0,e),s===0&&A0(e)}};var D0=a.version;if(D0!=="19.2.1")throw Error(o(527,D0,"19.2.1"));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var J1={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yo.isDisabled&&yo.supportsFiber)try{rt=yo.inject(J1),Je=yo}catch{}}return Hi.createRoot=function(e,t){if(!c(e))throw Error(o(299));var s=!1,i="",u=Hh,d=Ph,g=Bh;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(g=t.onRecoverableError)),t=y0(e,1,!1,null,null,s,i,null,u,d,g,_0),e[Xa]=t.current,$u(e),new pd(t)},Hi.hydrateRoot=function(e,t,s){if(!c(e))throw Error(o(299));var i=!1,u="",d=Hh,g=Ph,y=Bh,A=null;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(u=s.identifierPrefix),s.onUncaughtError!==void 0&&(d=s.onUncaughtError),s.onCaughtError!==void 0&&(g=s.onCaughtError),s.onRecoverableError!==void 0&&(y=s.onRecoverableError),s.formState!==void 0&&(A=s.formState)),t=y0(e,1,!0,t,s??null,i,u,A,d,g,y,_0),t.context=j0(null),s=t.current,i=cn(),i=Fa(i),u=ks(i),u.callback=null,Us(s,u,i),s=i,t.current.lanes=s,it(t,s),Hn(t),e[Xa]=t.current,$u(e),new vo(t)},Hi.version="19.2.1",Hi}var ax;function hw(){if(ax)return wd.exports;ax=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),wd.exports=mw(),wd.exports}var pw=hw(),xw=(function(){function n(){this.keyToValue=new Map,this.valueToKey=new Map}return n.prototype.set=function(a,l){this.keyToValue.set(a,l),this.valueToKey.set(l,a)},n.prototype.getByKey=function(a){return this.keyToValue.get(a)},n.prototype.getByValue=function(a){return this.valueToKey.get(a)},n.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},n})(),Qg=(function(){function n(a){this.generateIdentifier=a,this.kv=new xw}return n.prototype.register=function(a,l){this.kv.getByValue(a)||(l||(l=this.generateIdentifier(a)),this.kv.set(l,a))},n.prototype.clear=function(){this.kv.clear()},n.prototype.getIdentifier=function(a){return this.kv.getByValue(a)},n.prototype.getValue=function(a){return this.kv.getByKey(a)},n}
49)(),gw=(function(){var n=function(a,l){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,c){o.__proto__=c}||function(o,c){for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(o[f]=c[f])},n(a,l)};return function(a,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");n(a,l);function o(){this.constructor=a}a.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)}})(),bw=(function(n){gw(a,n);function a(){var l=n.call(this,function(o){return o.name})||this;return l.classToAllowedProps=new Map,l}return a.prototype.register=function(l,o){typeof o=="object"?(o.allowProps&&this.classToAllowedProps.set(l,o.allowProps),n.prototype.register.call(this,l,o.identifier)):n.prototype.register.call(this,l,o)},a.prototype.getAllowedProps=function(l){return this.classToAllowedProps.get(l)},a})(Qg),vw=function(n,a){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var o=l.call(n),c,f=[],m;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)f.push(c.value)}catch(h){m={error:h}}finally{try{c&&!c.done&&(l=o.return)&&l.call(o)}finally{if(m)throw m.error}}return f};function yw(n){if("values"in Object)return Object.values(n);var a=[];for(var l in n)n.hasOwnProperty(l)&&a.push(n[l]);return a}function jw(n,a){var l=yw(n);if("find"in l)return l.find(a);for(var o=l,c=0;c<o.length;c++){var f=o[c];if(a(f))return f}}function Hr(n,a){Object.entries(n).forEach(function(l){var o=vw(l,2),c=o[0],f=o[1];return a(f,c)})}function zo(n,a){return n.indexOf(a)!==-1}function rx(n,a){for(var l=0;l<n.length;l++){var o=n[l];if(a(o))return o}}var ww=(function(){function n(){this.transfomers={}}return n.prototype.register=function(a){this.transfomers[a.name]=a},n.prototype.findApplicable=function(a){return jw(this.transfomers,function(l){return l.isApplicable(a)})},n.prototype.findByName=function(a){return this.transfomers[a]},n})(),Nw=function(n){return Object.prototype.toString.call(n).slice(8,-1)},Gg=function(n){return typeof n>"u"},Sw=function(n){return n===null},Ki=function(n){return typeof n!="object"||n===null||n===Object.prototype?!1:Object.getPrototypeOf(n)===null?!0:Object.getPrototypeOf(n)===Object.prototype},$d=function(n){return Ki(n)&&Object.keys(n).length===0},ia=function(n){return Array.isArray(n)},Cw=function(n){return typeof n=="string"},Ew=function(n){return typeof n=="number"&&!isNaN(n)},Ow=function(n){return typeof n=="boolean"},Aw=function(n){return n instanceof RegExp},Zi=function(n){return n instanceof Map},$i=function(n){return n instanceof Set},Yg=function(n){return Nw(n)==="Symbol"},Tw=function(n){return n instanceof Date&&!isNaN(n.valueOf())},Mw=function(n){return n instanceof Error},ix=function(n){return typeof n=="number"&&isNaN(n)},_w=function(n){return Ow(n)||Sw(n)||Gg(n)||Ew(n)||Cw(n)||Yg(n)},Dw=function(n){return typeof n=="bigint"},zw=function(n){return n===1/0||n===-1/0},Rw=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},kw=function(n){return n instanceof URL},Vg=function(n){return n.replace(/\./g,"\\.")},Ed=function(n){return n.map(String).map(Vg).join(".")},Yi=function(n){for(var a=[],l="",o=0;o<n.length;o++){var c=n.charAt(o),f=c==="\\"&&n.charAt(o+1)===".";if(f){l+=".",o++;continue}var m=c===".";if(m){a.push(l),l="";continue}l+=c}var h=l;return a.push(h),a},Id=function(){return Id=Object.assign||function(n){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])}return n},Id.apply(this,arguments)},Jd=function(n,a){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var o=l.call(n),c,f=[],m;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)f.push(c.value)}catch(h){m={error:h}}finally{try{c&&!c.done&&(l=o.return)&&l.call(o)}finally{if(m)throw m.error}}return f},Wd=function(n,a){for(var l=0,o=a.length,c=n.length;l<o;l++,c++)n[c]=a[l];return n};function Pn(n,a,l,o){return{isApplicable:n,annotation:a,transform:l,untransform:o}}var Fg=[Pn(Gg,"undefined",function(){return null},function(){}),Pn(Dw,"bigint",function(n){return n.toString()},function(n){return typeof BigInt<"u"?BigInt(n):(console.error("Please add a BigInt polyfill."),n)}),Pn(Tw,"Date",function(n){return n.toISOString()},function(n){return new Date(n)}),Pn(Mw,"Error",function(n,a){var l={name:n.name,message:n.message};return a.allowedErrorProps.forEach(function(o){l[o]=n[o]}),l},function(n,a){var l=new Error(n.message);return l.name=n.name,l.stack=n.stack,a.allowedErrorProps.forEach(function(o){l[o]=n[o]}),l}),Pn(Aw,"regexp",function(n){return""+n},function(n){var a=n.slice(1,n.lastIndexOf("/")),l=n.slice(n.lastIndexOf("/")+1);return new RegExp(a,l)}
49),Pn($i,"set",function(n){return Wd([],Jd(n.values()))},function(n){return new Set(n)}),Pn(Zi,"map",function(n){return Wd([],Jd(n.entries()))},function(n){return new Map(n)}),Pn(function(n){return ix(n)||zw(n)},"number",function(n){return ix(n)?"NaN":n>0?"Infinity":"-Infinity"},Number),Pn(function(n){return n===0&&1/n===-1/0},"number",function(){return"-0"},Number),Pn(kw,"URL",function(n){return n.toString()},function(n){return new URL(n)})];function $o(n,a,l,o){return{isApplicable:n,annotation:a,transform:l,untransform:o}}var Xg=$o(function(n,a){if(Yg(n)){var l=!!a.symbolRegistry.getIdentifier(n);return l}return!1},function(n,a){var l=a.symbolRegistry.getIdentifier(n);return["symbol",l]},function(n){return n.description},function(n,a,l){var o=l.symbolRegistry.getValue(a[1]);if(!o)throw new Error("Trying to deserialize unknown symbol");return o}),Uw=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(n,a){return n[a.name]=a,n},{}),Kg=$o(Rw,function(n){return["typed-array",n.constructor.name]},function(n){return Wd([],Jd(n))},function(n,a){var l=Uw[a[1]];if(!l)throw new Error("Trying to deserialize unknown typed array");return new l(n)});function Zg(n,a){if(n?.constructor){var l=!!a.classRegistry.getIdentifier(n.constructor);return l}return!1}var $g=$o(Zg,function(n,a){var l=a.classRegistry.getIdentifier(n.constructor);return["class",l]},function(n,a){var l=a.classRegistry.getAllowedProps(n.constructor);if(!l)return Id({},n);var o={};return l.forEach(function(c){o[c]=n[c]}),o},function(n,a,l){var o=l.classRegistry.getValue(a[1]);if(!o)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(o.prototype),n)}),Ig=$o(function(n,a){return!!a.customTransformerRegistry.findApplicable(n)},function(n,a){var l=a.customTransformerRegistry.findApplicable(n);return["custom",l.name]},function(n,a){var l=a.customTransformerRegistry.findApplicable(n);return l.serialize(n)},function(n,a,l){var o=l.customTransformerRegistry.findByName(a[1]);if(!o)throw new Error("Trying to deserialize unknown custom value");return o.deserialize(n)}),Lw=[$g,Xg,Ig,Kg],lx=function(n,a){var l=rx(Lw,function(c){return c.isApplicable(n,a)});if(l)return{value:l.transform(n,a),type:l.annotation(n,a)};var o=rx(Fg,function(c){return c.isApplicable(n,a)});if(o)return{value:o.transform(n,a),type:o.annotation}},Jg={};Fg.forEach(function(n){Jg[n.annotation]=n});var qw=function(n,a,l){if(ia(a))switch(a[0]){case"symbol":return Xg.untransform(n,a,l);case"class":return $g.untransform(n,a,l);case"custom":return Ig.untransform(n,a,l);case"typed-array":return Kg.untransform(n,a,l);default:throw new Error("Unknown transformation: "+a)}else{var o=Jg[a];if(!o)throw new Error("Unknown transformation: "+a);return o.untransform(n,l)}},Rr=function(n,a){for(var l=n.keys();a>0;)l.next(),a--;return l.next().value};function Wg(n){if(zo(n,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(zo(n,"prototype"))throw new Error("prototype is not allowed as a property");if(zo(n,"constructor"))throw new Error("constructor is not allowed as a property")}var Hw=function(n,a){Wg(a);for(var l=0;l<a.length;l++){var o=a[l];if($i(n))n=Rr(n,+o);else if(Zi(n)){var c=+o,f=+a[++l]==0?"key":"value",m=Rr(n,c);switch(f){case"key":n=m;break;case"value":n=n.get(m);break}}else n=n[o]}return n},ef=function(n,a,l){if(Wg(a),a.length===0)return l(n);for(var o=n,c=0;c<a.length-1;c++){var f=a[c];if(ia(o)){var m=+f;o=o[m]}else if(Ki(o))o=o[f];else if($i(o)){var h=+f;o=Rr(o,h)}else if(Zi(o)){var p=c===a.length-2;if(p)break;var h=+f,x=+a[++c]==0?"key":"value",v=Rr(o,h);switch(x){case"key":o=v;break;case"value":o=o.get(v);break}}}var b=a[a.length-1];if(ia(o)?o[+b]=l(o[+b]):Ki(o)&&(o[b]=l(o[b])),$i(o)){var j=Rr(o,+b),C=l(j);j!==C&&(o.delete(j),o.add(C))}if(Zi(o)){var h=+a[a.length-2],T=Rr(o,h),x=+b==0?"key":"value";switch(x){case"key":{var S=l(T);o.set(S,o.get(T)),S!==T&&o.delete(T);break}case"value":{o.set(T,l(o.get(T)));break}}}return n},ys=function(n,a){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var o=l.call(n),c,f=[],m;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)f.push(c.value)}catch(h){m={error:h}}finally{try{c&&!c.done&&(l=o.return)&&l.call(o)}finally{if(m)throw m.error}}return f},Ws=function(n,a){for(var l=0,o=a.length,c=n.length;l<o;l++,c++)n[c]=a[l];return n};function tf(n,a,l){if(l===void 0&&(l=[]),!!n){if(!ia(n)){Hr(n,function(m,h){return tf(m,a,Ws(Ws([],ys(l)),ys(Yi(h))))});return}
49var o=ys(n,2),c=o[0],f=o[1];f&&Hr(f,function(m,h){tf(m,a,Ws(Ws([],ys(l)),ys(Yi(h))))}),a(c,l)}}function Pw(n,a,l){return tf(a,function(o,c){n=ef(n,c,function(f){return qw(f,o,l)})}),n}function Bw(n,a){function l(m,h){var p=Hw(n,Yi(h));m.map(Yi).forEach(function(x){n=ef(n,x,function(){return p})})}if(ia(a)){var o=ys(a,2),c=o[0],f=o[1];c.forEach(function(m){n=ef(n,Yi(m),function(){return n})}),f&&Hr(f,l)}else Hr(a,l);return n}var Qw=function(n,a){return Ki(n)||ia(n)||Zi(n)||$i(n)||Zg(n,a)};function Gw(n,a,l){var o=l.get(n);o?o.push(a):l.set(n,[a])}function Yw(n,a){var l={},o=void 0;return n.forEach(function(c){if(!(c.length<=1)){a||(c=c.map(function(p){return p.map(String)}).sort(function(p,x){return p.length-x.length}));var f=ys(c),m=f[0],h=f.slice(1);m.length===0?o=h.map(Ed):l[Ed(m)]=h.map(Ed)}}),o?$d(l)?[o]:[o,l]:$d(l)?void 0:l}var eb=function(n,a,l,o,c,f,m){var h;c===void 0&&(c=[]),f===void 0&&(f=[]),m===void 0&&(m=new Map);var p=_w(n);if(!p){Gw(n,c,a);var x=m.get(n);if(x)return o?{transformedValue:null}:x}if(!Qw(n,l)){var v=lx(n,l),b=v?{transformedValue:v.value,annotations:[v.type]}:{transformedValue:n};return p||m.set(n,b),b}if(zo(f,n))return{transformedValue:null};var j=lx(n,l),C=(h=j?.value)!==null&&h!==void 0?h:n,T=ia(C)?[]:{},S={};Hr(C,function(_,Z){var te=eb(_,a,l,o,Ws(Ws([],ys(c)),[Z]),Ws(Ws([],ys(f)),[n]),m);T[Z]=te.transformedValue,ia(te.annotations)?S[Z]=te.annotations:Ki(te.annotations)&&Hr(te.annotations,function(oe,X){S[Vg(Z)+"."+X]=oe})});var U=$d(S)?{transformedValue:T,annotations:j?[j.type]:void 0}:{transformedValue:T,annotations:j?[j.type,S]:S};return p||m.set(n,U),U};function tb(n){return Object.prototype.toString.call(n).slice(8,-1)}function ox(n){return tb(n)==="Array"}function Vw(n){if(tb(n)!=="Object")return!1;const a=Object.getPrototypeOf(n);return!!a&&a.constructor===Object&&a===Object.prototype}function Fw(n,a,l,o,c){const f={}.propertyIsEnumerable.call(o,a)?"enumerable":"nonenumerable";f==="enumerable"&&(n[a]=l),c&&f==="nonenumerable"&&Object.defineProperty(n,a,{value:l,enumerable:!1,writable:!0,configurable:!0})}function nf(n,a={}){if(ox(n))return n.map(c=>nf(c,a));if(!Vw(n))return n;const l=Object.getOwnPropertyNames(n),o=Object.getOwnPropertySymbols(n);return[...l,...o].reduce((c,f)=>{if(ox(a.props)&&!a.props.includes(f))return c;const m=n[f],h=nf(m,a);return Fw(c,f,h,n,a.nonenumerable),c},{})}var ka=function(){return ka=Object.assign||function(n){for(var a,l=1,o=arguments.length;l<o;l++){a=arguments[l];for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(n[c]=a[c])}return n},ka.apply(this,arguments)},Xw=function(n,a){var l=typeof Symbol=="function"&&n[Symbol.iterator];if(!l)return n;var o=l.call(n),c,f=[],m;try{for(;(a===void 0||a-- >0)&&!(c=o.next()).done;)f.push(c.value)}catch(h){m={error:h}}finally{try{c&&!c.done&&(l=o.return)&&l.call(o)}finally{if(m)throw m.error}}return f},Kw=function(n,a){for(var l=0,o=a.length,c=n.length;l<o;l++,c++)n[c]=a[l];return n},Cs=(function(){function n(a){var l=a===void 0?{}:a,o=l.dedupe,c=o===void 0?!1:o;this.classRegistry=new bw,this.symbolRegistry=new Qg(function(f){var m;return(m=f.description)!==null&&m!==void 0?m:""}),this.customTransformerRegistry=new ww,this.allowedErrorProps=[],this.dedupe=c}return n.prototype.serialize=function(a){var l=new Map,o=eb(a,l,this,this.dedupe),c={json:o.transformedValue};o.annotations&&(c.meta=ka(ka({},c.meta),{values:o.annotations}));var f=Yw(l,this.dedupe);return f&&(c.meta=ka(ka({},c.meta),{referentialEqualities:f})),c},n.prototype.deserialize=function(a){var l=a.json,o=a.meta,c=nf(l);return o?.values&&(c=Pw(c,o.values,this)),o?.referentialEqualities&&(c=Bw(c,o.referentialEqualities)),c},n.prototype.stringify=function(a){return JSON.stringify(this.serialize(a))},n.prototype.parse=function(a){return this.deserialize(JSON.parse(a))},n.prototype.registerClass=function(a,l){this.classRegistry.register(a,l)},n.prototype.registerSymbol=function(a,l){this.symbolRegistry.register(a,l)},n.prototype.registerCustom=function(a,l){this.customTransformerRegistry.register(ka({name:l},a))},n.prototype.allowErrorProps=function(){for(var a,l=[],o=0;o<arguments.length;o++)l[o]=arguments[o];(a=this.allowedErrorProps).push.apply(a,Kw([],Xw(l)))},n.defaultInstance=new n,n.serialize=n.defaultInstance.serialize.bind(n.defaultInstance),n.deserialize=n.defaultInstance.deserialize.bind(n.defaultInstance),n.stringify=n.defaultInstance.stringify.bind(n.defaultInstance),n.parse=n.defaultInstance.parse.bind(n.defaultInstance),n.registerClass=n.defaultInstance.registerClass.bind(n.defaultInstance),n.registerSymbol=n.defaultInstance.registerSymbol.bind(n.defaultInstance),n.registerCustom=n.defaultInstance.registerCustom.bind(n.defaultInstance),n.allowErrorProps=n.defaultInstance.allowErrorProps.bind(n.defaultInstance),n})();Cs.serialize;Cs.deserialize;Cs.stringify;Cs.parse;Cs.registerClass;Cs.registerCustom;Cs.registerSymbol;Cs.allowErrorProps;var Zw=(n,a,l,o,c,f,m,h)=>{let p=document.documentElement,x=["light","dark"];
vendor: 7,464 bytes, line 49
49function v(C){(Array.isArray(n)?n:[n]).forEach(T=>{let S=T==="class",U=S&&f?c.map(_=>f[_]||_):c;S?(p.classList.remove(...U),p.classList.add(f&&f[C]?f[C]:C)):p.setAttribute(T,C)}),b(C)}function b(C){h&&x.includes(C)&&(p.style.colorScheme=C)}function j(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)v(o);else try{let C=localStorage.getItem(a)||l,T=m&&C==="system"?j():C;v(T)}catch{}},$w=w.createContext(void 0),Iw={setTheme:n=>{},themes:[]},Jw=()=>{var n;return(n=w.useContext($w))!=null?n:Iw};w.memo(({forcedTheme:n,storageKey:a,attribute:l,enableSystem:o,enableColorScheme:c,defaultTheme:f,value:m,themes:h,nonce:p,scriptProps:x})=>{let v=JSON.stringify([l,a,f,n,h,m,o,c]).slice(1,-1);return w.createElement("script",{...x,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${Zw.toString()})(${v})`}})});var Af=Bg();const Ww=eg(Af);function eN(n){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",a.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const tN=n=>{switch(n){case"success":return aN;case"info":return iN;case"warning":return rN;case"error":return lN;default:return null}},nN=Array(12).fill(0),sN=({visible:n,className:a})=>fe.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":n},fe.createElement("div",{className:"sonner-spinner"},nN.map((l,o)=>fe.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),aN=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fe.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"})),rN=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},fe.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"})),iN=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fe.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"})),lN=fe.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},fe.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"})),oN=fe.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"},fe.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),fe.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),cN=()=>{const[n,a]=fe.useState(document.hidden);return fe.useEffect(()=>{const l=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let sf=1;class uN{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const l=this.subscribers.indexOf(a);this.subscribers.splice(l,1)}),this.publish=a=>{this.subscribers.forEach(l=>l(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var l;const{message:o,...c}=a,f=typeof a?.id=="number"||((l=a.id)==null?void 0:l.length)>0?a.id:sf++,m=this.toasts.find(p=>p.id===f),h=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(f)&&this.dismissedToasts.delete(f),m?this.toasts=this.toasts.map(p=>p.id===f?(this.publish({...p,...a,id:f,title:o}),{...p,...a,id:f,dismissible:h,title:o}):p):this.addToast({title:o,...c,dismissible:h,id:f}),f},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:a,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(o=>o({id:l.id,dismiss:!0}))}),a),this.message=(a,l)=>this.create({...l,message:a}),this.error=(a,l)=>this.create({...l,message:a,type:"error"}),this.success=(a,l)=>this.create({...l,type:"success",message:a}),this.info=(a,l)=>this.create({...l,type:"info",message:a}),this.warning=(a,l)=>this.create({...l,type:"warning",message:a}),this.loading=(a,l)=>this.create({...l,type:"loading",message:a}),this.promise=(a,l)=>{if(!l)return;let o;l.loading!==void 0&&(o=this.create({...l,promise:a,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const c=Promise.resolve(a instanceof Function?a():a);let f=o!==void 0,m;const h=c.then(async x=>{if(m=["resolve",x],fe.isValidElement(x))f=!1,this.create({id:o,type:"default",message:x});else if(fN(x)&&!x.ok){f=!1;const b=typeof l.error=="function"?await l.error(`HTTP error! status: ${x.status}`):l.error,j=typeof l.description=="function"?await l.description(`HTTP error! status: ${x.status}`):l.description,T=typeof b=="object"&&!fe.isValidElement(b)?b:{message:b};this.create({id:o,type:"error",description:j,...T})}else if(x instanceof Error){f=!1;const b=typeof l.error=="function"?await l.error(x):l.error,j=typeof l.description=="function"?await l.description(x):l.description,T=typeof b=="object"&&!fe.isValidElement(b)?b:{message:b};this.create({id:o,type:"error",description:j,...T})}else if(l.success!==void 0){f=!1;const b=typeof l.success=="function"?await l.success(x):l.success,j=typeof l.description=="function"?await l.description(x):l.description,T=typeof b=="object"&&!fe.isValidElement(b)?b:{message:b};this.create({id:o,type:"success",description:j,...T})}}).catch(async x=>{if(m=["reject",x],l.error!==void 0){f=!1;const v=typeof l.error=="function"?await l.error(x):l.error,b=typeof l.description=="function"?await l.description(x):l.description,C=typeof v=="object"&&!fe.isValidElement(v)?v:{message:v};this.create({id:o,type:"error",description:b,...C})}}).finally(()=>{f&&(this.dismiss(o),o=void 0),l.finally==null||l.finally.call(l)}),p=()=>new Promise((x,v)=>h.then(()=>m[0]==="reject"?v(m[1]):x(m[1])).catch(v));return typeof o!="string"&&typeof o!="number"?{unwrap:p}:Object.assign(o,{unwrap:p})},this.custom=(a,l)=>{const o=l?.id||sf++;return this.create({jsx:a(o),id:o,...l}),o},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Jt=new uN,dN=(n,a)=>{const l=a?.id||sf++;return Jt.addToast({title:n,...a,id:l}),l},fN=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",mN=dN,hN=()=>Jt.toasts,pN=()=>Jt.getActiveToasts(),Ee=Object.assign(mN,{success:Jt.success,info:Jt.info,warning:Jt.warning,error:Jt.error,custom:Jt.custom,message:Jt.message,promise:Jt.promise,dismiss:Jt.dismiss,loading:Jt.loading},{getHistory:hN,getToasts:pN});eN
vendor: 14,873 bytes, line 49
49("[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 
vendor: 542 bytes, line 49
49Co(n){return n.label!==void 0}const xN=3,gN="24px",bN="16px",cx=4e3,vN=356,yN=14,jN=45,wN=200;function Bn(...n){return n.filter(Boolean).join(" ")}function NN(n){const[a,l]=n.split("-"),o=[];return a&&o.push(a),l&&o.push(l),o}const SN=n=>{var a,l,o,c,f,m,h,p,x;const{invert:v,toast:b,unstyled:j,interacting:C,setHeights:T,visibleToasts:S,heights:U,index:_,toasts:Z,expanded:te,removeToast:oe,defaultRichColors:X,closeButton:F,style:z,cancelButtonStyle:q,actionButtonStyle:ne,className:se="",descriptionClassName:K="",duration:I,position:ce,ga
vendor: 8,455 bytes, line 49
49p:ie,expandByDefault:de,classNames:N,icons:L,closeButtonAriaLabel:O="Close toast"}=n,[ae,me]=fe.useState(null),[E,G]=fe.useState(null),[k,M]=fe.useState(!1),[Y,W]=fe.useState(!1),[le,ue]=fe.useState(!1),[ve,Ie]=fe.useState(!1),[lt,et]=fe.useState(!1),[zt,B]=fe.useState(0),[Re,Sn]=fe.useState(0),Zn=fe.useRef(b.duration||I||cx),$n=fe.useRef(null),qt=fe.useRef(null),da=_===0,fa=_+1<=S,Ot=b.type,Wt=b.dismissible!==!1,wt=b.className||"",Xr=b.descriptionClassName||"",In=fe.useMemo(()=>U.findIndex(Oe=>Oe.toastId===b.id)||0,[U,b.id]),Ya=fe.useMemo(()=>{var Oe;return(Oe=b.closeButton)!=null?Oe:F},[b.closeButton,F]),Jn=fe.useMemo(()=>b.duration||I||cx,[b.duration,I]),Cn=fe.useRef(0),re=fe.useRef(0),pe=fe.useRef(0),Ne=fe.useRef(null),[rt,Je]=ce.split("-"),Rt=fe.useMemo(()=>U.reduce((Oe,st,Nt)=>Nt>=In?Oe:Oe+st.height,0),[U,In]),ft=cN(),en=b.invert||v,Wn=Ot==="loading";re.current=fe.useMemo(()=>In*ie+Rt,[In,Rt]),fe.useEffect(()=>{Zn.current=Jn},[Jn]),fe.useEffect(()=>{M(!0)},[]),fe.useEffect(()=>{const Oe=qt.current;if(Oe){const st=Oe.getBoundingClientRect().height;return Sn(st),T(Nt=>[{toastId:b.id,height:st,position:b.position},...Nt]),()=>T(Nt=>Nt.filter(kt=>kt.toastId!==b.id))}},[T,b.id]),fe.useLayoutEffect(()=>{if(!k)return;const Oe=qt.current,st=Oe.style.height;Oe.style.height="auto";const Nt=Oe.getBoundingClientRect().height;Oe.style.height=st,Sn(Nt),T(kt=>kt.find(it=>it.toastId===b.id)?kt.map(it=>it.toastId===b.id?{...it,height:Nt}:it):[{toastId:b.id,height:Nt,position:b.position},...kt])},[k,b.title,b.description,T,b.id,b.jsx,b.action,b.cancel]);const Bt=fe.useCallback(()=>{W(!0),B(re.current),T(Oe=>Oe.filter(st=>st.toastId!==b.id)),setTimeout(()=>{oe(b)},wN)},[b,oe,T,re]);fe.useEffect(()=>{if(b.promise&&Ot==="loading"||b.duration===1/0||b.type==="loading")return;let Oe;return te||C||ft?(()=>{if(pe.current<Cn.current){const kt=new Date().getTime()-Cn.current;Zn.current=Zn.current-kt}pe.current=new Date().getTime()})():(()=>{Zn.current!==1/0&&(Cn.current=new Date().getTime(),Oe=setTimeout(()=>{b.onAutoClose==null||b.onAutoClose.call(b,b),Bt()},Zn.current))})(),()=>clearTimeout(Oe)},[te,C,b,Ot,ft,Bt]),fe.useEffect(()=>{b.delete&&(Bt(),b.onDismiss==null||b.onDismiss.call(b,b))},[Bt,b.delete]);function tn(){var Oe;if(L?.loading){var st;return fe.createElement("div",{className:Bn(N?.loader,b==null||(st=b.classNames)==null?void 0:st.loader,"sonner-loader"),"data-visible":Ot==="loading"},L.loading)}return fe.createElement(sN,{className:Bn(N?.loader,b==null||(Oe=b.classNames)==null?void 0:Oe.loader),visible:Ot==="loading"})}const Va=b.icon||L?.[Ot]||tN(Ot);var ma,kn;return fe.createElement("li",{tabIndex:0,ref:qt,className:Bn(se,wt,N?.toast,b==null||(a=b.classNames)==null?void 0:a.toast,N?.default,N?.[Ot],b==null||(l=b.classNames)==null?void 0:l[Ot]),"data-sonner-toast":"","data-rich-colors":(ma=b.richColors)!=null?ma:X,"data-styled":!(b.jsx||b.unstyled||j),"data-mounted":k,"data-promise":!!b.promise,"data-swiped":lt,"data-removed":Y,"data-visible":fa,"data-y-position":rt,"data-x-position":Je,"data-index":_,"data-front":da,"data-swiping":le,"data-dismissible":Wt,"data-type":Ot,"data-invert":en,"data-swipe-out":ve,"data-swipe-direction":E,"data-expanded":!!(te||de&&k),"data-testid":b.testId,style:{"--index":_,"--toasts-before":_,"--z-index":Z.length-_,"--offset":`${Y?zt:re.current}px`,"--initial-height":de?"auto":`${Re}px`,...z,...b.style},onDragEnd:()=>{ue(!1),me(null),Ne.current=null},onPointerDown:Oe=>{Oe.button!==2&&(Wn||!Wt||($n.current=new Date,B(re.current),Oe.target.setPointerCapture(Oe.pointerId),Oe.target.tagName!=="BUTTON"&&(ue(!0),Ne.current={x:Oe.clientX,y:Oe.clientY})))},onPointerUp:()=>{var Oe,st,Nt;if(ve||!Wt)return;Ne.current=null;const kt=Number(((Oe=qt.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Os=Number(((st=qt.current)==null?void 0:st.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),it=new Date().getTime()-((Nt=$n.current)==null?void 0:Nt.getTime()),Qt=ae==="x"?kt:Os,ha=Math.abs(Qt)/it;if(Math.abs(Qt)>=jN||ha>.11){B(re.current),b.onDismiss==null||b.onDismiss.call(b,b),G(ae==="x"?kt>0?"right":"left":Os>0?"down":"up"),Bt(),Ie(!0);return}else{var Gt,Yt;(Gt=qt.current)==null||Gt.style.setProperty("--swipe-amount-x","0px"),(Yt=qt.current)==null||Yt.style.setProperty("--swipe-amount-y","0px")}et(!1),ue(!1),me(null)},onPointerMove:Oe=>{var st,Nt,kt;if(!Ne.current||!Wt||((st=window.getSelection())==null?void 0:st.toString().length)>0)return;const it=Oe.clientY-Ne.current.y,Qt=Oe.clientX-Ne.current.x;var ha;const Gt=(ha=n.swipeDirections)!=null?ha:NN(ce);!ae&&(Math.abs(Qt)>1||Math.abs(it)>1)&&me(Math.abs(Qt)>Math.abs(it)?"x":"y");let Yt={x:0,y:0};const Fa=En=>1/(1.5+Math.abs(En)/20);if(ae==="y"){if(Gt.includes("top")||Gt.includes("bottom"))if(Gt.includes("top")&&it<0||Gt.includes("bottom")&&it>0)Yt.y=it;else{const En=it*Fa(it);Yt.y=Math.abs(En)<Math.abs(it)?En:it}}else if(ae==="x"&&(Gt.includes("left")||Gt.includes("right")))if(Gt.includes("left")&&Qt<0||Gt.includes("right")&&Qt>0)Yt.x=Qt;else{const En=Qt*Fa(Qt);Yt.x=Math.abs(En)<Math.abs(Qt)?En:Qt}(Math.abs(Yt.x)>0||Math.abs(Yt.y)>0)&&et(!0),(Nt=qt.current)==null||Nt.style.setProperty("--swipe-amount-x",`${Yt.x}px`),(kt=qt.current)==null||kt.style.setProperty("--swipe-amount-y",`${Yt.y}px`)}},Ya&&!b.jsx&&Ot!=="loading"?fe.createElement("button",{"aria-label":O,"data-disabled":Wn,"data-close-button":!0,onClick:Wn||!Wt?()=>{}:()=>{Bt(),b.onDismiss==null||b.onDismiss.call(b,b)},className:Bn(N?.closeButton,b==null||(o=b.classNames)==null?void 0:o.closeButton)},(kn=L?.close)!=null?kn:oN):null,(Ot||b.icon||b.promise)&&b.icon!==null&&(L?.[Ot]!==null||b.icon)?fe.createElement("div",{"data-icon":"",className:Bn(N?.icon,b==null||(c=b.classNames)==null?void 0:c.icon)},b.promise||b.type==="loading"&&!b.icon?b.icon||tn():null,b.type!=="loading"?Va:null):null,fe.createElement("div",{"data-content":"",className:Bn(N?.content,b==null||(f=b.classNames)==null?void 0:f.content)},fe.createElement("div",{"data-title":"",className:Bn(N?.title,b==null||(m=b.classNames)==null?void 0:m.title)},b.jsx?b.jsx:typeof b.title=="function"?b.title():b.title),b.description?fe.createElement("div",{"data-description":"",className:Bn(K,Xr,N?.description,b==null||(h=b.classNames)==null?void 0:h.description)},typeof b.description=="function"?b.description():b.description):null),fe.isValidElement(b.cancel)?b.cancel:b.cancel&&Co(b.cancel)?fe.createElement("button",{"data-button":!0,"data-cancel":!0,style:b.cancelButtonStyle||q,onClick:Oe=>{Co(b.cancel)&&Wt&&(b.cancel.onClick==null||b.cancel.onClick.call(b.cancel,Oe),Bt())},className:Bn(N?.cancelButton,b==null||(p=b.classNames)==null?void 0:p.cancelButton)},b.cancel.label):null,fe.isValidElement(b.action)?b.action:b.action&&Co(b.action)?fe.createElement("button",{"data-button":!0,"data-action":!0,style:b.actionButtonStyle||ne,onClick:Oe=>{Co(b.action)&&(b.action.onClick==null||b.action.onClick.call(b.action,Oe),!Oe.defaultPrevented&&Bt())},className:Bn(N?.actionButton,b==null||(x=b.classNames)==null?void 0:x.actionButton)},b.action.label):null)};function ux(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function CN(n,a){const l={};return[n,a].forEach((o,c)=>{const f=c===1,m=f?"--mobile-offset":"--offset",h=f?bN:gN;function p(x){["top","right","bottom","left"].forEach(v=>{l[`${m}-${v}`]=typeof x=="number"?`${x}px`:x})}typeof o=="number"||typeof o=="string"?p(o):typeof o=="object"?["top","right","bottom","left"].forEach(x=>{o[x]===void 0?l[`${m}-${x}`]=h:l[`${m}-${x}`]=typeof o[x]=="number"?`${o[x]}px`:o[x]}):p(h)}),l}const EN=fe.forwardRef(function(a,l){const{id:o,invert:c,position:f="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:p,className:x,offset:v,mobileOffset:b,theme:j="light",richColors:C,duration:T,style:S,visibleToasts:U=xN,toastOptions:_,dir:Z=ux(),gap:te=yN,icons:oe,containerAriaLabel:X="Notifications"}=a,[F,z]=fe.useState([]),q=fe.useMemo(()=>o?F.filter(k=>k.toasterId===o):F.filter(k=>!k.toasterId),[F,o]),ne=fe.useMemo(()=>Array.from(new Set([f].concat(q.filter(k=>k.position).map(k=>k.position)))),[q,f]),[se,K]=fe.useState([]),[I,ce]=fe.useState(!1),[ie,de]=fe.useState(!1),[N,L]=fe.useState(j!=="system"?j:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
49k":"light"),O=fe.useRef(null),ae=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),me=fe.useRef(null),E=fe.useRef(!1),G=fe.useCallback(k=>{z(M=>{var Y;return(Y=M.find(W=>W.id===k.id))!=null&&Y.delete||Jt.dismiss(k.id),M.filter(({id:W})=>W!==k.id)})},[]);return fe.useEffect(()=>Jt.subscribe(k=>{if(k.dismiss){requestAnimationFrame(()=>{z(M=>M.map(Y=>Y.id===k.id?{...Y,delete:!0}:Y))});return}setTimeout(()=>{Ww.flushSync(()=>{z(M=>{const Y=M.findIndex(W=>W.id===k.id);return Y!==-1?[...M.slice(0,Y),{...M[Y],...k},...M.slice(Y+1)]:[k,...M]})})})}),[F]),fe.useEffect(()=>{if(j!=="system"){L(j);return}if(j==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),typeof window>"u")return;const k=window.matchMedia("(prefers-color-scheme: dark)");try{k.addEventListener("change",({matches:M})=>{L(M?"dark":"light")})}catch{k.addListener(({matches:Y})=>{try{L(Y?"dark":"light")}catch(W){console.error(W)}})}},[j]),fe.useEffect(()=>{F.length<=1&&ce(!1)},[F]),fe.useEffect(()=>{const k=M=>{var Y;if(m.every(ue=>M[ue]||M.code===ue)){var le;ce(!0),(le=O.current)==null||le.focus()}M.code==="Escape"&&(document.activeElement===O.current||(Y=O.current)!=null&&Y.contains(document.activeElement))&&ce(!1)};return document.addEventListener("keydown",k),()=>document.removeEventListener("keydown",k)},[m]),fe.useEffect(()=>{if(O.current)return()=>{me.current&&(me.current.focus({preventScroll:!0}),me.current=null,E.current=!1)}},[O.current]),fe.createElement("section",{ref:l,"aria-label":`${X} ${ae}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ne.map((k,M)=>{var Y;const[W,le]=k.split("-");return q.length?fe.createElement("ol",{key:k,dir:Z==="auto"?ux():Z,tabIndex:-1,ref:O,className:x,"data-sonner-toaster":!0,"data-sonner-theme":N,"data-y-position":W,"data-x-position":le,style:{"--front-toast-height":`${((Y=se[0])==null?void 0:Y.height)||0}px`,"--width":`${vN}px`,"--gap":`${te}px`,...S,...CN(v,b)},onBlur:ue=>{E.current&&!ue.currentTarget.contains(ue.relatedTarget)&&(E.current=!1,me.current&&(me.current.focus({preventScroll:!0}),me.current=null))},onFocus:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||E.current||(E.current=!0,me.current=ue.relatedTarget)},onMouseEnter:()=>ce(!0),onMouseMove:()=>ce(!0),onMouseLeave:()=>{ie||ce(!1)},onDragEnd:()=>ce(!1),onPointerDown:ue=>{ue.target instanceof HTMLElement&&ue.target.dataset.dismissible==="false"||de(!0)},onPointerUp:()=>de(!1)},q.filter(ue=>!ue.position&&M===0||ue.position===k).map((ue,ve)=>{var Ie,lt;return fe.createElement(SN,{key:ue.id,icons:oe,index:ve,toast:ue,defaultRichColors:C,duration:(Ie=_?.duration)!=null?Ie:T,className:_?.className,descriptionClassName:_?.descriptionClassName,invert:c,visibleToasts:U,closeButton:(lt=_?.closeButton)!=null?lt:p,interacting:ie,position:k,style:_?.style,unstyled:_?.unstyled,classNames:_?.classNames,cancelButtonStyle:_?.cancelButtonStyle,actionButtonStyle:_?.actionButtonStyle,closeButtonAriaLabel:_?.closeButtonAriaLabel,removeToast:G,toasts:q.filter(et=>et.position==ue.position),heights:se.filter(et=>et.position==ue.position),setHeights:K,expandByDefault:h,gap:te,expanded:I,swipeDirections:a.swipeDirections})})):null}))}),ON=({...n})=>{const{theme:a="system"}=Jw();return r.jsx(EN,{theme:a,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...n})};function Gn(n,a,{checkForDefaultPrevented:l=!0}={}){return function(c){if(n?.(c),l===!1||!c.defaultPrevented)return a?.(c)}}function dx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function nb(...n){return a=>{let l=!1;const o=n.map(c=>{const f=dx(c,a);return!l&&typeof f=="function"&&(l=!0),f});if(l)return()=>{for(let c=0;c<o.length;c++){const f=o[c];typeof f=="function"?f():dx(n[c],null)}}}}function Es(...n){return w.useCallback(nb(...n),n)}function Tf(n,a=[]){let l=[];function o(f,m){const h=w.createContext(m),p=l.length;l=[...l,m];const x=b=>{const{scope:j,children:C,...T}=b,S=j?.[n]?.[p]||h,U=w.useMemo(()=>T,Object.values(T));return r.jsx(S.Provider,{value:U,children:C})};x.displayName=f+"Provider";function v(b,j){const C=j?.[n]?.[p]||h,T=w.useContext(C);if(T)return T;if(m!==void 0)return m;throw new Error(`\`${b}\` must be used within \`${f}\``)}return[x,v]}const c=()=>{const f=l.map(m=>w.createContext(m));return function(h){const p=h?.[n]||f;return w.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return c.scopeName=n,[o,AN(c,...a)]}function AN(...n){const a=n[0];if(n.length===1)return a;const l=()=>{const o=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(f){const m=o.reduce((h,{useScope:p,scopeName:x})=>{const b=p(f)[`__scope${x}`];return{...h,...b}},{});return w.useMemo(()=>({[`__scope${a.scopeName}`]:m}),[m])}};return l.scopeName=a.scopeName,l}
vendor: 4,107 bytes, line 49
49function sb(n){const a=TN(n),l=w.forwardRef((o,c)=>{const{children:f,...m}=o,h=w.Children.toArray(f),p=h.find(_N);if(p){const x=p.props.children,v=h.map(b=>b===p?w.Children.count(x)>1?w.Children.only(null):w.isValidElement(x)?x.props.children:null:b);return r.jsx(a,{...m,ref:c,children:w.isValidElement(x)?w.cloneElement(x,void 0,v):null})}return r.jsx(a,{...m,ref:c,children:f})});return l.displayName=`${n}.Slot`,l}var ab=sb("Slot");function TN(n){const a=w.forwardRef((l,o)=>{const{children:c,...f}=l;if(w.isValidElement(c)){const m=zN(c),h=DN(f,c.props);return c.type!==w.Fragment&&(h.ref=o?nb(o,m):m),w.cloneElement(c,h)}return w.Children.count(c)>1?w.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var rb=Symbol("radix.slottable");function MN(n){const a=({children:l})=>r.jsx(r.Fragment,{children:l});return a.displayName=`${n}.Slottable`,a.__radixId=rb,a}function _N(n){return w.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===rb}function DN(n,a){const l={...a};for(const o in a){const c=n[o],f=a[o];/^on[A-Z]/.test(o)?c&&f?l[o]=(...h)=>{const p=f(...h);return c(...h),p}:c&&(l[o]=c):o==="style"?l[o]={...c,...f}:o==="className"&&(l[o]=[c,f].filter(Boolean).join(" "))}return{...n,...l}}function zN(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var RN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Rn=RN.reduce((n,a)=>{const l=sb(`Primitive.${a}`),o=w.forwardRef((c,f)=>{const{asChild:m,...h}=c,p=m?l:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(p,{...h,ref:f})});return o.displayName=`Primitive.${a}`,{...n,[a]:o}},{});function kN(n,a){n&&Af.flushSync(()=>n.dispatchEvent(a))}function Io(n){const a=w.useRef(n);return w.useEffect(()=>{a.current=n}),w.useMemo(()=>(...l)=>a.current?.(...l),[])}function UN(n,a=globalThis?.document){const l=Io(n);w.useEffect(()=>{const o=c=>{c.key==="Escape"&&l(c)};return a.addEventListener("keydown",o,{capture:!0}),()=>a.removeEventListener("keydown",o,{capture:!0})},[l,a])}var LN="DismissableLayer",af="dismissableLayer.update",qN="dismissableLayer.pointerDownOutside",HN="dismissableLayer.focusOutside",fx,ib=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lb=w.forwardRef((n,a)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:o,onPointerDownOutside:c,onFocusOutside:f,onInteractOutside:m,onDismiss:h,...p}=n,x=w.useContext(ib),[v,b]=w.useState(null),j=v?.ownerDocument??globalThis?.document,[,C]=w.useState({}),T=Es(a,z=>b(z)),S=Array.from(x.layers),[U]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(U),Z=v?S.indexOf(v):-1,te=x.layersWithOutsidePointerEventsDisabled.size>0,oe=Z>=_,X=QN(z=>{const q=z.target,ne=[...x.branches].some(se=>se.contains(q));!oe||ne||(c?.(z),m?.(z),z.defaultPrevented||h?.())},j),F=GN(z=>{const q=z.target;[...x.branches].some(se=>se.contains(q))||(f?.(z),m?.(z),z.defaultPrevented||h?.())},j);return UN(z=>{Z===x.layers.size-1&&(o?.(z),!z.defaultPrevented&&h&&(z.preventDefault(),h()))},j),w.useEffect(()=>{if(v)return l&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(fx=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(v)),x.layers.add(v),mx(),()=>{l&&x.layersWithOutsidePointerEventsDisabled.size===1&&(j.body.style.pointerEvents=fx)}},[v,j,l,x]),w.useEffect(()=>()=>{v&&(x.layers.delete(v),x.layersWithOutsidePointerEventsDisabled.delete(v),mx())},[v,x]),w.useEffect(()=>{const z=()=>C({});return document.addEventListener(af,z),()=>document.removeEventListener(af,z)},[]),r.jsx(Rn.div,{...p,ref:T,style:{pointerEvents:te?oe?"auto":"none":void 0,...n.style},onFocusCapture:Gn(n.onFocusCapture,F.onFocusCapture),onBlurCapture:Gn(n.onBlurCapture,F.onBlurCapture),onPointerDownCapture:Gn(n.onPointerDownCapture,X.onPointerDownCapture)})});
vendor: 4,621 bytes, line 49
49lb.displayName=LN;var PN="DismissableLayerBranch",BN=w.forwardRef((n,a)=>{const l=w.useContext(ib),o=w.useRef(null),c=Es(a,o);return w.useEffect(()=>{const f=o.current;if(f)return l.branches.add(f),()=>{l.branches.delete(f)}},[l.branches]),r.jsx(Rn.div,{...n,ref:c})});BN.displayName=PN;function QN(n,a=globalThis?.document){const l=Io(n),o=w.useRef(!1),c=w.useRef(()=>{});return w.useEffect(()=>{const f=h=>{if(h.target&&!o.current){let p=function(){ob(qN,l,x,{discrete:!0})};const x={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",c.current),c.current=p,a.addEventListener("click",c.current,{once:!0})):p()}else a.removeEventListener("click",c.current);o.current=!1},m=window.setTimeout(()=>{a.addEventListener("pointerdown",f)},0);return()=>{window.clearTimeout(m),a.removeEventListener("pointerdown",f),a.removeEventListener("click",c.current)}},[a,l]),{onPointerDownCapture:()=>o.current=!0}}function GN(n,a=globalThis?.document){const l=Io(n),o=w.useRef(!1);return w.useEffect(()=>{const c=f=>{f.target&&!o.current&&ob(HN,l,{originalEvent:f},{discrete:!1})};return a.addEventListener("focusin",c),()=>a.removeEventListener("focusin",c)},[a,l]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function mx(){const n=new CustomEvent(af);document.dispatchEvent(n)}function ob(n,a,l,{discrete:o}){const c=l.originalEvent.target,f=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});a&&c.addEventListener(n,a,{once:!0}),o?kN(c,f):c.dispatchEvent(f)}var Pr=globalThis?.document?w.useLayoutEffect:()=>{};const YN=["top","right","bottom","left"],la=Math.min,un=Math.max,qo=Math.round,Eo=Math.floor,Vn=n=>({x:n,y:n}),VN={left:"right",right:"left",bottom:"top",top:"bottom"},FN={start:"end",end:"start"};function rf(n,a,l){return un(n,la(a,l))}function Ns(n,a){return typeof n=="function"?n(a):n}function Ss(n){return n.split("-")[0]}function Gr(n){return n.split("-")[1]}function Mf(n){return n==="x"?"y":"x"}function _f(n){return n==="y"?"height":"width"}const XN=new Set(["top","bottom"]);function Yn(n){return XN.has(Ss(n))?"y":"x"}function Df(n){return Mf(Yn(n))}function KN(n,a,l){l===void 0&&(l=!1);const o=Gr(n),c=Df(n),f=_f(c);let m=c==="x"?o===(l?"end":"start")?"right":"left":o==="start"?"bottom":"top";return a.reference[f]>a.floating[f]&&(m=Ho(m)),[m,Ho(m)]}function ZN(n){const a=Ho(n);return[lf(n),a,lf(a)]}function lf(n){return n.replace(/start|end/g,a=>FN[a])}const hx=["left","right"],px=["right","left"],$N=["top","bottom"],IN=["bottom","top"];function JN(n,a,l){switch(n){case"top":case"bottom":return l?a?px:hx:a?hx:px;case"left":case"right":return a?$N:IN;default:return[]}}function WN(n,a,l,o){const c=Gr(n);let f=JN(Ss(n),l==="start",o);return c&&(f=f.map(m=>m+"-"+c),a&&(f=f.concat(f.map(lf)))),f}function Ho(n){return n.replace(/left|right|bottom|top/g,a=>VN[a])}function eS(n){return{top:0,right:0,bottom:0,left:0,...n}}function cb(n){return typeof n!="number"?eS(n):{top:n,right:n,bottom:n,left:n}}function Po(n){const{x:a,y:l,width:o,height:c}=n;return{width:o,height:c,top:l,left:a,right:a+o,bottom:l+c,x:a,y:l}}function xx(n,a,l){let{reference:o,floating:c}=n;const f=Yn(a),m=Df(a),h=_f(m),p=Ss(a),x=f==="y",v=o.x+o.width/2-c.width/2,b=o.y+o.height/2-c.height/2,j=o[h]/2-c[h]/2;let C;switch(p){case"top":C={x:v,y:o.y-c.height};break;case"bottom":C={x:v,y:o.y+o.height};break;case"right":C={x:o.x+o.width,y:b};break;case"left":C={x:o.x-c.width,y:b};break;default:C={x:o.x,y:o.y}}switch(Gr(a)){case"start":C[m]-=j*(l&&x?-1:1);break;case"end":C[m]+=j*(l&&x?-1:1);break}return C}const tS=async(n,a,l)=>{const{placement:o="bottom",strategy:c="absolute",middleware:f=[],platform:m}=l,h=f.filter(Boolean),p=await(m.isRTL==null?void 0:m.isRTL(a));let x=await m.getElementRects({reference:n,floating:a,strategy:c}),{x:v,y:b}=xx(x,o,p),j=o,C={},T=0;for(let S=0;S<h.length;S++){const{name:U,fn:_}=h[S],{x:Z,y:te,data:oe,reset:X}=await _({x:v,y:b,initialPlacement:o,placement:j,strategy:c,middlewareData:C,rects:x,platform:m,elements:{reference:n,floating:a}});v=Z??v,b=te??b,C={...C,[U]:{...C[U],...oe}},X&&T<=50&&(T++,typeof X=="object"&&(X.placement&&(j=X.placement),X.rects&&(x=X.rects===!0?await m.getElementRects({reference:n,floating:a,strategy:c}):X.rects),{x:v,y:b}=xx(x,j,p)),S=-1)}return{x:v,y:b,placement:j,strategy:c,middlewareData:C}};async function Ii(n,a){var l;a===void 0&&(a={});const{x:o,y:c,platform:f,rects:m,elements:h,strategy:p}=n,{boundary:x="clippingAncestors",rootBoundary:v="viewport",elementContext:b="floating",altBoundary:j=!1,padding:C=0}=Ns(a,n),T=cb(C),U=h[j?b==="floating"?"reference":"floating":b],_=Po(await f.getClippingRect
vendor: 11,604 bytes, line 49
49({element:(l=await(f.isElement==null?void 0:f.isElement(U)))==null||l?U:U.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(h.floating)),boundary:x,rootBoundary:v,strategy:p})),Z=b==="floating"?{x:o,y:c,width:m.floating.width,height:m.floating.height}:m.reference,te=await(f.getOffsetParent==null?void 0:f.getOffsetParent(h.floating)),oe=await(f.isElement==null?void 0:f.isElement(te))?await(f.getScale==null?void 0:f.getScale(te))||{x:1,y:1}:{x:1,y:1},X=Po(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:Z,offsetParent:te,strategy:p}):Z);return{top:(_.top-X.top+T.top)/oe.y,bottom:(X.bottom-_.bottom+T.bottom)/oe.y,left:(_.left-X.left+T.left)/oe.x,right:(X.right-_.right+T.right)/oe.x}}const nS=n=>({name:"arrow",options:n,async fn(a){const{x:l,y:o,placement:c,rects:f,platform:m,elements:h,middlewareData:p}=a,{element:x,padding:v=0}=Ns(n,a)||{};if(x==null)return{};const b=cb(v),j={x:l,y:o},C=Df(c),T=_f(C),S=await m.getDimensions(x),U=C==="y",_=U?"top":"left",Z=U?"bottom":"right",te=U?"clientHeight":"clientWidth",oe=f.reference[T]+f.reference[C]-j[C]-f.floating[T],X=j[C]-f.reference[C],F=await(m.getOffsetParent==null?void 0:m.getOffsetParent(x));let z=F?F[te]:0;(!z||!await(m.isElement==null?void 0:m.isElement(F)))&&(z=h.floating[te]||f.floating[T]);const q=oe/2-X/2,ne=z/2-S[T]/2-1,se=la(b[_],ne),K=la(b[Z],ne),I=se,ce=z-S[T]-K,ie=z/2-S[T]/2+q,de=rf(I,ie,ce),N=!p.arrow&&Gr(c)!=null&&ie!==de&&f.reference[T]/2-(ie<I?se:K)-S[T]/2<0,L=N?ie<I?ie-I:ie-ce:0;return{[C]:j[C]+L,data:{[C]:de,centerOffset:ie-de-L,...N&&{alignmentOffset:L}},reset:N}}}),sS=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var l,o;const{placement:c,middlewareData:f,rects:m,initialPlacement:h,platform:p,elements:x}=a,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:j,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:S=!0,...U}=Ns(n,a);if((l=f.arrow)!=null&&l.alignmentOffset)return{};const _=Ss(c),Z=Yn(h),te=Ss(h)===h,oe=await(p.isRTL==null?void 0:p.isRTL(x.floating)),X=j||(te||!S?[Ho(h)]:ZN(h)),F=T!=="none";!j&&F&&X.push(...WN(h,S,T,oe));const z=[h,...X],q=await Ii(a,U),ne=[];let se=((o=f.flip)==null?void 0:o.overflows)||[];if(v&&ne.push(q[_]),b){const ie=KN(c,m,oe);ne.push(q[ie[0]],q[ie[1]])}if(se=[...se,{placement:c,overflows:ne}],!ne.every(ie=>ie<=0)){var K,I;const ie=(((K=f.flip)==null?void 0:K.index)||0)+1,de=z[ie];if(de&&(!(b==="alignment"?Z!==Yn(de):!1)||se.every(O=>Yn(O.placement)===Z?O.overflows[0]>0:!0)))return{data:{index:ie,overflows:se},reset:{placement:de}};let N=(I=se.filter(L=>L.overflows[0]<=0).sort((L,O)=>L.overflows[1]-O.overflows[1])[0])==null?void 0:I.placement;if(!N)switch(C){case"bestFit":{var ce;const L=(ce=se.filter(O=>{if(F){const ae=Yn(O.placement);return ae===Z||ae==="y"}return!0}).map(O=>[O.placement,O.overflows.filter(ae=>ae>0).reduce((ae,me)=>ae+me,0)]).sort((O,ae)=>O[1]-ae[1])[0])==null?void 0:ce[0];L&&(N=L);break}case"initialPlacement":N=h;break}if(c!==N)return{reset:{placement:N}}}return{}}}};function gx(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function bx(n){return YN.some(a=>n[a]>=0)}const aS=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:l}=a,{strategy:o="referenceHidden",...c}=Ns(n,a);switch(o){case"referenceHidden":{const f=await Ii(a,{...c,elementContext:"reference"}),m=gx(f,l.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:bx(m)}}}case"escaped":{const f=await Ii(a,{...c,altBoundary:!0}),m=gx(f,l.floating);return{data:{escapedOffsets:m,escaped:bx(m)}}}default:return{}}}}},ub=new Set(["left","top"]);async function rS(n,a){const{placement:l,platform:o,elements:c}=n,f=await(o.isRTL==null?void 0:o.isRTL(c.floating)),m=Ss(l),h=Gr(l),p=Yn(l)==="y",x=ub.has(m)?-1:1,v=f&&p?-1:1,b=Ns(a,n);let{mainAxis:j,crossAxis:C,alignmentAxis:T}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return h&&typeof T=="number"&&(C=h==="end"?T*-1:T),p?{x:C*v,y:j*x}:{x:j*x,y:C*v}}const iS=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var l,o;const{x:c,y:f,placement:m,middlewareData:h}=a,p=await rS(a,n);return m===((l=h.offset)==null?void 0:l.placement)&&(o=h.arrow)!=null&&o.alignmentOffset?{}:{x:c+p.x,y:f+p.y,data:{...p,placement:m}}}}},lS=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:l,y:o,placement:c}=a,{mainAxis:f=!0,crossAxis:m=!1,limiter:h={fn:U=>{let{x:_,y:Z}=U;return{x:_,y:Z}}},...p}=Ns(n,a),x={x:l,y:o},v=await Ii(a,p),b=Yn(Ss(c)),j=Mf(b);let C=x[j],T=x[b];if(f){const U=j==="y"?"top":"left",_=j==="y"?"bottom":"right",Z=C+v[U],te=C-v[_];C=rf(Z,C,te)}if(m){const U=b==="y"?"top":"left",_=b==="y"?"bottom":"right",Z=T+v[U],te=T-v[_];T=rf(Z,T,te)}const S=h.fn({...a,[j]:C,[b]:T});return{...S,data:{x:S.x-l,y:S.y-o,enabled:{[j]:f,[b]:m}}}}}},oS=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:l,y:o,placement:c,rects:f,middlewareData:m}=a,{offset:h=0,mainAxis:p=!0,crossAxis:x=!0}=Ns(n,a),v={x:l,y:o},b=Yn(c),j=Mf(b);let C=v[j],T=v[b];const S=Ns(h,a),U=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const te=j==="y"?"height":"width",oe=f.reference[j]-f.floating[te]+U.mainAxis,X=f.reference[j]+f.reference[te]-U.mainAxis;C<oe?C=oe:C>X&&(C=X)}if(x){var _,Z;const te=j==="y"?"width":"height",oe=ub.has(Ss(c)),X=f.reference[b]-f.floating[te]+(oe&&((_=m.offset)==null?void 0:_[b])||0)+(oe?0:U.crossAxis),F=f.reference[b]+f.reference[te]+(oe?0:((Z=m.offset)==null?void 0:Z[b])||0)-(oe?U.crossAxis:0);T<X?T=X:T>F&&(T=F)}return{[j]:C,[b]:T}}}},cS=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var l,o;const{placement:c,rects:f,platform:m,elements:h}=a,{apply:p=()=>{},...x}=Ns(n,a),v=await Ii(a,x),b=Ss(c),j=Gr(c),C=Yn(c)==="y",{width:T,height:S}=f.floating;let U,_;b==="top"||b==="bottom"?(U=b,_=j===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(_=b,U=j==="end"?"top":"bottom");const Z=S-v.top-v.bottom,te=T-v.left-v.right,oe=la(S-v[U],Z),X=la(T-v[_],te),F=!a.middlewareData.shift;let z=oe,q=X;if((l=a.middlewareData.shift)!=null&&l.enabled.x&&(q=te),(o=a.middlewareData.shift)!=null&&o.enabled.y&&(z=Z),F&&!j){const se=un(v.left,0),K=un(v.right,0),I=un(v.top,0),ce=un(v.bottom,0);C?q=T-2*(se!==0||K!==0?se+K:un(v.left,v.right)):z=S-2*(I!==0||ce!==0?I+ce:un(v.top,v.bottom))}await p({...a,availableWidth:q,availableHeight:z});const ne=await m.getDimensions(h.floating);return T!==ne.width||S!==ne.height?{reset:{rects:!0}}:{}}}};function Jo(){return typeof window<"u"}function Yr(n){return db(n)?(n.nodeName||"").toLowerCase():"#document"}function fn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function Kn(n){var a;return(a=(db(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function db(n){return Jo()?n instanceof Node||n instanceof fn(n).Node:!1}function Mn(n){return Jo()?n instanceof Element||n instanceof fn(n).Element:!1}function Fn(n){return Jo()?n instanceof HTMLElement||n instanceof fn(n).HTMLElement:!1}function vx(n){return!Jo()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof fn(n).ShadowRoot}const uS=new Set(["inline","contents"]);function il(n){const{overflow:a,overflowX:l,overflowY:o,display:c}=_n(n);return/auto|scroll|overlay|hidden|clip/.test(a+o+l)&&!uS.has(c)}const dS=new Set(["table","td","th"]);function fS(n){return dS.has(Yr(n))}const mS=[":popover-open",":modal"];function Wo(n){return mS.some(a=>{try{return n.matches(a)}catch{return!1}})}const hS=["transform","translate","scale","rotate","perspective"],pS=["transform","translate","scale","rotate","perspective","filter"],xS=["paint","layout","strict","content"];function zf(n){const a=Rf(),l=Mn(n)?_n(n):n;return hS.some(o=>l[o]?l[o]!=="none":!1)||(l.containerType?l.containerType!=="normal":!1)||!a&&(l.backdropFilter?l.backdropFilter!=="none":!1)||!a&&(l.filter?l.filter!=="none":!1)||pS.some(o=>(l.willChange||"").includes(o))||xS.some(o=>(l.contain||"").includes(o))}function gS(n){let a=oa(n);for(;Fn(a)&&!Br(a);){if(zf(a))return a;if(Wo(a))return null;a=oa(a)}return null}function Rf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bS=new Set(["html","body","#document"]);function Br(n){return bS.has(Yr(n))}function _n(n){return fn(n).getComputedStyle(n)}function ec(n){return Mn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function oa(n){if(Yr(n)==="html")return n;const a=n.assignedSlot||n.parentNode||vx(n)&&n.host||Kn(n);return vx(a)?a.host:a}function fb(n){const a=oa(n);return Br(a)?n.ownerDocument?n.ownerDocument.body:n.body:Fn(a)&&il(a)?a:fb(a)}function Ji(n,a,l){var o;a===void 0&&(a=[]),l===void 0&&(l=!0);const c=fb(n),f=c===((o=n.ownerDocument)==null?void 0:o.body),m=fn(c);if(f){const h=of(m);return a.concat(m,m.visualViewport||[],il(c)?c:[],h&&l?Ji(h):[])}return a.concat(c,Ji(c,[],l))}function of(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function mb(n){const a=_n(n);let l=parseFloat(a.width)||0,o=parseFloat(a.height)||0;const c=Fn(n),f=c?n.offsetWidth:l,m=c?n.offsetHeight:o,h=qo(l)!==f||qo(o)!==m;return h&&(l=f,o=m),{width:l,height:o,$:h}}function kf(n){return Mn(n)?n:n.contextElement}function kr(n){const a=kf(n);if(!Fn(a))return Vn(1);const l=a.getBoundingClientRect(),{width:o,height:c,$:f}=mb(a);let m=(f?qo(l.width):l.width)/o,h=(f?qo(l.height):l.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const vS=Vn(0);function hb(n){const a=fn(n);return!Rf()||!a.visualViewport?vS:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function yS(n,a,l){return a===void 0&&(a=!1),!l||a&&l!==fn(n)?!1:a}function Pa(n,a,l,o){a===void 0&&(a=!1),l===void 0&&(l=!1);const c=n.getBoundingClientRect(),f=kf(n);let m=Vn(1);a&&(o?Mn(o)&&(m=kr(o)):m=kr(n));const h=yS(f,l,o)?hb(f):Vn(0);let p=(c.left+h.x)/m.x,x=(c.top+h.y)/m.y,v=c.width/m.x,b=c.height/m.y;if(f){const j=fn(f),C=o&&Mn(o)?fn(o):o;let T=j,S=of(T);for(;S&&o&&C!==T;){const U=kr(S),_=S.getBoundingClientRect(),Z=_n(S),te=_.left+(S.clientLeft+parseFloat(Z.paddingLeft))*U.x,oe=_.top+(S.clientTop+parseFloat(Z.paddingTop))*U.y;p*=U.x,x*=U.y,v*=U.x,b*=U.y,p+=te,x+=oe,T=fn(S),S=of(T)}}return Po({width:v,height:b,x:p,y:x})}function tc(n,a){const l=ec(n).scrollLeft;return a?a.left+l:Pa(Kn(n)).left+l}function pb(n,a){const l=n.getBoundingClientRect(),o=l.left+a.scrollLeft-tc(n,l),c=l.top+a.scrollTop;return{x:o,y:c}}function jS(n){let{elements:a,rect:l,offsetParent:o,strategy:c}=n;const f=c==="fixed",m=Kn(o),h=a?Wo(a.floating):!1;if(o===m||h&&f)return l;let p={scrollLeft:0,scrollTop:0},x=Vn(1);const v=Vn(0),b=Fn(o);if((b||!b&&!f)&&((Yr(o)!=="body"||il(m))&&(p=ec(o)),Fn(o))){const C=Pa(o);x=kr(o),v.x=C.x+o.clientLeft,v.y=C.y+o.clientTop}const j=m&&!b&&!f?pb(m,p):Vn(0);return{width:l.width*x.x,height:l.height*x.y,x:l.x*x.x-p.scrollLeft*x.x+v.x+j.x,y:l.y*x.y-p.scrollTop*x.y+v.y+j.y}}function wS(n){return Array.from(n.getClientRects())}function NS(n){const a=Kn(n),l=ec(n),o=n.ownerDocument.body,c=un(a.scrollWidth,a.clientWidth,o.scrollWidth,o.clientWidth),f=un(a.scrollHeight,a.clientHeight,o.scrollHeight,o.clientHeight);let m=-l.scrollLeft+tc(n);const h=-l.scrollTop;return _n(o).direction==="rtl"&&(m+=un(a.clientWidth,o.clientWidth)-c),{width:c,height:f,x:m,y:h}}const yx=25;
vendor: 5,090 bytes, line 49
49function SS(n,a){const l=fn(n),o=Kn(n),c=l.visualViewport;let f=o.clientWidth,m=o.clientHeight,h=0,p=0;if(c){f=c.width,m=c.height;const v=Rf();(!v||v&&a==="fixed")&&(h=c.offsetLeft,p=c.offsetTop)}const x=tc(o);if(x<=0){const v=o.ownerDocument,b=v.body,j=getComputedStyle(b),C=v.compatMode==="CSS1Compat"&&parseFloat(j.marginLeft)+parseFloat(j.marginRight)||0,T=Math.abs(o.clientWidth-b.clientWidth-C);T<=yx&&(f-=T)}else x<=yx&&(f+=x);return{width:f,height:m,x:h,y:p}}const CS=new Set(["absolute","fixed"]);function ES(n,a){const l=Pa(n,!0,a==="fixed"),o=l.top+n.clientTop,c=l.left+n.clientLeft,f=Fn(n)?kr(n):Vn(1),m=n.clientWidth*f.x,h=n.clientHeight*f.y,p=c*f.x,x=o*f.y;return{width:m,height:h,x:p,y:x}}function jx(n,a,l){let o;if(a==="viewport")o=SS(n,l);else if(a==="document")o=NS(Kn(n));else if(Mn(a))o=ES(a,l);else{const c=hb(n);o={x:a.x-c.x,y:a.y-c.y,width:a.width,height:a.height}}return Po(o)}function xb(n,a){const l=oa(n);return l===a||!Mn(l)||Br(l)?!1:_n(l).position==="fixed"||xb(l,a)}function OS(n,a){const l=a.get(n);if(l)return l;let o=Ji(n,[],!1).filter(h=>Mn(h)&&Yr(h)!=="body"),c=null;const f=_n(n).position==="fixed";let m=f?oa(n):n;for(;Mn(m)&&!Br(m);){const h=_n(m),p=zf(m);!p&&h.position==="fixed"&&(c=null),(f?!p&&!c:!p&&h.position==="static"&&!!c&&CS.has(c.position)||il(m)&&!p&&xb(n,m))?o=o.filter(v=>v!==m):c=h,m=oa(m)}return a.set(n,o),o}function AS(n){let{element:a,boundary:l,rootBoundary:o,strategy:c}=n;const m=[...l==="clippingAncestors"?Wo(a)?[]:OS(a,this._c):[].concat(l),o],h=m[0],p=m.reduce((x,v)=>{const b=jx(a,v,c);return x.top=un(b.top,x.top),x.right=la(b.right,x.right),x.bottom=la(b.bottom,x.bottom),x.left=un(b.left,x.left),x},jx(a,h,c));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function TS(n){const{width:a,height:l}=mb(n);return{width:a,height:l}}function MS(n,a,l){const o=Fn(a),c=Kn(a),f=l==="fixed",m=Pa(n,!0,f,a);let h={scrollLeft:0,scrollTop:0};const p=Vn(0);function x(){p.x=tc(c)}if(o||!o&&!f)if((Yr(a)!=="body"||il(c))&&(h=ec(a)),o){const C=Pa(a,!0,f,a);p.x=C.x+a.clientLeft,p.y=C.y+a.clientTop}else c&&x();f&&!o&&c&&x();const v=c&&!o&&!f?pb(c,h):Vn(0),b=m.left+h.scrollLeft-p.x-v.x,j=m.top+h.scrollTop-p.y-v.y;return{x:b,y:j,width:m.width,height:m.height}}function Od(n){return _n(n).position==="static"}function wx(n,a){if(!Fn(n)||_n(n).position==="fixed")return null;if(a)return a(n);let l=n.offsetParent;return Kn(n)===l&&(l=l.ownerDocument.body),l}function gb(n,a){const l=fn(n);if(Wo(n))return l;if(!Fn(n)){let c=oa(n);for(;c&&!Br(c);){if(Mn(c)&&!Od(c))return c;c=oa(c)}return l}let o=wx(n,a);for(;o&&fS(o)&&Od(o);)o=wx(o,a);return o&&Br(o)&&Od(o)&&!zf(o)?l:o||gS(n)||l}const _S=async function(n){const a=this.getOffsetParent||gb,l=this.getDimensions,o=await l(n.floating);return{reference:MS(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function DS(n){return _n(n).direction==="rtl"}const zS={convertOffsetParentRelativeRectToViewportRelativeRect:jS,getDocumentElement:Kn,getClippingRect:AS,getOffsetParent:gb,getElementRects:_S,getClientRects:wS,getDimensions:TS,getScale:kr,isElement:Mn,isRTL:DS};function bb(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function RS(n,a){let l=null,o;const c=Kn(n);function f(){var h;clearTimeout(o),(h=l)==null||h.disconnect(),l=null}function m(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),f();const x=n.getBoundingClientRect(),{left:v,top:b,width:j,height:C}=x;if(h||a(),!j||!C)return;const T=Eo(b),S=Eo(c.clientWidth-(v+j)),U=Eo(c.clientHeight-(b+C)),_=Eo(v),te={rootMargin:-T+"px "+-S+"px "+-U+"px "+-_+"px",threshold:un(0,la(1,p))||1};let oe=!0;function X(F){const z=F[0].intersectionRatio;if(z!==p){if(!oe)return m();z?m(!1,z):o=setTimeout(()=>{m(!1,1e-7)},1e3)}z===1&&!bb(x,n.getBoundingClientRect())&&m(),oe=!1}try{l=new IntersectionObserver(X,{...te,root:c.ownerDocument})}catch{l=new IntersectionObserver(X,te)}l.observe(n)}return m(!0),f}function kS(n,a,l,o){o===void 0&&(o={});const{ancestorScroll:c=!0,ancestorResize:f=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=o,x=kf(n),v=c||f?[...x?Ji(x):[],...Ji(a)]:[];v.forEach(_=>{c&&_.addEventListener("scroll",l,{passive:!0}),f&&_.addEventListener("resize",l)});const b=x&&h?RS(x,l):null;let j=-1,C=null;m&&(C=new ResizeObserver(_=>{let[Z]=_;Z&&Z.target===x&&C&&(C.unobserve(a),cancelAnimationFrame(j),j=requestAnimationFrame(()=>{var te;(te=C)==null||te.observe(a)})),l()}),x&&!p&&C.observe(x),C.observe(a));let T,S=p?Pa(n):null;p&&U();function U(){const _=Pa(n);S&&!bb(S,_)&&l(),S=_,T=requestAnimationFrame(U)}return l(),()=>{var _;v.forEach(Z=>{c&&Z.removeEventListener("scroll",l),f&&Z.removeEventListener("resize",l)}),b?.(),(_=C)==null||_.disconnect(),C=null,p&&cancelAnimationFrame(T)}}const US=iS,LS=lS,qS=sS,HS=cS,PS=aS,Nx=nS,BS=oS,QS=(n,a,l)=>{const o=new Map,c={platform:zS,...l},f={...c.platform,_c:o};return tS(n,a,{...c,platform:f})};var GS=typeof document<"u",YS=function(){},Ro=GS?w.useLayoutEffect:YS;function Bo(n,a){if(n===a)return!0;
vendor: 11,805 bytes, line 49
49if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let l,o,c;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==a.length)return!1;for(o=l;o--!==0;)if(!Bo(n[o],a[o]))return!1;return!0}if(c=Object.keys(n),l=c.length,l!==Object.keys(a).length)return!1;for(o=l;o--!==0;)if(!{}.hasOwnProperty.call(a,c[o]))return!1;for(o=l;o--!==0;){const f=c[o];if(!(f==="_owner"&&n.$$typeof)&&!Bo(n[f],a[f]))return!1}return!0}return n!==n&&a!==a}function vb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Sx(n,a){const l=vb(n);return Math.round(a*l)/l}function Ad(n){const a=w.useRef(n);return Ro(()=>{a.current=n}),a}function VS(n){n===void 0&&(n={});const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:c,elements:{reference:f,floating:m}={},transform:h=!0,whileElementsMounted:p,open:x}=n,[v,b]=w.useState({x:0,y:0,strategy:l,placement:a,middlewareData:{},isPositioned:!1}),[j,C]=w.useState(o);Bo(j,o)||C(o);const[T,S]=w.useState(null),[U,_]=w.useState(null),Z=w.useCallback(O=>{O!==F.current&&(F.current=O,S(O))},[]),te=w.useCallback(O=>{O!==z.current&&(z.current=O,_(O))},[]),oe=f||T,X=m||U,F=w.useRef(null),z=w.useRef(null),q=w.useRef(v),ne=p!=null,se=Ad(p),K=Ad(c),I=Ad(x),ce=w.useCallback(()=>{if(!F.current||!z.current)return;const O={placement:a,strategy:l,middleware:j};K.current&&(O.platform=K.current),QS(F.current,z.current,O).then(ae=>{const me={...ae,isPositioned:I.current!==!1};ie.current&&!Bo(q.current,me)&&(q.current=me,Af.flushSync(()=>{b(me)}))})},[j,a,l,K,I]);Ro(()=>{x===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,b(O=>({...O,isPositioned:!1})))},[x]);const ie=w.useRef(!1);Ro(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Ro(()=>{if(oe&&(F.current=oe),X&&(z.current=X),oe&&X){if(se.current)return se.current(oe,X,ce);ce()}},[oe,X,ce,se,ne]);const de=w.useMemo(()=>({reference:F,floating:z,setReference:Z,setFloating:te}),[Z,te]),N=w.useMemo(()=>({reference:oe,floating:X}),[oe,X]),L=w.useMemo(()=>{const O={position:l,left:0,top:0};if(!N.floating)return O;const ae=Sx(N.floating,v.x),me=Sx(N.floating,v.y);return h?{...O,transform:"translate("+ae+"px, "+me+"px)",...vb(N.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:ae,top:me}},[l,h,N.floating,v.x,v.y]);return w.useMemo(()=>({...v,update:ce,refs:de,elements:N,floatingStyles:L}),[v,ce,de,N,L])}const FS=n=>{function a(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:o,padding:c}=typeof n=="function"?n(l):n;return o&&a(o)?o.current!=null?Nx({element:o.current,padding:c}).fn(l):{}:o?Nx({element:o,padding:c}).fn(l):{}}}},XS=(n,a)=>({...US(n),options:[n,a]}),KS=(n,a)=>({...LS(n),options:[n,a]}),ZS=(n,a)=>({...BS(n),options:[n,a]}),$S=(n,a)=>({...qS(n),options:[n,a]}),IS=(n,a)=>({...HS(n),options:[n,a]}),JS=(n,a)=>({...PS(n),options:[n,a]}),WS=(n,a)=>({...FS(n),options:[n,a]});var e5="Arrow",yb=w.forwardRef((n,a)=>{const{children:l,width:o=10,height:c=5,...f}=n;return r.jsx(Rn.svg,{...f,ref:a,width:o,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});yb.displayName=e5;var t5=yb;function jb(n){const[a,l]=w.useState(void 0);return Pr(()=>{if(n){l({width:n.offsetWidth,height:n.offsetHeight});const o=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const f=c[0];let m,h;if("borderBoxSize"in f){const p=f.borderBoxSize,x=Array.isArray(p)?p[0]:p;m=x.inlineSize,h=x.blockSize}else m=n.offsetWidth,h=n.offsetHeight;l({width:m,height:h})});return o.observe(n,{box:"border-box"}),()=>o.unobserve(n)}else l(void 0)},[n]),a}var wb="Popper",[Nb,Sb]=Tf(wb),[NC,Cb]=Nb(wb),Eb="PopperAnchor",Ob=w.forwardRef((n,a)=>{const{__scopePopper:l,virtualRef:o,...c}=n,f=Cb(Eb,l),m=w.useRef(null),h=Es(a,m),p=w.useRef(null);return w.useEffect(()=>{const x=p.current;p.current=o?.current||m.current,x!==p.current&&f.onAnchorChange(p.current)}),o?null:r.jsx(Rn.div,{...c,ref:h})});Ob.displayName=Eb;var Uf="PopperContent",[n5,s5]=Nb(Uf),Ab=w.forwardRef((n,a)=>{const{__scopePopper:l,side:o="bottom",sideOffset:c=0,align:f="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:x=[],collisionPadding:v=0,sticky:b="partial",hideWhenDetached:j=!1,updatePositionStrategy:C="optimized",onPlaced:T,...S}=n,U=Cb(Uf,l),[_,Z]=w.useState(null),te=Es(a,le=>Z(le)),[oe,X]=w.useState(null),F=jb(oe),z=F?.width??0,q=F?.height??0,ne=o+(f!=="center"?"-"+f:""),se=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},K=Array.isArray(x)?x:[x],I=K.length>0,ce={padding:se,boundary:K.filter(r5),altBoundary:I},{refs:ie,floatingStyles:de,placement:N,isPositioned:L,middlewareData:O}=VS({strategy:"fixed",placement:ne,whileElementsMounted:(...le)=>kS(...le,{animationFrame:C==="always"}),elements:{reference:U.anchor},middleware:[XS({mainAxis:c+q,alignmentAxis:m}),p&&KS({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?ZS():void 0,...ce}),p&&$S({...ce}),IS({...ce,apply:({elements:le,rects:ue,availableWidth:ve,availableHeight:Ie})=>{const{width:lt,height:et}=ue.reference,zt=le.floating.style;zt.setProperty("--radix-popper-available-width",`${ve}px`),zt.setProperty("--radix-popper-available-height",`${Ie}px`),zt.setProperty("--radix-popper-anchor-width",`${lt}px`),zt.setProperty("--radix-popper-anchor-height",`${et}px`)}}),oe&&WS({element:oe,padding:h}),i5({arrowWidth:z,arrowHeight:q}),j&&JS({strategy:"referenceHidden",...ce})]}),[ae,me]=_b(N),E=Io(T);Pr(()=>{L&&E?.()},[L,E]);const G=O.arrow?.x,k=O.arrow?.y,M=O.arrow?.centerOffset!==0,[Y,W]=w.useState();return Pr(()=>{_&&W(window.getComputedStyle(_).zIndex)},[_]),r.jsx("div",{ref:ie.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:L?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[O.transformOrigin?.x,O.transformOrigin?.y].join(" "),...O.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:r.jsx(n5,{scope:l,placedSide:ae,onArrowChange:X,arrowX:G,arrowY:k,shouldHideArrow:M,children:r.jsx(Rn.div,{"data-side":ae,"data-align":me,...S,ref:te,style:{...S.style,animation:L?void 0:"none"}})})})});Ab.displayName=Uf;var Tb="PopperArrow",a5={top:"bottom",right:"left",bottom:"top",left:"right"},Mb=w.forwardRef(function(a,l){const{__scopePopper:o,...c}=a,f=s5(Tb,o),m=a5[f.placedSide];return r.jsx("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:r.jsx(t5,{...c,ref:l,style:{...c.style,display:"block"}})})});Mb.displayName=Tb;function r5(n){return n!==null}var i5=n=>({name:"transformOrigin",options:n,fn(a){const{placement:l,rects:o,middlewareData:c}=a,m=c.arrow?.centerOffset!==0,h=m?0:n.arrowWidth,p=m?0:n.arrowHeight,[x,v]=_b(l),b={start:"0%",center:"50%",end:"100%"}[v],j=(c.arrow?.x??0)+h/2,C=(c.arrow?.y??0)+p/2;let T="",S="";return x==="bottom"?(T=m?b:`${j}px`,S=`${-p}px`):x==="top"?(T=m?b:`${j}px`,S=`${o.floating.height+p}px`):x==="right"?(T=`${-p}px`,S=m?b:`${C}px`):x==="left"&&(T=`${o.floating.width+p}px`,S=m?b:`${C}px`),{data:{x:T,y:S}}}});function _b(n){const[a,l="center"]=n.split("-");return[a,l]}var l5=Ob,o5=Ab,c5=Mb;function u5(n,a){return w.useReducer((l,o)=>a[l][o]??l,n)}var Db=n=>{const{present:a,children:l}=n,o=d5(a),c=typeof l=="function"?l({present:o.isPresent}):w.Children.only(l),f=Es(o.ref,f5(c));return typeof l=="function"||o.isPresent?w.cloneElement(c,{ref:f}):null};Db.displayName="Presence";function d5(n){const[a,l]=w.useState(),o=w.useRef(null),c=w.useRef(n),f=w.useRef("none"),m=n?"mounted":"unmounted",[h,p]=u5(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const x=Oo(o.current);f.current=h==="mounted"?x:"none"},[h]),Pr(()=>{const x=o.current,v=c.current;if(v!==n){const j=f.current,C=Oo(x);n?p("MOUNT"):C==="none"||x?.display==="none"?p("UNMOUNT"):p(v&&j!==C?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,p]),Pr(()=>{if(a){let x;const v=a.ownerDocument.defaultView??window,b=C=>{const S=Oo(o.current).includes(CSS.escape(C.animationName));if(C.target===a&&S&&(p("ANIMATION_END"),!c.current)){const U=a.style.animationFillMode;a.style.animationFillMode="forwards",x=v.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=U)})}},j=C=>{C.target===a&&(f.current=Oo(o.current))};return a.addEventListener("animationstart",j),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{v.clearTimeout(x),a.removeEventListener("animationstart",j),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:w.useCallback(x=>{o.current=x?getComputedStyle(x):null,l(x)},[])}}function Oo(n){return n?.animationName||"none"}function f5(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning;return l?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,l=a&&"isReactWarning"in a&&a.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var m5=Nf[" useInsertionEffect ".trim().toString()]||Pr;function h5({prop:n,defaultProp:a,onChange:l=()=>{},caller:o}){const[c,f,m]=p5({defaultProp:a,onChange:l}),h=n!==void 0,p=h?n:c;{const v=w.useRef(n!==void 0);w.useEffect(()=>{const b=v.current;b!==h&&console.warn(`${o} is changing from ${b?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),v.current=h},[h,o])}const x=w.useCallback(v=>{if(h){const b=x5(v)?v(n):v;b!==n&&m.current?.(b)}else f(v)},[h,n,f,m]);return[p,x]}function p5({defaultProp:n,onChange:a}){const[l,o]=w.useState(n),c=w.useRef(l),f=w.useRef(a);return m5(()=>{f.current=a},[a]),w.useEffect(()=>{c.current!==l&&(f.current?.(l),c.current=l)},[l,c]),[l,o,f]}function x5(n){return typeof n=="function"}var g5=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"}),b5="VisuallyHidden",zb=w.forwardRef((n,a)=>r.jsx(Rn.span,{...n,ref:a,style:{...g5,...n.style}}));zb.displayName=b5;var v5=zb,[nc]=Tf("Tooltip",[Sb]),Lf=Sb(),Rb="TooltipProvider",y5=700,Cx="tooltip.open",[j5,kb]=nc(Rb),Ub=n=>{const{__scopeTooltip:a,delayDuration:l=y5,skipDelayDuration:o=300,disableHoverableContent:c=!1,children:f}=n,m=w.useRef(!0),h=w.useRef(!1),p=w.useRef(0);return w.useEffect(()=>{const x=p.current;return()=>window.clearTimeout(x)},[]),r.jsx(j5,{scope:a,isOpenDelayedRef:m,delayDuration:l,onOpen:w.useCallback(()=>{window.clearTimeout(p.current),m.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>m.current=!0,o)},[o]),isPointerInTransitRef:h,onPointerInTransitChange:w.useCallback(x=>{h.current=x},[]),disableHoverableContent:c,children:f})};Ub.displayName=Rb;var Lb="Tooltip",[SC,sc]=nc(Lb),cf="TooltipTrigger",w5=w.forwardRef((n,a)=>{const{__scopeTooltip:l,...o}=n,c=sc(cf,l),f=kb(cf,l),m=Lf(l),h=w.useRef(null),p=Es(a,h,c.onTriggerChange),x=w.useRef(!1),v=w.useRef(!1),b=w.useCallback(()=>x.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),r.jsx(l5,{asChild:!0,...m,children:r.jsx(Rn.button,{"aria-describedby":c.open?c.c
vendor: 11,350 bytes, line 49
49ontentId:void 0,"data-state":c.stateAttribute,...o,ref:p,onPointerMove:Gn(n.onPointerMove,j=>{j.pointerType!=="touch"&&!v.current&&!f.isPointerInTransitRef.current&&(c.onTriggerEnter(),v.current=!0)}),onPointerLeave:Gn(n.onPointerLeave,()=>{c.onTriggerLeave(),v.current=!1}),onPointerDown:Gn(n.onPointerDown,()=>{c.open&&c.onClose(),x.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:Gn(n.onFocus,()=>{x.current||c.onOpen()}),onBlur:Gn(n.onBlur,c.onClose),onClick:Gn(n.onClick,c.onClose)})})});w5.displayName=cf;var N5="TooltipPortal",[CC,S5]=nc(N5,{forceMount:void 0}),Qr="TooltipContent",C5=w.forwardRef((n,a)=>{const l=S5(Qr,n.__scopeTooltip),{forceMount:o=l.forceMount,side:c="top",...f}=n,m=sc(Qr,n.__scopeTooltip);return r.jsx(Db,{present:o||m.open,children:m.disableHoverableContent?r.jsx(qb,{side:c,...f,ref:a}):r.jsx(E5,{side:c,...f,ref:a})})}),E5=w.forwardRef((n,a)=>{const l=sc(Qr,n.__scopeTooltip),o=kb(Qr,n.__scopeTooltip),c=w.useRef(null),f=Es(a,c),[m,h]=w.useState(null),{trigger:p,onClose:x}=l,v=c.current,{onPointerInTransitChange:b}=o,j=w.useCallback(()=>{h(null),b(!1)},[b]),C=w.useCallback((T,S)=>{const U=T.currentTarget,_={x:T.clientX,y:T.clientY},Z=_5(_,U.getBoundingClientRect()),te=D5(_,Z),oe=z5(S.getBoundingClientRect()),X=k5([...te,...oe]);h(X),b(!0)},[b]);return w.useEffect(()=>()=>j(),[j]),w.useEffect(()=>{if(p&&v){const T=U=>C(U,v),S=U=>C(U,p);return p.addEventListener("pointerleave",T),v.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",T),v.removeEventListener("pointerleave",S)}}},[p,v,C,j]),w.useEffect(()=>{if(m){const T=S=>{const U=S.target,_={x:S.clientX,y:S.clientY},Z=p?.contains(U)||v?.contains(U),te=!R5(_,m);Z?j():te&&(j(),x())};return document.addEventListener("pointermove",T),()=>document.removeEventListener("pointermove",T)}},[p,v,m,x,j]),r.jsx(qb,{...n,ref:f})}),[O5,A5]=nc(Lb,{isInside:!1}),T5=MN("TooltipContent"),qb=w.forwardRef((n,a)=>{const{__scopeTooltip:l,children:o,"aria-label":c,onEscapeKeyDown:f,onPointerDownOutside:m,...h}=n,p=sc(Qr,l),x=Lf(l),{onClose:v}=p;return w.useEffect(()=>(document.addEventListener(Cx,v),()=>document.removeEventListener(Cx,v)),[v]),w.useEffect(()=>{if(p.trigger){const b=j=>{j.target?.contains(p.trigger)&&v()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,v]),r.jsx(lb,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:b=>b.preventDefault(),onDismiss:v,children:r.jsxs(o5,{"data-state":p.stateAttribute,...x,...h,ref:a,style:{...h.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:[r.jsx(T5,{children:o}),r.jsx(O5,{scope:l,isInside:!0,children:r.jsx(v5,{id:p.contentId,role:"tooltip",children:c||o})})]})})});C5.displayName=Qr;var Hb="TooltipArrow",M5=w.forwardRef((n,a)=>{const{__scopeTooltip:l,...o}=n,c=Lf(l);return A5(Hb,l).isInside?null:r.jsx(c5,{...c,...o,ref:a})});M5.displayName=Hb;function _5(n,a){const l=Math.abs(a.top-n.y),o=Math.abs(a.bottom-n.y),c=Math.abs(a.right-n.x),f=Math.abs(a.left-n.x);switch(Math.min(l,o,c,f)){case f:return"left";case c:return"right";case l:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function D5(n,a,l=5){const o=[];switch(a){case"top":o.push({x:n.x-l,y:n.y+l},{x:n.x+l,y:n.y+l});break;case"bottom":o.push({x:n.x-l,y:n.y-l},{x:n.x+l,y:n.y-l});break;case"left":o.push({x:n.x+l,y:n.y-l},{x:n.x+l,y:n.y+l});break;case"right":o.push({x:n.x-l,y:n.y-l},{x:n.x-l,y:n.y+l});break}return o}function z5(n){const{top:a,right:l,bottom:o,left:c}=n;return[{x:c,y:a},{x:l,y:a},{x:l,y:o},{x:c,y:o}]}function R5(n,a){const{x:l,y:o}=n;let c=!1;for(let f=0,m=a.length-1;f<a.length;m=f++){const h=a[f],p=a[m],x=h.x,v=h.y,b=p.x,j=p.y;v>o!=j>o&&l<(b-x)*(o-v)/(j-v)+x&&(c=!c)}return c}function k5(n){const a=n.slice();return a.sort((l,o)=>l.x<o.x?-1:l.x>o.x?1:l.y<o.y?-1:l.y>o.y?1:0),U5(a)}function U5(n){if(n.length<=1)return n.slice();const a=[];for(let o=0;o<n.length;o++){const c=n[o];for(;a.length>=2;){const f=a[a.length-1],m=a[a.length-2];if((f.x-m.x)*(c.y-m.y)>=(f.y-m.y)*(c.x-m.x))a.pop();else break}a.push(c)}a.pop();const l=[];for(let o=n.length-1;o>=0;o--){const c=n[o];for(;l.length>=2;){const f=l[l.length-1],m=l[l.length-2];if((f.x-m.x)*(c.y-m.y)>=(f.y-m.y)*(c.x-m.x))l.pop();else break}l.push(c)}return l.pop(),a.length===1&&l.length===1&&a[0].x===l[0].x&&a[0].y===l[0].y?a:a.concat(l)}var L5=Ub;function Pb(n){var a,l,o="";if(typeof n=="string"||typeof n=="number")o+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(a=0;a<c;a++)n[a]&&(l=Pb(n[a]))&&(o&&(o+=" "),o+=l)}else for(l in n)n[l]&&(o&&(o+=" "),o+=l);return o}function Bb(){for(var n,a,l=0,o="",c=arguments.length;l<c;l++)(n=arguments[l])&&(a=Pb(n))&&(o&&(o+=" "),o+=a);return o}const qf="-",q5=n=>{const a=P5(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:o}=n;return{getClassGroupId:m=>{const h=m.split(qf);return h[0]===""&&h.length!==1&&h.shift(),Qb(h,a)||H5(m)},getConflictingClassGroupIds:(m,h)=>{const p=l[m]||[];return h&&o[m]?[...p,...o[m]]:p}}},Qb=(n,a)=>{if(n.length===0)return a.classGroupId;const l=n[0],o=a.nextPart.get(l),c=o?Qb(n.slice(1),o):void 0;if(c)return c;if(a.validators.length===0)return;const f=n.join(qf);return a.validators.find(({validator:m})=>m(f))?.classGroupId},Ex=/^\[(.+)\]$/,H5=n=>{if(Ex.test(n)){const a=Ex.exec(n)[1],l=a?.substring(0,a.indexOf(":"));if(l)return"arbitrary.."+l}},P5=n=>{const{theme:a,classGroups:l}=n,o={nextPart:new Map,validators:[]};for(const c in l)uf(l[c],o,c,a);return o},uf=(n,a,l,o)=>{n.forEach(c=>{if(typeof c=="string"){const f=c===""?a:Ox(a,c);f.classGroupId=l;return}if(typeof c=="function"){if(B5(c)){uf(c(o),a,l,o);return}a.validators.push({validator:c,classGroupId:l});return}Object.entries(c).forEach(([f,m])=>{uf(m,Ox(a,f),l,o)})})},Ox=(n,a)=>{let l=n;return a.split(qf).forEach(o=>{l.nextPart.has(o)||l.nextPart.set(o,{nextPart:new Map,validators:[]}),l=l.nextPart.get(o)}),l},B5=n=>n.isThemeGetter,Q5=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,l=new Map,o=new Map;const c=(f,m)=>{l.set(f,m),a++,a>n&&(a=0,o=l,l=new Map)};return{get(f){let m=l.get(f);if(m!==void 0)return m;if((m=o.get(f))!==void 0)return c(f,m),m},set(f,m){l.has(f)?l.set(f,m):c(f,m)}}},df="!",ff=":",G5=ff.length,Y5=n=>{const{prefix:a,experimentalParseClassName:l}=n;let o=c=>{const f=[];let m=0,h=0,p=0,x;for(let T=0;T<c.length;T++){let S=c[T];if(m===0&&h===0){if(S===ff){f.push(c.slice(p,T)),p=T+G5;continue}if(S==="/"){x=T;continue}}S==="["?m++:S==="]"?m--:S==="("?h++:S===")"&&h--}const v=f.length===0?c:c.substring(p),b=V5(v),j=b!==v,C=x&&x>p?x-p:void 0;return{modifiers:f,hasImportantModifier:j,baseClassName:b,maybePostfixModifierPosition:C}};if(a){const c=a+ff,f=o;o=m=>m.startsWith(c)?f(m.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:m,maybePostfixModifierPosition:void 0}}if(l){const c=o;o=f=>l({className:f,parseClassName:c})}return o},V5=n=>n.endsWith(df)?n.substring(0,n.length-1):n.startsWith(df)?n.substring(1):n,F5=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(o=>[o,!0]));return o=>{if(o.length<=1)return o;const c=[];let f=[];return o.forEach(m=>{m[0]==="["||a[m]?(c.push(...f.sort(),m),f=[]):f.push(m)}),c.push(...f.sort()),c}},X5=n=>({cache:Q5(n.cacheSize),parseClassName:Y5(n),sortModifiers:F5(n),...q5(n)}),K5=/\s+/,Z5=(n,a)=>{const{parseClassName:l,getClassGroupId:o,getConflictingClassGroupIds:c,sortModifiers:f}=a,m=[],h=n.trim().split(K5);let p="";for(let x=h.length-1;x>=0;x-=1){const v=h[x],{isExternal:b,modifiers:j,hasImportantModifier:C,baseClassName:T,maybePostfixModifierPosition:S}=l(v);if(b){p=v+(p.length>0?" "+p:p);continue}let U=!!S,_=o(U?T.substring(0,S):T);if(!_){if(!U){p=v+(p.length>0?" "+p:p);continue}if(_=o(T),!_){p=v+(p.length>0?" "+p:p);continue}U=!1}const Z=f(j).join(":"),te=C?Z+df:Z,oe=te+_;if(m.includes(oe))continue;m.push(oe);const X=c(_,U);for(let F=0;F<X.length;++F){const z=X[F];m.push(te+z)}p=v+(p.length>0?" "+p:p)}return p};function $5(){let n=0,a,l,o="";for(;n<arguments.length;)(a=arguments[n++])&&(l=Gb(a))&&(o&&(o+=" "),o+=l);return o}const Gb=n=>{if(typeof n=="string")return n;let a,l="";for(let o=0;o<n.length;o++)n[o]&&(a=Gb(n[o]))&&(l&&(l+=" "),l+=a);return l};function I5(n,...a){let l,o,c,f=m;function m(p){const x=a.reduce((v,b)=>b(v),n());return l=X5(x),o=l.cache.get,c=l.cache.set,f=h,h(p)}function h(p){const x=o(p);if(x)return x;const v=Z5(p,l);return c(p,v),v}return function(){return f($5.apply(null,arguments))}}const jt=n=>{const a=l=>l[n]||[];return a.isThemeGetter=!0,a},Yb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Vb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,J5=/^\d+\/\d+$/,W5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,e4=/\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$/,t4=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,n4=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,s4=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dr=n=>J5.test(n),De=n=>!!n&&!Number.isNaN(Number(n)),Js=n=>!!n&&Number.isInteger(Number(n)),Td=n=>n.endsWith("%")&&De(n.slice(0,-1)),bs=n=>W5.test(n),a4=()=>!0,r4=n=>e4.test(n)&&!t4.test(n),Fb=()=>!1,i4=n=>n4.test(n),l4=n=>s4.test(n),o4=n=>!ge(n)&&!be(n),c4=n=>Vr(n,Zb,Fb),ge=n=>Yb.test(n),Da=n=>Vr(n,$b,r4),Md=n=>Vr(n,h4,De),Ax=n=>Vr(n,Xb,Fb),u4=n=>Vr(n,Kb,l4),Ao=n=>Vr(n,Ib,i4),be=n=>Vb.test(n),Pi=n=>Fr(n,$b),d4=n=>Fr(n,p4),Tx=n=>Fr(n,Xb),f4=n=>Fr(n,Zb),m4=n=>Fr(n,Kb),To=n=>Fr(n,Ib,!0),Vr=(n,a,l)=>{const o=Yb.exec(n);return o?o[1]?a(o[1]):l(o[2]):!1},Fr=(n,a,l=!1)=>{const o=Vb.exec(n);return o?o[1]?a(o[1]):l:!1},Xb=n=>n==="position"||n==="percentage",Kb=n=>n==="image"||n==="url",Zb=n=>n==="length"||n==="size"||n==="bg-size",$b=n=>n==="length",h4=n=>n==="number",p4=n=>n==="family-name",Ib=n=>n==="shadow",x4=()=>{const n=jt("color"),a=jt("font"),l=jt("text"),o=jt("font-weight"),c=jt("tracking"),f=jt("leading"),m=jt("breakpoint"),h=jt("container"),p=jt("spacing"),x=jt("radius"),v=jt("shadow"),b=jt("inset-shadow"),j=jt("text-shadow"),C=jt("drop-shadow"),T=jt("blur"),S=jt("perspective"),U=jt("aspect"),_=jt("ease"),Z=jt("animate"),te=()=>["auto","avoid","all","avoid-page","page","left","right","column"],oe=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],X=()=>[...oe(),be,ge],F=()=>["auto","hidden","clip","visible","scroll"],z=()=>["auto","contain","none"],q=()=>[be,ge,p],ne=()=>[Dr,"full","auto",...q()],se=()=>[Js,"none","subgrid",be,ge],K=()=>["auto",{span:["full",Js,be,ge]},Js,be,ge],I=()=>[Js,"auto",be,ge],ce=()=>["auto","min","max","fr",be,ge],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...q()],L=()=>[Dr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],O
vendor: 6,886 bytes, line 49
49=()=>[n,be,ge],ae=()=>[...oe(),Tx,Ax,{position:[be,ge]}],me=()=>["no-repeat",{repeat:["","x","y","space","round"]}],E=()=>["auto","cover","contain",f4,c4,{size:[be,ge]}],G=()=>[Td,Pi,Da],k=()=>["","none","full",x,be,ge],M=()=>["",De,Pi,Da],Y=()=>["solid","dashed","dotted","double"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],le=()=>[De,Td,Tx,Ax],ue=()=>["","none",T,be,ge],ve=()=>["none",De,be,ge],Ie=()=>["none",De,be,ge],lt=()=>[De,be,ge],et=()=>[Dr,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[bs],breakpoint:[bs],color:[a4],container:[bs],"drop-shadow":[bs],ease:["in","out","in-out"],font:[o4],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[bs],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[bs],shadow:[bs],spacing:["px",De],text:[bs],"text-shadow":[bs],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Dr,ge,be,U]}],container:["container"],columns:[{columns:[De,ge,be,h]}],"break-after":[{"break-after":te()}],"break-before":[{"break-before":te()}],"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:X()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:z()}],"overscroll-x":[{"overscroll-x":z()}],"overscroll-y":[{"overscroll-y":z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{start:ne()}],end:[{end:ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Js,"auto",be,ge]}],basis:[{basis:[Dr,"full","auto",h,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,Dr,"auto","initial","none",ge]}],grow:[{grow:["",De,be,ge]}],shrink:[{shrink:["",De,be,ge]}],order:[{order:[Js,"first","last","none",be,ge]}],"grid-cols":[{"grid-cols":se()}],"col-start-end":[{col:K()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":se()}],"row-start-end":[{row:K()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:L()}],w:[{w:[h,"screen",...L()]}],"min-w":[{"min-w":[h,"screen","none",...L()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...L()]}],h:[{h:["screen","lh",...L()]}],"min-h":[{"min-h":["screen","lh","none",...L()]}],"max-h":[{"max-h":["screen","lh",...L()]}],"font-size":[{text:["base",l,Pi,Da]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,be,Md]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Td,ge]}],"font-family":[{font:[d4,ge,a]}],"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:[c,be,ge]}],"line-clamp":[{"line-clamp":[De,"none",be,Md]}],leading:[{leading:[f,...q()]}],"list-image":[{"list-image":["none",be,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:O()}],"text-color":[{text:O()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Y(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",be,Da]}],"text-decoration-color":[{decoration:O()}],"underline-offset":[{"underline-offset":[De,"auto",be,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ge]}],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",be,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ae()}],"bg-repeat":[{bg:me()}],"bg-size":[{bg:E()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Js,be,ge],radial:["",be,ge],conic:[Js,be,ge]},m4,u4]}],"bg-color":[{bg:O()}],"gradient-from-pos":[{from:G()}
vendor: 7,224 bytes, line 49
49],"gradient-via-pos":[{via:G()}],"gradient-to-pos":[{to:G()}],"gradient-from":[{from:O()}],"gradient-via":[{via:O()}],"gradient-to":[{to:O()}],rounded:[{rounded:k()}],"rounded-s":[{"rounded-s":k()}],"rounded-e":[{"rounded-e":k()}],"rounded-t":[{"rounded-t":k()}],"rounded-r":[{"rounded-r":k()}],"rounded-b":[{"rounded-b":k()}],"rounded-l":[{"rounded-l":k()}],"rounded-ss":[{"rounded-ss":k()}],"rounded-se":[{"rounded-se":k()}],"rounded-ee":[{"rounded-ee":k()}],"rounded-es":[{"rounded-es":k()}],"rounded-tl":[{"rounded-tl":k()}],"rounded-tr":[{"rounded-tr":k()}],"rounded-br":[{"rounded-br":k()}],"rounded-bl":[{"rounded-bl":k()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Y(),"hidden","none"]}],"divide-style":[{divide:[...Y(),"hidden","none"]}],"border-color":[{border:O()}],"border-color-x":[{"border-x":O()}],"border-color-y":[{"border-y":O()}],"border-color-s":[{"border-s":O()}],"border-color-e":[{"border-e":O()}],"border-color-t":[{"border-t":O()}],"border-color-r":[{"border-r":O()}],"border-color-b":[{"border-b":O()}],"border-color-l":[{"border-l":O()}],"divide-color":[{divide:O()}],"outline-style":[{outline:[...Y(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,be,ge]}],"outline-w":[{outline:["",De,Pi,Da]}],"outline-color":[{outline:O()}],shadow:[{shadow:["","none",v,To,Ao]}],"shadow-color":[{shadow:O()}],"inset-shadow":[{"inset-shadow":["none",b,To,Ao]}],"inset-shadow-color":[{"inset-shadow":O()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:O()}],"ring-offset-w":[{"ring-offset":[De,Da]}],"ring-offset-color":[{"ring-offset":O()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":O()}],"text-shadow":[{"text-shadow":["none",j,To,Ao]}],"text-shadow-color":[{"text-shadow":O()}],opacity:[{opacity:[De,be,ge]}],"mix-blend":[{"mix-blend":[...W(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":W()}],"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":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":le()}],"mask-image-linear-to-pos":[{"mask-linear-to":le()}],"mask-image-linear-from-color":[{"mask-linear-from":O()}],"mask-image-linear-to-color":[{"mask-linear-to":O()}],"mask-image-t-from-pos":[{"mask-t-from":le()}],"mask-image-t-to-pos":[{"mask-t-to":le()}],"mask-image-t-from-color":[{"mask-t-from":O()}],"mask-image-t-to-color":[{"mask-t-to":O()}],"mask-image-r-from-pos":[{"mask-r-from":le()}],"mask-image-r-to-pos":[{"mask-r-to":le()}],"mask-image-r-from-color":[{"mask-r-from":O()}],"mask-image-r-to-color":[{"mask-r-to":O()}],"mask-image-b-from-pos":[{"mask-b-from":le()}],"mask-image-b-to-pos":[{"mask-b-to":le()}],"mask-image-b-from-color":[{"mask-b-from":O()}],"mask-image-b-to-color":[{"mask-b-to":O()}],"mask-image-l-from-pos":[{"mask-l-from":le()}],"mask-image-l-to-pos":[{"mask-l-to":le()}],"mask-image-l-from-color":[{"mask-l-from":O()}],"mask-image-l-to-color":[{"mask-l-to":O()}],"mask-image-x-from-pos":[{"mask-x-from":le()}],"mask-image-x-to-pos":[{"mask-x-to":le()}],"mask-image-x-from-color":[{"mask-x-from":O()}],"mask-image-x-to-color":[{"mask-x-to":O()}],"mask-image-y-from-pos":[{"mask-y-from":le()}],"mask-image-y-to-pos":[{"mask-y-to":le()}],"mask-image-y-from-color":[{"mask-y-from":O()}],"mask-image-y-to-color":[{"mask-y-to":O()}],"mask-image-radial":[{"mask-radial":[be,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":le()}],"mask-image-radial-to-pos":[{"mask-radial-to":le()}],"mask-image-radial-from-color":[{"mask-radial-from":O()}],"mask-image-radial-to-color":[{"mask-radial-to":O()}],"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":oe()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":le()}],"mask-image-conic-to-pos":[{"mask-conic-to":le()}],"mask-image-conic-from-color":[{"mask-conic-from":O()}],"mask-image-conic-to-color":[{"mask-conic-to":O()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ae()}],"mask-repeat":[{mask:me()}],"mask-size":[{mask:E()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ge]}],filter:[{filter:["","none",be,ge]}],blur:[{blur:ue()}],brightness:[{brightness:[De,be,ge]}],contrast:[{contrast:[De,be,ge]}],"drop-shadow":[{"drop-shadow":["","none",C,To,Ao]}],"drop-shadow-color":[{"drop-shadow":O()}],grayscale:[{grayscale:["",De,be,ge]}],"hue-rotate":[{"hue-rotate":[De,be,ge]}],invert:[{invert:["",De,be,ge]}],saturate:[{saturate:[De,be,ge]}],sepia:[{sepia:["",De,be,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ge]}],"backdrop-blur":[{"backdrop-blur":ue()}],"backdrop-brightness":[{"backdrop-brightness":[De,be,ge]}],"backdrop-contrast":[{"backdrop-contrast":[De,be,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,be,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,be,ge]}],"backdrop-invert":[{"backdrop-invert":["",De,be,ge]}],"backdrop-opacity":[{"backdrop-opacity":[De,be,ge]}],"backdrop-saturate":[{"backdrop-saturate":[De,be,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",De,be,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",be,ge]}],ease:[{ease:["linear","initial",_,be,ge]}],delay:[{delay:[De,be,ge]}],animate:[{animate:["none",Z,be,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,be,ge]}],"perspective-origin":[{"perspective-origin":X()}],rotate:[{rotate:ve()}],"rotate-x":[{"rotate-x":ve()}],"rotate-y":[{"rotate-y":ve()}],"rotate-z":[{"rotate-z":ve()}],scale:[{scale:Ie()}],"scale-x":[{"scale-x":Ie()}],"scale-y":[{"scale-y":Ie()}],"scale-z":[{"scale-z":Ie()}],"scale-3d":["scale-3d"],skew:[{skew:lt()}],"skew-x":[{"skew-x":lt()}],"skew-y":[{"skew-y":lt()}],transform:[{transform:[be,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:X()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:O()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:O()}
vendor: 5,229 bytes, line 49
49],"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",be,ge]}],"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":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",be,ge]}],fill:[{fill:["none",...O()]}],"stroke-w":[{stroke:[De,Pi,Da,Md]}],stroke:[{stroke:["none",...O()]}],"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"]}},g4=I5(x4);function Dn(...n){return g4(Bb(n))}function b4({delayDuration:n=0,...a}){return r.jsx(L5,{"data-slot":"tooltip-provider",delayDuration:n,...a})}const Mx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,_x=Bb,Jb=(n,a)=>l=>{var o;if(a?.variants==null)return _x(n,l?.class,l?.className);const{variants:c,defaultVariants:f}=a,m=Object.keys(c).map(x=>{const v=l?.[x],b=f?.[x];if(v===null)return null;const j=Mx(v)||Mx(b);return c[x][j]}),h=l&&Object.entries(l).reduce((x,v)=>{let[b,j]=v;return j===void 0||(x[b]=j),x},{}),p=a==null||(o=a.compoundVariants)===null||o===void 0?void 0:o.reduce((x,v)=>{let{class:b,className:j,...C}=v;return Object.entries(C).every(T=>{let[S,U]=T;return Array.isArray(U)?U.includes({...f,...h}[S]):{...f,...h}[S]===U})?[...x,b,j]:x},[]);return _x(n,m,p,l?.class,l?.className)}
vendor: 1,594 bytes, line 49
49,v4=Jb("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-transparent shadow-xs hover:bg-accent dark:bg-transparent dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function He({className:n,variant:a,size:l,asChild:o=!1,...c}){const f=o?ab:"button";return r.jsx(f,{"data-slot":"button",className:Dn(v4({variant:a,size:l,className:n})),...c})}function y4({className:n,...a}){return r.jsx("div",{"data-slot":"card",className:Dn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...a}
vendor: 5,824 bytes, lines 49-138
49)}function j4({className:n,...a}){return r.jsx("div",{"data-slot":"card-content",className:Dn("px-6",n),...a})}/**
50 * @license lucide-react v0.453.0 - ISC
51 *
52 * This source code is licensed under the ISC license.
53 * See the LICENSE file in the root directory of this source tree.
54 */const w4=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Wb=(...n)=>n.filter((a,l,o)=>!!a&&o.indexOf(a)===l).join(" ");/**
55 * @license lucide-react v0.453.0 - ISC
56 *
57 * This source code is licensed under the ISC license.
58 * See the LICENSE file in the root directory of this source tree.
59 */var N4={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"};/**
60 * @license lucide-react v0.453.0 - ISC
61 *
62 * This source code is licensed under the ISC license.
63 * See the LICENSE file in the root directory of this source tree.
64 */const S4=w.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:l=2,absoluteStrokeWidth:o,className:c="",children:f,iconNode:m,...h},p)=>w.createElement("svg",{ref:p,...N4,width:a,height:a,stroke:n,strokeWidth:o?Number(l)*24/Number(a):l,className:Wb("lucide",c),...h},[...m.map(([x,v])=>w.createElement(x,v)),...Array.isArray(f)?f:[f]]));/**
65 * @license lucide-react v0.453.0 - ISC
66 *
67 * This source code is licensed under the ISC license.
68 * See the LICENSE file in the root directory of this source tree.
69 */const Se=(n,a)=>{const l=w.forwardRef(({className:o,...c},f)=>w.createElement(S4,{ref:f,iconNode:a,className:Wb(`lucide-${w4(n)}`,o),...c}));return l.displayName=`${n}`,l};/**
70 * @license lucide-react v0.453.0 - ISC
71 *
72 * This source code is licensed under the ISC license.
73 * See the LICENSE file in the root directory of this source tree.
74 */const ut=Se("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
75 * @license lucide-react v0.453.0 - ISC
76 *
77 * This source code is licensed under the ISC license.
78 * See the LICENSE file in the root directory of this source tree.
79 */const _d=Se("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
80 * @license lucide-react v0.453.0 - ISC
81 *
82 * This source code is licensed under the ISC license.
83 * See the LICENSE file in the root directory of this source tree.
84 */const ev=Se("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
85 * @license lucide-react v0.453.0 - ISC
86 *
87 * This source code is licensed under the ISC license.
88 * See the LICENSE file in the root directory of this source tree.
89 */const Dd=Se("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
90 * @license lucide-react v0.453.0 - ISC
91 *
92 * This source code is licensed under the ISC license.
93 * See the LICENSE file in the root directory of this source tree.
94 */const Vi=Se("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
95 * @license lucide-react v0.453.0 - ISC
96 *
97 * This source code is licensed under the ISC license.
98 * See the LICENSE file in the root directory of this source tree.
99 */const Ur=Se("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
100 * @license lucide-react v0.453.0 - ISC
101 *
102 * This source code is licensed under the ISC license.
103 * See the LICENSE file in the root directory of this source tree.
104 */const C4=Se("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
105 * @license lucide-react v0.453.0 - ISC
106 *
107 * This source code is licensed under the ISC license.
108 * See the LICENSE file in the root directory of this source tree.
109 */const mf=Se("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
110 * @license lucide-react v0.453.0 - ISC
111 *
112 * This source code is licensed under the ISC license.
113 * See the LICENSE file in the root directory of this source tree.
114 */const hf=Se("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
115 * @license lucide-react v0.453.0 - ISC
116 *
117 * This source code is licensed under the ISC license.
118 * See the LICENSE file in the root directory of this source tree.
119 */const Dx=Se("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
120 * @license lucide-react v0.453.0 - ISC
121 *
122 * This source code is licensed under the ISC license.
123 * See the LICENSE file in the root directory of this source tree.
124 */const tv=Se("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
125 * @license lucide-react v0.453.0 - ISC
126 *
127 * This source code is licensed under the ISC license.
128 * See the LICENSE file in the root directory of this source tree.
129 */const E4=Se("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
130 * @license lucide-react v0.453.0 - ISC
131 *
132 * This source code is licensed under the ISC license.
133 * See the LICENSE file in the root directory of this source tree.
134 */const La=Se("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
135 * @license lucide-react v0.453.0 - ISC
136 *
137 * This source code is licensed under the ISC license.
138 * See the LICENSE file in the root directory of this source tree.
139 */const O4=Se("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
140 * @license lucide-react v0.453.0 - ISC
141 *
142 * This source code is licensed under the ISC license.
143 * See the LICENSE file in the root directory of this source tree.
144 */const A4=Se("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
145 * @license lucide-react v0.453.0 - ISC
146 *
147 * This source code is licensed under the ISC license.
148 * See the LICENSE file in the root directory of this source tree.
149 */const Wi=Se("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
150 * @license lucide-react v0.453.0 - ISC
151 *
152 * This source code is licensed under the ISC license.
153 * See the LICENSE file in the root directory of this source tree.
154 */const T4=Se("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
155 * @license lucide-react v0.453.0 - ISC
156 *
157 * This source code is licensed under the ISC license.
158 * See the LICENSE file in the root directory of this source tree.
159 */const pf=Se("Flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]);/**
160 * @license lucide-react v0.453.0 - ISC
161 *
162 * This source code is licensed under the ISC license.
163 * See the LICENSE file in the root directory of this source tree.
164 */const js=Se("Flower2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);/**
165 * @license lucide-react v0.453.0 - ISC
166 *
167 * This source code is licensed under the ISC license.
168 * See the LICENSE file in the root directory of this source tree.
169 */const na=Se("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"}]]);/**
170 * @license lucide-react v0.453.0 - ISC
171 *
172 * This source code is licensed under the ISC license.
173 * See the LICENSE file in the root directory of this source tree.
174 */const nv=Se("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"}]]);/**
175 * @license lucide-react v0.453.0 - ISC
176 *
177 * This source code is licensed under the ISC license.
178 * See the LICENSE file in the root directory of this source tree.
179 */const M4=Se("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
180 * @license lucide-react v0.453.0 - ISC
181 *
182 * This source code is licensed under the ISC license.
183 * See the LICENSE file in the root directory of this source tree.
184 */const sv=Se("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
185 * @license lucide-react v0.453.0 - ISC
186 *
187 * This source code is licensed under the ISC license.
188 * See the LICENSE file in the root directory of this source tree.
189 */const Bi=Se("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
190 * @license lucide-react v0.453.0 - ISC
191 *
192 * This source code is licensed under the ISC license.
193 * See the LICENSE file in the root directory of this source tree.
194 */const zx=Se("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
195 * @license lucide-react v0.453.0 - ISC
196 *
197 * This source code is licensed under the ISC license.
198 * See the LICENSE file in the root directory of this source tree.
199 */const av=Se("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
200 * @license lucide-react v0.453.0 - ISC
201 *
202 * This source code is licensed under the ISC license.
203 * See the LICENSE file in the root directory of this source tree.
204 */const el=Se("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"}]]);/**
205 * @license lucide-react v0.453.0 - ISC
206 *
207 * This source code is licensed under the ISC license.
208 * See the LICENSE file in the root directory of this source tree.
209 */const ws=Se("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"}]]);/**
210 * @license lucide-react v0.453.0 - ISC
211 *
212 * This source code is licensed under the ISC license.
213 * See the LICENSE file in the root directory of this source tree.
214 */const _4=Se("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"}]]);/**
215 * @license lucide-react v0.453.0 - ISC
216 *
217 * This source code is licensed under the ISC license.
218 * See the LICENSE file in the root directory of this source tree.
219 */const D4=Se("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
220 * @license lucide-react v0.453.0 - ISC
221 *
222 * This source code is licensed under the ISC license.
223 * See the LICENSE file in the root directory of this source tree.
224 */const z4=Se("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
225 * @license lucide-react v0.453.0 - ISC
226 *
227 * This source code is licensed under the ISC license.
228 * See the LICENSE file in the root directory of this source tree.
229 */const R4=Se("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
230 * @license lucide-react v0.453.0 - ISC
231 *
232 * This source code is licensed under the ISC license.
233 * See the LICENSE file in the root directory of this source tree.
234 */const k4=Se("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
235 * @license lucide-react v0.453.0 - ISC
236 *
237 * This source code is licensed under the ISC license.
238 * See the LICENSE file in the root directory of this source tree.
239 */const sa=Se("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"}]]);/**
240 * @license lucide-react v0.453.0 - ISC
241 *
242 * This source code is licensed under the ISC license.
243 * See the LICENSE file in the root directory of this source tree.
244 */const Qo=Se("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
245 * @license lucide-react v0.453.0 - ISC
246 *
247 * This source code is licensed under the ISC license.
248 * See the LICENSE file in the root directory of this source tree.
249 */const rv=Se("Printer",[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]]);/**
250 * @license lucide-react v0.453.0 - ISC
251 *
252 * This source code is licensed under the ISC license.
253 * See the LICENSE file in the root directory of this source tree.
254 */const Rx=Se("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
255 * @license lucide-react v0.453.0 - ISC
256 *
257 * This source code is licensed under the ISC license.
258 * See the LICENSE file in the root directory of this source tree.
259 */const U4=Se("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"}]]);/**
260 * @license lucide-react v0.453.0 - ISC
261 *
262 * This source code is licensed under the ISC license.
263 * See the LICENSE file in the root directory of this source tree.
264 */const L4=Se("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
265 * @license lucide-react v0.453.0 - ISC
266 *
267 * This source code is licensed under the ISC license.
268 * See the LICENSE file in the root directory of this source tree.
269 */const iv=Se("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
270 * @license lucide-react v0.453.0 - ISC
271 *
272 * This source code is licensed under the ISC license.
273 * See the LICENSE file in the root directory of this source tree.
274 */const q4=Se("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"}]]);/**
275 * @license lucide-react v0.453.0 - ISC
276 *
277 * This source code is licensed under the ISC license.
278 * See the LICENSE file in the root directory of this source tree.
279 */const H4=Se("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
280 * @license lucide-react v0.453.0 - ISC
281 *
282 * This source code is licensed under the ISC license.
283 * See the LICENSE file in the root directory of this source tree.
284 */const kx=Se("ShieldAlert",[["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",ke
284y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
285 * @license lucide-react v0.453.0 - ISC
286 *
287 * This source code is licensed under the ISC license.
288 * See the LICENSE file in the root directory of this source tree.
289 */const P4=Se("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"}]]);/**
290 * @license lucide-react v0.453.0 - ISC
291 *
292 * This source code is licensed under the ISC license.
293 * See the LICENSE file in the root directory of this source tree.
294 */const B4=Se("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"}]]);/**
295 * @license lucide-react v0.453.0 - ISC
296 *
297 * This source code is licensed under the ISC license.
298 * See the LICENSE file in the root directory of this source tree.
299 */const zd=Se("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
300 * @license lucide-react v0.453.0 - ISC
301 *
302 * This source code is licensed under the ISC license.
303 * See the LICENSE file in the root directory of this source tree.
304 */const ea=Se("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
305 * @license lucide-react v0.453.0 - ISC
306 *
307 * This source code is licensed under the ISC license.
308 * See the LICENSE file in the root directory of this source tree.
309 */const Q4=Se("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"}]]);/**
310 * @license lucide-react v0.453.0 - ISC
311 *
312 * This source code is licensed under the ISC license.
313 * See the LICENSE file in the root directory of this source tree.
314 */const G4=Se("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"}]]);/**
315 * @license lucide-react v0.453.0 - ISC
316 *
317 * This source code is licensed under the ISC license.
318 * See the LICENSE file in the root directory of this source tree.
319 */const xf=Se("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
320 * @license lucide-react v0.453.0 - ISC
321 *
322 * This source code is licensed under the ISC license.
323 * See the LICENSE file in the root directory of this source tree.
324 */const Ux=Se("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/**
325 * @license lucide-react v0.453.0 - ISC
326 *
327 * This source code is licensed under the ISC license.
328 * See the LICENSE file in the root directory of this source tree.
329 */const lv=Se("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"}]]);/**
330 * @license lucide-react v0.453.0 - ISC
331 *
332 * This source code is licensed under the ISC license.
333 * See the LICENSE file in the root directory of this source tree.
334 */const ov=Se("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"}]]);/**
335 * @license lucide-react v0.453.0 - ISC
336 *
337 * This source code is licensed under the ISC license.
338 * See the LICENSE file in the root directory of this source tree.
339 */const aa=Se("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
339],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Y4(n,a){if(n instanceof RegExp)return{keys:!1,pattern:n};var l,o,c,f,m=[],h="",p=n.split("/");for(p[0]||p.shift();c=p.shift();)l=c[0],l==="*"?(m.push(l),h+=c[1]==="?"?"(?:/(.*))?":"/(.*)"):l===":"?(o=c.indexOf("?",1),f=c.indexOf(".",1),m.push(c.substring(1,~o?o:~f?f:c.length)),h+=~o&&!~f?"(?:/([^/]+?))?":"/([^/]+?)",~f&&(h+=(~o?"?":"")+"\\"+c.substring(f))):h+="/"+c;return{keys:m,pattern:new RegExp("^"+h+(a?"(?=$|/)":"/?$"),"i")}}var Rd={exports:{}},kd={};/**
340 * @license React
341 * use-sync-external-store-shim.production.js
342 *
343 * Copyright (c) Meta Platforms, Inc. and affiliates.
344 *
345 * This source code is licensed under the MIT license found in the
346 * LICENSE file in the root directory of this source tree.
347 */var Lx;function V4(){if(Lx)return kd;Lx=1;var n=Yo();function a(b,j){return b===j&&(b!==0||1/b===1/j)||b!==b&&j!==j}var l=typeof Object.is=="function"?Object.is:a,o=n.useState,c=n.useEffect,f=n.useLayoutEffect,m=n.useDebugValue;function h(b,j){var C=j(),T=o({inst:{value:C,getSnapshot:j}}),S=T[0].inst,U=T[1];return f(function(){S.value=C,S.getSnapshot=j,p(S)&&U({inst:S})},[b,C,j]),c(function(){return p(S)&&U({inst:S}),b(function(){p(S)&&U({inst:S})})},[b]),m(C),C}function p(b){var j=b.getSnapshot;b=b.value;try{var C=j();return!l(b,C)}catch{return!0}}function x(b,j){return j()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:h;return kd.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,kd}var qx;function F4(){return qx||(qx=1,Rd.exports=V4()),Rd.exports}var X4=F4();const K4=Nf.useInsertionEffect,Z4=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$4=Z4?w.useLayoutEffect:w.useEffect,I4=K4||$4,cv=n=>{const a=w.useRef([n,(...l)=>a[0](...l)]).current;return I4(()=>{a[0]=n}),a[1]},J4="popstate",Hf="pushState",Pf="replaceState",W4="hashchange",Hx=[J4,Hf,Pf,W4],e3=n=>{for(const a of Hx)addEventListener(a,n);return()=>{for(const a of Hx)removeEventListener(a,n)}},uv=(n,a)=>X4.useSyncExternalStore(e3,n,a),t3=()=>location.search,n3=({ssrSearch:n=""}={})=>uv(t3,()=>n),Px=()=>location.pathname,s3=({ssrPath:n}={})=>uv(Px,n?()=>n:Px),a3=(n,{replace:a=!1,state:l=null}={})=>history[a?Pf:Hf](l,"",n),r3=(n={})=>[s3(n),a3],Bx=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Bx]>"u"){for(const n of[Hf,Pf]){const a=history[n];history[n]=function(){const l=a.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),l}}Object.defineProperty(window,Bx,{value:!0})}const i3=(n,a)=>a.toLowerCase().indexOf(n.toLowerCase())?"~"+a:a.slice(n.length)||"/",dv=(n="")=>n==="/"?"":n,l3=(n,a)=>n[0]==="~"?n.slice(1):dv(a)+n,o3=(n="",a)=>i3(Qx(dv(n)),Qx(a)),Qx=n=>{try{return decodeURI(n)}catch{return n}},fv={hook:r3,searchHook:n3,parser:Y4,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},mv=w.createContext(fv),ll=()=>w.useContext(mv),hv={},pv=w.createContext(hv),xv=()=>w.useContext(pv),ac=n=>{const[a,l]=n.hook(n);return[o3(n.base,a),cv((o,c)=>l(l3(o,n.base),c))]},ua=()=>ac(ll()),gv=(n,a,l,o)=>{const{pattern:c,keys:f}=a instanceof RegExp?{keys:!1,pattern:a}:n(a||"*",o),m=c.exec(l)||[],[h,...p]=m;return h!==void 0?[!0,(()=>{const x=f!==!1?Object.fromEntries(f.map((b,j)=>[b,p[j]])):m.groups;let v={...p};return x&&Object.assign(v,x),v})(),...o?[h]:[]]:[!1,null]},c3=({children:n,...a})=>{const l=ll(),o=a.hook?fv:l;let c=o;const[f,m]=a.ssrPath?.split("?")??[];m&&(a.ssrSearch=m,a.ssrPath=f),a.hrefs=a.hrefs??a.hook?.hrefs;let h=w.useRef({}),p=h.current,x=p;for(let v in o){const b=v==="base"?o[v]+(a[v]||""):a[v]||o[v];p===x&&b!==x[v]&&(h.current=x={...x}),x[v]=b,(b!==o[v]||b!==c[v])&&(c=x)}return w.createElement(mv.Provider,{value:c,children:n})},Gx=({children:n,component:a},l)=>a?w.createElement(a,{params:l}):typeof n=="function"?n(l):n,u3=n=>{let a=w.useRef(hv);const l=a.current;return a.current=Object.keys(n).length!==Object.keys(l).length||Object.entries(n).some(([o,c])=>c!==l[o])?n:l},Et=({path:n,nest:a,match:l,...o})=>{const c=ll(),[f]=ac(c),[m,h,p]=l??gv(c.parser,n,f,a),x=u3({...xv(),...h});if(!m)return null;const v=p?w.createElement(c3,{base:p},Gx(o,x)):Gx(o,x);return w.createElement(pv.Provider,{value:x,children:v})},Ae=w.forwardRef((n,a)=>{const l=ll(),[o,c]=ac(l),{to:f="",href:m=f,onClick:h,asChild:p,children:x,className:v,replace:b,state:j,...C}=n,T=cv(U=>{U.ctrlKey||U.metaKey||U.altKey||U.shiftKey||U.button!==0||(h?.(U),U.defaultPrevented||(U.preventDefault(),c(m,n)))}),S=l.hrefs(m[0]==="~"?m.slice(1):l.base+m,l);return p&&w.isValidElement(x)?w.cloneElement(x,{onClick:T,href:S}):w.createElement("a",{...C,onClick:T,href:S,className:v?.call?v(o===m):v,children:x,ref:a})}),gf=n=>Array.isArray(n)?n.flatMap(a=>gf(a&&a.type===w.Fragment?a.props.children:a)):[n],d3=({children:n,location:a})=>{const l=ll(),[o]=ac(l);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),gf(n).forEac
347h(f=>{if(w.isValidElement(f)&&f.props.path){const m=f.props.path;window.__WOUTER_ROUTES__.includes(m)||window.__WOUTER_ROUTES__.push(m)}}));for(const c of gf(n)){let f=0;if(w.isValidElement(c)&&(f=gv(l.parser,c.props.path,a||o,c.props.nest))[0])return w.cloneElement(c,{match:f})}return null};function Yx(){const[,n]=ua(),a=()=>{n("/")};return r.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:r.jsx(y4,{className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:r.jsxs(j4,{className:"pt-8 pb-8 text-center",children:[r.jsx("div",{className:"flex justify-center mb-6",children:r.jsxs("div",{className:"relative",children:[r.jsx("div",{className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),r.jsx(mf,{className:"relative h-16 w-16 text-red-500"})]})}),r.jsx("h1",{className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),r.jsx("h2",{className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),r.jsxs("p",{className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",r.jsx("br",{}),"It may have been moved or deleted."]}),r.jsx("div",{id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:r.jsxs(He,{onClick:a,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[r.jsx(nv,{className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}class f3 extends w.Component{constructor(a){super(a),this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}render(){return this.state.hasError?r.jsx("div",{className:"flex items-center justify-center min-h-screen p-8 bg-background",children:r.jsxs("div",{className:"flex flex-col items-center w-full max-w-2xl p-8",children:[r.jsx(Q4,{size:48,className:"text-destructive mb-6 flex-shrink-0"}),r.jsx("h2",{className:"text-xl mb-4",children:"An unexpected error occurred."}),r.jsx("div",{className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:r.jsx("pre",{className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),r.jsxs("button",{onClick:()=>window.location.reload(),className:Dn("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[r.jsx(U4,{size:16}),"Reload Page"]})]})}):this.props.children}}const m3=w.createContext(void 0);function h3({children:n,defaultTheme:a="light",switchable:l=!1}){const[o,c]=w.useState(()=>l&&localStorage.getItem("theme")||a);w.useEffect(()=>{const m=document.documentElement;o==="dark"?m.classList.add("dark"):m.classList.remove("dark"),l&&localStorage.setItem("theme",o)},[o,l]);const f=l?()=>{c(m=>m==="light"?"dark":"light")}:void 0;return r.jsx(m3.Provider,{value:{theme:o,toggleTheme:f,switchable:l},children:n})}const Vx=[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Services",href:"/services"},{label:"Facilities",href:"/facilities"},{label:"Obituaries",href:"/obituaries"},{label:"Contact Us",href:"/contact"},{label:"Send Flowers",href:"/send-flowers",highlight:!0}];function p3(){const[n,a]=w.useState(!1),[l,o]=w.useState(!1),[c]=ua(),f=c==="/";w.useEffect(()=>{const h=()=>o(window.scrollY>60);return window.addEventListener("scroll",h,{passive:!0}),()=>window.removeEventListener("scroll",h)},[]),w.useEffect(()=>{a(!1)},[c]);const m=f&&!l&&!n;return r.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-500 ${m?"bg-transparent":"bg-white/95 backdrop-blur-sm shadow-sm border-b border-stone-100"}`,children:[r.jsx("div",{className:`hidden md:block transition-all duration-500 ${m?"bg-black/20":"bg-stone-800"}`,children:r.jsxs("div",{className:"container flex items-center justify-between py-2",children:[r.jsx("span",{className:`text-xs tracking-widest uppercase font-sans ${m?"text-white/70":"text-stone-300"}
347`,children:"Serving the Twin Cities Since 1931 · Apple Valley Chapel Est. 1988"}),r.jsxs("a",{href:"tel:9524322331",className:`flex items-center gap-1.5 text-xs font-sans font-medium tracking-wide transition-colors ${m?"text-white/90 hover:text-white":"text-stone-200 hover:text-white"}`,children:[r.jsx(sa,{size:12}),"(952) 432-2331"]})]})}),r.jsx("div",{className:"container",children:r.jsxs("div",{className:"flex items-center justify-between h-16 md:h-20 lg:h-24 xl:h-32",children:[r.jsxs(Ae,{href:"/",className:"relative flex shrink-0 items-center py-1 group","aria-label":"Henry W. Anderson Funeral & Cremation Service — Home",children:[r.jsx("img",{src:"/brand/logo-dark.png",alt:"Henry W. Anderson Funeral & Cremation Service",className:`h-12 md:h-16 lg:h-20 xl:h-24 w-auto max-w-none transition-opacity duration-500 ${m?"opacity-0":"opacity-100"}`}),r.jsx("img",{src:"/brand/logo-light.png",alt:"","aria-hidden":"true",className:`pointer-events-none absolute left-0 top-1/2 -translate-y-1/2 h-12 md:h-16 lg:h-20 xl:h-24 w-auto max-w-none transition-opacity duration-500 ${m?"opacity-100":"opacity-0"}`})]}),r.jsx("nav",{className:"hidden lg:flex items-center gap-1 lg:translate-y-3",children:Vx.map(h=>{const p=c===h.href;return h.highlight?r.jsxs(Ae,{href:h.href,className:`ml-2 flex items-center gap-1.5 whitespace-nowrap px-4 py-2 font-sans text-sm tracking-wide transition-all duration-200 ${m?"bg-amber-600/80 hover:bg-amber-600 text-white":"bg-amber-700 hover:bg-amber-600 text-white"}`,children:[r.jsx(js,{size:13}),h.label]},h.href):r.jsxs(Ae,{href:h.href,className:`relative whitespace-nowrap px-4 py-2 font-sans text-sm tracking-wide transition-colors duration-200 group ${m?p?"text-white":"text-white/80 hover:text-white":p?"text-stone-900":"text-stone-600 hover:text-stone-900"}`,children:[h.label,r.jsx("span",{className:`absolute bottom-0 left-4 right-4 h-px bg-amber-600 transition-transform duration-300 origin-left ${p?"scale-x-100":"scale-x-0 group-hover:scale-x-100"}`})]},h.href)})}),r.jsx("button",{onClick:()=>a(!n),className:`lg:hidden p-2 transition-colors ${m?"text-white":"text-stone-800"}`,"aria-label":"Toggle menu",children:n?r.jsx(aa,{size:22}):r.jsx(_4,{size:22})})]})}),r.jsx("div",{className:"lg:hidden bg-stone-800 py-2.5",children:r.jsxs("div",{className:"container flex items-center justify-between gap-2",children:[r.jsxs("p",{className:"font-sans text-xs text-stone-300",children:[r.jsx("strong",{className:"text-white font-medium",children:"Immediate need?"})," ","We're available 24/7."]}),r.jsxs("a",{href:"tel:9524322331",className:"font-sans text-xs font-medium text-amber-400 hover:text-amber-300 transition-colors whitespace-nowrap flex items-center gap-1",children:[r.jsx(sa,{size:11}),"(952) 432-2331"]})]})}),r.jsx("div",{className:`lg:hidden overflow-hidden transition-all duration-300 bg-white border-t border-stone-100 ${n?"max-h-screen opacity-100":"max-h-0 opacity-0"}`,children:r.jsxs("div",{className:"container py-4 flex flex-col gap-1",children:[Vx.map(h=>{const p=c===h.href;return r.jsx(Ae,{href:h.href,className:`py-3 px-2 font-sans text-sm border-b border-stone-50 transition-colors ${p?"text-stone-900 font-medium":"text-stone-600 hover:text-stone-900"}`,children:h.label},h.href)}),r.jsxs("a",{href:"tel:9524322331",className:"mt-3 flex items-center gap-2 py-3 px-2 font-sans text-sm text-amber-700 font-medium",children:[r.jsx(sa,{size:14}),"(952) 432-2331"]})]})})]})}function x3(){return r.jsxs("footer",{className:"bg-stone-900 text-stone-300",children:[r.jsx("div",{className:"h-px bg-gradient-to-r from-transparent via-amber-600/60 to-transparent"}),r.jsx("div",{className:"container py-16",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-10",children:[r.jsxs("div",{className:"lg:col-span-1",children:[r.jsx("div",{className:"mb-5",children:r.jsx("img",{src:"/brand/logo-light.png",alt:"Henry W. Anderson Funeral & Cremation Service",className:"h-20 w-auto"})}),r.jsx("p",{className:"font-sans text-sm text-stone-400 leading-relaxed",children:"Serving the Twin Cities with dignity, compassion, and care since 1931. Apple Valley Chapel established 1988."}),r.jsx("div",{className:"mt-5 h-px bg-gradient-to-r from-amber-600/40 to-transparent"})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-5",children:"Qu
347ick Links"}),r.jsx("ul",{className:"space-y-3",children:[{label:"Home",href:"/"},{label:"About Us",href:"/about"},{label:"Services",href:"/services"},{label:"Facilities",href:"/facilities"},{label:"Obituaries",href:"/obituaries"},{label:"Send Flowers",href:"/sympathy-store"},{label:"Contact Us",href:"/contact"}].map(n=>r.jsx("li",{children:r.jsx(Ae,{href:n.href,className:"font-sans text-sm text-stone-400 hover:text-amber-400 transition-colors duration-200",children:n.label})},n.href))})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-5",children:"Our Services"}),r.jsx("ul",{className:"space-y-3",children:["Funeral Services","Cremation","Pre-Planning","Tribute Videos","Online Memorials","Grief Support"].map(n=>r.jsx("li",{children:r.jsx(Ae,{href:"/services",className:"font-sans text-sm text-stone-400 hover:text-amber-400 transition-colors duration-200",children:n})},n))})]}),r.jsxs("div",{children:[r.jsx("h4",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-5",children:"Contact & Hours"}),r.jsxs("ul",{className:"space-y-4",children:[r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(ws,{size:14,className:"text-amber-600 mt-0.5 shrink-0"}),r.jsxs("span",{className:"font-sans text-sm text-stone-400 leading-relaxed",children:["14850 Garrett Avenue",r.jsx("br",{}),"Apple Valley, MN 55124"]})]}),r.jsxs("li",{className:"flex items-center gap-3",children:[r.jsx(sa,{size:14,className:"text-amber-600 shrink-0"}),r.jsx("a",{href:"tel:9524322331",className:"font-sans text-sm text-stone-400 hover:text-amber-400 transition-colors",children:"(952) 432-2331"})]}),r.jsxs("li",{className:"flex items-center gap-3",children:[r.jsx(el,{size:14,className:"text-amber-600 shrink-0"}),r.jsx("a",{href:"mailto:[email protected]",className:"font-sans text-sm text-stone-400 hover:text-amber-400 transition-colors",children:"[email protected]"})]}),r.jsxs("li",{className:"flex items-start gap-3",children:[r.jsx(La,{size:14,className:"text-amber-600 mt-0.5 shrink-0"}),r.jsxs("span",{className:"font-sans text-sm text-stone-400 leading-relaxed",children:["Open 24 hours",r.jsx("br",{}),r.jsx("span",{className:"text-stone-500 text-xs",children:"We are always available"})]})]})]})]})]})}),r.jsx("div",{className:"border-t border-stone-800",children:r.jsxs("div",{className:"container py-5 flex flex-col sm:flex-row items-center justify-between gap-3",children:[r.jsxs("p",{className:"font-sans text-xs text-stone-500",children:["© ",new Date().getFullYear()," Henry W. Anderson Funeral & Cremation Service. All rights reserved."]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("span",{className:"font-sans text-xs text-stone-600",children:"An Everfare affiliated chapel"}),r.jsx(Ae,{href:"/admin",className:"font-sans text-xs text-stone-600 hover:text-stone-400 transition-colors",children:"Staff Login"})]})]})})]})}const g3="https://pub-1e496ca6c90546ce98e93f454aef7bda.r2.dev/assets/hero-video-v2_3b9d6c04.mp4",b3="/manus-storage/hwa-exterior-aerial_9442f89d.jpg",v3="/manus-storage/hwa-exterior-aerial_9442f89d.jpg",y3="/manus-storage/hwa-lobby_12bb0a86.jpg";function j3(){const{data:n}=je.obituaries.list.useQuery({page:1,pageSize:3});return r.jsxs("div",{className:"bg-stone-50",children:[r.jsxs("section",{className:"relative h-screen min-h-[600px] max-h-[900px] flex items-center justify-center overflow-hidden",children:[r.jsxs("div",{className:"absolute inset-0",children:[r.jsx("video",{src:g3,poster:b3,autoPlay:!0,muted:!0,loop:!0,playsInline:!0,className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/55 via-black/40 to-black/65"})]}),r.jsxs("div",{className:"relative z-10 text-center px-6 max-w-3xl mx-auto animate-fade-in-up",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.25em] uppercase text-amber-300 mb-5",children:"Serving the Twin Cities Since 1931"}),r.jsxs("h1",{className:"font-serif text-white text-shadow-soft mb-6 leading-tight",children:["Honoring Lives.",r.jsx("br",{}),r.jsx("em",{className:"font-light",children:"Comforting Families."})]}),r.jsx("p",{className:"font-sans text-white/80 text-lg leading-relaxed mb-10 max-w-xl mx-auto delay-100 animate-fade-in-up",children:"Henry W. Anderson Funeral & Cremation Service has guided families through life's most difficult moments with dignity, compassion, and unwavering care."}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4 delay-200 animate-fade-in-up",children:[r.jsxs(Ae,{href:"/contact",className:"px-8 py-4 bg-amber-700 text-white font-sans text-sm tracking-wide hover:bg-amber-600 transition-colors duration-200 flex items-center gap-2",children:["Contact Us",r.jsx(ut,{size:16})]}),r.jsx(Ae,{href:"/services",className:"px-8 py-4 border border-white/60 text-white font-sans text-sm tracking-wide hover:bg-white/10 transition-colors duration-200",children:"Our Services"})]})]}),r.jsxs("div",{className:"absolute bottom-8 left-1/2 -translate-x-1/2 flex flex-col items-center gap-2 animate-fade-in delay-500",children:[r.jsx("span",{className:"font-sans text-[10px] tracking-[0.2em] uppercase text-white/50",children:"Scroll"}),r.jsx("div",{className:"w-px h-10 bg-gradient-to-b from-white/40 to-transparent"})]})]}),r.jsx("section",{className:"bg-stone-800 py-5",children:r.jsxs("div",{className:"container flex flex-col sm:flex-row items-center justify-between gap-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(sa,{size:18,className:"text-amber-400 shrink-0"}),r.jsxs("p",{className:"font-sans text-sm text-stone-200",children:[r.jsx("strong",{className:"text-white font-medium",children:"Immediate need?"})," ","We are available 24 hours a day, 7 days a week."]})]}),r.jsx("a",{href:"tel:9524322331",className:"font-sans text-sm font-medium text-amber-400 hover:text-amber-300 transition-colors whitespace-nowrap",children:"Call (952) 432-2331"})]})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"text-center mb-14",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-3",children:"Our C
347ommitment"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"How We Serve Your Family"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto mb-5"}),r.jsx("p",{className:"font-sans text-stone-500 max-w-xl mx-auto",children:"From the first call to the final farewell, we guide you through every step with clarity, compassion, and the highest standard of care."})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[{icon:r.jsx(sa,{size:22}),title:"First Call",desc:"We are available around the clock. When you call, a compassionate team member will guide you through the immediate next steps."},{icon:r.jsx(B4,{size:22}),title:"In Our Care",desc:"Your loved one is transferred into our care with the utmost respect and dignity. We handle every detail with professionalism."},{icon:r.jsx(ov,{size:22}),title:"Planning Together",desc:"We sit with your family to create a meaningful tribute — whether you're looking to plan a traditional service, cremation, or a personalized celebration of life."},{icon:r.jsx(na,{size:22}),title:"Lasting Tribute",desc:"From tribute videos and online memorials to personalized keepsakes, we help you honor your loved one's unique life story."}].map((a,l)=>r.jsxs("div",{className:"text-center group",children:[r.jsx("div",{className:"w-14 h-14 rounded-full bg-stone-50 border border-stone-100 flex items-center justify-center mx-auto mb-5 text-amber-700 group-hover:bg-amber-50 group-hover:border-amber-200 transition-colors duration-300",children:a.icon}),r.jsx("h4",{className:"font-serif text-stone-800 mb-3",children:a.title}),r.jsx("p",{className:"font-sans text-sm text-stone-500 leading-relaxed",children:a.desc})]},l))})]})}),r.jsx("section",{className:"section-pad bg-stone-50",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[r.jsxs("div",{className:"relative",children:[r.jsx("img",{src:v3,alt:"Henry W. Anderson Chapel grounds",className:"w-full aspect-[4/3] object-cover"}),r.jsxs("div",{className:"absolute -bottom-5 -right-5 bg-amber-700 p-6 hidden md:block",children:[r.jsx("p",{className:"font-serif text-3xl leading-none text-white",children:"95"}),r.jsx("p",{className:"font-sans text-xs tracking-widest uppercase mt-1 text-white/90",children:"Years of Service"})]})]}),r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"Our Story"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-6 leading-tight",children:"A Legacy of Care Across the Twin Cities"}),r.jsx("div",{className:"w-10 h-px bg-amber-600 mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-5",children:"Henry W. Anderson Funeral & Cremation Service has served Twin Cities families since 1931. Our Apple Valley chapel opened in 1988, bringing nearly a century of compassionate, dignified care to the south metro community."}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-8",children:"We are proud to be a family-owned and operated chapel, deeply rooted in the Apple Valley community. Our directors and staff bring decades of experience and genuine care to every family we serve."}),r.jsxs(Ae,{href:"/about",className:"inline-flex items-center gap-2 font-sans text-sm text-stone-800 border-b border-amber-600 pb-0.5 hover:text-amber-700 transition-colors",children:["Learn Our Story",r.jsx(ut,{size:14})]})]})]})})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"text-center mb-14",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-3",children:"What We Offer"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"Our Services"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto"})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-0 border border-stone-100",children:[{title:"Funeral Services",desc:"Traditional and contemporary funeral services tailored to honor your loved one's life and legacy.",href:"/services#funeral-services"},{title:"Cremation",desc:"Dignified cremation services with a range of meaningful options for memorialization.",href:"/services#cremation"},{title:"Pre-Planning",desc:"Plan ahead to give your family the gift of clarity and reduce the burden during a difficult time.",href:"/services#pre-planning"},{title:"Tribute Videos",desc:"A beautiful, personalized video celebration of your loved one's life, created with care.",href:"/services#tribute-videos"},{title:"Online Memorials",desc:"Share memories, photos, and condolences with family and friends near and far.",href:"/obituaries"},{title:"Grief Support",desc:"We remain by your side beyond the service, offering resources and compassionate guidance.",href:"/services#grief-support"}].map((a,l)=>r.jsxs("a",{href:a.href,className:"group p-8 border border-stone-100 hover:bg-stone-50 transition-colors duration-200",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600 mb-5 group-hover:w-12 transition-all duration-300"}),r.jsx("h4",{className:"font-serif text-stone-800 mb-3",children:a.title}),r.jsx("p",{className:"font-sans text-sm text-stone-500 leading-relaxed mb-4",children:a.desc}),r.jsxs("span",{className:"font-sans text-xs text-amber-700 tracking-wide flex items-center gap-1 group-hover:gap-2 transition-all",children:["Learn More ",r.jsx(ut,{size:12})]})]},l))})]})}),r.jsxs("section",{className:"relative py-24 overflow-hidden",children:[r.jsxs("div",{className:"absolute inset-0",children:[r.jsx("img",{src:y3,alt:"",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-stone-900/75"})]}),r.jsx("div",{className:"relative z-10 container text-center",children:r.jsxs("div",{className:"max-w-2xl mx-auto",children:[r.jsx("p",{className:"font-serif text-3xl md:text-4xl text-white italic font-light leading-relaxed mb-6",children:`"Those we love don't go away. They walk beside us every day."`}),r.jsx("div",{className:"w-12 h-px bg-amber-500 mx-auto mb-5"}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-stone-400",children:"We are here for your family"})]})})]}),n&&n.items.length>0&&r.jsx("section",{className:"section-pad bg-stone-50",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"flex items-end justify-between mb-12",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-3",children:"In Memoriam"}),r.jsx("h2",{className:"font-serif text-stone-800",children:"Recent Obituaries"})]}),r.jsxs(Ae,{href:"/obituaries",className:"hidden sm:flex items-center gap-2 font-sans text-sm text-stone-600 hover:text-amber-700 transition-colors",children:["View All ",r.jsx(ut,{size:14})]})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:n.items.map(a=>r.jsxs(Ae,{href:`/obituaries/${a.slug}`,className:"group bg-white border border-stone-100 hover:border-stone-200 hover:shadow-md transition-all duration-300",children:[r.jsx("div",{className:"aspect-[3/4] overflow-hidden bg-stone-100",children:a.photoUrl?r.jsx("img",{src:a.photoUrl,alt:`${a.firstName} ${a.lastName}`,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center bg-stone-100",children:r.jsxs("span",{className:"font-serif text-4xl text-stone-300",children:[a.firstName[0],a.lastName[0]]})})}),r.jsxs("div",{className:"p-6",children:[r.jsxs("h4",{className:"font-serif text-stone-800 mb-1",children:[a.firstName," ",a.middleName?`${a.middleName} `:"",a.lastName]}),a.birthDate&&a.deathDate&&r.jsxs("p",{className:"font-sans text-xs text-stone-400 mb-3",children:[new Date(a.birthDate+"T12:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})," – ",new Date(a.deathDate+"T12:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]}),r.jsxs("p",{className:"font-sans text-sm text-stone-500 line-clamp-3 leading-relaxed",children:[a.bio?a.bio.replace(/<[^>]*>/g," ").replace(/&[a-z#0-9]+;/gi,l=>({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&mdash;":"—","&ndash;":"–","&ldquo;":"“","&rdquo;":"”","&lsquo;":"‘","&rsquo;":"’","&hellip;":"…"})[l]||"").replace(/\s+/g," ").trim().substring(0,120):"","..."]}
347),r.jsxs("div",{className:"mt-4 pt-4 border-t border-stone-50 flex items-center justify-between",children:[r.jsxs("span",{className:"font-sans text-xs text-stone-400",children:[a.viewCount.toLocaleString()," visits"]}),r.jsxs("span",{className:"font-sans text-xs text-amber-700 flex items-center gap-1 group-hover:gap-2 transition-all",children:["Read More ",r.jsx(ut,{size:11})]})]})]})]},a.id))}),r.jsx("div",{className:"text-center mt-10 sm:hidden",children:r.jsxs(Ae,{href:"/obituaries",className:"font-sans text-sm text-amber-700 flex items-center gap-2 justify-center",children:["View All Obituaries ",r.jsx(ut,{size:14})]})})]})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-0 border border-stone-100",children:[r.jsxs("div",{className:"p-10 md:p-14 border-b md:border-b-0 md:border-r border-stone-100",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600 mb-6"}),r.jsx("h3",{className:"font-serif text-stone-800 mb-4",children:"Plan Ahead"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-6",children:"Pre-planning your arrangements is one of the most thoughtful gifts you can give your family. It removes the burden of decision-making during an already difficult time and ensures your wishes are honored exactly as you intend."}),r.jsxs("a",{href:"/services#pre-planning",className:"inline-flex items-center gap-2 px-6 py-3 border border-stone-800 font-sans text-sm text-stone-800 hover:bg-stone-800 hover:text-white transition-colors duration-200",children:["Learn About Pre-Planning",r.jsx(ut,{size:14})]})]}),r.jsxs("div",{className:"p-10 md:p-14 bg-stone-800",children:[r.jsx("div",{className:"w-8 h-px bg-amber-500 mb-6"}),r.jsx("h3",{className:"font-serif text-white mb-4",children:"Immediate Need"}),r.jsx("p",{className:"font-sans text-stone-300 leading-relaxed mb-6",children:"If you have recently experienced a loss, we are here for you right now. Our compassionate team is available 24 hours a day, 7 days a week to guide your family through every step."}),r.jsxs("a",{href:"tel:9524322331",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-700 text-white font-sans text-sm hover:bg-amber-600 transition-colors duration-200",children:[r.jsx(sa,{size:14}),"Call (952) 432-2331"]})]})]})})})]})}const w3="/manus-storage/chapel_cb020ce0.jpeg",N3="/manus-storage/foyer_6220a0dd.jpeg",S3="/manus-storage/hwa-exterior-aerial_9442f89d.jpg",C3="https://lirp.cdn-website.com/3361f92b/dms3rep/multi/opt/Welter-+Brea+photo-1920w.jpg",E3="https://lirp.cdn-website.com/3361f92b/dms3rep/multi/opt/Ung-+Dayna+photo-1920w.jpg",O3="https://lirp.cdn-website.com/3361f92b/dms3rep/multi/opt/Starkson-+J.+photo-1920w.JPG",A3="https://lirp.cdn-website.com/3361f92b/dms3rep/multi/opt/Katie-815--1920w.jpg",T3="https://lirp.cdn-website.com/3361f92b/dms3rep/multi/opt/Stromberg-+A.+photo-1920w.jpg",M3="https://lirp.cdn-website.com/3361f92b/dms3rep/multi/opt/FB_IMG_1742956606098-1920w.jpg",_3="https://lirp.cdn-website.com/3361f92b/dms3rep/multi/opt/Nelson-+Paul+photo-1920w.jpg",D3=[{name:"Brea Welter",title:"MN Licensed Mortician",photo:C3,bio:"Brea grew up in New York Mills, MN, and earned her Bachelor of Science in Mortuary Science from the University of Minnesota in 2012. She has been a dedicated funeral director at Henry W. Anderson Mortuary since 2015. Brea and her husband Travis live in South Minneapolis and she stays closely connected with her family across Minnesota and Georgia."}
vendor: 6,649 bytes, line 347
347,{name:"Dayna Ung",title:"Apple Valley Office Manager",photo:E3,bio:"Dayna was born and raised in Minneapolis and attended the College of St. Catherine's and the University of Minnesota. She brings a deep sense of community and dedication to her role, offering compassionate care to every family she serves. Dayna lives in Minneapolis with her husband Sok and their two children, Paige and Josh."},{name:"Aaron Stromberg",title:"MN & WI Licensed Mortician",photo:T3,bio:"Aaron grew up in Webster, Wisconsin and graduated from the University of Minnesota's Program of Mortuary Science. He began his career in funeral service in Eau Claire, WI before moving to the Twin Cities. Aaron is married to Caitlin and they have three daughters. He enjoys golfing, hunting, and spending time with family and friends."},{name:"Matt Friederichs",title:"MN & WI Licensed Mortician",photo:M3,bio:"Matt is a native of Hastings, MN and a graduate of the University of Wisconsin–Eau Claire and the University of Minnesota's Program of Mortuary Science. He has been dedicated to funeral service since 2017. Outside of work, Matt enjoys playing trombone in a local band, reading, and spending time with friends and family."},{name:"Jesse Starkson",title:"Owner & MN/WI Licensed Mortician",photo:O3,bio:"Jesse graduated from the University of Minnesota's Program of Mortuary Science and has dedicated his career to serving families with compassion and excellence. In January 2025, he acquired Henry W. Anderson Mortuary and is committed to continuing its nearly century-long tradition of premier funeral service in the Southeast Metro area."},{name:"Katie Starkson",title:"Human Resources Manager & Owner",photo:A3,bio:"Katie was born and raised in Waseca, Minnesota and graduated from Concordia University–St. Paul. She married Jesse Starkson in 2013 and together they are proud parents of two children. Katie brings warmth, organization, and a deep commitment to community to everything she does."},{name:"Paul Nelson",title:"Funeral Director's Assistant",photo:_3,bio:"Paul was born and raised in Minneapolis, where he graduated from Roosevelt High School before earning a two-year degree from St. Paul Community College. For over 40 years, he owned and operated a machine shop alongside his brother before retiring. Now living in Lakeville with his wife, Susan, Paul enjoys exploring the many walking paths in their neighborhood. Together, they have two grown children and two grandchildren, with whom they cherish spending as much time as possible. When he's not with family, Paul takes great care of his 1962 Volkswagen Bug, which makes occasional appearances from the garage. Paul is honored to serve families with compassion and care, offering support during their time of need."}];function z3(){return r.jsxs("div",{className:"bg-stone-50",children:[r.jsxs("section",{className:"relative h-72 md:h-96 flex items-end overflow-hidden",children:[r.jsxs("div",{className:"absolute inset-0",children:[r.jsx("img",{src:S3,alt:"Chapel exterior aerial",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-stone-900/80 via-stone-900/40 to-transparent"})]}),r.jsxs("div",{className:"relative z-10 container pb-12",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-300 mb-2",children:"Our Story"}),r.jsx("h1",{className:"font-serif text-white",children:"About Us"})]})]}),r.jsx("div",{className:"bg-white border-b border-stone-100",children:r.jsxs("div",{className:"container py-3 flex items-center gap-2 font-sans text-xs text-stone-400",children:[r.jsx(Ae,{href:"/",className:"hover:text-stone-600 transition-colors",children:"Home"}),r.jsx("span",{children:"/"}),r.jsx("span",{className:"text-stone-600",children:"About Us"})]})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"Serving the Twin Cities Since 1931"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-6",children:"Nearly a Century of Compassionate Service"}),r.jsx("div",{className:"w-10 h-px bg-amber-600 mb-7"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-5",children:"Henry W. Anderson Funeral & Cremation Service has been a pillar of support and solace for over three generations of Twin Cities families. Founded in 1931, our commitment has been unwavering for nearly a century: to ensure that every service we provide becomes a lasting tribute to the life and heritage of the departed. The Apple Valley chapel opened in 1988, bringing that same tradition of care directly to the south metro community."}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-5",children:"The commitment of the Anderson Family spanned three generations, providing personalized funeral arrangements that reflect the unique characteristics of each individual. In January 2025, the Starkson Family acquired Henry W. Anderson Mortuary, bringing their own deep tradition of compassionate, family-owned service — and a commitment to continuing the legacy that Apple Valley families have trusted for nearly 100 years."}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed",children:"No matter the type of service you choose, our facility is equipped to provide you and your family with only the very best. We invite you to explore what we have to offer."})]}),r.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[r.jsx("img",{src:w3,alt:"Chapel interior",className:"w-full aspect-[3/4] object-cover"}),r.jsx("img",{src:N3,alt:"Chapel sanctuary",className:"w-full aspect-[3/4] object-cover mt-8"})]})]})})}),r.jsx("section",{className:"section-pad bg-stone-50",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"text-center mb-14",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-3",children:"What Guides Us"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"Our Values"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto"})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8",children:[{title:"Dignity",desc:"Every person deserves to be honored with the utmost respect. We treat every family and every life with the dignity they deserve."},{title:"Compassion",desc:"We understand that grief is deeply personal. Our team approaches every family with genuine empathy and patience."}
347,{title:"Transparency",desc:"We believe in clear, honest communication. There are no hidden fees, no surprises — only straightforward guidance."},{title:"Community",desc:"We are rooted in Apple Valley. Our commitment to this community extends far beyond the services we provide."}].map((n,a)=>r.jsxs("div",{className:"bg-white p-8 border border-stone-100",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600 mb-5"}),r.jsx("h4",{className:"font-serif text-stone-800 mb-3",children:n.title}),r.jsx("p",{className:"font-sans text-sm text-stone-500 leading-relaxed",children:n.desc})]},a))})]})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"text-center mb-14",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-3",children:"The People Behind Our Care"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"Our Team"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto mb-5"}),r.jsx("p",{className:"font-sans text-stone-500 max-w-lg mx-auto",children:"Our directors and staff bring decades of experience and genuine care to every family we serve."})]}),r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:D3.map((n,a)=>r.jsxs("div",{className:"group text-center",children:[r.jsxs("div",{className:"relative mb-6 overflow-hidden",children:[r.jsx("img",{src:n.photo,alt:n.name,className:"w-full aspect-[3/4] object-cover object-top group-hover:scale-105 transition-transform duration-500"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-stone-900/30 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-300"})]}),r.jsx("h4",{className:"font-serif text-stone-800 mb-1",children:n.name}),r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-amber-700 mb-4",children:n.title}),r.jsx("p",{className:"font-sans text-sm text-stone-500 leading-relaxed",children:n.bio})]},a))})]})}),r.jsx("section",{className:"section-pad bg-stone-800",children:r.jsx("div",{className:"container",children:r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10 text-center",children:[{title:"Online Memorials",desc:"We create customized online memorials where family and friends can share condolences, upload photos, and light candles in honor of your loved one."},{title:"Tribute Videos",desc:"We produce personalized tribute videos from your photographs — a beautiful, lasting celebration of a life well lived."},{title:"Flower Arrangements",desc:"We make it easy for friends and family to 
347send flowers directly to the service through our trusted local florist partners."}].map((n,a)=>r.jsxs("div",{children:[r.jsx("div",{className:"w-8 h-px bg-amber-500 mx-auto mb-5"}),r.jsx("h4",{className:"font-serif text-white mb-3",children:n.title}),r.jsx("p",{className:"font-sans text-sm text-stone-400 leading-relaxed",children:n.desc})]},a))})})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsxs("div",{className:"container text-center",children:[r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"We Are Here For Your Family"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 max-w-lg mx-auto mb-8",children:"Whether you are making arrangements for an immediate need or planning ahead for the future, our team is ready to guide you with compassion and care."}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[r.jsxs(Ae,{href:"/contact",className:"px-8 py-4 bg-stone-800 text-white font-sans text-sm tracking-wide hover:bg-stone-700 transition-colors flex items-center gap-2",children:["Contact Us ",r.jsx(ut,{size:14})]}),r.jsx(Ae,{href:"/services",className:"px-8 py-4 border border-stone-200 text-stone-700 font-sans text-sm tracking-wide hover:border-stone-400 transition-colors",children:"Our Services"})]})]})})]})}const Fx="/manus-storage/chapel_cb020ce0.jpeg",R3="/manus-storage/hwa-flowers-detail.webp";function k3(){return r.jsxs("div",{className:"bg-stone-50",children:[r.jsxs("section",{className:"relative h-72 md:h-96 flex items-end overflow-hidden",children:[r.jsxs("div",{className:"absolute inset-0",children:[r.jsx("img",{src:Fx,alt:"Chapel interior",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-stone-900/80 via-stone-900/40 to-transparent"})]}),r.jsxs("div",{className:"relative z-10 container pb-12",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-300 mb-2",children:"What We Offer"}),r.jsx("h1",{className:"font-serif text-white",children:"Our Services"})]})]}),r.jsx("div",{className:"bg-white border-b border-stone-100",children:r.jsxs("div",{className:"container py-3 flex items-center gap-2 font-sans text-xs text-stone-400",children:[r.jsx(Ae,{href:"/",className:"hover:text-stone-600 transition-colors",children:"Home"}),r.jsx("span",{children:"/"}),r.jsx("span",{className:"text-stone-600",children:"Services"})]})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsxs("div",{className:"container max-w-3xl text-center",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"Our Commitment"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-5",children:"Thoughtful Care for Every Family"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed",children:"No matter the type of service you choose, our facility and our team are equipped to provide you and your family with only the very best. We invite you to explore what we have to offer and to reach out with any questions."})]})}),r.jsx("section",{id:"funeral-services",className:"section-pad bg-stone-50",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"Traditional & Contemporary"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-5",children:"Funeral Services"}),r.jsx("div",{className:"w-10 h-px bg-amber-600 mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-5",children:"A funeral service is a meaningful opportunity to gather, remember, and begin the healing process. We offer a full range of funeral services — from traditional religious ceremonies to contemporary celebrations of life — each thoughtfully tailored to reflect the unique person being honored."}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-6",children:"Our chapel can accommodate services of any size, and our experienced directors will guide you through every decision with patience and care."}),r.jsx("ul",{className:"space-y-3 mb-8",children:["Traditional funeral services","Graveside services","Celebration of life ceremonies","Military honors coordination","Personalized tributes and keepsakes","Reception and gathering coordination"].map(n=>r.jsxs("li",{className:"flex items-center gap-3 font-sans text-sm text-stone-600",children:[r.jsx(Vi,{size:14,className:"text-amber-600 shrink-0"}),n]},n))}),r.jsxs(Ae,{href:"/contact",className:"inline-flex items-center gap-2 font-sans text-sm text-stone-800 border-b border-amber-600 pb-0.5 hover:text-amber-700 transition-colors",children:["Speak With a Director ",r.jsx(ut,{size:14})]})]}),r.jsx("img",{src:Fx,alt:"Chapel interior",className:"w-full aspect-[4/3] object-cover"})]})})}),r.jsx("section",{id:"cremation",className:"section-pad bg-white",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[r.jsx("img",{src:R3,alt:"White flowers",className:"w-full aspect-[4/3] object-cover order-2 lg:order-1"}),r.jsxs("div",{className:"order-1 lg:order-2",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"Dignified & Meaningful"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-5",children:"Cremation Services"}),r.jsx("div",{className:"w-10 h-px bg-amber-600 mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-5",children:"Cremation is a dignified choice that offers flexibility in how and when you choose to memorialize your loved one. We provide compassionate cremation services with a range of meaningful options, ensuring that your family's wishes are honored with the utmost care."}),r.jsx("ul",{className:"space-y-3 mb-8",children:["Direct cremation","Cremation with a memorial service","Cremation with a full funeral service","Urn selection and personalization","Scattering ceremony coordination","Cremation jewelry and keepsakes"].map(n=>r.jsxs("li",{className:"flex items-center gap-3 font-sans text-sm text-stone-600",children:[r.jsx(Vi,{size:14,className:"text-amber-600 shrink-0"}),n]},n))}),r.jsxs(Ae,{href:"/contact",className:"inline-flex items-center gap-2 font-sans text-sm text-stone-800 border-b border-amber-600 pb-0.5 hover:text-amber-700 transition-colors",children:["Learn More ",r.jsx(ut,{size:14})]})]})]})})}),r.jsx("section",{id:"pre-planning",className:"section-pad bg-stone-800",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-400 mb-4",children:"A Gift to Your Family"}),r.jsx("h2",{className:"font-serif text-white mb-5",children:"Pre-Planning Your Arrangements"}),r.jsx("div",{className:"w-10 h-px bg-amber-500 mb-6"}),r.jsx("p",{className:"font-sans text-stone-300 leading-relaxed mb-5",children:"Pre-planning your funeral arrangements is one of the most thoughtful and practical decisions you can make. It removes the burden of decision-making from your family during an already difficult time, and it ensures that your wishes are honored exactly as you intend."}),r.jsx("p",{className:"font-sans text-stone-300 leading-relaxed mb-6",children:"Our directors will walk 
347you through the process at your own pace, with no pressure and complete transparency. Pre-funded arrangements can also lock in today's prices, protecting your family from future cost increases."}),r.jsx("ul",{className:"space-y-3 mb-8",children:["Peace of mind for you and your family","Your wishes documented and honored","Pre-funding options available","No obligation consultations","Flexible planning at your own pace"].map(n=>r.jsxs("li",{className:"flex items-center gap-3 font-sans text-sm text-stone-300",children:[r.jsx(Vi,{size:14,className:"text-amber-500 shrink-0"}),n]},n))}),r.jsxs(Ae,{href:"/contact",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-700 text-white font-sans text-sm hover:bg-amber-600 transition-colors",children:["Begin Planning ",r.jsx(ut,{size:14})]})]}),r.jsx("div",{className:"grid grid-cols-1 gap-5",children:[{step:"01",title:"Initial Consultation",desc:"Meet with one of our directors at no cost or obligation to discuss your wishes and options."},{step:"02",title:"Document Your Wishes",desc:"We record your preferences in detail, from the type of service to music, readings, and personal touches."},{step:"03",title:"Funding Options",desc:"Choose from a range of pre-funding options that protect your family and lock in current pricing."},{step:"04",title:"Peace of Mind",desc:"Your arrangements are securely on file. Your family will know exactly what to do when the time comes."}].map(n=>r.jsxs("div",{className:"flex gap-5 bg-stone-700/50 p-5",children:[r.jsx("span",{className:"font-serif text-2xl text-amber-500 shrink-0 leading-none mt-1",children:n.step}),r.jsxs("div",{children:[r.jsx("h5",{className:"font-serif text-white mb-1",children:n.title}),r.jsx("p",{className:"font-sans text-sm text-stone-400 leading-relaxed",children:n.desc})]})]},n.step))})]})})}),r.jsx("section",{id:"tribute-videos",className:"section-pad bg-white",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"text-center mb-14",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-3",children:"Modern Tributes"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"Tribute Videos & Online Memorials"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto mb-5"}),r.jsx("p",{className:"font-sans text-stone-500 max-w-xl mx-auto",children:"We offer modern, meaningful ways to celebrate and share the life of your loved one — both at the service and with family and friends around the world."})]}),r.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[r.jsxs("div",{className:"bg-stone-50 p-10 border border-stone-100",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600 mb-5"}),r.jsx("h3",{className:"font-serif text-stone-800 mb-4",children:"Tribute Videos"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-5",children:"We produce a personal tribute video that can be played at the service and shared online. Simply provide us with the photographs you want to include, and we will transform them into a beautiful video celebration of your treasured memories."}),r.jsx("p",{className:"font-sans text-sm text-stone-400",children:"DVDs and digital files are available for your family to keep."})]}),r.jsxs("div",{className:"bg-stone-50 p-10 border border-stone-100",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600 mb-5"}),r.jsx("h3",{className:"font-serif text-stone-800 mb-4",children:"Online Memorials"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-5",children:"We create a customized online memorial for your loved one — a permanent, beautiful space where family and friends can share condolences, upload photos, light candles, and celebrate a life well lived."}),r.jsxs(Ae,{href:"/obituaries",className:"inline-flex items-center gap-2 font-sans text-sm text-amber-700 hover:text-amber-600 transition-colors",children:["View Our Memorials ",r.jsx(ut,{size:14})]})]})]})]})}),r.jsx("section",{id:"grief-support",className:"section-pad bg-stone-50",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16 items-center",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"We Are Here For You"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-5",children:"Grief Support"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-4",children:"Our care for your family does not end at the service. We understand that grief is deeply personal and that the days, weeks, and months following a loss can be some of the most difficult. We are here to walk alongside you."}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-8",children:"We can connect your family with trusted grief counselors, support groups, and community resources in the Twin Cities area. Our staff is always available to listen and to help guide you toward the support you need."}),r.jsx("ul",{className:"space-y-3 mb-8",children:["Referrals to licensed grief counselors","Local and online support groups","Resources for children and teens","Follow-up care from our staff"].map(n=>r.jsxs("li",{className:"flex items-start gap-3 font-sans text-sm text-stone-600",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-600 mt-2 shrink-0"}),n]},n))}),r.jsxs(Ae,{href:"/contact",className:"inline-flex items-center gap-2 px-8 py-4 bg-stone-800 text-white font-sans text-sm hover:bg-stone-700 transition-colors",children:["Reach Out to Us ",r.jsx(ut,{size:14})]})]}),r.jsxs("div",{className:"bg-white p-10 border border-stone-100",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600 mb-6"}),r.jsx("blockquote",{className:"font-serif text-xl text-stone-700 leading-relaxed mb-6",children:"“Grief is the price we pay for love. You do not have to carry it alone.”"}),r.jsx("p",{className:"font-sans text-sm text-stone-500 leading-relaxed",children:"Henry W. Anderson Funeral & Cremation Service has supported Twin Cities families through loss for over 95 years. Our commitment to your family extends well beyond the service itself — we are a resource you can return to whenever you need."})]})]})})}),r.jsx("section",{className:"py-20 bg-white border-t border-stone-100",children:r.jsxs("div",{className:"container text-center",children:[r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"Ready to Get Started?"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 max-w-lg mx-auto mb-8",children:"Our team is available around the clock to answer your questions and guide your family with compassion and care."}),r.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-4",children:[r.jsxs(Ae,{href:"/contact",className:"px-8 py-4 bg-stone-800 text-white font-sans text-sm hover:bg-stone-700 transition-colors flex items-center gap-2",children:["Contact Us ",r.jsx(ut,{size:14})]}),r.jsx("a",{href:"tel:9524322331",className:"px-8 py-4 border border-stone-200 text-stone-700 font-sans text-sm hover:border-stone-400 transition-colors",children:"Call (952) 432-2331"})]})]})})]})}const Bf="/manus-storage/hwa-exterior-aerial_9442f89d.jpg",bv="/manus-storage/hwa-exterior-aerial2_e6ad33be.jpg",vv="/manus-storage/chapel_cb020ce0.jpeg",yv="/manus-storage/chapel1_aca0d4eb.jpeg",jv="/manus-storage/chapel2_f75b90d9.jpeg",wv="/manus-storage/chapel3_a79a3c98.jpeg",Nv="/manus-storage/foyer_6220a0dd.jpeg",Sv="/manus-storage/foyer1_b2348962.jpeg",Cv="/manus-storage/entry_f552b462.jpeg",Ev="/manus-storage/entry2_79455973.jpeg",Ov="/manus-storage/conferenceroom_fb054311.jpeg",Av="/manus-storage/conference1_e48d2456.jpeg",Tv="/manus-storage/conference2_d6df64a2.jpeg",Mv="/manus-storage/receptionarea_47f2588d.jpeg",za=[{src:vv,caption:"Main Chapel"},{src:yv,caption:"Main Chapel — Sanctuary"},{src:jv,caption:"Main Chapel — Seating"},{src:wv,caption:"Main Chapel — Altar View"},{src:Nv,caption:"Main Lobby & Foyer"},{src:Sv,caption:"Lobby — Gathering Area"},{src:Cv,caption:"Chapel Entry"},{src:Ev,caption:"Entry — Exterior Approach"},{src:Ov,caption:"Arrangement Room"},{src:Av,caption:"Conference Room"},{src:Tv,caption:"Private Meeting Room"},{src:Mv,caption:"Reception Room"},{src:Bf,caption:"Aerial View — Apple Valley"},{src:bv,caption:"Aerial View — Grounds"}],U3=[{img:vv,alt:"Main Chapel",title:"Main Chapel",desc:"Our main chapel is a serene, beautifully appointed space that can accommodate services of any size. With warm wood pews, soft lighting, and elegant architectural details, it provides a dignified setting for any type of service — from traditional religious ceremonies to contemporary celebrations of life.",features:["Seating for up to 200 guests","State-of-the-art audio and visual system","Livestreaming capability","Climate controlled"],extra:[yv,jv,wv]},{img:Nv,alt:"Main Lobby & Foyer",title:"Main Lobby & Foyer",desc:"Our welcoming lobby and foyer provide a warm, comfortable space for families to gather before and after services. Thoughtfully furnished with comfortable seating and tasteful décor, it offers a private retreat where families can find comfort and support.",features:["Spacious, comfortable gathering area","Warm, welcoming décor","Refreshment service available","Adjacent to the main chapel"],extra:[Sv,Cv,Ev]},{img:Mv,alt:"Reception Room",title:"Reception Room",desc:"Our reception room offers families the ability to host a luncheon or reception immediately following a service — all in one place, without the need to travel to a separate venue. Whether you envision a simple gathering with light refreshments or a full sit-down meal, our space can be arranged to accommodate your family's wishes with warmth and ease.",features:["Full reception and luncheon capability","Flexible seating arrangements","Catering coordination available","Adjacent to the main chapel for seamless transition"],extra:[]},{img:Ov,alt:"Arrangement Room",title:"Arrangement Room",desc:"Our private arrangement room is where families meet with our directors to plan every detail of the service. The space is designed to feel calm and unhurried — a professional yet welcoming environment where families can take the time they need.",features:["Private and confidential","Comfortable seating for families","Full arrangement resources on hand","Accessible and welcoming"],extra:[Av,Tv]},{img:Bf,alt:"Chapel Grounds",title:"Our Grounds",desc:"Our beautifully maintained grounds provide a peaceful outdoor space for reflection and gathering. The property's well-kept exterior and manicured surroundings offer a dignified first impression and a tranquil setting for quiet moments of remembrance.",features:["Manicured grounds and landscaping","Accessible parking and pathways","Available for outdoor gatherings","Peaceful, park-like setting"],extra:[bv]}];function L3(){const[n,a]=w.useState(null);return r.jsxs("div",{className:"bg-stone-50",children:[r.jsxs("section",{className:"relative h-72 md:h-96 flex items-end overflow-hidden",children:[r.jsxs("div",{className:"absolute inset-0",children:[r.jsx("img",{src:Bf,alt:"Chapel exterior",className:"w-full h-full object-cover"}),r.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-stone-900/80 via-stone-900/40 to-transparent"})]}),r.jsxs("div",{className:"relative z-10 container pb-12",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-300 mb-2",children:"Our Chapel"}),r.jsx("h1",{className:"font-serif text-white",children:"Our Facilities"})]})]}),r.jsx("div",{className:"bg-white border-b border-stone-100",children:r.jsxs("div",{className:"container py-3 flex items-center gap-2 font-sans text-xs text-stone-400",children:[r.jsx(Ae,{href:"/",className:"hover:text-stone-600 transition-colors",children:"Home"}),r.jsx("span",{children:"/"}),r.jsx("span",{className:"text-stone-600",children:"Facilities"})]})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsxs("div",{className:"container max-w-3xl text-center",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"14850 Garrett Avenue, Apple Valley, MN"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-5",children:"A Space Designed for Comfort & Dignity"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto mb-6"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed",children:"Our facility has been thoughtfully designed and maintained to provide families with a beautiful, comfortable, and dignified environment. Every room reflects our commitment to quality and our deep respect for the families we serve."})]})}),r.jsx("section",{className:"pb-20 bg-white",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("h3",{className:"font-serif text-stone-700 mb-2",children:"Photo Gallery"}),r.jsx("p",{className:"font-sans text-xs text-stone-400 tracking-wide",children:"Click any photo to enlarge"})]}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:za.map((l,o)=>r.jsxs("button",{onClick:()=>a(o),className:"group relative overflow-hidden aspect-[4/3] bg-stone-100 focus:outline-none focus-visible:ring-2 focus-visible:ring-amber-500",children:[r.jsx("img",{src:l.src,alt:l.caption,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),r.jsx("div",{className:"absolute inset-0 bg-stone-900/0 group-hover:bg-stone-900/30 transition-colors duration-300 flex items-end",children:r.jsx("span",{className:"font-sans text-xs text-white/0 group-hover:text-white/90 transition-colors duration-300 p-3 tracking-wide",children:l.caption})})]},o))})]})}),n!==null&&r.jsxs("div",{className:"fixed inset-0 z-50 bg-black/90 flex items-center justify-center p-4",onClick:()=>a(null),children:[r.jsx("button",{className:"absolute top-4 right-4 text-white/70 hover:text-white p-2",onClick:()=>a(null),children:r.jsx(aa,{size:24})}),r.jsxs("div",{className:"max-w-4xl w-full",onClick:l=>l.stopPropagation(),children:[r.jsx("img",{src:za[n].src,alt:za[n].caption,className:"w-full max-h-[80vh] object-contain"}),r.jsx("p",{className:"font-sans text-sm text-white/60 text-center mt-3 tracking-wide",children:za[n].caption}),r.jsxs("div",{className:"flex justify-center gap-3 mt-4",children:[r.jsx("button",{onClick:l=>{l.stopPropagation(),a(o=>o!==null&&o>0?o-1:za.length-1)},className:"px-4 py-2 bg-white/10 hover:bg-white/20 text-white font-sans text-xs tracking-wide transition-colors",children:"← Prev"}),r.jsx("button",{onClick:l=>{l.stopPropagation(),a(o=>o!==null&&o<za.length-1?o+1:0)},className:"px-4 py-2 bg-white/10 hover:bg-white/20 text-white font-sans text-xs tracking-wide transition-colors",children:"Next →"})]})]})]}),r.jsx("section",{className:"section-pad bg-stone-50",children:r.jsxs("div",{className:"container",children:[r.jsxs("div",{className:"text-center mb-14",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-3",children:"Our Spaces"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-4",children:"Rooms & Amenities"}),r.jsx("div",{className:"w-12 h-px bg-amber-600 mx-auto"})]}),r.jsx("div",{className:"space-y-24",children:U3.map((l,o)=>r.jsx("div",{children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center",children:[r.jsxs("div",{className:o%2===1?"lg:order-2":"",children:[r.jsx("img",{src:l.img,alt:l.alt,className:"w-full aspect-[4/3] object-cover"}),l.extra.length>0&&r.jsx("div",{className:"grid grid-cols-3 gap-2 mt-2",children:l.extra.map((c,f)=>{const m=za.findIndex(h=>h.src===c);return r.jsx("button",{onClick:()=>m>=0&&a(m),className:"overflow-hidden aspect-[4/3] bg-stone-100 focus:outline-none",children:r.jsx("img",{src:c,alt:l.title,className:"w-full h-full object-cover hover:scale-105 transition-transform duration-300"})},f)})})]}),r.jsxs("div",{className:o%2===1?"lg:order-1":"",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600 mb-5"}),r.jsx("h3",{className:"font-serif text-stone-800 mb-4",children:l.title}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-6",children:l.desc}),r.jsx("ul",{className:"space-y-2",
347children:l.features.map(c=>r.jsxs("li",{className:"flex items-center gap-3 font-sans text-sm text-stone-600",children:[r.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-amber-600 shrink-0"}),c]},c))})]})]})},o))})]})}),r.jsx("section",{className:"py-20 bg-stone-800",children:r.jsxs("div",{className:"container text-center",children:[r.jsx("h2",{className:"font-serif text-white mb-4",children:"Schedule a Visit"}),r.jsx("div",{className:"w-12 h-px bg-amber-500 mx-auto mb-6"}),r.jsx("p",{className:"font-sans text-stone-300 max-w-lg mx-auto mb-8",children:"We invite you to visit our facility at your convenience. Our team is happy to show you our chapel, reception room, and all of our spaces — and to answer any questions you may have."}),r.jsxs(Ae,{href:"/contact",className:"inline-flex items-center gap-2 px-8 py-4 bg-amber-700 text-white font-sans text-sm hover:bg-amber-600 transition-colors",children:["Schedule a Visit ",r.jsx(ut,{size:14})]})]})})]})}function q3(n){return n.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&apos;/g,"'").replace(/&nbsp;/g," ").replace(/&ndash;/g,"–").replace(/&mdash;/g,"—").replace(/&ldquo;/g,"“").replace(/&rdquo;/g,"”").replace(/&lsquo;/g,"‘").replace(/&rsquo;/g,"’").replace(/&hellip;/g,"…").replace(/&#(\d+);/g,(a,l)=>String.fromCharCode(Number(l))).replace(/&#x([0-9a-fA-F]+);/g,(a,l)=>String.fromCharCode(parseInt(l,16)))}function H3(){const[n,a]=w.useState(""),[l,o]=w.useState(""),[c,f]=w.useState(1),m=12,{data:h,isLoading:p}=je.obituaries.list.useQuery({search:n||void 0,page:c,pageSize:m}),x=v=>{v.preventDefault(),a(l),f(1)};return r.jsxs("div",{className:"bg-stone-50",children:[r.jsxs("section",{className:"relative h-48 md:h-64 flex items-end overflow-hidden bg-stone-800",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-stone-700 to-stone-900"}),r.jsxs("div",{className:"relative z-10 container pb-10",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-300 mb-2",children:"In Memoriam"}),r.jsx("h1",{className:"font-serif text-white",children:"Obituaries"})]})]}),r.jsx("div",{className:"bg-white border-b border-stone-100",children:r.jsxs("div",{className:"container py-3 flex items-center gap-2 font-sans text-xs text-stone-400",children:[r.jsx(Ae,{href:"/",className:"hover:text-stone-600 transition-colors",children:"Home"}),r.jsx("span",{children:"/"}),r.jsx("span",{className:"text-stone-600",children:"Obituaries"})]})}),r.jsx("section",{className:"bg-white py-10 border-b border-stone-100",children:r.jsxs("div",{className:"container",children:[r.jsxs("form",{onSubmit:x,className:"flex gap-3 max-w-xl",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(iv,{size:16,className:"absolute left-4 top-1/2 -translate-y-1/2 text-stone-400"}),r.jsx("input",{type:"text",value:l,onChange:v=>o(v.target.value),placeholder:"Search by name...",className:"w-full pl-11 pr-4 py-3 border border-stone-200 bg-stone-50 font-sans text-sm text-stone-800 focus:outline-none focus:border-stone-400 transition-colors"})]}),r.jsx("button",{type:"submit",className:"px-6 py-3 bg-stone-800 text-white font-sans text-sm hover:bg-stone-700 transition-colors",children:"Search"}),n&&r.jsx("button",{type:"button",onClick:()=>{a(""),o(""),f(1)},className:"px-4 py-3 border border-stone-200 text-stone-500 font-sans text-sm hover:border-stone-400 transition-colors",children:"Clear"})]}),n&&r.jsxs("p",{className:"font-sans text-sm text-stone-500 mt-3",children:['Showing results for "',r.jsx("span",{className:"text-stone-800 font-medium",children:n}),'"',h&&` — ${h.total} found`]})]})}),r.jsx("section",{className:"section-pad",children:r.jsx("div",{className:"container",children:p?r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:Array.from({length:6}).map((v,b)=>r.jsxs("div",{className:"bg-white border border-stone-100 animate-pulse",children:[r.jsx("div",{className:"aspect-[4/3] bg-stone-100"}),r.jsxs("div",{className:"p-6 space-y-3",children:[r.jsx("div",{className:"h-5 bg-stone-100 rounded w-3/4"}),r.jsx("div",{className:"h-3 bg-stone-100 rounded w-1/2"}),r.jsx("div",{className:"h-3 bg-stone-100 rounded w-full"}),r.jsx("div",{className:"h-3 bg-stone-100 rounded w-5/6"})]})]},b))}):!h||h.items.length===0?r.jsxs("div",{className:"text-center py-20",children:[r.jsx("p",{className:"font-serif text-2xl text-stone-400 mb-3",children:"No obituaries found"}),n&&r.jsxs("p",{className:"font-sans text-stone-500",children:["Try a different name or"," ",r.jsx("button",{onClick:()=>{a(""),o("")},className:"text-amber-700 hover:underline",children:"clear your search"})]})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:h.items.map(v=>r.jsxs(Ae,{href:`/obituaries/${v.slug}`,className:"group bg-white border border-stone-100 hover:border-stone-200 hover:shadow-lg transition-all duration-300",children:[r.jsx("div",{className:"aspect-[3/4] overflow-hidden bg-stone-100",children:v.photoUrl?r.jsx("img",{src:v.photoUrl,alt:`${v.firstName} ${v.lastName}`,className:"w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-500"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-stone-100 to-stone-200",children:r.jsxs("span",{className:"font-serif text-5xl text-stone-300",children:[v.firstName[0],v.lastName[0]]})})}),r.jsxs("div",{className:"p-6",children:[r.jsxs("h3",{className:"font-serif text-stone-800 mb-1 leading-snug",children:[v.firstName,v.middleName?` ${v.middleName}`:""," ",v.lastName]}),(v.birthDate||v.deathDate)&&r.jsxs("p",{className:"font-sans text-xs text-stone-400 mb-3 tracking-wide",children:[v.birthDate&&v.deathDate?`${new Date(v.birthDate+"T12:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})} – ${new Date(v.deathDate+"T12:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}`:v.deathDate?`Passed ${new Date(v.deathDate+"T12:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}`:v.birthDate?new Date(v.birthDate+"T12:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"",v.age?` · Age ${v.age}`:""]}),v.bio&&r.jsxs("p",{className:"font-sans text-sm text-stone-500 line-clamp-3 leading-relaxed mb-4",children:[q3(v.bio.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()).substring(0,150),"..."]}),r.jsxs("div",{className:"pt-4 border-t border-stone-50 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs("span",{className:"font-sans text-xs text-stone-400",children:[v.viewCount.toLocaleStr
347ing()," visits"]}),r.jsxs("span",{className:"flex items-center gap-1 font-sans text-xs text-stone-400",children:[r.jsx(pf,{size:11,className:"text-amber-500"}),v.candleCount]})]}),r.jsxs("span",{className:"font-sans text-xs text-amber-700 flex items-center gap-1 group-hover:gap-2 transition-all",children:["Read More ",r.jsx(ut,{size:11})]})]})]})]},v.id))}),h.totalPages>1&&r.jsxs("div",{className:"flex items-center justify-center gap-1 mt-12 flex-wrap",children:[r.jsx("button",{onClick:()=>f(v=>Math.max(1,v-1)),disabled:c===1,className:"px-4 py-2 border border-stone-200 font-sans text-sm text-stone-600 hover:border-stone-400 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:"← Prev"}),(()=>{const v=h.totalPages,b=2,j=[];j.push(1);const C=Math.max(2,c-b),T=Math.min(v-1,c+b);C>2&&j.push("ellipsis");for(let S=C;S<=T;S++)j.push(S);return T<v-1&&j.push("ellipsis"),v>1&&j.push(v),j.map((S,U)=>S==="ellipsis"?r.jsx("span",{className:"w-10 h-10 flex items-center justify-center font-sans text-sm text-stone-400",children:"…"},`e-${U}`):r.jsx("button",{onClick:()=>f(S),className:`w-10 h-10 font-sans text-sm transition-colors ${c===S?"bg-stone-800 text-white":"border border-stone-200 text-stone-600 hover:border-stone-400"}`,children:S},S))})(),r.jsx("button",{onClick:()=>f(v=>Math.min(h.totalPages,v+1)),disabled:c===h.totalPages,className:"px-4 py-2 border border-stone-200 font-sans text-sm text-stone-600 hover:border-stone-400 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:"Next →"})]})]})})}),r.jsx("section",{className:"py-12 bg-white border-t border-stone-100",children:r.jsxs("div",{className:"container text-center",children:[r.jsx("p",{className:"font-sans text-stone-500 mb-3",children:"To submit an obituary or create an online memorial, please contact our team."}),r.jsxs(Ae,{href:"/contact",className:"inline-flex items-center gap-2 font-sans text-sm text-amber-700 hover:text-amber-600 transition-colors",children:["Contact Us ",r.jsx(ut,{size:14})]})]})})]})}const P3=w.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),_v=()=>w.useContext(P3);function Mo(n){const a=w.useRef(n);a.current=n;const l=w.useRef(null);return l.current||(l.current=function(...o){return a.current.apply(this,o)}),l.current}function Dv(n={}){const{onKeyDown:a,onCompositionStart:l,onCompositionEnd:o}=n,c=w.useRef(!1),f=w.useRef(null),m=w.useRef(null),h=Mo(b=>{f.current&&(clearTimeout(f.current),f.current=null),m.current&&(clearTimeout(m.current),m.current=null),c.current=!0,l?.(b)}),p=Mo(b=>{f.current=setTimeout(()=>{m.current=setTimeout(()=>{c.current=!1})}),o?.(b)}),x=Mo(b=>{if(c.current&&(b.key==="Escape"||b.key==="Enter"&&!b.shiftKey)){b.stopPropagation();return}a?.(b)}),v=Mo(()=>c.current);return{onCompositionStart:h,onCompositionEnd:p,onKeyDown:x,isComposing:v}}function ze({className:n,type:a,onKeyDown:l,onCompositionStart:o,onCompositionEnd:c,...f}){const m=_v(),{onCompositionStart:h,onCompositionEnd:p,onKeyDown:x}=Dv({onKeyDown:v=>{const b=v.nativeEvent.isComposing||m.justEndedComposing();v.key==="Enter"&&b||l?.(v)},onCompositionStart:v=>{m.setComposing(!0),o?.(v)},onCompositionEnd:v=>{m.markCompositionEnd(),setTimeout(()=>{m.setComposing(!1)},100),c?.(v)}});return r.jsx("input",{type:a,"data-slot":"input",className:Dn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n),onCompositionStart:h,onCompositionEnd:p,onKeyDown:x,...f})}var B3="Label",zv=w.forwardRef((n,a)=>r.jsx(Rn.label,{...n,ref:a,onMouseDown:l=>{l.target.closest("button, input, select, textarea")||(n.onMouseDown?.(l),!l.defaultPrevented&&l.detail>1&&l.preventDefault())}}));zv.displayName=B3;var Q3=zv;function Be({className:n,...a}){return r.jsx(Q3,{"data-slot":"label",className:Dn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...a}
347)}var G3="Separator",Xx="horizontal",Y3=["horizontal","vertical"],Rv=w.forwardRef((n,a)=>{const{decorative:l,orientation:o=Xx,...c}=n,f=V3(o)?o:Xx,h=l?{role:"none"}:{"aria-orientation":f==="vertical"?f:void 0,role:"separator"};return r.jsx(Rn.div,{"data-orientation":f,...h,...c,ref:a})});Rv.displayName=G3;function V3(n){return Y3.includes(n)}var F3=Rv;function Lr({className:n,orientation:a="horizontal",decorative:l=!0,...o}){return r.jsx(F3,{"data-slot":"separator",decorative:l,orientation:a,className:Dn("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),...o})}const X3=Jb("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Qi({className:n,variant:a,asChild:l=!1,...o}){const c=l?ab:"span";return r.jsx(c,{"data-slot":"badge",className:Dn(X3({variant:a}),n),...o})}const K3=[{code:"fbs",label:"Best Sellers"},{code:"fs",label:"Sprays"},{code:"fb",label:"Baskets"},{code:"fw",label:"Wreaths"},{code:"fp",label:"Plants"},{code:"fa",label:"Table Arrangements"},{code:"fu",label:"Urn Arrangements"}],Ud=9,Ld={name:"The Family",institution:"Henry W. Anderson Funeral & Cremation Service",address1:"14850 Garrett Avenue",city:"Apple Valley",state:"MN",zipcode:"55124",phone:"9524322331"};async function zr(n,a){const l=await fetch(n,a);if(!l.ok){const o=await l.json().catch(()=>({error:"Request failed"}));throw new Error(o.error??"Request failed")}return l.json()}function qd(n){const[a,l,o]=n.split("-").map(Number);return new Date(a,l-1,o).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}function Kx(n){if(!n)return"";try{return new Date(n).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}catch{return n}}function Z3(n){const a=n.match(/^(.+),\s*(.+),\s*([A-Z]{2})\s*(\d{5})$/);return a?{address1:a[1].trim(),city:a[2].trim(),state:a[3].trim(),zipcode:a[4].trim()}:{address1:n,city:"Apple Valley",state:"MN",zipcode:"55124"}}function $3({product:n,onClick:a}){return r.jsxs("button",{onClick:a,className:"group text-left border border-stone-100 bg-white hover:border-stone-300 hover:shadow-md transition-all duration-200 overflow-hidden",children:[r.jsx("div",{className:"aspect-square overflow-hidden bg-stone-50",children:r.jsx("img",{src:n.LARGE,alt:n.NAME,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-300",loading:"lazy"})}),r.jsxs("div",{className:"p-4",children:[r.jsx("p",{className:"font-serif text-stone-800 text-sm leading-snug mb-1",children:n.NAME}),r.jsxs("p",{className:"font-sans text-emerald-700 font-semibold text-sm",children:["$",n.PRICE.toFixed(2)]}),r.jsx("p",{className:"font-sans text-stone-400 text-xs mt-1",children:n.DIMENSION})]})]})}function bf({deceasedName:n,serviceEvents:a,recipient:l,onClose:o,inline:c=!1}){const f=l?"browse":"destination",[m,h]=w.useState(f),[p,x]=w.useState(l??null),[v,b]=w.useState(null),[j,C]=w.useState({recipientName:"",address1:"",city:"",state:"MN",zipcode:"",phone:""}),[T,S]=w.useState(!1),[U,_]=w.useState("fbs"),[Z,te]=w.useState(1),[oe,X]=w.useState([]),[F,z]=w.useState(0),[q,ne]=w.useState(!1),[se,K]=w.useState(""),[I,ce]=w.useState(null),[ie,de]=w.useState([]),[N,L]=w.useState(""),[O,ae]=w.useState(""),[me,E]=w.useState(!1),[G,k]=w.useState([]),[M,Y]=w.useState(null),[W,le]=w.useState(!1),[ue,ve]=w.useState({name:"",email:"",address1:"",city:"",state:"",zipcode:"",phone:""}),[Ie,lt]=w.useState(!1),[et,zt]=w.useState(""),[B,Re]=w.useState(""),[Sn,Zn]=w.useState(null),$n=w.useCallback(async()=>{ne(!0),K("");
347try{const re=(Z-1)*Ud+1,pe=await zr(`/api/florist/products?category=${U}&count=${Ud}&start=${re}`);X(pe.PRODUCTS??[]),z(pe.TOTAL??0)}catch(re){K(re.message)}finally{ne(!1)}},[U,Z]);w.useEffect(()=>{m==="browse"&&$n()},[$n,m]);const qt=async re=>{ce(re),ae(""),de([]),E(!0),h("detail");const pe=v?Jn(v.serviceDate):null,Ne=pe&&!Cn(v?.serviceDate);L(Ne?pe:"");try{const rt=p?.zipcode??"55124",ft=((await zr(`/api/florist/delivery-dates?zipcode=${rt}`)).DATES??[]).map(en=>{const[Wn,Bt,tn]=en.split("/");return`${tn}-${Wn.padStart(2,"0")}-${Bt.padStart(2,"0")}`}).slice(0,14);de(ft),Ne&&pe&&ft.includes(pe)}catch{}finally{E(!1)}},da=()=>{!I||!N||(k(re=>{const pe=re.findIndex(Ne=>Ne.product.CODE===I.CODE&&Ne.deliveryDate===N);return pe>=0?re.map((Ne,rt)=>rt===pe?{...Ne,quantity:Ne.quantity+1}:Ne):[...re,{product:I,deliveryDate:N,cardMessage:O,quantity:1}]}),h("browse"))},fa=async()=>{h("checkout"),le(!0),zt("");try{const[re,pe]=await Promise.all([zr("/api/florist/total",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({products:G.map(Ne=>({CODE:Ne.product.CODE,PRICE:Ne.product.PRICE,RECIPIENT:{ZIPCODE:p?.zipcode??"55124"}}))})}),zr("/api/florist/authnet-key")]);Y(re),Zx(pe.AUTHORIZENET_URL),Zn(pe)}catch(re){zt(re.message)}finally{le(!1)}},Ot=async re=>{re.preventDefault(),lt(!0),zt("");try{const pe=Sn??await zr("/api/florist/authnet-key");await Zx(pe.AUTHORIZENET_URL);const Ne=document.getElementById("cc-number")?.value??"",rt=document.getElementById("cc-exp-month")?.value??"",Je=document.getElementById("cc-exp-year")?.value??"",Rt=document.getElementById("cc-cvv")?.value??"",ft=await I3(pe.USERNAME,pe.AUTHORIZENET_KEY,Ne,rt,Je,Rt),en=p??Ld,Wn=G.map(tn=>({CODE:tn.product.CODE,PRICE:tn.product.PRICE,DELIVERYDATE:tn.deliveryDate,CARDMESSAGE:tn.cardMessage||"With deepest sympathy.",RECIPIENT:{NAME:en.name,INSTITUTION:en.institution,ADDRESS1:en.address1,CITY:en.city,STATE:en.state,ZIPCODE:en.zipcode,COUNTRY:"US",PHONE:en.phone.replace(/\D/g,"")}})),Bt=await zr("/api/florist/place-order",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({customer:{NAME:ue.name,EMAIL:ue.email,ADDRESS1:ue.address1,CITY:ue.city,STATE:ue.state,ZIPCODE:ue.zipcode,COUNTRY:"US",PHONE:ue.phone.replace(/\D/g,""),IP:"1.1.1.1"},products:Wn,ccinfo:{AUTHORIZENET_TOKEN:ft},ordertotal:M?.ORDERTOTAL??0})});Re(String(Bt.ORDERNO)),k([]),h("confirmation")}catch(pe){zt(pe.message)}finally{lt(!1)}},Wt=Math.ceil(F/Ud),wt=G.reduce((re,pe)=>re+pe.quantity,0),Xr=re=>{const pe=re.locationAddress?Z3(re.locationAddress):null;x({name:n?`${n} Family`:"The Family",institution:re.locationName??"Henry W. Anderson Funeral & Cremation Service",address1:pe?.address1??"14850 Garrett Avenue",city:pe?.city??"Apple Valley",state:pe?.state??"MN",zipcode:pe?.zipcode??"55124",phone:"9524322331"}),b(re),h("browse")},In=()=>{x({...Ld,name:n?`${n} Family`:"The Family"}),b(null),h("browse")},Ya=re=>{re.preventDefault(),x({name:j.recipientName||(n?`${n} Family`:"The Family"),institution:"",address1:j.address1,city:j.city,state:j.state,zipcode:j.zipcode,phone:j.phone}),b(null),h("browse")},Jn=re=>{if(!re)return null;try{const pe=new Date(re);return isNaN(pe.getTime())?null:pe.toISOString().split("T")[0]}catch{return null}},Cn=re=>{if(!re)return!1;try{const pe=new Date(re),Ne=new Date;return Ne.setHours(0,0,0,0),pe<Ne}catch{return!1}};return r.jsxs("div",{className:`bg-white ${c?"":"min-h-screen"}`,children:[r.jsxs("div",{className:"sticky top-0 z-10 bg-white border-b border-stone-100 px-6 py-4 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[(m==="detail"||m==="cart"||m==="checkout")&&r.jsx("button",{onClick:()=>{m==="detail"||m==="cart"?h("browse"):m==="checkout"&&h("cart")},className:"text-stone-400 hover:text-stone-700 transition-colors",children:r.jsx(Ur,{size:20})}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx(js,{size:18,className:"text-emerald-700"}),r.jsxs("span",{className:"font-serif text-stone-800 text-lg",children:[m==="destination"&&"Send Flowers",m==="browse"&&(n?`Flowers for ${n}`:"Sympathy Flowers"),m==="detail"&&(I?.NAME??"Product"),m==="cart"&&"Your Cart",m==="checkout"&&"Checkout",m==="confirmation"&&"Order Confirmed"]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[m!=="cart"&&m!=="checkout"&&m!=="confirmation"&&m!=="destination"&&r.jsxs("button",{onClick:()=>h("cart"),className:"relative text-stone-600 hover:text-stone-900 transition-colors",children:[r.jsx(zd,{size:20}),wt>0&&r.jsx("span",{className:"absolute -top-2 -right-2 bg-emerald-700 text-white text-[10px] font-bold rounded-full w-4 h-4 flex items-center justify-center",children:wt})]}),o&&r.jsx("button",{onClick:o,className:"text-stone-400 hover:text-stone-700 transition-colors",children:r.jsx(aa,{size:20})})]})]}),n&&m!=="destination"&&m!=="confirmation"&&r.jsxs("div",{className:"bg-stone-800 px-6 py-4 text-center",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-0.5",children:"A gift in remembrance of"}),r.jsx("p",{className:"font-serif text-white text-lg",children:n})]}),m==="destination"&&r.jsxs("div",{className:"p-6 max-w-lg mx-auto",children:[n&&r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-1",children:"In remembrance of"}),r.jsx("p",{className:"font-serif text-2xl text-stone-800",children:n})]}),r.jsx("h2",{className:"font-serif text-xl text-stone-800 mb-6 text-center",children:"Where would you like to send the flowers?"}),T?r.jsxs("form",{onSubmit:Ya,className:"space-y-4",children:[r.jsxs("button",{type:"button",onClick:()=>S(!1),className:"flex items-center gap-1 text-stone-400 hover:text-stone-700 font-sans text-sm transition-colors mb-2",children:[r.jsx(Ur,{size:14})," Back"]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Recipient Name *"}),r.jsx(ze,{required:!0,value:j.recipientName,onChange:re=>C(pe=>({...pe,recipientName:re.target.value})),placeholder:"The Smith Family",className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Street Address *"}),r.jsx(ze,{required:!0,value:j.address1,onChange:re=>C(pe=>({...pe,address1:re.target.value})),placeholder:"123 Main St",className:"font-sans text-sm"})]}),r.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[r.jsxs("div",{className:"col-span-1",children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"City *"}),r.jsx(ze,{required:!0,value:j.city,onChange:re=>C(pe=>({...pe,city:re.target.value})),placeholder:"Apple Valley",className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"State *"}),r.jsx(ze,{required:!0,maxLength:2,value:j.state,onChange:re=>C(pe=>({...pe,state:re.target.value.toUpperCase()})),placeholder:"MN",className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"ZIP *"}),r.jsx(ze,{required:!0,value:j.zipcode,onChange:re=>C(pe=>({...pe,zipcode:re.target.value})),placeholder:"55124",className:"font-sans text-sm"})]})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Phone *"}),r.jsx(ze,{required:!0,type:"tel",value:j.phone,onChange:re=>C(pe=>({...pe,phone:re.target.value})),placeholder:"(952) 555-0100",className:"font-sans text-sm"})]}),r.jsxs(He,{type:"submit",className:"w-full bg-emerald-700 hover:bg-emerald-600 text-white font-sans tracking-wide",children:["Continue to Browse Flowers",r.jsx(ut,{size:15,className:"ml-2"})]})]}):r.jsxs("div",{className:"space-y-3",children:[a&&a.length>0&&(()=>{const re=a.every(Ne=>Cn(Ne.serviceDate)),pe=a.filter(Ne=>!Cn(Ne.serviceDate));return r.jsxs(r.Fragment,{children:[re&&r.jsx("div",{className:"border border-amber-100 bg-amber-50 px-4 py-3 mb-1",children:r.jsxs("p",{className:"font-sans text-xs text-amber-800 leading-relaxed",children:[r.jsx("strong",{children:"Services have already taken place."})," You can still send flowers — we’ll coordinate delivery to the family on your behalf."]})}),a.map((Ne,rt)=>{const Je=Cn(Ne.serviceDate),Rt=!Je&&pe[0]?.id===Ne.id;return Je?r.jsx("div",{className:"w-full text-left border border-stone-100 bg-stone-50 p-4 opacity-60 cursor-not-allowed",children:r.jsx("div",{className:"flex items-center justify-between",children:r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-[10px] tracking-[0.15em] uppercase text-stone-300 mb-1",children:"Service already held"}),r.jsx("p",{className:"font-serif text-stone-500 text-base",children:Ne.serviceType}),Ne.serviceDate&&r.jsxs("p",{className:"font-sans text-sm text-stone-400 mt-0.5 line-through",children:[Kx(Ne.serviceDate),Ne.serviceTime?` · ${Ne.serviceTime}`:""]})]})})},Ne.id):r.jsx("button",{onClick:()=>Xr(Ne),className:"w-full text-left border border-stone-200 hover:border-emerald-400 hover:bg-emerald-50 p-4 transition-all duration-150 group",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsxs("p",{className:"font-sans text-[10px] tracking-[0.15em] uppercase text-stone-400 mb-1",children:["Deliver to ",Rt?r.jsx("span",{className:"text-emerald-600 font-semibold",children:"· Recommended"}):null]}),r.jsx("p",{className:"font-serif text-stone-800 text-base",children:Ne.serviceType}),Ne.serviceDate&&r.jsxs("p",{className:"font-sans text-sm text-stone-500 mt-0.5",children:[Kx(Ne.serviceDate),Ne.serviceTime?` · ${Ne.serviceTime}`:""]}),Ne.locationName&&r.jsxs("p",{className:"font-sans text-xs text-stone-400 mt-0.5 flex items-center gap-1",children:[r.jsx(ws,{size:11}),Ne.locationName]})]}),r.jsx(ut,{size:16,className:"text-stone-300 group-hover:text-emerald-600 transition-colors shrink-0 ml-4"})]})},Ne.id)}),r.jsxs("div",{className:"relative flex items-center gap-3 py-2",children:[r.jsx("div",{className:"flex-1 h-px bg-stone-100"}),r.jsx("span",{className:"font-sans text-xs text-stone-300 tracking-wide",children:"or"}),r.jsx("div",{className:"flex-1 h-px bg-stone-100"})]})]})})(),r.jsx("button",{onClick:In,className:"w-full text-left border border-stone-200 hover:border-emerald-400 hover:bg-emerald-50 p-4 transition-all duration-150 group",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-[10px] tracking-[0.15em] uppercase text-stone-400 mb-1",children:"Deliver to"}),r.jsx("p",{className:"font-serif text-stone-800 text-base",children:"The Family"}),r.jsxs("p",{className:"font-sans text-xs text-stone-400 mt-0.5 flex items-center gap-1",children:[r.jsx(nv,{size:11}),"Henry W. Anderson Funeral & Cremation Service"]}),r.jsxs("p",{className:"font-sans text-xs text-stone-400 mt-0.5 flex items-center gap-1",children:[r.jsx(ws,{size:11}),"14850 Garrett Avenue, Apple Valley, MN 55124"]})]}),r.jsx(ut,{size:16,className:"text-stone-300 group-hover:text-emerald-600 transition-colors shrink-0 ml-4"})]})}),r.jsx("button",{onClick:()=>S(!0),className:"w-full text-left border border-stone-200 hover:border-emerald-400 hover:bg-emerald-50 p-4 transition-all duration-150 group",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-[10px] tracking-[0.15em] uppercase text-stone-400 mb-1",children:"Deliver to"}),r.jsx("p",{className:"font-serif text-stone-800 text-base",children:"A Different Address"}),r.jsxs("p",{className:"font-sans text-xs text-stone-400 mt-0.5 flex items-center gap-1",children:[r.jsx(z4,{size:11}),"Enter a custom delivery address"]})]}),r.jsx(ut,{size:16,className:"text-stone-300 group-hover:text-emerald-600 transition-colors shrink-0 ml-4"})]})}),r.jsx("button",{onClick:()=>{x(Ld),h("browse")},className:"w-full text-center font-sans text-sm text-stone-400 hover:text-stone-600 transition-colors py-3",children:"Skip for now"})]})]}),m==="browse"&&r.jsxs("div",{className:"p-6",children:[p&&r.jsxs("div",{className:"flex items-center justify-between bg-emerald-50 border border-emerald-100 px-4 py-2.5 mb-5 text-sm font-sans",children:[r.jsxs("span",{className:"text-stone-600 flex items-center gap-1.5",children:[r.jsx(ws,{size:13,className:"text-emerald-700"}),"Delivering to: ",r.jsx("strong",{className:"text-stone-800 ml-1",children:p.institution||p.name}),p.city?`, ${p.city}, ${p.state}`:""]}),!l&&r.jsx("button",{onClick:()=>h("destination"),className:"text-emerald-700 hover:text-emerald-600 text-xs underline ml-4 shrink-0",children:"Change"})]}),r.jsx("div",{className:"flex gap-2 flex-wrap mb-6",children:K3.map(re=>r.jsx("button",{onClick:()=>{_(re.code),te(1)},className:`px-3 py-1.5 font-sans text-xs tracking-wide transition-all duration-150 border ${U===re.code?"bg-emerald-700 text-white border-emerald-700":"bg-white text-stone-600 border-stone-200 hover:border-stone-400"}`,children:re.label},re.code))}),q?r.jsx("div",{className:"flex justify-center items-center py-20",children:r.jsx(Bi,{size:28,className:"animate-spin text-stone-300"})}):se?r.jsxs("div",{className:"text-center py-20",children:[r.jsx(mf,{size:28,className:"mx-auto text-red-400 mb-3"}),r.jsx("p",{className:"font-sans text-stone-500 text-sm",children:se}),r.jsx("button",{onClick:$n,className:"mt-4 text-emerald-700 text-sm underline",children:"Try again"})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:oe.map(re=>r.jsx($3,{product:re,onClick:()=>qt(re)},re.CODE))}),Wt>1&&r.jsxs("div",{className:"flex items-center justify-center gap-4 mt-8",children:[r.jsx("button",{onClick:()=>te(re=>Math.max(1,re-1)),disabled:Z===1,className:"p-2 border border-stone-200 hover:border-stone-400 disabled:opacity-30 transition-colors",children:r.jsx(Ur,{size:16})}),r.jsxs("span",{className:"font-sans text-sm text-stone-500",children:["Page ",Z," of ",Wt]}),r.jsx("button",{onClick:()=>te(re=>Math.min(Wt,re+1)),disabled:Z===Wt,className:"p-2 border border-stone-200 hover:border-stone-400 disabled:opacity-30 transition-colors",children:r.jsx(C4,{size:16})})]})]}),r.jsx("p",{className:"text-center font-sans text-[11px] text-stone-300 mt-8",children:"Flowers fulfilled by Florist One · Hand-delivered by a local florist"})]}),m==="detail"&&I&&r.jsx("div",{className:"p-6",children:r.jsxs("div",{className:"md:flex gap-8",children:[r.jsx("div",{className:"md:w-1/2 mb-6 md:mb-0",children:r.jsx("img",{src:I.LARGE,alt:I.NAME,className:"w-full object-cover"})}),r.jsxs("div",{className:"md:w-1/2",children:[r.jsx("h2",{className:"font-serif text-xl text-stone-800 mb-1",children:I.NAME}),r.jsxs("p",{className:"font-sans text-emerald-700 text-xl font-semibold mb-2",children:["$",I.PRICE.toFixed(2)]}),r.jsx("p",{className:"font-sans text-stone-400 text-xs mb-4",children:I.DIMENSION}),r.jsx("p",{className:"font-sans text-stone-600 text-sm leading-relaxed mb-6",children:I.DESCRIPTION}),r.jsx(Lr,{className:"mb-6"}),r.jsxs("div",{className:"mb-5",children:[r.jsxs(Be,{className:"font-sans text-xs tracking-widest uppercase text-stone-500 mb-2 block",children:[r.jsx(ev,{size:12,className:"inline mr-1"}),"Delivery Date"]}),me?r.jsxs("div",{className:"flex items-center gap-2 text-stone-400 text-sm",children:[r.jsx(Bi,{size:14,className:"animate-spin"}),"Loading available dates…"]}):v&&N&&!Cn(v.serviceDate)?r.jsxs("div",{className:"border border-emerald-200 bg-emerald-50 px-4 py-3 flex items-start gap-3",children:[r.jsx(Dx,{size:16,className:"text-emerald-600 mt-0.5 shrink-0"}),r.jsxs("div",{className:"flex-1",children:[r.jsx("p",{className:"font-sans text-sm text-emerald-800 font-medium",children:qd(N)}),r.jsxs("p",{className:"font-sans text-xs text-emerald-600 mt-0.5",children:["Delivery timed for the ",v.serviceType,v.serviceTime?` · ${v.serviceTime}`:""]})]}),r.jsx("button",{onClick:()=>L(""),className:"font-sans text-[11px] text-stone-400 hover:text-stone-600 underline shrink-0",children:"Change"})]}):ie.length>0?r.jsxs("select",{value:N,onChange:re=>L(re.target.value),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm text-stone-700 focus:outline-none focus:border-emerald-500",children:[r.jsx("
347option",{value:"",children:"Select a delivery date"}),ie.map(re=>r.jsx("option",{value:re,children:qd(re)},re))]}):r.jsx(ze,{type:"date",value:N,min:new Date().toISOString().split("T")[0],onChange:re=>L(re.target.value),className:"font-sans text-sm"})]}),r.jsxs("div",{className:"mb-6",children:[r.jsx(Be,{className:"font-sans text-xs tracking-widest uppercase text-stone-500 mb-2 block",children:"Card Message"}),r.jsx("textarea",{value:O,onChange:re=>ae(re.target.value.slice(0,200)),placeholder:"With deepest sympathy…",rows:3,className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm text-stone-700 focus:outline-none focus:border-emerald-500 resize-none"}),r.jsxs("p",{className:"text-right font-sans text-[11px] text-stone-300 mt-1",children:[O.length,"/200"]})]}),r.jsxs(He,{onClick:da,disabled:!N,className:"w-full bg-emerald-700 hover:bg-emerald-600 text-white font-sans tracking-wide",children:[r.jsx(zd,{size:15,className:"mr-2"}),"Add to Cart"]}),p&&r.jsxs("p",{className:"mt-3 font-sans text-[11px] text-stone-400 text-center",children:["Delivering to: ",p.institution||p.name,", ",p.city,", ",p.state]})]})]})}),m==="cart"&&r.jsx("div",{className:"p-6",children:G.length===0?r.jsxs("div",{className:"text-center py-20",children:[r.jsx(zd,{size:32,className:"mx-auto text-stone-200 mb-4"}),r.jsx("p",{className:"font-sans text-stone-400 text-sm",children:"Your cart is empty."}),r.jsx("button",{onClick:()=>h("browse"),className:"mt-4 text-emerald-700 text-sm underline",children:"Browse flowers"})]}):r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"space-y-4 mb-8",children:G.map((re,pe)=>r.jsxs("div",{className:"flex gap-4 border border-stone-100 p-4",children:[r.jsx("img",{src:re.product.SMALL,alt:re.product.NAME,className:"w-20 h-20 object-cover flex-shrink-0"}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"font-serif text-stone-800 text-sm",children:re.product.NAME}),r.jsxs("p",{className:"font-sans text-emerald-700 text-sm font-semibold",children:["$",re.product.PRICE.toFixed(2)]}),r.jsxs("p",{className:"font-sans text-stone-400 text-xs mt-1",children:["Deliver: ",qd(re.deliveryDate)]}),re.cardMessage&&r.jsxs("p",{className:"font-sans text-stone-400 text-xs italic mt-1 truncate",children:['"',re.cardMessage,'"']})]}),r.jsxs("div",{className:"flex flex-col items-end gap-2",children:[r.jsx("button",{onClick:()=>k(Ne=>Ne.filter((rt,Je)=>Je!==pe)),className:"text-stone-300 hover:text-red-400 transition-colors",children:r.jsx(ea,{size:14})}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("button",{onClick:()=>k(Ne=>Ne.map((rt,Je)=>Je===pe?{...rt,quantity:Math.max(1,rt.quantity-1)}:rt)),className:"w-6 h-6 border border-stone-200 flex items-center justify-center text-stone-500 hover:border-stone-400",children:r.jsx(D4,{size:10})}),r.jsx("span",{className:"font-sans text-sm w-4 text-center",children:re.quantity}),r.jsx("button",{onClick:()=>k(Ne=>Ne.map((rt,Je)=>Je===pe?{...rt,quantity:rt.quantity+1}:rt)),className:"w-6 h-6 border border-stone-200 flex items-center justify-center text-stone-500 hover:border-stone-400",children:r.jsx(Qo,{size:10})})]})]})]},`${re.product.CODE}-${re.deliveryDate}`))}),r.jsx(He,{onClick:fa,className:"w-full bg-emerald-700 hover:bg-emerald-600 text-white font-sans tracking-wide",children:"Proceed to Checkout"}),r.jsx("button",{onClick:()=>h("browse"),className:"w-full mt-3 font-sans text-sm text-stone-400 hover:text-stone-600 transition-colors",children:"Continue Shopping"})]})}),m==="checkout"&&r.jsxs("div",{className:"p-6 max-w-lg mx-auto",children:[p&&r.jsxs("div",{className:"bg-emerald-50 border border-emerald-100 p-4 mb-6",children:[r.jsx("p",{className:"font-sans text-xs tracking-widest uppercase text-stone-400 mb-2",children:"Delivering To"}),r.jsx("p",{className:"font-serif text-stone-800 text-sm",children:p.institution||p.name}),r.jsxs("p",{className:"font-sans text-stone-500 text-xs mt-0.5",children:[p.address1,", ",p.city,", ",p.state," ",p.zipcode]})]}),r.jsxs("div",{className:"bg-stone-50 border border-stone-100 p-4 mb-6",children:[r.jsx("p",{className:"font-sans text-xs tracking-widest uppercase text-stone-400 mb-3",children:"Order Summary"}),W?r.jsxs("div",{className:"flex items-center gap-2 text-stone-400 text-sm",children:[r.jsx(Bi,{size:14,className:"animate-spin"}),"Calculating total…"]}):M?r.jsxs("div",{className:"space-y-1 font-sans text-sm",children:[r.jsxs("div",{className:"flex justify-between text-stone-600",children:[r.jsx("span",{children:"Subtotal"}),r.jsxs("span",{children:["$",M.SUBTOTAL.toFixed(2)]})]}),r.jsxs("div",{className:"flex justify-between text-stone-600",children:[r.jsx("span",{children:"Delivery"}),r.jsxs("span",{children:["$",M.FLORISTONEDELIVERYCHARGE.toFixed(2)]})]}),r.jsxs("div",{className:"flex justify-between text-stone-600",children:[r.jsx("span",{children:"Tax"}),r.jsxs("span",{children:["$",M.TAXTOTAL.toFixed(2)]})]}),r.jsx(Lr,{className:"my-2"}),r.jsxs("div",{className:"flex justify-between text-stone-800 font-semibold",children:[r.jsx("span",{children:"Total"}),r.jsxs("span",{children:["$",M.ORDERTOTAL.toFixed(2)]})]})]}):null]}),r.jsxs("form",{onSubmit:Ot,className:"space-y-4",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-widest uppercase text-stone-400 mb-3",children:"Your Information"}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{className:"col-span-2",children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Full Name *"}),r.jsx(ze,{required:!0,value:ue.name,onChange:re=>ve(pe=>({...pe,name:re.target.value})),placeholder:"Jane Smith",className:"font-sans text-sm"})]}),r.jsxs("div",{className:"col-span-2",children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Email *"}),r.jsx(ze,{required:!0,type:"email",value:ue.email,onChange:re=>ve(pe=>({...pe,email:re.target.value})),placeholder:"[email protected]",className:"font-sans text-sm"})]}),r.jsxs("div",{className:"col-span-2",children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Street Address *"}),r.jsx(ze,{required:!0,value:ue.address1,onChange:re=>ve(pe=>({...pe,address1:re.target.value})),placeholder:"123 Main St",className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"City *"}),r.jsx(ze,{required:!0,value:ue.city,onChange:re=>ve(pe=>({...pe,city:re.target.value})),placeholder:"Apple Valley",className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"State *"}),r.jsx(ze,{required:!0,maxLength:2,value:ue.state,onChange:re=>ve(pe=>({...pe,state:re.target.value.toUpperCase()})),placeholder:"MN",className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"ZIP *"}),r.jsx(ze,{required:!0,value:ue.zipcode,onChange:re=>ve(pe=>({...pe,zipcode:re.target.value})),placeholder:"55124",className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Phone *"}),r.jsx(ze,{required:!0,type:"tel",value:ue.phone,onChange:re=>ve(pe=>({...pe,phone:re.target.value})),placeholder:"(952) 555-0100",className:"font-sans text-sm"})]})]})]}),r.jsx(Lr,{}),r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-widest uppercase text-stone-400 mb-3",children:"Payment"}),r.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[r.jsxs("div",{className:"col-span-2",children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Card Number *"}),r.jsx(ze,{id:"cc-number",required:!0,placeholder:"4111 1111 1111 1111",maxLength:19,className:"font-sans text-sm font-mono"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Exp Month *"}),r.jsx(ze,{id:"cc-exp-month",required:!0,placeholder:"MM",maxLength:2,className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Exp Year *"}),r.jsx(ze,{id:"cc-exp-year",required:!0,placeholder:"YYYY",maxLength:4,className:"font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 mb-1 block",children:"CVV *"}),r.jsx(ze,{id:"cc-cvv",required:!0,placeholder:"123",maxLength:4,className:"font-sans text-sm"})]})]}),r.jsx("p",{className:"mt-2 font-sans text-[11px] text-stone-400",children:"Payments processed securely by Authorize.net. Card details are never stored on our servers."})]}),et&&r.jsxs("div",{className:"flex items-start gap-2 bg-red-50 border border-red-200 p-3 text-red-700 text-sm font-sans",children:[r.jsx(mf,{size:16,className:"flex-shrink-0 mt-0.5"}),et]}),r.jsx(He,{type:"submit",disabled:Ie||!M,className:"w-full bg-emerald-700 hover:bg-emerald-600 text-white font-sans tracking-wide",children:Ie?r.jsxs(r.Fragment,{children:[r.jsx(Bi,{size:15,className:"mr-2 animate-spin"}),"Placing Order…"]}):r.jsxs(r.Fragment,{children:["Place Order — $",M?.ORDERTOTAL.toFixed(2)??"…"]})}),r.jsx("p",{className:"text-center font-sans text-[11px] text-stone-300",children:"Test mode: use card 4111 1111 1111 1111, any future date, any CVV"})]})]}),m==="confirmation"&&r.jsxs("div",{className:"p-6 text-center py-20",children:[r.jsx(Dx,{size:48,className:"mx-auto text-emerald-600 mb-4"}),r.jsx("h2",{className:"font-serif text-2xl text-stone-800 mb-2",children:"Order Confirmed"}),r.jsx("p",{className:"font-sans text-stone-500 text-sm mb-4",children:"Your flowers are on their way. A confirmation email will be sent to you shortly."}),r.jsxs(Qi,{className:"bg-stone-100 text-stone-700 font-mono text-sm px-4 py-2",children:["Order #",B]}),r.jsxs("p",{className:"mt-6 font-sans text-stone-400 text-xs",children:["Questions? Contact Florist One at"," ",r.jsx("a",{href:"https://www.floristone.com",target:"_blank",rel:"noopener noreferrer",className:"underline",children:"floristone.com"})]}),o&&r.jsx(He,{onClick:o,variant:"outline",className:"mt-6 font-sans",children:"Close"})]})]})}function Zx(n){return new Promise((a,l)=>{const o="authnet-accept-js",c=window;if(c.Accept){a();return}const f=h=>{let p=0;const x=setInterval(()=>{c.Accept?(clearInterval(x),a()):++p>60&&(clearInterval(x),h())},100)};if(document.getElementById(o)){f(()=>l(new Error("Accept.js is not loaded correctly")));return}
347const m=document.createElement("script");m.id=o,m.src=n,m.onload=()=>f(()=>l(new Error("Accept.js is not loaded correctly"))),m.onerror=()=>l(new Error("Failed to load Accept.js")),document.head.appendChild(m)})}function I3(n,a,l,o,c,f){return new Promise((m,h)=>{const p=window;if(!p.Accept){h(new Error("Accept.js is not loaded correctly"));return}p.Accept.dispatchData({authData:{clientKey:a,apiLoginID:n},cardData:{cardNumber:l.replace(/\s/g,""),month:o.padStart(2,"0"),year:c.slice(-2),cardCode:f}},x=>{x.messages.resultCode==="Error"?h(new Error(x.messages.message[0]?.text??"Card tokenization failed")):x.opaqueData?.dataValue?m(x.opaqueData.dataValue):h(new Error("No token returned from Accept.js"))})})}function tl({className:n,onKeyDown:a,onCompositionStart:l,onCompositionEnd:o,...c}){const f=_v(),{onCompositionStart:m,onCompositionEnd:h,onKeyDown:p}=Dv({onKeyDown:x=>{const v=x.nativeEvent.isComposing||f.justEndedComposing();x.key==="Enter"&&!x.shiftKey&&v||a?.(x)},onCompositionStart:x=>{f.setComposing(!0),l?.(x)},onCompositionEnd:x=>{f.markCompositionEnd(),setTimeout(()=>{f.setComposing(!1)},100),o?.(x)}});return r.jsx("textarea",{"data-slot":"textarea",className:Dn("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),onCompositionStart:m,onCompositionEnd:h,onKeyDown:p,...c})}const J3="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400&h=400&fit=crop&crop=center";function $x(n){if(!n)return null;try{const a=n.length===10?n+"T12:00:00":n;return new Date(a).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return n}}function W3(n){if(!n)return null;try{const a=n.length===10?n+"T12:00:00":n;return new Date(a).toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}catch{return n}}function eC({slug:n}){const{data:a,isLoading:l,error:o}=je.obituaries.bySlug.useQuery({slug:n}),{data:c}=je.obituaries.serviceDetails.useQuery({obituaryId:a?.id??0},{enabled:!!a?.id}),{data:f,refetch:m}=je.obituaries.condolences.useQuery({obituaryId:a?.id??0},{enabled:!!a?.id}),{data:h}=je.lifeEvents.list.useQuery({obituaryId:a?.id??0},{enabled:!!a?.id}),{data:p}=je.memorialPhotos.list.useQuery({obituaryId:a?.id??0},{enabled:!!a?.id}),x=je.obituaries.incrementView.useMutation(),v=je.obituaries.lightCandle.useMutation(),b=je.obituaries.submitCondolence.useMutation(),[j,C]=w.useState(null),[T,S]=w.useState(!1),[U,_]=w.useState({name:"",email:"",message:""}),[Z,te]=w.useState(!1),[oe,X]=w.useState(!1),[F,z]=w.useState(null),[q,ne]=w.useState(!1);w.useEffect(()=>{a?.id&&(x.mutate({id:a.id}),C(a.candleCount??0))},[a?.id]);const se=async()=>{if(!a?.id||T)return;S(!0);const O=await v.mutateAsync({id:a.id});C(O.candleCount),Ee.success("Your candle has been lit in their memory.")},K=async O=>{if(O.preventDefault(),!(!a?.id||!U.name||!U.message)){te(!0);try{await b.mutateAsync({obituaryId:a.id,authorName:U.name,authorEmail:U.email,message:U.message}),_({name:"",email:"",message:""}),m(),Ee.success("Your condolence has been shared. Thank you.")}catch{Ee.error("Unable to submit. Please try again.")}finally{te(!1)}}},I=O=>{const ae=window.location.href,me=a?`${a.firstName} ${a.lastName}`:"In Memoriam";O==="facebook"?window.open(`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(ae)}`,"_blank"):O==="email"?window.location.href=`mailto:?subject=In Memory of ${me}&body=I wanted to share this memorial with you: ${ae}`:O==="copy"&&navigator.clipboard.writeText(ae).then(()=>Ee.success("Link copied to clipboard.")),X(!1)};if(l)return r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"w-10 h-10 border-2 border-amber-600 border-t-transparent roun
347ded-full animate-spin mx-auto mb-4"}),r.jsx("p",{className:"font-sans text-sm text-stone-500",children:"Loading memorial…"})]})});if(o||!a)return r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center max-w-md px-6",children:[r.jsx("h2",{className:"font-serif text-2xl text-stone-800 mb-3",children:"Memorial Not Found"}),r.jsx("p",{className:"font-sans text-stone-500 mb-6",children:"This memorial may have been removed or the link may be incorrect."}),r.jsx(Ae,{href:"/obituaries",className:"font-sans text-sm text-amber-700 underline underline-offset-4",children:"Return to Obituaries"})]})});const ce=[a.firstName,a.middleName,a.lastName].filter(Boolean).join(" "),ie=$x(a.birthDate),de=$x(a.deathDate),N=ie&&de?`${ie} – ${de}`:de?`Passed ${de}`:null,L=h?[...h].sort((O,ae)=>O.year.localeCompare(ae.year)):[];return r.jsxs("div",{className:"bg-stone-50 min-h-screen",children:[r.jsx("div",{className:"bg-stone-800 pt-28 pb-12",children:r.jsxs("div",{className:"container",children:[r.jsxs(Ae,{href:"/obituaries",className:"inline-flex items-center gap-2 font-sans text-xs tracking-wide text-stone-400 hover:text-white transition-colors mb-4",children:[r.jsx(Ur,{size:14})," All Obituaries"]}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-400 mb-2",children:"In Loving Memory"}),r.jsx("h1",{className:"font-serif text-3xl md:text-4xl text-white",children:ce}),N&&r.jsx("p",{className:"font-sans text-stone-400 mt-2 text-sm",children:N})]})}),r.jsx("div",{className:"container py-14",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-12",children:[r.jsxs("div",{className:"lg:col-span-1",children:[r.jsx("div",{className:"bg-white border border-stone-100 p-4 mb-6",children:r.jsx("img",{src:a.photoUrl||J3,alt:ce,className:"w-full aspect-[3/4] object-cover object-top"})}),r.jsxs("div",{className:"bg-white border border-stone-100 p-5 mb-5",children:[r.jsxs("div",{className:"flex items-center justify-between text-sm font-sans text-stone-500 mb-3",children:[r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(Wi,{size:14,className:"text-stone-400"}),(a.viewCount??0).toLocaleString()," visits"]}),r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(pf,{size:14,className:"text-amber-500"}),(j??a.candleCount??0).toLocaleString()," candles"]})]}),r.jsx(Lr,{className:"mb-4"}),r.jsxs("button",{onClick:se,disabled:T,className:`w-full flex items-center justify-center gap-2 py-3 font-sans text-sm tracking-wide transition-all duration-200 ${T?"bg-amber-50 text-amber-600 border border-amber-200 cursor-default":"bg-amber-700 text-white hover:bg-amber-600 active:scale-[0.98]"}`,children:[r.jsx(pf,{size:16}),T?"Candle Lit":"Light a Candle"]})]}),r.jsxs("div",{className:"bg-white border border-stone-100 p-5 mb-5",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-3",children:"Send Flowers"}),r.jsxs("button",{onClick:()=>ne(!0),className:"w-full flex items-center justify-center gap-2 py-3 bg-emerald-700 hover:bg-emerald-600 text-white font-sans text-sm tracking-wide transition-all duration-200 active:scale-[0.98]",children:[r.jsx(js,{size:15}),"Send Flowers"]}),r.jsx("p",{className:"mt-2 font-sans text-[11px] text-stone-400 text-center",children:"Hand-delivered by a local florist"})]}),q&&r.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 flex items-start justify-center overflow-y-auto py-8 px-4",children:r.jsx("div",{className:"bg-white w-full max-w-2xl shadow-2xl",children:r.jsx(bf,{onClose:()=>ne(!1),deceasedName:ce,serviceEvents:(c??[]).map(O=>({id:O.id,serviceType:O.serviceType,serviceDate:O.serviceDate,serviceTime:O.serviceTime,locationName:O.locationName,locationAddress:O.locationAddress}))})})}),r.jsxs("div",{className:"bg-white border border-stone-100 p-5 mb-5",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-4",children:"Share This Memorial"}),r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsxs("button",{onClick:()=>I("facebook"),className:"flex items-center gap-3 px-4 py-2.5 border border-stone-200 hover:border-stone-300 hover:bg-stone-50 transition-colors font-sans text-sm text-stone-700",children:[r.jsx(T4,{size:15,className:"text-blue-600"}),"Share on Facebook"]}),r.jsxs("button",{onClick:()=>I("email"),className:"flex items-center gap-3 px-4 py-2.5 border border-stone-200 hover:border-stone-300 hover:bg-stone-50 transition-colors font-sans text-sm text-stone-700",children:[r.jsx(el,{size:15,className:"text-stone-500"}
347),"Share via Email"]}),r.jsxs("button",{onClick:()=>I("copy"),className:"flex items-center gap-3 px-4 py-2.5 border border-stone-200 hover:border-stone-300 hover:bg-stone-50 transition-colors font-sans text-sm text-stone-700",children:[r.jsx(H4,{size:15,className:"text-stone-500"}),"Copy Link"]}),r.jsxs("button",{onClick:()=>window.print(),className:"flex items-center gap-3 px-4 py-2.5 border border-stone-200 hover:border-stone-300 hover:bg-stone-50 transition-colors font-sans text-sm text-stone-700",children:[r.jsx(rv,{size:15,className:"text-stone-500"}),"Print"]})]})]}),c&&c.length>0&&r.jsxs("div",{className:"bg-white border border-stone-100 p-5 mb-5",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-4",children:"Service Information"}),r.jsx("div",{className:"space-y-5",children:c.map(O=>r.jsxs("div",{children:[r.jsx("p",{className:"font-serif text-stone-800 text-base mb-2",children:O.serviceType}),O.serviceDate&&r.jsxs("div",{className:"flex items-start gap-2 font-sans text-sm text-stone-500 mb-1",children:[r.jsx(ev,{size:13,className:"mt-0.5 shrink-0 text-amber-600"}),W3(O.serviceDate)]}),O.serviceTime&&r.jsxs("div",{className:"flex items-start gap-2 font-sans text-sm text-stone-500 mb-1",children:[r.jsx(La,{size:13,className:"mt-0.5 shrink-0 text-amber-600"}),O.serviceTime]}),O.locationName&&r.jsxs("div",{className:"flex items-start gap-2 font-sans text-sm text-stone-500 mb-1",children:[r.jsx(ws,{size:13,className:"mt-0.5 shrink-0 text-amber-600"}),r.jsxs("span",{children:[O.locationName,O.locationAddress&&r.jsxs(r.Fragment,{children:[r.jsx("br",{}),r.jsx("a",{href:`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(O.locationAddress)}`,target:"_blank",rel:"noopener noreferrer",className:"text-amber-700 hover:text-amber-600 underline underline-offset-2 transition-colors",children:O.locationAddress})]})]})]}),O.notes&&r.jsx("p",{className:"font-sans text-xs text-stone-400 mt-1 italic",children:O.notes})]},O.id))})]}),r.jsx("div",{className:"bg-white border border-stone-100 p-5",children:r.jsxs(Ae,{href:"/family-login",className:"flex items-center justify-center gap-2 px-4 py-2.5 border border-amber-200 bg-amber-50 hover:bg-amber-100 transition-colors font-sans text-sm text-amber-800",children:[r.jsx(na,{size:14}),"Family Portal"]})})]}),r.jsxs("div",{className:"lg:col-span-2",children:[r.jsxs("div",{className:"bg-white border border-stone-100 p-8 md:p-10 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600"}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700",children:"Obituary"})]}),a.bio?/<\/(p|div|ul|ol|li)>|<br\b/i.test(a.bio)?r.jsx("div",{className:"font-sans text-stone-600 leading-relaxed text-base prose prose-stone prose-p:mb-4 prose-p:leading-relaxed max-w-none obituary-bio",dangerouslySetInnerHTML:{__html:a.bio}}):r.jsx("div",{className:"font-sans text-stone-600 leading-relaxed text-base max-w-none obituary-bio",children:a.bio.replace(/\r\n/g,`
348`).split(/\n{2,}/).map(O=>O.trim()).filter(Boolean).map((O,ae)=>r.jsx("p",{className:"mb-4 leading-relaxed last:mb-0",children:O.split(`
349`).map((me,E,G)=>r.jsxs("span",{children:[me,E<G.length-1&&r.jsx("br",{})]},E))},ae))}):r.jsx("p",{className:"font-sans text-stone-400 italic",children:"A full obituary will be published shortly."})]}),a.livestreamUrl&&r.jsxs("div",{className:"bg-white border border-stone-100 p-8 md:p-10 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600"}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700",children:"Live Stream"})]}),r.jsx("div",{style:{position:"relative",width:"100%",paddingTop:"56.25%"},children:r.jsx("iframe",{title:`Live stream for ${a.firstName} ${a.lastName}`,src:a.livestreamUrl,allow:"autoplay; fullscreen; encrypted-media; picture-in-picture",allowFullScreen:!0,scrolling:"no",style:{border:"none",position:"absolute",left:0,top:0,height:"100%",width:"100%"}})}),r.jsx("p",{className:"font-sans text-xs text-stone-400 mt-4 text-center",children:"The stream will begin at the scheduled service time. A recording will be available here afterward."})]}),a.tributeSlidesId&&r.jsxs("div",{className:"bg-white border border-stone-100 p-8 md:p-10 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600"}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700",children:"Video Tribute"})]}),r.jsx("div",{style:{position:"relative",paddingTop:"calc(min(56.25%, 576px) + 42px)",maxWidth:1024,margin:"0 auto"},children:r.jsx("iframe",{className:"ts_player",title:`Video tribute for ${a.firstName} ${a.lastName}`,src:`https://www.tributeslides.com/videos/embedded_video/${a.tributeSlidesId}`,allow:"autoplay; fullscreen",style:{border:"none",position:"absolute",left:0,top:0,height:"100%",width:"100%"},width:512,height:330,sandbox:"allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"})})]}),L.length>0&&r.jsxs("div",{className:"bg-white border border-stone-100 p-8 md:p-10 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-8",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600"}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700",children:"Life Timeline"})]}),r.jsxs("div",{className:"relative pl-2",children:[r.jsx("div",{className:"absolute left-[4.75rem] top-2 bottom-2 w-px bg-stone-100"}),r.jsx("div",{className:"space-y-7",children:L.map(O=>r.jsxs("div",{className:"flex gap-4 items-start relative",children:[r.jsx("div",{className:"w-16 flex-shrink-0 text-right pt-0.5",children:r.jsx("span",{className:"font-serif text-sm font-semibold text-amber-700",children:O.year})}),r.jsx("div",{className:"w-2.5 h-2.5 rounded-full bg-amber-400 border-2 border-white shadow-sm flex-shrink-0 mt-1.5 relative z-10"}),r.jsxs("div",{className:"flex-1 pb-1",children:[r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800 leading-snug",children:O.title}),O.description&&r.jsx("p",{className:"font-sans text-sm text-stone-500 mt-1 leading-relaxed",children:O.description})]})]},O.id))})]}),r.jsx("div",{className:"mt-8 pt-5 border-t border-stone-100",children:r.jsx(Ae,{href:"/family-login",className:"font-sans text-xs text-amber-700 hover:text-amber-600 underline underline-offset-4 transition-colors",children:"Family member? Add to this timeline →"})})]}),p&&p.length>0&&r.jsxs("div",{className:"bg-white border border-stone-100 p-8 md:p-10 mb-8",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600"}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700",children:"Photo Gallery"})]}),r.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:p.map(O=>r.jsxs("div",{className:"group relative overflow-hidden cursor-pointer bg-stone-100",onClick:()=>z(O.url),children:[r.jsx("img",{src:O.url,alt:O.caption||"Memorial photo",className:"w-full aspect-square object-cover transition-transform duration-300 group-hover:scale-105"}),O.caption&&r.jsx("div",{className:"absolute inset-x-0 bottom-0 bg-gradient-to-t from-black/60 to-transparent p-2 opacity-0 group-hover:opacity-100 transition-opacity",children:r.jsx("p",{className:"font-sans text-xs text-white truncate",children:O.caption})})]},O.id))}),r.jsx("div",{className:"mt-6 pt-4 border-t border-stone-100",children:r.jsx(Ae,{href:"/family-login",className:"font-sans text-xs text-amber-700 hover:text-amber-600 underline underline-offset-4 transition-colors",children:"Family member? Add photos →"})})]}),r.jsxs("div",{className:"bg-white border border-stone-100 p-8 md:p-10",children:[r.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[r.jsx("div",{className:"w-8 h-px bg-amber-600"}),r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700",children:"Guestbook"})]}),r.jsx("h3",{className:"font-serif text-stone-800 text-xl mb-2",children:"Share a Condolence"}),r.jsxs("p",{className:"font-sans text-sm text-stone-500 mb-8",children:["Leave a message of comfort for the family of ",a.firstName," ",a.lastName,"."]}),r.jsxs("form",{onSubmit:K,className:"mb-10",children:[r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:["Your Name ",r.jsx("span",{className:"text-amber-600",children:"*"})]}),r.jsx(ze,{value:U.name,onChange:O=>_(ae=>({...ae,name:O.target.value})),placeholder:"Full name",required:!0,className:"border-stone-200 focus:border-amber-500 font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:["Email Address ",r.jsx("span",{className:"text-stone-400",children:"(optional)"})]}),r.jsx(ze,{type:"email",value:U.email,onChange:O=>_(ae=>({...ae,email:O.target.value})),placeholder:"[email protected]",className:"border-stone-200 focus:border-amber-500 font-sans text-sm"})]})]}),r.jsxs("div",{className:"mb-5",children:[r.jsxs("label",{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:["Your Message ",r.jsx("span",{className:"text-amber-600",children:"*"})]}),r.jsx(tl,{value:U.message,onChange:O=>_(ae=>({...ae,message:O.target.value})),placeholder:"Share a memory, offer comfort, or express your sympathy…",rows:5,required:!0,className:"border-stone-200 focus:border-amber-500 font-sans text-sm resize-none"})]}),r.jsx(He,{type:"submit",disabled:Z,className:"bg-amber-700 hover:bg-amber-600 text-white font-sans text-sm tracking-wide px-6 py-2.5 h-auto rounded-none",children:Z?r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-3.5 h-3.5 border border-white border-t-transparent roun
349ded-full animate-spin"}),"Submitting…"]}):r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(q4,{size:14}),"Share Condolence"]})})]}),r.jsx(Lr,{className:"mb-8"}),f&&f.length>0?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400",children:[f.length," ",f.length===1?"Condolence":"Condolences"]}),f.map(O=>r.jsxs("div",{className:"flex gap-4",children:[r.jsx("div",{className:"w-9 h-9 rounded-full bg-stone-100 flex items-center justify-center shrink-0 mt-0.5",children:r.jsx(lv,{size:15,className:"text-stone-400"})}),r.jsxs("div",{className:"flex-1",children:[r.jsxs("div",{className:"flex items-baseline gap-3 mb-1.5",children:[r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800",children:O.authorName}),r.jsx("p",{className:"font-sans text-xs text-stone-400",children:new Date(O.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]}),r.jsx("p",{className:"font-sans text-sm text-stone-600 leading-relaxed",children:O.message})]})]},O.id))]}):r.jsxs("div",{className:"text-center py-8",children:[r.jsx(na,{size:28,className:"text-stone-200 mx-auto mb-3"}),r.jsx("p",{className:"font-sans text-sm text-stone-400",children:"Be the first to share a condolence."})]})]})]})]})}),F&&r.jsxs("div",{className:"fixed inset-0 bg-black/85 z-50 flex items-center justify-center p-4",onClick:()=>z(null),children:[r.jsx("img",{src:F,alt:"Memorial photo",className:"max-w-full max-h-full object-contain rounded-sm shadow-2xl",onClick:O=>O.stopPropagation()}),r.jsx("button",{onClick:()=>z(null),className:"absolute top-4 right-6 text-white/70 hover:text-white text-3xl leading-none font-light","aria-label":"Close",children:"×"})]})]})}function tC(){const[n,a]=w.useState({name:"",email:"",phone:"",serviceType:"",message:""}),[l,o]=w.useState(!1),[c,f]=w.useState(""),m=w.useRef(Date.now()),h=je.contact.submit.useMutation({onSuccess:()=>{o(!0)},onError:()=>{Ee.error("There was a problem sending your message. Please call us directly.")}}),p=x=>{if(x.preventDefault(),!n.name||!n.message){Ee.error("Please provide your name and message.");return}h.mutate({...n,website:c,elapsedMs:Date.now()-m.current})};return r.jsxs("div",{className:"bg-stone-50",children:[r.jsxs("section",{className:"relative h-48 md:h-64 flex items-end overflow-hidden bg-stone-800",children:[r.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-stone-700 to-stone-900"}),r.jsxs("div",{className:"relative z-10 container pb-10",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-300 mb-2",children:"Reach Out"}),r.jsx("h1",{className:"font-serif text-white",children:"Contact Us"})]})]}),r.jsx("div",{className:"bg-white border-b border-stone-100",children:r.jsxs("div",{className:"container py-3 flex items-center gap-2 font-sans text-xs text-stone-400",children:[r.jsx(Ae,{href:"/",className:"hover:text-stone-600 transition-colors",children:"Home"}),r.jsx("span",{children:"/"}),r.jsx("span",{className:"text-stone-600",children:"Contact"})]})}),r.jsx("section",{className:"section-pad bg-white",children:r.jsx("div",{className:"container",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-16",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-700 mb-4",children:"We Are Here For You"}),r.jsx("h2",{className:"font-serif text-stone-800 mb-5",children:"Get In Touch"}),r.jsx("div",{className:"w-10 h-px bg-amber-600 mb-7"}),r.jsx("p",{className:"font-sans text-stone-500 leading-relaxed mb-10",children:"Whether you are experiencing an immediate need or simply have questions about our services, our compassionate team is available to help. There is no obligation — we are here to guide you."}),r.jsxs("div",{className:"space-y-7",children:[r.jsxs("div",{className:"flex items-start gap-5",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-stone-50 border border-stone-100 flex items-center justify-center shrink-0",children:r.jsx(sa,{size:16,className:"text-amber-700"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-1",children:"Phone"}),r.jsx("a",{href:"tel:9524322331",className:"font-serif text-xl text-stone-800 hover:text-amber-700 transition-colors",children:"(952) 432-2331"}),r.jsx("p",{className:"font-sans text-sm text-stone-400 mt-1",children:"Available 24 hours a day, 7 days a week"})]})]}),r.jsxs("div",{className:"flex items-start gap-5",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-stone-50 border border-stone-100 flex items-center justify-center shrink-0",children:r.jsx(el,{size:16,className:"text-amber-700"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-1",children:"Email"}),r.jsx("a",{href:"mailto:[email protected]",className:"font-serif text-xl text-stone-800 hover:text-amber-700 transition-colors",children:"[email protected]"})]})]}),r.jsxs("div",{className:"flex items-start gap-5",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-stone-50 border border-stone-100 flex items-center justify-center shrink-0",children:r.jsx(ws,{size:16,className:"text-amber-700"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-1",children:"Address"}),r.jsx("p",{className:"font-serif text-xl text-stone-800",children:"14850 Garrett Avenue"}),r.jsx("p",{className:"font-serif text-xl text-stone-800",children:"Apple Valley, MN 55124"})]})]}),r.jsxs("div",{className:"flex items-start gap-5",children:[r.jsx("div",{className:"w-10 h-10 rounded-full bg-stone-50 border border-stone-100 flex items-center justify-center shrink-0",children:r.jsx(La,{size:16,className:"text-amber-700"})}),r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-400 mb-1",children:"Hours"}),r.jsx("p",{className:"font-serif text-xl text-stone-800",children:"Open 24 Hours"}),r.jsx("p",{className:"font-sans text-sm text-stone-500",children:"We are always available for your family"})]})]})]})]}),r.jsx("div",{children:l?r.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center py-16",children:[r.jsx(hf,{size:48,className:"text-amber-600 mb-5"}),r.jsx("h3",{className:"font-serif text-stone-800 mb-3",children:"Message Received"}),r.jsx("p",{className:"font-sans text-stone-500 max-w-sm leading-relaxed",children:"Thank y
349ou for reaching out. A member of our team will be in touch with you shortly. If you have an immediate need, please call us directly at (952) 432-2331."})]}):r.jsxs("form",{onSubmit:p,className:"bg-stone-50 border border-stone-100 p-8 md:p-10",children:[r.jsx("h3",{className:"font-serif text-stone-800 mb-6",children:"Send Us a Message"}),r.jsxs("div",{"aria-hidden":"true",className:"absolute -left-[9999px] w-px h-px overflow-hidden",tabIndex:-1,children:[r.jsx("label",{htmlFor:"website",children:"Website"}),r.jsx("input",{id:"website",type:"text",name:"website",value:c,onChange:x=>f(x.target.value),tabIndex:-1,autoComplete:"off"})]}),r.jsxs("div",{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsxs("label",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-500 block mb-2",children:["Your Name ",r.jsx("span",{className:"text-amber-600",children:"*"})]}),r.jsx("input",{type:"text",value:n.name,onChange:x=>a({...n,name:x.target.value}),className:"w-full border border-stone-200 bg-white px-4 py-3 font-sans text-sm text-stone-800 focus:outline-none focus:border-stone-400 transition-colors",placeholder:"Full name",required:!0})]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-5",children:[r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-500 block mb-2",children:"Email Address"}),r.jsx("input",{type:"email",value:n.email,onChange:x=>a({...n,email:x.target.value}),className:"w-full border border-stone-200 bg-white px-4 py-3 font-sans text-sm text-stone-800 focus:outline-none focus:border-stone-400 transition-colors",placeholder:"[email protected]"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-500 block mb-2",children:"Phone Number"}),r.jsx("input",{type:"tel",value:n.phone,onChange:x=>a({...n,phone:x.target.value}),className:"w-full border border-stone-200 bg-white px-4 py-3 font-sans text-sm text-stone-800 focus:outline-none focus:border-stone-400 transition-colors",placeholder:"(xxx) xxx-xxxx"})]})]}),r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-500 block mb-2",children:"How Can We Help?"}),r.jsxs("select",{value:n.serviceType,onChange:x=>a({...n,serviceType:x.target.value}),className:"w-full border border-stone-200 bg-white px-4 py-3 font-sans text-sm text-stone-800 focus:outline-none focus:border-stone-400 transition-colors",children:[r.jsx("option",{value:"",children:"Select a topic"}),r.jsx("option",{value:"immediate",children:"Immediate Need"}),r.jsx("option",{value:"preplanning",children:"Pre-Planning"}),r.jsx("option",{value:"cremation",children:"Cremation Services"}),r.jsx("option",{value:"funeral",children:"Funeral Services"}),r.jsx("option",{value:"memorial",children:"Online Memorial"}),r.jsx("option",{value:"general",children:"General Inquiry"})]})]}),r.jsxs("div",{children:[r.jsxs("label",{className:"font-sans text-xs tracking-[0.15em] uppercase text-stone-500 block mb-2",children:["Message ",r.jsx("span",{className:"text-amber-600",children:"*"})]}),r.jsx("textarea",{value:n.message,onChange:x=>a({...n,message:x.target.value}),rows:5,className:"w-full border border-stone-200 bg-white px-4 py-3 font-sans text-sm text-stone-800 focus:outline-none focus:border-stone-400 transition-colors resize-none",placeholder:"How can we help your family?",required:!0})]}),r.jsx("button",{type:"submit",disabled:h.isPending,className:"w-full py-4 bg-stone-800 text-white font-sans text-sm tracking-wide hover:bg-stone-700 transition-colors disabled:opacity-60",children:h.isPending?"Sending...":"Send Message"}),r.jsxs("p",{className:"font-sans text-xs text-stone-400 text-center",children:["For immediate assistance, please call"," ",r.jsx("a",{href:"tel:9524322331",className:"text-amber-700 hover:underline",children:"(952) 432-2331"})]})]})]})})]})})}),r.jsxs("section",{className:"bg-stone-100",children:[r.jsx("div",{className:"h-96 w-full",children:r.jsx("iframe",{title:"Henry W. Anderson Funeral & Cremation Service — Apple Valley, MN",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d2832.5!2d-93.2177!3d44.7319!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x87f62f3b5e3b3b3b%3A0x3b3b3b3b3b3b3b3b!2s14850%20Garrett%20Ave%2C%20Apple%20Valley%2C%20MN%2055124!5e0!3m2!1sen!2sus!4v1700000000000!5m2!1sen!2sus",width:"100%",height:"100%",style:{border:0},allowFullScreen:!0,loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})}),r.jsx("div",{className:"bg-stone-800 py-4",children:r.jsxs("div",{className:"container flex flex-col sm:flex-row items-center justify-between gap-2",children:[r.jsx("p",{className:"font-sans text-sm text-stone-300",children:"14850 Garrett Avenue, Apple Valley, MN 55124"}),r.jsx("a",{href:"https://maps.google.com/?q=14850+Garrett+Avenue+Apple+Valley+MN+55124",target:"_blank",rel:"noopener noreferrer",className:"font-sans text-xs text-amber-400 hover:text-amber-300 transition-colors",children:"Get Directions →"})]})})]})]})}const kv=()=>"/staff-login";function Uv(n){const{redirectOnUnauthenticated:a=!1,redirectPath:l=kv()}={},o=je.useUtils(),c=je.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),f=je.auth.logout.useMutation({onSuccess:()=>{o.auth.me.setData(void 0,null)}}),m=w.useCallback(async()=>{try{await f.mutateAsync()}catch(p){if(p instanceof qr&&p.data?.code==="UNAUTHORIZED")return;throw p}finally{try{sessionStorage.removeItem("manus-cookie")}catch{}
349o.auth.me.setData(void 0,null),await o.auth.me.invalidate()}},[f,o]),h=w.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(c.data)),{user:c.data??null,loading:c.isLoading||f.isPending,error:c.error??f.error??null,isAuthenticated:!!c.data}),[c.data,c.error,c.isLoading,f.error,f.isPending]);return w.useEffect(()=>{a&&(c.isLoading||f.isPending||h.user||typeof window>"u"||window.location.pathname!==l&&(window.location.href=l))},[a,l,f.isPending,c.isLoading,h.user]),{...h,refresh:()=>c.refetch(),logout:m}}function nC(){const{user:n,loading:a,isAuthenticated:l,logout:o}=Uv(),[,c]=ua(),[f,m]=w.useState("obituaries"),{data:h,isLoading:p}=je.staffAuth.me.useQuery(),x=je.staffAuth.logout.useMutation({onSuccess:()=>{c("/staff-login")}}),v=!!h,b=l&&n?.role==="admin",j=b||v,C=b?n?.name||n?.email:h?.name,T=je.useUtils(),{data:S,refetch:U}=je.admin.obituaries.list.useQuery(void 0,{enabled:j}),{data:_}=je.admin.contacts.list.useQuery(void 0,{enabled:j&&f==="contacts"}),{data:Z,refetch:te}=je.admin.condolences.pending.useQuery(void 0,{enabled:j&&f==="moderation"}),{data:oe,refetch:X}=je.admin.staff.list.useQuery(void 0,{enabled:j&&f==="staff"}),{data:F,refetch:z}=je.admin.locations.list.useQuery(void 0,{enabled:j&&f==="locations"}),{data:q}=je.flowerOrders.list.useQuery({limit:100,offset:0},{enabled:j&&f==="flowers"}),[ne,se]=w.useState({name:"",address:"",city:"",state:"MN",zip:""}),[K,I]=w.useState(!1),[ce,ie]=w.useState(null),[de,N]=w.useState(!1),L=je.admin.locations.create.useMutation({onSuccess:()=>{z(),Ee.success("Location saved."),I(!1),se({name:"",address:"",city:"",state:"MN",zip:""})},onError:B=>Ee.error(B.message||"Failed to save location.")}),O=je.admin.locations.delete.useMutation({onSuccess:()=>{z(),Ee.success("Location removed.")},onError:()=>Ee.error("Failed to delete.")}),ae=je.familyAccess.generate.useMutation({onSuccess:B=>{ie(Re=>Re?{...Re,accessCode:B.accessCode}:null),N(!1),Ee.success("Family access code generated.")},onError:B=>{Ee.error(B.message||"Failed to generate access code."),N(!1)}}),me=je.admin.obituaries.delete.useMutation({onSuccess:()=>{U(),Ee.success("Obituary deleted.")},onError:()=>Ee.error("Failed to delete.")}),E=je.admin.condolences.moderate.useMutation({onSuccess:()=>{te(),Ee.success("Condolence updated.")},onError:()=>Ee.error("Failed to update condolence.")}),G=je.admin.condolences.delete.useMutation({onSuccess:()=>{te(),Ee.success("Condolence deleted.")},onError:()=>Ee.error("Failed to delete.")}),[k,M]=w.useState({username:"",password:"",name:"",email:"",role:"staff"}),[Y,W]=w.useState(!1),le=je.admin.staff.create.useMutation({onSuccess:()=>{X(),Ee.success("Staff account created."),W(!1),M({username:"",password:"",name:"",email:"",role:"staff"})},onError:B=>Ee.error(B.message||"Failed to create account.")}),ue=je.admin.staff.delete.useMutation({onSuccess:()=>{X(),Ee.success("Staff account removed.")},onError:()=>Ee.error("Failed to delete.")}),ve=je.admin.staff.toggleActive.useMutation({onSuccess:()=>{X()},onError:()=>Ee.error("Failed to update.")});if(a||p)return r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-2 border-amber-600 border-t-transparent rounded-full animate-spin"})});if(!j)return r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center max-w-sm px-6",children:[r.jsx("h2",{className:"font-serif text-2xl text-stone-800 mb-3",children:"Staff Login Required"}),r.jsx("p",{className:"font-sans text-stone-500 mb-6 text-sm",children:"Please sign in to access the administration panel."}),r.jsx(Ae,{href:"/staff-login",children:r.jsx(He,{className:"bg-stone-800 hover:bg-stone-700 text-white font-sans text-sm px-6 py-2.5 rounded-lg",children:"Staff Sign In"})})]})});const lt=(B,Re)=>{confirm(`Permanently delete the obituary for ${Re}? This cannot be undone.`)&&me.mutate({id:B})},et=Z?.length??0,zt=[{id:"obituaries",label:"Obituaries",icon:r.jsx(_d,{size:14})},{id:"moderation",label:"Moderation",icon:r.jsx(kx,{size:14}),badge:et>0?et:void 0}
349,{id:"contacts",label:"Contacts",icon:r.jsx(el,{size:14})},{id:"locations",label:"Saved Locations",icon:r.jsx(ws,{size:14})},{id:"staff",label:"Staff Accounts",icon:r.jsx(Ux,{size:14})},{id:"flowers",label:"Flower Orders",icon:r.jsx(js,{size:14})}];return r.jsxs("div",{className:"min-h-screen bg-stone-100",children:[r.jsx("header",{className:"bg-stone-900 border-b border-stone-700",children:r.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-4 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx(Ae,{href:"/",className:"font-serif text-white text-lg",children:"Henry W. Anderson"}),r.jsx("span",{className:"font-sans text-stone-500 text-xs tracking-widest uppercase",children:"/ Admin"})]}),r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("span",{className:"font-sans text-xs text-stone-400",children:C}),r.jsxs("button",{onClick:()=>v?x.mutate():o(),className:"flex items-center gap-1.5 font-sans text-xs text-stone-400 hover:text-white transition-colors",children:[r.jsx(av,{size:13})," Sign Out"]})]})]})}),r.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-8",children:[r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:[{label:"Total Obituaries",value:S?.length??"—",icon:r.jsx(_d,{size:18})},{label:"Published",value:S?.filter(B=>B.published).length??"—",icon:r.jsx(Wi,{size:18})},{label:"Drafts",value:S?.filter(B=>!B.published).length??"—",icon:r.jsx(A4,{size:18})},{label:"Pending Review",value:et||"—",icon:r.jsx(kx,{size:18})}].map((B,Re)=>r.jsxs("div",{className:"bg-white border border-stone-200 p-5",children:[r.jsx("div",{className:"flex items-center justify-between mb-3",children:r.jsx("span",{className:"text-amber-600",children:B.icon})}),r.jsx("p",{className:"font-serif text-2xl text-stone-800 mb-1",children:B.value}),r.jsx("p",{className:"font-sans text-xs text-stone-500 tracking-wide",children:B.label})]},Re))}),r.jsx("div",{className:"flex gap-1 mb-6 border-b border-stone-200",children:zt.map(B=>r.jsxs("button",{onClick:()=>m(B.id),className:`flex items-center gap-1.5 px-5 py-2.5 font-sans text-sm transition-colors relative ${f===B.id?"text-amber-700 border-b-2 border-amber-600 -mb-px":"text-stone-500 hover:text-stone-800"}`,children:[B.icon,B.label,B.badge!==void 0&&r.jsx("span",{className:"ml-1 bg-red-500 text-white text-xs font-bold rounded-full w-4 h-4 flex items-center justify-center leading-none",children:B.badge})]},B.id))}),f==="obituaries"&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-5",children:[r.jsx("h2",{className:"font-serif text-stone-800 text-xl",children:"Obituaries"}),r.jsx(Ae,{href:"/admin/obituaries/new",children:r.jsxs(He,{className:"bg-amber-700 hover:bg-amber-600 text-white rounded-none font-sans text-sm gap-2 h-auto py-2.5 px-5",children:[r.jsx(tv,{size:15})," New Obituary"]})})]}),r.jsx("div",{className:"bg-white border border-stone-200 overflow-hidden",children:r.jsxs("table",{className:"w-full",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b border-stone-100 bg-stone-50",children:[r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Name"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden md:table-cell",children:"Dates"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Status"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden sm:table-cell",children:"Views"}),r.jsx("th",{className:"text-right px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Actions"})]})}),r.jsx("tbody",{children:S&&S.length>0?S.map(B=>r.jsxs("tr",{className:"border-b border-stone-50 hover:bg-stone-50 transition-colors",children:[r.jsx("td",{className:"px-5 py-4",children:r.jsxs("div",{className:"flex items-center gap-3",children:[B.photoUrl?r.jsx("img",{src:B.photoUrl,alt:"",className:"w-9 h-9 object-cover rounded-sm shrink-0"}):r.jsx("div",{className:"w-9 h-9 bg-stone-100 rounded-sm shrink-0 flex items-center justify-center",children:r.jsx(ov,{size:14,className:"text-stone-400"})}),r.jsxs("div",{children:[r.jsxs("p",{className:"font-sans text-sm font-medium text-stone-800",children:[B.firstName," ",B.lastName]}),r.jsxs("p",{className:"font-sans text-xs text-stone-400",children:["/",B.slug]})]})]})}),r.jsx("td",{className:"px-5 py-4 hidden md:table-cell",children:r.jsxs("p",{className:"font-sans text-xs text-stone-500",children:[B.birthDate?new Date(B.birthDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"—"," – ",B.deathDate?new Date(B.deathDate).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):"—"]})}),r.jsx("td",{className:"px-5 py-4",children:r.jsx(Qi,{className:B.published?"bg-green-100 text-green-700 border-green-200 font-sans text-xs":"bg-stone-100 text-stone-500 border-stone-200 font-sans text-xs",children:B.published?"Published":"Draft"})}),r.jsx("td",{className:"px-5 py-4 hidden sm:table-cell",children:r.jsx("p",{className:"font-sans text-xs text-stone-500",children:(B.viewCount??0).toLocaleStr
349ing()})}),r.jsx("td",{className:"px-5 py-4 text-right",children:r.jsxs("div",{className:"flex items-center justify-end gap-2",children:[B.published&&r.jsx(Ae,{href:`/obituaries/${B.slug}`,children:r.jsx("button",{className:"p-1.5 text-stone-400 hover:text-amber-700 transition-colors",title:"View",children:r.jsx(Wi,{size:15})})}),r.jsx(Ae,{href:`/admin/obituaries/${B.id}`,children:r.jsx("button",{className:"p-1.5 text-stone-400 hover:text-amber-700 transition-colors",title:"Edit",children:r.jsx(k4,{size:15})})}),r.jsx("button",{onClick:async()=>{const Re={obituaryId:B.id,obituaryName:`${B.firstName} ${B.lastName}`};ie(Re);try{const Sn=await T.familyAccess.get.fetch({obituaryId:B.id});Sn?.accessCode&&ie({...Re,accessCode:Sn.accessCode})}catch{}},className:"p-1.5 text-stone-400 hover:text-amber-700 transition-colors",title:"Family Access Code",children:r.jsx(Rx,{size:15})}),r.jsx("button",{onClick:()=>lt(B.id,`${B.firstName} ${B.lastName}`),className:"p-1.5 text-stone-400 hover:text-red-600 transition-colors",title:"Delete",children:r.jsx(ea,{size:15})})]})})]},B.id)):r.jsx("tr",{children:r.jsxs("td",{colSpan:5,className:"px-5 py-12 text-center",children:[r.jsx(_d,{size:28,className:"text-stone-200 mx-auto mb-3"}),r.jsx("p",{className:"font-sans text-sm text-stone-400",children:"No obituaries yet."}),r.jsx(Ae,{href:"/admin/obituaries/new",className:"font-sans text-xs text-amber-700 underline underline-offset-4 mt-2 inline-block",children:"Create the first one"})]})})})]})})]}),f==="moderation"&&r.jsxs("div",{children:[r.jsx("h2",{className:"font-serif text-stone-800 text-xl mb-2",children:"Condolence Review Queue"}),r.jsx("p",{className:"font-sans text-sm text-stone-500 mb-6",children:"Messages flagged by the AI content filter appear here for your review. Approve to publish or reject to discard."}),Z&&Z.length>0?r.jsx("div",{className:"space-y-3",children:Z.map(B=>r.jsxs("div",{className:"bg-white border border-stone-200 p-5",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4 mb-3",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800",children:B.authorName}),B.authorEmail&&r.jsx("p",{className:"font-sans text-xs text-stone-400",children:B.authorEmail}),r.jsx("p",{className:"font-sans text-xs text-stone-400 mt-0.5",children:new Date(B.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit"})})]}),B.moderationNote&&r.jsx("div",{className:"bg-amber-50 border border-amber-200 rounded px-3 py-1.5 shrink-0",children:r.jsxs("p",{className:"font-sans text-xs text-amber-700",children:[r.jsx("span",{className:"font-medium",children:"AI flag:"})," ",B.moderationNote]})})]}),r.jsxs("p",{className:"font-sans text-sm text-stone-700 mb-4 leading-relaxed border-l-2 border-stone-200 pl-3 italic",children:['"',B.message,'"']}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsxs(He,{size:"sm",onClick:()=>E.mutate({id:B.id,status:"approved"}),disabled:E.isPending,className:"bg-green-600 hover:bg-green-500 text-white gap-1.5 font-sans text-xs",children:[r.jsx(hf,{size:13})," Approve"]}),r.jsxs(He,{size:"sm",variant:"outline",onClick:()=>E.mutate({id:B.id,status:"rejected"}),disabled:E.isPending,className:"border-red-200 text-red-600 hover:bg-red-50 gap-1.5 font-sans text-xs",children:[r.jsx(E4,{size:13})," Reject"]}),r.jsx(He,{size:"sm",variant:"ghost",onClick:()=>{confirm("Permanently delete this message?")&&G.mutate({id:B.id})},className:"text-stone-400 hover:text-red-600 font-sans text-xs",children:r.jsx(ea,{size:13})})]})]},B.id))}):r.jsxs("div",{className:"bg-white border border-stone-200 p-12 text-center",children:[r.jsx(hf,{size:32,className:"text-green-400 mx-auto mb-3"}),r.jsx("p",{className:"font-sans text-sm text-stone-500",children:"No messages pending review."}),r.jsx("p",{className:"font-sans text-xs text-stone-400 mt-1",children:"All condolences have been processed."})]})]}),f==="contacts"&&r.jsxs("div",{children:[r.jsx("h2",{className:"font-serif text-stone-800 text-xl mb-5",children:"Contact Inquiries"}),r.jsx("div",{className:"bg-white border border-stone-200 overflow-hidden",children:_&&_.length>0?r.jsx("div",{className:"divide-y divide-stone-50",children:_.map(B=>r.jsxs("div",{className:"px-6 py-5",children:[r.jsxs("div",{className:"flex items-start justify-between gap-4 mb-2",children:[r.jsxs("div",{children:[r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800",children:B.name}),r.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[B.email&&r.jsx("a",{href:`mailto:${B.email}`,className:"font-sans text-xs text-amber-700 hover:underline",children:B.email}),B.phone&&r.jsx("a",{href:`tel:${B.phone}`,className:"font-sans text-xs text-stone-500 hover:underline",children:B.phone})]})]}),r.jsxs("div",{className:"text-right shrink-0",children:[B.serviceType&&r.jsx(Qi,{variant:"outline",className:"font-sans text-xs mb-1",children:B.serviceType}),r.jsx("p",{className:"font-sans text-xs text-stone-400",children:new Date(B.createdAt).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})})]})]}),r.jsx("p",{className:"font-sans text-sm text-stone-600 leading-relaxed",children:B.message})]},B.id))}):r.jsxs("div",{className:"p-12 text-center",children:[r.jsx(el,{size:28,className:"text-stone-200 mx-auto mb-3"}),r.jsx("p",{className:"font-sans text-sm text-stone-400",children:"No contact submissions yet."})]})})]}),f==="locations"&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-5",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"font-serif text-stone-800 text-xl",children:"Saved Locations"}),r.jsx("p",{className:"font-sans text-xs text-stone-500 mt-1",children:"Pre-load common venues so staff can quickly select them when entering service details."})]}),r.jsxs(He,{onClick:()=>I(!K),className:"bg-amber-700 hover:bg-amber-600 text-white rounded-none font-sans text-sm gap-2 h-auto py-2.5 px-5",children:[r.jsx(Qo,{size:15})," Add Location"]})]}),K&&r.jsxs("div",{className:"bg-white border border-amber-200 p-6 mb-5",children:[r.jsx("h3",{className:"font-sans text-sm font-medium text-stone-800 mb-4",children:"New Saved Location"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",children:[r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Location Name *"}),r.jsx("input",{value:ne.name,onChange:B=>se(Re=>({...Re,name:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"Henry W. Anderson Funeral Chapel"})]}),r.jsxs("div",{className:"sm:col-span-2",children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Street Address"}),r.jsx("input",{value:ne.address,onChange:B=>se(Re=>({...Re,address:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"14850 Garrett Avenue"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"City"}),r.jsx("input",{value:ne.city,onChange:B=>se(Re=>({...Re,city:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"Apple Valley"})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"State"}),r.jsx("input",{value:ne.state,onChange:B=>se(Re=>({...Re,state:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"MN",maxLength:2})]}),r.jsxs("div",{className:"flex-1",children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"ZIP"}),r.jsx("input",{value:ne.zip,onChange:B=>se(Re=>({...Re,zip:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"55124"})]})]})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx(He,{onClick:()=>L.mutate(ne),disabled:L.isPending||!ne.name,className:"bg-stone-800 hover:bg-stone-700 text-white font-sans text-sm",children:L.isPending?"Saving…":"Save Location"}),r.jsx(He,{variant:"ghost",onClick:()=>I(!1),className:"font-sans text-sm text-stone-500",children:"Cancel"})]})]}),r.jsx("div",{className:"bg-white border border-stone-200 overflow-hidden",children:r.jsxs("table",{className:"w-full",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b border-stone-100 bg-stone-50",children:[r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Name"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden md:table-cell",children:"Address"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden sm:table-cell",children:"City"}),r.jsx("th",{className:"text-right px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Actions"})]})}),r.jsx("tbody",{children:F&&F.length>0?F.map(B=>r.jsxs("tr",{className:"border-b border-stone-50 hover:bg-stone-50 transition-colors",children:[r.jsx("td",{className:"px-5 py-4",children:r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800",children:B.name})}),r.jsx("td",{className:"px-5 py-4 hidden md:table-cell",children:r.jsx("p",{className:"font-sans text-xs text-stone-500",children:B.address??"—"})}),r.jsx("td",{className:"px-5 py-4 hidden sm:table-cell",children:r.jsxs("p",{className:"font-sans text-xs text-stone-500",children:[B.city??"",B.state?", "+B.state:""]})}),r.jsx("td",{className:"px-5 py-4 text-right",children:r.jsx("button",{onClick:()=>{confirm(`Remove "${B.name}"?`)&&O.mutate({id:B.id})},className:"p-1.5 text-stone-400 hover:text-red-600 transition-colors",children:r.jsx(ea,{size:15})})})]},B.id)):r.jsx("tr",{children:r.jsxs("td",{colSpan:4,className:"px-5 py-12 text-center",children:[r.jsx(ws,{size:28,className:"text-stone-200 mx-auto mb-3"}),r.jsx("p",{className:"font-sans text-sm text-stone-400",children:"No saved locations yet. Add common venues to speed up obituary entry."})]})})})]})})]}),f==="flowers"&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-5",children:[r.jsx("h2",{className:"font-serif text-stone-800 text-xl",children:"Flower Orders"}),r.jsxs("span",{className:"font-sans text-xs text-stone-400",children:[q?.total??0," total orders"]})]}),!q||q.orders.length===0?r.jsxs("div",{className:"bg-white border border-stone-200 p-12 text-center",children:[r.jsx(js,{size:32,className:"text-stone-200 mx-auto mb-3"}),r.jsx("p",{className:"font-sans text-sm text-stone-400",children:"No flower orders yet."}),r.jsx("p",{className:"font-sans text-xs text-stone-300 mt-1",children:"Orders placed through the website will appear here."})]}):r.jsx("div",{className:"bg-white border border-stone-200 overflow-hidden",children:r.jsxs("table",{className:"w-full",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b border-stone-100 bg-stone-50",children:[r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Date"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"In Memory Of"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden md:table-cell",children:"Arrangement"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden lg:table-cell",children:"Sender"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden lg:table-cell",children:"Delivery"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Total"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Status"})]})}),r.jsx("tbody",{children:q.orders.map(B=>r.jsxs("tr",{className:"border-b border-stone-50 hover:bg-stone-50 transition-colors",children:[r.jsxs("td",{className:"px-5 py-4",children:[r.jsx("p",{className:"font-sans text-xs text-stone-500",children:new Date(B.createdAt).toLocaleDateString()}),r.jsx("p",{className:"font-sans text-xs text-stone-400",children:new Date(B.createdAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})})]}),r.jsxs("td",{className:"px-5 py-4",children:[r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800",children:B.obituaryName||"—"}),B.floristOrderId&&r.jsxs("p",{className:"font-sans text-xs text-stone-400 font-mono",children:["#",B.floristOrderId]})]}),r.jsxs("td",{className:"px-5 py-4 hidden md:table-cell",children:[r.jsx("p",{className:"font-sans text-sm text-stone-700",children:B.productName||"—"}
349),B.productCode&&r.jsx("p",{className:"font-sans text-xs text-stone-400",children:B.productCode})]}),r.jsxs("td",{className:"px-5 py-4 hidden lg:table-cell",children:[r.jsxs("p",{className:"font-sans text-sm text-stone-700",children:[B.senderFirstName," ",B.senderLastName]}),B.senderEmail&&r.jsx("p",{className:"font-sans text-xs text-stone-400",children:B.senderEmail})]}),r.jsxs("td",{className:"px-5 py-4 hidden lg:table-cell",children:[r.jsx("p",{className:"font-sans text-sm text-stone-700",children:B.deliveryDate||"—"}),r.jsx("p",{className:"font-sans text-xs text-stone-400",children:[B.recipientCity,B.recipientState].filter(Boolean).join(", ")})]}),r.jsx("td",{className:"px-5 py-4",children:r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800",children:B.orderTotal?`$${B.orderTotal}`:"—"})}),r.jsx("td",{className:"px-5 py-4",children:r.jsx(Qi,{className:B.status==="placed"?"bg-green-100 text-green-700 border-green-200 font-sans text-xs":"bg-red-100 text-red-600 border-red-200 font-sans text-xs",children:B.status==="placed"?"Placed":"Failed"})})]},B.id))})]})})]}),f==="staff"&&r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center justify-between mb-5",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"font-serif text-stone-800 text-xl",children:"Staff Accounts"}),r.jsx("p",{className:"font-sans text-xs text-stone-500 mt-1",children:"Manage who can log into the admin panel without a Manus account."})]}),r.jsxs(He,{onClick:()=>W(!Y),className:"bg-amber-700 hover:bg-amber-600 text-white rounded-none font-sans text-sm gap-2 h-auto py-2.5 px-5",children:[r.jsx(Qo,{size:15})," Add Staff"]})]}),Y&&r.jsxs("div",{className:"bg-white border border-amber-200 p-6 mb-5",children:[r.jsx("h3",{className:"font-sans text-sm font-medium text-stone-800 mb-4",children:"New Staff Account"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Full Name *"}),r.jsx("input",{value:k.name,onChange:B=>M(Re=>({...Re,name:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"Jane Smith"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Username *"}),r.jsx("input",{value:k.username,onChange:B=>M(Re=>({...Re,username:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"jsmith"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Password * (min 8 chars)"}),r.jsx("input",{type:"password",value:k.password,onChange:B=>M(Re=>({...Re,password:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"••••••••"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Email"}),r.jsx("input",{type:"email",value:k.email,onChange:B=>M(Re=>({...Re,email:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400",placeholder:"[email protected]"})]}),r.jsxs("div",{children:[r.jsx("label",{className:"font-sans text-xs text-stone-500 mb-1 block",children:"Role"}),r.jsxs("select",{value:k.role,onChange:B=>M(Re=>({...Re,role:B.target.value})),className:"w-full border border-stone-200 px-3 py-2 font-sans text-sm focus:outline-none focus:border-amber-400 bg-white",children:[r.jsx("option",{value:"staff",children:"Staff"}),r.jsx("option",{value:"admin",children:"Admin"})]})]})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx(He,{onClick:()=>le.mutate(k),disabled:le.isPending||!k.username||!k.password||!k.name,className:"bg-stone-800 hover:bg-stone-700 text-white font-sans text-sm",children:le.isPending?"Creating…":"Create Account"}),r.jsx(He,{variant:"ghost",onClick:()=>W(!1),className:"font-sans text-sm text-stone-500",children:"Cancel"})]})]}),r.jsx("div",{className:"bg-white border border-stone-200 overflow-hidden",children:r.jsxs("table",{className:"w-full",children:[r.jsx("thead",{children:r.jsxs("tr",{className:"border-b border-stone-100 bg-stone-50",children:[r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Name"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase hidden md:table-cell",children:"Username"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Role"}),r.jsx("th",{className:"text-left px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Status"}),r.jsx("th",{className:"text-right px-5 py-3 font-sans text-xs text-stone-500 tracking-wide uppercase",children:"Actions"})]})}),r.jsx("tbody",{children:oe&&oe.length>0?oe.map(B=>r.jsxs("tr",{className:"border-b border-stone-50 hover:bg-stone-50 transition-colors",children:[r.jsxs("td",{className:"px-5 py-4",children:[r.jsx("p",{className:"font-sans text-sm font-medium text-stone-800",children:B.name}),B.email&&r.jsx("p",{className:"font-sans text-xs text-stone-400",children:B.email})]}),r.jsx("td",{className:"px-5 py-4 hidden md:table-cell",children:r.jsx("p",{className:"font-sans text-xs text-stone-500 font-mono",children:B.username})}),r.jsx("td",{className:"px-5 py-4",children:r.jsx(Qi,{className:B.role==="admin"?"bg-amber-100 text-amber-700 border-amber-200 font-sans text-xs":"bg-stone-100 text-stone-600 border-stone-200 font-sans text-xs",children:B.role})}),r.jsx("td",{className:"px-5 py-4",children:r.jsx("button",{onClick:()=>ve.mutate({id:B.id,active:!B.active}),className:`font-sans text-xs ${B.active?"text-green-600":"text-stone-400"}`,children:B.active?"Active":"Disabled"})}),r.jsx("td",{className:"px-5 py-4 text-right",children:r.jsx("button",{onClick:()=>{confirm(`Remove ${B.name}?`)&&ue.mutate({id:B.id})},className:"p-1.5 text-stone-400 hover:text-red-600 transition-colors",children:r.jsx(ea,{size:15})})})]},B.id)):r.jsx("tr",{children:r.jsxs("td",{colSpan:5,className:"px-5 py-12 text-center",children:[r.jsx(Ux,{size:28,className:"text-stone-200 mx-auto mb-3"}),r.jsx("p",{className:"font-sans text-sm text-stone-400",children:"No staff accounts yet."})]})})})]})})]})]}),ce&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-50 flex items-center justify-center p-4",children:r.jsxs("div",{className:"bg-white max-w-md w-full p-8 relative",children:[r.jsx("button",{onClick:()=>{ie(null),N(!1)},className:"absolute top-4 right-4 text-stone-400 hover:text-stone-700",children:r.jsx(aa,{size:18})}),r.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[r.jsx(sv,{size:20,className:"text-amber-600"}),r.jsx("h3",{className:"font-serif text-stone-800 text-lg",children:"Family Portal Access"})]}),r.jsxs("p",{className:"font-sans text-sm text-stone-600 mb-6",children:["Generate a secure access code for the family of"," ",r.jsx("strong",{children:ce.obituaryName}),". Share this code with family members so they can log into the Family Portal to add photos, timeline events, and more."]}),ce.accessCode?r.jsxs("div",{className:"bg-amber-50 border border-amber-200 p-5 mb-5",children:[r.jsx("p",{className:"font-sans text-xs text-amber-700 tracking-wide uppercase mb-2",children:"Access Code"}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("code",{className:"font-mono text-2xl font-bold text-stone-800 tracking-[0.3em]",children:ce.accessCode}),r.jsx("button",{onClick:()=>
349{navigator.clipboard.writeText(ce.accessCode),Ee.success("Code copied to clipboard.")},className:"p-1.5 text-amber-600 hover:text-amber-800 transition-colors",title:"Copy code",children:r.jsx(O4,{size:16})})]}),r.jsx("p",{className:"font-sans text-xs text-stone-500 mt-3",children:"This code expires in 30 days. Share it securely with the family."})]}):r.jsxs("div",{className:"bg-stone-50 border border-stone-200 p-5 mb-5 text-center",children:[r.jsx(Rx,{size:32,className:"text-stone-300 mx-auto mb-2"}),r.jsx("p",{className:"font-sans text-sm text-stone-500",children:"No access code generated yet."})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsx(He,{onClick:()=>{N(!0),ae.mutate({obituaryId:ce.obituaryId})},disabled:de,className:"bg-amber-700 hover:bg-amber-600 text-white font-sans text-sm rounded-none h-auto py-2.5 px-5",children:de?"Generating…":ce.accessCode?"Regenerate Code":"Generate Code"}),r.jsx(He,{variant:"ghost",onClick:()=>ie(null),className:"font-sans text-sm text-stone-500",children:"Close"})]})]})})]})}function sC(n){const a=w.useRef({value:n,previous:n});return w.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}var rc="Switch",[aC]=Tf(rc),[rC,iC]=aC(rc),Lv=w.forwardRef((n,a)=>{const{__scopeSwitch:l,name:o,checked:c,defaultChecked:f,required:m,disabled:h,value:p="on",onCheckedChange:x,form:v,...b}=n,[j,C]=w.useState(null),T=Es(a,te=>C(te)),S=w.useRef(!1),U=j?v||!!j.closest("form"):!0,[_,Z]=h5({prop:c,defaultProp:f??!1,onChange:x,caller:rc});return r.jsxs(rC,{scope:l,checked:_,disabled:h,children:[r.jsx(Rn.button,{type:"button",role:"switch","aria-checked":_,"aria-required":m,"data-state":Bv(_),"data-disabled":h?"":void 0,disabled:h,value:p,...b,ref:T,onClick:Gn(n.onClick,te=>{Z(oe=>!oe),U&&(S.current=te.isPropagationStopped(),S.current||te.stopPropagation())})}),U&&r.jsx(Pv,{control:j,bubbles:!S.current,name:o,value:p,checked:_,required:m,disabled:h,form:v,style:{transform:"translateX(-100%)"}})]})});Lv.displayName=rc;var qv="SwitchThumb",Hv=w.forwardRef((n,a)=>{const{__scopeSwitch:l,...o}=n,c=iC(qv,l);return r.jsx(Rn.span,{"data-state":Bv(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a})});Hv.displayName=qv;var lC="SwitchBubbleInput",Pv=w.forwardRef(({__scopeSwitch:n,control:a,checked:l,bubbles:o=!0,...c},f)=>{const m=w.useRef(null),h=Es(m,f),p=sC(l),x=jb(a);return w.useEffect(()=>{const v=m.current;if(!v)return;const b=window.HTMLInputElement.prototype,C=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==l&&C){const T=new Event("click",{bubbles:o});C.call(v,l),v.dispatchEvent(T)}},[p,l,o]),r.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:l,...c,tabIndex:-1,ref:h,style:{...c.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Pv.displayName=lC;function Bv(n){return n?"checked":"unchecked"}var oC=Lv,cC=Hv;function uC({className:n,...a}){return r.jsx(oC,{"data-slot":"switch",className:Dn("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:r.jsx(cC,{"data-slot":"switch-thumb",className:Dn("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}const dC=()=>({serviceType:"",locationName:"Henry W. Anderson Funeral & Cremation Service",locationAddress:"14850 Garrett Avenue, Apple Valley, MN 55124",serviceDate:"",serviceTime:"",notes:"",sortOrder:0});function fC(n,a){if(!n||!a)return null;const l=new Date(n),o=new Date(a);if(isNaN(l.getTime())||isNaN(o.getTime()))return null;let c=o.getFullYear()-l.getFullYear();const f=o.getMonth()-l.getMonth();return(f<0||f===0&&o.getDate()<l.getDate())&&c--,c>=0?c:null}function Ix({id:n}){const{user:a,loading:l,isAuthenticated:o}=Uv(),{data:c,isLoading:f}=je.staffAuth.me.useQuery(),[,m]=ua(),h=w.useRef(null),p=n===null,x=o&&a?.role==="admin"||!!c,[v,b]=w.useState(""),[j,C]=w.useState(null),{data:T}=je.admin.locations.search.useQuery({query:v},{enabled:v.length>=1}),{data:S}=je.admin.obituaries.byId.useQuery({id:n},{enabled:!p&&!!n}),{data:U,refetch:_}=je.admin.serviceDetails.list.useQuery({obituaryId:n},{enabled:!p&&!!n}),Z=je.admin.obituaries.create.useMutation(),te=je.admin.obituaries.update.useMutation(),oe=je.admin.serviceDetails.create.useMutation(),X=je.admin.serviceDetails.update.useMutation(),F=je.admin.serviceDetails.delete.useMutation(),{data:z,refetch:q}=je.admin.condolences.list.useQuery({obituaryId:n},{enabled:!p&&!!n}),ne=je.admin.condolences.delete.useMutation({onSuccess:()=>{q(),Ee.success("Condolence deleted.")},onError:()=>Ee.error("Failed to delete condolence.")}),se=(M,Y)=>{confirm(`Permanently delete the condolence from ${Y}? This cannot be undone.`)&&ne.mutate({id:M})},[K,I]=w.useState({firstName:"",lastName:"",middleName:"",birthDate:"",deathDate:"",age:"",bio:"",photoUrl:"",tributeSlidesId:"",livestreamUrl:"",published:!1}),[ce,ie]=w.useState([]),[de,N]=w.useState(!1),[L,O]=w.useState(n),[ae,me]=w.useState(!1);w.useEffect(()=>{const M=fC(K.birthDate,K.deathDate);M!==null&&I(Y=>({...Y,age:M.toString()}))},[K.birthDate,K.deathDate]),w.useEffect(()=>{S&&I({firstName:S.firstName??"",lastName:S.lastName??"",middleName:S.middleName??"",birthDate:S.birthDate?new Date(S.birthDate).toISOString().split("T")[0]:"",deathDate:S.deathDate?new Date(S.deathDate).toISOString().split("T")[0]:"",age:S.age?.toString()??"",bio:S.bio??"",photoUrl:S.photoUrl??"",tributeSlidesId:S.tributeSlidesId??"",livestreamUrl:S.livestreamUrl??"",published:S.published??!1})},[S]),w.useEffect(()=>{U&&ie(U.map(M=>({id:M.id,serviceType:M.serviceType??"",locationName:M.locationName??"",locationAddress:M.locationAddress??"",serviceDate:M.serviceDate?new Date(M.serviceDate).toISOString().split("T")[0]:"",serviceTime:M.serviceTime??"",notes:M.notes??"",sortOrder:M.sortOrder??0})))},[U]);const E=async M=>{const Y=M.target.files?.[0];if(Y){if(!Y.type.startsWith("image/")){Ee.error("Please select an image file.");return}if(Y.size>10*1024*1024){Ee.error("Image must be under 10MB.");return}me(!0);try{const W=new FileReader,le=await new Promise((Ie,lt)=>{W.onload=()=>{const et=W.result;Ie(et.split(",")[1])}
349,W.onerror=lt,W.readAsDataURL(Y)}),ue=await fetch("/api/upload/photo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:le,mimeType:Y.type,fileName:Y.name})});if(!ue.ok)throw new Error("Upload failed");const{url:ve}=await ue.json();I(Ie=>({...Ie,photoUrl:ve})),Ee.success("Photo uploaded successfully.")}catch(W){console.error(W),Ee.error("Photo upload failed. Please try again.")}finally{me(!1),h.current&&(h.current.value="")}}},G=async()=>{if(!K.firstName||!K.lastName){Ee.error("First and last name are required.");return}N(!0);try{let M=L;const Y={firstName:K.firstName,lastName:K.lastName,middleName:K.middleName||void 0,birthDate:K.birthDate||void 0,deathDate:K.deathDate||void 0,age:K.age?parseInt(K.age):void 0,bio:K.bio||void 0,photoUrl:K.photoUrl||void 0,tributeSlidesId:K.tributeSlidesId.trim(),livestreamUrl:K.livestreamUrl.trim(),published:K.published};p||!M?(M=(await Z.mutateAsync(Y)).id,O(M)):await te.mutateAsync({id:M,...Y});for(const W of ce){const le={obituaryId:M,serviceType:W.serviceType,locationName:W.locationName||void 0,locationAddress:W.locationAddress||void 0,serviceDate:W.serviceDate||void 0,serviceTime:W.serviceTime||void 0,notes:W.notes||void 0,sortOrder:W.sortOrder};W.id?await X.mutateAsync({id:W.id,...le}):await oe.mutateAsync(le)}_(),Ee.success(p?"Obituary created successfully.":"Changes saved."),p&&M&&m(`/admin/obituaries/${M}`)}catch(M){console.error(M);const Y=M?.message||"Failed to save. Please try again.";Ee.error(Y)}finally{N(!1)}},k=async M=>{const Y=ce[M];Y.id&&await F.mutateAsync({id:Y.id}),ie(W=>W.filter((le,ue)=>ue!==M)),Ee.success("Service detail removed.")};return l||f?r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:r.jsx("div",{className:"w-8 h-8 border-2 border-amber-600 border-t-transparent rounded-full animate-spin"})}):x?r.jsxs("div",{className:"min-h-screen bg-stone-100",children:[r.jsx("header",{className:"bg-stone-900 border-b border-stone-700",children:r.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-4 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsxs(Ae,{href:"/admin",className:"flex items-center gap-1.5 font-sans text-xs text-stone-400 hover:text-white transition-colors",children:[r.jsx(Ur,{size:14})," Admin"]}),r.jsx("span",{className:"font-sans text-stone-600 text-xs",children:"/"}),r.jsx("span",{className:"font-sans text-stone-300 text-xs",children:p?"New Obituary":`Edit: ${K.firstName} ${K.lastName}`})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[!p&&L&&K.published&&r.jsx(Ae,{href:`/obituaries/${S?.slug}`,children:r.jsxs("button",{className:"flex items-center gap-1.5 font-sans text-xs text-stone-400 hover:text-white transition-colors",children:[r.jsx(Wi,{size:13})," View Live"]})}),!p&&L&&K.published&&S?.slug&&r.jsxs("a",{href:`/memorial-card/${S.slug}`,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 font-sans text-xs text-stone-400 hover:text-white transition-colors",title:"Print a memorial card with a QR code to the online obituary",children:[r.jsx(rv,{size:13})," Print QR Card"]}),r.jsx(He,{onClick:G,disabled:de||ae,className:"bg-amber-700 hover:bg-amber-600 text-white rounded-none font-sans text-sm gap-2 h-auto py-2 px-4",children:de?r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-3 h-3 border border-white border-t-transparent rounded-full animate-spin"}),"Saving…"]}):r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(L4,{size:13})," Save"]})})]})]})}),r.jsx("div",{className:"max-w-5xl mx-auto px-6 py-8",children:r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[r.jsxs("div",{className:"bg-white border border-stone-200 p-6",children:[r.jsx("h3",{className:"font-serif text-stone-800 text-lg mb-5",children:"Personal Information"}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-4",children:[r.jsxs("div",{children:[r.jsxs(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:["First Name ",r.jsx("span",{className:"text-amber-600",children:"*"})]}),r.jsx(ze,{value:K.firstName,onChange:M=>I(Y=>({...Y,firstName:M.target.value})),className:"border-stone-200 font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Middle Name"}),r.jsx(ze,{value:K.middleName,onChange:M=>I(Y=>({...Y,middleName:M.target.value})),className:"border-stone-200 font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsxs(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:["Last Name ",r.jsx("span",{className:"text-amber-600",children:"*"})]}),r.jsx(ze,{value:K.lastName,onChange:M=>I(Y=>({...Y,lastName:M.target.value})),className:"border-stone-200 font-sans text-sm"})]})]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Date of Birth"}),r.jsx(ze,{type:"date",value:K.birthDate,onChange:M=>I(Y=>({...Y,birthDate:M.target.value})),className:"border-stone-200 font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Date of Passing"}),r.jsx(ze,{type:"date",value:K.deathDate,onChange:M=>I(Y=>({...Y,deathDate:M.target.value})),className:"border-stone-200 font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsxs(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:["Age",K.birthDate&&K.deathDate&&r.jsx("span",{className:"ml-1.5 text-amber-600 font-normal",children:"(auto-calculated)"})]}),r.jsx(ze,{type:"number",value:K.age,onChange:M=>I(Y=>({...Y,age:M.target.value})),className:"border-stone-200 font-sans text-sm",min:0,max:150,placeholder:"Auto-fills from dates"})]})]})]}),r.jsxs("div",{className:"bg-white border border-stone-200 p-6",children:[r.jsx("h3",{className:"font-serif text-stone-800 text-lg mb-5",children:"Obituary Text"}),r.jsx(tl,{value:K.bio,onChange:M=>I(Y=>({...Y,bio:M.target.value})),placeholder:"Write the full obituary here…",rows:14,className:"border-stone-200 font-sans text-sm resize-y"})]}),r.jsxs("div",{className:"bg-white border border-stone-200 p-6",children:[r.jsx("h3",{className:"font-serif text-stone-800 text-lg mb-1.5",children:"Video Tribute"}),r.jsxs("p",{className:"font-sans text-xs text-stone-500 mb-4",children:["Paste the Tukios TributeSlides video ID (the code at the end of the embed URL, e.g. ",r.jsx("span",{className:"font-mono",children:"P8JDYP3PHYFRWPCJ"}),"). Leave blank for none."]}),r.jsx(ze,{value:K.tributeSlidesId,onChange:M=>I(Y=>({...Y,tributeSlidesId:M.target.value.trim()})),placeholder:"Tribute video ID",className:"border-stone-200 font-mono text-sm"})]}),r.jsxs("div",{className:"bg-white border border-stone-200 p-6",children:[r.jsx("h3",{className:"font-serif text-stone-800 text-lg mb-1.5",children:"Live Stream"}),r.jsx("p",{className:"font-sans text-xs text-stone-500 mb-4",children:"Paste the full MemoryShare embed code (or the player URL). The player shows a countdown before the service, the live stream during, and the recording afterward. Leave blank for none."}),r.jsx(tl,{value:K.livestreamUrl,onChange:M=>I(Y=>({...Y,livestreamUrl:M.target.value})),placeholder:'<div ...><iframe src="https://player.memoryshare.com/video/…"></iframe></div>',rows:3,className:"border-stone-200 font-mono text-xs resize-y"})]}),r.jsxs("div",{className:"bg-white border border-stone-200 p-6",children:[r.jsxs("div",{className:"flex items-center justify-between mb-5",children:[r.jsx("h3",{className:"font-serif text-stone-800 text-lg",children:"Service Details"}),r.jsxs(He,{variant:"outline",size:"sm",onClick:()=>ie(M=>[...M,dC()]),className:"font-sans text-xs gap-1.5 h-auto py-1.5 px-3 border-stone-200",children:[r.jsx(tv,{size:13})," Add Service"]})]}),ce.length===0?r.jsx("p",{className:"font-sans text-sm text-stone-400 text-center py-6",children:"No service details added yet."}):r.jsx("div",{className:"space-y-6",children:ce.map((M,Y)=>r.jsxs("div",{className:"border border-stone-100 p-5 relative",children:[r.jsx("button",{onClick:()=>k(Y),className:"absolute top-3 right-3 text-stone-300 hover:text-red-500 transition-colors",children:r.jsx(ea,{size:14})}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-4",children:[r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Service Type"}
349),r.jsx(ze,{value:M.serviceType,onChange:W=>ie(le=>le.map((ue,ve)=>ve===Y?{...ue,serviceType:W.target.value}:ue)),placeholder:"e.g. Visitation, Funeral Service, Graveside",className:"border-stone-200 font-sans text-sm"})]}),r.jsxs("div",{className:"relative",children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Location Name"}),r.jsxs("div",{className:"relative",children:[r.jsx(ws,{size:13,className:"absolute left-3 top-1/2 -translate-y-1/2 text-stone-400 pointer-events-none"}),r.jsx(ze,{value:M.locationName,onChange:W=>{const le=W.target.value;ie(ue=>ue.map((ve,Ie)=>Ie===Y?{...ve,locationName:le}:ve)),b(le),C(Y)},onFocus:()=>{b(M.locationName),C(Y)},onBlur:()=>setTimeout(()=>C(null),150),placeholder:"Start typing to search saved locations…",className:"border-stone-200 font-sans text-sm pl-8"})]}),j===Y&&T&&T.length>0&&r.jsx("div",{className:"absolute z-50 top-full left-0 right-0 mt-1 bg-white border border-stone-200 shadow-lg max-h-48 overflow-y-auto",children:T.map(W=>r.jsxs("button",{type:"button",onMouseDown:()=>{ie(le=>le.map((ue,ve)=>ve===Y?{...ue,locationName:W.name,locationAddress:W.address?`${W.address}${W.city?", "+W.city:""}${W.state?", "+W.state:""}${W.zip?" "+W.zip:""}`:ue.locationAddress}:ue)),C(null),b("")},className:"w-full text-left px-4 py-2.5 font-sans text-sm text-stone-700 hover:bg-amber-50 border-b border-stone-50 last:border-0",children:[r.jsx("span",{className:"font-medium",children:W.name}),W.city&&r.jsxs("span",{className:"text-stone-400 ml-2 text-xs",children:[W.city,W.state?", "+W.state:""]})]},W.id))})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Date"}),r.jsx(ze,{type:"date",value:M.serviceDate,onChange:W=>ie(le=>le.map((ue,ve)=>ve===Y?{...ue,serviceDate:W.target.value}:ue)),className:"border-stone-200 font-sans text-sm"})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Time"}),r.jsx(ze,{value:M.serviceTime,onChange:W=>ie(le=>le.map((ue,ve)=>ve===Y?{...ue,serviceTime:W.target.value}:ue)),placeholder:"e.g. 2:00 PM",className:"border-stone-200 font-sans text-sm"})]})]}),r.jsxs("div",{children:[r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Address"}),r.jsx(ze,{value:M.locationAddress,onChange:W=>ie(le=>le.map((ue,ve)=>ve===Y?{...ue,locationAddress:W.target.value}:ue)),className:"border-stone-200 font-sans text-sm mb-3"}),r.jsx(Be,{className:"font-sans text-xs text-stone-500 tracking-wide mb-1.5 block",children:"Notes"}),r.jsx(ze,{value:M.notes,onChange:W=>ie(le=>le.map((ue,ve)=>ve===Y?{...ue,notes:W.target.value}:ue)),placeholder:"Optional notes for this service",className:"border-stone-200 font-sans text-sm"})]})]},Y))})]}),!p&&L&&r.jsxs("div",{className:"bg-white border border-stone-200 p-6",children:[r.jsx("h3",{className:"font-serif text-stone-800 text-lg mb-1.5",children:"Condolences"}),r.jsx("p",{className:"font-sans text-xs text-stone-500 mb-4",children:"Messages left by visitors. Delete any that shouldn't appear on the public page (this cannot be undone)."}),z&&z.length>0?r.jsx("ul",{className:"space-y-3",children:z.map(M=>r.jsx("li",{className:"border border-stone-100 bg-stone-50 p-4",children:r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsxs("div",{className:"min-w-0",children:[r.jsxs("p",{className:"font-sans text-sm font-medium text-stone-800",children:[M.authorName,!M.approved&&r.jsx("span",{className:"ml-2 align-middle rounded bg-amber-100 px-1.5 py-0.5 text-[10px] font-medium uppercase tracking-wide text-amber-700",children:"Pending review"})]}),r.jsx("p",{className:"font-sans text-[11px] text-stone-400 mb-2",children:new Date(M.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})}),r.jsx("p",{className:"font-sans text-sm text-stone-600 whitespace-pre-wrap break-words",children:M.message})]}),r.jsx("button",{type:"button",onClick:()=>se(M.id,M.authorName),disabled:ne.isPending,className:"shrink-0 p-1.5 text-stone-400 hover:text-red-600 transition-colors disabled:opacity-50",title:"Delete condolence",children:r.jsx(ea,{size:15})})]})},M.id))}):r.jsx("p",{className:"font-sans text-sm text-stone-400 italic",children:"No condolences have been left yet."})]})]}),r.jsxs("div",{className:"space-y-5",children:[r.jsxs("div",{className:"bg-white border border-stone-200 p-5",children:[r.jsx("h4",{className:"font-serif text-stone-800 mb-4",children:"Publish Settings"}),r.jsxs("div",{className:"flex items-center justify-between mb-5",children:[r.jsx(Be,{className:"font-sans text-sm text-stone-700",children:"Published"}),r.jsx(uC,{checked:K.published,onCheckedChange:M=>I(Y=>({...Y,published:M}))})]}),r.jsx("p",{className:"font-sans text-xs text-stone-400 leading-relaxed",children:K.published?"This obituary is visible to the public.":"This obituary is saved as a draft and n
349ot visible to the public."}),r.jsx(Lr,{className:"my-4"}),r.jsx(He,{onClick:G,disabled:de||ae,className:"w-full bg-amber-700 hover:bg-amber-600 text-white rounded-none font-sans text-sm h-auto py-2.5",children:de?"Saving…":"Save Changes"})]}),r.jsxs("div",{className:"bg-white border border-stone-200 p-5",children:[r.jsx("h4",{className:"font-serif text-stone-800 mb-4",children:"Photo"}),K.photoUrl?r.jsxs("div",{className:"relative mb-4",children:[r.jsx("img",{src:K.photoUrl,alt:"Preview",className:"w-full aspect-square object-cover object-top"}),r.jsx("button",{onClick:()=>I(M=>({...M,photoUrl:""})),className:"absolute top-2 right-2 bg-black/60 hover:bg-black/80 text-white rounded-full p-1 transition-colors",title:"Remove photo",children:r.jsx(aa,{size:12})})]}):r.jsxs("div",{className:"w-full aspect-square bg-stone-100 flex flex-col items-center justify-center mb-4 border border-dashed border-stone-300",children:[r.jsx(M4,{size:28,className:"text-stone-300 mb-2"}),r.jsx("p",{className:"font-sans text-xs text-stone-400",children:"No photo selected"})]}),r.jsx("input",{ref:h,type:"file",accept:"image/*",className:"hidden",onChange:E}),r.jsx(He,{variant:"outline",className:"w-full border-stone-200 font-sans text-sm gap-2 h-auto py-2.5 mb-3",onClick:()=>h.current?.click(),disabled:ae,children:ae?r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"w-3 h-3 border border-stone-400 border-t-transparent rounded-full animate-spin"}),"Uploading…"]}):r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(xf,{size:13})," Upload Photo"]})}),r.jsx("p",{className:"font-sans text-xs text-stone-400 leading-relaxed",children:"JPEG or PNG, max 10MB. Square crop recommended (at least 400×400px)."})]}),!p&&L&&r.jsxs("div",{className:"bg-white border border-stone-200 p-5",children:[r.jsx("h4",{className:"font-serif text-stone-800 mb-4",children:"Quick Links"}),r.jsxs("div",{className:"space-y-2",children:[r.jsxs(Ae,{href:"/admin",className:"flex items-center gap-2 font-sans text-sm text-stone-600 hover:text-amber-700 transition-colors",children:[r.jsx(Ur,{size:13})," Back to Admin"]}),K.published&&S?.slug&&r.jsxs(Ae,{href:`/obituaries/${S.slug}`,className:"flex items-center gap-2 font-sans text-sm text-stone-600 hover:text-amber-700 transition-colors",children:[r.jsx(Wi,{size:13})," View Public Page"]})]})]})]})]})})]}):r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("p",{className:"font-sans text-stone-500 mb-4",children:"Staff login required."}),r.jsx(Ae,{href:"/staff-login",className:"font-sans text-sm text-amber-700 underline",children:"Sign In"})]})})}function mC(){const[,n]=ua(),[a,l]=w.useState(""),[o,c]=w.useState(""),f=je.staffAuth.login.useMutation({onSuccess:()=>{Ee.success("Welcome back!"),n("/admin")},onError:h=>{Ee.error(h.message||"Invalid username or password")}}),m=h=>{h.preventDefault(),!(!a.trim()||!o)&&f.mutate({username:a.trim(),password:o})};return r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center px-4",children:r.jsxs("div",{className:"w-full max-w-md",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-stone-800 mb-4",children:r.jsx(zx,{className:"w-7 h-7 text-stone-100"})}),r.jsx("h1",{className:"font-serif text-2xl text-stone-800 mb-1",children:"Staff Portal"}),r.jsx("p",{className:"text-sm text-stone-500",children:"Henry W. Anderson Funeral & Cremation Service"})]}),r.jsx("div",{className:"bg-white border border-stone-200 rounded-2xl shadow-sm p-8",children:r.jsxs("form",{onSubmit:m,className:"space-y-5",children:[r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(Be,{htmlFor:"username",className:"text-stone-700 text-sm font-medium",children:"Username"}),r.jsxs("div",{className:"relative",children:[r.jsx(lv,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-stone-400"}),r.jsx(ze,{id:"username",type:"text",value:a,onChange:h=>l(h.target.value),placeholder:"Enter your username",className:"pl-9 border-stone-200 focus:border-stone-400 focus:ring-stone-300",autoComplete:"username",required:!0})]})]}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx(Be,{htmlFor:"password",className:"text-stone-700 text-sm font-medium",children:"Password"}),r.jsxs("div",{className:"relative",children:[r.jsx(zx,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-stone-400"}),r.jsx(ze,{id:"password",type:"password",value:o,onChange:h=>c(h.target.value),placeholder:"Enter your password",className:"pl-9 border-stone-200 focus:border-stone-400 focus:ring-stone-300",autoComplete:"current-password",required:!0})]})]}),r.jsx(He,{type:"submit",disabled:f.isPending||!a.trim()||!o,className:"w-full bg-stone-800 hover:bg-stone-700 text-white font-medium py-2.5 rounded-lg transition-colors",children:f.isPending?"Signing in…":"Sign In"})]})}),r.jsx("p",{className:"text-center text-xs text-stone-400 mt-6",children:"Having trouble? Contact your system administrator."})]})})}function hC(){const[,n]=ua(),[a,l]=w.useState(""),[o,c]=w.useState(!1),f=je.familyAuth.login.useMutation({onSuccess:h=>{Ee.success("Welcome. You now have access to the family portal."),n(`/family-portal/${h.obituaryId}`)},onError:h=>{Ee.error(h.message||"Invalid access code. Please check with the funeral home."),c(!1)}}),m=h=>{h.preventDefault(),a.trim()&&(c(!0),f.mutate({accessCode:a.trim()}))};return r.jsxs("div",{className:"min-h-screen bg-stone-50 flex flex-col",children:[r.jsx("div",{className:"h-20"}),r.jsx("div",{className:"flex-1 flex items-center justify-center px-4 py-16",children:r.jsxs("div",{className:"w-full max-w-md",children:[r.jsx("div",{className:"flex justify-center mb-8",children:r.jsx("div",{className:"w-16 h-16 rounded-full bg-amber-50 border border-amber-200 flex items-center justify-center",children:r.jsx(na,{className:"w-7 h-7 text-amber-600"})})}),r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("h1",{className:"font-serif text-3xl text-stone-800 mb-3",children:"Family Portal"}),r.jsx("p",{className:"text-stone-500 leading-relaxed",children:"Enter the access code provided by Henry W. Anderson Funeral & Cremation Service to manage your loved one's memorial page."})]}),r.jsxs("form",{onSubmit:m,className:"bg-white rounded-2xl border border-stone-200 shadow-sm p-8",children:[r.jsxs("div",{className:"mb-6",children:[r.jsx("label",{className:"block text-sm font-medium text-stone-700 mb-2",children:"Access Code"}),r.jsxs("div",{className:"relative",children:[r.jsx(sv,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-stone-400"}),r.jsx(ze,{value:a,onChange:h=>l(h.target.value.toUpperCase()),placeholder:"e.g. ABCD1234",className:"pl-10 font-mono text-lg tracking-widest text-center uppercase",maxLength:8,autoFocus:!0})]}),r.jsx("p",{className:"text-xs text-stone-400 mt-2 text-center",children:"Your 8-character code was provided by our staff"})]}),r.jsx(He,{type:"submit",disabled:o||a.length<4,className:"w-full bg-stone-800 hover:bg-stone-700 text-white py-3 rounded-xl font-medium",children:o?"Verifying...":"Access Memorial Portal"})]}),r.jsxs("p",{className:"text-center text-sm text-stone-400 mt-6",children:["Don't have a code?"," ",r.jsx("a",{href:"/contact",className:"text-amber-700 hover:underline",children:"Contact us"})," ","and we'll send one to your family."]})]})})]})}function pC(){const{id:n}=xv(),a=Number(n),[,l]=ua(),[o,c]=w.useState("overview"),{data:f,isLoading:m}=je.familyAuth.me.useQuery(),h=je.familyAuth.logout.useMutation({onSuccess:()=>l("/family-login")}),{data:p}=je.obituaries.list.useQuery({page:1,pageSize:100},{enabled:!!f}),x=p?.items?.find(N=>N.id===a),{data:v,refetch:b}=je.lifeEvents.list.useQuery({obituaryId:a},{enabled:!!f&&!!a}),{data:j,refetch:C}=je.memorialPhotos.list.useQuery({obituaryId:a},{enabled:!!f&&!!a}),T=je.lifeEvents.create.useMutation({onSuccess:()=>{b(),te({year:"",title:"",description:""}),Ee.success("Life event added")},onError:N=>Ee.error(N.message)}),S=je.lifeEvents.delete.useMutation({onSuccess:()=>{b(),Ee.success("Event removed")}}),U=je.memorialPhotos.create.useMutation({onSuccess:()=>{C(),Ee.success("Photo added")},onError:N=>Ee.error(N.message)}),_=je.memorialPhotos.delete.useMutation({onSuccess:()=>{C(),Ee.success("Photo removed")}}),[Z,te]=w.useState({year:"",title:"",description:""}),[oe,X]=w.useState(!1),F=w.useRef(null),[z,q]=w.useState(!1),ne=async N=>{const L=N.target.files?.[0];if(L){q(!0);try{const O=await new Promise((E,G)=>{const k=new FileReader;k.onload=()=>E(k.result.split(",")[1]),k.onerror=G,k.readAsDataURL(L)}),ae=await fetch("/api/upload-photo",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({data:O,mimeType:L.type,fileName:L.name})});if(!ae.ok)throw new Error("Upload failed");const{url:me}=await ae.json();await U.mutateAsync({obituaryId:a,url:me,uploadedBy:"family"}),Ee.success("Photo uploaded.")}catch{Ee.error("Photo upload failed. Please try again.")}finally{q(!1),F.current&&(F.current.value="")}}},[se,K]=w.useState(!1),[I,ce]=w.useState(""),ie=je.familyPortal.updateBio.useMutation({onSuccess:()=>{K(!1),Ee.success("Bio updated.")},onError:N=>Ee.error(N.message)});if(m)return r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center",children:r.jsx("div",{className:"text-stone-400",children:"Loading..."})});if(!f||f.obituaryId!==a)return r.jsx("div",{className:"min-h-screen bg-stone-50 flex items-center justify-center px-4",children:r.jsxs("div",{className:"text-center",children:[r.jsx(na,{className:"w-10 h-10 text-stone-300 mx-auto mb-4"}),r.jsx("h2",{className:"font-serif text-2xl text-stone-700 mb-3",children:"Access Required"}),r.jsx("p",{className:"text-stone-500 mb-6",children:"Please log in with your family access code."}),r.jsx(He,{onClick:()=>
349l("/family-login"),className:"bg-stone-800 text-white",children:"Enter Access Code"})]})});const de=[{id:"overview",label:"Overview",icon:na},{id:"timeline",label:"Life Timeline",icon:La},{id:"photos",label:"Photos",icon:Dd}];return r.jsxs("div",{className:"min-h-screen bg-stone-50",children:[r.jsx("div",{className:"h-20"}),r.jsxs("div",{className:"bg-white border-b border-stone-200 shadow-sm",children:[r.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-5 flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 text-amber-700 text-sm font-medium mb-1",children:[r.jsx(na,{className:"w-4 h-4"}),"Family Portal"]}),r.jsx("h1",{className:"font-serif text-2xl text-stone-800",children:x?`${x.firstName} ${x.lastName}`:"Memorial Page"})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[x&&r.jsx("a",{href:`/obituaries/${x.slug}`,target:"_blank",className:"text-sm text-stone-500 hover:text-stone-700 underline",children:"View Public Page"}),r.jsxs(He,{variant:"outline",size:"sm",onClick:()=>h.mutate(),className:"text-stone-600 border-stone-300",children:[r.jsx(av,{className:"w-4 h-4 mr-1"}),"Sign Out"]})]})]}),r.jsx("div",{className:"max-w-4xl mx-auto px-4",children:r.jsx("div",{className:"flex gap-1",children:de.map(N=>r.jsxs("button",{onClick:()=>c(N.id),className:`flex items-center gap-2 px-5 py-3 text-sm font-medium border-b-2 transition-colors ${o===N.id?"border-amber-600 text-amber-700":"border-transparent text-stone-500 hover:text-stone-700"}`,children:[r.jsx(N.icon,{className:"w-4 h-4"}),N.label]},N.id))})})]}),r.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-10",children:[o==="overview"&&r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"bg-white rounded-2xl border border-stone-200 p-8",children:[r.jsx("h2",{className:"font-serif text-xl text-stone-800 mb-4",children:"About This Portal"}),r.jsxs("p",{className:"text-stone-600 leading-relaxed mb-6",children:["Welcome to the family portal for"," ",r.jsx("strong",{children:x?`${x.firstName} ${x.lastName}`:"your loved one"}),". Here you can enrich the memorial page with life events and photos that will be visible to all visitors. These additions help create a lasting tribute that celebrates a full life."]}),r.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[r.jsxs("div",{onClick:()=>c("timeline"),className:"bg-amber-50 border border-amber-200 rounded-xl p-5 cursor-pointer hover:bg-amber-100 transition-colors",children:[r.jsx(La,{className:"w-6 h-6 text-amber-700 mb-3"}),r.jsx("h3",{className:"font-medium text-stone-800 mb-1",children:"Life Timeline"}),r.jsx("p",{className:"text-sm text-stone-500",children:"Add milestones, memories, and key moments from their life."}),r.jsxs("p",{className:"text-sm text-amber-700 font-medium mt-2",children:[v?.length||0," events added →"]})]}),r.jsxs("div",{onClick:()=>c("photos"),className:"bg-stone-50 border border-stone-200 rounded-xl p-5 cursor-pointer hover:bg-stone-100 transition-colors",children:[r.jsx(Dd,{className:"w-6 h-6 text-stone-600 mb-3"}),r.jsx("h3",{className:"font-medium text-stone-800 mb-1",children:"Photo Gallery"}),r.jsx("p",{className:"text-sm text-stone-500",children:"Share photos that celebrate their life and legacy."}),r.jsxs("p",{className:"text-sm text-stone-600 font-medium mt-2",children:[j?.length||0," photos added →"]})]})]})]}),x&&r.jsxs("div",{className:"bg-white rounded-2xl border border-stone-200 p-8",children:[r.jsxs("div",{className:"flex gap-6 items-start mb-6",children:[x.photoUrl&&r.jsx("img",{src:x.photoUrl,alt:`${x.firstName} ${x.lastName}`,className:"w-24 h-24 rounded-full object-cover border-2 border-stone-200 flex-shrink-0"}),r.jsxs("div",{children:[r.jsxs("h3",{className:"font-serif text-lg text-stone-800",children:[x.firstName," ",x.lastName]}),x.birthDate&&x.deathDate&&r.jsxs("p",{className:"text-stone-500 text-sm mt-1",children:[new Date(x.birthDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})," – ",new Date(x.deathDate).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]}),r.jsx("a",{href:`/obituaries/${x.slug}`,target:"_blank",className:"inline-block mt-3 text-sm text-amber-700 hover:underline",children:"View full memorial page →"})]})]}),r.jsxs("div",{className:"border-t border-stone-100 pt-5",children:[r.jsxs("div",{className:"flex items-center justify-between mb-3",children:[r.jsx("h4",{className:"font-medium text-stone-700",children:"Obituary Bio"}),!se&&r.jsxs(He,{variant:"outline",size:"sm",onClick:()=>{ce(x.bio||""),K(!0)},className:"text-stone-600 border-stone-300 gap-1",children:[r.jsx(R4,{className:"w-3 h-3"}),"Edit Bio"]})]}),se?r.jsxs("div",{className:"space-y-3",children:[r.jsx(tl,{value:I,onChange:N=>ce(N.target.value),rows:8,className:"text-sm leading-relaxed",placeholder:"Write a tribute for your loved one..."}),r.jsxs("div",{className:"flex gap-2",children:[r.jsxs(He,{onClick:()=>ie.mutate({obituaryId:a,bio:I}),disabled:ie.isPending,className:"bg-stone-800 text-white gap-1",size:"sm",children:[r.jsx(Vi,{className:"w-3 h-3"}),ie.isPending?"Saving…":"Save Bio"]}),r.jsxs(He,{variant:"outline",size:"sm",onClick:()=>K(!1),children:[r.jsx(aa,{className:"w-3 h-3 mr-1"}),"Cancel"]})]})]}):r.jsx("p",{className:"text-stone-600 text-sm leading-relaxed whitespace-pre-wrap",children:x.bio||r.jsx("span",{className:"text-stone-400 italic",children:"No bio written yet. Click Edit Bio to add one."})})]})]})]}),o==="timeline"&&r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"font-serif text-2xl text-stone-800",children:"Life Timeline"}),r.jsx("p",{className:"text-stone-500 text-sm mt-1",children:"Add key moments and milestones from their life"})]}),r.jsxs(He,{onClick:()=>X(!oe),className:"bg-amber-700 hover:bg-amber-800 text-white gap-2",children:[r.jsx(Qo,{className:"w-4 h-4"}),"Add Event"]})]}),oe&&r.jsxs("div",{className:"bg-white rounded-2xl border border-amber-200 p-6 shadow-sm",children:[r.jsx("h3",{className:"font-medium text-stone-800 mb-4",children:"New Life Event"}),r.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-4",children:[r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-stone-600 mb-1",children:"Year *"}),r.jsx(ze,{value:Z.year,onChange:N=>te({...Z,year:N.target.value}),placeholder:"e.g. 1965",maxLength:10})]}),r.jsxs("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-stone-600 mb-1",children:"Title *"}),r.jsx(ze,{value:Z.title,onChange:N=>te({...Z,title:N.target.value}),placeholder:"e.g. Married Jane Smith"})]})]}),r.jsxs("div",{className:"mb-4",children:[r.jsx("label",{className:"block text-sm font-medium text-stone-600 mb-1",children:"Description (optional)"}),r.jsx(tl,{value:Z.description,onChange:N=>te({...Z,description:N.target.value}),placeholder:"Add a brief description or memory...",rows:3})]}),r.jsxs("div",{className:"flex gap-3",children:[r.jsxs(He,{onClick:()=>
349{if(!Z.year||!Z.title){Ee.error("Year and title are required");return}T.mutate({obituaryId:a,year:Z.year,title:Z.title,description:Z.description||void 0}),X(!1)},disabled:T.isPending,className:"bg-stone-800 text-white",children:[r.jsx(Vi,{className:"w-4 h-4 mr-1"}),"Save Event"]}),r.jsxs(He,{variant:"outline",onClick:()=>{X(!1),te({year:"",title:"",description:""})},children:[r.jsx(aa,{className:"w-4 h-4 mr-1"}),"Cancel"]})]})]}),!v||v.length===0?r.jsxs("div",{className:"bg-white rounded-2xl border border-stone-200 p-12 text-center",children:[r.jsx(La,{className:"w-10 h-10 text-stone-300 mx-auto mb-4"}),r.jsx("p",{className:"text-stone-500 mb-2",children:"No life events added yet"}),r.jsx("p",{className:"text-stone-400 text-sm",children:'Click "Add Event" to begin building the timeline'})]}):r.jsx("div",{className:"space-y-3",children:[...v].sort((N,L)=>N.year.localeCompare(L.year)).map(N=>r.jsxs("div",{className:"bg-white rounded-xl border border-stone-200 p-5 flex gap-4 items-start group",children:[r.jsx("div",{className:"w-16 flex-shrink-0 text-center",children:r.jsx("span",{className:"font-serif text-lg text-amber-700 font-semibold",children:N.year})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("h4",{className:"font-medium text-stone-800",children:N.title}),N.description&&r.jsx("p",{className:"text-stone-500 text-sm mt-1 leading-relaxed",children:N.description})]}),r.jsx("button",{onClick:()=>S.mutate({id:N.id}),className:"opacity-0 group-hover:opacity-100 transition-opacity text-stone-400 hover:text-red-500 p-1",children:r.jsx(ea,{className:"w-4 h-4"})})]},N.id))})]}),o==="photos"&&r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h2",{className:"font-serif text-2xl text-stone-800",children:"Photo Gallery"}),r.jsx("p",{className:"text-stone-500 text-sm mt-1",children:"Share photos that celebrate their life"})]}),r.jsxs("div",{children:[r.jsx("input",{ref:F,type:"file",accept:"image/jpeg,image/png,image/webp",className:"hidden",onChange:ne}),r.jsxs(He,{onClick:()=>F.current?.click(),disabled:z,className:"bg-amber-700 hover:bg-amber-800 text-white gap-2",children:[r.jsx(xf,{className:"w-4 h-4"}),z?"Uploading...":"Upload Photo"]})]})]}),!j||j.length===0?r.jsxs("div",{className:"bg-white rounded-2xl border border-stone-200 p-12 text-center",children:[r.jsx(Dd,{className:"w-10 h-10 text-stone-300 mx-auto mb-4"}),r.jsx("p",{className:"text-stone-500 mb-2",children:"No photos added yet"}),r.jsx("p",{className:"text-stone-400 text-sm",children:"Upload photos to create a gallery on the memorial page"}),r.jsxs(He,{onClick:()=>F.current?.click(),variant:"outline",className:"mt-4",children:[r.jsx(xf,{className:"w-4 h-4 mr-2"}),"Upload First Photo"]})]}):r.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-4",children:j.map(N=>r.jsxs("div",{className:"group relative bg-white rounded-xl border border-stone-200 overflow-hidden",children:[r.jsx("img",{src:N.url,alt:N.caption||"Memorial photo",className:"w-full aspect-square object-cover"}),N.caption&&r.jsx("div",{className:"p-2 text-xs text-stone-500 truncate",children:N.caption}),r.jsx("button",{onClick:()=>_.mutate({id:N.id}),className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity bg-red-500 text-white rounded-full p-1 shadow",children:r.jsx(aa,{className:"w-3 h-3"})})]},N.id))})]})]})]})}function Jx(n){if(!n)return null;try{return new Date(n).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return n}}function xC({slug:n}){const{data:a,isLoading:l}=je.obituaries.bySlug.useQuery({slug:n}),{data:o}=je.qrCode.generate.useQuery({slug:n},{enabled:!!n});if(w.useEffect(()=>{a&&o&&(document.title=`Memorial Card — ${a.firstName} ${a.lastName}`)},[a,o]),l)return r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white",children:r.jsx("div",{className:"w-6 h-6 border-2 border-stone-300 border-t-stone-700 rounded-full animate-spin"})});if(!a)return r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-white",children:r.jsx("p",{className:"text-stone-500 font-sans",children:"Memorial not found."})});const c=`${a.firstName}${a.middleName?" "+a.middleName:""} ${a.lastName}`,f=Jx(a.birthDate),m=Jx(a.deathDate),h=f&&m?`${f} – ${m}`:f||m||"",p=a.bio?a.bio.replace(/<[^>]*>/g," ").replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&nbsp;/g," ").replace(/&mdash;/g,"—").replace(/&ndash;/g,"–").replace(/&ldquo;/g,"“").replace(/&rdquo;/g,"”").replace(/&lsquo;/g,"‘").replace(/&rsquo;/g,"’").replace(/&hellip;/g,"…").replace(/\s+/g," ").trim():null,x=p?p.length>300?p.slice(0,297).trim()+"…":p:null;return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"print:hidden min-h-screen bg-stone-100 flex flex-col items-center justify-center p-8",children:r.jsxs("div",{className:"bg-white rounded-xl border border-stone-200 shadow-sm p-8 max-w-md text-center",children:[r.jsx("h1",{className:"font-serif text-2xl text-stone-800 mb-3",children:"Memorial Card"}),r.jsxs("p",{className:"font-sans text-stone-500 text-sm mb-6 leading-relaxed",children:["This page is formatted as a printable 5×7 memorial card for"," ",r.jsx("strong",{className:"text-stone-700",children:c}),". Use your browser's print function to print or save as PDF."]}),r.jsx("button",{onClick:()=>window.print(),className:"bg-stone-800 hover:bg-stone-700 text-white font-sans text-sm px-6 py-2.5 rounded-lg transition-colors",children:"Print Memorial Card"}),r.jsx("p",{className:"font-sans text-xs text-stone-400 mt-4",children:"Tip: Set paper size to 5×7 in print settings for best results."})]})}),r.jsxs("div",{className:"hidden print:block",style:{width:"5in",height:"7in",margin:"0 auto",fontFamily:"Georgia, serif",backgroundColor:"#ffffff",position:"relative",overflow:"hidden"},children:[r.jsx("div",{style:{height:"6px",background:"linear-gradient(to right, #92400e, #d97706, #92400e)"}}),r.jsxs("div",{style:{padding:"0.4in 0.45in 0.35in",height:"calc(7in - 6px)",display:"flex",flexDirection:"column"},children:[r.jsx("div",{style:{textAlign:"center",marginBottom:"0.2in"},children:r.jsx("p",{style:{fontFamily:"Georgia, serif",fontSize:"8pt",letterSpacing:"0.12em",textTransform:"uppercase",color:"#78716c",margin:0},children:"Henry W. Anderson Funeral & Cremation Service"})}),r.jsxs("div",{style:{display:"flex",gap:"0.25in",alignItems:"flex-start",marginBottom:"0.2in"},children:[a.photoUrl&&r.jsx("div",{style:{flexShrink:0},children:r.jsx("img",{src:a.photoUrl,alt:c,style:{width:"1.3in",height:"1.6in",objectFit:"cover",objectPosition:"top",border:"1px solid #e7e5e4"}})}),r.jsxs("div",{style:{flex:1},children:[r.jsx("p",{style:{fontFamily:"Georgia, serif",fontSize:"7pt",letterSpacing:"0.18em",textTransform:"uppercase",color:"#b45309",marginBottom:"0.06in",marginTop:0},children:"In Loving Memory"}),r.jsx("h1",{style:{fontFamily:"Georgia, serif",fontSize:"18pt",color:"#1c1917",margin:"0 0 0.06in 0",lineHeight:1.2},children:c}),h&&r.jsx("p",{style:{fontFamily:"Arial, sans-serif",fontSize:"9pt",color:"#57534e",margin:0},children:h}),a.age&&r.jsxs("p",{style:{fontFamily:"Arial, sans-serif",fontSize:"8pt",color:"#78716c",margin:"0.04in 0 0 0"},children:["Age ",a.age]})]})]}),r.jsx("div",{style:{height:"1px",background:"#e7e5e4",margin:"0 0 0.18in 0"}}),x&&r.jsx("div",{style:{flex:1,marginBottom:"0.18in"},children:r.jsx("p",{style:{fontFamily:"Arial, sans-serif",fontSize:"8.5pt",color:"#44403c",lineHeight:1.55,margin:0},children:x})}),!x&&r.jsx("div",{style:{flex:1}}),r.jsx("div",{style:{height:"1px",background:"#e7e5e4",margin:"0 0 0.18in 0"}}),r.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.2in"},children:[o?.dataUrl&&r.jsx("img",{src:o.dataUrl,alt:"Scan to visit memorial",style:{width:"0.9in",height:"0.9in",flexShrink:0}}),r.jsxs("div",{children:[r.jsx("p",{style:{fontFamily:"Arial, sans-serif",fontSize:"7.5pt",color:"#78716c",margin:"0 0 0.04in 0"},children:"Scan to visit the online memorial"}),r.jsx("p",{style:{fontFamily:"Arial, sans-serif",fontSize:"7pt",color:"#a8a29e",margin:0,wordBreak:"break-all"},children:o?.url||`henrywanderson.com/obituaries/${n}`})]})]})]}),r.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"4px",background:"linear-gradient(to right, #92400e, #d97706, #92400e)"}})]}),r.jsx("style",{children:`
350        @media print {
351          @page {
352            size: 5in 7in;
353            margin: 0;
354          }
355          body {
356            margin: 0;
357            padding: 0;
358          }
359        }
360      `})]})}function Hd(n){if(!n)return null;try{return new Date(n).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return n}}const gC=[{icon:js,title:"Fresh, Hand-Arranged",description:"Every arrangement is made fresh and hand-delivered by a local florist."},{icon:G4,title:"Local Delivery",description:"Flowers delivered to the service venue or directly to the family's home."},{icon:La,title:"Flexible Dates",description:"Choose the delivery date — same-day and next-day options available."},{icon:P4,title:"Secure Checkout",description:"Payments processed securely via Authorize.net. Card details never stored."}];function Wx(){const[n,a]=w.useState(""),[l,o]=w.useState(""),[c,f]=w.useState(null),[m,h]=w.useState(!1),[p,x]=w.useState(!1),{data:v}=je.obituaries.serviceDetails.useQuery({obituaryId:c?.id??0},{enabled:!!c?.id}),{data:b,isLoading:j}=je.obituaries.list.useQuery({search:n||void 0,page:1,pageSize:20}),C=_=>{_.preventDefault(),a(l)},T=_=>{f(_),h(!0)}
360,S=c?[c.firstName,c.middleName,c.lastName].filter(Boolean).join(" "):void 0,U=(v??[]).map(_=>({id:_.id,serviceType:_.serviceType,serviceDate:_.serviceDate,serviceTime:_.serviceTime,locationName:_.locationName,locationAddress:_.locationAddress}));return r.jsxs("div",{className:"min-h-screen bg-stone-50",children:[r.jsx("section",{className:"bg-stone-800 pt-28 pb-14 px-4",children:r.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-amber-400 mb-4",children:"Sympathy Store"}),r.jsx("h1",{className:"font-serif text-4xl md:text-5xl text-white mb-5 leading-tight",children:"Send Flowers & Gifts"}),r.jsx("p",{className:"font-sans text-stone-300 text-base leading-relaxed mb-8 max-w-xl mx-auto",children:"Honor a loved one with a beautiful floral arrangement. Select the person you'd like to honor below — we'll guide you through delivery options tied to their service."}),r.jsxs("button",{onClick:()=>x(!0),className:"inline-flex items-center gap-2.5 border border-stone-500 hover:border-white text-stone-300 hover:text-white font-sans text-sm tracking-wide px-6 py-3 transition-all duration-200",children:[r.jsx(js,{size:15}),"Browse Without Selecting a Person"]})]})}),r.jsx("section",{className:"bg-white border-b border-stone-100 py-12 px-4",children:r.jsx("div",{className:"max-w-5xl mx-auto",children:r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8",children:gC.map(_=>r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"flex justify-center mb-3",children:r.jsx("div",{className:"w-10 h-10 rounded-full bg-amber-50 border border-amber-100 flex items-center justify-center",children:r.jsx(_.icon,{size:18,className:"text-amber-700"})})}),r.jsx("h3",{className:"font-serif text-stone-800 text-sm mb-1",children:_.title}),r.jsx("p",{className:"font-sans text-xs text-stone-500 leading-relaxed",children:_.description})]},_.title))})})}),r.jsx("section",{className:"py-14 px-4",children:r.jsxs("div",{className:"max-w-5xl mx-auto",children:[r.jsxs("div",{className:"text-center mb-10",children:[r.jsx("p",{className:"font-sans text-xs tracking-[0.2em] uppercase text-stone-400 mb-3",children:"Select a Person"}),r.jsx("h2",{className:"font-serif text-3xl text-stone-800 mb-4",children:"Who Would You Like to Honor?"}),r.jsx("p",{className:"font-sans text-stone-500 text-sm leading-relaxed max-w-lg mx-auto",children:"Choose the person below and we'll pre-fill the delivery details with their service information so your flowers arrive at the right place at the right time."})]}),r.jsxs("form",{onSubmit:C,className:"flex gap-3 max-w-md mx-auto mb-10",children:[r.jsxs("div",{className:"relative flex-1",children:[r.jsx(iv,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-stone-400"}),r.jsx("input",{type:"text",value:l,onChange:_=>o(_.target.value),placeholder:"Search by name…",className:"w-full pl-9 pr-4 py-2.5 border border-stone-200 bg-white font-sans text-sm text-stone-800 focus:outline-none focus:border-stone-400 transition-colors"})]}),r.jsx("button",{type:"submit",className:"px-5 py-2.5 bg-stone-800 text-white font-sans text-sm hover:bg-stone-700 transition-colors",children:"Search"})]}),j?r.jsx("div",{className:"flex justify-center py-20",children:r.jsx(Bi,{size:28,className:"animate-spin text-stone-300"})}):b?.items?.length?r.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:b.items.map(_=>r.jsxs("button",{onClick:()=>T(_),className:"group text-left bg-white border border-stone-100 hover:border-emerald-300 hover:shadow-lg transition-all duration-200 overflow-hidden",children:[r.jsx("div",{className:"aspect-[4/3] overflow-hidden bg-stone-100",children:_.photoUrl?r.jsx("img",{src:_.photoUrl,alt:`${_.firstName} ${_.lastName}`,className:"w-full h-full object-cover object-top group-hover:scale-105 transition-transform duration-500"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center bg-gradient-to-br from-stone-100 to-stone-200",children:r.jsxs("span",{className:"font-serif text-5xl text-stone-300",children:[_.firstName[0],_.lastName[0]]})})}),r.jsxs("div",{className:"p-5",children:[r.jsxs("h3",{className:"font-serif text-stone-800 text-lg leading-snug mb-1",children:[_.firstName,_.middleName?` ${_.middleName}`:""," ",_.lastName]}),(_.birthDate||_.deathDate)&&r.jsxs("p",{className:"font-sans text-xs text-stone-400 mb-3 tracking-wide",children:[_.birthDate&&_.deathDate?`${Hd(_.birthDate)} – ${Hd(_.deathDate)}`:_.deathDate?`Passed ${Hd(_.deathDate)}`:_.birthDate,_.age?` · Age ${_.age}`:""]}),r.jsxs("div",{className:"flex items-center justify-between pt-3 border-t border-stone-50",children:[r.jsxs("span",{className:"font-sans text-xs text-emerald-700 flex items-center gap-1",children:[r.jsx(js,{size:12}),"Send Flowers"]}),r.jsx(ut,{size:14,className:"text-stone-300 group-hover:text-emerald-600 transition-colors"})]})]})]},_.id))}):r.jsxs("div",{className:"text-center py-20",children:[r.jsx("p",{className:"font-serif text-xl text-stone-400 mb-3",children:"No obituaries found"}),n&&r.jsx("button",{onClick:()=>{a(""),o("")},className:"font-sans text-sm text-amber-700 hover:underline",children:"Clear search"})]}),r.jsxs("div",{className:"mt-12 text-center border-t border-stone-100 pt-10",children:[r.jsx("p",{className:"font-sans text-sm text-stone-500 mb-4",children:"Don't see the person you're looking for, or want to send a general sympathy gift?"}),r.jsxs("button",{onClick:()=>x(!0),className:"inline-flex items-center gap-2 bg-stone-800 hover:bg-stone-700 text-white font-sans text-sm tracking-wide px-6 py-3 transition-all duration-200",children:[r.jsx(js,{size:15}),"Browse All Arrangements"]})]})]})}),r.jsx("section",{className:"py-14 px-4 bg-white border-t border-stone-100",children:r.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[r.jsx(na,{size:18,className:"text-amber-600 mx-auto mb-4"}),r.jsx("p",{className:"font-serif text-xl text-stone-700 leading-relaxed italic",children:'"Flowers speak when words fall short. A simple arrangement can carry more comfort than any message."'}),r.jsx("div",{className:"mt-6 h-px w-16 bg-amber-600/30 mx-auto"}),r.jsxs("p",{className:"mt-6 font-sans text-sm text-stone-500",children:["Questions about flower delivery?"," ",r.jsx("a",{href:"/contact",className:"text-amber-700 hover:underline",children:"Contact us"})," ","and we'll help coordinate."]})]})}),m&&c&&r.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 flex items-start justify-center overflow-y-auto py-8 px-4",children:r.jsx("div",{className:"bg-white w-full max-w-2xl shadow-2xl",children:r.jsx(bf,{onClose:()=>{h(!1),f(null)},deceasedName:S,serviceEvents:U})})}),p&&r.jsx("div",{className:"fixed inset-0 z-50 bg-black/50 flex items-start justify-center overflow-y-auto py-8 px-4",children:r.jsx("div",{className:"bg-white w-full max-w-2xl shadow-2xl",children:r.jsx(bf,{onClose:()=>x(!1),recipient:{name:"The Family",institution:"Henry W. Anderson Funeral & Cremation Service",address1:"14850 Garrett Avenue",city:"Apple Valley",state:"MN",zipcode:"55124",phone:"9524322331"}})})})]})}function bC(){const[n]=ua();return w.useEffect(()=>{const a=window.location.hash;if(a){const l=setTimeout(()=>{const o=document.querySelector(a);if(o){const f=o.getBoundingClientRect().top+window.scrollY-100;window.scrollTo({top:f,behavior:"smooth"})}},100);return()=>clearTimeout(l)}else window.scrollTo({top:0,behavior:"instant"})},[n]),null}function vs({children:n}){return r.jsxs("div",{className:"min-h-screen flex flex-col",children:[r.jsx(p3,{}),r.jsx("main",{className:"flex-1",children:n}),r.jsx(x3,{})]})}function vC(){return r.jsxs(r.Fragment,{children:[r.jsx(bC,{}),r.jsxs(d3,{children:[r.jsx(Et,{path:"/",component:()=>r.jsx(vs,{children:r.jsx(j3,{})})}),r.jsx(Et,{path:"/about",component:()=>r.jsx(vs,{children:r.jsx(z3,{})})}),r.jsx(Et,{path:"/services",component:()=>r.jsx(vs,{children:r.jsx(k3,{})})}),r.jsx(Et,{path:"/facilities",component:()=>r.jsx(vs,{children:r.jsx(L3,{})})}),r.jsx(Et,{path:"/obituaries",component:()=>r.jsx(vs,{children:r.jsx(H3,{})})}),r.jsx(Et,{path:"/obituaries/:slug",component:({params:n})=>r.jsx(vs,{children:r.jsx(eC,{slug:n.slug})})}),r.jsx(Et,{path:"/contact",component:()=>r.jsx(vs,{children:r.jsx(tC,{})})}),r.jsx(Et,{path:"/staff-login",component:mC}),r.jsx(Et,{path:"/admin",component:nC}),r.jsx(Et,{path:"/admin/obituaries/new",component:()=>r.jsx(Ix,{id:null})}),r.jsx(Et,{path:"/admin/obituaries/:id",component:({params:n})=>r.jsx(Ix,{id:Number(n.id)})}),r.jsx(Et,{path:"/family-login",component:hC}),r.jsx(Et,{path:"/family-portal/:id",component:({params:n})=>r.jsx(pC,{})}),r.jsx(Et,{path:"/sympathy-store",component:()=>r.jsx(vs,{children:r.jsx(Wx,{})})}),r.jsx(Et,{path:"/send-flowers",component:()=>r.jsx(vs,{children:r.jsx(Wx,{})})}
360),r.jsx(Et,{path:"/memorial-card/:slug",component:({params:n})=>r.jsx(xC,{slug:n.slug})}),r.jsx(Et,{path:"/404",component:Yx}),r.jsx(Et,{component:Yx})]})]})}function yC(){return r.jsx(f3,{children:r.jsx(h3,{defaultTheme:"light",children:r.jsxs(b4,{children:[r.jsx(ON,{}),r.jsx(vC,{})]})})})}const Go=new Oj,Qv=n=>{!(n instanceof qr)||typeof window>"u"||!(n.message===cw)||(window.location.href=kv())};Go.getQueryCache().subscribe(n=>{if(n.type==="updated"&&n.action.type==="error"){const a=n.query.state.error;Qv(a),console.error("[API Query Error]",a)}});Go.getMutationCache().subscribe(n=>{if(n.type==="updated"&&n.action.type==="error"){const a=n.mutation.state.error;Qv(a),console.error("[API Mutation Error]",a)}});const jC=je.createClient({links:[k2({url:"/api/trpc",transformer:Cs,headers(){try{const n=sessionStorage.getItem("manus-cookie");if(n){const a=`${ow}=`,o=n.split(";").find(c=>c.trim().startsWith(a))?.trim().slice(a.length);if(o)return{Authorization:`Bearer ${o}`}}}catch{}return{}},fetch(n,a){return globalThis.fetch(n,{...a??{},credentials:"include"})}})]});pw.createRoot(document.getElementById("root")).render(r.jsx(je.Provider,{client:jC,queryClient:Go,children:r.jsx(Tj,{client:Go,children:r.jsx(yC,{})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.