PageSourceSearch

https://glypsie-shop-ik8thcvb.manus.space/assets/index-Dyk-LKEe.js

js glypsie-shop-ik8thcvb.manus.space collected 2026-10-03 05:01:52 UTC 758,917 bytes, 440 lines download raw bytes

vendor: 27,512 bytes, lines 1-9
1function nN(t,a){for(var s=0;s<a.length;s++){const l=a[s];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in t)){const u=Object.getOwnPropertyDescriptor(l,o);u&&Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function s(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(o){if(o.ep)return;o.ep=!0;const u=s(o);fetch(o.href,u)}})();function Np(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Lf={exports:{}},xo={};/**
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 m0;function aN(){if(m0)return xo;m0=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function s(l,o,u){var d=null;if(u!==void 0&&(d=""+u),o.key!==void 0&&(d=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:t,type:l,key:d,ref:o!==void 0?o:null,props:u}}return xo.Fragment=a,xo.jsx=s,xo.jsxs=s,xo}var p0;function rN(){return p0||(p0=1,Lf.exports=aN()),Lf.exports}var c=rN(),rs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},sN={setTimeout:(t,a)=>setTimeout(t,a),clearTimeout:t=>clearTimeout(t),setInterval:(t,a)=>setInterval(t,a),clearInterval:t=>clearInterval(t)},lN=class{#t=sN;#e=!1;setTimeoutProvider(t){this.#t=t}setTimeout(t,a){return this.#t.setTimeout(t,a)}clearTimeout(t){this.#t.clearTimeout(t)}setInterval(t,a){return this.#t.setInterval(t,a)}clearInterval(t){this.#t.clearInterval(t)}},Kr=new lN;function oN(t){setTimeout(t,0)}var Xr=typeof window>"u"||"Deno"in globalThis;function Lt(){}function iN(t,a){return typeof t=="function"?t(a):t}function Bm(t){return typeof t=="number"&&t>=0&&t!==1/0}function Tb(t,a){return Math.max(t+(a||0)-Date.now(),0)}function gr(t,a){return typeof t=="function"?t(a):t}function kn(t,a){return typeof t=="function"?t(a):t}function h0(t,a){const{type:s="all",exact:l,fetchStatus:o,predicate:u,queryKey:d,stale:f}=t;if(d){if(l){if(a.queryHash!==Ep(d,a.options))return!1}else if(!ko(a.queryKey,d))return!1}if(s!=="all"){const p=a.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof f=="boolean"&&a.isStale()!==f||o&&o!==a.state.fetchStatus||u&&!u(a))}function g0(t,a){const{exact:s,status:l,predicate:o,mutationKey:u}=t;if(u){if(!a.options.mutationKey)return!1;if(s){if(xr(a.options.mutationKey)!==xr(u))return!1}else if(!ko(a.options.mutationKey,u))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function Ep(t,a){return(a?.queryKeyHashFn||xr)(t)}function xr(t){return JSON.stringify(t,(a,s)=>Lm(s)?Object.keys(s).sort().reduce((l,o)=>(l[o]=s[o],l),{}):s)}function ko(t,a){return t===a?!0:typeof t!=typeof a?!1:t&&a&&typeof t=="object"&&typeof a=="object"?Object.keys(a).every(s=>ko(t[s],a[s])):!1}var cN=Object.prototype.hasOwnProperty;function Ap(t,a){if(t===a)return t;const s=x0(t)&&x0(a);if(!s&&!(Lm(t)&&Lm(a)))return a;const o=(s?t:Object.keys(t)).length,u=s?a:Object.keys(a),d=u.length,f=s?new Array(d):{};let p=0;for(let g=0;g<d;g++){const y=s?g:u[g],x=t[y],S=a[y];if(x===S){f[y]=x,(s?g<o:cN.call(t,y))&&p++;continue}if(x===null||S===null||typeof x!="object"||typeof S!="object"){f[y]=S;continue}const C=Ap(x,S);f[y]=C,C===x&&p++}return o===d&&p===o?t:f}function Ro(t,a){if(!a||Object.keys(t).length!==Object.keys(a).length)return!1;for(const s in t)if(t[s]!==a[s])return!1;return!0}function x0(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Lm(t){if(!y0(t))return!1;const a=t.constructor;if(a===void 0)return!0;const s=a.prototype;return!(!y0(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function y0(t){return Object.prototype.toString.call(t)==="[object Object]"}function uN(t){return new Promise(a=>{Kr.setTimeout(a,t)})}function Hm(t,a,s){return typeof s.structuralSharing=="function"?s.structuralSharing(t,a):s.structuralSharing!==!1?Ap(t,a):a}function dN(t,a,s=0){const l=[...t,a];return s&&l.length>s?l.slice(1):l}function fN(t,a,s=0){const l=[a,...t];return s&&l.length>s?l.slice(0,-1):l}var xn=Symbol();function Db(t,a){return!t.queryFn&&a?.initialPromise?()=>a.initialPromise:!t.queryFn||t.queryFn===xn?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function _b(t,a){return typeof t=="function"?t(...a):!!t}var mN=class extends rs{#t;#e;#n;constructor(){super(),this.#n=t=>{if(!Xr&&window.addEventListener){const a=()=>t();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(t){this.#n=t,this.#e?.(),this.#e=t(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(t){this.#t!==t&&(this.#t=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(a=>{a(t)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Op=new mN;function qm(){let t,a;const s=new Promise((o,u)=>{t=o,a=u});s.status="pending",s.catch(()=>{});function l(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{l({status:"fulfilled",value:o}),t(o)},s.reject=o=>{l({status:"rejected",reason:o}),a(o)},s}var pN=oN;function hN(){let t=[],a=0,s=f=>{f()},l=f=>{f()},o=pN;const u=f=>{a?t.push(f):o(()=>{s(f)})},d=()=>{const f=t;t=[],f.length&&o(()=>{l(()=>{f.forEach(p=>{s(p)})})})};return{batch:f=>{let p;a++;try{p=f()}finally{a--,a||d()}return p},batchCalls:f=>(...p)=>{u(()=>{f(...p)})},schedule:u,setNotifyFunction:f=>{s=f},setBatchNotifyFunction:f=>{l=f},setScheduler:f=>{o=f}}}var ut=hN(),gN=class extends rs{#t=!0;#e;#n;constructor(){super(),this.#n=t=>{if(!Xr&&window.addEventListener){const a=()=>t(!0),s=()=>t(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(t){this.#n=t,this.#e?.(),this.#e=t(this.setOnline.bind(this))}setOnline(t){this.#t!==t&&(this.#t=t,this.listeners.forEach(s=>{s(t)}))}isOnline(){return this.#t}},Pc=new gN;function xN(t){return Math.min(1e3*2**t,3e4)}function kb(t){return(t??"online")==="online"?Pc.isOnline():!0}var Im=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Rb(t){let a=!1,s=0,l;const o=qm(),u=()=>o.status!=="pending",d=v=>{if(!u()){const E=new Im(v);S(E),t.onCancel?.(E)}},f=()=>{a=!0},p=()=>{a=!1},g=()=>Op.isFocused()&&(t.networkMode==="always"||Pc.isOnline())&&t.canRun(),y=()=>kb(t.networkMode)&&t.canRun(),x=v=>{u()||(l?.(),o.resolve(v))},S=v=>{u()||(l?.(),o.reject(v))},C=()=>new Promise(v=>{l=E=>{(u()||g())&&v(E)},t.onPause?.()}).then(()=>{l=void 0,u()||t.onContinue?.()}),j=()=>{if(u())return;let v;const E=s===0?t.initialPromise:void 0;try{v=E??t.fn()}catch(N){v=Promise.reject(N)}Promise.resolve(v).then(x).catch(N=>{if(u())return;const D=t.retry??(Xr?0:3),O=t.retryDelay??xN,k=typeof O=="function"?O(s,N):O,U=D===!0||typeof D=="number"&&s<D||typeof D=="function"&&D(s,N);if(a||!U){S(N);return}s++,t.onFail?.(s,N),uN(k).then(()=>g()?void 0:C()).then(()=>{a?S(N):j()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(l?.(),o),cancelRetry:f,continueRetry:p,canStart:y,start:()=>(y()?j():C().then(j),o)}}var Mb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bm(this.gcTime)&&(this.#t=Kr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Xr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Kr.clearTimeout(this.#t),this.#t=void 0)}},yN=class extends Mb{#t;#e;#n;#r;#a;#s;#o;constructor(t){super(),this.#o=!1,this.#s=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=v0(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(t){if(this.options={...this.#s,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=v0(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(t,a){const s=Hm(this.state.data,t,this.options);return this.#l({data:s,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),s}setState(t,a){this.#l({type:"setState",state:t,setStateOptions:a})}cancel(t){const a=this.#a?.promise;return this.#a?.cancel(t),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(t=>kn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===xn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>gr(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Tb(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(a=>a!==t),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(t,a){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const s=new AbortController,l=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,s.signal)})},o=()=>{const f=Db(this.options,a),g=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return l(y),y})();return this.#o=!1,this.options.persister?this.options.persister(f,g,this):f(g)},d=(()=>{const f={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:o};return l(f),f})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#l({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=Rb({initialPromise:a?.initialPromise,fn:d.fetchFn,onCancel:f=>{f instanceof Im&&f.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(f,p)=>{this.#l({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const f=await this.#a.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof Im){if(f.silent)return this.#a.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#l({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#l(t){const a=s=>{switch(t.type){case"failed":return{...s,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...zb(s.data,this.options),fetchMeta:t.meta??null};case"success":const l={...s,data:t.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=t.manual?l:void 0,l;case"error":const o=t.error;return{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...t.state}}};this.state=a(this.state),ut.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function zb(t,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kb(a.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function v0(t){const a=typeof t.initialData=="function"?t.initialData():t.initialData,s=a!==void 0,l=s?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:s?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Go=class extends rs{constructor(t,a){super(),this.options=a,this.#t=t,this.#l=null,this.#o=qm(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#r=void 0;#a;#s;#o;#l;#m;#d;#f;#c;#u;#i;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),b0(this.#e,this.options)?this.#p():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qm(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qm(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#e.removeObserver(this)}setOptions(t){const a=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),a._defaulted&&!Ro(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const l=this.hasListeners();l&&w0(this.#e,s,this.options,a)&&this.#p(),this.updateResult(),l&&(this.#e!==s||kn(this.options.enabled,this.#e)!==kn(a.enabled,this.#e)||gr(this.options.staleTime,this.#e)!==gr(a.staleTime,this.#e))&&this.#g();const o=this.#x();l&&(this.#e!==s||kn(this.options.enabled,this.#e)!==kn(a.enabled,this.#e)||o!==this.#i)&&this.#y(o)}getOptimisticResult(t){const a=this.#t.getQueryCache().build(this.#t,t),s=this.createResult(a,t);return bN(this,s)&&(this.#r=s,this.#s=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#r}trackResult(t,a){return new Proxy(t,{get:(s,l)=>(this.trackProp(l),a?.(l),l==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(s,l))})}trackProp(t){this.#h.add(t)}getCurrentQuery(){return this.#e}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const a=this.#t.defaultQueryOptions(t),s=this.#t.getQueryCache().build(this.#t,a);return s.fetch().then(()=>this.createResult(s,a))}fetch(t){return this.#p({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#p(t){this.#S();let a=this.#e.fetch(this.options,t);return t?.throwOnError||(a=a.catch(Lt)),a}#g(){this.#b();const t=gr(this.options.staleTime,this.#e);if(Xr||this.#r.isStale||!Bm(t))return;const s=Tb(this.#r.dataUpdatedAt,t)+1;this.#c=Kr.setTimeout(()=>{this.#r.isStale||this.updateResult()},s)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(t){this.#w(),this.#i=t,!(Xr||kn(this.options.enabled,this.#e)===!1||!Bm(this.#i)||this.#i===0)&&(this.#u=Kr.setInterval(()=>{(this.options.refetchIntervalInBackground||Op.isFocused())&&this.#p()},this.#i))}#v(){this.#g(),this.#y(this.#x())}#b(){this.#c&&(Kr.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(Kr.clearInterval(this.#u),this.#u=void 0)}createResult(t,a){const s=this.#e,l=this.options,o=this.#r,u=this.#a,d=this.#s,p=t!==s?t.state:this.#n,{state:g}=t;let y={...g},x=!1,S;if(a._optimisticResults){const M=this.hasListeners(),H=!M&&b0(t,a),V=M&&w0(t,s,a,l);(H||V)&&(y={...y,...zb(g.data,t.options)}),a._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:C,errorUpdatedAt:j,status:v}=y;S=y.data;let E=!1;if(a.placeholderData!==void 0&&S===void 0&&v==="pending"){let M;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(M=o.data,E=!0):M=typeof a.placeholderData=="function"?a.placeholderData(this.#f?.state.data,this.#f):a.placeholderData,M!==void 0&&(v="success",S=Hm(o?.data,M,a),x=!0)}if(a.select&&S!==void 0&&!E)if(o&&S===u?.data&&a.select===this.#m)S=this.#d;else try{this.#m=a.select,S=a.select(S),S=Hm(o?.data,S,a),this.#d=S,this.#l=null}catch(M){this.#l=M}this.#l&&(C=this.#l,S=this.#d,j=Date.now(),v="error");const N=y.fetchStatus==="fetching",D=v==="pending",O=v==="error",k=D&&N,U=S!==void 0,T={status:v,fetchStatus:y.fetchStatus,isPending:D,isSuccess:v==="success",isError:O,isInitialLoading:k,isLoading:k,data:S,dataUpdatedAt:y.dataUpdatedAt,error:C,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:N,isRefetching:N&&!D,isLoadingError:O&&!U,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:O&&U,isStale:Tp(t,a),refetch:this.refetch,promise:this.#o,isEnabled:kn(a.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=q=>{T.status==="error"?q.reject(T.error):T.data!==void 0&&q.resolve(T.data)},H=()=>{const q=this.#o=T.promise=qm();M(q)},V=this.#o;switch(V.status){case"pending":t.queryHash===s.queryHash&&M(V);break;case"fulfilled":(T.status==="error"||T.data!==V.value)&&H();break;case"rejected":(T.status!=="error"||T.error!==V.reason)&&H();break}}return T}updateResult(){const t=this.#r,a=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#s=this.options,this.#a.data!==void 0&&(this.#f=this.#e),Ro(a,t))return;this.#r=a;const s=()=>{if(!t)return!0;const{notifyOnChangeProps:l}=this.options,o=typeof l=="function"?l():l;if(o==="all"||!o&&!this.#h.size)return!0;const u=new Set(o??this.#h);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(d=>{const f=d;return this.#r[f]!==t[f]&&u.has(f)})};this.#C({listeners:s()})}#S(){const t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#e)return;const a=this.#e;this.#e=t,this.#n=t.state,this.hasListeners()&&(a?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#C(t){ut.batch(()=>{t.listeners&&this.listeners.forEach(a=>{a(this.#r)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function vN(t,a){return kn(a.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&a.retryOnMount===!1)}function b0(t,a){return vN(t,a)||t.state.data!==void 0&&Qm(t,a,a.refetchOnMount)}function Qm(t,a,s){if(kn(a.enabled,t)!==!1&&gr(a.staleTime,t)!=="static"){const l=typeof s=="function"?s(t):s;return l==="always"||l!==!1&&Tp(t,a)}return!1}function w0(t,a,s,l){return(t!==a||kn(l.enabled,t)===!1)&&(!s.suspense||t.state.status!=="error")&&Tp(t,s)}function Tp(t,a){return kn(a.enabled,t)!==!1&&t.isStaleByTime(gr(a.staleTime,t))}function bN(t,a){return!Ro(t.getCurrentResult(),a)}function Uc(t){return{onFetch:(a,s)=>{const l=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,u=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const g=async()=>{let y=!1;const x=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(a.signal.aborted?y=!0:a.signal.addEventListener("abort",()=>{y=!0}),a.signal)})},S=Db(a.options,a.fetchOptions),C=async(j,v,E)=>{if(y)return Promise.reject();if(v==null&&j.pages.length)return Promise.resolve(j);const D=(()=>{const R={client:a.client,queryKey:a.queryKey,pageParam:v,direction:E?"backward":"forward",meta:a.options.meta};return x(R),R})(),O=await S(D),{maxPages:k}=a.options,U=E?fN:dN;return{pages:U(j.pages,O,k),pageParams:U(j.pageParams,v,k)}};if(o&&u.length){const j=o==="backward",v=j?Pb:Gm,E={pages:u,pageParams:d},N=v(l,E);f=await C(E,N,j)}else{const j=t??u.length;do{const v=p===0?d[0]??l.initialPageParam:Gm(l,f);if(p>0&&v==null)break;f=await C(f,v),p++}while(p<j)}return f};a.options.persister?a.fetchFn=()=>a.options.persister?.(g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},s):a.fetchFn=g}}}function Gm(t,{pages:a,pageParams:s}){const l=a.length-1;return a.length>0?t.getNextPageParam(a[l],a,s[l],s):void 0}function Pb(t,{pages:a,pageParams:s}){return a.length>0?t.getPreviousPageParam?.(a[0],a,s[0],s):void 0}function wN(t,a){return a?Gm(t,a)!=null:!1}function SN(t,a){return!a||!t.getPreviousPageParam?!1:Pb(t,a)!=null}var Ub=class extends Go{constructor(t,a){super(t,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:Uc()})}getOptimisticResult(t){return t.behavior=Uc(),super.getOptimisticResult(t)}fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,a){const{state:s}=t,l=super.createResult(t,a),{isFetching:o,isRefetching:u,isError:d,isRefetchError:f}=l,p=s.fetchMeta?.fetchMore?.direction,g=d&&p==="forward",y=o&&p==="forward",x=d&&p==="backward",S=o&&p==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:wN(a,s.data),hasPreviousPage:SN(a,s.data),isFetchNextPageError:g,isFetchingNextPage:y,isFetchPreviousPageError:x,isFetchingPreviousPage:S,isRefetchError:f&&!g&&!x,isRefetching:u&&!y&&!S}}},CN=class extends Mb{#t;#e;#n;#r;constructor(t){super(),this.#t=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#e=[],this.state=t.state||Bb(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#e.includes(t)||(this.#e.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#e=this.#e.filter(a=>a!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const a=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Rb({fn:()=>this.options.mutationFn?this.options.mutationFn(t,s):Promise.reject(new Error("No mutationFn found")),onFail:(u,d)=>{this.#a({type:"failed",failureCount:u,error:d})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const l=this.state.status==="pending",o=!this.#r.canStart();try{if(l)a();else{this.#a({type:"pending",variables:t,isPaused:o}),await this.#n.config.onMutate?.(t,this,s);const d=await this.options.onMutate?.(t,s);d!==this.state.context&&this.#a({type:"pending",context:d,variables:t,isPaused:o})}const u=await this.#r.start();return await this.#n.config.onSuccess?.(u,t,this.state.context,this,s),await this.options.onSuccess?.(u,t,this.state.context,s),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(u,null,t,this.state.context,s),this.#a({type:"success",data:u}),u}catch(u){try{throw await this.#n.config.onError?.(u,t,this.state.context,this,s),await this.options.onError?.(u,t,this.state.context,s),await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(void 0,u,t,this.state.context,s),u}finally{this.#a({type:"error",error:u})}}finally{this.#n.runNext(this)}}#a(t){const a=s=>{switch(t.type){case"failed":return{...s,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...s,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:t.error,failureCount:s.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=a(this.state),ut.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function Bb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var jN=class extends rs{constructor(t={}){super(),this.config=t,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(t,a,s){const l=new CN({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(a),state:s});return this.add(l),l}add(t){this.#t.add(t);const a=dc(t);
9if(typeof a=="string"){const s=this.#e.get(a);s?s.push(t):this.#e.set(a,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#t.delete(t)){const a=dc(t);if(typeof a=="string"){const s=this.#e.get(a);if(s)if(s.length>1){const l=s.indexOf(t);l!==-1&&s.splice(l,1)}else s[0]===t&&this.#e.delete(a)}}this.notify({type:"removed",mutation:t})}canRun(t){const a=dc(t);if(typeof a=="string"){const l=this.#e.get(a)?.find(o=>o.state.status==="pending");return!l||l===t}else return!0}runNext(t){const a=dc(t);return typeof a=="string"?this.#e.get(a)?.find(l=>l!==t&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ut.batch(()=>{this.#t.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(t){const a={exact:!0,...t};return this.getAll().find(s=>g0(a,s))}findAll(t={}){return this.getAll().filter(a=>g0(t,a))}notify(t){ut.batch(()=>{this.listeners.forEach(a=>{a(t)})})}resumePausedMutations(){const t=this.getAll().filter(a=>a.state.isPaused);return ut.batch(()=>Promise.all(t.map(a=>a.continue().catch(Lt))))}};function dc(t){return t.options.scope?.id}var NN=class extends rs{#t;#e=void 0;#n;#r;constructor(a,s){super(),this.#t=a,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const s=this.options;this.options=this.#t.defaultMutationOptions(a),Ro(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&xr(s.mutationKey)!==xr(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.#a(),this.#s(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#s()}mutate(a,s){return this.#r=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#a(){const a=this.#n?.state??Bb();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}}#s(a){ut.batch(()=>{if(this.#r&&this.hasListeners()){const s=this.#e.variables,l=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};a?.type==="success"?(this.#r.onSuccess?.(a.data,s,l,o),this.#r.onSettled?.(a.data,null,s,l,o)):a?.type==="error"&&(this.#r.onError?.(a.error,s,l,o),this.#r.onSettled?.(void 0,a.error,s,l,o))}this.listeners.forEach(s=>{s(this.#e)})})}};function S0(t,a){const s=new Set(a);return t.filter(l=>!s.has(l))}function EN(t,a,s){const l=t.slice(0);return l[a]=s,l}var AN=class extends rs{#t;#e;#n;#r;#a;#s;#o;#l;#m=[];constructor(t,a,s){super(),this.#t=t,this.#r=s,this.#n=[],this.#a=[],this.#e=[],this.setQueries(a)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(t=>{t.subscribe(a=>{this.#u(t,a)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(t=>{t.destroy()})}setQueries(t,a){this.#n=t,this.#r=a,ut.batch(()=>{const s=this.#a,l=this.#c(this.#n);this.#m=l,l.forEach(y=>y.observer.setOptions(y.defaultedQueryOptions));const o=l.map(y=>y.observer),u=o.map(y=>y.getCurrentResult()),d=s.length!==o.length,f=o.some((y,x)=>y!==s[x]),p=d||f,g=p?!0:u.some((y,x)=>{const S=this.#e[x];return!S||!Ro(y,S)});!p&&!g||(p&&(this.#a=o),this.#e=u,this.hasListeners()&&(p&&(S0(s,o).forEach(y=>{y.destroy()}),S0(o,s).forEach(y=>{y.subscribe(x=>{this.#u(y,x)})})),this.#i()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(t=>t.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(t,a){const s=this.#c(t),l=s.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[l,o=>this.#f(o??l,a),()=>this.#d(l,s)]}#d(t,a){return a.map((s,l)=>{const o=t[l];return s.defaultedQueryOptions.notifyOnChangeProps?o:s.observer.trackResult(o,u=>{a.forEach(d=>{d.observer.trackProp(u)})})})}#f(t,a){return a?((!this.#s||this.#e!==this.#l||a!==this.#o)&&(this.#o=a,this.#l=this.#e,this.#s=Ap(this.#s,a(t))),this.#s):t}#c(t){const a=new Map(this.#a.map(l=>[l.options.queryHash,l])),s=[];return t.forEach(l=>{const o=this.#t.defaultQueryOptions(l),u=a.get(o.queryHash);u?s.push({defaultedQueryOptions:o,observer:u}):s.push({defaultedQueryOptions:o,observer:new Go(this.#t,o)})}),s}#u(t,a){const s=this.#a.indexOf(t);s!==-1&&(this.#e=EN(this.#e,s,a),this.#i())}#i(){if(this.hasListeners()){const t=this.#s,a=this.#d(this.#e,this.#m),s=this.#f(a,this.#r?.combine);t!==s&&ut.batch(()=>
vendor: 13,793 bytes, lines 9-17
9{this.listeners.forEach(l=>{l(this.#e)})})}}},ON=class extends rs{constructor(t={}){super(),this.config=t,this.#t=new Map}#t;build(t,a,s){const l=a.queryKey,o=a.queryHash??Ep(l,a);let u=this.get(o);return u||(u=new yN({client:t,queryKey:l,queryHash:o,options:t.defaultQueryOptions(a),state:s,defaultOptions:t.getQueryDefaults(l)}),this.add(u)),u}add(t){this.#t.has(t.queryHash)||(this.#t.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const a=this.#t.get(t.queryHash);a&&(t.destroy(),a===t&&this.#t.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ut.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#t.get(t)}getAll(){return[...this.#t.values()]}find(t){const a={exact:!0,...t};return this.getAll().find(s=>h0(a,s))}findAll(t={}){const a=this.getAll();return Object.keys(t).length>0?a.filter(s=>h0(t,s)):a}notify(t){ut.batch(()=>{this.listeners.forEach(a=>{a(t)})})}onFocus(){ut.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ut.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},TN=class{#t;#e;#n;#r;#a;#s;#o;#l;constructor(t={}){this.#t=t.queryCache||new ON,this.#e=t.mutationCache||new jN,this.#n=t.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#o=Op.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=Pc.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#o?.(),this.#o=void 0,this.#l?.(),this.#l=void 0)}isFetching(t){return this.#t.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#e.findAll({...t,status:"pending"}).length}getQueryData(t){const a=this.defaultQueryOptions({queryKey:t});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(t){const a=this.defaultQueryOptions(t),s=this.#t.build(this,a),l=s.state.data;return l===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(gr(a.staleTime,s))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(t){return this.#t.findAll(t).map(({queryKey:a,state:s})=>{const l=s.data;return[a,l]})}setQueryData(t,a,s){const l=this.defaultQueryOptions({queryKey:t}),u=this.#t.get(l.queryHash)?.state.data,d=iN(a,u);if(d!==void 0)return this.#t.build(this,l).setData(d,{...s,manual:!0})}setQueriesData(t,a,s){return ut.batch(()=>this.#t.findAll(t).map(({queryKey:l})=>[l,this.setQueryData(l,a,s)]))}getQueryState(t){const a=this.defaultQueryOptions({queryKey:t});return this.#t.get(a.queryHash)?.state}removeQueries(t){const a=this.#t;ut.batch(()=>{a.findAll(t).forEach(s=>{a.remove(s)})})}resetQueries(t,a){const s=this.#t;return ut.batch(()=>(s.findAll(t).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...t},a)))}cancelQueries(t,a={}){const s={revert:!0,...a},l=ut.batch(()=>this.#t.findAll(t).map(o=>o.cancel(s)));return Promise.all(l).then(Lt).catch(Lt)}invalidateQueries(t,a={}){return ut.batch(()=>(this.#t.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},a)))}refetchQueries(t,a={}){const s={...a,cancelRefetch:a.cancelRefetch??!0},l=ut.batch(()=>this.#t.findAll(t).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let u=o.fetch(void 0,s);return s.throwOnError||(u=u.catch(Lt)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(l).then(Lt)}fetchQuery(t){const a=this.defaultQueryOptions(t);a.retry===void 0&&(a.retry=!1);const s=this.#t.build(this,a);return s.isStaleByTime(gr(a.staleTime,s))?s.fetch(a):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Lt).catch(Lt)}fetchInfiniteQuery(t){return t.behavior=Uc(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Lt).catch(Lt)}ensureInfiniteQueryData(t){return t.behavior=Uc(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Pc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,a){this.#r.set(xr(t),{queryKey:t,defaultOptions:a})}getQueryDefaults(t){const a=[...this.#r.values()],s={};return a.forEach(l=>{ko(t,l.queryKey)&&Object.assign(s,l.defaultOptions)}),s}setMutationDefaults(t,a){this.#a.set(xr(t),{mutationKey:t,defaultOptions:a})}getMutationDefaults(t){const a=[...this.#a.values()],s={};return a.forEach(l=>{ko(t,l.mutationKey)&&Object.assign(s,l.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const a={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return a.queryHash||(a.queryHash=Ep(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===xn&&(a.enabled=!1),a}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},Hf={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 C0;function DN(){if(C0)return Te;C0=1;var t=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),S=Symbol.iterator;function C(_){return _===null||typeof _!="object"?null:(_=S&&_[S]||_["@@iterator"],typeof _=="function"?_:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,E={};function N(_,K,I){this.props=_,this.context=K,this.refs=E,this.updater=I||j}N.prototype.isReactComponent={},N.prototype.setState=function(_,K){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,K,"setState")},N.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function D(){}D.prototype=N.prototype;function O(_,K,I){this.props=_,this.context=K,this.refs=E,this.updater=I||j}var k=O.prototype=new D;k.constructor=O,v(k,N.prototype),k.isPureReactComponent=!0;var U=Array.isArray;function R(){}var T={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function H(_,K,I){var J=I.ref;return{$$typeof:t,type:_,key:K,ref:J!==void 0?J:null,props:I}}function V(_,K){return H(_.type,K,_.props)}function q(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function F(_){var K={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(I){return K[I]})}var W=/\/+/g;function te(_,K){return typeof _=="object"&&_!==null&&_.key!=null?F(""+_.key):K.toString(36)}function ie(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then(R,R):(_.status="pending",_.then(function(K){_.status==="pending"&&(_.status="fulfilled",_.value=K)},function(K){_.status==="pending"&&(_.status="rejected",_.reason=K)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function z(_,K,I,J,le){var fe=typeof _;(fe==="undefined"||fe==="boolean")&&(_=null);var ne=!1;if(_===null)ne=!0;else switch(fe){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(_.$$typeof){case t:case a:ne=!0;break;case y:return ne=_._init,z(ne(_._payload),K,I,J,le)}}if(ne)return le=le(_),ne=J===""?"."+te(_,0):J,U(le)?(I="",ne!=null&&(I=ne.replace(W,"$&/")+"/"),z(le,K,I,"",function(we){return we})):le!=null&&(q(le)&&(le=V(le,I+(le.key==null||_&&_.key===le.key?"":(""+le.key).replace(W,"$&/")+"/")+ne)),K.push(le)),1;ne=0;var ce=J===""?".":J+":";if(U(_))for(var pe=0;pe<_.length;pe++)J=_[pe],fe=ce+te(J,pe),ne+=z(J,K,I,fe,le);else if(pe=C(_),typeof pe=="function")for(_=pe.call(_),pe=0;!(J=_.next()).done;)J=J.value,fe=ce+te(J,pe++),ne+=z(J,K,I,fe,le);else if(fe==="object"){if(typeof _.then=="function")return z(ie(_),K,I,J,le);throw K=String(_),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return ne}function G(_,K,I){if(_==null)return _;var J=[],le=0;return z(_,J,"","",function(fe){return K.call(I,fe,le++)}),J}function L(_){if(_._status===-1){var K=_._result;K=K(),K.then(function(I){(_._status===0||_._status===-1)&&(_._status=1,_._result=I)},function(I){(_._status===0||_._status===-1)&&(_._status=2,_._result=I)}),_._status===-1&&(_._status=0,_._result=K)}if(_._status===1)return _._result.default;throw _._result}var oe=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},Y={map:G,forEach:function(_,K,I){G(_,function(){K.apply(this,arguments)},I)},count:function(_){var K=0;return G(_,function(){K++}),K},toArray:function(_){return G(_,function(K){return K})||[]},only:function(_){if(!q(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Te.Activity=x,Te.Children=Y,Te.Component=N,Te.Fragment=s,Te.Profiler=o,Te.PureComponent=O,Te.StrictMode=l,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Te.__COMPILER_RUNTIME={__proto__:null,c:function(_){return T.H.useMemoCache(_)}},Te.cache=function(_){return function(){return _.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(_,K,I){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var J=v({},_.props),le=_.key;if(K!=null)for(fe in K.key!==void 0&&(le=""+K.key),K)!M.call(K,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&K.ref===void 0||(J[fe]=K[fe]);var fe=arguments.length-2;if(fe===1)J.children=I;else if(1<fe){for(var ne=Array(fe),ce=0;ce<fe;ce++)ne[ce]=arguments[ce+2];J.children=ne}return H(_.type,le,J)},Te.createContext=function(_){return _={$$typeof:d,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:u,_context:_},_},Te.createElement=function(_,K,I){var J,le={},fe=null;if(K!=null)for(J in K.key!==void 0&&(fe=""+K.key),K)M.call(K,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(le[J]=K[J]);var ne=arguments.length-2;if(ne===1)le.children=I;else if(1<ne){for(var ce=Array(ne),pe=0;pe<ne;pe++)ce[pe]=arguments[pe+2];le.children=ce}if(_&&_.defaultProps)for(J in ne=_.defaultProps,ne)le[J]===void 0&&(le[J]=ne[J]);return H(_,fe,le)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(_){return{$$typeof:f,render:_}},Te.isValidElement=q,Te.lazy=function(_){return{$$typeof:y,_payload:{_status:-1,_result:_},_init:L}},Te.memo=function(_,K){return{$$typeof:g,type:_,compare:K===void 0?null:K}},Te.startTransition=function(_){var K=T.T,I={};T.T=I;try{var J=_(),le=T.S;le!==null&&le(I,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(R,oe)}catch(fe){oe(fe)}finally{K!==null&&I.types!==null&&(K.types=I.types),T.T=K}},Te.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Te.use=function(_){return T.H.use(_)},Te.useActionState=function(_,K,I){return T.H.useActionState(_,K,I)},Te.useCallback=function(_,K){return T.H.useCallback(_,K)},Te.useContext=function(_){return T.H.useContext(_)},Te.useDebugValue=function(){},Te.useDeferredValue=function(_,K){return T.H.useDeferredValue(_,K)},Te.useEffect=function(_,K){return T.H.useEffect(_,K)},Te.useEffectEvent=function(_){return T.H.useEffectEvent(_)},Te.useId=function(){return T.H.useId()},Te.useImperativeHandle=function(_,K,I){return T.H.useImperativeHandle(_,K,I)},Te.useInsertionEffect=function(_,K){return T.H.useInsertionEffect(_,K)},Te.useLayoutEffect=function(_,K){return T.H.useLayoutEffect(_,K)},Te.useMemo=function(_,K){return T.H.useMemo(_,K)},Te.useOptimistic=function(_,K){return T.H.useOptimistic(_,K)},Te.useReducer=function(_,K,I){return T.H.useReducer(_,K,I)},Te.useRef=function(_){return T.H.useRef(_)},Te.useState=function(_){return T.H.useState(_)},Te.useSyncExternalStore=function(_,K,I){return T.H.useSyncExternalStore(_,K,I)},Te.useTransition=function(){return T.H.useTransition()},Te.version="19.2.1",Te}var j0;function Zc(){return j0||(j0=1,Hf.exports=DN()),Hf.exports}var w=Zc();const de=Np(w),Wc=nN({__proto__:null,default:de},[w]);var Lb=w.createContext(void 0),Vo=t=>{const a=w.useContext(Lb);if(t)return t;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},_N=({client:t,children:a})=>(w.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),c.jsx(Lb.Provider,{value:t,children:a})),Hb=w.createContext(!1),qb=()=>w.useContext(Hb);Hb.Provider;function kN(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var RN=w.createContext(kN()),Ib=()=>w.useContext(RN),Qb=(t,a)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(a.isReset()||(t.retryOn
17Mount=!1))},Gb=t=>{w.useEffect(()=>{t.clearReset()},[t])},Vb=({result:t,errorResetBoundary:a,throwOnError:s,query:l,suspense:o})=>t.isError&&!a.isReset()&&!t.isFetching&&l&&(o&&t.data===void 0||_b(s,[t.error,l])),Dp=(t,a)=>a.state.data===void 0,Fb=t=>{if(t.suspense){const s=o=>o==="static"?o:Math.max(o??1e3,1e3),l=t.staleTime;t.staleTime=typeof l=="function"?(...o)=>s(l(...o)):s(l),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Yb=(t,a)=>t.isLoading&&t.isFetching&&!a,Vm=(t,a)=>t?.suspense&&a.isPending,Bc=(t,a,s)=>a.fetchOptimistic(t).catch(()=>{s.clearReset()});function Kb({queries:t,...a},s){const l=Vo(s),o=qb(),u=Ib(),d=w.useMemo(()=>t.map(v=>{const E=l.defaultQueryOptions(v);return E._optimisticResults=o?"isRestoring":"optimistic",E}),[t,l,o]);d.forEach(v=>{Fb(v),Qb(v,u)}),Gb(u);const[f]=w.useState(()=>new AN(l,d,a)),[p,g,y]=f.getOptimisticResult(d,a.combine),x=!o&&a.subscribed!==!1;w.useSyncExternalStore(w.useCallback(v=>x?f.subscribe(ut.batchCalls(v)):Lt,[f,x]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),w.useEffect(()=>{f.setQueries(d,a)},[d,a,f]);const C=p.some((v,E)=>Vm(d[E],v))?p.flatMap((v,E)=>{const N=d[E];if(N){const D=new Go(l,N);if(Vm(N,v))return Bc(N,D,u);Yb(v,o)&&Bc(N,D,u)}return[]}):[];if(C.length>0)throw Promise.all(C);const j=p.find((v,E)=>{const N=d[E];return N&&Vb({result:v,errorResetBoundary:u,throwOnError:N.throwOnError,query:l.getQueryCache().get(N.queryHash),suspense:N.suspense})});if(j?.error)throw j.error;return g(y())}function eu(t,a,s){const l=qb(),o=Ib(),u=Vo(s),d=u.defaultQueryOptions(t);u.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=l?"isRestoring":"optimistic",Fb(d),Qb(d,o),Gb(o);const f=!u.getQueryCache().get(d.queryHash),[p]=w.useState(()=>new a(u,d)),g=p.getOptimisticResult(d),y=!l&&t.subscribed!==!1;if(w.useSyncExternalStore(w.useCallback(x=>{const S=y?p.subscribe(ut.batchCalls(x)):Lt;return p.updateResult(),S},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),w.useEffect(()=>{p.setOptions(d)},[d,p]),Vm(d,g))throw Bc(d,p,o);if(Vb({result:g,errorResetBoundary:o,throwOnError:d.throwOnError,query:u.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw g.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(d,g),d.experimental_prefetchInRender&&!Xr&&Yb(g,l)&&(f?Bc(d,p,o):u.getQueryCache().get(d.queryHash)?.promise)?.catch(Lt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?g:p.trackResult(g)}function MN(t,a){return eu(t,Go,a)}function zN(t,a){return eu({...t,enabled:!0,suspense:!0,throwOnError:Dp,placeholderData:void 0},Go,a)}function PN(t,a){return eu({...t,enabled:!0,suspense:!0,throwOnError:Dp},Ub,a)}function UN(t,a){return Kb({...t,queries:t.queries.map(s=>({...s,suspense:!0,throwOnError:Dp,enabled:!0,placeholderData:void 0}))},a)}function BN(t,a){const s=Vo(a);s.getQueryState(t.queryKey)||s.prefetchQuery(t)}function LN(t,a){const s=Vo(a);s.getQueryState(t.queryKey)||s.prefetchInfiniteQuery(t)}function HN(t,a){const s=Vo(a),[l]=w.useState(()=>new NN(s,t));w.useEffect(()=>{l.setOptions(t)},[l,t]);const o=w.useSyncExternalStore(w.useCallback(d=>l.subscribe(ut.batchCalls(d)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),u=w.useCallback((d,f)=>{l.mutate(d,f).catch(Lt)},[l]);if(o.error&&_b(l.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:u,mutateAsync:o.mutate}}function qN(t,a){return eu(t,Ub,a)}function $r(t){return!!t&&!Array.isArray(t)&&typeof t=="object"}const IN=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Xb(t){return IN&&$r(t)&&Symbol.asyncIterator in t}var QN=Object.create,$b=Object.defineProperty,GN=Object.getOwnPropertyDescriptor,Jb=Object.getOwnPropertyNames,VN=Object.getPrototypeOf,FN=Object.prototype.hasOwnProperty,Fo=(t,a)=>function(){return a||(0,t[Jb(t)[0]])((a={exports:{}}).exports,a),a.exports},YN=(t,a,s,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var o=Jb(a),u=0,d=o.length,f;u<d;u++)f=o[u],!FN.call(t,f)&&f!==s&&$b(t,f,{get:(p=>a[p]).bind(null,f),enumerable:!(l=GN(a,f))||l.enumerable});return t},tu=(t,a,s)=>(s=t!=null?QN(VN(t)):{},YN($b(s,"default",{value:t,enumerable:!0}),t));const Zb=()=>{},N0=t=>{Object.freeze&&Object.freeze(t)};function Wb(t,a,s){var l;const o=a.join(".");return(l=s[o])!==null&&l!==void 0||(s[o]=new Proxy(Zb,{get(u,d){if(!(typeof d!="string"||d==="then"))return Wb(t,[...a,d],s)},apply(u,d,f){const p=a[a.length-1];let g={args:f,path:a};
17return p==="call"?g={args:f.length>=2?[f[1]]:[],path:a.slice(0,-1)}:p==="apply"&&(g={args:f.length>=2?f[1]:[],path:a.slice(0,-1)}),N0(g.args),N0(g.path),t(g)}})),s[o]}const nu=t=>Wb(t,[],Object.create(null)),_p=t=>new Proxy(Zb,{get(a,s){if(s!=="then")return t(s)}});var e1=Fo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,a){function s(l){"@babel/helpers - typeof";return a.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.__esModule=!0,a.exports.default=a.exports,s(l)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),KN=Fo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,a){var s=e1().default;function l(o,u){if(s(o)!="object"||!o)return o;var d=o[Symbol.toPrimitive];if(d!==void 0){var f=d.call(o,u||"default");if(s(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),XN=Fo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,a){var s=e1().default,l=KN();function o(u){var d=l(u,"string");return s(d)=="symbol"?d:d+""}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),t1=Fo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,a){var s=XN();function l(o,u,d){return(u=s(u))in o?Object.defineProperty(o,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):o[u]=d,o}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),kp=Fo({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,a){var s=t1();function l(u,d){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),f.push.apply(f,p)}return f}function o(u){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?l(Object(f),!0).forEach(function(p){s(u,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(f,p))})}return u}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}});tu(kp());tu(t1());var fc=tu(kp());function $N(t,a){if("error"in t){const l=a.deserialize(t.error);return{ok:!1,error:(0,fc.default)((0,fc.default)({},t),{},{error:l})}}return{ok:!0,result:(0,fc.default)((0,fc.default)({},t.result),(!t.result.type||t.result.type==="data")&&{type:"data",data:a.deserialize(t.result.data)})}}var qf=class extends Error{constructor(){super("Unable to transform response from server")}};function JN(t,a){let s;try{s=$N(t,a)}catch{throw new qf}if(!s.ok&&(!$r(s.error.error)||typeof s.error.error.code!="number"))throw new qf;if(s.ok&&!$r(s.result))throw new qf;return s}tu(kp());function au(t){const a={subscribe(s){let l=null,o=!1,u=!1,d=!1;function f(){if(l===null){d=!0;return}u||(u=!0,typeof l=="function"?l():l&&l.unsubscribe())}return l=t({next(p){var g;o||(g=s.next)===null||g===void 0||g.call(s,p)},error(p){var g;o||(o=!0,(g=s.error)===null||g===void 0||g.call(s,p),f())},complete(){var p;o||(o=!0,(p=s.complete)===null||p===void 0||p.call(s),f())}}),d&&f(),{unsubscribe:f}},pipe(...s){return s.reduce(ZN,a)}};return a}function ZN(t,a){return a(t)}function WN(t){const a=new AbortController;return new Promise((l,o)=>{let u=!1;function d(){u||(u=!0,f.unsubscribe())}a.signal.addEventListener("abort",()=>{o(a.signal.reason)});const f=t.subscribe({next(p){u=!0,l(p),d()},error(p){o(p)},complete(){a.abort(),d()}})})}var e4=Object.create,n1=Object.defineProperty,t4=Object.getOwnPropertyDescriptor,a1=Object.getOwnPropertyNames,n4=Object.getPrototypeOf,a4=Object.prototype.hasOwnProperty,Sr=(t,a)=>function(){return a||(0,t[a1(t)[0]])((a={exports:{}}).exports,a),a.exports},r4=(t,a,s,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var o=a1(a),u=0,d=o.length,f;u<d;u++)f=o[u],!a4.call(t,f)&&f!==s&&n1(t,f,{get:(p=>a[p]).bind(null,f),enumerable:!(l=t4(a,f))||l.enumerable});return t},ss=(t,a,s)=>(s=t!=null?e4(n4(t)):{}
17,r4(a||!t||!t.__esModule?n1(s,"default",{value:t,enumerable:!0}):s,t)),s4=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(t,a){function s(l,o){if(l==null)return{};var u={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.includes(d))continue;u[d]=l[d]}return u}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),l4=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(t,a){var s=s4();function l(o,u){if(o==null)return{};var d,f,p=s(o,u);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(f=0;f<g.length;f++)d=g[f],u.includes(d)||{}.propertyIsEnumerable.call(o,d)&&(p[d]=o[d])}return p}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),r1=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,a){function s(l){"@babel/helpers - typeof";return a.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.__esModule=!0,a.exports.default=a.exports,s(l)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),o4=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,a){var s=r1().default;function l(o,u){if(s(o)!="object"||!o)return o;var d=o[Symbol.toPrimitive];if(d!==void 0){var f=d.call(o,u||"default");if(s(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),i4=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,a){var s=r1().default,l=o4();function o(u){var d=l(u,"string");return s(d)=="symbol"?d:d+""}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),c4=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,a){var s=i4();function l(o,u,d){return(u=s(u))in o?Object.defineProperty(o,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):o[u]=d,o}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Yo=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,a){var s=c4();function l(u,d){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),f.push.apply(f,p)}return f}function o(u){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?l(Object(f),!0).forEach(function(p){s(u,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(f,p))})}return u}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),u4=ss(l4(),1),E0=ss(Yo(),1);const d4=["cursor","direction"];function ea(t,a,s){const l=t.flatMap(o=>o.split("."));if(!a&&(!s||s==="any"))return l.length?[l]:[];if(s==="infinite"&&$r(a)&&("direction"in a||"cursor"in a)){const{cursor:o,direction:u}=a,d=(0,u4.default)(a,d4);return[l,{input:d,type:"infinite"}]}return[l,(0,E0.default)((0,E0.default)({},typeof a<"u"&&a!==xn&&{input:a}),s&&s!=="any"&&{type:s})]}function Dc(t){return ea(t,void 0,"any")}var f4=Object.create,s1=Object.defineProperty,m4=Object.getOwnPropertyDescriptor,l1=Object.getOwnPropertyNames,p4=Object.getPrototypeOf,h4=Object.prototype.hasOwnProperty,sa=(t,a)=>function(){return a||(0,t[l1(t)[0]])((a={exports:{}}).exports,a),a.exports},g4=(t,a,s,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var o=l1(a),u=0,d=o.length,f;u<d;u++)f=o[u],!h4.call(t,f)&&f!==s&&s1(t,f,{get:(p=>a[p]).bind(null,f),enumerable:!(l=m4(a,f))||l.enumerable});return t},gt=(t,a,s)=>(s=t!=null?f4(p4(t)):{}
17,g4(a||!t||!t.__esModule?s1(s,"default",{value:t,enumerable:!0}):s,t)),o1=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,a){function s(l){"@babel/helpers - typeof";return a.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.__esModule=!0,a.exports.default=a.exports,s(l)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),x4=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,a){var s=o1().default;function l(o,u){if(s(o)!="object"||!o)return o;var d=o[Symbol.toPrimitive];if(d!==void 0){var f=d.call(o,u||"default");if(s(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(u==="string"?String:Number)(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),y4=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,a){var s=o1().default,l=x4();function o(u){var d=l(u,"string");return s(d)=="symbol"?d:d+""}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),ls=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,a){var s=y4();function l(o,u,d){return(u=s(u))in o?Object.defineProperty(o,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):o[u]=d,o}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Gn=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,a){var s=ls();function l(u,d){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(u);d&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),f.push.apply(f,p)}return f}function o(u){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?l(Object(f),!0).forEach(function(p){s(u,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):l(Object(f)).forEach(function(p){Object.defineProperty(u,p,Object.getOwnPropertyDescriptor(f,p))})}return u}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}});function v4(t){return a=>{let s=0,l=null;const o=[];function u(){l||(l=a.subscribe({next(f){for(const g of o){var p;(p=g.next)===null||p===void 0||p.call(g,f)}},error(f){for(const g of o){var p;(p=g.error)===null||p===void 0||p.call(g,f)}},complete(){for(const p of o){var f;(f=p.complete)===null||f===void 0||f.call(p)}}}))}function d(){if(s===0&&l){const f=l;l=null,f.unsubscribe()}}return au(f=>(s++,o.push(f),u(),{unsubscribe(){s--,d();const p=o.findIndex(g=>g===f);p>-1&&o.splice(p,1)}}))}}function b4(t){let a=t;const s=[],l=d=>{a!==void 0&&d.next(a),s.push(d)},o=d=>{s.splice(s.indexOf(d),1)},u=au(d=>(l(d),()=>{o(d)}));return u.next=d=>{if(a!==d){a=d;for(const f of s)f.next(d)}},u.get=()=>a,u}function w4(t){return au(a=>{function s(o=0,u=t.op){const d=t.links[o];if(!d)throw new Error("No more links to execute - did you forget to add an ending link?");return d({op:u,next(p){return s(o+1,p)}})}return s().subscribe(a)})}var mc=gt(ls(),1),Zs=gt(Gn(),1);function S4(t){return t instanceof ml}function C4(t){return $r(t)&&$r(t.error)&&typeof t.error.code=="number"&&typeof t.error.message=="string"}function j4(t,a){return typeof t=="string"?t:$r(t)&&typeof t.message=="string"?t.message:a}var ml=class _c extends Error{constructor(a,s){var l,o;const u=s?.cause;super(a,{cause:u}),(0,mc.default)(this,"cause",void 0),(0,mc.default)(this,"shape",void 0),(0,mc.default)(this,"data",void 0),(0,mc.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=u,this.shape=s==null||(l=s.result)===null||l===void 0?void 0:l.error,this.data=s==null||(o=s.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,_c.prototype)}static from(a,s={}){const l=a;return S4(l)?(s.meta&&(l.meta=(0,Zs.default)((0,Zs.default)({},l.meta),s.meta)),l):C4(l)?new _c(l.error.message,(0,Zs.default)((0,Zs.default)({},s),{},{result:l})):new _c(j4(l,"Unknown error"),(0,Zs.default)((0,Zs.default)({},s),{},{cause:l}))}};function N4(t){const a=t;return a?"input"in a?a:{input:a,output:a}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const A0=t=>typeof t=="function";function E4(t){if(t)return t;if(typeof window<"u"&&A0(window.fetch))return window.fetch;if(typeof globalThis<"u"&&A0(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Eo=gt(Gn());function A4(t){return{url:t.url.toString(),fetch:t.fetch,transformer:N4(t.transformer),methodOverride:t.methodOverride}}function O4(t){const a={};for(let s=0;s<t.length;s++){const l=t[s];a[s]=l}return a}const T4={query:"GET",mutation:"POST",subscription:"PATCH"};function i1(t){return"input"in t?t.transformer.input.serialize(t.input):O4(t.inputs.map(a=>t.transformer.input.serialize(a)))}const c1=t=>{const a=t.url.split("?");let l=a[0].replace(/\/$/,"")+"/"+t.path;const o=[];if(a[1]&&o.push(a[1]),"inputs"in t&&o.push("batch=1"),t.type==="query"||t.type==="subscription"){const u=i1(t);u!==void 0&&t.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(u))}`)}return o.length&&(l+="?"+o.join("&")),l},D4=t=>{if(t.type==="query"&&t.methodOverride!=="POST")return;const a=i1(t);return a!==void 0?JSON.stringify(a):void 0},_4=t=>z4((0,Eo.default)((0,Eo.default)({},t),{},{contentTypeHeader:"application/json",getUrl:c1,getBody:D4}));
17var k4=class extends Error{constructor(){const t="AbortError";super(t),this.name=t,this.message=t}};const R4=t=>{var a;if(t?.aborted)throw(a=t.throwIfAborted)===null||a===void 0||a.call(t),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new k4};async function M4(t){var a;R4(t.signal);const s=t.getUrl(t),l=t.getBody(t),o=(a=t.methodOverride)!==null&&a!==void 0?a:T4[t.type],u=await(async()=>{const f=await t.headers();return Symbol.iterator in f?Object.fromEntries(f):f})(),d=(0,Eo.default)((0,Eo.default)((0,Eo.default)({},t.contentTypeHeader&&o!=="GET"?{"content-type":t.contentTypeHeader}:{}),t.trpcAcceptHeader?{"trpc-accept":t.trpcAcceptHeader}:void 0),u);return E4(t.fetch)(s,{method:o,signal:t.signal,body:l,headers:d})}async function z4(t){const a={},s=await M4(t);a.response=s;const l=await s.json();return a.responseJSON=l,{json:l,meta:a}}gt(Gn(),1);const O0=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function T0(t){let a=null,s=null;const l=()=>{clearTimeout(s),s=null,a=null};function o(f){const p=[[]];let g=0;for(;;){const S=f[g];if(!S)break;const C=p[p.length-1];if(S.aborted){var y;(y=S.reject)===null||y===void 0||y.call(S,new Error("Aborted")),g++;continue}if(t.validate(C.concat(S).map(v=>v.key))){C.push(S),g++;continue}if(C.length===0){var x;(x=S.reject)===null||x===void 0||x.call(S,new Error("Input is too big for a single dispatch")),g++;continue}p.push([])}return p}function u(){const f=o(a);l();for(const p of f){if(!p.length)continue;const g={items:p};for(const x of p)x.batch=g;t.fetch(g.items.map(x=>x.key)).then(async x=>{await Promise.all(x.map(async(C,j)=>{const v=g.items[j];try{var E;const D=await Promise.resolve(C);(E=v.resolve)===null||E===void 0||E.call(v,D)}catch(D){var N;(N=v.reject)===null||N===void 0||N.call(v,D)}v.batch=null,v.reject=null,v.resolve=null}));for(const C of g.items){var S;(S=C.reject)===null||S===void 0||S.call(C,new Error("Missing result")),C.batch=null}}).catch(x=>{for(const C of g.items){var S;(S=C.reject)===null||S===void 0||S.call(C,x),C.batch=null}})}}function d(f){var p;const g={aborted:!1,key:f,batch:null,resolve:O0,reject:O0},y=new Promise((x,S)=>{var C;g.reject=S,g.resolve=x,(C=a)!==null&&C!==void 0||(a=[]),a.push(g)});return(p=s)!==null&&p!==void 0||(s=setTimeout(u)),y}return{load:d}}function P4(...t){const a=new AbortController,s=t.length;let l=0;const o=()=>{++l===s&&a.abort()};for(const u of t)u?.aborted?o():u?.addEventListener("abort",o,{once:!0});return a.signal}var pc=gt(Gn(),1);function U4(t){var a,s;const l=A4(t),o=(a=t.maxURLLength)!==null&&a!==void 0?a:1/0,u=(s=t.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const d=y=>({validate(x){if(o===1/0&&u===1/0)return!0;if(x.length>u)return!1;const S=x.map(v=>v.path).join(","),C=x.map(v=>v.input);return c1((0,pc.default)((0,pc.default)({},l),{},{type:y,path:S,inputs:C,signal:null})).length<=o},async fetch(x){const S=x.map(D=>D.path).join(","),C=x.map(D=>D.input),j=P4(...x.map(D=>D.signal)),v=await _4((0,pc.default)((0,pc.default)({},l),{},{path:S,inputs:C,type:y,headers(){return t.headers?typeof t.headers=="function"?t.headers({opList:x}):t.headers:{}},signal:j}));return(Array.isArray(v.json)?v.json:x.map(()=>v.json)).map(D=>({meta:v.meta,json:D}))}}),f=T0(d("query")),p=T0(d("mutation")),g={query:f,mutation:p};return({op:y})=>au(x=>{/* istanbul ignore if -- @preserve */if(y.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const C=g[y.type].load(y);let j;return C.then(v=>{j=v;const E=JN(v.json,l.transformer.output);if(!E.ok){x.error(ml.from(E.error,{meta:v.meta}));return}x.next({context:v.meta,result:E.result}),x.complete()}).catch(v=>{x.error(ml.from(v,{meta:j?.meta}))}),()=>{}})}}gt(Gn(),1);const u1=(t,...a)=>typeof t=="function"?t(...a):t;gt(ls(),1);function B4(){let t,a;return{promise:new Promise((l,o)=>{t=l,a=o}),resolve:t,reject:a}}async function L4(t){const a=await u1(t.url);if(!t.connectionParams)return a;const l=`${a.includes("?")?"&":"?"}connectionParams=1`;return a+l}async function H4(t){const a={method:"connectionParams",data:await u1(t)};return JSON.stringify(a)}gt(ls(),1);var Fr=gt(ls(),1);function q4(t){const{promise:a,resolve:s,reject:l}=B4();return t.addEventListener("open",()=>{t.removeEventListener("error",l),s()}),t.addEventListener("error",l),a}function I4(t,{intervalMs:a,pongTimeoutMs:s}){let l,o;function u(){l=setTimeout(()=>{t.send("PING"),o=setTimeout(()=>{t.close()},s)},a)}function d(){clearTimeout(l),u()}function f(){clearTimeout(o),d()}t.addEventListener("open",u),t.addEventListener("message",({data:p})=>{clearTimeout(l),u(),p==="PONG"&&f()}),t.addEventListener("close",()=>{clearTimeout(l),clearTimeout(o)})}var Q4=class Fm{constructor(a){var s;if((0,Fr.default)(this,"id",++Fm.connectCount),(0,Fr.default)(this,"WebSocketPonyfill",void 0),(0,Fr.default)(this,"urlOptions",void 0),(0,Fr.default)(this,"keepAliveOpts",void 0),(0,Fr.default)(this,"wsObservable",b4(null)),(0,Fr.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=a.WebSocketPonyfill)!==null&&s!==void 0?s: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=++Fm.connectCount;const s=L4(a.urlOptions).then(l=>new a.WebSocketPonyfill(l));a.openPromise=s.then(async l=>{a.ws=l,l.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),a.keepAliveOpts.enabled&&I4(l,a.keepAliveOpts),l.addEventListener("close",()=>{a.ws===l&&(a.ws=null)}),await q4(l),a.urlOptions.connectionParams&&l.send(await H4(a.urlOptions.connectionParams))});try{await a.openPromise}finally{a.openPromise=null}}async close(){var a=this;try{await a.openPromise}finally{var s;(s=a.ws)===null||s===void 0||s.close()}}};(0,Fr.default)(Q4,"connectCount",0);gt(ls(),1);gt(Gn(),1);var If=gt(ls(),1),D0=gt(Gn(),1),ru=class{constructor(t){(0,If.default)(this,"links",void 0),(0,If.default)(this,"runtime",void 0),(0,If.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=t.links.map(a=>a(this.runtime))}$request(t){var a;return w4({links:this.links,op:(0,D0.default)((0,D0.default)({},t),{},{context:(a=t.context)!==null&&a!==void 0?a:{},id:++this.requestId})}).pipe(v4())}async requestAsPromise(t){var a=this;try{const s=a.$request(t);return(await WN(s)).result.data}catch(s){throw ml.from(s)}}query(t,a,s){return this.requestAsPromise({type:"query",path:t,input:a,context:s?.context,signal:s?.signal})}mutation(t,a,s){return this.requestAsPromise({type:"mutation",path:t,input:a,context:s?.context,signal:s?.signal})}subscription(t,a,s){return this.$request({type:"subscription",path:t,input:a,context:s.context,signal:s.signal}).subscribe({next(o){switch(o.result.type){case"state":{var u;(u=s.onConnectionStateChange)===null||u===void 0||u.call(s,o.result);break}case"started":{var d;(d=s.onStarted)===null||d===void 0||d.call(s,{context:o.context});break}case"stopped":{var f;(f=s.onStopped)===null||f===void 0||f.call(s);break}case"data":case void 0:{var p;(p=s.onData)===null||p===void 0||p.call(s,o.result.data);break}}},error(o){var u;(u=s.onError)===null||u===void 0||u.call(s,o)},complete(){var o;(o=s.onComplete)===null||o===void 0||o.call(s)}})}};const d1=Symbol.for("trpc_untypedClient"),G4={query:"query",mutate:"mutation",subscribe:"subscription"},V4=t=>G4[t];function f1(t){const a=nu(({path:s,args:l})=>{const o=[...s],u=V4(o.pop()),d=o.join(".");return t[u](d,...l)});return _p(s=>s===d1?t:a[s])}
17function F4(t){const a=new ru(t);return f1(a)}function Rp(t){return t[d1]}gt(Gn(),1);gt(Gn(),1);var Y4=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(t,a){function s(o){var u,d,f,p=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,f=Symbol.iterator);p--;){if(d&&(u=o[d])!=null)return u.call(o);if(f&&(u=o[f])!=null)return new l(u.call(o));d="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function l(o){function u(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var f=d.done;return Promise.resolve(d.value).then(function(p){return{value:p,done:f}})}return l=function(f){this.s=f,this.n=f.next},l.prototype={s:null,n:null,next:function(){return u(this.n.apply(this.s,arguments))},return:function(f){var p=this.s.return;return p===void 0?Promise.resolve({value:f,done:!0}):u(p.apply(this.s,arguments))},throw:function(f){var p=this.s.return;return p===void 0?Promise.reject(f):u(p.apply(this.s,arguments))}},new l(o)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}});gt(Y4(),1);gt(Gn(),1);var K4=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(t,a){function s(){var l=typeof SuppressedError=="function"?SuppressedError:function(f,p){var g=Error();return g.name="SuppressedError",g.error=f,g.suppressed=p,g},o={},u=[];function d(f,p){if(p!=null){if(Object(p)!==p)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(f)var g=p[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(g===void 0&&(g=p[Symbol.dispose||Symbol.for("Symbol.dispose")],f))var y=g;if(typeof g!="function")throw new TypeError("Object is not disposable.");y&&(g=function(){try{y.call(p)}catch(S){return Promise.reject(S)}}),u.push({v:p,d:g,a:f})}else f&&u.push({d:p,a:f});return p}return{e:o,u:d.bind(null,!1),a:d.bind(null,!0),d:function(){var p,g=this.e,y=0;function x(){for(;p=u.pop();)try{if(!p.a&&y===1)return y=0,u.push(p),Promise.resolve().then(x);if(p.d){var C=p.d.call(p.v);if(p.a)return y|=2,Promise.resolve(C).then(x,S)}else y|=1}catch(j){return S(j)}if(y===1)return g!==o?Promise.reject(g):Promise.resolve();if(g!==o)throw g}function S(C){return g=g!==o?new l(C,g):C,x()}return x()}}}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),m1=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(t,a){function s(l,o){this.v=l,this.k=o}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),X4=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(t,a){var s=m1();function l(o){return new s(o,0)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),$4=sa({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(t,a){var s=m1();function l(u){return function(){return new o(u.apply(this,arguments))}}function o(u){var d,f;function p(y,x){try{var S=u[y](x),C=S.value,j=C instanceof s;Promise.resolve(j?C.v:C).then(function(v){if(j){var E=y==="return"?"return":"next";if(!C.k||v.done)return p(E,v);v=u[E](v).value}g(S.done?"return":"normal",v)},function(v){p("throw",v)})}catch(v){g("throw",v)}}function g(y,x){switch(y){case"return":d.resolve({value:x,done:!0});break;case"throw":d.reject(x);break;default:d.resolve({value:x,done:!1})}(d=d.next)?p(d.key,d.arg):f=null}this._invoke=function(y,x){return new Promise(function(S,C){var j={key:y,arg:x,resolve:S,reject:C,next:null};f?f=f.next=j:(d=f=j,p(y,x))})},typeof u.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(u){return this._invoke("next",u)},o.prototype.throw=function(u){return this._invoke("throw",u)},o.prototype.return=function(u){return this._invoke("return",u)},a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}});gt(K4(),1);gt(X4(),1);gt($4(),1);gt(Gn(),1);function J4(t){return nu(({path:a,args:s})=>{var l;const o=[...a],u=o.pop();if(u==="useMutation")return t[u](o,...s);if(u==="_def")return{path:o};const[d,...f]=s,p=(l=f[0])!==null&&l!==void 0?l:{};return t[u](o,d,p)})}var Qf;const Z4=["client","ssrContext","ssrState","abortOnUnmount"],W4=(Qf=w.createContext)===null||Qf===void 0?void 0:Qf.call(Wc,null),eE=t=>{switch(t){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"invali
17date":case"refetch":case"reset":return"any"}};function tE(t){return nu(a=>{const s=[...a.path],l=s.pop(),o=[...a.args],u=o.shift(),d=eE(l),f=ea(s,u,d);return{infiniteQueryOptions:()=>t.infiniteQueryOptions(s,f,o[0]),queryOptions:()=>t.queryOptions(s,f,...o),fetch:()=>t.fetchQuery(f,...o),fetchInfinite:()=>t.fetchInfiniteQuery(f,o[0]),prefetch:()=>t.prefetchQuery(f,...o),prefetchInfinite:()=>t.prefetchInfiniteQuery(f,o[0]),ensureData:()=>t.ensureQueryData(f,...o),invalidate:()=>t.invalidateQueries(f,...o),reset:()=>t.resetQueries(f,...o),refetch:()=>t.refetchQueries(f,...o),cancel:()=>t.cancelQuery(f,...o),setData:()=>{t.setQueryData(f,o[0],o[1])},setQueriesData:()=>t.setQueriesData(f,o[0],o[1],o[2]),setInfiniteData:()=>{t.setInfiniteQueryData(f,o[0],o[1])},getData:()=>t.getQueryData(f),getInfiniteData:()=>t.getInfiniteQueryData(f),setMutationDefaults:()=>t.setMutationDefaults(Dc(s),u),getMutationDefaults:()=>t.getMutationDefaults(Dc(s)),isMutating:()=>t.isMutating({mutationKey:Dc(s)})}[l]()})}function nE(t){const a=f1(t.client),s=tE(t);return _p(l=>{const o=l;return o==="client"?a:Z4.includes(o)?t[o]:s[l]})}var aE=ss(Yo(),1);function _0(t){const a=t instanceof ru?t:Rp(t);return nu(s=>{const l=s.path,o=l.join("."),[u,d]=s.args;return(0,aE.default)({queryKey:ea(l,u,"query"),queryFn:()=>a.query(o,u,d?.trpc)},d)})}var Gf=ss(Yo(),1);function It(t,a,s){var l;const o=t[0];let u=(l=t[1])===null||l===void 0?void 0:l.input;if(s){var d;u=(0,Gf.default)((0,Gf.default)((0,Gf.default)({},(d=u)!==null&&d!==void 0?d:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[o.join("."),u,a?.trpc]}var rE=Sr({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(t,a){function s(o){var u,d,f,p=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,f=Symbol.iterator);p--;){if(d&&(u=o[d])!=null)return u.call(o);if(f&&(u=o[f])!=null)return new l(u.call(o));d="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function l(o){function u(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var f=d.done;return Promise.resolve(d.value).then(function(p){return{value:p,done:f}})}return l=function(f){this.s=f,this.n=f.next},l.prototype={s:null,n:null,next:function(){return u(this.n.apply(this.s,arguments))},return:function(f){var p=this.s.return;return p===void 0?Promise.resolve({value:f,done:!0}):u(p.apply(this.s,arguments))},throw:function(f){var p=this.s.return;return p===void 0?Promise.reject(f):u(p.apply(this.s,arguments))}},new l(o)}a.exports=s,a.exports.__esModule=!0,a.exports.default=a.exports}}),sE=ss(rE(),1);function Ym(t){return{path:t.path.join(".")}}function yo(t){const a=Ym(t);return w.useMemo(()=>a,[a])}async function p1(t,a,s){const o=a.getQueryCache().build(a,{queryKey:s});o.setState({data:[],status:"success"});const u=[];var d=!1,f=!1,p;try{for(var g=(0,sE.default)(t),y;d=!(y=await g.next()).done;d=!1){const x=y.value;u.push(x),o.setState({data:[...u]})}}catch(x){f=!0,p=x}finally{try{d&&g.return!=null&&await g.return()}finally{if(f)throw p}}return u}var Qe=ss(Yo(),1);function lE(t){const{client:a,queryClient:s}=t,l=a instanceof ru?a:Rp(a);return{infiniteQueryOptions:(o,u,d)=>{var f,p;const g=((f=u[1])===null||f===void 0?void 0:f.input)===xn,y=async x=>{var S;const C=(0,Qe.default)((0,Qe.default)({},d),{},{trpc:(0,Qe.default)((0,Qe.default)({},d?.trpc),!(d==null||(S=d.trpc)===null||S===void 0)&&S.abortOnUnmount?{signal:x.signal}:{signal:null})});return await l.query(...It(u,C,{direction:x.direction,pageParam:x.pageParam}))};return Object.assign((0,Qe.default)((0,Qe.default)({},d),{},{initialData:d?.initialData,queryKey:u,queryFn:g?xn:y,initialPageParam:(p=d?.initialCursor)!==null&&p!==void 0?p:null}),{trpc:Ym({path:o})})},queryOptions:(o,u,d)=>{var f;const p=((f=u[1])===null||f===void 0?void 0:f.input)===xn,g=async y=>{var x;const S=(0,Qe.default)((0,Qe.default)({},d),{},{trpc:(0,Qe.default)((0,Qe.default)({},d?.trpc),!(d==null||(x=d.trpc)===null||x===void 0)&&x.abortOnUnmount?{signal:y.signal}:{signal:null})}),C=await l.query(...It(u,S));return Xb(C)?p1(C,s,u):C};return Object.assign((0,Qe.default)((0,Qe.default)({},d),{},{initialData:d?.initialData,queryKey:u,queryFn:p?xn:g}),{trpc:Ym({path:o})})},fetchQuery:(o,u)=>s.fetchQuery((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o,queryFn:()=>l.query(...It(o,u))})),fetchInfiniteQuery:(o,u)=>{var d;return s.fetchInfiniteQuery((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o,queryFn:({pageParam:f,direction:p})=>l.query(...It(o,u,{pageParam:f,direction:p})),initialPageParam:(d=u?.initialCursor)!==null&&d!==void 0?d:null}))},prefetchQuery:(o,u)=>s.prefetchQuery((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o,queryFn:()=>l.query(...It(o,u))})),prefetchInfiniteQuery:(o,u)=>{var d;return s.prefetchInfiniteQuery((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o,queryFn:({pageParam:f,direction:p})=>l.query(...It(o,u,{pageParam:f,direction:p})),initialPageParam:(d=u?.initialCursor)!==null&&d!==void 0?d:null}))},ensureQueryData:(o,u)=>s.ensureQueryData((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o,queryFn:()=>l.query(...It(o,u))})),invalidateQueries:(o,u,d)=>s.invalidateQueries((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o}),d),resetQueries:(o,u,d)=>s.resetQueries((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o}),d),refetchQueries:(o,u,d)=>s.refetchQueries((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o}),d),cancelQuery:(o,u)=>s.cancelQueries({queryKey:o},u),setQueryData:(o,u,d)=>s.setQueryData(o,u,d),setQueriesData:(o,u,d,f)=>s.setQueriesData((0,Qe.default)((0,Qe.default)({},u),{},{queryKey:o}),d,f),getQueryData:o=>s.getQueryData(o),setInfiniteQueryData:(o,u,d)=>s.setQueryData(o,u,d),getInfiniteQueryData:o=>s.getQueryData(o),setMutationDefaults:(o,u)=>{const d=o[0],f=p=>l.mutation(...It([d,{input:p}],t));return s.setMutationDefaults(o,typeof u=="function"?u({canonicalMutationFn:f}):u)},getMutationDefaults:o=>s.getMutationDefaults(o),isMutating:o=>s.isMutating((0,Qe.default)((0,Qe.default)({},o),{},{exact:!0}))}}var me=ss(Yo());const k0=(t,a)=>new Proxy(t,{get(l,o){return a(o),l[o]}});function oE(t){var a,s;const l=(a=void 0)!==null&&a!==void 0?a:U=>U.originalFn(),o=(s=void 0)!==null&&s!==void 0?s:W4,u=F4,d=U=>{var R;const{abortOnUnmount:T=!1,queryClient:M,ssrContext:H}=U,[V,q]=w.useState((R=U.ssrState)!==null&&R!==void 0?R:!1),F=U.client instanceof ru?U.client:Rp(U.client),W=w.useMemo(()=>lE({client:F,queryClient:M}),[F,M]),te=w.useMemo(()=>(0,me.default)({abortOnUnmount:T,queryClient:M,client:F,ssrContext:H??null,ssrState:V}
17,W),[T,F,W,M,H,V]);return w.useEffect(()=>{q(ie=>ie?"mounted":!1)},[]),c.jsx(o.Provider,{value:te,children:U.children})};function f(){const U=w.useContext(o);if(!U)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return U}function p(U,R){var T;const{queryClient:M,ssrState:H}=f();return H&&H!=="mounted"&&((T=M.getQueryCache().find({queryKey:U}))===null||T===void 0?void 0:T.state.status)==="error"?(0,me.default)({retryOnMount:!1},R):R}function g(U,R,T){var M,H,V,q,F;const W=f(),{abortOnUnmount:te,client:ie,ssrState:z,queryClient:G,prefetchQuery:L}=W,oe=ea(U,R,"query"),Y=G.getQueryDefaults(oe),_=R===xn;typeof window>"u"&&z==="prepass"&&(T==null||(M=T.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((H=T?.enabled)!==null&&H!==void 0?H:Y?.enabled)!==!1&&!_&&!G.getQueryCache().find({queryKey:oe})&&L(oe,T);const K=p(oe,(0,me.default)((0,me.default)({},Y),T)),I=(V=(q=T==null||(F=T.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&q!==void 0?q:void 0)!==null&&V!==void 0?V:te,J=MN((0,me.default)((0,me.default)({},K),{},{queryKey:oe,queryFn:_?R:async le=>{const fe=(0,me.default)((0,me.default)({},K),{},{trpc:(0,me.default)((0,me.default)({},K?.trpc),I?{signal:le.signal}:{signal:null})}),ne=await ie.query(...It(oe,fe));return Xb(ne)?p1(ne,G,oe):ne}}),G);return J.trpc=yo({path:U}),J}function y(U,R,T){var M,H,V;const q=f(),F=ea(U,R,"query"),W=R===xn,te=(M=(H=T==null||(V=T.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&H!==void 0?H:void 0)!==null&&M!==void 0?M:q.abortOnUnmount;BN((0,me.default)((0,me.default)({},T),{},{queryKey:F,queryFn:W?R:ie=>{const z={trpc:(0,me.default)((0,me.default)({},T?.trpc),te?{signal:ie.signal}:{})};return q.client.query(...It(F,z))}}))}function x(U,R,T){var M,H,V;const q=f(),F=ea(U,R,"query"),W=(M=(H=T==null||(V=T.trpc)===null||V===void 0?void 0:V.abortOnUnmount)!==null&&H!==void 0?H:void 0)!==null&&M!==void 0?M:q.abortOnUnmount,te=zN((0,me.default)((0,me.default)({},T),{},{queryKey:F,queryFn:ie=>{const z=(0,me.default)((0,me.default)({},T),{},{trpc:(0,me.default)((0,me.default)({},T?.trpc),W?{signal:ie.signal}:{signal:null})});return q.client.query(...It(F,z))}}),q.queryClient);return te.trpc=yo({path:U}),[te.data,te]}function S(U,R){const{client:T,queryClient:M}=f(),H=Dc(U),V=M.defaultMutationOptions(M.getMutationDefaults(H)),q=HN((0,me.default)((0,me.default)({},R),{},{mutationKey:H,mutationFn:F=>T.mutation(...It([U,{input:F}],R)),onSuccess(...F){var W,te;return l({originalFn:()=>{var z,G,L;return(z=R==null||(G=R.onSuccess)===null||G===void 0?void 0:G.call(R,...F))!==null&&z!==void 0?z:V==null||(L=V.onSuccess)===null||L===void 0?void 0:L.call(V,...F)},queryClient:M,meta:(W=(te=R?.meta)!==null&&te!==void 0?te:V?.meta)!==null&&W!==void 0?W:{}})}}),M);return q.trpc=yo({path:U}),q}const C={data:void 0,error:null,status:"idle"},j={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function v(U,R,T){var M;const H=(M=T?.enabled)!==null&&M!==void 0?M:R!==xn,V=xr(ea(U,R,"any")),{client:q}=f(),F=w.useRef(T);w.useEffect(()=>{F.current=T});const[W]=w.useState(new Set([])),te=w.useCallback(_=>{W.add(_)},[W]),ie=w.useRef(null),z=w.useCallback(_=>{const K=L.current,I=L.current=_(K);let J=!1;for(const le of W)if(K[le]!==I[le]){J=!0;break}J&&Y(k0(I,te))},[te,W]),G=w.useCallback(()=>{var _;if((_=ie.current)===null||_===void 0||_.unsubscribe(),!H){z(()=>(0,me.default)((0,me.default)({},C),{},{reset:G}));return}z(()=>(0,me.default)((0,me.default)({},j),{},{reset:G}));const K=q.subscription(U.join("."),R??void 0,{onStarted:()=>{var I,J;(I=(J=F.current).onStarted)===null||I===void 0||I.call(J),z(le=>(0,me.default)((0,me.default)({},le),{},{status:"pending",error:null}))},onData:I=>{var J,le;(J=(le=F.current).onData)===null||J===void 0||J.call(le,I),z(fe=>(0,me.default)((0,me.default)({},fe),{},{status:"pending",data:I,error:null}))},onError:I=>{var J,le;(J=(le=F.current).onError)===null||J===void 0||J.call(le,I),z(fe=>(0,me.default)((0,me.default)({},fe),{},{status:"error",error:I}))},onConnectionStateChange:I=>{z(J=>{switch(I.state){case"idle":return(0,me.default)((0,me.default)({},J),{},{status:I.state,error:null,data:void 0});case"connecting":return(0,me.default)((0,me.default)({},J),{},{error:I.error,status:I.state});
17case"pending":return J}})},onComplete:()=>{var I,J;(I=(J=F.current).onComplete)===null||I===void 0||I.call(J),z(le=>(0,me.default)((0,me.default)({},le),{},{status:"idle",error:null,data:void 0}))}});ie.current=K},[q,V,H,z]);w.useEffect(()=>(G(),()=>{var _;(_=ie.current)===null||_===void 0||_.unsubscribe()}),[G]);const L=w.useRef(H?(0,me.default)((0,me.default)({},j),{},{reset:G}):(0,me.default)((0,me.default)({},C),{},{reset:G})),[oe,Y]=w.useState(k0(L.current,te));return oe}function E(U,R,T){var M,H,V,q,F;const{client:W,ssrState:te,prefetchInfiniteQuery:ie,queryClient:z,abortOnUnmount:G}=f(),L=ea(U,R,"infinite"),oe=z.getQueryDefaults(L),Y=R===xn;typeof window>"u"&&te==="prepass"&&(T==null||(M=T.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((H=T?.enabled)!==null&&H!==void 0?H:oe?.enabled)!==!1&&!Y&&!z.getQueryCache().find({queryKey:L})&&ie(L,(0,me.default)((0,me.default)({},oe),T));const _=p(L,(0,me.default)((0,me.default)({},oe),T)),K=(V=T==null||(q=T.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&V!==void 0?V:G,I=qN((0,me.default)((0,me.default)({},_),{},{initialPageParam:(F=T.initialCursor)!==null&&F!==void 0?F:null,persister:T.persister,queryKey:L,queryFn:Y?R:J=>{var le;const fe=(0,me.default)((0,me.default)({},_),{},{trpc:(0,me.default)((0,me.default)({},_?.trpc),K?{signal:J.signal}:{signal:null})});return W.query(...It(L,fe,{pageParam:(le=J.pageParam)!==null&&le!==void 0?le:T.initialCursor,direction:J.direction}))}}),z);return I.trpc=yo({path:U}),I}function N(U,R,T){var M,H,V;const q=f(),F=ea(U,R,"infinite"),W=q.queryClient.getQueryDefaults(F),te=R===xn,ie=p(F,(0,me.default)((0,me.default)({},W),T)),z=(M=T==null||(H=T.trpc)===null||H===void 0?void 0:H.abortOnUnmount)!==null&&M!==void 0?M:q.abortOnUnmount;LN((0,me.default)((0,me.default)({},T),{},{initialPageParam:(V=T.initialCursor)!==null&&V!==void 0?V:null,queryKey:F,queryFn:te?R:G=>{var L;const oe=(0,me.default)((0,me.default)({},ie),{},{trpc:(0,me.default)((0,me.default)({},ie?.trpc),z?{signal:G.signal}:{})});return q.client.query(...It(F,oe,{pageParam:(L=G.pageParam)!==null&&L!==void 0?L:T.initialCursor,direction:G.direction}))}}))}function D(U,R,T){var M,H,V;const q=f(),F=ea(U,R,"infinite"),W=q.queryClient.getQueryDefaults(F),te=p(F,(0,me.default)((0,me.default)({},W),T)),ie=(M=T==null||(H=T.trpc)===null||H===void 0?void 0:H.abortOnUnmount)!==null&&M!==void 0?M:q.abortOnUnmount,z=PN((0,me.default)((0,me.default)({},T),{},{initialPageParam:(V=T.initialCursor)!==null&&V!==void 0?V:null,queryKey:F,queryFn:G=>{var L;const oe=(0,me.default)((0,me.default)({},te),{},{trpc:(0,me.default)((0,me.default)({},te?.trpc),ie?{signal:G.signal}:{})});return q.client.query(...It(F,oe,{pageParam:(L=G.pageParam)!==null&&L!==void 0?L:T.initialCursor,direction:G.direction}))}}),q.queryClient);return z.trpc=yo({path:U}),[z.data,z]}return{Provider:d,createClient:u,useContext:f,useUtils:f,useQuery:g,usePrefetchQuery:y,useSuspenseQuery:x,useQueries:(U,R)=>{const{ssrState:T,queryClient:M,prefetchQuery:H,client:V}=f(),q=_0(V),F=U(q);if(typeof window>"u"&&T==="prepass")for(const te of F){var W;const ie=te;((W=ie.trpc)===null||W===void 0?void 0:W.ssr)!==!1&&!M.getQueryCache().find({queryKey:ie.queryKey})&&H(ie.queryKey,ie)}return Kb({queries:F.map(te=>(0,me.default)((0,me.default)({},te),{},{queryKey:te.queryKey})),combine:R?.combine},M)},useSuspenseQueries:U=>{const{queryClient:R,client:T}=f(),M=_0(T),H=U(M),V=UN({queries:H.map(q=>(0,me.default)((0,me.default)({},q),{},{queryFn:q.queryFn,queryKey:q.queryKey}))},R);return[V.map(q=>q.data),V]},useMutation:S,useSubscription:v,useInfiniteQuery:E,usePrefetchInfiniteQuery:N,useSuspenseInfiniteQuery:D}}function iE(t){const a=J4(t);return _p(s=>s==="useContext"||s==="useUtils"?()=>{const l=t.useUtils();return w.useMemo(()=>nE(l),[l])}:t.hasOwnProperty(s)?t[s]:a[s])}function cE(t){const a=oE();return iE(a)}const Ze=cE(),uE="app_session_id",dE="Please login (10001)";var Vf={exports:{}},vo={},Ff={exports:{}},Yf={};/**
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 R0;function fE(){return R0||(R0=1,(function(t){function a(z,G){var L=z.length;z.push(G);e:for(;0<L;){var oe=L-1>>>1,Y=z[oe];if(0<o(Y,G))z[oe]=G,z[L]=Y,L=oe;else break e}}function s(z){return z.length===0?null:z[0]}function l(z){if(z.length===0)return null;var G=z[0],L=z.pop();if(L!==G){z[0]=L;e:for(var oe=0,Y=z.length,_=Y>>>1;oe<_;){var K=2*(oe+1)-1,I=z[K],J=K+1,le=z[J];
vendor: 8,894 bytes, lines 25-41
25if(0>o(I,L))J<Y&&0>o(le,I)?(z[oe]=le,z[J]=L,oe=J):(z[oe]=I,z[K]=L,oe=K);else if(J<Y&&0>o(le,L))z[oe]=le,z[J]=L,oe=J;else break e}}return G}function o(z,G){var L=z.sortIndex-G.sortIndex;return L!==0?L:z.id-G.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();t.unstable_now=function(){return d.now()-f}}var p=[],g=[],y=1,x=null,S=3,C=!1,j=!1,v=!1,E=!1,N=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function k(z){for(var G=s(g);G!==null;){if(G.callback===null)l(g);else if(G.startTime<=z)l(g),G.sortIndex=G.expirationTime,a(p,G);else break;G=s(g)}}function U(z){if(v=!1,k(z),!j)if(s(p)!==null)j=!0,R||(R=!0,F());else{var G=s(g);G!==null&&ie(U,G.startTime-z)}}var R=!1,T=-1,M=5,H=-1;function V(){return E?!0:!(t.unstable_now()-H<M)}function q(){if(E=!1,R){var z=t.unstable_now();H=z;var G=!0;try{e:{j=!1,v&&(v=!1,D(T),T=-1),C=!0;var L=S;try{t:{for(k(z),x=s(p);x!==null&&!(x.expirationTime>z&&V());){var oe=x.callback;if(typeof oe=="function"){x.callback=null,S=x.priorityLevel;var Y=oe(x.expirationTime<=z);if(z=t.unstable_now(),typeof Y=="function"){x.callback=Y,k(z),G=!0;break t}x===s(p)&&l(p),k(z)}else l(p);x=s(p)}if(x!==null)G=!0;else{var _=s(g);_!==null&&ie(U,_.startTime-z),G=!1}}break e}finally{x=null,S=L,C=!1}G=void 0}}finally{G?F():R=!1}}}var F;if(typeof O=="function")F=function(){O(q)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,te=W.port2;W.port1.onmessage=q,F=function(){te.postMessage(null)}}else F=function(){N(q,0)};function ie(z,G){T=N(function(){z(t.unstable_now())},G)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(z){z.callback=null},t.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<z?Math.floor(1e3/z):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_next=function(z){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var L=S;S=G;try{return z()}finally{S=L}},t.unstable_requestPaint=function(){E=!0},t.unstable_runWithPriority=function(z,G){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var L=S;S=z;try{return G()}finally{S=L}},t.unstable_scheduleCallback=function(z,G,L){var oe=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?oe+L:oe):L=oe,z){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=L+Y,z={id:y++,callback:G,priorityLevel:z,startTime:L,expirationTime:Y,sortIndex:-1},L>oe?(z.sortIndex=L,a(g,z),s(p)===null&&z===s(g)&&(v?(D(T),T=-1):v=!0,ie(U,L-oe))):(z.sortIndex=Y,a(p,z),j||C||(j=!0,R||(R=!0,F()))),z},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(z){var G=S;return function(){var L=S;S=G;try{return z.apply(this,arguments)}finally{S=L}}}})(Yf)),Yf}var M0;function mE(){return M0||(M0=1,Ff.exports=fE()),Ff.exports}var Kf={exports:{}},Bt={};/**
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 z0;function pE(){if(z0)return Bt;z0=1;var t=Zc();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var l={d:{f:s,r:function(){throw Error(a(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(p,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:p,containerInfo:g,implementation:y}}var d=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Bt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return u(p,g,null,y)},Bt.flushSync=function(p){var g=d.T,y=l.p;try{if(d.T=null,l.p=2,p)return p()}finally{d.T=g,l.p=y,l.d.f()}},Bt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(p,g))},Bt.prefetchDNS=function(p){typeof p=="string"&&l.d.D(p)},Bt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,x=f(y,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?l.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:S,fetchPriority:C}):y==="script"&&l.d.X(p,{crossOrigin:x,integrity:S,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Bt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=f(g.as,g.crossOrigin);l.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(p)},Bt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=f(y,g.crossOrigin);l.d.L(p,y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Bt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=f(g.as,g.crossOrigin);l.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(p)},Bt.requestFormReset=function(p){l.d.r(p)},Bt.unstable_batchedUpdates=function(p,g){return p(g)},Bt.useFormState=function(p,g,y){return d.H.useFormState(p,g,y)},Bt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Bt.version="19.2.1",Bt}var P0;function h1(){if(P0)return Kf.exports;P0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Kf.exports=pE(),Kf.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 U0;function hE(){if(U0)return vo;U0=1;var t=mE(),a=Zc(),s=h1();function l(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var n=e,r=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(r=n.return),e=n.return;while(e)}return n.tag===3?r:null}function d(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function f(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(l(188))}function g(e){var n=e.alternate;if(!n){if(n=u(e),n===null)throw Error(l(188));return n!==e?null:e}for(var r=e,i=n;;){var m=r.return;if(m===null)break;var h=m.alternate;if(h===null){if(i=m.return,i!==null){r=i;continue}break}if(m.child===h.child){for(h=m.child;h;){if(h===r)return p(m),e;if(h===i)return p(m),n;h=h.sibling}throw Error(l(188))}if(r.return!==i.return)r=m,i=h;else{for(var b=!1,A=m.child;A;){if(A===r){b=!0,r=m,i=h;break}if(A===i){b=!0,i=m,r=h;break}A=A.sibling}if(!b){for(A=h.child;A;){if(A===r){b=!0,r=h,i=m;break}
vendor: 14,277 bytes, lines 41-48
41if(A===i){b=!0,i=h,r=m;break}A=A.sibling}if(!b)throw Error(l(189))}}if(r.alternate!==i)throw Error(l(190))}if(r.tag!==3)throw Error(l(188));return r.stateNode.current===r?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var x=Object.assign,S=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),O=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),H=Symbol.for("react.activity"),V=Symbol.for("react.memo_cache_sentinel"),q=Symbol.iterator;function F(e){return e===null||typeof e!="object"?null:(e=q&&e[q]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case v:return"Fragment";case N:return"Profiler";case E:return"StrictMode";case U:return"Suspense";case R:return"SuspenseList";case H:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case j:return"Portal";case O:return e.displayName||"Context";case D:return(e._context.displayName||"Context")+".Consumer";case k:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T:return n=e.displayName||null,n!==null?n:te(e.type)||"Memo";case M:n=e._payload,e=e._init;try{return te(e(n))}catch{}}return null}var ie=Array.isArray,z=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},oe=[],Y=-1;function _(e){return{current:e}}function K(e){0>Y||(e.current=oe[Y],oe[Y]=null,Y--)}function I(e,n){Y++,oe[Y]=e.current,e.current=n}var J=_(null),le=_(null),fe=_(null),ne=_(null);function ce(e,n){switch(I(fe,n),I(le,e),I(J,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Py(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Py(n),e=Uy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}K(J),I(J,e)}function pe(){K(J),K(le),K(fe)}function we(e){e.memoizedState!==null&&I(ne,e);var n=J.current,r=Uy(n,e.type);n!==r&&(I(le,e),I(J,r))}function ye(e){le.current===e&&(K(J),K(le)),ne.current===e&&(K(ne),mo._currentValue=L)}var ue,Oe;function ke(e){if(ue===void 0)try{throw Error()}catch(r){var n=r.stack.trim().match(/\n( *(at )?)/);ue=n&&n[1]||"",Oe=-1<r.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+ue+e+Oe}var tt=!1;function dt(e,n){if(!e||tt)return"";tt=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ee){var Z=ee}Reflect.construct(e,[],se)}else{try{se.call()}catch(ee){Z=ee}e.call(se.prototype)}}else{try{throw Error()}catch(ee){Z=ee}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(ee){if(ee&&Z&&typeof ee.stack=="string")return[ee.stack,Z.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=i.DetermineComponentFrameRoot(),b=h[0],A=h[1];if(b&&A){var P=b.split(`
44`),$=A.split(`
45`);for(m=i=0;i<P.length&&!P[i].includes("DetermineComponentFrameRoot");)i++;for(;m<$.length&&!$[m].includes("DetermineComponentFrameRoot");)m++;if(i===P.length||m===$.length)for(i=P.length-1,m=$.length-1;1<=i&&0<=m&&P[i]!==$[m];)m--;for(;1<=i&&0<=m;i--,m--)if(P[i]!==$[m]){if(i!==1||m!==1)do if(i--,m--,0>m||P[i]!==$[m]){var ae=`
46`+P[i].replace(" at new "," at ");return e.displayName&&ae.includes("<anonymous>")&&(ae=ae.replace("<anonymous>",e.displayName)),ae}while(1<=i&&0<=m);break}}}finally{tt=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ke(r):""}function ft(e,n){switch(e.tag){case 26:case 27:case 5:return ke(e.type);case 16:return ke("Lazy");case 13:return e.child!==n&&n!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return ke("Activity");default:return""}}function an(e){try{var n="",r=null;do n+=ft(e,r),r=e,e=e.return;while(e);return n}catch(i){return`
47Error generating stack: `+i.message+`
48`+i.stack}}var ot=Object.prototype.hasOwnProperty,rn=t.unstable_scheduleCallback,Mn=t.unstable_cancelCallback,wt=t.unstable_shouldYield,vn=t.unstable_requestPaint,jt=t.unstable_now,fs=t.unstable_getCurrentPriorityLevel,oa=t.unstable_ImmediatePriority,Nr=t.unstable_UserBlockingPriority,ia=t.unstable_NormalPriority,ca=t.unstable_LowPriority,Ut=t.unstable_IdlePriority,Ba=t.log,bn=t.unstable_setDisableYieldValue,wn=null,_t=null;function sn(e){if(typeof Ba=="function"&&bn(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(wn,e)}catch{}}var Nt=Math.clz32?Math.clz32:ln,El=Math.log,Er=Math.LN2;function ln(e){return e>>>=0,e===0?32:31-(El(e)/Er|0)|0}var La=256,ua=262144,Fn=4194304;function on(e){var n=e&42;if(n!==0)return n;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 Ae(e,n,r){var i=e.pendingLanes;if(i===0)return 0;var m=0,h=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var A=i&134217727;return A!==0?(i=A&~h,i!==0?m=on(i):(b&=A,b!==0?m=on(b):r||(r=A&~e,r!==0&&(m=on(r))))):(A=i&~h,A!==0?m=on(A):b!==0?m=on(b):r||(r=i&~e,r!==0&&(m=on(r)))),m===0?0:n!==0&&n!==m&&(n&h)===0&&(h=m&-m,r=n&-n,h>=r||h===32&&(r&4194048)!==0)?n:m}function We(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function mt(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 Et(){var e=Fn;return Fn<<=1,(Fn&62914560)===0&&(Fn=4194304),e}function Ha(e){for(var n=[],r=0;31>r;r++)n.push(e);return n}function st(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qt(e,n,r,i,m,h){var b=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var A=e.entanglements,P=e.expirationTimes,$=e.hiddenUpdates;for(r=b&~r;0<r;){var ae=31-Nt(r),se=1<<ae;A[ae]=0,P[ae]=-1;var Z=$[ae];if(Z!==null)for($[ae]=null,ae=0;ae<Z.length;ae++){var ee=Z[ae];ee!==null&&(ee.lane&=-536870913)}r&=~se}i!==0&&Ar(e,i,0),h!==0&&m===0&&e.tag!==0&&(e.suspendedLanes|=h&~(b&~n))}function Ar(e,n,r){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-Nt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|r&261930}function Gt(e,n){var r=e.entangledLanes|=n;for(e=e.entanglements;r;){var i=31-Nt(r),m=1<<i;m&n|e[i]&n&&(e[i]|=n),r&=~m}}function Vt(e,n){var r=n&-n;return r=(r&42)!==0?1:ms(r),(r&(e.suspendedLanes|n))!==0?0:r}function ms(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 zn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Ou(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:l0(e.type))}function Sh(e,n){var r=G.p;try{return G.p=e,n()}finally{G.p=r}}var qa=Math.random().toString(36).slice(2),kt="__reactFiber$"+qa,Ft="__reactProps$"+qa,ps="__reactContainer$"+qa,Tu="__reactEvents$"+qa,VS="__reactListeners$"+qa,FS="__reactHandles$"+qa,Ch="__reactResources$"+qa,Al="__reactMarker$"+qa;function Du(e){delete e[kt],delete e[Ft],delete e[Tu],delete e[VS],delete e[FS]}function hs(e){var n=e[kt];if(n)return n;for(var r=e.parentNode;r;){if(n=r[ps]||r[kt]){if(r=n.alternate,n.child!==null||r!==null&&r.child!==null)for(e=Gy(e);e!==null;){if(r=e[kt])return r;e=Gy(e)}return n}e=r,r=e.parentNode}return null}function gs(e){if(e=e[kt]||e[ps]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function Ol(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(l(33))}function xs(e){var n=e[Ch];return n||(n=e[Ch]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function At(e){e[Al]=!0}var jh=new Set,Nh={};function Or(e,n){ys(e,n),ys(e+"Capture",n)}function ys(e,n){for(Nh[e]=n,e=0;e<n.length;e++)jh.add(n[e])}var YS=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]*$"),Eh={},Ah={};function KS(e){return ot.call(Ah,e)?!0:ot.call(Eh,e)?!1:YS.test(e)?Ah[e]=!0:(Eh[e]=!0,!1)}function Wo(e,n,r){if(KS(n))if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var i=n.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+r)}}function ei(e,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+r)}}function da(e,n,r,i){if(i===null)e.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(n,r,""+i)}}function Sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Oh(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function XS(e,n,r){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var m=i.get,h=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return m.call(this)},set:function(b){r=""+b,h.call(this,b)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return r},setValue:function(b){r=""+b},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function _u(e){if(!e._valueTracker){var n=Oh(e)?"checked":"value";e._valueTracker=XS(e,n,""+e[n])}}function Th(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var r=n.getValue(),i="";return e&&(i=Oh(e)?e.checked?"true":"false":e.value),e=i,e!==r?(n.setValue(e),!0):!1}function ti(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 $S=/[\n"\\]/g;function Cn(e){return e.replace($S,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function ku(e,n,r,i,m,h,b,A){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),n!=null?b==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Sn(n)):e.value!==""+Sn(n)&&(e.value=""+Sn(n)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),n!=null?Ru(e,b,Sn(n)):r!=null?Ru(e,b,Sn(r)):i!=null&&e.removeAttribute("value"),m==null&&h!=null&&(e.defaultChecked=!!h),m!=null&&(e.checked=m&&typeof m!="function"&&typeof m!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?e.name=""+Sn(A):e.removeAttribute("name")}function Dh(e,n,r,i,m,h,b,A){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.type=h),n!=null||r!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){_u(e);return}r=r!=null?""+Sn(r):"",n=n!=null?""+Sn(n):r,A||n===e.value||(e.value=n),e.defaultValue=n}i=i??m,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=A?e.checked:!!i,e.defaultChecked=!!i,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),_u(e)}function Ru(e,n,r){n==="number"&&ti(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function vs(e,n,r,i){if(e=e.options,n){n={};for(var m=0;m<r.length;m++)n["$"+r[m]]=!0;for(r=0;r<e.length;r++)m=n.hasOwnProperty("$"+e[r].value),e[r].selected!==m&&(e[r].selected=m),m&&i&&(e[r].defaultSelected=!0)}else{for(r=""+Sn(r),n=null,m=0;m<e.length;m++){if(e[m].value===r){e[m].selected=!0,i&&(e[m].defaultSelected=!0);return}n!==null||e[m].disabled||(n=e[m])}n!==null&&(n.selected=!0)}}function _h(e,n,r){if(n!=null&&(n=""+Sn(n),n!==e.value&&(e.value=n),r==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=r!=null?""+Sn(r):""}function kh(e,n,r,i){if(n==null){if(i!=null){if(r!=null)throw Error(l(92));if(ie(i)){if(1<i.length)throw Error(l(93));i=i[0]}r=i}r==null&&(r=""),n=r}r=Sn(n),e.defaultValue=r,i=e.textContent,i===r&&i!==""&&i!==null&&(e.value=i),_u(e)}function bs(e,n){if(n){var r=e.firstChild;
vendor: 4,140 bytes, line 48
48if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=n;return}}e.textContent=n}var JS=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 Rh(e,n,r){var i=n.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?i?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":i?e.setProperty(n,r):typeof r!="number"||r===0||JS.has(n)?n==="float"?e.cssFloat=r:e[n]=(""+r).trim():e[n]=r+"px"}function Mh(e,n,r){if(n!=null&&typeof n!="object")throw Error(l(62));if(e=e.style,r!=null){for(var i in r)!r.hasOwnProperty(i)||n!=null&&n.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var m in n)i=n[m],n.hasOwnProperty(m)&&r[m]!==i&&Rh(e,m,i)}else for(var h in n)n.hasOwnProperty(h)&&Rh(e,h,n[h])}function Mu(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 ZS=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"]]),WS=/^[\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 ni(e){return WS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function fa(){}var zu=null;function Pu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ws=null,Ss=null;function zh(e){var n=gs(e);if(n&&(e=n.stateNode)){var r=e[Ft]||null;e:switch(e=n.stateNode,n.type){case"input":if(ku(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),n=r.name,r.type==="radio"&&n!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+Cn(""+n)+'"][type="radio"]'),n=0;n<r.length;n++){var i=r[n];if(i!==e&&i.form===e.form){var m=i[Ft]||null;if(!m)throw Error(l(90));ku(i,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(n=0;n<r.length;n++)i=r[n],i.form===e.form&&Th(i)}break e;case"textarea":_h(e,r.value,r.defaultValue);break e;case"select":n=r.value,n!=null&&vs(e,!!r.multiple,n,!1)}}}var Uu=!1;function Ph(e,n,r){if(Uu)return e(n,r);Uu=!0;try{var i=e(n);return i}finally{if(Uu=!1,(ws!==null||Ss!==null)&&(Qi(),ws&&(n=ws,e=Ss,Ss=ws=null,zh(n),e)))for(n=0;n<e.length;n++)zh(e[n])}}function Tl(e,n){var r=e.stateNode;if(r===null)return null;var i=r[Ft]||null;if(i===null)return null;r=i[n];e:switch(n){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(r&&typeof r!="function")throw Error(l(231,n,typeof r));return r}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Bu=!1;if(ma)try{var Dl={};Object.defineProperty(Dl,"passive",{get:function(){Bu=!0}}),window.addEventListener("test",Dl,Dl),window.removeEventListener("test",Dl,Dl)}catch{Bu=!1}var Ia=null,Lu=null,ai=null;function Uh(){if(ai)return ai;var e,n=Lu,r=n.length,i,m="value"in Ia?Ia.value:Ia.textContent,h=m.length;for(e=0;e<r&&n[e]===m[e];e++);var b=r-e;for(i=1;i<=b&&n[r-i]===m[h-i];i++);return ai=m.slice(e,1<i?1-i:void 0)}function ri(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function si(){return!0}function Bh(){return!1}function Yt(e){function n(r,i,m,h,b){this._reactName=r,this._targetInst=m,this.type=i,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var A in e)e.hasOwnProperty(A)&&(r=e[A],this[A]=r?r(h):h[A]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?si:Bh,this.isPropagationStopped=Bh,this}return x(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=si)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=si)},persist:function(){},isPersistent:si}),n}var Tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=Yt(Tr),_l=x({},Tr,{view:0,detail:0}),eC=Yt(_l),Hu,qu,kl,oi=x({},_l,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,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!==kl&&(kl&&e.type==="mousemove"?(Hu=e.screenX-kl.screenX,qu=e.screenY-kl.screenY):qu=Hu=0,kl=e),Hu)},movementY:function(e){return"movementY"in e?e.movementY:qu}}),Lh=Yt(oi),tC=x({},oi,{dataTransfer:0}),nC=Yt(tC),aC=x({},_l,{relatedTarget:0}),Iu=Yt(aC),rC=x({},Tr,{animationName:0,elapsedTime:0,pseudoElement:0}),sC=Yt(rC),lC=x({},Tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),oC=Yt(lC),iC=x({},Tr,{data:0}),Hh=Yt(iC),cC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uC={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"},dC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fC(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=dC[e])?!!n[e]:!1}function Qu(){return fC}var mC=x({},_l,{key:function(e){if(e.key){var n=cC[e.key]||e.key;if(n!=="Unidentified")return n}
vendor: 5,186 bytes, line 48
48return e.type==="keypress"?(e=ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?uC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(e){return e.type==="keypress"?ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),pC=Yt(mC),hC=x({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qh=Yt(hC),gC=x({},_l,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),xC=Yt(gC),yC=x({},Tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),vC=Yt(yC),bC=x({},oi,{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}),wC=Yt(bC),SC=x({},Tr,{newState:0,oldState:0}),CC=Yt(SC),jC=[9,13,27,32],Gu=ma&&"CompositionEvent"in window,Rl=null;ma&&"documentMode"in document&&(Rl=document.documentMode);var NC=ma&&"TextEvent"in window&&!Rl,Ih=ma&&(!Gu||Rl&&8<Rl&&11>=Rl),Qh=" ",Gh=!1;function Vh(e,n){switch(e){case"keyup":return jC.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Cs=!1;function EC(e,n){switch(e){case"compositionend":return Fh(n);case"keypress":return n.which!==32?null:(Gh=!0,Qh);case"textInput":return e=n.data,e===Qh&&Gh?null:e;default:return null}}function AC(e,n){if(Cs)return e==="compositionend"||!Gu&&Vh(e,n)?(e=Uh(),ai=Lu=Ia=null,Cs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Ih&&n.locale!=="ko"?null:n.data;default:return null}}var OC={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 Yh(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!OC[e.type]:n==="textarea"}function Kh(e,n,r,i){ws?Ss?Ss.push(i):Ss=[i]:ws=i,n=$i(n,"onChange"),0<n.length&&(r=new li("onChange","change",null,r,i),e.push({event:r,listeners:n}))}var Ml=null,zl=null;function TC(e){Dy(e,0)}function ii(e){var n=Ol(e);if(Th(n))return e}function Xh(e,n){if(e==="change")return n}var $h=!1;if(ma){var Vu;if(ma){var Fu="oninput"in document;if(!Fu){var Jh=document.createElement("div");Jh.setAttribute("oninput","return;"),Fu=typeof Jh.oninput=="function"}Vu=Fu}else Vu=!1;$h=Vu&&(!document.documentMode||9<document.documentMode)}function Zh(){Ml&&(Ml.detachEvent("onpropertychange",Wh),zl=Ml=null)}function Wh(e){if(e.propertyName==="value"&&ii(zl)){var n=[];Kh(n,zl,e,Pu(e)),Ph(TC,n)}}function DC(e,n,r){e==="focusin"?(Zh(),Ml=n,zl=r,Ml.attachEvent("onpropertychange",Wh)):e==="focusout"&&Zh()}function _C(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ii(zl)}function kC(e,n){if(e==="click")return ii(n)}function RC(e,n){if(e==="input"||e==="change")return ii(n)}function MC(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var cn=typeof Object.is=="function"?Object.is:MC;function Pl(e,n){if(cn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return!1;for(i=0;i<r.length;i++){var m=r[i];if(!ot.call(n,m)||!cn(e[m],n[m]))return!1}return!0}function eg(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tg(e,n){var r=eg(e);e=0;for(var i;r;){if(r.nodeType===3){if(i=e+r.textContent.length,e<=n&&i>=n)return{node:r,offset:n-e};e=i}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=eg(r)}}function ng(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?ng(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function ag(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=ti(e.document);n instanceof e.HTMLIFrameElement;){try{var r=typeof n.contentWindow.location.href=="string"}catch{r=!1}if(r)e=n.contentWindow;else break;n=ti(e.document)}return n}function Yu(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var zC=ma&&"documentMode"in document&&11>=document.documentMode,js=null,Ku=null,Ul=null,Xu=!1;function rg(e,n,r){var i=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Xu||js==null||js!==ti(i)||(i=js,"selectionStart"in i&&Yu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focu
vendor: 20,535 bytes, line 48
48sNode:i.focusNode,focusOffset:i.focusOffset}),Ul&&Pl(Ul,i)||(Ul=i,i=$i(Ku,"onSelect"),0<i.length&&(n=new li("onSelect","select",null,n,r),e.push({event:n,listeners:i}),n.target=js)))}function Dr(e,n){var r={};return r[e.toLowerCase()]=n.toLowerCase(),r["Webkit"+e]="webkit"+n,r["Moz"+e]="moz"+n,r}var Ns={animationend:Dr("Animation","AnimationEnd"),animationiteration:Dr("Animation","AnimationIteration"),animationstart:Dr("Animation","AnimationStart"),transitionrun:Dr("Transition","TransitionRun"),transitionstart:Dr("Transition","TransitionStart"),transitioncancel:Dr("Transition","TransitionCancel"),transitionend:Dr("Transition","TransitionEnd")},$u={},sg={};ma&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete Ns.animationend.animation,delete Ns.animationiteration.animation,delete Ns.animationstart.animation),"TransitionEvent"in window||delete Ns.transitionend.transition);function _r(e){if($u[e])return $u[e];if(!Ns[e])return e;var n=Ns[e],r;for(r in n)if(n.hasOwnProperty(r)&&r in sg)return $u[e]=n[r];return e}var lg=_r("animationend"),og=_r("animationiteration"),ig=_r("animationstart"),PC=_r("transitionrun"),UC=_r("transitionstart"),BC=_r("transitioncancel"),cg=_r("transitionend"),ug=new Map,Ju="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(" ");Ju.push("scrollEnd");function Pn(e,n){ug.set(e,n),Or(n,[e])}var ci=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=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(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},jn=[],Es=0,Zu=0;function ui(){for(var e=Es,n=Zu=Es=0;n<e;){var r=jn[n];jn[n++]=null;var i=jn[n];jn[n++]=null;var m=jn[n];jn[n++]=null;var h=jn[n];if(jn[n++]=null,i!==null&&m!==null){var b=i.pending;b===null?m.next=m:(m.next=b.next,b.next=m),i.pending=m}h!==0&&dg(r,m,h)}}function di(e,n,r,i){jn[Es++]=e,jn[Es++]=n,jn[Es++]=r,jn[Es++]=i,Zu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Wu(e,n,r,i){return di(e,n,r,i),fi(e)}function kr(e,n){return di(e,null,null,n),fi(e)}function dg(e,n,r){e.lanes|=r;var i=e.alternate;i!==null&&(i.lanes|=r);for(var m=!1,h=e.return;h!==null;)h.childLanes|=r,i=h.alternate,i!==null&&(i.childLanes|=r),h.tag===22&&(e=h.stateNode,e===null||e._visibility&1||(m=!0)),e=h,h=h.return;return e.tag===3?(h=e.stateNode,m&&n!==null&&(m=31-Nt(r),e=h.hiddenUpdates,i=e[m],i===null?e[m]=[n]:i.push(n),n.lane=r|536870912),h):null}function fi(e){if(50<so)throw so=0,cf=null,Error(l(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var As={};function LC(e,n,r,i){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,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 un(e,n,r,i){return new LC(e,n,r,i)}function ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,n){var r=e.alternate;return r===null?(r=un(e.tag,n,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=n,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,n=e.dependencies,r.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function fg(e,n){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,n=r.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function mi(e,n,r,i,m,h){var b=0;if(i=e,typeof e=="function")ed(e)&&(b=1);else if(typeof e=="string")b=Gj(e,r,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case H:return e=un(31,r,n,m),e.elementType=H,e.lanes=h,e;case v:return Rr(r.children,m,h,n);case E:b=8,m|=24;break;case N:return e=un(12,r,n,m|2),e.elementType=N,e.lanes=h,e;case U:return e=un(13,r,n,m),e.elementType=U,e.lanes=h,e;case R:return e=un(19,r,n,m),e.elementType=R,e.lanes=h,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:b=10;break e;case D:b=9;break e;case k:b=11;break e;case T:b=14;break e;case M:b=16,i=null;break e}b=29,r=Error(l(130,e===null?"null":typeof e,"")),i=null}return n=un(b,r,n,m),n.elementType=e,n.type=i,n.lanes=h,n}function Rr(e,n,r,i){return e=un(7,e,i,n),e.lanes=r,e}function td(e,n,r){return e=un(6,e,null,n),e.lanes=r,e}function mg(e){var n=un(18,null,null,0);return n.stateNode=e,n}function nd(e,n,r){return n=un(4,e.children!==null?e.children:[],e.key,n),n.lanes=r,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var pg=new WeakMap;function Nn(e,n){if(typeof e=="object"&&e!==null){var r=pg.get(e);return r!==void 0?r:(n={value:e,source:n,stack:an(n)},pg.set(e,n),n)}return{value:e,source:n,stack:an(n)}}var Os=[],Ts=0,pi=null,Bl=0,En=[],An=0,Qa=null,Yn=1,Kn="";function ha(e,n){Os[Ts++]=Bl,Os[Ts++]=pi,pi=e,Bl=n}function hg(e,n,r){En[An++]=Yn,En[An++]=Kn,En[An++]=Qa,Qa=e;var i=Yn;e=Kn;var m=32-Nt(i)-1;i&=~(1<<m),r+=1;var h=32-Nt(n)+m;if(30<h){var b=m-m%5;h=(i&(1<<b)-1).toString(32),i>>=b,m-=b,Yn=1<<32-Nt(n)+m|r<<m|i,Kn=h+e}else Yn=1<<h|r<<m|i,Kn=e}function ad(e){e.return!==null&&(ha(e,1),hg(e,1,0))}function rd(e){for(;e===pi;)pi=Os[--Ts],Os[Ts]=null,Bl=Os[--Ts],Os[Ts]=null;for(;e===Qa;)Qa=En[--An],En[An]=null,Kn=En[--An],En[An]=null,Yn=En[--An],En[An]=null}function gg(e,n){En[An++]=Yn,En[An++]=Kn,En[An++]=Qa,Yn=n.id,Kn=n.overflow,Qa=e}var Rt=null,nt=null,Le=!1,Ga=null,On=!1,sd=Error(l(519));function Va(e){var n=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ll(Nn(n,e)),sd}function xg(e){var n=e.stateNode,r=e.type,i=e.memoizedProps;switch(n[kt]=e,n[Ft]=i,r){case"dialog":Pe("cancel",n),Pe("close",n);break;case"iframe":case"object":case"embed":Pe("load",n);break;case"video":case"audio":for(r=0;r<oo.length;r++)Pe(oo[r],n);break;case"source":Pe("error",n);break;case"img":case"image":case"link":Pe("error",n),Pe("load",n);break;case"details":Pe("toggle",n);break;case"input":Pe("invalid",n),Dh(n,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Pe("invalid",n);break;case"textarea":Pe("invalid",n),kh(n,i.value,i.defaultValue,i.children)}r=i.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||n.textContent===""+r||i.suppressHydrationWarning===!0||My(n.textContent,r)?(i.popover!=null&&(Pe("beforetoggle",n),Pe("toggle",n)),i.onScroll!=null&&Pe("scroll",n),i.onScrollEnd!=null&&Pe("scrollend",n),i.onClick!=null&&(n.onclick=fa),n=!0):n=!1,n||Va(e,!0)}function yg(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:On=!1;return;case 27:case 3:On=!0;return;default:Rt=Rt.return}}function Ds(e){if(e!==Rt)return!1;if(!Le)return yg(e),Le=!0,!1;var n=e.tag,r;if((r=n!==3&&n!==27)&&((r=n===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||jf(e.type,e.memoizedProps)),r=!r),r&&nt&&Va(e),yg(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));nt=Qy(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));nt=Qy(e)}else n===27?(n=nt,sr(e.type)?(e=Tf,Tf=null,nt=e):nt=n):nt=Rt?Dn(e.stateNode.nextSibling):null;return!0}function Mr(){nt=Rt=null,Le=!1}function ld(){var e=Ga;return e!==null&&(Jt===null?Jt=e:Jt.push.apply(Jt,e),Ga=null),e}function Ll(e){Ga===null?Ga=[e]:Ga.push(e)}var od=_(null),zr=null,ga=null;function Fa(e,n,r){I(od,n._currentValue),n._currentValue=r}function xa(e){e._currentValue=od.current,K(od)}function id(e,n,r){for(;e!==null;){var i=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,i!==null&&(i.childLanes|=n)):i!==null&&(i.childLanes&n)!==n&&(i.childLanes|=n),e===r)break;e=e.return}}function cd(e,n,r,i){var m=e.child;for(m!==null&&(m.return=e);m!==null;){var h=m.dependencies;if(h!==null){var b=m.child;h=h.firstContext;e:for(;h!==null;){var A=h;h=m;for(var P=0;P<n.length;P++)if(A.context===n[P]){h.lanes|=r,A=h.alternate,A!==null&&(A.lanes|=r),id(h.return,r,e),i||(b=null);break e}h=A.next}}else if(m.tag===18){if(b=m.return,b===null)throw Error(l(341));b.lanes|=r,h=b.alternate,h!==null&&(h.lanes|=r),id(b,r,e),b=null}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===e){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}}function _s(e,n,r,i){e=null;for(var m=n,h=!1;m!==null;){if(!h){if((m.flags&524288)!==0)h=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var b=m.alternate;if(b===null)throw Error(l(387));if(b=b.memoizedProps,b!==null){var A=m.type;cn(m.pendingProps.value,b.value)||(e!==null?e.push(A):e=[A])}}else if(m===ne.current){if(b=m.alternate,b===null)throw Error(l(387));b.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(e!==null?e.push(mo):e=[mo])}m=m.return}e!==null&&cd(n,e,r,i),n.flags|=262144}function hi(e){for(e=e.firstContext;e!==null;){if(!cn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Pr(e){zr=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Mt(e){return vg(zr,e)}function gi(e,n){return zr===null&&Pr(e),vg(e,n)}function vg(e,n){var r=n._currentValue;if(n={context:n,memoizedValue:r,next:null},ga===null){if(e===null)throw Error(l(308));ga=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else ga=ga.next=n;return r}var HC=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(r,i){e.push(i)}};this.abort=function(){n.aborted=!0,e.forEach(function(r){return r()})}},qC=t.unstable_scheduleCallback,IC=t.unstable_NormalPriority,xt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ud(){return{controller:new HC,data:new Map,refCount:0}}function Hl(e){e.refCount--,e.refCount===0&&qC(IC,function(){e.controller.abort()})}var ql=null,dd=0,ks=0,Rs=null;function QC(e,n){if(ql===null){var r=ql=[];dd=0,ks=hf(),Rs={status:"pending",value:void 0,then:function(i){r.push(i)}}}return dd++,n.then(bg,bg),n}function bg(){if(--dd===0&&ql!==null){Rs!==null&&(Rs.status="fulfilled");var e=ql;ql=null,ks=0,Rs=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function GC(e,n){var r=[],i={status:"pending",value:null,reason:null,then:function(m){r.push(m)}};return e.then(function(){i.status="fulfilled",i.value=n;for(var m=0;m<r.length;m++)(0,r[m])(n)},function(m){for(i.status="rejected",i.reason=m,m=0;m<r.length;m++)(0,r[m])(void 0)}),i}var wg=z.S;z.S=function(e,n){ry=jt(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&QC(e,n),wg!==null&&wg(e,n)};var Ur=_(null);function fd(){var e=Ur.current;return e!==null?e:et.pooledCache}function xi(e,n){n===null?I(Ur,Ur.current):I(Ur,n.pool)}function Sg(){var e=fd();return e===null?null:{parent:xt._currentValue,pool:e}}var Ms=Error(l(460)),md=Error(l(474)),yi=Error(l(542)),vi={then:function(){}};function Cg(e){return e=e.status,e==="fulfilled"||e==="rejected"}function jg(e,n,r){switch(r=e[r],r===void 0?e.push(n):r!==n&&(n.then(fa,fa),n=r),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Eg(e),e;default:if(typeof n.status=="string")n.then(fa,fa);else{if(e=et,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=n,e.status="pending",e.then(function(i){if(n.status==="pending"){var m=n;m.status="fulfilled",m.value=i}},function(i){if(n.status==="pending"){var m=n;m.status="rejected",m.reason=i}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Eg(e),e}throw Lr=n,Ms}}function Br(e){try{var n=e._init;return n(e._payload)}catch(r){throw r!==null&&typeof r=="object"&&typeof r.then=="function"?(Lr=r,Ms):r}}var Lr=null;function Ng(){if(Lr===null)throw Error(l(459));var e=Lr;return Lr=null,e}function Eg(e){if(e===Ms||e===yi)throw Error(l(483))}var zs=null,Il=0;function bi(e){var n=Il;return Il+=1,zs===null&&(zs=[]),jg(zs,e,n)}function Ql(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function wi(e,n){throw n.$$typeof===S?Error(l(525)):(e=Object.prototype.toString.call(n),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function Ag(e){function n(Q,B){if(e){var X=Q.deletions;X===null?(Q.deletions=[B],Q.flags|=16):X.push(B)}}function r(Q,B){if(!e)return null;for(;B!==null;)n(Q,B),B=B.sibling;return null}function i(Q){for(var B=new Map;Q!==null;)Q.key!==null?B.set(Q.key,Q):B.set(Q.index,Q),Q=Q.sibling;return B}function m(Q,B){return Q=pa(Q,B),Q.index=0,Q.sibling=null,Q}function h(Q,B,X){return Q.index=X,e?(X=Q.alternate,X!==null?(X=X.index,X<B?(Q.flags|=67108866,B):X):(Q.flags|=67108866,B)):(Q.flags|=1048576,B)}function b(Q){return e&&Q.alternate===null&&(Q.flags|=67108866),Q}function A(Q,B,X,re){return B===null||B.tag!==6?(B=td(X,Q.mode,re),B.return=Q,B):(B=m(B,X),B.return=Q,B)}function P(Q,B,X,re){var Se=X.type;return Se===v?ae(Q,B,X.props.children,re,X.key):B!==null&&(B.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===M&&Br(Se)===B.type)?(B=m(B,X.props),Ql(B,X),B.return=Q,B):(B=mi(X.type,X.key,X.props,null,Q.mode,re),Ql(B,X),B.return=Q,B)}function $(Q,B,X,re){return B===null||B.tag!==4||B.stateNode.containerInfo!==X.containerInfo||B.stateNode.implementation!==X.implementation?(B=nd(X,Q.mode,re),B.return=Q,B):(B=m(B,X.children||[]),B.return=Q,B)}function ae(Q,B,X,re,Se){return B===null||B.tag!==7?(B=Rr(X,Q.mode,re,Se),B.return=Q,B):(B=m(B,X),B.return=Q,B)}function se(Q,B,X){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=td(""+B,Q.mode,X),B.return=Q,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case C:return X=mi(B.type,B.key,B.props,null,Q.mode,X),Ql(X,B),X.return=Q,X;case j:return B=nd(B,Q.mode,X),B.return=Q,B;case M:return B=Br(B),se(Q,B,X)}if(ie(B)||F(B))return B=Rr(B,Q.mode,X,null),B.return=Q,B;if(typeof B.then=="function")return se(Q,bi(B),X);if(B.$$typeof===O)return se(Q,gi(Q,B),X);wi(Q,B)}return null}function Z(Q,B,X,re){var Se=B!==null?B.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Se!==null?null:A(Q,B,""+X,re);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case C:return X.key===Se?P(Q,B,X,re):null;case j:return X.key===Se?$(Q,B,X,re):null;case M:return X=Br(X),Z(Q,B,X,re)}if(ie(X)||F(X))return Se!==null?null:ae(Q,B,X,re,null);if(typeof X.then=="function")return Z(Q,B,bi(X),re);if(X.$$typeof===O)return Z(Q,B,gi(Q,X),re);wi(Q,X)}return null}function ee(Q,B,X,re,Se){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return Q=Q.get(X)||null,A(B,Q,""+re,Se);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case C:return Q=Q.get(re.key===null?X:re.key)||null,P(B,Q,re,Se);case j:return Q=Q.get(re.key===null?X:re.key)||null,$(B,Q,re,Se);case M:return re=Br(re),ee(Q,B,X,re,Se)}if(ie(re)||F(re))return Q=Q.get(X)||null,ae(B,Q,re,Se,null);if(typeof re.then=="function")return ee(Q,B,X,bi(re),Se);if(re.$$typeof===O)return ee(Q,B,X,gi(B,re),Se);wi(B,re)}return null}function he(Q,B,X,re){for(var Se=null,qe=null,ve=B,_e=B=0,Be=null;ve!==null&&_e<X.length;_e++){ve.index>_e?(Be=ve,ve=null):Be=ve.sibling;var Ie=Z(Q,ve,X[_e],re);if(Ie===null){ve===null&&(ve=Be);break}e&&ve&&Ie.alternate===null&&n(Q,ve),B=h(Ie,B,_e),qe===null?Se=Ie:qe.sibling=Ie,qe=Ie,ve=Be}if(_e===X.length)return r(Q,ve),Le&&ha(Q,_e),Se;if(ve===null){for(;_e<X.length;_e++)ve=se(Q,X[_e],re),ve!==null&&(B=h(ve,B,_e),qe===null?Se=ve:qe.sibling=ve,qe=ve);return Le&&ha(Q,_e),Se}for(ve=i(ve);_e<X.length;_e++)Be=ee(ve,Q,_e,X[_e],re),Be!==null&&(e&&Be.alternate!==null&&ve.delete(Be.key===null?_e:Be.key),B=h(Be,B,_e),qe===null?Se=Be:qe.sibling=Be,qe=Be);return e&&ve.forEach(function(ur){return n(Q,ur)}),Le&&ha(Q,_e),Se}function Ne(Q,B,X,re){if(X==null)throw Error(l(151));for(var Se=null,qe=null,ve=B,_e=B=0,Be=null,Ie=X.next();ve!==null&&!Ie.done;_e++,Ie=X.next()){ve.index>_e?(Be=ve,ve=null):Be=ve.sibling;var ur=Z(Q,ve,Ie.value,re);if(ur===null){ve===null&&(ve=Be);break}e&&ve&&ur.alternate===null&&n(Q,ve),B=h(ur,B,_e),qe===null?Se=ur:qe.sibling=ur,qe=ur,ve=Be}if(Ie.done)return r(Q,ve),Le&&ha(Q,_e),Se;if(ve===null){for(;!Ie.done;_e++,Ie=X.next())Ie=se(Q,Ie.value,re),Ie!==null&&(B=h(Ie,B,_e),qe===null?Se=Ie:qe.sibling=Ie,qe=Ie);return Le&&ha(Q,_e),Se}for(ve=i(ve);!Ie.done;_e++,Ie=X.next())Ie=ee(ve,Q,_e,Ie.value,re),Ie!==null&&(e&&Ie.alternate!==null&&ve.delete(Ie.key===null?_e:Ie.key),B=h(Ie,B,_e),qe===null?Se=Ie:qe.sibling=Ie,qe=Ie);return e&&ve.forEach(function(tN){return n(Q,tN)}),Le&&ha(Q,_e),Se}function Je(Q,B,X,re){if(typeof X=="object"&&X!==null&&X.type===v&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case C:e:{for(var Se=X.key;B!==null;){if(B.key===Se){if(Se=X.type,Se===v){if(B.tag===7){r(Q,B.sibling),re=m(B,X.props.children),re.return=Q,Q=re;break e}}else if(B.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===M&&Br(Se)===B.type){r(Q,B.sibling),re=m(B,X.props),Ql(re,X),re.return=Q,Q=re;break e}r(Q,B);break}else n(Q,B);B=B.sibling}X.type===v?(re=Rr(X.props.children,Q.mode,re,X.key),re.return=Q,Q=re):(re=mi(X.type,X.key,X.props,null,Q.mode,re),Ql(re,X),re.return=Q,Q=re)}return b(Q);case j:e:{for(Se=X.key;B!==null;){if(B.key===Se)if(B.tag===4&&B.stateNode.containerInfo===X.containerInfo&&B.stateNode.implementation===X.implementation){r(Q,B.sibling),re=m(B,X.children||[]),re.return=Q,Q=re;break e}else{r(Q,B);break}else n(Q,B);B=B.sibling}re=nd(X,Q.mode,re),re.return=Q,Q=re}return b(Q);case M:return X=Br(X),Je(Q,B,X,re)}if(ie(X))return he(Q,B,X,re);if(F(X)){if(Se=F(X),typeof Se!="function")throw Error(l(150));return X=Se.call(X),Ne(Q,B,X,re)}if(typeof X.then=="function")return Je(Q,B,bi(X),re);if(X.$$typeof===O)return Je(Q,B,gi(Q,X),re);wi(Q,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,B!==null&&B.tag===6?(r(Q,B.sibling),re=m(B,X),re.return=Q,Q=re):(r(Q,B),re=td(X,Q.mode,re),re.return=Q,Q=re),b(Q)):r(Q,B)}return function(Q,B,X,re){try{Il=0;var Se=Je(Q,B,X,re);return zs=null,Se}catch(ve){if(ve===Ms||ve===yi)throw ve;var qe=un(29,ve,null,Q.mode);return qe.lanes=re,qe.return=Q,qe}finally{}}}var Hr=Ag(!0),Og=Ag(!1),Ya=!1;function pd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hd(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Xa(e,n,r){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ve&2)!==0){var m=i.pending;return m===null?n.next=n:(n.next=m.next,m.next=n),i.pending=n,n=fi(e),dg(e,null,r),n}return di(e,i,n,r),fi(e)}function Gl(e,n,r){if(n=n.updateQueue,n!==null&&(n=n.shared,(r&4194048)!==0)){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,Gt(e,r)}}function gd(e,n){var r=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,r===i)){var m=null,h=null;if(r=r.firstBaseUpdate,r!==null){do{var b={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};h===null?m=h=b:h=h.next=b,r=r.next}
vendor: 4,906 bytes, line 48
48while(r!==null);h===null?m=h=n:h=h.next=n}else m=h=n;r={baseState:i.baseState,firstBaseUpdate:m,lastBaseUpdate:h,shared:i.shared,callbacks:i.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=n:e.next=n,r.lastBaseUpdate=n}var xd=!1;function Vl(){if(xd){var e=Rs;if(e!==null)throw e}}function Fl(e,n,r,i){xd=!1;var m=e.updateQueue;Ya=!1;var h=m.firstBaseUpdate,b=m.lastBaseUpdate,A=m.shared.pending;if(A!==null){m.shared.pending=null;var P=A,$=P.next;P.next=null,b===null?h=$:b.next=$,b=P;var ae=e.alternate;ae!==null&&(ae=ae.updateQueue,A=ae.lastBaseUpdate,A!==b&&(A===null?ae.firstBaseUpdate=$:A.next=$,ae.lastBaseUpdate=P))}if(h!==null){var se=m.baseState;b=0,ae=$=P=null,A=h;do{var Z=A.lane&-536870913,ee=Z!==A.lane;if(ee?(Ue&Z)===Z:(i&Z)===Z){Z!==0&&Z===ks&&(xd=!0),ae!==null&&(ae=ae.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var he=e,Ne=A;Z=n;var Je=r;switch(Ne.tag){case 1:if(he=Ne.payload,typeof he=="function"){se=he.call(Je,se,Z);break e}se=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Ne.payload,Z=typeof he=="function"?he.call(Je,se,Z):he,Z==null)break e;se=x({},se,Z);break e;case 2:Ya=!0}}Z=A.callback,Z!==null&&(e.flags|=64,ee&&(e.flags|=8192),ee=m.callbacks,ee===null?m.callbacks=[Z]:ee.push(Z))}else ee={lane:Z,tag:A.tag,payload:A.payload,callback:A.callback,next:null},ae===null?($=ae=ee,P=se):ae=ae.next=ee,b|=Z;if(A=A.next,A===null){if(A=m.shared.pending,A===null)break;ee=A,A=ee.next,ee.next=null,m.lastBaseUpdate=ee,m.shared.pending=null}}while(!0);ae===null&&(P=se),m.baseState=P,m.firstBaseUpdate=$,m.lastBaseUpdate=ae,h===null&&(m.shared.lanes=0),er|=b,e.lanes=b,e.memoizedState=se}}function Tg(e,n){if(typeof e!="function")throw Error(l(191,e));e.call(n)}function Dg(e,n){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)Tg(r[e],n)}var Ps=_(null),Si=_(0);function _g(e,n){e=Ea,I(Si,e),I(Ps,n),Ea=e|n.baseLanes}function yd(){I(Si,Ea),I(Ps,Ps.current)}function vd(){Ea=Si.current,K(Ps),K(Si)}var dn=_(null),Tn=null;function $a(e){var n=e.alternate;I(pt,pt.current&1),I(dn,e),Tn===null&&(n===null||Ps.current!==null||n.memoizedState!==null)&&(Tn=e)}function bd(e){I(pt,pt.current),I(dn,e),Tn===null&&(Tn=e)}function kg(e){e.tag===22?(I(pt,pt.current),I(dn,e),Tn===null&&(Tn=e)):Ja()}function Ja(){I(pt,pt.current),I(dn,dn.current)}function fn(e){K(dn),Tn===e&&(Tn=null),K(pt)}var pt=_(0);function Ci(e){for(var n=e;n!==null;){if(n.tag===13){var r=n.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||Af(r)||Of(r)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ya=0,De=null,Xe=null,yt=null,ji=!1,Us=!1,qr=!1,Ni=0,Yl=0,Bs=null,VC=0;function it(){throw Error(l(321))}function wd(e,n){if(n===null)return!1;for(var r=0;r<n.length&&r<e.length;r++)if(!cn(e[r],n[r]))return!1;return!0}function Sd(e,n,r,i,m,h){return ya=h,De=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,z.H=e===null||e.memoizedState===null?hx:Ud,qr=!1,h=r(i,m),qr=!1,Us&&(h=Mg(n,r,i,m)),Rg(e),h}function Rg(e){z.H=$l;var n=Xe!==null&&Xe.next!==null;if(ya=0,yt=Xe=De=null,ji=!1,Yl=0,Bs=null,n)throw Error(l(300));e===null||vt||(e=e.dependencies,e!==null&&hi(e)&&(vt=!0))}function Mg(e,n,r,i){De=e;var m=0;do{if(Us&&(Bs=null),Yl=0,Us=!1,25<=m)throw Error(l(301));if(m+=1,yt=Xe=null,e.updateQueue!=null){var h=e.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}z.H=gx,h=n(r,i)}while(Us);return h}function FC(){var e=z.H,n=e.useState()[0];return n=typeof n.then=="function"?Kl(n):n,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(De.flags|=1024),n}function Cd(){var e=Ni!==0;return Ni=0,e}function jd(e,n,r){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~r}function Nd(e){if(ji){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ji=!1}ya=0,yt=Xe=De=null,Us=!1,Yl=Ni=0,Bs=null}function qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yt===null?De.memoizedState=yt=e:yt=yt.next=e,yt}function ht(){if(Xe===null){var e=De.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var n=yt===null?De.memoizedState:yt.next;if(n!==null)yt=n,Xe=e;else{if(e===null)throw De.alternate===null?Error(l(467)):Error(l(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},yt===null?De.memoizedState=yt=e:yt=yt.next=e}return yt}function Ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(e){var n=Yl;
vendor: 17,341 bytes, line 48
48return Yl+=1,Bs===null&&(Bs=[]),e=jg(Bs,e,n),n=De,(yt===null?n.memoizedState:yt.next)===null&&(n=n.alternate,z.H=n===null||n.memoizedState===null?hx:Ud),e}function Ai(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Kl(e);if(e.$$typeof===O)return Mt(e)}throw Error(l(438,String(e)))}function Ed(e){var n=null,r=De.updateQueue;if(r!==null&&(n=r.memoCache),n==null){var i=De.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(n={data:i.data.map(function(m){return m.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),r===null&&(r=Ei(),De.updateQueue=r),r.memoCache=n,r=n.data[n.index],r===void 0)for(r=n.data[n.index]=Array(e),i=0;i<e;i++)r[i]=V;return n.index++,r}function va(e,n){return typeof n=="function"?n(e):n}function Oi(e){var n=ht();return Ad(n,Xe,e)}function Ad(e,n,r){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=r;var m=e.baseQueue,h=i.pending;if(h!==null){if(m!==null){var b=m.next;m.next=h.next,h.next=b}n.baseQueue=m=h,i.pending=null}if(h=e.baseState,m===null)e.memoizedState=h;else{n=m.next;var A=b=null,P=null,$=n,ae=!1;do{var se=$.lane&-536870913;if(se!==$.lane?(Ue&se)===se:(ya&se)===se){var Z=$.revertLane;if(Z===0)P!==null&&(P=P.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),se===ks&&(ae=!0);else if((ya&Z)===Z){$=$.next,Z===ks&&(ae=!0);continue}else se={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},P===null?(A=P=se,b=h):P=P.next=se,De.lanes|=Z,er|=Z;se=$.action,qr&&r(h,se),h=$.hasEagerState?$.eagerState:r(h,se)}else Z={lane:se,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},P===null?(A=P=Z,b=h):P=P.next=Z,De.lanes|=se,er|=se;$=$.next}while($!==null&&$!==n);if(P===null?b=h:P.next=A,!cn(h,e.memoizedState)&&(vt=!0,ae&&(r=Rs,r!==null)))throw r;e.memoizedState=h,e.baseState=b,e.baseQueue=P,i.lastRenderedState=h}return m===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Od(e){var n=ht(),r=n.queue;if(r===null)throw Error(l(311));r.lastRenderedReducer=e;var i=r.dispatch,m=r.pending,h=n.memoizedState;if(m!==null){r.pending=null;var b=m=m.next;do h=e(h,b.action),b=b.next;while(b!==m);cn(h,n.memoizedState)||(vt=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),r.lastRenderedState=h}return[h,i]}function zg(e,n,r){var i=De,m=ht(),h=Le;if(h){if(r===void 0)throw Error(l(407));r=r()}else r=n();var b=!cn((Xe||m).memoizedState,r);if(b&&(m.memoizedState=r,vt=!0),m=m.queue,_d(Bg.bind(null,i,m,e),[e]),m.getSnapshot!==n||b||yt!==null&&yt.memoizedState.tag&1){if(i.flags|=2048,Ls(9,{destroy:void 0},Ug.bind(null,i,m,r,n),null),et===null)throw Error(l(349));h||(ya&127)!==0||Pg(i,n,r)}return r}function Pg(e,n,r){e.flags|=16384,e={getSnapshot:n,value:r},n=De.updateQueue,n===null?(n=Ei(),De.updateQueue=n,n.stores=[e]):(r=n.stores,r===null?n.stores=[e]:r.push(e))}function Ug(e,n,r,i){n.value=r,n.getSnapshot=i,Lg(n)&&Hg(e)}function Bg(e,n,r){return r(function(){Lg(n)&&Hg(e)})}function Lg(e){var n=e.getSnapshot;e=e.value;try{var r=n();return!cn(e,r)}catch{return!0}}function Hg(e){var n=kr(e,2);n!==null&&Zt(n,e,2)}function Td(e){var n=qt();if(typeof e=="function"){var r=e;if(e=r(),qr){sn(!0);try{r()}finally{sn(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:e},n}function qg(e,n,r,i){return e.baseState=r,Ad(e,Xe,typeof i=="function"?i:va)}function YC(e,n,r,i,m){if(_i(e))throw Error(l(485));if(e=n.action,e!==null){var h={payload:m,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};z.T!==null?r(!0):h.isTransition=!1,i(h),r=n.pending,r===null?(h.next=n.pending=h,Ig(n,h)):(h.next=r.next,n.pending=r.next=h)}}function Ig(e,n){var r=n.action,i=n.payload,m=e.state;if(n.isTransition){var h=z.T,b={};z.T=b;try{var A=r(m,i),P=z.S;P!==null&&P(b,A),Qg(e,n,A)}catch($){Dd(e,n,$)}finally{h!==null&&b.types!==null&&(h.types=b.types),z.T=h}}else try{h=r(m,i),Qg(e,n,h)}catch($){Dd(e,n,$)}}function Qg(e,n,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(i){Gg(e,n,i)},function(i){return Dd(e,n,i)}):Gg(e,n,r)}function Gg(e,n,r){n.status="fulfilled",n.value=r,Vg(n),e.state=r,n=e.pending,n!==null&&(r=n.next,r===n?e.pending=null:(r=r.next,n.next=r,Ig(e,r)))}function Dd(e,n,r){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do n.status="rejected",n.reason=r,Vg(n),n=n.next;while(n!==i)}e.action=null}function Vg(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function Fg(e,n){return n}function Yg(e,n){if(Le){var r=et.formState;if(r!==null){e:{var i=De;if(Le){if(nt){t:{for(var m=nt,h=On;m.nodeType!==8;){if(!h){m=null;break t}if(m=Dn(m.nextSibling),m===null){m=null;break t}}h=m.data,m=h==="F!"||h==="F"?m:null}if(m){nt=Dn(m.nextSibling),i=m.data==="F!";break e}}Va(i)}i=!1}i&&(n=r[0])}}return r=qt(),r.memoizedState=r.baseState=n,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fg,lastRenderedState:n},r.queue=i,r=fx.bind(null,De,i),i.dispatch=r,i=Td(!1),h=Pd.bind(null,De,!1,i.queue),i=qt(),m={state:n,dispatch:null,action:e,pending:null},i.queue=m,r=YC.bind(null,De,m,h,r),m.dispatch=r,i.memoizedState=e,[n,r,!1]}function Kg(e){var n=ht();return Xg(n,Xe,e)}function Xg(e,n,r){if(n=Ad(e,n,Fg)[0],e=Oi(va)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var i=Kl(n)}catch(b){throw b===Ms?yi:b}else i=n;n=ht();var m=n.queue,h=m.dispatch;return r!==n.memoizedState&&(De.flags|=2048,Ls(9,{destroy:void 0},KC.bind(null,m,r),null)),[i,h,e]}function KC(e,n){e.action=n}function $g(e){var n=ht(),r=Xe;if(r!==null)return Xg(n,r,e);ht(),n=n.memoizedState,r=ht();var i=r.queue.dispatch;return r.memoizedState=e,[n,i,!1]}function Ls(e,n,r,i){return e={tag:e,create:r,deps:i,inst:n,next:null},n=De.updateQueue,n===null&&(n=Ei(),De.updateQueue=n),r=n.lastEffect,r===null?n.lastEffect=e.next=e:(i=r.next,r.next=e,e.next=i,n.lastEffect=e),e}function Jg(){return ht().memoizedState}function Ti(e,n,r,i){var m=qt();De.flags|=e,m.memoizedState=Ls(1|n,{destroy:void 0},r,i===void 0?null:i)}function Di(e,n,r,i){var m=ht();i=i===void 0?null:i;var h=m.memoizedState.inst;Xe!==null&&i!==null&&wd(i,Xe.memoizedState.deps)?m.memoizedState=Ls(n,h,r,i):(De.flags|=e,m.memoizedState=Ls(1|n,h,r,i))}function Zg(e,n){Ti(8390656,8,e,n)}function _d(e,n){Di(2048,8,e,n)}function XC(e){De.flags|=4;var n=De.updateQueue;if(n===null)n=Ei(),De.updateQueue=n,n.events=[e];else{var r=n.events;r===null?n.events=[e]:r.push(e)}}function Wg(e){var n=ht().memoizedState;return XC({ref:n,nextImpl:e}),function(){if((Ve&2)!==0)throw Error(l(440));return n.impl.apply(void 0,arguments)}}function ex(e,n){return Di(4,2,e,n)}function tx(e,n){return Di(4,4,e,n)}function nx(e,n){if(typeof n=="function"){e=e();var r=n(e);return function(){typeof r=="function"?r():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function ax(e,n,r){r=r!=null?r.concat([e]):null,Di(4,4,nx.bind(null,n,e),r)}function kd(){}function rx(e,n){var r=ht();n=n===void 0?null:n;var i=r.memoizedState;return n!==null&&wd(n,i[1])?i[0]:(r.memoizedState=[e,n],e)}function sx(e,n){var r=ht();n=n===void 0?null:n;var i=r.memoizedState;if(n!==null&&wd(n,i[1]))return i[0];if(i=e(),qr){sn(!0);try{e()}finally{sn(!1)}}return r.memoizedState=[i,n],i}function Rd(e,n,r){return r===void 0||(ya&1073741824)!==0&&(Ue&261930)===0?e.memoizedState=n:(e.memoizedState=r,e=ly(),De.lanes|=e,er|=e,r)}function lx(e,n,r,i){return cn(r,n)?r:Ps.current!==null?(e=Rd(e,r,i),cn(e,n)||(vt=!0),e):(ya&42)===0||(ya&1073741824)!==0&&(Ue&261930)===0?(vt=!0,e.memoizedState=r):(e=ly(),De.lanes|=e,er|=e,n)}function ox(e,n,r,i,m){var h=G.p;G.p=h!==0&&8>h?h:8;var b=z.T,A={};z.T=A,Pd(e,!1,n,r);try{var P=m(),$=z.S;if($!==null&&$(A,P),P!==null&&typeof P=="object"&&typeof P.then=="function"){var ae=GC(P,i);Xl(e,n,ae,hn(e))}else Xl(e,n,i,hn(e))}catch(se){Xl(e,n,{then:function(){},status:"rejected",reason:se},hn())}finally{G.p=h,b!==null&&A.types!==null&&(b.types=A.types),z.T=b}}function $C(){}function Md(e,n,r,i){if(e.tag!==5)throw Error(l(476));var m=ix(e).queue;ox(e,m,n,L,r===null?$C:function(){return cx(e),r(i)})}function ix(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:L},next:null};var r={};return n.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:r},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function cx(e){var n=ix(e);n.next===null&&(n=e.alternate.memoizedState),Xl(e,n.next.queue,{},hn())}function zd(){return Mt(mo)}function ux(){return ht().memoizedState}function dx(){return ht().memoizedState}function JC(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=hn();e=Ka(r);var i=Xa(n,e,r);i!==null&&(Zt(i,n,r),Gl(i,n,r)),n={cache:ud()},e.payload=n;return}n=n.return}}function ZC(e,n,r){var i=hn();r={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},_i(e)?mx(n,r):(r=Wu(e,n,r,i),r!==null&&(Zt(r,e,i),px(r,n,i)))}function fx(e,n,r){var i=hn();Xl(e,n,r,i)}function Xl(e,n,r,i){var m={lane:i,revertLane:0,gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null};if(_i(e))mx(n,m);else{var h=e.alternate;if(e.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null))try{var b=n.lastRenderedState,A=h(b,r);if(m.hasEagerState=!0,m.eagerState=A,cn(A,b))return di(e,n,m,0),et===null&&ui(),!1}catch{}finally{}if(r=Wu(e,n,m,i),r!==null)return Zt(r,e,i),px(r,n,i),!0}return!1}function Pd(e,n,r,i){if(i={lane:2,revertLane:hf(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},_i(e)){if(n)throw Error(l(479))}else n=Wu(e,r,i,2),n!==null&&Zt(n,e,2)}function _i(e){var n=e.alternate;return e===De||n!==null&&n===De}function mx(e,n){Us=ji=!0;var r=e.pending;r===null?n.next=n:(n.next=r.next,r.next=n),e.pending=n}function px(e,n,r){if((r&4194048)!==0){var i=n.lanes;i&=e.pendingLanes,r|=i,n.lanes=r,Gt(e,r)}}var $l={readContext:Mt,use:Ai,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useLayoutEffect:it,useInsertionEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useSyncExternalStore:it,useId:it,useHostTransitionStatus:it,useFormState:it,useActionState:it,useOptimistic:it,useMemoCache:it,useCacheRefresh:it};$l.useEffectEvent=it;var hx={readContext:Mt,use:Ai,useCallback:function(e,n){return qt().memoizedState=[e,n===void 0?null:n],e},useContext:Mt,useEffect:Zg,useImperativeHandle:function(e,n,r){r=r!=null?r.concat([e]):null,Ti(4194308,4,nx.bind(null,n,e),r)},useLayoutEffect:function(e,n){return Ti(4194308,4,e,n)},useInsertionEffect:function(e,n){Ti(4,2,e,n)},useMemo:function(e,n){var r=qt();n=n===void 0?null:n;var i=e();if(qr){sn(!0);try{e()}finally{sn(!1)}}return r.memoizedState=[i,n],i},useReducer:function(e,n,r){var i=qt();if(r!==void 0){var m=r(n);if(qr){sn(!0);try{r(n)}finally{sn(!1)}}}else m=n;return i.memoizedState=i.baseState=m,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:m},i.queue=e,e=e.dispatch=ZC.bind(null,De,e),[i.memoizedState,e]},useRef:function(e){var n=qt();return e={current:e},n.memoizedState=e},useState:function(e){e=Td(e);var n=e.queue,r=fx.bind(null,De,n);return n.dispatch=r,[e.memoizedState,r]},useDebugValue:kd,useDeferredValue:function(e,n){var r=qt();return Rd(r,e,n)},useTransition:function(){var e=Td(!1);return e=ox.bind(null,De,e.queue,!0,!1),qt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,r){var i=De,m=qt();if(Le){if(r===void 0)throw Error(l(407));r=r()}else{if(r=n(),et===null)throw Error(l(349));(Ue&127)!==0||Pg(i,n,r)}m.memoizedState=r;var h={value:r,getSnapshot:n};return m.queue=h,Zg(Bg.bind(null,i,h,e),[e]),i.flags|=2048,Ls(9,{destroy:void 0},Ug.bind(null,i,h,r,n),null),r},useId:function(){var e=qt(),n=et.identifierPrefix;if(Le){var r=Kn,i=Yn;r=(i&~(1<<32-Nt(i)-1)).toString(32)+r,n="_"+n+"R_"+r,r=Ni++,0<r&&(n+="H"+r.toString(32)),n+="_"}else r=VC++,n="_"+n+"r_"+r.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:zd,useFormState:Yg,useActionState:Yg,useOptimistic:function(e){var n=qt();n.memoizedState=n.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=r,n=Pd.bind(null,De,!0,r),r.dispatch=n,[e,n]},useMemoCache:Ed,useCacheRefresh:function(){return qt().memoizedState=JC.bind(null,De)},useEffectEvent:function(e){var n=qt(),r={impl:e};return n.memoizedState=r,function(){if((Ve&2)!==0)throw Error(l(440));return r.impl.apply(void 0,arguments)}}},Ud={readContext:Mt,use:Ai,useCallback:rx,useContext:Mt,useEffect:_d,useImperativeHandle:ax,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:sx,useReducer:Oi,useRef:Jg,useState:function(){return Oi(va)},useDebugValue:kd,useDeferredValue:function(e,n){var r=ht();return lx(r,Xe.memoizedState,e,n)},useTransition:function(){var e=Oi(va)[0],n=ht().memoizedState;return[typeof e=="boolean"?e:Kl(e),n]},useSyncExternalStore:zg,useId:ux,useHostTransitionStatus:zd,useFormState:Kg,useActionState:Kg,useOptimistic:function(e,n){var r=ht();return qg(r,Xe,e,n)},useMemoCache:Ed,useCacheRefresh:dx};Ud.useEffectEvent=Wg;var gx={readContext:Mt,use:Ai,useCallback:rx,useContext:Mt,useEffect:_d,useImperativeHandle:ax,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:sx,useReducer:Od,useRef:Jg,useState:function(){return Od(va)},useDebugValue:kd,useDeferredValue:function(e,n){var r=ht();return Xe===null?Rd(r,e,n):lx(r,Xe.memoizedState,e,n)},useTransition:function(){var e=Od(va)[0],n=ht().memoizedState;return[typeof e=="boolean"?e:Kl(e),n]},useSyncExternalStore:zg,useId:ux,useHostTransitionStatus:zd,useFormState:$g,useActionState:$g,useOptimistic:function(e,n){var r=ht();return Xe!==null?qg(r,Xe,e,n):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:Ed,useCacheRefresh:dx};gx.useEffectEvent=Wg;function Bd(e,n,r,i){n=e.memoizedState,r=r(i,n),r=r==null?n:x({},n,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var Ld={enqueueSetState:function(e,n,r){e=e._reactInternals;var i=hn(),m=Ka(i);m.payload=n,r!=null&&(m.callback=r),n=Xa(e,m,i),n!==null&&(Zt(n,e,i),Gl(n,e,i))},enqueueReplaceState:function(e,n,r){e=e._reactInternals;var i=hn(),m=Ka(i);m.tag=1,m.payload=n,r!=null&&(m.callback=r),n=Xa(e,m,i),n!==null&&(Zt(n,e,i),Gl(n,e,i))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var r=hn(),i=Ka(r);i.tag=2,n!=null&&(i.callback=n),n=Xa(e,i,r),n!==null&&(Zt(n,e,r),Gl(n,e,r))}};function xx(e,n,r,i,m,h,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,h,b):n.prototype&&n.prototype.isPureReactComponent?!Pl(r,i)||!Pl(m,h):!0}function yx(e,n,r,i){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(r,i),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(r,i),n.state!==e&&Ld.enqueueReplaceState(n,n.state,null)}function Ir(e,n){var r=n;if("ref"in n){r={};for(var i in n)i!=="ref"&&(r[i]=n[i])}if(e=e.defaultProps){r===n&&(r=x({},r));for(var m in e)r[m]===void 0&&(r[m]=e[m])}return r}function vx(e){ci(e)}function bx(e){console.error(e)}function wx(e){ci(e)}function ki(e,n){try{var r=e.onUncaughtError;r(n.value,{componentStack:n.stack})}catch(i){setTimeout(function(){throw i})}}function Sx(e,n,r){try{var i=e.onCaughtError;i(r.value,{componentStack:r.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Hd(e,n,r){return r=Ka(r),r.tag=3,r.payload={element:null},r.callback=function(){ki(e,n)},r}function Cx(e){return e=Ka(e),e.tag=3,e}function jx(e,n,r,i){var m=r.type.getDerivedStateFromError;if(typeof m=="function"){var h=i.value;e.payload=function(){return m(h)},e.callback=function(){Sx(n,r,i)}}var b=r.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Sx(n,r,i),typeof m!="function"&&(tr===null?tr=new Set([this]):tr.add(this));var A=i.stack;this.componentDidCatch(i.value,{componentStack:A!==null?A:""})})}function WC(e,n,r,i,m){if(r.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(n=r.alternate,n!==null&&_s(n,r,m,!0),r=dn.current,r!==null){switch(r.tag){case 31:case 13:return Tn===null?Gi():r.alternate===null&&ct===0&&(ct=3),r.flags&=-257,r.flags|=65536,r.lanes=m,i===vi?r.flags|=16384:(n=r.updateQueue,n===null?r.updateQueue=new Set([i]):n.add(i),ff(e,i,m)),!1;case 22:return r.flags|=65536,i===vi?r.flags|=16384:(n=r.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([i])},r.updateQueue=n):(r=n.retryQueue,r===null?n.retryQueue=new Set([i]):r.add(i)),ff(e,i,m)),!1}throw Error(l(435,r.tag))}return ff(e,i,m),Gi(),!1}if(Le)return n=dn.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=m,i!==sd&&(e=Error(l(422),{cause:i}),Ll(Nn(e,r)))):(i!==sd&&(n=Error(l(423),{cause:i}),Ll(Nn(n,r))),e=e.current.alternate,e.flags|=65536,m&=-m,e.lanes|=m,i=Nn(i,r),m=Hd(e.stateNode,i,m),gd(e,m),ct!==4&&(ct=2)),!1;var h=Error(l(520),{cause:i});if(h=Nn(h,r),ro===null?ro=[h]:ro.push(h),ct!==4&&(ct=2),n===null)return!0;
vendor: 12,762 bytes, line 48
48i=Nn(i,r),r=n;do{switch(r.tag){case 3:return r.flags|=65536,e=m&-m,r.lanes|=e,e=Hd(r.stateNode,i,e),gd(r,e),!1;case 1:if(n=r.type,h=r.stateNode,(r.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(tr===null||!tr.has(h))))return r.flags|=65536,m&=-m,r.lanes|=m,m=Cx(m),jx(m,e,r,i),gd(r,m),!1}r=r.return}while(r!==null);return!1}var qd=Error(l(461)),vt=!1;function zt(e,n,r,i){n.child=e===null?Og(n,null,r,i):Hr(n,e.child,r,i)}function Nx(e,n,r,i,m){r=r.render;var h=n.ref;if("ref"in i){var b={};for(var A in i)A!=="ref"&&(b[A]=i[A])}else b=i;return Pr(n),i=Sd(e,n,r,b,h,m),A=Cd(),e!==null&&!vt?(jd(e,n,m),ba(e,n,m)):(Le&&A&&ad(n),n.flags|=1,zt(e,n,i,m),n.child)}function Ex(e,n,r,i,m){if(e===null){var h=r.type;return typeof h=="function"&&!ed(h)&&h.defaultProps===void 0&&r.compare===null?(n.tag=15,n.type=h,Ax(e,n,h,i,m)):(e=mi(r.type,null,i,n,n.mode,m),e.ref=n.ref,e.return=n,n.child=e)}if(h=e.child,!Xd(e,m)){var b=h.memoizedProps;if(r=r.compare,r=r!==null?r:Pl,r(b,i)&&e.ref===n.ref)return ba(e,n,m)}return n.flags|=1,e=pa(h,i),e.ref=n.ref,e.return=n,n.child=e}function Ax(e,n,r,i,m){if(e!==null){var h=e.memoizedProps;if(Pl(h,i)&&e.ref===n.ref)if(vt=!1,n.pendingProps=i=h,Xd(e,m))(e.flags&131072)!==0&&(vt=!0);else return n.lanes=e.lanes,ba(e,n,m)}return Id(e,n,r,i,m)}function Ox(e,n,r,i){var m=i.children,h=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|r:r,e!==null){for(i=n.child=e.child,m=0;i!==null;)m=m|i.lanes|i.childLanes,i=i.sibling;i=m&~h}else i=0,n.child=null;return Tx(e,n,h,r,i)}if((r&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&xi(n,h!==null?h.cachePool:null),h!==null?_g(n,h):yd(),kg(n);else return i=n.lanes=536870912,Tx(e,n,h!==null?h.baseLanes|r:r,r,i)}else h!==null?(xi(n,h.cachePool),_g(n,h),Ja(),n.memoizedState=null):(e!==null&&xi(n,null),yd(),Ja());return zt(e,n,m,r),n.child}function Jl(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Tx(e,n,r,i,m){var h=fd();return h=h===null?null:{parent:xt._currentValue,pool:h},n.memoizedState={baseLanes:r,cachePool:h},e!==null&&xi(n,null),yd(),kg(n),e!==null&&_s(e,n,i,!0),n.childLanes=m,null}function Ri(e,n){return n=zi({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Dx(e,n,r){return Hr(n,e.child,null,r),e=Ri(n,n.pendingProps),e.flags|=2,fn(n),n.memoizedState=null,e}function ej(e,n,r){var i=n.pendingProps,m=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Le){if(i.mode==="hidden")return e=Ri(n,i),n.lanes=536870912,Jl(null,e);if(bd(n),(e=nt)?(e=Iy(e,On),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:Yn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},r=mg(e),r.return=n,n.child=r,Rt=n,nt=null)):e=null,e===null)throw Va(n);return n.lanes=536870912,null}return Ri(n,i)}var h=e.memoizedState;if(h!==null){var b=h.dehydrated;if(bd(n),m)if(n.flags&256)n.flags&=-257,n=Dx(e,n,r);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(l(558));else if(vt||_s(e,n,r,!1),m=(r&e.childLanes)!==0,vt||m){if(i=et,i!==null&&(b=Vt(i,r),b!==0&&b!==h.retryLane))throw h.retryLane=b,kr(e,b),Zt(i,e,b),qd;Gi(),n=Dx(e,n,r)}else e=h.treeContext,nt=Dn(b.nextSibling),Rt=n,Le=!0,Ga=null,On=!1,e!==null&&gg(n,e),n=Ri(n,i),n.flags|=4096;return n}return e=pa(e.child,{mode:i.mode,children:i.children}),e.ref=n.ref,n.child=e,e.return=n,e}function Mi(e,n){var r=n.ref;if(r===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(l(284));(e===null||e.ref!==r)&&(n.flags|=4194816)}}function Id(e,n,r,i,m){return Pr(n),r=Sd(e,n,r,i,void 0,m),i=Cd(),e!==null&&!vt?(jd(e,n,m),ba(e,n,m)):(Le&&i&&ad(n),n.flags|=1,zt(e,n,r,m),n.child)}function _x(e,n,r,i,m,h){return Pr(n),n.updateQueue=null,r=Mg(n,i,r,m),Rg(e),i=Cd(),e!==null&&!vt?(jd(e,n,h),ba(e,n,h)):(Le&&i&&ad(n),n.flags|=1,zt(e,n,r,h),n.child)}function kx(e,n,r,i,m){if(Pr(n),n.stateNode===null){var h=As,b=r.contextType;typeof b=="object"&&b!==null&&(h=Mt(b)),h=new r(i,h),n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ld,n.stateNode=h,h._reactInternals=n,h=n.stateNode,h.props=i,h.state=n.memoizedState,h.refs={},pd(n),b=r.contextType,h.context=typeof b=="object"&&b!==null?Mt(b):As,h.state=n.memoizedState,b=r.getDerivedStateFromProps,typeof b=="function"&&(Bd(n,r,b,i),h.state=n.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&Ld.enqueueReplaceState(h,h.state,null),Fl(n,i,h,m),Vl(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),i=!0}else if(e===null){h=n.stateNode;var A=n.memoizedProps,P=Ir(r,A);h.props=P;var $=h.context,ae=r.contextType;b=As,typeof ae=="object"&&ae!==null&&(b=Mt(ae));var se=r.getDerivedStateFromProps;ae=typeof se=="function"||typeof h.getSnapshotBeforeUpdate=="function",A=n.pendingProps!==A,ae||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(A||$!==b)&&yx(n,h,i,b),Ya=!1;var Z=n.memoizedState;h.state=Z,Fl(n,i,h,m),Vl(),$=n.memoizedState,A||Z!==$||Ya?(typeof se=="function"&&(Bd(n,r,se,i),$=n.memoizedState),(P=Ya||xx(n,r,P,i,Z,$,b))?(ae||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=i,n.memoizedState=$),h.props=i,h.state=$,h.context=b,i=P):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),i=!1)}else{h=n.stateNode,hd(e,n),b=n.memoizedProps,ae=Ir(r,b),h.props=ae,se=n.pendingProps,Z=h.context,$=r.contextType,P=As,typeof $=="object"&&$!==null&&(P=Mt($)),A=r.getDerivedStateFromProps,($=typeof A=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==se||Z!==P)&&yx(n,h,i,P),Ya=!1,Z=n.memoizedState,h.state=Z,Fl(n,i,h,m),Vl();var ee=n.memoizedState;b!==se||Z!==ee||Ya||e!==null&&e.dependencies!==null&&hi(e.dependencies)?(typeof A=="function"&&(Bd(n,r,A,i),ee=n.memoizedState),(ae=Ya||xx(n,r,ae,i,Z,ee,P)||e!==null&&e.dependencies!==null&&hi(e.dependencies))?($||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(i,ee,P),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(i,ee,P)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),n.memoizedProps=i,n.memoizedState=ee),h.props=i,h.state=ee,h.context=P,i=ae):(typeof h.componentDidUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Z===e.memoizedState||(n.flags|=1024),i=!1)}return h=i,Mi(e,n),i=(n.flags&128)!==0,h||i?(h=n.stateNode,r=i&&typeof r.getDerivedStateFromError!="function"?null:h.render(),n.flags|=1,e!==null&&i?(n.child=Hr(n,e.child,null,m),n.child=Hr(n,null,r,m)):zt(e,n,r,m),n.memoizedState=h.state,e=n.child):e=ba(e,n,m),e}function Rx(e,n,r,i){return Mr(),n.flags|=256,zt(e,n,r,i),n.child}var Qd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gd(e){return{baseLanes:e,cachePool:Sg()}}function Vd(e,n,r){return e=e!==null?e.childLanes&~r:0,n&&(e|=pn),e}function Mx(e,n,r){var i=n.pendingProps,m=!1,h=(n.flags&128)!==0,b;if((b=h)||(b=e!==null&&e.memoizedState===null?!1:(pt.current&2)!==0),b&&(m=!0,n.flags&=-129),b=(n.flags&32)!==0,n.flags&=-33,e===null){if(Le){if(m?$a(n):Ja(),(e=nt)?(e=Iy(e,On),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:Qa!==null?{id:Yn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},r=mg(e),r.return=n,n.child=r,Rt=n,nt=null)):e=null,e===null)throw Va(n);return Of(e)?n.lanes=32:n.lanes=536870912,null}var A=i.children;return i=i.fallback,m?(Ja(),m=n.mode,A=zi({mode:"hidden",children:A},m),i=Rr(i,m,r,null),A.return=n,i.return=n,A.sibling=i,n.child=A,i=n.child,i.memoizedState=Gd(r),i.childLanes=Vd(e,b,r),n.memoizedState=Qd,Jl(null,i)):($a(n),Fd(n,A))}var P=e.memoizedState;if(P!==null&&(A=P.dehydrated,A!==null)){if(h)n.flags&256?($a(n),n.flags&=-257,n=Yd(e,n,r)):n.memoizedState!==null?(Ja(),n.child=e.child,n.flags|=128,n=null):(Ja(),A=i.fallback,m=n.mode,i=zi({mode:"visible",children:i.children},m),A=Rr(A,m,r,null),A.flags|=2,i.return=n,A.return=n,i.sibling=A,n.child=i,Hr(n,e.child,null,r),i=n.child,i.memoizedState=Gd(r),i.childLanes=Vd(e,b,r),n.memoizedState=Qd,n=Jl(null,i));else if($a(n),Of(A)){if(b=A.nextSibling&&A.nextSibling.dataset,b)var $=b.dgst;b=$,i=Error(l(419)),i.stack="",i.digest=b,Ll({value:i,source:null,stack:null}),n=Yd(e,n,r)}else if(vt||_s(e,n,r,!1),b=(r&e.childLanes)!==0,vt||b){if(b=et,b!==null&&(i=Vt(b,r),i!==0&&i!==P.retryLane))throw P.retryLane=i,kr(e,i),Zt(b,e,i),qd;Af(A)||Gi(),n=Yd(e,n,r)}else Af(A)?(n.flags|=192,n.child=e.child,n=null):(e=P.treeContext,nt=Dn(A.nextSibling),Rt=n,Le=!0,Ga=null,On=!1,e!==null&&gg(n,e),n=Fd(n,i.children),n.flags|=4096);return n}return m?(Ja(),A=i.fallback,m=n.mode,P=e.child,$=P.sibling,i=pa(P,{mode:"hidden",children:i.children}),i.subtreeFlags=P.subtreeFlags&65011712,$!==null?A=pa($,A):(A=Rr(A,m,r,null),A.flags|=2),A.return=n,i.return=n,i.sibling=A,n.child=i,Jl(null,i),i=n.child,A=e.child.memoizedState,A===null?A=Gd(r):(m=A.cachePool,m!==null?(P=xt._currentValue,m=m.parent!==P?{parent:P,pool:P}:m):m=Sg(),A={baseLanes:A.baseLanes|r,cachePool:m}),i.memoizedState=A,i.childLanes=Vd(e,b,r),n.memoizedState=Qd,Jl(e.child,i)):($a(n),r=e.child,e=r.sibling,r=pa(r,{mode:"visible",children:i.children}),r.return=n,r.sibling=null,e!==null&&(b=n.deletions,b===null?(n.deletions=[e],n.flags|=16):b.push(e)),n.child=r,n.memoizedState=null,r)}function Fd(e,n){return n=zi({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function zi(e,n){return e=un(22,e,null,n),e.lanes=0,e}function Yd(e,n,r){return Hr(n,e.child,null,r),e=Fd(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function zx(e,n,r){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n),id(e.return,n,r)}function Kd(e,n,r,i,m,h){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:i,tail:r,tailMode:m,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=i,b.tail=r,b.tailMode=m,b.treeForkCount=h)}function Px(e,n,r){var i=n.pendingProps,m=i.revealOrder,h=i.tail;i=i.children;var b=pt.current,A=(b&2)!==0;if(A?(b=b&1|2,n.flags|=128):b&=1,I(pt,b),zt(e,n,i,r),i=Le?Bl:0,!A&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zx(e,r,n);else if(e.tag===19)zx(e,r,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(m){case"forwards":for(r=n.child,m=null;r!==null;)e=r.alternate,e!==null&&Ci(e)===null&&(m=r),r=r.sibling;r=m,r===null?(m=n.child,n.child=null):(m=r.sibling,r.sibling=null),Kd(n,!1,m,r,h,i);break;case"backwards":case"unstable_legacy-backwards":for(r=null,m=n.child,n.child=null;m!==null;){if(e=m.alternate,e!==null&&Ci(e)===null){n.child=m;break}e=m.sibling,m.sibling=r,r=m,m=e}Kd(n,!0,r,null,h,i);break;case"together":Kd(n,!1,null,null,void 0,i);break;default:n.memoizedState=null}return n.child}function ba(e,n,r){if(e!==null&&(n.dependencies=e.dependencies),er|=n.lanes,(r&n.childLanes)===0)if(e!==null){if(_s(e,n,r,!1),(r&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(l(153));if(n.child!==null){for(e=n.child,r=pa(e,e.pendingProps),n.child=r,r.return=n;e.sibling!==null;)e=e.sibling,r=r.sibling=pa(e,e.pendingProps),r.return=n;r.sibling=null}return n.child}
vendor: 4,105 bytes, line 48
48function Xd(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&hi(e)))}function tj(e,n,r){switch(n.tag){case 3:ce(n,n.stateNode.containerInfo),Fa(n,xt,e.memoizedState.cache),Mr();break;case 27:case 5:we(n);break;case 4:ce(n,n.stateNode.containerInfo);break;case 10:Fa(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,bd(n),null;break;case 13:var i=n.memoizedState;if(i!==null)return i.dehydrated!==null?($a(n),n.flags|=128,null):(r&n.child.childLanes)!==0?Mx(e,n,r):($a(n),e=ba(e,n,r),e!==null?e.sibling:null);$a(n);break;case 19:var m=(e.flags&128)!==0;if(i=(r&n.childLanes)!==0,i||(_s(e,n,r,!1),i=(r&n.childLanes)!==0),m){if(i)return Px(e,n,r);n.flags|=128}if(m=n.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),I(pt,pt.current),i)break;return null;case 22:return n.lanes=0,Ox(e,n,r,n.pendingProps);case 24:Fa(n,xt,e.memoizedState.cache)}return ba(e,n,r)}function Ux(e,n,r){if(e!==null)if(e.memoizedProps!==n.pendingProps)vt=!0;else{if(!Xd(e,r)&&(n.flags&128)===0)return vt=!1,tj(e,n,r);vt=(e.flags&131072)!==0}else vt=!1,Le&&(n.flags&1048576)!==0&&hg(n,Bl,n.index);switch(n.lanes=0,n.tag){case 16:e:{var i=n.pendingProps;if(e=Br(n.elementType),n.type=e,typeof e=="function")ed(e)?(i=Ir(e,i),n.tag=1,n=kx(null,n,e,i,r)):(n.tag=0,n=Id(null,n,e,i,r));else{if(e!=null){var m=e.$$typeof;if(m===k){n.tag=11,n=Nx(null,n,e,i,r);break e}else if(m===T){n.tag=14,n=Ex(null,n,e,i,r);break e}}throw n=te(e)||e,Error(l(306,n,""))}}return n;case 0:return Id(e,n,n.type,n.pendingProps,r);case 1:return i=n.type,m=Ir(i,n.pendingProps),kx(e,n,i,m,r);case 3:e:{if(ce(n,n.stateNode.containerInfo),e===null)throw Error(l(387));i=n.pendingProps;var h=n.memoizedState;m=h.element,hd(e,n),Fl(n,i,null,r);var b=n.memoizedState;if(i=b.cache,Fa(n,xt,i),i!==h.cache&&cd(n,[xt],r,!0),Vl(),i=b.element,h.isDehydrated)if(h={element:i,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=Rx(e,n,i,r);break e}else if(i!==m){m=Nn(Error(l(424)),n),Ll(m),n=Rx(e,n,i,r);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=Dn(e.firstChild),Rt=n,Le=!0,Ga=null,On=!0,r=Og(n,null,i,r),n.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(Mr(),i===m){n=ba(e,n,r);break e}zt(e,n,i,r)}n=n.child}return n;case 26:return Mi(e,n),e===null?(r=Ky(n.type,null,n.pendingProps,null))?n.memoizedState=r:Le||(r=n.type,e=n.pendingProps,i=Ji(fe.current).createElement(r),i[kt]=n,i[Ft]=e,Pt(i,r,e),At(i),n.stateNode=i):n.memoizedState=Ky(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return we(n),e===null&&Le&&(i=n.stateNode=Vy(n.type,n.pendingProps,fe.current),Rt=n,On=!0,m=nt,sr(n.type)?(Tf=m,nt=Dn(i.firstChild)):nt=m),zt(e,n,n.pendingProps.children,r),Mi(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Le&&((m=i=nt)&&(i=_j(i,n.type,n.pendingProps,On),i!==null?(n.stateNode=i,Rt=n,nt=Dn(i.firstChild),On=!1,m=!0):m=!1),m||Va(n)),we(n),m=n.type,h=n.pendingProps,b=e!==null?e.memoizedProps:null,i=h.children,jf(m,h)?i=null:b!==null&&jf(m,b)&&(n.flags|=32),n.memoizedState!==null&&(m=Sd(e,n,FC,null,null,r),mo._currentValue=m),Mi(e,n),zt(e,n,i,r),n.child;case 6:return e===null&&Le&&((e=r=nt)&&(r=kj(r,n.pendingProps,On),r!==null?(n.stateNode=r,Rt=n,nt=null,e=!0):e=!1),e||Va(n)),null;case 13:return Mx(e,n,r);case 4:return ce(n,n.stateNode.containerInfo),i=n.pendingProps,e===null?n.child=Hr(n,null,i,r):zt(e,n,i,r),n.child;case 11:return Nx(e,n,n.type,n.pendingProps,r);case 7:return zt(e,n,n.pendingProps,r),n.child;case 8:return zt(e,n,n.pendingProps.children,r),n.child;case 12:return zt(e,n,n.pendingProps.children,r),n.child;case 10:return i=n.pendingProps,Fa(n,n.type,i.value),zt(e,n,i.children,r),n.child;case 9:return m=n.type._context,i=n.pendingProps.children,Pr(n),m=Mt(m),i=i(m),n.flags|=1,zt(e,n,i,r),n.child;case 14:return Ex(e,n,n.type,n.pendingProps,r);case 15:return Ax(e,n,n.type,n.pendingProps,r);case 19:return Px(e,n,r);case 31:return ej(e,n,r);case 22:return Ox(e,n,r,n.pendingProps);
vendor: 4,171 bytes, line 48
48case 24:return Pr(n),i=Mt(xt),e===null?(m=fd(),m===null&&(m=et,h=ud(),m.pooledCache=h,h.refCount++,h!==null&&(m.pooledCacheLanes|=r),m=h),n.memoizedState={parent:i,cache:m},pd(n),Fa(n,xt,m)):((e.lanes&r)!==0&&(hd(e,n),Fl(n,null,null,r),Vl()),m=e.memoizedState,h=n.memoizedState,m.parent!==i?(m={parent:i,cache:i},n.memoizedState=m,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=m),Fa(n,xt,i)):(i=h.cache,Fa(n,xt,i),i!==m.cache&&cd(n,[xt],r,!0))),zt(e,n,n.pendingProps.children,r),n.child;case 29:throw n.pendingProps}throw Error(l(156,n.tag))}function wa(e){e.flags|=4}function $d(e,n,r,i,m){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(m&335544128)===m)if(e.stateNode.complete)e.flags|=8192;else if(uy())e.flags|=8192;else throw Lr=vi,md}else e.flags&=-16777217}function Bx(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Wy(n))if(uy())e.flags|=8192;else throw Lr=vi,md}function Pi(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?Et():536870912,e.lanes|=n,Qs|=n)}function Zl(e,n){if(!Le)switch(e.tailMode){case"hidden":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function at(e){var n=e.alternate!==null&&e.alternate.child===e.child,r=0,i=0;if(n)for(var m=e.child;m!==null;)r|=m.lanes|m.childLanes,i|=m.subtreeFlags&65011712,i|=m.flags&65011712,m.return=e,m=m.sibling;else for(m=e.child;m!==null;)r|=m.lanes|m.childLanes,i|=m.subtreeFlags,i|=m.flags,m.return=e,m=m.sibling;return e.subtreeFlags|=i,e.childLanes=r,n}function nj(e,n,r){var i=n.pendingProps;switch(rd(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(n),null;case 1:return at(n),null;case 3:return r=n.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),n.memoizedState.cache!==i&&(n.flags|=2048),xa(xt),pe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ds(n)?wa(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,ld())),at(n),null;case 26:var m=n.type,h=n.memoizedState;return e===null?(wa(n),h!==null?(at(n),Bx(n,h)):(at(n),$d(n,m,null,i,r))):h?h!==e.memoizedState?(wa(n),at(n),Bx(n,h)):(at(n),n.flags&=-16777217):(e=e.memoizedProps,e!==i&&wa(n),at(n),$d(n,m,e,i,r)),null;case 27:if(ye(n),r=fe.current,m=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&wa(n);else{if(!i){if(n.stateNode===null)throw Error(l(166));return at(n),null}e=J.current,Ds(n)?xg(n):(e=Vy(m,i,r),n.stateNode=e,wa(n))}return at(n),null;case 5:if(ye(n),m=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==i&&wa(n);else{if(!i){if(n.stateNode===null)throw Error(l(166));return at(n),null}if(h=J.current,Ds(n))xg(n);else{var b=Ji(fe.current);switch(h){case 1:h=b.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:h=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":h=b.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":h=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":h=b.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof i.is=="string"?b.createElement("select",{is:i.is}):b.createElement("select"),i.multiple?h.multiple=!0:i.size&&(h.size=i.size);break;default:h=typeof i.is=="string"?b.createElement(m,{is:i.is}):b.createElement(m)}}h[kt]=n,h[Ft]=i;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(Pt(h,m,i),m){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&wa(n)}}return at(n),$d(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,r),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==i&&wa(n);
vendor: 25,620 bytes, line 48
48else{if(typeof i!="string"&&n.stateNode===null)throw Error(l(166));if(e=fe.current,Ds(n)){if(e=n.stateNode,r=n.memoizedProps,i=null,m=Rt,m!==null)switch(m.tag){case 27:case 5:i=m.memoizedProps}e[kt]=n,e=!!(e.nodeValue===r||i!==null&&i.suppressHydrationWarning===!0||My(e.nodeValue,r)),e||Va(n,!0)}else e=Ji(e).createTextNode(i),e[kt]=n,n.stateNode=e}return at(n),null;case 31:if(r=n.memoizedState,e===null||e.memoizedState!==null){if(i=Ds(n),r!==null){if(e===null){if(!i)throw Error(l(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[kt]=n}else Mr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;at(n),e=!1}else r=ld(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),e=!0;if(!e)return n.flags&256?(fn(n),n):(fn(n),null);if((n.flags&128)!==0)throw Error(l(558))}return at(n),null;case 13:if(i=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(m=Ds(n),i!==null&&i.dehydrated!==null){if(e===null){if(!m)throw Error(l(318));if(m=n.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(l(317));m[kt]=n}else Mr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;at(n),m=!1}else m=ld(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=m),m=!0;if(!m)return n.flags&256?(fn(n),n):(fn(n),null)}return fn(n),(n.flags&128)!==0?(n.lanes=r,n):(r=i!==null,e=e!==null&&e.memoizedState!==null,r&&(i=n.child,m=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(m=i.alternate.memoizedState.cachePool.pool),h=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(h=i.memoizedState.cachePool.pool),h!==m&&(i.flags|=2048)),r!==e&&r&&(n.child.flags|=8192),Pi(n,n.updateQueue),at(n),null);case 4:return pe(),e===null&&vf(n.stateNode.containerInfo),at(n),null;case 10:return xa(n.type),at(n),null;case 19:if(K(pt),i=n.memoizedState,i===null)return at(n),null;if(m=(n.flags&128)!==0,h=i.rendering,h===null)if(m)Zl(i,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(h=Ci(e),h!==null){for(n.flags|=128,Zl(i,!1),e=h.updateQueue,n.updateQueue=e,Pi(n,e),n.subtreeFlags=0,e=r,r=n.child;r!==null;)fg(r,e),r=r.sibling;return I(pt,pt.current&1|2),Le&&ha(n,i.treeForkCount),n.child}e=e.sibling}i.tail!==null&&jt()>qi&&(n.flags|=128,m=!0,Zl(i,!1),n.lanes=4194304)}else{if(!m)if(e=Ci(h),e!==null){if(n.flags|=128,m=!0,e=e.updateQueue,n.updateQueue=e,Pi(n,e),Zl(i,!0),i.tail===null&&i.tailMode==="hidden"&&!h.alternate&&!Le)return at(n),null}else 2*jt()-i.renderingStartTime>qi&&r!==536870912&&(n.flags|=128,m=!0,Zl(i,!1),n.lanes=4194304);i.isBackwards?(h.sibling=n.child,n.child=h):(e=i.last,e!==null?e.sibling=h:n.child=h,i.last=h)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=jt(),e.sibling=null,r=pt.current,I(pt,m?r&1|2:r&1),Le&&ha(n,i.treeForkCount),e):(at(n),null);case 22:case 23:return fn(n),vd(),i=n.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(n.flags|=8192):i&&(n.flags|=8192),i?(r&536870912)!==0&&(n.flags&128)===0&&(at(n),n.subtreeFlags&6&&(n.flags|=8192)):at(n),r=n.updateQueue,r!==null&&Pi(n,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),i=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(i=n.memoizedState.cachePool.pool),i!==r&&(n.flags|=2048),e!==null&&K(Ur),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),n.memoizedState.cache!==r&&(n.flags|=2048),xa(xt),at(n),null;case 25:return null;case 30:return null}throw Error(l(156,n.tag))}function aj(e,n){switch(rd(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return xa(xt),pe(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return ye(n),null;case 31:if(n.memoizedState!==null){if(fn(n),n.alternate===null)throw Error(l(340));Mr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(fn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(l(340));Mr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return K(pt),null;case 4:return pe(),null;case 10:return xa(n.type),null;case 22:case 23:return fn(n),vd(),e!==null&&K(Ur),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return xa(xt),null;case 25:return null;default:return null}}function Lx(e,n){switch(rd(n),n.tag){case 3:xa(xt),pe();break;case 26:case 27:case 5:ye(n);break;case 4:pe();break;case 31:n.memoizedState!==null&&fn(n);break;case 13:fn(n);break;case 19:K(pt);break;case 10:xa(n.type);break;case 22:case 23:fn(n),vd(),e!==null&&K(Ur);break;case 24:xa(xt)}}function Wl(e,n){try{var r=n.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var m=i.next;r=m;do{if((r.tag&e)===e){i=void 0;var h=r.create,b=r.inst;i=h(),b.destroy=i}r=r.next}while(r!==m)}}catch(A){Ke(n,n.return,A)}}function Za(e,n,r){try{var i=n.updateQueue,m=i!==null?i.lastEffect:null;if(m!==null){var h=m.next;i=h;do{if((i.tag&e)===e){var b=i.inst,A=b.destroy;if(A!==void 0){b.destroy=void 0,m=n;var P=r,$=A;try{$()}catch(ae){Ke(m,P,ae)}}}i=i.next}while(i!==h)}}catch(ae){Ke(n,n.return,ae)}}function Hx(e){var n=e.updateQueue;if(n!==null){var r=e.stateNode;try{Dg(n,r)}catch(i){Ke(e,e.return,i)}}}function qx(e,n,r){r.props=Ir(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(i){Ke(e,n,i)}}function eo(e,n){try{var r=e.ref;if(r!==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 r=="function"?e.refCleanup=r(i):r.current=i}}catch(m){Ke(e,n,m)}}function Xn(e,n){var r=e.ref,i=e.refCleanup;if(r!==null)if(typeof i=="function")try{i()}catch(m){Ke(e,n,m)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(m){Ke(e,n,m)}else r.current=null}function Ix(e){var n=e.type,r=e.memoizedProps,i=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":r.autoFocus&&i.focus();break e;case"img":r.src?i.src=r.src:r.srcSet&&(i.srcset=r.srcSet)}}catch(m){Ke(e,e.return,m)}}function Jd(e,n,r){try{var i=e.stateNode;Nj(i,e.type,r,n),i[Ft]=n}catch(m){Ke(e,e.return,m)}}function Qx(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sr(e.type)||e.tag===4}function Zd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Qx(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&&sr(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 Wd(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,n):(n=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,n.appendChild(e),r=r._reactRootContainer,r!=null||n.onclick!==null||(n.onclick=fa));else if(i!==4&&(i===27&&sr(e.type)&&(r=e.stateNode,n=null),e=e.child,e!==null))for(Wd(e,n,r),e=e.sibling;e!==null;)Wd(e,n,r),e=e.sibling}function Ui(e,n,r){var i=e.tag;if(i===5||i===6)e=e.stateNode,n?r.insertBefore(e,n):r.appendChild(e);else if(i!==4&&(i===27&&sr(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(Ui(e,n,r),e=e.sibling;e!==null;)Ui(e,n,r),e=e.sibling}function Gx(e){var n=e.stateNode,r=e.memoizedProps;try{for(var i=e.type,m=n.attributes;m.length;)n.removeAttributeNode(m[0]);Pt(n,i,r),n[kt]=e,n[Ft]=r}catch(h){Ke(e,e.return,h)}}var Sa=!1,bt=!1,ef=!1,Vx=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function rj(e,n){if(e=e.containerInfo,Sf=rc,e=ag(e),Yu(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var m=i.anchorOffset,h=i.focusNode;i=i.focusOffset;try{r.nodeType,h.nodeType}catch{r=null;break e}var b=0,A=-1,P=-1,$=0,ae=0,se=e,Z=null;t:for(;;){for(var ee;se!==r||m!==0&&se.nodeType!==3||(A=b+m),se!==h||i!==0&&se.nodeType!==3||(P=b+i),se.nodeType===3&&(b+=se.nodeValue.length),(ee=se.firstChild)!==null;)Z=se,se=ee;for(;;){if(se===e)break t;if(Z===r&&++$===m&&(A=b),Z===h&&++ae===i&&(P=b),(ee=se.nextSibling)!==null)break;se=Z,Z=se.parentNode}se=ee}r=A===-1||P===-1?null:{start:A,end:P}}else r=null}r=r||{start:0,end:0}}else r=null;for(Cf={focusedElem:e,selectionRange:r},rc=!1,Ot=n;Ot!==null;)if(n=Ot,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,Ot=e;else for(;Ot!==null;){switch(n=Ot,h=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(r=0;r<e.length;r++)m=e[r],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&h!==null){e=void 0,r=n,m=h.memoizedProps,h=h.memoizedState,i=r.stateNode;try{var he=Ir(r.type,m);e=i.getSnapshotBeforeUpdate(he,h),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){Ke(r,r.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,r=e.nodeType,r===9)Ef(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ef(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(l(163))}if(e=n.sibling,e!==null){e.return=n.return,Ot=e;break}Ot=n.return}}function Fx(e,n,r){var i=r.flags;switch(r.tag){case 0:case 11:case 15:ja(e,r),i&4&&Wl(5,r);break;case 1:if(ja(e,r),i&4)if(e=r.stateNode,n===null)try{e.componentDidMount()}catch(b){Ke(r,r.return,b)}else{var m=Ir(r.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(m,n,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ke(r,r.return,b)}}i&64&&Hx(r),i&512&&eo(r,r.return);break;case 3:if(ja(e,r),i&64&&(e=r.updateQueue,e!==null)){if(n=null,r.child!==null)switch(r.child.tag){case 27:case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}try{Dg(e,n)}catch(b){Ke(r,r.return,b)}}break;case 27:n===null&&i&4&&Gx(r);case 26:case 5:ja(e,r),n===null&&i&4&&Ix(r),i&512&&eo(r,r.return);break;case 12:ja(e,r);break;case 31:ja(e,r),i&4&&Xx(e,r);break;case 13:ja(e,r),i&4&&$x(e,r),i&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=mj.bind(null,r),Rj(e,r))));break;case 22:if(i=r.memoizedState!==null||Sa,!i){n=n!==null&&n.memoizedState!==null||bt,m=Sa;var h=bt;Sa=i,(bt=n)&&!h?Na(e,r,(r.subtreeFlags&8772)!==0):ja(e,r),Sa=m,bt=h}break;case 30:break;default:ja(e,r)}}function Yx(e){var n=e.alternate;n!==null&&(e.alternate=null,Yx(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&Du(n)),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 rt=null,Kt=!1;function Ca(e,n,r){for(r=r.child;r!==null;)Kx(e,n,r),r=r.sibling}function Kx(e,n,r){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(wn,r)}catch{}switch(r.tag){case 26:bt||Xn(r,n),Ca(e,n,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:bt||Xn(r,n);var i=rt,m=Kt;sr(r.type)&&(rt=r.stateNode,Kt=!1),Ca(e,n,r),co(r.stateNode),rt=i,Kt=m;break;case 5:bt||Xn(r,n);case 6:if(i=rt,m=Kt,rt=null,Ca(e,n,r),rt=i,Kt=m,rt!==null)if(Kt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(r.stateNode)}catch(h){Ke(r,n,h)}else try{rt.removeChild(r.stateNode)}catch(h){Ke(r,n,h)}break;case 18:rt!==null&&(Kt?(e=rt,Hy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Js(e)):Hy(rt,r.stateNode));break;case 4:i=rt,m=Kt,rt=r.stateNode.containerInfo,Kt=!0,Ca(e,n,r),rt=i,Kt=m;break;case 0:case 11:case 14:case 15:Za(2,r,n),bt||Za(4,r,n),Ca(e,n,r);break;case 1:bt||(Xn(r,n),i=r.stateNode,typeof i.componentWillUnmount=="function"&&qx(r,n,i)),Ca(e,n,r);break;case 21:Ca(e,n,r);break;case 22:bt=(i=bt)||r.memoizedState!==null,Ca(e,n,r),bt=i;break;default:Ca(e,n,r)}}function Xx(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Js(e)}catch(r){Ke(n,n.return,r)}}}function $x(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Js(e)}catch(r){Ke(n,n.return,r)}}function sj(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new Vx),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new Vx),n;default:throw Error(l(435,e.tag))}}function Bi(e,n){var r=sj(e);n.forEach(function(i){if(!r.has(i)){r.add(i);var m=pj.bind(null,e,i);i.then(m,m)}})}function Xt(e,n){var r=n.deletions;if(r!==null)for(var i=0;i<r.length;i++){var m=r[i],h=e,b=n,A=b;e:for(;A!==null;){switch(A.tag){case 27:if(sr(A.type)){rt=A.stateNode,Kt=!1;break e}break;case 5:rt=A.stateNode,Kt=!1;break e;case 3:case 4:rt=A.stateNode.containerInfo,Kt=!0;break e}A=A.return}if(rt===null)throw Error(l(160));Kx(h,b,m),rt=null,Kt=!1,h=m.alternate,h!==null&&(h.return=null),m.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)Jx(n,e),n=n.sibling}var Un=null;function Jx(e,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Xt(n,e),$t(e),i&4&&(Za(3,e,e.return),Wl(3,e),Za(5,e,e.return));break;case 1:Xt(n,e),$t(e),i&512&&(bt||r===null||Xn(r,r.return)),i&64&&Sa&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?i:r.concat(i))));break;case 26:var m=Un;if(Xt(n,e),$t(e),i&512&&(bt||r===null||Xn(r,r.return)),i&4){var h=r!==null?r.memoizedState:null;if(i=e.memoizedState,r===null)if(i===null)if(e.stateNode===null){e:{i=e.type,r=e.memoizedProps,m=m.ownerDocument||m;t:switch(i){case"title":h=m.getElementsByTagName("title")[0],(!h||h[Al]||h[kt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=m.createElement(i),m.head.insertBefore(h,m.querySelector("head > title"))),Pt(h,i,r),h[kt]=e,At(h),i=h;break e;case"link":var b=Jy("link","href",m).get(i+(r.href||""));if(b){for(var A=0;A<b.length;A++)if(h=b[A],h.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&h.getAttribute("rel")===(r.rel==null?null:r.rel)&&h.getAttribute("title")===(r.title==null?null:r.title)&&h.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){b.splice(A,1);break t}}h=m.createElement(i),Pt(h,i,r),m.head.appendChild(h);break;case"meta":if(b=Jy("meta","content",m).get(i+(r.content||""))){for(A=0;A<b.length;A++)if(h=b[A],h.getAttribute("content")===(r.content==null?null:""+r.content)&&h.getAttribute("name")===(r.name==null?null:r.name)&&h.getAttribute("property")===(r.property==null?null:r.property)&&h.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&h.getAttribute("charset")===(r.charSet==null?null:r.charSet)){b.splice(A,1);break t}}h=m.createElement(i),Pt(h,i,r),m.head.appendChild(h);break;default:throw Error(l(468,i))}h[kt]=e,At(h),i=h}e.stateNode=i}else Zy(m,e.type,e.stateNode);else e.stateNode=$y(m,i,e.memoizedProps);else h!==i?(h===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):h.count--,i===null?Zy(m,e.type,e.stateNode):$y(m,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Jd(e,e.memoizedProps,r.memoizedProps)}break;case 27:Xt(n,e),$t(e),i&512&&(bt||r===null||Xn(r,r.return)),r!==null&&i&4&&Jd(e,e.memoizedProps,r.memoizedProps);break;case 5:if(Xt(n,e),$t(e),i&512&&(bt||r===null||Xn(r,r.return)),e.flags&32){m=e.stateNode;try{bs(m,"")}catch(he){Ke(e,e.return,he)}}i&4&&e.stateNode!=null&&(m=e.memoizedProps,Jd(e,m,r!==null?r.memoizedProps:m)),i&1024&&(ef=!0);break;case 6:if(Xt(n,e),$t(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,r=e.stateNode;try{r.nodeValue=i}catch(he){Ke(e,e.return,he)}}break;case 3:if(ec=null,m=Un,Un=Zi(n.containerInfo),Xt(n,e),Un=m,$t(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Js(n.containerInfo)}catch(he){Ke(e,e.return,he)}ef&&(ef=!1,Zx(e));break;case 4:i=Un,Un=Zi(e.stateNode.containerInfo),Xt(n,e),$t(e),Un=i;break;case 12:Xt(n,e),$t(e);break;case 31:Xt(n,e),$t(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bi(e,i)));break;case 13:Xt(n,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Hi=jt()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bi(e,i)));break;case 22:m=e.memoizedState!==null;var P=r!==null&&r.memoizedState!==null,$=Sa,ae=bt;if(Sa=$||m,bt=ae||P,Xt(n,e),bt=ae,Sa=$,$t(e),i&8192)e:for(n=e.stateNode,n._visibility=m?n._visibility&-2:n._visibility|1,m&&(r===null||P||Sa||bt||Qr(e)),r=null,n=e;;){if(n.tag===5||n.tag===26){if(r===null){P=r=n;try{if(h=P.stateNode,m)b=h.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{A=P.stateNode;var se=P.memoizedProps.style,Z=se!=null&&se.hasOwnProperty("display")?se.display:null;A.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(he){Ke(P,P.return,he)}}}else if(n.tag===6){if(r===null){P=n;try{P.stateNode.nodeValue=m?"":P.memoizedProps}catch(he){Ke(P,P.return,he)}}}else if(n.tag===18){if(r===null){P=n;try{var ee=P.stateNode;m?qy(ee,!0):qy(P.stateNode,!1)}catch(he){Ke(P,P.return,he)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;r===n&&(r=null),n=n.return}r===n&&(r=null),n.sibling.return=n.return,n=n.sibling}i&4&&(i=e.updateQueue,i!==null&&(r=i.retryQueue,r!==null&&(i.retryQueue=null,Bi(e,r))));break;case 19:Xt(n,e),$t(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Bi(e,i)));break;case 30:break;case 21:break;default:Xt(n,e),$t(e)}}function $t(e){var n=e.flags;if(n&2){try{for(var r,i=e.return;i!==null;){if(Qx(i)){r=i;break}i=i.return}if(r==null)throw Error(l(160));switch(r.tag){case 27:var m=r.stateNode,h=Zd(e);Ui(e,h,m);break;case 5:var b=r.stateNode;r.flags&32&&(bs(b,""),r.flags&=-33);var A=Zd(e);Ui(e,A,b);break;case 3:case 4:var P=r.stateNode.containerInfo,$=Zd(e);Wd(e,$,P);break;default:throw Error(l(161))}}catch(ae){Ke(e,e.return,ae)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Zx(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;Zx(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function ja(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)Fx(e,n.alternate,n),n=n.sibling}function Qr(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:Za(4,n,n.return),Qr(n);break;case 1:Xn(n,n.return);var r=n.stateNode;typeof r.componentWillUnmount=="function"&&qx(n,n.return,r),Qr(n);break;case 27:co(n.stateNode);case 26:case 5:Xn(n,n.return),Qr(n);break;case 22:n.memoizedState===null&&Qr(n);break;case 30:Qr(n);break;default:Qr(n)}e=e.sibling}}function Na(e,n,r){for(r=r&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var i=n.alternate,m=e,h=n,b=h.flags;switch(h.tag){case 0:case 11:case 15:Na(m,h,r),Wl(4,h);break;case 1:if(Na(m,h,r),i=h,m=i.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch($){Ke(i,i.return,$)}if(i=h,m=i.updateQueue,m!==null){var A=i.stateNode;try{var P=m.shared.hiddenCallbacks;if(P!==null)for(m.shared.hiddenCallbacks=null,m=0;m<P.length;m++)Tg(P[m],A)}catch($){Ke(i,i.return,$)}}r&&b&64&&Hx(h),eo(h,h.return);break;case 27:Gx(h);case 26:case 5:Na(m,h,r),r&&i===null&&b&4&&Ix(h),eo(h,h.return);break;case 12:Na(m,h,r);break;case 31:Na(m,h,r),r&&b&4&&Xx(m,h);break;case 13:Na(m,h,r),r&&b&4&&$x(m,h);break;case 22:h.memoizedState===null&&Na(m,h,r),eo(h,h.return);break;case 30:break;default:Na(m,h,r)}n=n.sibling}}function tf(e,n){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&Hl(r))}function nf(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Hl(e))}function Bn(e,n,r,i){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Wx(e,n,r,i),n=n.sibling}function Wx(e,n,r,i){var m=n.flags;switch(n.tag){case 0:case 11:case 15:Bn(e,n,r,i),m&2048&&Wl(9,n);break;case 1:Bn(e,n,r,i);break;case 3:Bn(e,n,r,i),m&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Hl(e)));break;case 12:if(m&2048){Bn(e,n,r,i),e=n.stateNode;try{var h=n.memoizedProps,b=h.id,A=h.onPostCommit;typeof A=="function"&&A(b,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(P){Ke(n,n.return,P)}}else Bn(e,n,r,i);break;case 31:Bn(e,n,r,i);break;case 13:Bn(e,n,r,i);break;case 23:break;case 22:h=n.stateNode,b=n.alternate,n.memoizedState!==null?h._visibility&2?Bn(e,n,r,i):to(e,n):h._visibility&2?Bn(e,n,r,i):(h._visibility|=2,Hs(e,n,r,i,(n.subtreeFlags&10256)!==0||!1)),m&2048&&tf(b,n);break;case 24:Bn(e,n,r,i),m&2048&&nf(n.alternate,n);break;default:Bn(e,n,r,i)}}function Hs(e,n,r,i,m){for(m=m&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var h=e,b=n,A=r,P=i,$=b.flags;switch(b.tag){case 0:case 11:case 15:Hs(h,b,A,P,m),Wl(8,b);break;case 23:break;case 22:var ae=b.stateNode;b.memoizedState!==null?ae._visibility&2?Hs(h,b,A,P,m):to(h,b):(ae._visibility|=2,Hs(h,b,A,P,m)),m&&$&2048&&tf(b.alternate,b);break;case 24:Hs(h,b,A,P,m),m&&$&2048&&nf(b.alternate,b);break;default:Hs(h,b,A,P,m)}n=n.sibling}}function to(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var r=e,i=n,m=i.flags;switch(i.tag){case 22:to(r,i),m&2048&&tf(i.alternate,i);break;case 24:to(r,i),m&2048&&nf(i.alternate,i);break;default:to(r,i)}n=n.sibling}}var no=8192;function qs(e,n,r){if(e.subtreeFlags&no)for(e=e.child;e!==null;)ey(e,n,r),e=e.sibling}function ey(e,n,r){switch(e.tag){case 26:qs(e,n,r),e.flags&no&&e.memoizedState!==null&&Vj(r,Un,e.memoizedState,e.memoizedProps);break;case 5:qs(e,n,r);break;case 3:case 4:var i=Un;Un=Zi(e.stateNode.containerInfo),qs(e,n,r),Un=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=no,no=16777216,qs(e,n,r),no=i):qs(e,n,r));break;default:qs(e,n,r)}}function ty(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function ao(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];Ot=i,ay(i,e)}ty(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ny(e),e=e.sibling}function ny(e){switch(e.tag){case 0:case 11:case 15:ao(e),e.flags&2048&&Za(9,e,e.return);break;case 3:ao(e);break;case 12:ao(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,Li(e)):ao(e);break;default:ao(e)}}function Li(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];Ot=i,ay(i,e)}ty(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:Za(8,n,n.return),Li(n);break;case 22:r=n.stateNode,r._visibility&2&&(r._visibility&=-3,Li(n));break;default:Li(n)}e=e.sibling}}function ay(e,n){for(;Ot!==null;){var r=Ot;switch(r.tag){case 0:case 11:case 15:Za(8,r,n);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var i=r.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Hl(r.memoizedState.cache)}if(i=r.child,i!==null)i.return=r,Ot=i;else e:for(r=e;Ot!==null;){i=Ot;var m=i.sibling,h=i.return;if(Yx(i),i===r){Ot=null;break e}if(m!==null){m.return=h,Ot=m;break e}Ot=h}}}var lj={getCacheForType:function(e){var n=Mt(xt),r=n.data.get(e);return r===void 0&&(r=e(),n.data.set(e,r)),r},cacheSignal:function(){return Mt(xt).controller.signal}},oj=typeof WeakMap=="function"?WeakMap:Map,Ve=0,et=null,ze=null,Ue=0,Ye=0,mn=null,Wa=!1,Is=!1,af=!1,Ea=0,ct=0,er=0,Gr=0,rf=0,pn=0,Qs=0,ro=null,Jt=null,sf=!1,Hi=0,ry=0,qi=1/0,Ii=null,tr=null,St=0,nr=null,Gs=null,Aa=0,lf=0,of=null,sy=null,so=0,cf=null;function hn(){return(Ve&2)!==0&&Ue!==0?Ue&-Ue:z.T!==null?hf():Ou()}function ly(){if(pn===0)if((Ue&536870912)===0||Le){var e=ua;ua<<=1,(ua&3932160)===0&&(ua=262144),pn=e}else pn=536870912;return e=dn.current,e!==null&&(e.flags|=32),pn}function Zt(e,n,r){(e===et&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(Vs(e,0),ar(e,Ue,pn,!1)),st(e,r),((Ve&2)===0||e!==et)&&(e===et&&((Ve&2)===0&&(Gr|=r),ct===4&&ar(e,Ue,pn,!1)),$n(e))}function oy(e,n,r){if((Ve&6)!==0)throw Error(l(327));var i=!r&&(n&127)===0&&(n&e.expiredLanes)===0||We(e,n),m=i?uj(e,n):df(e,n,!0),h=i;do{if(m===0){Is&&!i&&ar(e,n,0,!1);break}else{if(r=e.current.alternate,h&&!ij(r)){m=df(e,n,!1),h=!1;continue}if(m===2){if(h=n,e.errorRecoveryDisabledLanes&h)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){n=b;e:{var A=e;m=ro;var P=A.current.memoizedState.isDehydrated;if(P&&(Vs(A,b).flags|=256),b=df(A,b,!1),b!==2){if(af&&!P){A.errorRecoveryDisabledLanes|=h,Gr|=h,m=4;break e}h=Jt,Jt=m,h!==null&&(Jt===null?Jt=h:Jt.push.apply(Jt,h))}m=b}if(h=!1,m!==2)continue}}if(m===1){Vs(e,0),ar(e,n,0,!0);break}e:{switch(i=e,h=m,h){case 0:case 1:throw Error(l(345));case 4:if((n&4194048)!==n)break;case 6:ar(i,n,pn,!Wa);break e;case 2:Jt=null;break;case 3:case 5:break;default:throw Error(l(329))}if((n&62914560)===n&&(m=Hi+300-jt(),10<m)){if(ar(i,n,pn,!Wa),Ae(i,0,!0)!==0)break e;Aa=n,i.timeoutHandle=By(iy.bind(null,i,r,Jt,Ii,sf,n,pn,Gr,Qs,Wa,h,"Throttled",-0,0),m);break e}iy(i,r,Jt,Ii,sf,n,pn,Gr,Qs,Wa,h,null,-0,0)}}break}while(!0);$n(e)}function iy(e,n,r,i,m,h,b,A,P,$,ae,se,Z,ee){if(e.timeoutHandle=-1,se=n.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:fa},ey(n,h,se);
vendor: 12,849 bytes, line 48
48var he=(h&62914560)===h?Hi-jt():(h&4194048)===h?ry-jt():0;if(he=Fj(se,he),he!==null){Aa=h,e.cancelPendingCommit=he(gy.bind(null,e,n,h,r,i,m,b,A,P,ae,se,null,Z,ee)),ar(e,h,b,!$);return}}gy(e,n,h,r,i,m,b,A,P)}function ij(e){for(var n=e;;){var r=n.tag;if((r===0||r===11||r===15)&&n.flags&16384&&(r=n.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var i=0;i<r.length;i++){var m=r[i],h=m.getSnapshot;m=m.value;try{if(!cn(h(),m))return!1}catch{return!1}}if(r=n.child,n.subtreeFlags&16384&&r!==null)r.return=n,n=r;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function ar(e,n,r,i){n&=~rf,n&=~Gr,e.suspendedLanes|=n,e.pingedLanes&=~n,i&&(e.warmLanes|=n),i=e.expirationTimes;for(var m=n;0<m;){var h=31-Nt(m),b=1<<h;i[h]=-1,m&=~b}r!==0&&Ar(e,r,n)}function Qi(){return(Ve&6)===0?(lo(0),!1):!0}function uf(){if(ze!==null){if(Ye===0)var e=ze.return;else e=ze,ga=zr=null,Nd(e),zs=null,Il=0,e=ze;for(;e!==null;)Lx(e.alternate,e),e=e.return;ze=null}}function Vs(e,n){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,Oj(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),Aa=0,uf(),et=e,ze=r=pa(e.current,null),Ue=n,Ye=0,mn=null,Wa=!1,Is=We(e,n),af=!1,Qs=pn=rf=Gr=er=ct=0,Jt=ro=null,sf=!1,(n&8)!==0&&(n|=n&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=n;0<i;){var m=31-Nt(i),h=1<<m;n|=e[m],i&=~h}return Ea=n,ui(),r}function cy(e,n){De=null,z.H=$l,n===Ms||n===yi?(n=Ng(),Ye=3):n===md?(n=Ng(),Ye=4):Ye=n===qd?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,mn=n,ze===null&&(ct=1,ki(e,Nn(n,e.current)))}function uy(){var e=dn.current;return e===null?!0:(Ue&4194048)===Ue?Tn===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?e===Tn:!1}function dy(){var e=z.H;return z.H=$l,e===null?$l:e}function fy(){var e=z.A;return z.A=lj,e}function Gi(){ct=4,Wa||(Ue&4194048)!==Ue&&dn.current!==null||(Is=!0),(er&134217727)===0&&(Gr&134217727)===0||et===null||ar(et,Ue,pn,!1)}function df(e,n,r){var i=Ve;Ve|=2;var m=dy(),h=fy();(et!==e||Ue!==n)&&(Ii=null,Vs(e,n)),n=!1;var b=ct;e:do try{if(Ye!==0&&ze!==null){var A=ze,P=mn;switch(Ye){case 8:uf(),b=6;break e;case 3:case 2:case 9:case 6:dn.current===null&&(n=!0);var $=Ye;if(Ye=0,mn=null,Fs(e,A,P,$),r&&Is){b=0;break e}break;default:$=Ye,Ye=0,mn=null,Fs(e,A,P,$)}}cj(),b=ct;break}catch(ae){cy(e,ae)}while(!0);return n&&e.shellSuspendCounter++,ga=zr=null,Ve=i,z.H=m,z.A=h,ze===null&&(et=null,Ue=0,ui()),b}function cj(){for(;ze!==null;)my(ze)}function uj(e,n){var r=Ve;Ve|=2;var i=dy(),m=fy();et!==e||Ue!==n?(Ii=null,qi=jt()+500,Vs(e,n)):Is=We(e,n);e:do try{if(Ye!==0&&ze!==null){n=ze;var h=mn;t:switch(Ye){case 1:Ye=0,mn=null,Fs(e,n,h,1);break;case 2:case 9:if(Cg(h)){Ye=0,mn=null,py(n);break}n=function(){Ye!==2&&Ye!==9||et!==e||(Ye=7),$n(e)},h.then(n,n);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:Cg(h)?(Ye=0,mn=null,py(n)):(Ye=0,mn=null,Fs(e,n,h,7));break;case 5:var b=null;switch(ze.tag){case 26:b=ze.memoizedState;case 5:case 27:var A=ze;if(b?Wy(b):A.stateNode.complete){Ye=0,mn=null;var P=A.sibling;if(P!==null)ze=P;else{var $=A.return;$!==null?(ze=$,Vi($)):ze=null}break t}}Ye=0,mn=null,Fs(e,n,h,5);break;case 6:Ye=0,mn=null,Fs(e,n,h,6);break;case 8:uf(),ct=6;break e;default:throw Error(l(462))}}dj();break}catch(ae){cy(e,ae)}while(!0);return ga=zr=null,z.H=i,z.A=m,Ve=r,ze!==null?0:(et=null,Ue=0,ui(),ct)}function dj(){for(;ze!==null&&!wt();)my(ze)}function my(e){var n=Ux(e.alternate,e,Ea);e.memoizedProps=e.pendingProps,n===null?Vi(e):ze=n}function py(e){var n=e,r=n.alternate;switch(n.tag){case 15:case 0:n=_x(r,n,n.pendingProps,n.type,void 0,Ue);break;case 11:n=_x(r,n,n.pendingProps,n.type.render,n.ref,Ue);break;case 5:Nd(n);default:Lx(r,n),n=ze=fg(n,Ea),n=Ux(r,n,Ea)}e.memoizedProps=e.pendingProps,n===null?Vi(e):ze=n}function Fs(e,n,r,i){ga=zr=null,Nd(n),zs=null,Il=0;var m=n.return;try{if(WC(e,m,n,r,Ue)){ct=1,ki(e,Nn(r,e.current)),ze=null;return}}catch(h){if(m!==null)throw ze=m,h;ct=1,ki(e,Nn(r,e.current)),ze=null;return}n.flags&32768?(Le||i===1?e=!0:Is||(Ue&536870912)!==0?e=!1:(Wa=e=!0,(i===2||i===9||i===3||i===6)&&(i=dn.current,i!==null&&i.tag===13&&(i.flags|=16384))),hy(n,e)):Vi(n)}function Vi(e){var n=e;do{if((n.flags&32768)!==0){hy(n,Wa);return}e=n.return;var r=nj(n.alternate,n,Ea);if(r!==null){ze=r;return}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);ct===0&&(ct=5)}function hy(e,n){do{var r=aj(e.alternate,e);if(r!==null){r.flags&=32767,ze=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!n&&(e=e.sibling,e!==null)){ze=e;return}ze=e=r}while(e!==null);ct=6,ze=null}function gy(e,n,r,i,m,h,b,A,P){e.cancelPendingCommit=null;do Fi();while(St!==0);if((Ve&6)!==0)throw Error(l(327));if(n!==null){if(n===e.current)throw Error(l(177));if(h=n.lanes|n.childLanes,h|=Zu,Qt(e,r,h,b,A,P),e===et&&(ze=et=null,Ue=0),Gs=n,nr=e,Aa=r,lf=h,of=m,sy=i,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,hj(ia,function(){return wy(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||i){i=z.T,z.T=null,m=G.p,G.p=2,b=Ve,Ve|=4;try{rj(e,n,r)}finally{Ve=b,G.p=m,z.T=i}}St=1,xy(),yy(),vy()}}function xy(){if(St===1){St=0;var e=nr,n=Gs,r=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||r){r=z.T,z.T=null;var i=G.p;G.p=2;var m=Ve;Ve|=4;try{Jx(n,e);var h=Cf,b=ag(e.containerInfo),A=h.focusedElem,P=h.selectionRange;if(b!==A&&A&&A.ownerDocument&&ng(A.ownerDocument.documentElement,A)){if(P!==null&&Yu(A)){var $=P.start,ae=P.end;if(ae===void 0&&(ae=$),"selectionStart"in A)A.selectionStart=$,A.selectionEnd=Math.min(ae,A.value.length);else{var se=A.ownerDocument||document,Z=se&&se.defaultView||window;if(Z.getSelection){var ee=Z.getSelection(),he=A.textContent.length,Ne=Math.min(P.start,he),Je=P.end===void 0?Ne:Math.min(P.end,he);!ee.extend&&Ne>Je&&(b=Je,Je=Ne,Ne=b);var Q=tg(A,Ne),B=tg(A,Je);if(Q&&B&&(ee.rangeCount!==1||ee.anchorNode!==Q.node||ee.anchorOffset!==Q.offset||ee.focusNode!==B.node||ee.focusOffset!==B.offset)){var X=se.createRange();X.setStart(Q.node,Q.offset),ee.removeAllRanges(),Ne>Je?(ee.addRange(X),ee.extend(B.node,B.offset)):(X.setEnd(B.node,B.offset),ee.addRange(X))}}}}for(se=[],ee=A;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<se.length;A++){var re=se[A];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}rc=!!Sf,Cf=Sf=null}finally{Ve=m,G.p=i,z.T=r}}e.current=n,St=2}}function yy(){if(St===2){St=0;var e=nr,n=Gs,r=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||r){r=z.T,z.T=null;var i=G.p;G.p=2;var m=Ve;Ve|=4;try{Fx(e,n.alternate,n)}finally{Ve=m,G.p=i,z.T=r}}St=3}}function vy(){if(St===4||St===3){St=0,vn();var e=nr,n=Gs,r=Aa,i=sy;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?St=5:(St=0,Gs=nr=null,by(e,e.pendingLanes));var m=e.pendingLanes;if(m===0&&(tr=null),zn(r),n=n.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(wn,n,void 0,(n.current.flags&128)===128)}catch{}if(i!==null){n=z.T,m=G.p,G.p=2,z.T=null;try{for(var h=e.onRecoverableError,b=0;b<i.length;b++){var A=i[b];h(A.value,{componentStack:A.stack})}}finally{z.T=n,G.p=m}}(Aa&3)!==0&&Fi(),$n(e),m=e.pendingLanes,(r&261930)!==0&&(m&42)!==0?e===cf?so++:(so=0,cf=e):so=0,lo(0)}}function by(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Hl(n)))}function Fi(){return xy(),yy(),vy(),wy()}function wy(){if(St!==5)return!1;var e=nr,n=lf;lf=0;var r=zn(Aa),i=z.T,m=G.p;try{G.p=32>r?32:r,z.T=null,r=of,of=null;var h=nr,b=Aa;if(St=0,Gs=nr=null,Aa=0,(Ve&6)!==0)throw Error(l(331));var A=Ve;if(Ve|=4,ny(h.current),Wx(h,h.current,b,r),Ve=A,lo(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(wn,h)}catch{}return!0}finally{G.p=m,z.T=i,by(e,n)}}function Sy(e,n,r){n=Nn(r,n),n=Hd(e.stateNode,n,2),e=Xa(e,n,2),e!==null&&(st(e,2),$n(e))}function Ke(e,n,r){if(e.tag===3)Sy(e,e,r);else for(;n!==null;){if(n.tag===3){Sy(n,e,r);break}else if(n.tag===1){var i=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(tr===null||!tr.has(i))){e=Nn(r,e),r=Cx(2),i=Xa(n,r,2),i!==null&&(jx(r,i,n,e),st(i,2),$n(i));break}}n=n.return}}function ff(e,n,r){var i=e.pingCache;if(i===null){i=e.pingCache=new oj;var m=new Set;i.set(n,m)}else m=i.get(n),m===void 0&&(m=new Set,i.set(n,m));m.has(r)||(af=!0,m.add(r),e=fj.bind(null,e,n,r),n.then(e,e))}function fj(e,n,r){var i=e.pingCache;i!==null&&i.delete(n),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,et===e&&(Ue&r)===r&&(ct===4||ct===3&&(Ue&62914560)===Ue&&300>jt()-Hi?(Ve&2)===0&&Vs(e,0):rf|=r,Qs===Ue&&(Qs=0)),$n(e)}function Cy(e,n){n===0&&(n=Et()),e=kr(e,n),e!==null&&(st(e,n),$n(e))}function mj(e){var n=e.memoizedState,r=0;n!==null&&(r=n.retryLane),Cy(e,r)}function pj(e,n){var r=0;switch(e.tag){case 31:case 13:var i=e.stateNode,m=e.memoizedState;m!==null&&(r=m.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(n),Cy(e,r)}function hj(e,n){return rn(e,n)}var Yi=null,Ys=null,mf=!1,Ki=!1,pf=!1,rr=0;function $n(e){e!==Ys&&e.next===null&&(Ys===null?Yi=Ys=e:Ys=Ys.next=e),Ki=!0,mf||(mf=!0,xj())}function lo(e,n){if(!pf&&Ki){pf=!0;do for(var r=!1,i=Yi;i!==null;){if(e!==0){var m=i.pendingLanes;if(m===0)var h=0;else{var b=i.suspendedLanes,A=i.pingedLanes;h=(1<<31-Nt(42|e)+1)-1,h&=m&~(b&~A),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(r=!0,Ay(i,h))}else h=Ue,h=Ae(i,i===et?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(h&3)===0||We(i,h)||(r=!0,Ay(i,h));i=i.next}while(r);pf=!1}}function gj(){jy()}function jy(){Ki=mf=!1;var e=0;rr!==0&&Aj()&&(e=rr);for(var n=jt(),r=null,i=Yi;i!==null;){var m=i.next,h=Ny(i,n);h===0?(i.next=null,r===null?Yi=m:r.next=m,m===null&&(Ys=r)):(r=i,(e!==0||(h&3)!==0)&&(Ki=!0)),i=m}St!==0&&St!==5||lo(e),rr!==0&&(rr=0)}function Ny(e,n){for(var r=e.suspendedLanes,i=e.pingedLanes,m=e.expirationTimes,h=e.pendingLanes&-62914561;0<h;){var b=31-Nt(h),A=1<<b,P=m[b];P===-1?((A&r)===0||(A&i)!==0)&&(m[b]=mt(A,n)):P<=n&&(e.expiredLanes|=A),h&=~A}if(n=et,r=Ue,r=Ae(e,e===n?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,r===0||e===n&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Mn(i),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||We(e,r)){if(n=r&-r,n===e.callbackPriority)return n;switch(i!==null&&Mn(i),zn(r)){case 2:case 8:r=Nr;break;case 32:r=ia;break;case 268435456:r=Ut;break;default:r=ia}return i=Ey.bind(null,e),r=rn(r,i),e.callbackPriority=n,e.callbackNode=r,n}return i!==null&&i!==null&&Mn(i),e.callbackPriority=2,e.callbackNode=null,2}function Ey(e,n){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Fi()&&e.callbackNode!==r)return null;var i=Ue;return i=Ae(e,e===et?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(oy(e,i,n),Ny(e,jt()),e.callbackNode!=null&&e.callbackNode===r?Ey.bind(null,e):null)}function Ay(e,n){if(Fi())return null;oy(e,n,!0)}function xj(){Tj(function(){(Ve&6)!==0?rn(oa,gj):jy()})}function hf(){if(rr===0){var e=ks;e===0&&(e=La,La<<=1,(La&261888)===0&&(La=256)),rr=e}return rr}function Oy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ni(""+e)}function Ty(e,n){var r=n.ownerDocument.createElement("input");return r.name=n.name,r.value=n.value,e.id&&r.setAttribute("form",e.id),n.parentNode.insertBefore(r,n),e=new FormData(e),r.parentNode.removeChild(r),e}function yj(e,n,r,i,m){if(n==="submit"&&r&&r.stateNode===m){var h=Oy((m[Ft]||null).action),b=i.submitter;b&&(n=(n=b[Ft]||null)?Oy(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var A=new li("action","action",null,i,m);e.push({event:A,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(rr!==0){var P=b?Ty(m,b):new FormData(m);Md(r,{pending:!0,data:P,method:m.method,action:h},null,P)}}else typeof h=="function"&&(A.preventDefault(),P=b?Ty(m,b):new FormData(m),Md(r,{pending:!0,data:P,method:m.method,action:h},h,P))},currentTarget:m}]})}}for(var gf=0;gf<Ju.length;gf++){var xf=Ju[gf],vj=xf.toLowerCase(),bj=xf[0].toUpperCase()+xf.slice(1);Pn(vj,"on"+bj)}Pn(lg,"onAnimationEnd"),Pn(og,"onAnimationIteration"),Pn(ig,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(PC,"onTransitionRun"),Pn(UC,"onTransitionStart"),Pn(BC,"onTransitionCancel"),Pn(cg,"onTransitionEnd"),ys("onMouseEnter",["mouseout","mouseover"]),ys("onMouseLeave",["mouseout","mouseover"]),ys("onPointerEnter",["pointerout","pointerover"]),ys("onPointerLeave",["pointerout","pointerover"]),Or("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Or("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),Or("onBeforeInput",["compositionend","keypress","textInput","paste"]),Or("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Or("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Or("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oo="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(" "),wj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oo));function Dy(e,n){n=(n&4)!==0;for(var r=0;r<e.length;r++){var i=e[r],m=i.event;i=i.listeners;e:{var h=void 0;if(n)for(var b=i.length-1;0<=b;b--){var A=i[b],P=A.instance,$=A.currentTarget;if(A=A.listener,P!==h&&m.isPropagationStopped())break e;h=A,m.currentTarget=$;try{h(m)}catch(ae){ci(ae)}m.currentTarget=null,h=P}else for(b=0;b<i.length;b++){if(A=i[b],P=A.instance,$=A.currentTarget,A=A.listener,P!==h&&m.isPropagationStopped())break e;h=A,m.currentTarget=$;try{h(m)}catch(ae){ci(ae)}m.currentTarget=null,h=P}}}}function Pe(e,n){var r=n[Tu];r===void 0&&(r=n[Tu]=new Set);var i=e+"__bubble";r.has(i)||(_y(n,e,2,!1),r.add(i))}function yf(e,n,r){var i=0;n&&(i|=4),_y(r,e,i,n)}var Xi="_reactListening"+Math.random().toString(36).slice(2);function vf(e){if(!e[Xi]){e[Xi]=!0,jh.forEach(function(r){r!=="selectionchange"&&(wj.has(r)||yf(r,!1,e),yf(r,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Xi]||(n[Xi]=!0,yf("selectionchange",!1,n))}}function _y(e,n,r,i){switch(l0(n)){case 2:var m=Xj;break;case 8:m=$j;break;default:m=Mf}r=m.bind(null,n,r,e),m=void 0,!Bu||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(m=!0),i?m!==void 0?e.addEventListener(n,r,{capture:!0,passive:m}):e.addEventListener(n,r,!0):m!==void 0?e.addEventListener(n,r,{passive:m}):e.addEventListener(n,r,!1)}function bf(e,n,r,i,m){var h=i;if((n&1)===0&&(n&2)===0&&i!==null)e:for(;;){if(i===null)return;var b=i.tag;if(b===3||b===4){var A=i.stateNode.containerInfo;if(A===m)break;if(b===4)for(b=i.return;b!==null;){var P=b.tag;if((P===3||P===4)&&b.stateNode.containerInfo===m)return;b=b.return}for(;A!==null;){if(b=hs(A),b===null)return;if(P=b.tag,P===5||P===6||P===26||P===27){i=h=b;continue e}A=A.parentNode}}i=i.return}Ph(function(){var $=h,ae=Pu(r),se=[];e:{var Z=ug.get(e);if(Z!==void 0){var ee=li,he=e;switch(e){case"keypress":if(ri(r)===0)break e;case"keydown":case"keyup":ee=pC;break;case"focusin":he="focus",ee=Iu;break;case"focusout":he="blur",ee=Iu;break;case"beforeblur":case"afterblur":ee=Iu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=Lh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=nC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=xC;break;case lg:case og:case ig:ee=sC;break;case cg:ee=vC;break;case"scroll":case"scrollend":ee=eC;break;case"wheel":ee=wC;break;case"copy":case"cut":case"paste":ee=oC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=qh;break;case"toggle":case"beforetoggle":ee=CC}var Ne=(n&4)!==0,Je=!Ne&&(e==="scroll"||e==="scrollend"),Q=Ne?Z!==null?Z+"Capture":null:Z;Ne=[];for(var B=$,X;B!==null;){var re=B;if(X=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||X===null||Q===null||(re=Tl(B,Q),re!=null&&Ne.push(io(B,re,X))),Je)break;B=B.return}0<Ne.length&&(Z=new ee(Z,he,null,r,ae),se.push({event:Z,listeners:Ne}))}}if((n&7)===0){e:{if(Z=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",Z&&r!==zu&&(he=r.relatedTarget||r.fromElement)&&(hs(he)||he[ps]))break e;if((ee||Z)&&(Z=ae.window===ae?ae:(Z=ae.ownerDocument)?Z.defaultView||Z.parentWindow:window,ee?(he=r.relatedTarget||r.toElement,ee=$,he=he?hs(he):null,he!==null&&(Je=u(he),Ne=he.tag,he!==Je||Ne!==5&&Ne!==27&&Ne!==6)&&(he=null)):(ee=null,he=$),ee!==he)){if(Ne=Lh,re="onMouseLeave",Q="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=qh,re="onPointerLeave",Q="onPointerEnter",B="pointer"),Je=ee==null?Z:Ol(ee),X=he==null?Z:Ol(he),Z=new Ne(re,B+"leave",ee,r,ae),Z.target=Je,Z.relatedTarget=X,re=null,hs(ae)===$&&(Ne=new Ne(Q,B+"enter",he,r,ae),Ne.target=X,Ne.relatedTarget=Je,re=Ne),Je=re,ee&&he)t:{for(Ne=Sj,Q=ee,B=he,X=0,re=Q;re;re=Ne(re))X++;re=0;for(var Se=B;Se;Se=Ne(Se))re++;for(;0<X-re;)Q=Ne(Q),X--;for(;0<re-X;)B=Ne(B),re--;for(;X--;){if(Q===B||B!==null&&Q===B.alternate){Ne=Q;break t}Q=Ne(Q),B=Ne(B)}Ne=null}else Ne=null;ee!==null&&ky(se,Z,ee,Ne,!1),he!==null&&Je!==null&&ky(se,Je,he,Ne,!0)}}
vendor: 5,209 bytes, lines 48-49
48e:{if(Z=$?Ol($):window,ee=Z.nodeName&&Z.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Z.type==="file")var qe=Xh;else if(Yh(Z))if($h)qe=RC;else{qe=_C;var ve=DC}else ee=Z.nodeName,!ee||ee.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?$&&Mu($.elementType)&&(qe=Xh):qe=kC;if(qe&&(qe=qe(e,$))){Kh(se,qe,r,ae);break e}ve&&ve(e,Z,$),e==="focusout"&&$&&Z.type==="number"&&$.memoizedProps.value!=null&&Ru(Z,"number",Z.value)}switch(ve=$?Ol($):window,e){case"focusin":(Yh(ve)||ve.contentEditable==="true")&&(js=ve,Ku=$,Ul=null);break;case"focusout":Ul=Ku=js=null;break;case"mousedown":Xu=!0;break;case"contextmenu":case"mouseup":case"dragend":Xu=!1,rg(se,r,ae);break;case"selectionchange":if(zC)break;case"keydown":case"keyup":rg(se,r,ae)}var _e;if(Gu)e:{switch(e){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Cs?Vh(e,r)&&(Be="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Be="onCompositionStart");Be&&(Ih&&r.locale!=="ko"&&(Cs||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Cs&&(_e=Uh()):(Ia=ae,Lu="value"in Ia?Ia.value:Ia.textContent,Cs=!0)),ve=$i($,Be),0<ve.length&&(Be=new Hh(Be,e,null,r,ae),se.push({event:Be,listeners:ve}),_e?Be.data=_e:(_e=Fh(r),_e!==null&&(Be.data=_e)))),(_e=NC?EC(e,r):AC(e,r))&&(Be=$i($,"onBeforeInput"),0<Be.length&&(ve=new Hh("onBeforeInput","beforeinput",null,r,ae),se.push({event:ve,listeners:Be}),ve.data=_e)),yj(se,e,$,r,ae)}Dy(se,n)})}function io(e,n,r){return{instance:e,listener:n,currentTarget:r}}function $i(e,n){for(var r=n+"Capture",i=[];e!==null;){var m=e,h=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||h===null||(m=Tl(e,r),m!=null&&i.unshift(io(e,m,h)),m=Tl(e,n),m!=null&&i.push(io(e,m,h))),e.tag===3)return i;e=e.return}return[]}function Sj(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ky(e,n,r,i,m){for(var h=n._reactName,b=[];r!==null&&r!==i;){var A=r,P=A.alternate,$=A.stateNode;if(A=A.tag,P!==null&&P===i)break;A!==5&&A!==26&&A!==27||$===null||(P=$,m?($=Tl(r,h),$!=null&&b.unshift(io(r,$,P))):m||($=Tl(r,h),$!=null&&b.push(io(r,$,P)))),r=r.return}b.length!==0&&e.push({event:n,listeners:b})}var Cj=/\r\n?/g,jj=/\u0000|\uFFFD/g;function Ry(e){return(typeof e=="string"?e:""+e).replace(Cj,`
49`).replace(jj,"")}function My(e,n){return n=Ry(n),Ry(e)===n}function $e(e,n,r,i,m,h){switch(r){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||bs(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&bs(e,""+i);break;case"className":ei(e,"class",i);break;case"tabIndex":ei(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":ei(e,r,i);break;case"style":Mh(e,i,h);break;case"data":if(n!=="object"){ei(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||r!=="href")){e.removeAttribute(r);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=ni(""+i),e.setAttribute(r,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(r,"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 h=="function"&&(r==="formAction"?(n!=="input"&&$e(e,n,"name",m.name,m,null),$e(e,n,"formEncType",m.formEncType,m,null),$e(e,n,"formMethod",m.formMethod,m,null),$e(e,n,"formTarget",m.formTarget,m,null)):($e(e,n,"encType",m.encType,m,null),$e(e,n,"method",m.method,m,null),$e(e,n,"target",m.target,m,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(r);break}i=ni(""+i),e.setAttribute(r,i);break;case"onClick":i!=null&&(e.onclick=fa);break;case"onScroll":i!=null&&Pe("scroll",e);break;case"onScrollEnd":i!=null&&Pe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(m.children!=null)throw Error(l(60));e.innerHTML=r}}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}r=ni(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);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(r,""+i):e.removeAttribute(r);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(r,""):e.removeAttribute(r);break;case"capture":case"download":i===!0?e.setAttribute(r,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(r,i):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(r,i):e.removeAttribute(r);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(r):e.setAttribute(r,i);break;case"popover":Pe("beforetoggle",e),Pe("toggle",e),Wo(e,"popover",i);break;case"xlinkActuate":da(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":da(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":da(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":da(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":da(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":da(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":da(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":da(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":da(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Wo(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=ZS.get(r)||r,Wo(e,r,i))}}function wf(e,n,r,i,m,h){switch(r){case"style":Mh(e,i,h);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(r=i.__html,r!=null){if(m.children!=null)throw Error(l(60));e.innerHTML=r}}break;case"children":typeof i=="string"?bs(e,i):(typeof i=="number"||typeof i=="bigint")&&bs(e,""+i);break;case"onScroll":i!=null&&Pe("scroll",e);break;case"onScrollEnd":i!=null&&Pe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=fa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nh.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(m=r.endsWith("Capture"),n=r.slice(2,m?r.length-7:void 0),h=e[Ft]||null,h=h!=null?h[r]:null,typeof h=="function"&&e.removeEventListener(n,h,m),typeof i=="function")){typeof h!="function"&&h!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(n,i,m);break e}r in e?e[r]=i:i===!0?e.setAttribute(r,""):Wo(e,r,i)}}}function Pt(e,n,r){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",e),Pe("load",e);var i=!1,m=!1,h;for(h in r)if(r.hasOwnProperty(h)){var b=r[h];if(b!=null)switch(h){case"src":i=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:$e(e,n,h,b,r,null)}}m&&$e(e,n,"srcSet",r.srcSet,r,null),i&&$e(e,n,"src",r.src,r,null);return;case"input":Pe("invalid",e);var A=h=b=m=null,P=null,$=null;for(i in r)if(r.hasOwnProperty(i)){var ae=r[i];if(ae!=null)switch(i){case"name":m=ae;break;case"type":b=ae;break;case"checked":P=ae;break;case"defaultChecked":$=ae;break;case"value":h=ae;break;case"defaultValue":A=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(l(137,n));break;default:$e(e,n,i,ae,r,null)}}Dh(e,h,A,P,$,b,m,!1);return;case"select":Pe("invalid",e),i=b=h=null;for(m in r)if(r.hasOwnProperty(m)&&(A=r[m],A!=null))switch(m){case"value":h=A;break;case"defaultValue":b=A;break;case"multiple":i=A;default:$e(e,n,m,A,r,null)}n=h,r=b,e.multiple=!!i,n!=null?vs(e,!!i,n,!1):r!=null&&vs(e,!!i,r,!0);return;case"textarea":Pe("invalid",e),h=m=i=null;for(b in r)if(r.hasOwnProperty(b)&&(A=r[b],A!=null))switch(b){case"value":i=A;break;case"defaultValue":m=A;break;case"children":h=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(l(91));break;default:$e(e,n,b,A,r,null)}kh(e,i,m,h);return;case"option":for(P in r)if(r.hasOwnProperty(P)&&(i=r[P],i!=null))switch(P){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:$e(e,n,P,i,r,null)}return;case"dialog":Pe("beforetoggle",e),Pe("toggle",e),Pe("cancel",e),Pe("close",e);break;case"iframe":case"object":Pe("load",e);break;case"video":case"audio":for(i=0;i<oo.length;i++)Pe(oo[i],e);break;case"image":Pe("error",e),Pe("load",e);break;case"details":Pe("toggle",e);break;case"embed":case"source":case"link":Pe("error",e),Pe("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($ in r)if(r.hasOwnProperty($)&&(i=r[$],i!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,n));default:$e(e,n,$,i,r,null)}return;default:if(Mu(n)){for(ae in r)r.hasOwnProperty(ae)&&(i=r[ae],i!==void 0&&wf(e,n,ae,i,r,void 0));return}}for(A in r)r.hasOwnProperty(A)&&(i=r[A],i!=null&&$e(e,n,A,i,r,null))}function Nj(e,n,r,i){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,h=null,b=null,A=null,P=null,$=null,ae=null;for(ee in r){var se=r[ee];if(r.hasOwnProperty(ee)&&se!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":P=se;default:i.hasOwnProperty(ee)||$e(e,n,ee,null,i,se)}}for(var Z in i){var ee=i[Z];if(se=r[Z],i.hasOwnProperty(Z)&&(ee!=null||se!=null))switch(Z){case"type":h=ee;break;case"name":m=ee;break;case"checked":$=ee;break;case"defaultChecked":ae=ee;break;case"value":b=ee;break;case"defaultValue":A=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,n));break;default:ee!==se&&$e(e,n,Z,ee,i,se)}}ku(e,b,A,P,$,ae,h,m);return;case"select":ee=b=A=Z=null;for(h in r)if(P=r[h],r.hasOwnProperty(h)&&P!=null)switch(h){case"value":break;case"multiple":ee=P;default:i.hasOwnProperty(h)||$e(e,n,h,null,i,P)}for(m in i)if(h=i[m],P=r[m],i.hasOwnProperty(m)&&(h!=null||P!=null))switch(m){case"value":Z=h;break;case"defaultValue":A=h;break;case"multiple":b=h;default:h!==P&&$e(e,n,m,h,i,P)}n=A,r=b,i=ee,Z!=null?vs(e,!!r,Z,!1):!!i!=!!r&&(n!=null?vs(e,!!r,n,!0):vs(e,!!r,r?[]:"",!1));return;case"textarea":ee=Z=null;for(A in r)if(m=r[A],r.hasOwnProperty(A)&&m!=null&&!i.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:$e(e,n,A,null,i,m)}for(b in i)if(m=i[b],h=r[b],i.hasOwnProperty(b)&&(m!=null||h!=null))switch(b){case"value":Z=m;break;case"defaultValue":ee=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(l(91));break;default:m!==h&&$e(e,n,b,m,i,h)}_h(e,Z,ee);return;case"option":for(var he in r)if(Z=r[he],r.hasOwnProperty(he)&&Z!=null&&!i.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:$e(e,n,he,null,i,Z)}for(P in i)if(Z=i[P],ee=r[P],i.hasOwnProperty(P)&&Z!==ee&&(Z!=null||ee!=null))switch(P){case"selected":e.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:$e(e,n,P,Z,i,ee)}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 Ne in r)Z=r[Ne],r.hasOwnProperty(Ne)&&Z!=null&&!i.hasOwnProperty(Ne)&&$e(e,n,Ne,null,i,Z);for($ in i)if(Z=i[$],ee=r[$],i.hasOwnProperty($)&&Z!==ee&&(Z!=null||ee!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(l(137,n));break;default:$e(e,n,$,Z,i,ee)}return;default:if(Mu(n)){for(var Je in r)Z=r[Je],r.hasOwnProperty(Je)&&Z!==void 0&&!i.hasOwnProperty(Je)&&wf(e,n,Je,void 0,i,Z);for(ae in i)Z=i[ae],ee=r[ae],!i.hasOwnProperty(ae)||Z===ee||Z===void 0&&ee===void 0||wf(e,n,ae,Z,i,ee);return}}for(var Q in r)Z=r[Q],r.hasOwnProperty(Q)&&Z!=null&&!i.hasOwnProperty(Q)&&$e(e,n,Q,null,i,Z);for(se in i)Z=i[se],ee=r[se],!i.hasOwnProperty(se)||Z===ee||Z==null&&ee==null||$e(e,n,se,Z,i,ee)}function zy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ej(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,r=performance.getEntriesByType("resource"),i=0;i<r.length;i++){var m=r[i],h=m.transferSize,b=m.initiatorType,A=m.duration;if(h&&A&&zy(b)){for(b=0,A=m.responseEnd,i+=1;i<r.length;i++){var P=r[i],$=P.startTime;if($>A)break;var ae=P.transferSize,se=P.initiatorType;ae&&zy(se)&&(P=P.responseEnd,b+=ae*(P<A?1:(A-$)/(P-$)))}if(--i,n+=8*(h+b)/(m.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Sf=null,Cf=null;
vendor: 14,016 bytes, line 49
49function Ji(e){return e.nodeType===9?e:e.ownerDocument}function Py(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 Uy(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function jf(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Nf=null;function Aj(){var e=window.event;return e&&e.type==="popstate"?e===Nf?!1:(Nf=e,!0):(Nf=null,!1)}var By=typeof setTimeout=="function"?setTimeout:void 0,Oj=typeof clearTimeout=="function"?clearTimeout:void 0,Ly=typeof Promise=="function"?Promise:void 0,Tj=typeof queueMicrotask=="function"?queueMicrotask:typeof Ly<"u"?function(e){return Ly.resolve(null).then(e).catch(Dj)}:By;function Dj(e){setTimeout(function(){throw e})}function sr(e){return e==="head"}function Hy(e,n){var r=n,i=0;do{var m=r.nextSibling;if(e.removeChild(r),m&&m.nodeType===8)if(r=m.data,r==="/$"||r==="/&"){if(i===0){e.removeChild(m),Js(n);return}i--}else if(r==="$"||r==="$?"||r==="$~"||r==="$!"||r==="&")i++;else if(r==="html")co(e.ownerDocument.documentElement);else if(r==="head"){r=e.ownerDocument.head,co(r);for(var h=r.firstChild;h;){var b=h.nextSibling,A=h.nodeName;h[Al]||A==="SCRIPT"||A==="STYLE"||A==="LINK"&&h.rel.toLowerCase()==="stylesheet"||r.removeChild(h),h=b}}else r==="body"&&co(e.ownerDocument.body);r=m}while(r);Js(n)}function qy(e,n){var r=e;e=0;do{var i=r.nextSibling;if(r.nodeType===1?n?(r._stashedDisplay=r.style.display,r.style.display="none"):(r.style.display=r._stashedDisplay||"",r.getAttribute("style")===""&&r.removeAttribute("style")):r.nodeType===3&&(n?(r._stashedText=r.nodeValue,r.nodeValue=""):r.nodeValue=r._stashedText||""),i&&i.nodeType===8)if(r=i.data,r==="/$"){if(e===0)break;e--}else r!=="$"&&r!=="$?"&&r!=="$~"&&r!=="$!"||e++;r=i}while(r)}function Ef(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var r=n;switch(n=n.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Ef(r),Du(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function _j(e,n,r,i){for(;e.nodeType===1;){var m=r;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Al])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(h=e.getAttribute("rel"),h==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(h!==m.rel||e.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||e.getAttribute("title")!==(m.title==null?null:m.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(h=e.getAttribute("src"),(h!==(m.src==null?null:m.src)||e.getAttribute("type")!==(m.type==null?null:m.type)||e.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&h&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var h=m.name==null?null:""+m.name;if(m.type==="hidden"&&e.getAttribute("name")===h)return e}else return e;if(e=Dn(e.nextSibling),e===null)break}return null}function kj(e,n,r){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Dn(e.nextSibling),e===null))return null;return e}function Iy(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Dn(e.nextSibling),e===null))return null;return e}function Af(e){return e.data==="$?"||e.data==="$~"}function Of(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Rj(e,n){var r=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||r.readyState!=="loading")n();else{var i=function(){n(),r.removeEventListener("DOMContentLoaded",i)};r.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Dn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Tf=null;function Qy(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"||r==="/&"){if(n===0)return Dn(e.nextSibling);n--}else r!=="$"&&r!=="$!"&&r!=="$?"&&r!=="$~"&&r!=="&"||n++}e=e.nextSibling}return null}function Gy(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"){if(n===0)return e;n--}else r!=="/$"&&r!=="/&"||n++}e=e.previousSibling}return null}function Vy(e,n,r){switch(n=Ji(r),e){case"html":if(e=n.documentElement,!e)throw Error(l(452));return e;case"head":if(e=n.head,!e)throw Error(l(453));return e;case"body":if(e=n.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function co(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);Du(e)}var _n=new Map,Fy=new Set;function Zi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Oa=G.d;G.d={f:Mj,r:zj,D:Pj,C:Uj,L:Bj,m:Lj,X:qj,S:Hj,M:Ij};function Mj(){var e=Oa.f(),n=Qi();return e||n}function zj(e){var n=gs(e);n!==null&&n.tag===5&&n.type==="form"?cx(n):Oa.r(e)}var Ks=typeof document>"u"?null:document;function Yy(e,n,r){var i=Ks;if(i&&typeof n=="string"&&n){var m=Cn(n);m='link[rel="'+e+'"][href="'+m+'"]',typeof r=="string"&&(m+='[crossorigin="'+r+'"]'),Fy.has(m)||(Fy.add(m),e={rel:e,crossOrigin:r,href:n},i.querySelector(m)===null&&(n=i.createElement("link"),Pt(n,"link",e),At(n),i.head.appendChild(n)))}}function Pj(e){Oa.D(e),Yy("dns-prefetch",e,null)}function Uj(e,n){Oa.C(e,n),Yy("preconnect",e,n)}function Bj(e,n,r){Oa.L(e,n,r);var i=Ks;if(i&&e&&n){var m='link[rel="preload"][as="'+Cn(n)+'"]';n==="image"&&r&&r.imageSrcSet?(m+='[imagesrcset="'+Cn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(m+='[imagesizes="'+Cn(r.imageSizes)+'"]')):m+='[href="'+Cn(e)+'"]';var h=m;switch(n){case"style":h=Xs(e);break;case"script":h=$s(e)}_n.has(h)||(e=x({rel:"preload",href:n==="image"&&r&&r.imageSrcSet?void 0:e,as:n},r),_n.set(h,e),i.querySelector(m)!==null||n==="style"&&i.querySelector(uo(h))||n==="script"&&i.querySelector(fo(h))||(n=i.createElement("link"),Pt(n,"link",e),At(n),i.head.appendChild(n)))}}function Lj(e,n){Oa.m(e,n);var r=Ks;if(r&&e){var i=n&&typeof n.as=="string"?n.as:"script",m='link[rel="modulepreload"][as="'+Cn(i)+'"][href="'+Cn(e)+'"]',h=m;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=$s(e)}if(!_n.has(h)&&(e=x({rel:"modulepreload",href:e},n),_n.set(h,e),r.querySelector(m)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(fo(h)))return}i=r.createElement("link"),Pt(i,"link",e),At(i),r.head.appendChild(i)}}}function Hj(e,n,r){Oa.S(e,n,r);var i=Ks;if(i&&e){var m=xs(i).hoistableStyles,h=Xs(e);n=n||"default";var b=m.get(h);if(!b){var A={loading:0,preload:null};if(b=i.querySelector(uo(h)))A.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":n},r),(r=_n.get(h))&&Df(e,r);var P=b=i.createElement("link");At(P),Pt(P,"link",e),P._p=new Promise(function($,ae){P.onload=$,P.onerror=ae}),P.addEventListener("load",function(){A.loading|=1}),P.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Wi(b,n,i)}b={type:"stylesheet",instance:b,count:1,state:A},m.set(h,b)}}}function qj(e,n){Oa.X(e,n);var r=Ks;if(r&&e){var i=xs(r).hoistableScripts,m=$s(e),h=i.get(m);h||(h=r.querySelector(fo(m)),h||(e=x({src:e,async:!0},n),(n=_n.get(m))&&_f(e,n),h=r.createElement("script"),At(h),Pt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},i.set(m,h))}}function Ij(e,n){Oa.M(e,n);var r=Ks;if(r&&e){var i=xs(r).hoistableScripts,m=$s(e),h=i.get(m);h||(h=r.querySelector(fo(m)),h||(e=x({src:e,async:!0,type:"module"},n),(n=_n.get(m))&&_f(e,n),h=r.createElement("script"),At(h),Pt(h,"link",e),r.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},i.set(m,h))}}function Ky(e,n,r,i){var m=(m=fe.current)?Zi(m):null;if(!m)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(n=Xs(r.href),r=xs(m).hoistableStyles,i=r.get(n),i||(i={type:"style",instance:null,count:0,state:null},r.set(n,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=Xs(r.href);var h=xs(m).hoistableStyles,b=h.get(e);if(b||(m=m.ownerDocument||m,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(e,b),(h=m.querySelector(uo(e)))&&!h._p&&(b.instance=h,b.state.loading=5),_n.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},_n.set(e,r),h||Qj(m,e,r,b.state))),n&&i===null)throw Error(l(528,""));return b}if(n&&i!==null)throw Error(l(529,""));return null;case"script":return n=r.async,r=r.src,typeof r=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=$s(r),r=xs(m).hoistableScripts,i=r.get(n),i||(i={type:"script",instance:null,count:0,state:null},r.set(n,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Xs(e){return'href="'+Cn(e)+'"'}function uo(e){return'link[rel="stylesheet"]['+e+"]"}function Xy(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function Qj(e,n,r,i){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?i.loading=1:(n=e.createElement("link"),i.preload=n,n.addEventListener("load",function(){return i.loading|=1}),n.addEventListener("error",function(){return i.loading|=2}),Pt(n,"link",r),At(n),e.head.appendChild(n))}function $s(e){return'[src="'+Cn(e)+'"]'}function fo(e){return"script[async]"+e}function $y(e,n,r){if(n.count++,n.instance===null)switch(n.type){case"style":var i=e.querySelector('style[data-href~="'+Cn(r.href)+'"]');if(i)return n.instance=i,At(i),i;var m=x({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),At(i),Pt(i,"style",m),Wi(i,r.precedence,e),n.instance=i;case"stylesheet":m=Xs(r.href);var h=e.querySelector(uo(m));if(h)return n.state.loading|=4,n.instance=h,At(h),h;i=Xy(r),(m=_n.get(m))&&Df(i,m),h=(e.ownerDocument||e).createElement("link"),At(h);var b=h;return b._p=new Promise(function(A,P){b.onload=A,b.onerror=P}),Pt(h,"link",i),n.state.loading|=4,Wi(h,r.precedence,e),n.instance=h;case"script":return h=$s(r.src),(m=e.querySelector(fo(h)))?(n.instance=m,At(m),m):(i=r,(m=_n.get(h))&&(i=x({},r),_f(i,m)),e=e.ownerDocument||e,m=e.createElement("script"),At(m),Pt(m,"link",i),e.head.appendChild(m),n.instance=m);case"void":return null;default:throw Error(l(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(i=n.instance,n.state.loading|=4,Wi(i,r.precedence,e));return n.instance}function Wi(e,n,r){for(var i=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=i.length?i[i.length-1]:null,h=m,b=0;b<i.length;b++){var A=i[b];if(A.dataset.precedence===n)h=A;else if(h!==m)break}h?h.parentNode.insertBefore(e,h.nextSibling):(n=r.nodeType===9?r.head:r,n.insertBefore(e,n.firstChild))}function Df(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function _f(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var ec=null;function Jy(e,n,r){if(ec===null){var i=new Map,m=ec=new Map;m.set(r,i)}else m=ec,i=m.get(r),i||(i=new Map,m.set(r,i));if(i.has(e))return i;for(i.set(e,null),r=r.getElementsByTagName(e),m=0;m<r.length;m++){var h=r[m];if(!(h[Al]||h[kt]||e==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var b=h.getAttribute(n)||"";b=e+b;var A=i.get(b);A?A.push(h):i.set(b,[h])}}return i}function Zy(e,n,r){e=e.ownerDocument||e,e.head.insertBefore(r,n==="title"?e.querySelector("head > title"):null)}function Gj(e,n,r){if(r===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Wy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Vj(e,n,r,i){if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var m=Xs(i.href),h=n.querySelector(uo(m));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=tc.bind(e),n.then(e,e)),r.state.loading|=4,r.instance=h,At(h);return}h=n.ownerDocument||n,i=Xy(i),(m=_n.get(m))&&Df(i,m),h=h.createElement("link"),At(h);var b=h;b._p=new Promise(function(A,P){b.onload=A,b.onerror=P}),Pt(h,"link",i),r.instance=h}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(r,n),(n=r.state.preload)&&(r.state.loading&3)===0&&(e.count++,r=tc.bind(e),n.addEventListener("load",r),n.addEventListener("error",r))}}var kf=0;function Fj(e,n){return e.stylesheets&&e.count===0&&ac(e,e.stylesheets),0<e.count||0<e.imgCount?function(r){var i=setTimeout(function(){if(e.stylesheets&&ac(e,e.stylesheets),e.unsu
vendor: 10,528 bytes, line 49
49spend){var h=e.unsuspend;e.unsuspend=null,h()}},6e4+n);0<e.imgBytes&&kf===0&&(kf=62500*Ej());var m=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ac(e,e.stylesheets),e.unsuspend)){var h=e.unsuspend;e.unsuspend=null,h()}},(e.imgBytes>kf?50:800)+n);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(m)}}:null}function tc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ac(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var nc=null;function ac(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,nc=new Map,n.forEach(Yj,e),nc=null,tc.call(e))}function Yj(e,n){if(!(n.state.loading&4)){var r=nc.get(e);if(r)var i=r.get(null);else{r=new Map,nc.set(e,r);for(var m=e.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<m.length;h++){var b=m[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(r.set(b.dataset.precedence,b),i=b)}i&&r.set(null,i)}m=n.instance,b=m.getAttribute("data-precedence"),h=r.get(b)||i,h===i&&r.set(null,m),r.set(b,m),this.count++,i=tc.bind(this),m.addEventListener("load",i),m.addEventListener("error",i),h?h.parentNode.insertBefore(m,h.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(m,e.firstChild)),n.state.loading|=4}}var mo={$$typeof:O,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function Kj(e,n,r,i,m,h,b,A,P){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=Ha(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ha(0),this.hiddenUpdates=Ha(null),this.identifierPrefix=i,this.onUncaughtError=m,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=P,this.incompleteTransitions=new Map}function e0(e,n,r,i,m,h,b,A,P,$,ae,se){return e=new Kj(e,n,r,b,P,$,ae,se,A),n=1,h===!0&&(n|=24),h=un(3,null,null,n),e.current=h,h.stateNode=e,n=ud(),n.refCount++,e.pooledCache=n,n.refCount++,h.memoizedState={element:i,isDehydrated:r,cache:n},pd(h),e}function t0(e){return e?(e=As,e):As}function n0(e,n,r,i,m,h){m=t0(m),i.context===null?i.context=m:i.pendingContext=m,i=Ka(n),i.payload={element:r},h=h===void 0?null:h,h!==null&&(i.callback=h),r=Xa(e,i,n),r!==null&&(Zt(r,e,n),Gl(r,e,n))}function a0(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<n?r:n}}function Rf(e,n){a0(e,n),(e=e.alternate)&&a0(e,n)}function r0(e){if(e.tag===13||e.tag===31){var n=kr(e,67108864);n!==null&&Zt(n,e,67108864),Rf(e,67108864)}}function s0(e){if(e.tag===13||e.tag===31){var n=hn();n=ms(n);var r=kr(e,n);r!==null&&Zt(r,e,n),Rf(e,n)}}var rc=!0;function Xj(e,n,r,i){var m=z.T;z.T=null;var h=G.p;try{G.p=2,Mf(e,n,r,i)}finally{G.p=h,z.T=m}}function $j(e,n,r,i){var m=z.T;z.T=null;var h=G.p;try{G.p=8,Mf(e,n,r,i)}finally{G.p=h,z.T=m}}function Mf(e,n,r,i){if(rc){var m=zf(i);if(m===null)bf(e,n,i,sc,r),o0(e,i);else if(Zj(m,e,n,r,i))i.stopPropagation();else if(o0(e,i),n&4&&-1<Jj.indexOf(e)){for(;m!==null;){var h=gs(m);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=on(h.pendingLanes);if(b!==0){var A=h;for(A.pendingLanes|=2,A.entangledLanes|=2;b;){var P=1<<31-Nt(b);A.entanglements[1]|=P,b&=~P}$n(h),(Ve&6)===0&&(qi=jt()+500,lo(0))}}break;case 31:case 13:A=kr(h,2),A!==null&&Zt(A,h,2),Qi(),Rf(h,2)}if(h=zf(i),h===null&&bf(e,n,i,sc,r),h===m)break;m=h}m!==null&&i.stopPropagation()}else bf(e,n,i,null,r)}}function zf(e){return e=Pu(e),Pf(e)}var sc=null;function Pf(e){if(sc=null,e=hs(e),e!==null){var n=u(e);if(n===null)e=null;else{var r=n.tag;if(r===13){if(e=d(n),e!==null)return e;e=null}else if(r===31){if(e=f(n),e!==null)return e;e=null}else if(r===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return sc=e,null}function l0(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(fs()){case oa:return 2;case Nr:return 8;case ia:case ca:return 32;case Ut:return 268435456;default:return 32}default:return 32}}var Uf=!1,lr=null,or=null,ir=null,po=new Map,ho=new Map,cr=[],Jj="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,n){switch(e){case"focusin":case"focusout":lr=null;break;case"dragenter":case"dragleave":or=null;break;case"mouseover":case"mouseout":ir=null;break;case"pointerover":case"pointerout":po.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ho.delete(n.pointerId)}}function go(e,n,r,i,m,h){return e===null||e.nativeEvent!==h?(e={blockedOn:n,domEventName:r,eventSystemFlags:i,nativeEvent:h,targetContainers:[m]},n!==null&&(n=gs(n),n!==null&&r0(n)),e):(e.eventSystemFlags|=i,n=e.targetContainers,m!==null&&n.indexOf(m)===-1&&n.push(m),e)}function Zj(e,n,r,i,m){switch(n){case"focusin":return lr=go(lr,e,n,r,i,m),!0;case"dragenter":return or=go(or,e,n,r,i,m),!0;case"mouseover":return ir=go(ir,e,n,r,i,m),!0;case"pointerover":var h=m.pointerId;return po.set(h,go(po.get(h)||null,e,n,r,i,m)),!0;case"gotpointercapture":return h=m.pointerId,ho.set(h,go(ho.get(h)||null,e,n,r,i,m)),!0}return!1}function i0(e){var n=hs(e.target);if(n!==null){var r=u(n);if(r!==null){if(n=r.tag,n===13){if(n=d(r),n!==null){e.blockedOn=n,Sh(e.priority,function(){s0(r)});return}}else if(n===31){if(n=f(r),n!==null){e.blockedOn=n,Sh(e.priority,function(){s0(r)});return}}else if(n===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function lc(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var r=zf(e.nativeEvent);if(r===null){r=e.nativeEvent;var i=new r.constructor(r.type,r);zu=i,r.target.dispatchEvent(i),zu=null}else return n=gs(r),n!==null&&r0(n),e.blockedOn=r,!1;n.shift()}return!0}function c0(e,n,r){lc(e)&&r.delete(n)}function Wj(){Uf=!1,lr!==null&&lc(lr)&&(lr=null),or!==null&&lc(or)&&(or=null),ir!==null&&lc(ir)&&(ir=null),po.forEach(c0),ho.forEach(c0)}function oc(e,n){e.blockedOn===n&&(e.blockedOn=null,Uf||(Uf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Wj)))}var ic=null;function u0(e){ic!==e&&(ic=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){ic===e&&(ic=null);for(var n=0;n<e.length;n+=3){var r=e[n],i=e[n+1],m=e[n+2];if(typeof i!="function"){if(Pf(i||r)===null)continue;break}var h=gs(r);h!==null&&(e.splice(n,3),n-=3,Md(h,{pending:!0,data:m,method:r.method,action:i},i,m))}}))}function Js(e){function n(P){return oc(P,e)}lr!==null&&oc(lr,e),or!==null&&oc(or,e),ir!==null&&oc(ir,e),po.forEach(n),ho.forEach(n);for(var r=0;r<cr.length;r++){var i=cr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;0<cr.length&&(r=cr[0],r.blockedOn===null);)i0(r),r.blockedOn===null&&cr.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(i=0;i<r.length;i+=3){var m=r[i],h=r[i+1],b=m[Ft]||null;if(typeof h=="function")b||u0(r);else if(b){var A=null;if(h&&h.hasAttribute("formAction")){if(m=h,b=h[Ft]||null)A=b.formAction;else if(Pf(m)!==null)continue}else A=b.action;typeof A=="function"?r[i+1]=A:(r.splice(i,3),i-=3),u0(r)}}}function d0(){function e(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return m=b})},focusReset:"manual",scroll:"manual"})}function n(){m!==null&&(m(),m=null),i||setTimeout(r,20)}function r(){if(!i&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,m=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(r,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),m!==null&&(m(),m=null)}}}function Bf(e){this._internalRoot=e}cc.prototype.render=Bf.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(l(409));var r=n.current,i=hn();n0(r,i,e,n,null,null)},cc.prototype.unmount=Bf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;n0(e.current,2,null,e,null,null),Qi(),n[ps]=null}};function cc(e){this._internalRoot=e}cc.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ou();e={blockedOn:null,target:e,priority:n};for(var r=0;r<cr.length&&n!==0&&n<cr[r].priority;r++);cr.splice(r,0,e),r===0&&i0(e)}};var f0=a.version;if(f0!=="19.2.1")throw Error(l(527,f0,"19.2.1"));G.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=g(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var eN={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.1"};
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{wn=uc.inject(eN),_t=uc}catch{}}return vo.createRoot=function(e,n){if(!o(e))throw Error(l(299));var r=!1,i="",m=vx,h=bx,b=wx;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(m=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=e0(e,1,!1,null,null,r,i,null,m,h,b,d0),e[ps]=n.current,vf(e),new Bf(n)},vo.hydrateRoot=function(e,n,r){if(!o(e))throw Error(l(299));var i=!1,m="",h=vx,b=bx,A=wx,P=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(m=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(b=r.onCaughtError),r.onRecoverableError!==void 0&&(A=r.onRecoverableError),r.formState!==void 0&&(P=r.formState)),n=e0(e,1,!0,n,r??null,i,m,P,h,b,A,d0),n.context=t0(null),r=n.current,i=hn(),i=ms(i),m=Ka(i),m.callback=null,Xa(r,m,i),r=i,n.current.lanes=r,st(n,r),$n(n),e[ps]=n.current,vf(e),new cc(n)},vo.version="19.2.1",vo}var B0;function gE(){if(B0)return Vf.exports;B0=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(a){console.error(a)}}return t(),Vf.exports=hE(),Vf.exports}var xE=gE(),yE=(function(){function t(){this.keyToValue=new Map,this.valueToKey=new Map}return t.prototype.set=function(a,s){this.keyToValue.set(a,s),this.valueToKey.set(s,a)},t.prototype.getByKey=function(a){return this.keyToValue.get(a)},t.prototype.getByValue=function(a){return this.valueToKey.get(a)},t.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},t})(),g1=(function(){function t(a){this.generateIdentifier=a,this.kv=new yE}return t.prototype.register=function(a,s){this.kv.getByValue(a)||(s||(s=this.generateIdentifier(a)),this.kv.set(s,a))},t.prototype.clear=function(){this.kv.clear()},t.prototype.getIdentifier=function(a){return this.kv.getByValue(a)},t.prototype.getValue=function(a){return this.kv.getByKey(a)},t})(),vE=(function(){var t=function(a,s){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(l[u]=o[u])},t(a,s)};return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");t(a,s);function l(){this.constructor=a}a.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}})(),bE=(function(t){vE(a,t);function a(){var s=t.call(this,function(l){return l.name})||this;return s.classToAllowedProps=new Map,s}return a.prototype.register=function(s,l){typeof l=="object"?(l.allowProps&&this.classToAllowedProps.set(s,l.allowProps),t.prototype.register.call(this,s,l.identifier)):t.prototype.register.call(this,s,l)},a.prototype.getAllowedProps=function(s){return this.classToAllowedProps.get(s)},a})(g1),wE=function(t,a){var s=typeof Symbol=="function"&&t[Symbol.iterator];if(!s)return t;var l=s.call(t),o,u=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)u.push(o.value)}catch(f){d={error:f}}finally{try{o&&!o.done&&(s=l.return)&&s.call(l)}finally{if(d)throw d.error}}return u};function SE(t){if("values"in Object)return Object.values(t);var a=[];for(var s in t)t.hasOwnProperty(s)&&a.push(t[s]);return a}function CE(t,a){var s=SE(t);if("find"in s)return s.find(a);for(var l=s,o=0;o<l.length;o++){var u=l[o];if(a(u))return u}}function pl(t,a){Object.entries(t).forEach(function(s){var l=wE(s,2),o=l[0],u=l[1];return a(u,o)})}function kc(t,a){return t.indexOf(a)!==-1}function L0(t,a){for(var s=0;s<t.length;s++){var l=t[s];if(a(l))return l}}var jE=(function(){function t(){this.transfomers={}}return t.prototype.register=function(a){this.transfomers[a.name]=a},t.prototype.findApplicable=function(a){return CE(this.transfomers,function(s){return s.isApplicable(a)})},t.prototype.findByName=function(a){return this.transfomers[a]},t})(),NE=function(t){return Object.prototype.toString.call(t).slice(8,-1)},x1=function(t){return typeof t>"u"},EE=function(t){return t===null},Mo=function(t){return typeof t!="object"||t===null||t===Object.prototype?!1:Object.getPrototypeOf(t)===null?!0:Object.getPrototypeOf(t)===Object.prototype},Km=function(t){return Mo(t)&&Object.keys(t).length===0},yr=function(t){return Array.isArray(t)},AE=function(t){return typeof t=="string"},OE=function(t){return typeof t=="number"&&!isNaN(t)},TE=function(t){return typeof t=="boolean"},DE=function(t){return t instanceof RegExp},zo=function(t){return t instanceof Map},Po=function(t){return t instanceof Set},y1=function(t){return NE(t)==="Symbol"},_E=function(t){return t instanceof Date&&!isNaN(t.valueOf())},kE=function(t){return t instanceof Error},H0=function(t){return typeof t=="number"&&isNaN(t)},RE=function(t){return TE(t)||EE(t)||x1(t)||OE(t)||AE(t)||y1(t)},ME=function(t){return typeof t=="bigint"},zE=function(t){return t===1/0||t===-1/0},PE=function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},UE=function(t){return t instanceof URL},v1=function(t){return t.replace(/\./g,"\\.")},Xf=function(t){return t.map(String).map(v1).join(".")},Ao=function(t){for(var a=[],s="",l=0;l<t.length;l++){var o=t.charAt(l),u=o==="\\"&&t.charAt(l+1)===".";if(u){s+=".",l++;continue}var d=o===".";if(d){a.push(s),s="";continue}s+=o}var f=s;return a.push(f),a},Xm=function(){return Xm=Object.assign||function(t){for(var a,s=1,l=arguments.length;s<l;s++){a=arguments[s];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},Xm.apply(this,arguments)},$m=function(t,a){var s=typeof Symbol=="function"&&t[Symbol.iterator];if(!s)return t;var l=s.call(t),o,u=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)u.push(o.value)}catch(f){d={error:f}}finally{try{o&&!o.done&&(s=l.return)&&s.call(l)}finally{if(d)throw d.error}}return u},Jm=function(t,a){for(var s=0,l=a.length,o=t.length;s<l;s++,o++)t[o]=a[s];return t};function Jn(t,a,s,l){return{isApplicable:t,annotation:a,transform:s,untransform:l}}var b1=[Jn(x1,"undefined",function(){return null},function(){}),Jn(ME,"bigint",function(t){return t.toString()},function(t){return typeof BigInt<"u"?BigInt(t):(console.error("Please add a BigInt polyfill."),t)}),Jn(_E,"Date",function(t){return t.toISOString()},function(t){return new Date(t)}),Jn(kE,"Error",function(t,a){var s={name:t.name,message:t.message};return a.allowedErrorProps.forEach(function(l){s[l]=t[l]}),s},function(t,a){var s=new Error(t.message);return s.name=t.name,s.stack=t.stack,a.allowedErrorProps.forEach(function(l){s[l]=t[l]}),s}),Jn(DE,"regexp",function(t){return""+t},function(t){var a=t.slice(1,t.lastIndexOf("/")),s=t.slice(t.lastIndexOf("/")+1);return new RegExp(a,s)}
49),Jn(Po,"set",function(t){return Jm([],$m(t.values()))},function(t){return new Set(t)}),Jn(zo,"map",function(t){return Jm([],$m(t.entries()))},function(t){return new Map(t)}),Jn(function(t){return H0(t)||zE(t)},"number",function(t){return H0(t)?"NaN":t>0?"Infinity":"-Infinity"},Number),Jn(function(t){return t===0&&1/t===-1/0},"number",function(){return"-0"},Number),Jn(UE,"URL",function(t){return t.toString()},function(t){return new URL(t)})];function su(t,a,s,l){return{isApplicable:t,annotation:a,transform:s,untransform:l}}var w1=su(function(t,a){if(y1(t)){var s=!!a.symbolRegistry.getIdentifier(t);return s}return!1},function(t,a){var s=a.symbolRegistry.getIdentifier(t);return["symbol",s]},function(t){return t.description},function(t,a,s){var l=s.symbolRegistry.getValue(a[1]);if(!l)throw new Error("Trying to deserialize unknown symbol");return l}),BE=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(t,a){return t[a.name]=a,t},{}),S1=su(PE,function(t){return["typed-array",t.constructor.name]},function(t){return Jm([],$m(t))},function(t,a){var s=BE[a[1]];if(!s)throw new Error("Trying to deserialize unknown typed array");return new s(t)});function C1(t,a){if(t?.constructor){var s=!!a.classRegistry.getIdentifier(t.constructor);return s}return!1}var j1=su(C1,function(t,a){var s=a.classRegistry.getIdentifier(t.constructor);return["class",s]},function(t,a){var s=a.classRegistry.getAllowedProps(t.constructor);if(!s)return Xm({},t);var l={};return s.forEach(function(o){l[o]=t[o]}),l},function(t,a,s){var l=s.classRegistry.getValue(a[1]);if(!l)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(l.prototype),t)}),N1=su(function(t,a){return!!a.customTransformerRegistry.findApplicable(t)},function(t,a){var s=a.customTransformerRegistry.findApplicable(t);return["custom",s.name]},function(t,a){var s=a.customTransformerRegistry.findApplicable(t);return s.serialize(t)},function(t,a,s){var l=s.customTransformerRegistry.findByName(a[1]);if(!l)throw new Error("Trying to deserialize unknown custom value");return l.deserialize(t)}),LE=[j1,w1,N1,S1],q0=function(t,a){var s=L0(LE,function(o){return o.isApplicable(t,a)});if(s)return{value:s.transform(t,a),type:s.annotation(t,a)};var l=L0(b1,function(o){return o.isApplicable(t,a)});if(l)return{value:l.transform(t,a),type:l.annotation}},E1={};b1.forEach(function(t){E1[t.annotation]=t});var HE=function(t,a,s){if(yr(a))switch(a[0]){case"symbol":return w1.untransform(t,a,s);case"class":return j1.untransform(t,a,s);case"custom":return N1.untransform(t,a,s);case"typed-array":return S1.untransform(t,a,s);default:throw new Error("Unknown transformation: "+a)}else{var l=E1[a];if(!l)throw new Error("Unknown transformation: "+a);return l.untransform(t,s)}},rl=function(t,a){for(var s=t.keys();a>0;)s.next(),a--;return s.next().value};function A1(t){if(kc(t,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(kc(t,"prototype"))throw new Error("prototype is not allowed as a property");if(kc(t,"constructor"))throw new Error("constructor is not allowed as a property")}var qE=function(t,a){A1(a);for(var s=0;s<a.length;s++){var l=a[s];if(Po(t))t=rl(t,+l);else if(zo(t)){var o=+l,u=+a[++s]==0?"key":"value",d=rl(t,o);switch(u){case"key":t=d;break;case"value":t=t.get(d);break}}else t=t[l]}return t},Zm=function(t,a,s){if(A1(a),a.length===0)return s(t);for(var l=t,o=0;o<a.length-1;o++){var u=a[o];if(yr(l)){var d=+u;l=l[d]}else if(Mo(l))l=l[u];else if(Po(l)){var f=+u;l=rl(l,f)}else if(zo(l)){var p=o===a.length-2;if(p)break;var f=+u,g=+a[++o]==0?"key":"value",y=rl(l,f);switch(g){case"key":l=y;break;case"value":l=l.get(y);break}}}var x=a[a.length-1];if(yr(l)?l[+x]=s(l[+x]):Mo(l)&&(l[x]=s(l[x])),Po(l)){var S=rl(l,+x),C=s(S);S!==C&&(l.delete(S),l.add(C))}if(zo(l)){var f=+a[a.length-2],j=rl(l,f),g=+x==0?"key":"value";switch(g){case"key":{var v=s(j);l.set(v,l.get(j)),v!==j&&l.delete(j);break}case"value":{l.set(j,s(l.get(j)));break}}}return t},Da=function(t,a){var s=typeof Symbol=="function"&&t[Symbol.iterator];if(!s)return t;var l=s.call(t),o,u=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)u.push(o.value)}catch(f){d={error:f}}finally{try{o&&!o.done&&(s=l.return)&&s.call(l)}finally{if(d)throw d.error}}return u},hr=function(t,a){for(var s=0,l=a.length,o=t.length;s<l;s++,o++)t[o]=a[s];return t};function Wm(t,a,s){if(s===void 0&&(s=[]),!!t){if(!yr(t)){pl(t,function(d,f){return Wm(d,a,hr(hr([],Da(s)),Da(Ao(f))))});return}var l=Da(t,2),o=l[0],u=l[1];u&&pl(u,function(d,f){Wm(d,a,hr(hr([],Da(s)),Da(Ao(f))))}),a(o,s)}}function IE(t,a,s){return Wm(a,function(l,o){t=Zm(t,o,function(u){return HE(u,l,s)})}),t}function QE(t,a){function s(d,f){var p=qE(t,Ao(f));
49d.map(Ao).forEach(function(g){t=Zm(t,g,function(){return p})})}if(yr(a)){var l=Da(a,2),o=l[0],u=l[1];o.forEach(function(d){t=Zm(t,Ao(d),function(){return t})}),u&&pl(u,s)}else pl(a,s);return t}var GE=function(t,a){return Mo(t)||yr(t)||zo(t)||Po(t)||C1(t,a)};function VE(t,a,s){var l=s.get(t);l?l.push(a):s.set(t,[a])}function FE(t,a){var s={},l=void 0;return t.forEach(function(o){if(!(o.length<=1)){a||(o=o.map(function(p){return p.map(String)}).sort(function(p,g){return p.length-g.length}));var u=Da(o),d=u[0],f=u.slice(1);d.length===0?l=f.map(Xf):s[Xf(d)]=f.map(Xf)}}),l?Km(s)?[l]:[l,s]:Km(s)?void 0:s}var O1=function(t,a,s,l,o,u,d){var f;o===void 0&&(o=[]),u===void 0&&(u=[]),d===void 0&&(d=new Map);var p=RE(t);if(!p){VE(t,o,a);var g=d.get(t);if(g)return l?{transformedValue:null}:g}if(!GE(t,s)){var y=q0(t,s),x=y?{transformedValue:y.value,annotations:[y.type]}:{transformedValue:t};return p||d.set(t,x),x}if(kc(u,t))return{transformedValue:null};var S=q0(t,s),C=(f=S?.value)!==null&&f!==void 0?f:t,j=yr(C)?[]:{},v={};pl(C,function(N,D){var O=O1(N,a,s,l,hr(hr([],Da(o)),[D]),hr(hr([],Da(u)),[t]),d);j[D]=O.transformedValue,yr(O.annotations)?v[D]=O.annotations:Mo(O.annotations)&&pl(O.annotations,function(k,U){v[v1(D)+"."+U]=k})});var E=Km(v)?{transformedValue:j,annotations:S?[S.type]:void 0}:{transformedValue:j,annotations:S?[S.type,v]:v};return p||d.set(t,E),E};function T1(t){return Object.prototype.toString.call(t).slice(8,-1)}function I0(t){return T1(t)==="Array"}function YE(t){if(T1(t)!=="Object")return!1;const a=Object.getPrototypeOf(t);return!!a&&a.constructor===Object&&a===Object.prototype}function KE(t,a,s,l,o){const u={}.propertyIsEnumerable.call(l,a)?"enumerable":"nonenumerable";u==="enumerable"&&(t[a]=s),o&&u==="nonenumerable"&&Object.defineProperty(t,a,{value:s,enumerable:!1,writable:!0,configurable:!0})}function ep(t,a={}){if(I0(t))return t.map(o=>ep(o,a));if(!YE(t))return t;const s=Object.getOwnPropertyNames(t),l=Object.getOwnPropertySymbols(t);return[...s,...l].reduce((o,u)=>{if(I0(a.props)&&!a.props.includes(u))return o;const d=t[u],f=ep(d,a);return KE(o,u,f,t,a.nonenumerable),o},{})}var Yr=function(){return Yr=Object.assign||function(t){for(var a,s=1,l=arguments.length;s<l;s++){a=arguments[s];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},Yr.apply(this,arguments)},XE=function(t,a){var s=typeof Symbol=="function"&&t[Symbol.iterator];if(!s)return t;var l=s.call(t),o,u=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)u.push(o.value)}catch(f){d={error:f}}finally{try{o&&!o.done&&(s=l.return)&&s.call(l)}finally{if(d)throw d.error}}return u},$E=function(t,a){for(var s=0,l=a.length,o=t.length;s<l;s++,o++)t[o]=a[s];return t},Pa=(function(){function t(a){var s=a===void 0?{}:a,l=s.dedupe,o=l===void 0?!1:l;this.classRegistry=new bE,this.symbolRegistry=new g1(function(u){var d;return(d=u.description)!==null&&d!==void 0?d:""}),this.customTransformerRegistry=new jE,this.allowedErrorProps=[],this.dedupe=o}return t.prototype.serialize=function(a){var s=new Map,l=O1(a,s,this,this.dedupe),o={json:l.transformedValue};l.annotations&&(o.meta=Yr(Yr({},o.meta),{values:l.annotations}));var u=FE(s,this.dedupe);return u&&(o.meta=Yr(Yr({},o.meta),{referentialEqualities:u})),o},t.prototype.deserialize=function(a){var s=a.json,l=a.meta,o=ep(s);return l?.values&&(o=IE(o,l.values,this)),l?.referentialEqualities&&(o=QE(o,l.referentialEqualities)),o},t.prototype.stringify=function(a){return JSON.stringify(this.serialize(a))},t.prototype.parse=function(a){return this.deserialize(JSON.parse(a))},t.prototype.registerClass=function(a,s){this.classRegistry.register(a,s)},t.prototype.registerSymbol=function(a,s){this.symbolRegistry.register(a,s)},t.prototype.registerCustom=function(a,s){this.customTransformerRegistry.register(Yr({name:s},a))},t.prototype.allowErrorProps=function(){for(var a,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];(a=this.allowedErrorProps).push.apply(a,$E([],XE(s)))},t.defaultInstance=new t,t.serialize=t.defaultInstance.serialize.bind(t.defaultInstance),t.deserialize=t.defaultInstance.deserialize.bind(t.defaultInstance),t.stringify=t.defaultInstance.stringify.bind(t.defaultInstance),t.parse=t.defaultInstance.parse.bind(t.defaultInstance),t.registerClass=t.defaultInstance.registerClass.bind(t.defaultInstance),t.registerSymbol=t.defaultInstance.registerSymbol.bind(t.defaultInstance),t.registerCustom=t.defaultInstance.registerCustom.bind(t.defaultInstance),t.allowErrorProps=t.defaultInstance.allowErrorProps.bind(t.defaultInstance),t})();Pa.serialize;Pa.deserialize;Pa.stringify;Pa.parse;Pa.registerClass;Pa.registerCustom;Pa.registerSymbol;Pa.allowErrorProps;var JE=(t,a,s,l,o,u,d,f)=>{let p=document.documentElement,g=["light","dark"];
vendor: 7,464 bytes, line 49
49function y(C){(Array.isArray(t)?t:[t]).forEach(j=>{let v=j==="class",E=v&&u?o.map(N=>u[N]||N):o;v?(p.classList.remove(...E),p.classList.add(u&&u[C]?u[C]:C)):p.setAttribute(j,C)}),x(C)}function x(C){f&&g.includes(C)&&(p.style.colorScheme=C)}function S(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)y(l);else try{let C=localStorage.getItem(a)||s,j=d&&C==="system"?S():C;y(j)}catch{}},ZE=w.createContext(void 0),WE={setTheme:t=>{},themes:[]},eA=()=>{var t;return(t=w.useContext(ZE))!=null?t:WE};w.memo(({forcedTheme:t,storageKey:a,attribute:s,enableSystem:l,enableColorScheme:o,defaultTheme:u,value:d,themes:f,nonce:p,scriptProps:g})=>{let y=JSON.stringify([s,a,u,t,f,d,l,o]).slice(1,-1);return w.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?p:"",dangerouslySetInnerHTML:{__html:`(${JE.toString()})(${y})`}})});var Ko=h1();const D1=Np(Ko);function tA(t){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css",a.appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(document.createTextNode(t))}const nA=t=>{switch(t){case"success":return sA;case"info":return oA;case"warning":return lA;case"error":return iA;default:return null}},aA=Array(12).fill(0),rA=({visible:t,className:a})=>de.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":t},de.createElement("div",{className:"sonner-spinner"},aA.map((s,l)=>de.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),sA=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.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"})),lA=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},de.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"})),oA=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.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"})),iA=de.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},de.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"})),cA=de.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"},de.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),de.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),uA=()=>{const[t,a]=de.useState(document.hidden);return de.useEffect(()=>{const s=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",s),()=>window.removeEventListener("visibilitychange",s)},[]),t};let tp=1;class dA{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const s=this.subscribers.indexOf(a);this.subscribers.splice(s,1)}),this.publish=a=>{this.subscribers.forEach(s=>s(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var s;const{message:l,...o}=a,u=typeof a?.id=="number"||((s=a.id)==null?void 0:s.length)>0?a.id:tp++,d=this.toasts.find(p=>p.id===u),f=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(u)&&this.dismissedToasts.delete(u),d?this.toasts=this.toasts.map(p=>p.id===u?(this.publish({...p,...a,id:u,title:l}),{...p,...a,id:u,dismissible:f,title:l}):p):this.addToast({title:l,...o,dismissible:f,id:u}),u},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(s=>s({id:a,dismiss:!0})))):this.toasts.forEach(s=>{this.subscribers.forEach(l=>l({id:s.id,dismiss:!0}))}),a),this.message=(a,s)=>this.create({...s,message:a}),this.error=(a,s)=>this.create({...s,message:a,type:"error"}),this.success=(a,s)=>this.create({...s,type:"success",message:a}),this.info=(a,s)=>this.create({...s,type:"info",message:a}),this.warning=(a,s)=>this.create({...s,type:"warning",message:a}),this.loading=(a,s)=>this.create({...s,type:"loading",message:a}),this.promise=(a,s)=>{if(!s)return;let l;s.loading!==void 0&&(l=this.create({...s,promise:a,type:"loading",message:s.loading,description:typeof s.description!="function"?s.description:void 0}));const o=Promise.resolve(a instanceof Function?a():a);let u=l!==void 0,d;const f=o.then(async g=>{if(d=["resolve",g],de.isValidElement(g))u=!1,this.create({id:l,type:"default",message:g});else if(mA(g)&&!g.ok){u=!1;const x=typeof s.error=="function"?await s.error(`HTTP error! status: ${g.status}`):s.error,S=typeof s.description=="function"?await s.description(`HTTP error! status: ${g.status}`):s.description,j=typeof x=="object"&&!de.isValidElement(x)?x:{message:x};this.create({id:l,type:"error",description:S,...j})}else if(g instanceof Error){u=!1;const x=typeof s.error=="function"?await s.error(g):s.error,S=typeof s.description=="function"?await s.description(g):s.description,j=typeof x=="object"&&!de.isValidElement(x)?x:{message:x};this.create({id:l,type:"error",description:S,...j})}else if(s.success!==void 0){u=!1;const x=typeof s.success=="function"?await s.success(g):s.success,S=typeof s.description=="function"?await s.description(g):s.description,j=typeof x=="object"&&!de.isValidElement(x)?x:{message:x};this.create({id:l,type:"success",description:S,...j})}}).catch(async g=>{if(d=["reject",g],s.error!==void 0){u=!1;const y=typeof s.error=="function"?await s.error(g):s.error,x=typeof s.description=="function"?await s.description(g):s.description,C=typeof y=="object"&&!de.isValidElement(y)?y:{message:y};this.create({id:l,type:"error",description:x,...C})}}).finally(()=>{u&&(this.dismiss(l),l=void 0),s.finally==null||s.finally.call(s)}),p=()=>new Promise((g,y)=>f.then(()=>d[0]==="reject"?y(d[1]):g(d[1])).catch(y));return typeof l!="string"&&typeof l!="number"?{unwrap:p}:Object.assign(l,{unwrap:p})},this.custom=(a,s)=>{const l=s?.id||tp++;return this.create({jsx:a(l),id:l,...s}),l},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Wt=new dA,fA=(t,a)=>{const s=a?.id||tp++;return Wt.addToast({title:t,...a,id:s}),s},mA=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",pA=fA,hA=()=>Wt.toasts,gA=()=>Wt.getActiveToasts(),Ge=Object.assign(pA,{success:Wt.success,info:Wt.info,warning:Wt.warning,error:Wt.error,custom:Wt.custom,message:Wt.message,promise:Wt.promise,dismiss:Wt.dismiss,loading:Wt.loading},{getHistory:hA,getToasts:gA});tA
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: 837 bytes, line 49
49hc(t){return t.label!==void 0}const xA=3,yA="24px",vA="16px",Q0=4e3,bA=356,wA=14,SA=45,CA=200;function Zn(...t){return t.filter(Boolean).join(" ")}function jA(t){const[a,s]=t.split("-"),l=[];return a&&l.push(a),s&&l.push(s),l}const NA=t=>{var a,s,l,o,u,d,f,p,g;const{invert:y,toast:x,unstyled:S,interacting:C,setHeights:j,visibleToasts:v,heights:E,index:N,toasts:D,expanded:O,removeToast:k,defaultRichColors:U,closeButton:R,style:T,cancelButtonStyle:M,actionButtonStyle:H,className:V="",descriptionClassName:q="",duration:F,position:W,gap:te,expandByDefault:ie,classNames:z,icons:G,closeButtonAriaLabel:L="Close toast"}=t,[oe,Y]=de.useState(null),[_,K]=de.useState(null),[I,J]=de.useState(!1),[le,fe]=de.useState(!1),[ne,ce]=de.useState(!1),[pe,we]=de.useState(!1),[ye,ue]=de.useState(!1),[Oe,ke]=de.useState(0),[tt,dt]=de.useState(0),ft
vendor: 22,336 bytes, line 49
49=de.useRef(x.duration||F||Q0),an=de.useRef(null),ot=de.useRef(null),rn=N===0,Mn=N+1<=v,wt=x.type,vn=x.dismissible!==!1,jt=x.className||"",fs=x.descriptionClassName||"",oa=de.useMemo(()=>E.findIndex(Ae=>Ae.toastId===x.id)||0,[E,x.id]),Nr=de.useMemo(()=>{var Ae;return(Ae=x.closeButton)!=null?Ae:R},[x.closeButton,R]),ia=de.useMemo(()=>x.duration||F||Q0,[x.duration,F]),ca=de.useRef(0),Ut=de.useRef(0),Ba=de.useRef(0),bn=de.useRef(null),[wn,_t]=W.split("-"),sn=de.useMemo(()=>E.reduce((Ae,We,mt)=>mt>=oa?Ae:Ae+We.height,0),[E,oa]),Nt=uA(),El=x.invert||y,Er=wt==="loading";Ut.current=de.useMemo(()=>oa*te+sn,[oa,sn]),de.useEffect(()=>{ft.current=ia},[ia]),de.useEffect(()=>{J(!0)},[]),de.useEffect(()=>{const Ae=ot.current;if(Ae){const We=Ae.getBoundingClientRect().height;return dt(We),j(mt=>[{toastId:x.id,height:We,position:x.position},...mt]),()=>j(mt=>mt.filter(Et=>Et.toastId!==x.id))}},[j,x.id]),de.useLayoutEffect(()=>{if(!I)return;const Ae=ot.current,We=Ae.style.height;Ae.style.height="auto";const mt=Ae.getBoundingClientRect().height;Ae.style.height=We,dt(mt),j(Et=>Et.find(st=>st.toastId===x.id)?Et.map(st=>st.toastId===x.id?{...st,height:mt}:st):[{toastId:x.id,height:mt,position:x.position},...Et])},[I,x.title,x.description,j,x.id,x.jsx,x.action,x.cancel]);const ln=de.useCallback(()=>{fe(!0),ke(Ut.current),j(Ae=>Ae.filter(We=>We.toastId!==x.id)),setTimeout(()=>{k(x)},CA)},[x,k,j,Ut]);de.useEffect(()=>{if(x.promise&&wt==="loading"||x.duration===1/0||x.type==="loading")return;let Ae;return O||C||Nt?(()=>{if(Ba.current<ca.current){const Et=new Date().getTime()-ca.current;ft.current=ft.current-Et}Ba.current=new Date().getTime()})():(()=>{ft.current!==1/0&&(ca.current=new Date().getTime(),Ae=setTimeout(()=>{x.onAutoClose==null||x.onAutoClose.call(x,x),ln()},ft.current))})(),()=>clearTimeout(Ae)},[O,C,x,wt,Nt,ln]),de.useEffect(()=>{x.delete&&(ln(),x.onDismiss==null||x.onDismiss.call(x,x))},[ln,x.delete]);function La(){var Ae;if(G?.loading){var We;return de.createElement("div",{className:Zn(z?.loader,x==null||(We=x.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":wt==="loading"},G.loading)}return de.createElement(rA,{className:Zn(z?.loader,x==null||(Ae=x.classNames)==null?void 0:Ae.loader),visible:wt==="loading"})}const ua=x.icon||G?.[wt]||nA(wt);var Fn,on;return de.createElement("li",{tabIndex:0,ref:ot,className:Zn(V,jt,z?.toast,x==null||(a=x.classNames)==null?void 0:a.toast,z?.default,z?.[wt],x==null||(s=x.classNames)==null?void 0:s[wt]),"data-sonner-toast":"","data-rich-colors":(Fn=x.richColors)!=null?Fn:U,"data-styled":!(x.jsx||x.unstyled||S),"data-mounted":I,"data-promise":!!x.promise,"data-swiped":ye,"data-removed":le,"data-visible":Mn,"data-y-position":wn,"data-x-position":_t,"data-index":N,"data-front":rn,"data-swiping":ne,"data-dismissible":vn,"data-type":wt,"data-invert":El,"data-swipe-out":pe,"data-swipe-direction":_,"data-expanded":!!(O||ie&&I),"data-testid":x.testId,style:{"--index":N,"--toasts-before":N,"--z-index":D.length-N,"--offset":`${le?Oe:Ut.current}px`,"--initial-height":ie?"auto":`${tt}px`,...T,...x.style},onDragEnd:()=>{ce(!1),Y(null),bn.current=null},onPointerDown:Ae=>{Ae.button!==2&&(Er||!vn||(an.current=new Date,ke(Ut.current),Ae.target.setPointerCapture(Ae.pointerId),Ae.target.tagName!=="BUTTON"&&(ce(!0),bn.current={x:Ae.clientX,y:Ae.clientY})))},onPointerUp:()=>{var Ae,We,mt;if(pe||!vn)return;bn.current=null;const Et=Number(((Ae=ot.current)==null?void 0:Ae.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ha=Number(((We=ot.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),st=new Date().getTime()-((mt=an.current)==null?void 0:mt.getTime()),Qt=oe==="x"?Et:Ha,Ar=Math.abs(Qt)/st;if(Math.abs(Qt)>=SA||Ar>.11){ke(Ut.current),x.onDismiss==null||x.onDismiss.call(x,x),K(oe==="x"?Et>0?"right":"left":Ha>0?"down":"up"),ln(),we(!0);return}else{var Gt,Vt;(Gt=ot.current)==null||Gt.style.setProperty("--swipe-amount-x","0px"),(Vt=ot.current)==null||Vt.style.setProperty("--swipe-amount-y","0px")}ue(!1),ce(!1),Y(null)},onPointerMove:Ae=>{var We,mt,Et;if(!bn.current||!vn||((We=window.getSelection())==null?void 0:We.toString().length)>0)return;const st=Ae.clientY-bn.current.y,Qt=Ae.clientX-bn.current.x;var Ar;const Gt=(Ar=t.swipeDirections)!=null?Ar:jA(W);!oe&&(Math.abs(Qt)>1||Math.abs(st)>1)&&Y(Math.abs(Qt)>Math.abs(st)?"x":"y");let Vt={x:0,y:0};const ms=zn=>1/(1.5+Math.abs(zn)/20);if(oe==="y"){if(Gt.includes("top")||Gt.includes("bottom"))if(Gt.includes("top")&&st<0||Gt.includes("bottom")&&st>0)Vt.y=st;else{const zn=st*ms(st);Vt.y=Math.abs(zn)<Math.abs(st)?zn:st}}else if(oe==="x"&&(Gt.includes("left")||Gt.includes("right")))if(Gt.includes("left")&&Qt<0||Gt.includes("right")&&Qt>0)Vt.x=Qt;else{const zn=Qt*ms(Qt);Vt.x=Math.abs(zn)<Math.abs(Qt)?zn:Qt}(Math.abs(Vt.x)>0||Math.abs(Vt.y)>0)&&ue(!0),(mt=ot.current)==null||mt.style.setProperty("--swipe-amount-x",`${Vt.x}px`),(Et=ot.current)==null||Et.style.setProperty("--swipe-amount-y",`${Vt.y}px`)}},Nr&&!x.jsx&&wt!=="loading"?de.createElement("button",{"aria-label":L,"data-disabled":Er,"data-close-button":!0,onClick:Er||!vn?()=>{}:()=>{ln(),x.onDismiss==null||x.onDismiss.call(x,x)},className:Zn(z?.closeButton,x==null||(l=x.classNames)==null?void 0:l.closeButton)},(on=G?.close)!=null?on:cA):null,(wt||x.icon||x.promise)&&x.icon!==null&&(G?.[wt]!==null||x.icon)?de.createElement("div",{"data-icon":"",className:Zn(z?.icon,x==null||(o=x.classNames)==null?void 0:o.icon)},x.promise||x.type==="loading"&&!x.icon?x.icon||La():null,x.type!=="loading"?ua:null):null,de.createElement("div",{"data-content":"",className:Zn(z?.content,x==null||(u=x.classNames)==null?void 0:u.content)},de.createElement("div",{"data-title":"",className:Zn(z?.title,x==null||(d=x.classNames)==null?void 0:d.title)},x.jsx?x.jsx:typeof x.title=="function"?x.title():x.title),x.description?de.createElement("div",{"data-description":"",className:Zn(q,fs,z?.description,x==null||(f=x.classNames)==null?void 0:f.description)},typeof x.description=="function"?x.description():x.description):null),de.isValidElement(x.cancel)?x.cancel:x.cancel&&hc(x.cancel)?de.createElement("button",{"data-button":!0,"data-cancel":!0,style:x.cancelButtonStyle||M,onClick:Ae=>{hc(x.cancel)&&vn&&(x.cancel.onClick==null||x.cancel.onClick.call(x.cancel,Ae),ln())},className:Zn(z?.cancelButton,x==null||(p=x.classNames)==null?void 0:p.cancelButton)},x.cancel.label):null,de.isValidElement(x.action)?x.action:x.action&&hc(x.action)?de.createElement("button",{"data-button":!0,"data-action":!0,style:x.actionButtonStyle||H,onClick:Ae=>{hc(x.action)&&(x.action.onClick==null||x.action.onClick.call(x.action,Ae),!Ae.defaultPrevented&&ln())},className:Zn(z?.actionButton,x==null||(g=x.classNames)==null?void 0:g.actionButton)},x.action.label):null)};function G0(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function EA(t,a){const s={};return[t,a].forEach((l,o)=>{const u=o===1,d=u?"--mobile-offset":"--offset",f=u?vA:yA;function p(g){["top","right","bottom","left"].forEach(y=>{s[`${d}-${y}`]=typeof g=="number"?`${g}px`:g})}typeof l=="number"||typeof l=="string"?p(l):typeof l=="object"?["top","right","bottom","left"].forEach(g=>{l[g]===void 0?s[`${d}-${g}`]=f:s[`${d}-${g}`]=typeof l[g]=="number"?`${l[g]}px`:l[g]}):p(f)}),s}const AA=de.forwardRef(function(a,s){const{id:l,invert:o,position:u="bottom-right",hotkey:d=["altKey","KeyT"],expand:f,closeButton:p,className:g,offset:y,mobileOffset:x,theme:S="light",richColors:C,duration:j,style:v,visibleToasts:E=xA,toastOptions:N,dir:D=G0(),gap:O=wA,icons:k,containerAriaLabel:U="Notifications"}=a,[R,T]=de.useState([]),M=de.useMemo(()=>l?R.filter(I=>I.toasterId===l):R.filter(I=>!I.toasterId),[R,l]),H=de.useMemo(()=>Array.from(new Set([u].concat(M.filter(I=>I.position).map(I=>I.position)))),[M,u]),[V,q]=de.useState([]),[F,W]=de.useState(!1),[te,ie]=de.useState(!1),[z,G]=de.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=de.useRef(null),oe=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),Y=de.useRef(null),_=de.useRef(!1),K=de.useCallback(I=>{T(J=>{var le;return(le=J.find(fe=>fe.id===I.id))!=null&&le.delete||Wt.dismiss(I.id),J.filter(({id:fe})=>fe!==I.id)})},[]);return de.useEffect(()=>Wt.subscribe(I=>{if(I.dismiss){requestAnimationFrame(()=>{T(J=>J.map(le=>le.id===I.id?{...le,delete:!0}:le))});return}setTimeout(()=>{D1.flushSync(()=>{T(J=>{const le=J.findIndex(fe=>fe.id===I.id);return le!==-1?[...J.slice(0,le),{...J[le],...I},...J.slice(le+1)]:[I,...J]})})})}),[R]),de.useEffect(()=>{if(S!=="system"){G(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const I=window.matchMedia("(prefers-color-scheme: dark)");try{I.addEventListener("change",({matches:J})=>{G(J?"dark":"light")})}catch{I.addListener(({matches:le})=>{try{G(le?"dark":"light")}catch(fe){console.error(fe)}})}},[S]),de.useEffect(()=>{R.length<=1&&W(!1)},[R]),de.useEffect(()=>{const I=J=>{var le;if(d.every(ce=>J[ce]||J.code===ce)){var ne;W(!0),(ne=L.current)==null||ne.focus()}J.code==="Escape"&&(document.activeElement===L.current||(le=L.current)!=null&&le.contains(document.activeElement))&&W(!1)};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[d]),de.useEffect(()=>{if(L.current)return()=>{Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null,_.current=!1)}},[L.current]),de.createElement("section",{ref:s,"aria-label":`${U} ${oe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},H.map((I,J)=>{var le;const[fe,ne]=I.split("-");return M.length?de.createElement("ol",{key:I,dir:D==="auto"?G0():D,tabIndex:-1,ref:L,className:g,"data-sonner-toaster":!0,"data-sonner-theme":z,"data-y-position":fe,"data-x-position":ne,style:{"--front-toast-height":`${((le=V[0])==null?void 0:le.height)||0}px`,"--width":`${bA}px`,"--gap":`${O}px`,...v,...EA(y,x)},onBlur:ce=>{_.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(_.current=!1,Y.current&&(Y.current.focus({preventScroll:!0}),Y.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||_.current||(_.current=!0,Y.current=ce.relatedTarget)},onMouseEnter:()=>W(!0),onMouseMove:()=>W(!0),onMouseLeave:()=>{te||W(!1)},onDragEnd:()=>W(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||ie(!0)},onPointerUp:()=>ie(!1)},M.filter(ce=>!ce.position&&J===0||ce.position===I).map((ce,pe)=>{var we,ye;return de.createElement(NA,{key:ce.id,icons:k,index:pe,toast:ce,defaultRichColors:C,duration:(we=N?.duration)!=null?we:j,className:N?.className,descriptionClassName:N?.descriptionClassName,invert:o,visibleToasts:E,closeButton:(ye=N?.closeButton)!=null?ye:p,interacting:te,position:I,style:N?.style,unstyled:N?.unstyled,classNames:N?.classNames,cancelButtonStyle:N?.cancelButtonStyle,actionButtonStyle:N?.actionButtonStyle,closeButtonAriaLabel:N?.closeButtonAriaLabel,removeToast:K,toasts:M.filter(ue=>ue.position==ce.position),heights:V.filter(ue=>ue.position==ce.position),setHeights:q,expandByDefault:f,gap:O,expanded:F,swipeDirections:a.swipeDirections})})):null}))}),OA=({...t})=>{const{theme:a="system"}=eA();return c.jsx(AA,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:a,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...t})};function Me(t,a,{checkForDefaultPrevented:s=!0}={}){return function(o){if(t?.(o),s===!1||!o.defaultPrevented)return a?.(o)}}function V0(t,a){if(typeof t=="function")return t(a);t!=null&&(t.current=a)}function _1(...t){return a=>{let s=!1;const l=t.map(o=>{const u=V0(o,a);return!s&&typeof u=="function"&&(s=!0),u});if(s)return()=>{for(let o=0;o<l.length;o++){const u=l[o];typeof u=="function"?u():V0(t[o],null)}}}}function Fe(...t){return w.useCallback(_1(...t),t)}function TA(t,a){const s=w.createContext(a),l=u=>{const{children:d,...f}=u,p=w.useMemo(()=>f,Object.values(f));return c.jsx(s.Provider,{value:p,children:d})};l.displayName=t+"Provider";function o(u){const d=w.useContext(s);if(d)return d;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${t}\``)}return[l,o]}function os(t,a=[]){let s=[];function l(u,d){const f=w.createContext(d),p=s.length;s=[...s,d];const g=x=>{const{scope:S,children:C,...j}=x,v=S?.[t]?.[p]||f,E=w.useMemo(()=>j,Object.values(j));return c.jsx(v.Provider,{value:E,children:C})};g.displayName=u+"Provider";function y(x,S){const C=S?.[t]?.[p]||f,j=w.useContext(C);if(j)return j;if(d!==void 0)return d;throw new Error(`\`${x}\` must be used within \`${u}\``)}return[g,y]}const o=()=>{const u=s.map(d=>w.createContext(d));return function(f){const p=f?.[t]||u;return w.useMemo(()=>({[`__scope${t}`]:{...f,[t]:p}}),[f,p])}};return o.scopeName=t,[l,DA(o,...a)]}function DA(...t){const a=t[0];if(t.length===1)return a;const s=()=>{const l=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(u){const d=l.reduce((f,{useScope:p,scopeName:g})=>{const x=p(u)[`__scope${g}`];return{...f,...x}},{});return w.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return s.scopeName=a.scopeName,s}function hl(t){const a=_A(t),s=w.forwardRef((l,o)=>{const{children:u,...d}=l,f=w.Children.toArray(u),p=f.find(kA);if(p){const g=p.props.children,y=f.map(x=>x===p?w.Children.count(g)>1?w.Children.only(null):w.isValidElement(g)?g.props.children:null:x);return c.jsx(a,{...d,ref:o,children:w.isValidElement(g)?w.cloneElement(g,void 0,y):null})}return c.jsx(a,{...d,ref:o,children:u})});return s.displayName=`${t}.Slot`,s}var k1=hl("Slot");function _A(t){const a=w.forwardRef((s,l)=>{const{children:o,...u}=s;if(w.isValidElement(o)){const d=MA(o),f=RA(u,o.props);return o.type!==w.Fragment&&(f.ref=l?_1(l,d):d),w.cloneElement(o,f)}return w.Children.count(o)>1?w.Children.only(null):null});return a.displayName=`${t}.SlotClone`,a}var R1=Symbol("radix.slottable");function M1(t){const a=({children:s})=>c.jsx(c.Fragment,{children:s});return a.displayName=`${t}.Slottable`,a.__radixId=R1,a}function kA(t){return w.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===R1}function RA(t,a){const s={...a};for(const l in a){const o=t[l],u=a[l];/^on[A-Z]/.test(l)?o&&u?s[l]=(...f)=>{const p=u(...f);return o(...f),p}:o&&(s[l]=o):l==="style"?s[l]={...o,...u}:l==="className"&&(s[l]=[o,u].filter(Boolean).join(" "))}return{...t,...s}}function MA(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var zA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=zA.reduce((t,a)=>{const s=hl(`Primitive.${a}`),l=w.forwardRef((o,u)=>{const{asChild:d,...f}=o,p=d?s:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(p,{...f,ref:u})});return l.displayName=`Primitive.${a}`,{...t,[a]:l}},{});function PA(t,a){t&&Ko.flushSync(()=>t.dispatchEvent(a))}function Jr(t){const a=w.useRef(t);return w.useEffect(()=>{a.current=t}),w.useMemo(()=>(...s)=>a.current?.(...s),[])}function UA(t,a=globalThis?.document){const s=Jr(t);w.useEffect(()=>{const l=o=>{o.key==="Escape"&&s(o)};return a.addEventListener("keydown",l,{capture:!0}),()=>a.removeEventListener("keydown",l,{capture:!0})},[s,a])}var BA="DismissableLayer",np="dismissableLayer.update",LA="dismissableLayer.pointerDownOutside",HA="dismissableLayer.focusOutside",F0,z1=w.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),lu=w.forwardRef((t,a)=>{const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:u,onInteractOutside:d,onDismiss:f,...p}=t,g=w.useContext(z1),[y,x]=w.useState(null),S=y?.ownerDocument??globalThis?.document,[,C]=w.useState({}),j=Fe(a,T=>x(T)),v=Array.from(g.layers),[E]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),N=v.indexOf(E),D=y?v.indexOf(y):-1,O=g.layersWithOutsidePointerEventsDisabled.size>0,k=D>=N,U=QA(T=>{const M=T.target,H=[...g.branches].some(V=>V.contains(M));!k||H||(o?.(T),d?.(T),T.defaultPrevented||f?.())},S),R=GA(T=>{const M=T.target;[...g.branches].some(V=>V.contains(M))||(u?.(T),d?.(T),T.defaultPrevented||f?.())},S);return UA(T=>{D===g.layers.size-1&&(l?.(T),!T.defaultPrevented&&f&&(T.preventDefault(),f()))},S),w.useEffect(()=>{if(y)return s&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(F0=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Y0(),()=>{s&&g.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=F0)}},[y,S,s,g]),w.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Y0())},[y,g]),w.useEffect(()=>{const T=()=>C({});return document.addEventListener(np,T),()=>document.removeEventListener(np,T)},[]),c.jsx(He.div,{...p,ref:j,style:{pointerEvents:O?k?"auto":"none":void 0,...t.style},onFocusCapture:Me(t.onFocusCapture,R.onFocusCapture),onBlurCapture:Me(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Me(t.onPointerDownCapture,U.onPointerDownCapture)})});lu.displayName=BA;var qA="DismissableLayerBranch",IA=w.forwardRef((t,a)=>{const s=w.useContext(z1),l=w.useRef(null),o=Fe(a,l);return w.useEffect(()=>{const u=l.current;if(u)return s.branches.add(u),()=>{s.branches.delete(u)}},[s.branches]),c.jsx(He.div,{...t,ref:o})});IA.displayName=qA;function QA(t,a=globalThis?.document){const s=Jr(t),l=w.useRef(!1),o=w.useRef(()=>{});return w.useEffect(()=>{const u=f=>{if(f.target&&!l.current){let p=function(){P1(LA,s,g,{discrete:!0})};const g={originalEvent:f};f.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=p,a.addEventListener("click",o.current,{once:!0})):p()}else a.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(d),a.removeEventListener("pointerdown",u),a.removeEventListener("click",o.current)}},[a,s]),{onPointerDownCapture:()=>l.current=!0}}function GA(t,a=globalThis?.document){const s=Jr(t),l=w.useRef(!1);return w.useEffect(()=>{const o=u=>{u.target&&!l.current&&P1(HA,s,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,s]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function Y0(){const t=new CustomEvent(np);document.dispatchEvent(t)}function P1(t,a,s,{discrete:l}){const o=s.originalEvent.target,u=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:s});a&&o.addEventListener(t,a,{once:!0}),l?PA(o,u):o.dispatchEvent(u)}var Ht=globalThis?.document?w.useLayoutEffect:()=>{},VA=Wc[" useId ".trim().toString()]||(()=>{}),FA=0;function sl(t){const[a,s]=w.useState(VA());return Ht(()=>{s(l=>l??String(FA++))},[t]),t||(a?`radix-${a}`:"")}const YA=["top","right","bottom","left"],vr=Math.min,gn=Math.max,Lc=Math.round,gc=Math.floor,aa=t=>({x:t,y:t}),KA={left:"right",right:"left",bottom:"top",top:"bottom"},XA={start:"end",end:"start"};function ap(t,a,s){return gn(t,vr(a,s))}function ka(t,a){return typeof t=="function"?t(a):t}function Ra(t){return t.split("-")[0]}function vl(t){return t.split("-")[1]}function Mp(t){return t==="x"?"y":"x"}function zp(t){return t==="y"?"height":"width"}const $A=new Set(["top","bottom"]);function na(t){return $A.has(Ra(t))?"y":"x"}function Pp(t){return Mp(na(t))}function JA(t,a,s){s===void 0&&(s=!1);const l=vl(t),o=Pp(t),u=zp(o);let d=o==="x"?l===(s?"end":"start")?"right":"left":l==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(d=Hc(d)),[d,Hc(d)]}function ZA(t){const a=Hc(t);return[rp(t),a,rp(a)]}function rp(t){return t.replace(/start|end/g,a=>XA[a])}const K0=["left","right"],X0=["right","left"],WA=["top","bottom"],eO=["bottom","top"];function tO(t,a,s){switch(t){case"top":case"bottom":return s?a?X0:K0:a?K0:X0;case"left":case"right":return a?WA:eO;default:return[]}}function nO(t,a,s,l){const o=vl(t);let u=tO(Ra(t),s==="start",l);return o&&(u=u.map(d=>d+"-"+o),a&&(u=u.concat(u.map(rp)))),u}function Hc(t){return t.replace(/left|right|bottom|top/g,a=>KA[a])}function aO(t){return{top:0,right:0,bottom:0,left:0,...t}}function U1(t){return typeof t!="number"?aO(t):{top:t,right:t,bottom:t,left:t}}function qc(t){const{x:a,y:s,width:l,height:o}=t;return{width:l,height:o,top:s,left:a,right:a+l,bottom:s+o,x:a,y:s}}function $0(t,a,s){let{reference:l,floating:o}=t;const u=na(a),d=Pp(a),f=zp(d),p=Ra(a),g=u==="y",y=l.x+l.width/2-o.width/2,x=l.y+l.height/2-o.height/2,S=l[f]/2-o[f]/2;let C;switch(p){case"top":C={x:y,y:l.y-o.height};break;case"bottom":C={x:y,y:l.y+l.height};break;case"right":C={x:l.x+l.width,y:x};break;case"left":C={x:l.x-o.width,y:x};break;default:C={x:l.x,y:l.y}}switch(vl(a)){case"start":C[d]-=S*(s&&g?-1:1);break;case"end":C[d]+=S*(s&&g?-1:1);break}return C}const rO=async(t,a,s)=>{const{placement:l="bottom",strategy:o="absolute",middleware:u=[],platform:d}=s,f=u.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(a));let g=await d.getElementRects({reference:t,floating:a,strategy:o}),{x:y,y:x}=$0(g,l,p),S=l,C={},j=0;for(let v=0;v<f.length;v++){const{name:E,fn:N}=f[v],{x:D,y:O,data:k,reset:U}=await N({x:y,y:x,initialPlacement:l,placement:S,strategy:o,middlewareData:C,rects:g,platform:d,elements:{reference:t,floating:a}});y=D??y,x=O??x,C={...C,[E]:{...C[E],...k}},U&&j<=50&&(j++,typeof U=="object"&&(U.placement&&(S=U.placement),U.rects&&(g=U.rects===!0?await d.getElementRects({reference:t,floating:a,strategy:o}):U.rects),{x:y,y:x}=$0(g,S,p)),v=-1)}return{x:y,y:x,placement:S,strategy:o,middlewareData:C}};async function Uo(t,a){var s;a===void 0&&(a={});const{x:l,y:o,platform:u,rects:d,elements:f,strategy:p}=t,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:S=!1,padding:C=0}=ka(a,t),j=U1(C),E=f[S?x==="floating"?"reference":"floating":x],N=qc(await u.getClippingRect
vendor: 12,569 bytes, line 49
49({element:(s=await(u.isElement==null?void 0:u.isElement(E)))==null||s?E:E.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(f.floating)),boundary:g,rootBoundary:y,strategy:p})),D=x==="floating"?{x:l,y:o,width:d.floating.width,height:d.floating.height}:d.reference,O=await(u.getOffsetParent==null?void 0:u.getOffsetParent(f.floating)),k=await(u.isElement==null?void 0:u.isElement(O))?await(u.getScale==null?void 0:u.getScale(O))||{x:1,y:1}:{x:1,y:1},U=qc(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:D,offsetParent:O,strategy:p}):D);return{top:(N.top-U.top+j.top)/k.y,bottom:(U.bottom-N.bottom+j.bottom)/k.y,left:(N.left-U.left+j.left)/k.x,right:(U.right-N.right+j.right)/k.x}}const sO=t=>({name:"arrow",options:t,async fn(a){const{x:s,y:l,placement:o,rects:u,platform:d,elements:f,middlewareData:p}=a,{element:g,padding:y=0}=ka(t,a)||{};if(g==null)return{};const x=U1(y),S={x:s,y:l},C=Pp(o),j=zp(C),v=await d.getDimensions(g),E=C==="y",N=E?"top":"left",D=E?"bottom":"right",O=E?"clientHeight":"clientWidth",k=u.reference[j]+u.reference[C]-S[C]-u.floating[j],U=S[C]-u.reference[C],R=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let T=R?R[O]:0;(!T||!await(d.isElement==null?void 0:d.isElement(R)))&&(T=f.floating[O]||u.floating[j]);const M=k/2-U/2,H=T/2-v[j]/2-1,V=vr(x[N],H),q=vr(x[D],H),F=V,W=T-v[j]-q,te=T/2-v[j]/2+M,ie=ap(F,te,W),z=!p.arrow&&vl(o)!=null&&te!==ie&&u.reference[j]/2-(te<F?V:q)-v[j]/2<0,G=z?te<F?te-F:te-W:0;return{[C]:S[C]+G,data:{[C]:ie,centerOffset:te-ie-G,...z&&{alignmentOffset:G}},reset:z}}}),lO=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(a){var s,l;const{placement:o,middlewareData:u,rects:d,initialPlacement:f,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:S,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:v=!0,...E}=ka(t,a);if((s=u.arrow)!=null&&s.alignmentOffset)return{};const N=Ra(o),D=na(f),O=Ra(f)===f,k=await(p.isRTL==null?void 0:p.isRTL(g.floating)),U=S||(O||!v?[Hc(f)]:ZA(f)),R=j!=="none";!S&&R&&U.push(...nO(f,v,j,k));const T=[f,...U],M=await Uo(a,E),H=[];let V=((l=u.flip)==null?void 0:l.overflows)||[];if(y&&H.push(M[N]),x){const te=JA(o,d,k);H.push(M[te[0]],M[te[1]])}if(V=[...V,{placement:o,overflows:H}],!H.every(te=>te<=0)){var q,F;const te=(((q=u.flip)==null?void 0:q.index)||0)+1,ie=T[te];if(ie&&(!(x==="alignment"?D!==na(ie):!1)||V.every(L=>na(L.placement)===D?L.overflows[0]>0:!0)))return{data:{index:te,overflows:V},reset:{placement:ie}};let z=(F=V.filter(G=>G.overflows[0]<=0).sort((G,L)=>G.overflows[1]-L.overflows[1])[0])==null?void 0:F.placement;if(!z)switch(C){case"bestFit":{var W;const G=(W=V.filter(L=>{if(R){const oe=na(L.placement);return oe===D||oe==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(oe=>oe>0).reduce((oe,Y)=>oe+Y,0)]).sort((L,oe)=>L[1]-oe[1])[0])==null?void 0:W[0];G&&(z=G);break}case"initialPlacement":z=f;break}if(o!==z)return{reset:{placement:z}}}return{}}}};function J0(t,a){return{top:t.top-a.height,right:t.right-a.width,bottom:t.bottom-a.height,left:t.left-a.width}}function Z0(t){return YA.some(a=>t[a]>=0)}const oO=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(a){const{rects:s}=a,{strategy:l="referenceHidden",...o}=ka(t,a);switch(l){case"referenceHidden":{const u=await Uo(a,{...o,elementContext:"reference"}),d=J0(u,s.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Z0(d)}}}case"escaped":{const u=await Uo(a,{...o,altBoundary:!0}),d=J0(u,s.floating);return{data:{escapedOffsets:d,escaped:Z0(d)}}}default:return{}}}}},B1=new Set(["left","top"]);async function iO(t,a){const{placement:s,platform:l,elements:o}=t,u=await(l.isRTL==null?void 0:l.isRTL(o.floating)),d=Ra(s),f=vl(s),p=na(s)==="y",g=B1.has(d)?-1:1,y=u&&p?-1:1,x=ka(a,t);let{mainAxis:S,crossAxis:C,alignmentAxis:j}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof j=="number"&&(C=f==="end"?j*-1:j),p?{x:C*y,y:S*g}:{x:S*g,y:C*y}}const cO=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(a){var s,l;const{x:o,y:u,placement:d,middlewareData:f}=a,p=await iO(a,t);return d===((s=f.offset)==null?void 0:s.placement)&&(l=f.arrow)!=null&&l.alignmentOffset?{}:{x:o+p.x,y:u+p.y,data:{...p,placement:d}}}}},uO=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(a){const{x:s,y:l,placement:o}=a,{mainAxis:u=!0,crossAxis:d=!1,limiter:f={fn:E=>{let{x:N,y:D}=E;return{x:N,y:D}}},...p}=ka(t,a),g={x:s,y:l},y=await Uo(a,p),x=na(Ra(o)),S=Mp(x);let C=g[S],j=g[x];if(u){const E=S==="y"?"top":"left",N=S==="y"?"bottom":"right",D=C+y[E],O=C-y[N];C=ap(D,C,O)}if(d){const E=x==="y"?"top":"left",N=x==="y"?"bottom":"right",D=j+y[E],O=j-y[N];j=ap(D,j,O)}const v=f.fn({...a,[S]:C,[x]:j});return{...v,data:{x:v.x-s,y:v.y-l,enabled:{[S]:u,[x]:d}}}}}},dO=function(t){return t===void 0&&(t={}),{options:t,fn(a){const{x:s,y:l,placement:o,rects:u,middlewareData:d}=a,{offset:f=0,mainAxis:p=!0,crossAxis:g=!0}=ka(t,a),y={x:s,y:l},x=na(o),S=Mp(x);let C=y[S],j=y[x];const v=ka(f,a),E=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(p){const O=S==="y"?"height":"width",k=u.reference[S]-u.floating[O]+E.mainAxis,U=u.reference[S]+u.reference[O]-E.mainAxis;C<k?C=k:C>U&&(C=U)}if(g){var N,D;const O=S==="y"?"width":"height",k=B1.has(Ra(o)),U=u.reference[x]-u.floating[O]+(k&&((N=d.offset)==null?void 0:N[x])||0)+(k?0:E.crossAxis),R=u.reference[x]+u.reference[O]+(k?0:((D=d.offset)==null?void 0:D[x])||0)-(k?E.crossAxis:0);j<U?j=U:j>R&&(j=R)}return{[S]:C,[x]:j}}}},fO=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(a){var s,l;const{placement:o,rects:u,platform:d,elements:f}=a,{apply:p=()=>{},...g}=ka(t,a),y=await Uo(a,g),x=Ra(o),S=vl(o),C=na(o)==="y",{width:j,height:v}=u.floating;let E,N;x==="top"||x==="bottom"?(E=x,N=S===(await(d.isRTL==null?void 0:d.isRTL(f.floating))?"start":"end")?"left":"right"):(N=x,E=S==="end"?"top":"bottom");const D=v-y.top-y.bottom,O=j-y.left-y.right,k=vr(v-y[E],D),U=vr(j-y[N],O),R=!a.middlewareData.shift;let T=k,M=U;if((s=a.middlewareData.shift)!=null&&s.enabled.x&&(M=O),(l=a.middlewareData.shift)!=null&&l.enabled.y&&(T=D),R&&!S){const V=gn(y.left,0),q=gn(y.right,0),F=gn(y.top,0),W=gn(y.bottom,0);C?M=j-2*(V!==0||q!==0?V+q:gn(y.left,y.right)):T=v-2*(F!==0||W!==0?F+W:gn(y.top,y.bottom))}await p({...a,availableWidth:M,availableHeight:T});const H=await d.getDimensions(f.floating);return j!==H.width||v!==H.height?{reset:{rects:!0}}:{}}}};function ou(){return typeof window<"u"}function bl(t){return L1(t)?(t.nodeName||"").toLowerCase():"#document"}function yn(t){var a;return(t==null||(a=t.ownerDocument)==null?void 0:a.defaultView)||window}function la(t){var a;return(a=(L1(t)?t.ownerDocument:t.document)||window.document)==null?void 0:a.documentElement}function L1(t){return ou()?t instanceof Node||t instanceof yn(t).Node:!1}function In(t){return ou()?t instanceof Element||t instanceof yn(t).Element:!1}function ra(t){return ou()?t instanceof HTMLElement||t instanceof yn(t).HTMLElement:!1}function W0(t){return!ou()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof yn(t).ShadowRoot}const mO=new Set(["inline","contents"]);function Xo(t){const{overflow:a,overflowX:s,overflowY:l,display:o}=Qn(t);return/auto|scroll|overlay|hidden|clip/.test(a+l+s)&&!mO.has(o)}const pO=new Set(["table","td","th"]);function hO(t){return pO.has(bl(t))}const gO=[":popover-open",":modal"];function iu(t){return gO.some(a=>{try{return t.matches(a)}catch{return!1}})}const xO=["transform","translate","scale","rotate","perspective"],yO=["transform","translate","scale","rotate","perspective","filter"],vO=["paint","layout","strict","content"];function Up(t){const a=Bp(),s=In(t)?Qn(t):t;return xO.some(l=>s[l]?s[l]!=="none":!1)||(s.containerType?s.containerType!=="normal":!1)||!a&&(s.backdropFilter?s.backdropFilter!=="none":!1)||!a&&(s.filter?s.filter!=="none":!1)||yO.some(l=>(s.willChange||"").includes(l))||vO.some(l=>(s.contain||"").includes(l))}function bO(t){let a=br(t);for(;ra(a)&&!gl(a);){if(Up(a))return a;if(iu(a))return null;a=br(a)}return null}function Bp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const wO=new Set(["html","body","#document"]);function gl(t){return wO.has(bl(t))}function Qn(t){return yn(t).getComputedStyle(t)}function cu(t){return In(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function br(t){if(bl(t)==="html")return t;const a=t.assignedSlot||t.parentNode||W0(t)&&t.host||la(t);return W0(a)?a.host:a}function H1(t){const a=br(t);return gl(a)?t.ownerDocument?t.ownerDocument.body:t.body:ra(a)&&Xo(a)?a:H1(a)}function Bo(t,a,s){var l;a===void 0&&(a=[]),s===void 0&&(s=!0);const o=H1(t),u=o===((l=t.ownerDocument)==null?void 0:l.body),d=yn(o);if(u){const f=sp(d);return a.concat(d,d.visualViewport||[],Xo(o)?o:[],f&&s?Bo(f):[])}return a.concat(o,Bo(o,[],s))}function sp(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function q1(t){const a=Qn(t);let s=parseFloat(a.width)||0,l=parseFloat(a.height)||0;const o=ra(t),u=o?t.offsetWidth:s,d=o?t.offsetHeight:l,f=Lc(s)!==u||Lc(l)!==d;return f&&(s=u,l=d),{width:s,height:l,$:f}}function Lp(t){return In(t)?t:t.contextElement}function ll(t){const a=Lp(t);if(!ra(a))return aa(1);const s=a.getBoundingClientRect(),{width:l,height:o,$:u}=q1(a);let d=(u?Lc(s.width):s.width)/l,f=(u?Lc(s.height):s.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!f||!Number.isFinite(f))&&(f=1),{x:d,y:f}}const SO=aa(0);function I1(t){const a=yn(t);return!Bp()||!a.visualViewport?SO:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function CO(t,a,s){return a===void 0&&(a=!1),!s||a&&s!==yn(t)?!1:a}function Zr(t,a,s,l){a===void 0&&(a=!1),s===void 0&&(s=!1);const o=t.getBoundingClientRect(),u=Lp(t);let d=aa(1);a&&(l?In(l)&&(d=ll(l)):d=ll(t));const f=CO(u,s,l)?I1(u):aa(0);let p=(o.left+f.x)/d.x,g=(o.top+f.y)/d.y,y=o.width/d.x,x=o.height/d.y;if(u){const S=yn(u),C=l&&In(l)?yn(l):l;let j=S,v=sp(j);for(;v&&l&&C!==j;){const E=ll(v),N=v.getBoundingClientRect(),D=Qn(v),O=N.left+(v.clientLeft+parseFloat(D.paddingLeft))*E.x,k=N.top+(v.clientTop+parseFloat(D.paddingTop))*E.y;p*=E.x,g*=E.y,y*=E.x,x*=E.y,p+=O,g+=k,j=yn(v),v=sp(j)}}return qc({width:y,height:x,x:p,y:g})}function uu(t,a){const s=cu(t).scrollLeft;return a?a.left+s:Zr(la(t)).left+s}function Q1(t,a){const s=t.getBoundingClientRect(),l=s.left+a.scrollLeft-uu(t,s),o=s.top+a.scrollTop;return{x:l,y:o}}function jO(t){let{elements:a,rect:s,offsetParent:l,strategy:o}=t;const u=o==="fixed",d=la(l),f=a?iu(a.floating):!1;if(l===d||f&&u)return s;let p={scrollLeft:0,scrollTop:0},g=aa(1);const y=aa(0),x=ra(l);if((x||!x&&!u)&&((bl(l)!=="body"||Xo(d))&&(p=cu(l)),ra(l))){const C=Zr(l);g=ll(l),y.x=C.x+l.clientLeft,y.y=C.y+l.clientTop}const S=d&&!x&&!u?Q1(d,p):aa(0);return{width:s.width*g.x,height:s.height*g.y,x:s.x*g.x-p.scrollLeft*g.x+y.x+S.x,y:s.y*g.y-p.scrollTop*g.y+y.y+S.y}}function NO(t){return Array.from(t.getClientRects())}function EO(t){const a=la(t),s=cu(t),l=t.ownerDocument.body,o=gn(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),u=gn(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let d=-s.scrollLeft+uu(t);const f=-s.scrollTop;return Qn(l).direction==="rtl"&&(d+=gn(a.clientWidth,l.clientWidth)-o),{width:o,height:u,x:d,y:f}}const ev=25;function AO(t,a){const s=yn(t),l=la(t),o=s.visualViewport;let u=l.clientWidth,d=l.clientHeight,f=0,p=0;if(o){u=o.width,d=o.height;const y=Bp();(!y||y&&a==="fixed")&&(f=o.offsetLeft,p=o.offsetTop)}const g=uu(l);if(g<=0){const y=l.ownerDocument,x=y.body,S=getComputedStyle(x),C=y.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,j=Math.abs(l.clientWidth-x.clientWidth-C);j<=ev&&(u-=j)}else g<=ev&&(u+=g);return{width:u,height:d,x:f,y:p}}const OO=new Set(["absolute","fixed"]);function TO(t,a){const s=Zr(t,!0,a==="fixed"),l=s.top+t.clientTop,o=s.left+t.clientLeft,u=ra(t)?ll(t):aa(1),d=t.clientWidth*u.x,f=t.clientHeight*u.y,p=o*u.x,g=l*u.y;return{width:d,height:f,x:p,y:g}}function tv(t,a,s){let l;if(a==="viewport")l=AO(t,s);else if(a==="document")l=EO(la(t));else if(In(a))l=TO(a,s);else{const o=I1(t);l={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return qc(l)}function G1(t,a){const s=br(t);return s===a||!In(s)||gl(s)?!1:Qn(s).position==="fixed"||G1(s,a)}function DO(t,a){const s=a.get(t);if(s)return s;
vendor: 10,437 bytes, line 49
49let l=Bo(t,[],!1).filter(f=>In(f)&&bl(f)!=="body"),o=null;const u=Qn(t).position==="fixed";let d=u?br(t):t;for(;In(d)&&!gl(d);){const f=Qn(d),p=Up(d);!p&&f.position==="fixed"&&(o=null),(u?!p&&!o:!p&&f.position==="static"&&!!o&&OO.has(o.position)||Xo(d)&&!p&&G1(t,d))?l=l.filter(y=>y!==d):o=f,d=br(d)}return a.set(t,l),l}function _O(t){let{element:a,boundary:s,rootBoundary:l,strategy:o}=t;const d=[...s==="clippingAncestors"?iu(a)?[]:DO(a,this._c):[].concat(s),l],f=d[0],p=d.reduce((g,y)=>{const x=tv(a,y,o);return g.top=gn(x.top,g.top),g.right=vr(x.right,g.right),g.bottom=vr(x.bottom,g.bottom),g.left=gn(x.left,g.left),g},tv(a,f,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function kO(t){const{width:a,height:s}=q1(t);return{width:a,height:s}}function RO(t,a,s){const l=ra(a),o=la(a),u=s==="fixed",d=Zr(t,!0,u,a);let f={scrollLeft:0,scrollTop:0};const p=aa(0);function g(){p.x=uu(o)}if(l||!l&&!u)if((bl(a)!=="body"||Xo(o))&&(f=cu(a)),l){const C=Zr(a,!0,u,a);p.x=C.x+a.clientLeft,p.y=C.y+a.clientTop}else o&&g();u&&!l&&o&&g();const y=o&&!l&&!u?Q1(o,f):aa(0),x=d.left+f.scrollLeft-p.x-y.x,S=d.top+f.scrollTop-p.y-y.y;return{x,y:S,width:d.width,height:d.height}}function $f(t){return Qn(t).position==="static"}function nv(t,a){if(!ra(t)||Qn(t).position==="fixed")return null;if(a)return a(t);let s=t.offsetParent;return la(t)===s&&(s=s.ownerDocument.body),s}function V1(t,a){const s=yn(t);if(iu(t))return s;if(!ra(t)){let o=br(t);for(;o&&!gl(o);){if(In(o)&&!$f(o))return o;o=br(o)}return s}let l=nv(t,a);for(;l&&hO(l)&&$f(l);)l=nv(l,a);return l&&gl(l)&&$f(l)&&!Up(l)?s:l||bO(t)||s}const MO=async function(t){const a=this.getOffsetParent||V1,s=this.getDimensions,l=await s(t.floating);return{reference:RO(t.reference,await a(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function zO(t){return Qn(t).direction==="rtl"}const PO={convertOffsetParentRelativeRectToViewportRelativeRect:jO,getDocumentElement:la,getClippingRect:_O,getOffsetParent:V1,getElementRects:MO,getClientRects:NO,getDimensions:kO,getScale:ll,isElement:In,isRTL:zO};function F1(t,a){return t.x===a.x&&t.y===a.y&&t.width===a.width&&t.height===a.height}function UO(t,a){let s=null,l;const o=la(t);function u(){var f;clearTimeout(l),(f=s)==null||f.disconnect(),s=null}function d(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),u();const g=t.getBoundingClientRect(),{left:y,top:x,width:S,height:C}=g;if(f||a(),!S||!C)return;const j=gc(x),v=gc(o.clientWidth-(y+S)),E=gc(o.clientHeight-(x+C)),N=gc(y),O={rootMargin:-j+"px "+-v+"px "+-E+"px "+-N+"px",threshold:gn(0,vr(1,p))||1};let k=!0;function U(R){const T=R[0].intersectionRatio;if(T!==p){if(!k)return d();T?d(!1,T):l=setTimeout(()=>{d(!1,1e-7)},1e3)}T===1&&!F1(g,t.getBoundingClientRect())&&d(),k=!1}try{s=new IntersectionObserver(U,{...O,root:o.ownerDocument})}catch{s=new IntersectionObserver(U,O)}s.observe(t)}return d(!0),u}function BO(t,a,s,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:u=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=l,g=Lp(t),y=o||u?[...g?Bo(g):[],...Bo(a)]:[];y.forEach(N=>{o&&N.addEventListener("scroll",s,{passive:!0}),u&&N.addEventListener("resize",s)});const x=g&&f?UO(g,s):null;let S=-1,C=null;d&&(C=new ResizeObserver(N=>{let[D]=N;D&&D.target===g&&C&&(C.unobserve(a),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var O;(O=C)==null||O.observe(a)})),s()}),g&&!p&&C.observe(g),C.observe(a));let j,v=p?Zr(t):null;p&&E();function E(){const N=Zr(t);v&&!F1(v,N)&&s(),v=N,j=requestAnimationFrame(E)}return s(),()=>{var N;y.forEach(D=>{o&&D.removeEventListener("scroll",s),u&&D.removeEventListener("resize",s)}),x?.(),(N=C)==null||N.disconnect(),C=null,p&&cancelAnimationFrame(j)}}const LO=cO,HO=uO,qO=lO,IO=fO,QO=oO,av=sO,GO=dO,VO=(t,a,s)=>{const l=new Map,o={platform:PO,...s},u={...o.platform,_c:l};return rO(t,a,{...o,platform:u})};var FO=typeof document<"u",YO=function(){},Rc=FO?w.useLayoutEffect:YO;function Ic(t,a){if(t===a)return!0;if(typeof t!=typeof a)return!1;if(typeof t=="function"&&t.toString()===a.toString())return!0;let s,l,o;if(t&&a&&typeof t=="object"){if(Array.isArray(t)){if(s=t.length,s!==a.length)return!1;for(l=s;l--!==0;)if(!Ic(t[l],a[l]))return!1;return!0}if(o=Object.keys(t),s=o.length,s!==Object.keys(a).length)return!1;for(l=s;l--!==0;)if(!{}.hasOwnProperty.call(a,o[l]))return!1;for(l=s;l--!==0;){const u=o[l];if(!(u==="_owner"&&t.$$typeof)&&!Ic(t[u],a[u]))return!1}return!0}return t!==t&&a!==a}function Y1(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function rv(t,a){const s=Y1(t);return Math.round(a*s)/s}function Jf(t){const a=w.useRef(t);return Rc(()=>{a.current=t}),a}function KO(t){t===void 0&&(t={});const{placement:a="bottom",strategy:s="absolute",middleware:l=[],platform:o,elements:{reference:u,floating:d}={},transform:f=!0,whileElementsMounted:p,open:g}=t,[y,x]=w.useState({x:0,y:0,strategy:s,placement:a,middlewareData:{},isPositioned:!1}),[S,C]=w.useState(l);Ic(S,l)||C(l);const[j,v]=w.useState(null),[E,N]=w.useState(null),D=w.useCallback(L=>{L!==R.current&&(R.current=L,v(L))},[]),O=w.useCallback(L=>{L!==T.current&&(T.current=L,N(L))},[]),k=u||j,U=d||E,R=w.useRef(null),T=w.useRef(null),M=w.useRef(y),H=p!=null,V=Jf(p),q=Jf(o),F=Jf(g),W=w.useCallback(()=>{if(!R.current||!T.current)return;const L={placement:a,strategy:s,middleware:S};q.current&&(L.platform=q.current),VO(R.current,T.current,L).then(oe=>{const Y={...oe,isPositioned:F.current!==!1};te.current&&!Ic(M.current,Y)&&(M.current=Y,Ko.flushSync(()=>{x(Y)}))})},[S,a,s,q,F]);Rc(()=>{g===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,x(L=>({...L,isPositioned:!1})))},[g]);const te=w.useRef(!1);Rc(()=>(te.current=!0,()=>{te.current=!1}),[]),Rc(()=>{if(k&&(R.current=k),U&&(T.current=U),k&&U){if(V.current)return V.current(k,U,W);W()}},[k,U,W,V,H]);const ie=w.useMemo(()=>({reference:R,floating:T,setReference:D,setFloating:O}),[D,O]),z=w.useMemo(()=>({reference:k,floating:U}),[k,U]),G=w.useMemo(()=>{const L={position:s,left:0,top:0};if(!z.floating)return L;const oe=rv(z.floating,y.x),Y=rv(z.floating,y.y);return f?{...L,transform:"translate("+oe+"px, "+Y+"px)",...Y1(z.floating)>=1.5&&{willChange:"transform"}}:{position:s,left:oe,top:Y}},[s,f,z.floating,y.x,y.y]);return w.useMemo(()=>({...y,update:W,refs:ie,elements:z,floatingStyles:G}),[y,W,ie,z,G])}const XO=t=>{function a(s){return{}.hasOwnProperty.call(s,"current")}return{name:"arrow",options:t,fn(s){const{element:l,padding:o}=typeof t=="function"?t(s):t;return l&&a(l)?l.current!=null?av({element:l.current,padding:o}).fn(s):{}:l?av({element:l,padding:o}).fn(s):{}}}},$O=(t,a)=>({...LO(t),options:[t,a]}),JO=(t,a)=>({...HO(t),options:[t,a]}),ZO=(t,a)=>({...GO(t),options:[t,a]}),WO=(t,a)=>({...qO(t),options:[t,a]}),e3=(t,a)=>({...IO(t),options:[t,a]}),t3=(t,a)=>({...QO(t),options:[t,a]}),n3=(t,a)=>({...XO(t),options:[t,a]});var a3="Arrow",K1=w.forwardRef((t,a)=>{const{children:s,width:l=10,height:o=5,...u}=t;return c.jsx(He.svg,{...u,ref:a,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?s:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});K1.displayName=a3;var r3=K1;function X1(t){const[a,s]=w.useState(void 0);return Ht(()=>{if(t){s({width:t.offsetWidth,height:t.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let d,f;if("borderBoxSize"in u){const p=u.borderBoxSize,g=Array.isArray(p)?p[0]:p;d=g.inlineSize,f=g.blockSize}else d=t.offsetWidth,f=t.offsetHeight;s({width:d,height:f})});return l.observe(t,{box:"border-box"}),()=>l.unobserve(t)}else s(void 0)},[t]),a}var Hp="Popper",[$1,du]=os(Hp),[s3,J1]=$1(Hp),Z1=t=>{const{__scopePopper:a,children:s}=t,[l,o]=w.useState(null);return c.jsx(s3,{scope:a,anchor:l,onAnchorChange:o,children:s})};Z1.displayName=Hp;var W1="PopperAnchor",e2=w.forwardRef((t,a)=>{const{__scopePopper:s,virtualRef:l,...o}=t,u=J1(W1,s),d=w.useRef(null),f=Fe(a,d),p=w.useRef(null);return w.useEffect(()=>{const g=p.current;p.current=l?.current||d.current,g!==p.current&&u.onAnchorChange(p.current)}),l?null:c.jsx(He.div,{...o,ref:f})});e2.displayName=W1;var qp="PopperContent",[l3,o3]=$1(qp),t2=w.forwardRef((t,a)=>{const{__scopePopper:s,side:l="bottom",sideOffset:o=0,align:u="center",alignOffset:d=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:S=!1,updatePositionStrategy:C="optimized",onPlaced:j,...v}=t,E=J1(qp,s),[N,D]=w.useState(null),O=Fe(a,ne=>D(ne)),[k,U]=w.useState(null),R=X1(k),T=R?.width??0,M=R?.height??0,H=l+(u!=="center"?"-"+u:""),V=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},q=Array.isArray(g)?g:[g],F=q.length>0,W={padding:V,boundary:q.filter(c3),altBoundary:F},{refs:te,floatingStyles:ie,placement:z,isPositioned:G,middlewareData:L}=KO({strategy:"fixed",placement:H,whileElementsMounted:(...ne)=>BO(...ne,{animationFrame:C==="always"}),elements:{reference:E.anchor},middleware:[$O({mainAxis:o+M,alignmentAxis:d}),p&&JO({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?ZO():void 0,...W}),p&&WO({...W}),e3({...W,apply:({elements:ne,rects:ce,availableWidth:pe,availableHeight:we})=>{const{width:ye,height:ue}=ce.reference,Oe=ne.floating.style;Oe.setProperty("--radix-popper-available-width",`${pe}px`),Oe.setProperty("--radix-popper-available-height",`${we}px`),Oe.setProperty("--radix-popper-anchor-width",`${ye}px`),Oe.setProperty("--radix-popper-anchor-height",`${ue}px`)}}),k&&n3({element:k,padding:f}),u3({arrowWidth:T,arrowHeight:M}),S&&t3({strategy:"referenceHidden",...W})]}),[oe,Y]=r2(z),_=Jr(j);Ht(()=>{G&&_?.()},[G,_]);const K=L.arrow?.x,I=L.arrow?.y,J=L.arrow?.centerOffset!==0,[le,fe]=w.useState();return Ht(()=>{N&&fe(window.getComputedStyle(N).zIndex)},[N]),c.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...ie,transform:G?ie.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:c.jsx(l3,{scope:s,placedSide:oe,onArrowChange:U,arrowX:K,arrowY:I,shouldHideArrow:J,children:c.jsx(He.div,{"data-side":oe,"data-align":Y,...v,ref:O,style:{...v.style,animation:G?void 0:"none"}})})})});t2.displayName=qp;var n2="PopperArrow",i3={top:"bottom",right:"left",bottom:"top",left:"r
49ight"},a2=w.forwardRef(function(a,s){const{__scopePopper:l,...o}=a,u=o3(n2,l),d=i3[u.placedSide];return c.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:c.jsx(r3,{...o,ref:s,style:{...o.style,display:"block"}})})});a2.displayName=n2;function c3(t){return t!==null}var u3=t=>({name:"transformOrigin",options:t,fn(a){const{placement:s,rects:l,middlewareData:o}=a,d=o.arrow?.centerOffset!==0,f=d?0:t.arrowWidth,p=d?0:t.arrowHeight,[g,y]=r2(s),x={start:"0%",center:"50%",end:"100%"}[y],S=(o.arrow?.x??0)+f/2,C=(o.arrow?.y??0)+p/2;let j="",v="";return g==="bottom"?(j=d?x:`${S}px`,v=`${-p}px`):g==="top"?(j=d?x:`${S}px`,v=`${l.floating.height+p}px`):g==="right"?(j=`${-p}px`,v=d?x:`${C}px`):g==="left"&&(j=`${l.floating.width+p}px`,v=d?x:`${C}px`),{data:{x:j,y:v}}}});function r2(t){const[a,s="center"]=t.split("-");return[a,s]}var d3=Z1,s2=e2,l2=t2,o2=a2,f3="Portal",Ip=w.forwardRef((t,a)=>{const{container:s,...l}=t,[o,u]=w.useState(!1);Ht(()=>u(!0),[]);const d=s||o&&globalThis?.document?.body;return d?D1.createPortal(c.jsx(He.div,{...l,ref:a}),d):null});Ip.displayName=f3;function m3(t,a){return w.useReducer((s,l)=>a[s][l]??s,t)}var $o=t=>{const{present:a,children:s}=t,l=p3(a),o=typeof s=="function"?s({present:l.isPresent}):w.Children.only(s),u=Fe(l.ref,h3(o));return typeof s=="function"||l.isPresent?w.cloneElement(o,{ref:u}):null};$o.displayName="Presence";function p3(t){const[a,s]=w.useState(),l=w.useRef(null),o=w.useRef(t),u=w.useRef("none"),d=t?"mounted":"unmounted",[f,p]=m3(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return w.useEffect(()=>{const g=xc(l.current);u.current=f==="mounted"?g:"none"},[f]),Ht(()=>{const g=l.current,y=o.current;if(y!==t){const S=u.current,C=xc(g);t?p("MOUNT"):C==="none"||g?.display==="none"?p("UNMOUNT"):p(y&&S!==C?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,p]),Ht(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,x=C=>{const v=xc(l.current).includes(CSS.escape(C.animationName));if(C.target===a&&v&&(p("ANIMATION_END"),!o.current)){const E=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=E)})}},S=C=>{C.target===a&&(u.current=xc(l.current))};return a.addEventListener("animationstart",S),a.addEventListener("animationcancel",x),a.addEventListener("animationend",x),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",S),a.removeEventListener("animationcancel",x),a.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:w.useCallback(g=>{l.current=g?getComputedStyle(g):null,s(g)},[])}}function xc(t){return t?.animationName||"none"}function h3(t){let a=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning;return s?t.ref:(a=Object.getOwnPropertyDescriptor(t,"ref")?.get,s=a&&"isReactWarning"in a&&a.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var g3=Wc[" useInsertionEffect ".trim().toString()]||Ht;function Qc({prop:t,defaultProp:a,onChange:s=()=>{},caller:l}){const[o,u,d]=x3({defaultProp:a,onChange:s}),f=t!==void 0,p=f?t:o;{const y=w.useRef(t!==void 0);w.useEffect(()=>{const x=y.current;x!==f&&console.warn(`${l} is changing from ${x?"controlled":"uncontrolled"} to ${f?"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.`),y.current=f},[f,l])}const g=w.useCallback(y=>{if(f){const x=y3(y)?y(t):y;x!==t&&d.current?.(x)}else u(y)},[f,t,u,d]);return[p,g]}function x3({defaultProp:t,onChange:a}){const[s,l]=w.useState(t),o=w.useRef(s),u=w.useRef(a);return g3(()=>{u.current=a},[a]),w.useEffect(()=>{o.current!==s&&(u.current?.(s),o.current=s)},[s,o]),[s,l,u]}function y3(t){return typeof t=="function"}var i2=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"}),v3="VisuallyHidden",c2=w.forwardRef((t,a)=>
vendor: 4,324 bytes, line 49
49c.jsx(He.span,{...t,ref:a,style:{...i2,...t.style}}));c2.displayName=v3;var b3=c2,[fu]=os("Tooltip",[du]),Qp=du(),u2="TooltipProvider",w3=700,sv="tooltip.open",[S3,d2]=fu(u2),f2=t=>{const{__scopeTooltip:a,delayDuration:s=w3,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:u}=t,d=w.useRef(!0),f=w.useRef(!1),p=w.useRef(0);return w.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),c.jsx(S3,{scope:a,isOpenDelayedRef:d,delayDuration:s,onOpen:w.useCallback(()=>{window.clearTimeout(p.current),d.current=!1},[]),onClose:w.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>d.current=!0,l)},[l]),isPointerInTransitRef:f,onPointerInTransitChange:w.useCallback(g=>{f.current=g},[]),disableHoverableContent:o,children:u})};f2.displayName=u2;var m2="Tooltip",[TR,mu]=fu(m2),lp="TooltipTrigger",C3=w.forwardRef((t,a)=>{const{__scopeTooltip:s,...l}=t,o=mu(lp,s),u=d2(lp,s),d=Qp(s),f=w.useRef(null),p=Fe(a,f,o.onTriggerChange),g=w.useRef(!1),y=w.useRef(!1),x=w.useCallback(()=>g.current=!1,[]);return w.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsx(s2,{asChild:!0,...d,children:c.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:p,onPointerMove:Me(t.onPointerMove,S=>{S.pointerType!=="touch"&&!y.current&&!u.isPointerInTransitRef.current&&(o.onTriggerEnter(),y.current=!0)}),onPointerLeave:Me(t.onPointerLeave,()=>{o.onTriggerLeave(),y.current=!1}),onPointerDown:Me(t.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:Me(t.onFocus,()=>{g.current||o.onOpen()}),onBlur:Me(t.onBlur,o.onClose),onClick:Me(t.onClick,o.onClose)})})});C3.displayName=lp;var j3="TooltipPortal",[DR,N3]=fu(j3,{forceMount:void 0}),xl="TooltipContent",E3=w.forwardRef((t,a)=>{const s=N3(xl,t.__scopeTooltip),{forceMount:l=s.forceMount,side:o="top",...u}=t,d=mu(xl,t.__scopeTooltip);return c.jsx($o,{present:l||d.open,children:d.disableHoverableContent?c.jsx(p2,{side:o,...u,ref:a}):c.jsx(A3,{side:o,...u,ref:a})})}),A3=w.forwardRef((t,a)=>{const s=mu(xl,t.__scopeTooltip),l=d2(xl,t.__scopeTooltip),o=w.useRef(null),u=Fe(a,o),[d,f]=w.useState(null),{trigger:p,onClose:g}=s,y=o.current,{onPointerInTransitChange:x}=l,S=w.useCallback(()=>{f(null),x(!1)},[x]),C=w.useCallback((j,v)=>{const E=j.currentTarget,N={x:j.clientX,y:j.clientY},D=k3(N,E.getBoundingClientRect()),O=R3(N,D),k=M3(v.getBoundingClientRect()),U=P3([...O,...k]);f(U),x(!0)},[x]);return w.useEffect(()=>()=>S(),[S]),w.useEffect(()=>{if(p&&y){const j=E=>C(E,y),v=E=>C(E,p);return p.addEventListener("pointerleave",j),y.addEventListener("pointerleave",v),()=>{p.removeEventListener("pointerleave",j),y.removeEventListener("pointerleave",v)}}},[p,y,C,S]),w.useEffect(()=>{if(d){const j=v=>{const E=v.target,N={x:v.clientX,y:v.clientY},D=p?.contains(E)||y?.contains(E),O=!z3(N,d);D?S():O&&(S(),g())};return document.addEventListener("pointermove",j),()=>document.removeEventListener("pointermove",j)}},[p,y,d,g,S]),c.jsx(p2,{...t,ref:u})}),[O3,T3]=fu(m2,{isInside:!1}),D3=M1("TooltipContent"),p2=w.forwardRef((t,a)=>{const{__scopeTooltip:s,children:l,"aria-label":o,onEscapeKeyDown:u,onPointerDownOutside:d,...f}=t,p=mu(xl,s),g=Qp(s),{onClose:y}=p;return w.useEffect(()=>(document.addEventListener(sv,y),()=>document.removeEventListener(sv,y)),[y]),w.useEffect(()=>{if(p.trigger){const x=S=>{S.target?.contains(p.trigger)&&y()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[p.trigger,y]),c.jsx(lu,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:x=>x.preventDefault(),onDismiss:y,children:c.jsxs(l2,{"data-state":p.stateAttribute,...g,...f,ref:a,style:{...f.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:[c.jsx(D3,{children:l}),c.jsx(O3,{scope:s,isInside:!0,children:c.jsx(b3,{id:p.contentId,role:"tooltip",children:o||l})})]})})});
vendor: 9,454 bytes, line 49
49E3.displayName=xl;var h2="TooltipArrow",_3=w.forwardRef((t,a)=>{const{__scopeTooltip:s,...l}=t,o=Qp(s);return T3(h2,s).isInside?null:c.jsx(o2,{...o,...l,ref:a})});_3.displayName=h2;function k3(t,a){const s=Math.abs(a.top-t.y),l=Math.abs(a.bottom-t.y),o=Math.abs(a.right-t.x),u=Math.abs(a.left-t.x);switch(Math.min(s,l,o,u)){case u:return"left";case o:return"right";case s:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function R3(t,a,s=5){const l=[];switch(a){case"top":l.push({x:t.x-s,y:t.y+s},{x:t.x+s,y:t.y+s});break;case"bottom":l.push({x:t.x-s,y:t.y-s},{x:t.x+s,y:t.y-s});break;case"left":l.push({x:t.x+s,y:t.y-s},{x:t.x+s,y:t.y+s});break;case"right":l.push({x:t.x-s,y:t.y-s},{x:t.x-s,y:t.y+s});break}return l}function M3(t){const{top:a,right:s,bottom:l,left:o}=t;return[{x:o,y:a},{x:s,y:a},{x:s,y:l},{x:o,y:l}]}function z3(t,a){const{x:s,y:l}=t;let o=!1;for(let u=0,d=a.length-1;u<a.length;d=u++){const f=a[u],p=a[d],g=f.x,y=f.y,x=p.x,S=p.y;y>l!=S>l&&s<(x-g)*(l-y)/(S-y)+g&&(o=!o)}return o}function P3(t){const a=t.slice();return a.sort((s,l)=>s.x<l.x?-1:s.x>l.x?1:s.y<l.y?-1:s.y>l.y?1:0),U3(a)}function U3(t){if(t.length<=1)return t.slice();const a=[];for(let l=0;l<t.length;l++){const o=t[l];for(;a.length>=2;){const u=a[a.length-1],d=a[a.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))a.pop();else break}a.push(o)}a.pop();const s=[];for(let l=t.length-1;l>=0;l--){const o=t[l];for(;s.length>=2;){const u=s[s.length-1],d=s[s.length-2];if((u.x-d.x)*(o.y-d.y)>=(u.y-d.y)*(o.x-d.x))s.pop();else break}s.push(o)}return s.pop(),a.length===1&&s.length===1&&a[0].x===s[0].x&&a[0].y===s[0].y?a:a.concat(s)}var B3=f2;function g2(t){var a,s,l="";if(typeof t=="string"||typeof t=="number")l+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(a=0;a<o;a++)t[a]&&(s=g2(t[a]))&&(l&&(l+=" "),l+=s)}else for(s in t)t[s]&&(l&&(l+=" "),l+=s);return l}function x2(){for(var t,a,s=0,l="",o=arguments.length;s<o;s++)(t=arguments[s])&&(a=g2(t))&&(l&&(l+=" "),l+=a);return l}const Gp="-",L3=t=>{const a=q3(t),{conflictingClassGroups:s,conflictingClassGroupModifiers:l}=t;return{getClassGroupId:d=>{const f=d.split(Gp);return f[0]===""&&f.length!==1&&f.shift(),y2(f,a)||H3(d)},getConflictingClassGroupIds:(d,f)=>{const p=s[d]||[];return f&&l[d]?[...p,...l[d]]:p}}},y2=(t,a)=>{if(t.length===0)return a.classGroupId;const s=t[0],l=a.nextPart.get(s),o=l?y2(t.slice(1),l):void 0;if(o)return o;if(a.validators.length===0)return;const u=t.join(Gp);return a.validators.find(({validator:d})=>d(u))?.classGroupId},lv=/^\[(.+)\]$/,H3=t=>{if(lv.test(t)){const a=lv.exec(t)[1],s=a?.substring(0,a.indexOf(":"));if(s)return"arbitrary.."+s}},q3=t=>{const{theme:a,classGroups:s}=t,l={nextPart:new Map,validators:[]};for(const o in s)op(s[o],l,o,a);return l},op=(t,a,s,l)=>{t.forEach(o=>{if(typeof o=="string"){const u=o===""?a:ov(a,o);u.classGroupId=s;return}if(typeof o=="function"){if(I3(o)){op(o(l),a,s,l);return}a.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([u,d])=>{op(d,ov(a,u),s,l)})})},ov=(t,a)=>{let s=t;return a.split(Gp).forEach(l=>{s.nextPart.has(l)||s.nextPart.set(l,{nextPart:new Map,validators:[]}),s=s.nextPart.get(l)}),s},I3=t=>t.isThemeGetter,Q3=t=>{if(t<1)return{get:()=>{},set:()=>{}};let a=0,s=new Map,l=new Map;const o=(u,d)=>{s.set(u,d),a++,a>t&&(a=0,l=s,s=new Map)};return{get(u){let d=s.get(u);if(d!==void 0)return d;if((d=l.get(u))!==void 0)return o(u,d),d},set(u,d){s.has(u)?s.set(u,d):o(u,d)}}},ip="!",cp=":",G3=cp.length,V3=t=>{const{prefix:a,experimentalParseClassName:s}=t;let l=o=>{const u=[];let d=0,f=0,p=0,g;for(let j=0;j<o.length;j++){let v=o[j];if(d===0&&f===0){if(v===cp){u.push(o.slice(p,j)),p=j+G3;continue}if(v==="/"){g=j;continue}}v==="["?d++:v==="]"?d--:v==="("?f++:v===")"&&f--}const y=u.length===0?o:o.substring(p),x=F3(y),S=x!==y,C=g&&g>p?g-p:void 0;return{modifiers:u,hasImportantModifier:S,baseClassName:x,maybePostfixModifierPosition:C}};if(a){const o=a+cp,u=l;l=d=>d.startsWith(o)?u(d.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(s){const o=l;l=u=>s({className:u,parseClassName:o})}return l},F3=t=>t.endsWith(ip)?t.substring(0,t.length-1):t.startsWith(ip)?t.substring(1):t,Y3=t=>{const a=Object.fromEntries(t.orderSensitiveModifiers.map(l=>[l,!0]));return l=>{if(l.length<=1)return l;const o=[];let u=[];return l.forEach(d=>{d[0]==="["||a[d]?(o.push(...u.sort(),d),u=[]):u.push(d)}),o.push(...u.sort()),o}},K3=t=>({cache:Q3(t.cacheSize),parseClassName:V3(t),sortModifiers:Y3(t),...L3(t)}),X3=/\s+/,$3=(t,a)=>{const{parseClassName:s,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:u}=a,d=[],f=t.trim().split(X3);let p="";for(let g=f.length-1;g>=0;g-=1){const y=f[g],{isExternal:x,modifiers:S,hasImportantModifier:C,baseClassName:j,maybePostfixModifierPosition:v}=s(y);if(x){p=y+(p.length>0?" "+p:p);continue}let E=!!v,N=l(E?j.substring(0,v):j);if(!N){if(!E){p=y+(p.length>0?" "+p:p);continue}if(N=l(j),!N){p=y+(p.length>0?" "+p:p);continue}E=!1}const D=u(S).join(":"),O=C?D+ip:D,k=O+N;if(d.includes(k))continue;d.push(k);const U=o(N,E);for(let R=0;R<U.length;++R){const T=U[R];d.push(O+T)}p=y+(p.length>0?" "+p:p)}return p};function J3(){let t=0,a,s,l="";for(;t<arguments.length;)(a=arguments[t++])&&(s=v2(a))&&(l&&(l+=" "),l+=s);return l}const v2=t=>{if(typeof t=="string")return t;let a,s="";for(let l=0;l<t.length;l++)t[l]&&(a=v2(t[l]))&&(s&&(s+=" "),s+=a);return s};function Z3(t,...a){let s,l,o,u=d;function d(p){const g=a.reduce((y,x)=>x(y),t());return s=K3(g),l=s.cache.get,o=s.cache.set,u=f,f(p)}function f(p){const g=l(p);if(g)return g;const y=$3(p,s);return o(p,y),y}return function(){return u(J3.apply(null,arguments))}}const Ct=t=>{const a=s=>s[t]||[];return a.isThemeGetter=!0,a},b2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W3=/^\d+\/\d+$/,e5=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t5=/\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$/,n5=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,a5=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,r5=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ws=t=>W3.test(t),Re=t=>!!t&&!Number.isNaN(Number(t)),dr=t=>!!t&&Number.isInteger(Number(t)),Zf=t=>t.endsWith("%")&&Re(t.slice(0,-1)),Ta=t=>e5.test(t),s5=()=>!0,l5=t=>t5.test(t)&&!n5.test(t),S2=()=>!1,o5=t=>a5.test(t),i5=t=>r5.test(t),c5=t=>!ge(t)&&!xe(t),u5=t=>wl(t,N2,S2),ge=t=>b2.test(t),Vr=t=>wl(t,E2,l5),Wf=t=>wl(t,h5,Re),iv=t=>wl(t,C2,S2),d5=t=>wl(t,j2,i5),yc=t=>wl(t,A2,o5),xe=t=>w2.test(t),bo=t=>Sl(t,E2),f5=t=>Sl(t,g5),cv=t=>Sl(t,C2),m5=t=>Sl(t,N2),p5=t=>Sl(t,j2),vc=t=>Sl(t,A2,!0),wl=(t,a,s)=>{const l=b2.exec(t);return l?l[1]?a(l[1]):s(l[2]):!1},Sl=(t,a,s=!1)=>{const l=w2.exec(t);return l?l[1]?a(l[1]):s:!1},C2=t=>t==="position"||t==="percentage",j2=t=>t==="image"||t==="url",N2=t=>t==="length"||t==="size"||t==="bg-size",E2=t=>t==="length",h5=t=>t==="number",g5=t=>t==="family-name",A2=t=>t==="shadow",x5=()=>{const t=Ct("color"),a=Ct("font"),s=Ct("text"),l=Ct("font-weight"),o=Ct("tracking"),u=Ct("leading"),d=Ct("breakpoint"),f=Ct("container"),p=Ct("spacing"),g=Ct("radius"),y=Ct("shadow"),x=Ct("inset-shadow"),S=Ct("text-shadow"),C=Ct("drop-shadow"),j=Ct("blur"),v=Ct("perspective"),E=Ct("aspect"),N=Ct("ease"),D=Ct("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...k(),xe,ge],R=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],M=()=>[xe,ge,p],H=()=>[Ws,"full","auto",...M()],V=()=>[dr,"none","subgrid",xe,ge],q=()=>["auto",{span:["full",dr,xe,ge]},dr,xe,ge],F=()=>[dr,"auto",xe,ge],W=()=>["auto","min","max","fr",xe,ge],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...M()],G=()=>[Ws,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],L=()=>[t,xe,ge],oe=()=>[...k(),cv,iv,{position:[xe,ge]}],Y=()=>["no-repeat",{repeat:["","x","y","space","round"]}],_=()=>["auto","cover","contain",m5,u5,{size:[xe,ge]}],K=()=>[Zf,bo,Vr],I=()=>["","none","full",g,xe,ge],J=()=>["",Re,bo,Vr],le=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Re,Zf,cv,iv],ce=()=>["","none",j,xe,ge],pe=()=>["none",Re,xe,ge],we=()=>["none",Re,xe,ge],ye=()=>[Re,xe,ge],ue=()=>[Ws,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ta],breakpoint:[Ta],color:[s5],container:[Ta],"drop-shadow":[Ta],ease:["in","out","in-out"],font:[c5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ta],shadow:[Ta],spacing:["px",Re],text:[Ta],"text-shadow":[Ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ws,ge,xe,E]}
vendor: 14,319 bytes, line 49
49],container:["container"],columns:[{columns:[Re,ge,xe,f]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:U()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{start:H()}],end:[{end:H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[dr,"auto",xe,ge]}],basis:[{basis:[Ws,"full","auto",f,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Re,Ws,"auto","initial","none",ge]}],grow:[{grow:["",Re,xe,ge]}],shrink:[{shrink:["",Re,xe,ge]}],order:[{order:[dr,"first","last","none",xe,ge]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":F()}],"col-end":[{"col-end":F()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":F()}],"row-end":[{"row-end":F()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],w:[{w:[f,"screen",...G()]}],"min-w":[{"min-w":[f,"screen","none",...G()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[d]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",s,bo,Vr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,xe,Wf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zf,ge]}],"font-family":[{font:[f5,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:[o,xe,ge]}],"line-clamp":[{"line-clamp":[Re,"none",xe,Wf]}],leading:[{leading:[u,...M()]}],"list-image":[{"list-image":["none",xe,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",xe,Vr]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Re,"auto",xe,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,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",xe,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:oe()}],"bg-repeat":[{bg:Y()}],"bg-size":[{bg:_()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},dr,xe,ge],radial:["",xe,ge],conic:[dr,xe,ge]},p5,d5]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:K()}],"gradient-via-pos":[{via:K()}],"gradient-to-pos":[{to:K()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,xe,ge]}],"outline-w":[{outline:["",Re,bo,Vr]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",y,vc,yc]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",x,vc,yc]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Re,Vr]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",S,vc,yc]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Re,xe,ge]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"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":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[xe,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:Y()}],"mask-size":[{mask:_()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,ge]}],filter:[{filter:["","none",xe,ge]}],blur:[{blur:ce()}],brightness:[{brightness:[Re,xe,ge]}],contrast:[{contrast:[Re,xe,ge]}],"drop-shadow":[{"drop-shadow":["","none",C,vc,yc]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Re,xe,ge]}],"hue-rotate":[{"hue-rotate":[Re,xe,ge]}],invert:[{invert:["",Re,xe,ge]}],saturate:[{saturate:[Re,xe,ge]}],sepia:[{sepia:["",Re,xe,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,ge]}],"backdrop-blur":[{"backdrop-blur":ce()}],"backdrop-brightness":[{"backdrop-brightness":[Re,xe,ge]}],"backdrop-contrast":[{"backdrop-contrast":[Re,xe,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,xe,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,xe,ge]}],"backdrop-invert":[{"backdrop-invert":["",Re,xe,ge]}],"backdrop-opacity":[{"backdrop-opacity":[Re,xe,ge]}],"backdrop-saturate":[{"backdrop-saturate":[Re,xe,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,xe,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Re,"initial",xe,ge]}],ease:[{ease:["linear","initial",N,xe,ge]}],delay:[{delay:[Re,xe,ge]}],animate:[{animate:["none",D,xe,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,xe,ge]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:we()}],"scale-x":[{"scale-x":we()}],"scale-y":[{"scale-y":we()}],"scale-z":[{"scale-z":we()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[xe,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ue()}],"translate-x":[{"translate-x":ue()}],"translate-y":[{"translate-y":ue()}],"translate-z":[{"translate-z":ue()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"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",xe,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":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"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"]}
49],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",xe,ge]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Re,bo,Vr,Wf]}],stroke:[{stroke:["none",...L()]}],"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"]}},y5=Z3(x5);function Ce(...t){return y5(x2(t))}function v5({delayDuration:t=0,...a}){return c.jsx(B3,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:t,...a})}function b5(t,a){if(t instanceof RegExp)return{keys:!1,pattern:t};var s,l,o,u,d=[],f="",p=t.split("/");for(p[0]||p.shift();o=p.shift();)s=o[0],s==="*"?(d.push(s),f+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(l=o.indexOf("?",1),u=o.indexOf(".",1),d.push(o.substring(1,~l?l:~u?u:o.length)),f+=~l&&!~u?"(?:/([^/]+?))?":"/([^/]+?)",~u&&(f+=(~l?"?":"")+"\\"+o.substring(u))):f+="/"+o;return{keys:d,pattern:new RegExp("^"+f+(a?"(?=$|/)":"/?$"),"i")}}var em={exports:{}},tm={};/**
50 * @license React
51 * use-sync-external-store-shim.production.js
52 *
53 * Copyright (c) Meta Platforms, Inc. and affiliates.
54 *
55 * This source code is licensed under the MIT license found in the
56 * LICENSE file in the root directory of this source tree.
57 */var uv;function w5(){if(uv)return tm;uv=1;var t=Zc();function a(x,S){return x===S&&(x!==0||1/x===1/S)||x!==x&&S!==S}var s=typeof Object.is=="function"?Object.is:a,l=t.useState,o=t.useEffect,u=t.useLayoutEffect,d=t.useDebugValue;function f(x,S){var C=S(),j=l({inst:{value:C,getSnapshot:S}}),v=j[0].inst,E=j[1];return u(function(){v.value=C,v.getSnapshot=S,p(v)&&E({inst:v})},[x,C,S]),o(function(){return p(v)&&E({inst:v}),x(function(){p(v)&&E({inst:v})})},[x]),d(C),C}function p(x){var S=x.getSnapshot;x=x.value;try{var C=S();return!s(x,C)}catch{return!0}}function g(x,S){return S()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:f;return tm.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:y,tm}var dv;function S5(){return dv||(dv=1,em.exports=w5()),em.exports}var C5=S5();const j5=Wc.useInsertionEffect,N5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",E5=N5?w.useLayoutEffect:w.useEffect,A5=j5||E5,O2=t=>{const a=w.useRef([t,(...s)=>a[0](...s)]).current;return A5(()=>{a[0]=t}),a[1]},O5="popstate",Vp="pushState",Fp="replaceState",T5="hashchange",fv=[O5,Vp,Fp,T5],D5=t=>{for(const a of fv)addEventListener(a,t);return()=>{for(const a of fv)removeEventListener(a,t)}},T2=(t,a)=>C5.useSyncExternalStore(D5,t,a),_5=()=>location.search,k5=({ssrSearch:t=""}={})=>T2(_5,()=>t),mv=()=>location.pathname,R5=({ssrPath:t}={})=>T2(mv,t?()=>t:mv),M5=(t,{replace:a=!1,state:s=null}={})=>history[a?Fp:Vp](s,"",t),z5=(t={})=>[R5(t),M5],pv=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[pv]>"u"){for(const t of[Vp,Fp]){const a=history[t];history[t]=function(){const s=a.apply(this,arguments),l=new Event(t);return l.arguments=arguments,dispatchEvent(l),s}}Object.defineProperty(window,pv,{value:!0})}const P5=(t,a)=>a.toLowerCase().indexOf(t.toLowerCase())?"~"+a:a.slice(t.length)||"/",D2=(t="")=>t==="/"?"":t,U5=(t,a)=>t[0]==="~"?t.slice(1):D2(a)+t,B5=(t="",a)=>P5(up(D2(t)),up(a)),L5=t=>t[0]==="?"?t.slice(1):t,up=t=>{try{return decodeURI(t)}catch{return t}},H5=t=>up(L5(t)),_2={hook:z5,searchHook:k5,parser:b5,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:t=>t},k2=w.createContext(_2),is=()=>w.useContext(k2),R2={},M2=w.createContext(R2),pu=()=>w.useContext(M2),hu=t=>{const[a,s]=t.hook(t);return[B5(t.base,a),O2((l,o)=>s(U5(l,t.base),o))]},gu=()=>hu(is()),q5=()=>{const t=is();return H5(t.searchHook(t))},Yp=(t,a,s,l)=>{const{pattern:o,keys:u}=a instanceof RegExp?{keys:!1,pattern:a}:t(a||"*",l),d=o.exec(s)||[],[f,...p]=d;return f!==void 0?[!0,(()=>{const g=u!==!1?Object.fromEntries(u.map((x,S)=>[x,p[S]])):d.groups;let y={...p};return g&&Object.assign(y,g),y})(),...l?[f]:[]]:[!1,null]},I5=t=>Yp(is().parser,t,gu()[0]),Q5=({children:t,...a})=>{const s=is(),l=a.hook?_2:s;let o=l;const[u,d]=a.ssrPath?.split("?")??[];d&&(a.ssrSearch=d,a.ssrPath=u),a.hrefs=a.hrefs??a.hook?.hrefs;let f=w.useRef({}),p=f.current,g=p;for(let y in l){const x=y==="base"?l[y]+(a[y]||""):a[y]||l[y];p===g&&x!==g[y]&&(f.current=g={...g}),g[y]=x,(x!==l[y]||x!==o[y])&&(o=g)}return w.createElement(k2.Provider,{value:o,children:t})},hv=({children:t,component:a},s)=>a?w.createElement(a,{params:s}):typeof t=="function"?t(s):t,G5=t=>{let a=w.useRef(R2);const s=a.current;return a.current=Object.keys(t).length!==Object.keys(s).length||Object.entries(t).some(([l,o])=>o!==s[l])?t:s},Tt=({path:t,nest:a,match:s,...l})=>{const o=is(),[u]=hu(o),[d,f,p]=s??Yp(o.parser,t,u,a),g=G5({...pu(),...f});if(!d)return null;const y=p?w.createElement(Q5,{base:p},hv(l,g)):hv(l,g);return w.createElement(M2.Provider,{value:g,children:y})},Ee=w.forwardRef((t,a)=>{const s=is(),[l,o]=hu(s),{to:u="",href:d=u,onClick:f,asChild:p,children:g,className:y,replace:x,state:S,...C}=t,j=O2(E=>{E.ctrlKey||E.metaKey||E.altKey||E.shiftKey||E.button!==0||(f?.(E),E.defaultPrevented||(E.preventDefault(),o(d,t)))}),v=s.hrefs(d[0]==="~"?d.slice(1):s.base+d,s);return p&&w.isValidElement(g)?w.cloneElement(g,{onClick:j,href:v}):w.createElement("a",{...C,onClick:j,href:v,className:y?.call?y(l===d):y,children:g,ref:a})}),dp=t=>Array.isArray(t)?t.flatMap(a=>dp(a&&a.type===w.Fragment?a.props.children:a)):[t],V5=({children:t,location:a})=>{const s=is(),[l]=hu(s);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),dp(t).forEach(u=>{if(w.isValidElement(u)&&u.props.path){const d=u.props.path;window.__WOUTER_ROUTES__.includes(d)||window.__WOUTER_ROUTES__.push(d)}}));for(const o of dp(t)){let u=0;if(w.isValidElement(o)&&(u=Yp(s.parser,o.props.path,a||l,o.props.nest))[0])return w.cloneElement(o,{match:u})}return null},gv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,xv=x2,z2=(t,a)=>s=>{var l;if(a?.variants==null)return xv(t,s?.class,s?.className);const{variants:o,defaultVariants:u}=a,d=Object.keys(o).map(g=>{const y=s?.[g],x=u?.[g];if(y===null)return null;const S=gv(y)||gv(x);return o[g][S]}),f=s&&Object.entries(s).reduce((g,y)=>{let[x,S]=y;return S===void 0||(g[x]=S),g},{}),p=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((g,y)=>{let{class:x,className:S,...C}=y;return Object.entries(C).every(j=>{let[v,E]=j;return Array.isArray(E)?E.includes({...u,...f}[v]):{...u,...f}[v]===E})?[...g,x,S]:g},[]);return xv(t,d,p,s?.class,s?.className)},Kp=z2("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 be({className:t,variant:a,size:s,asChild:l=!1,...o}){const u=l?k1:"button";return c.jsx(u,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:Ce(Kp({variant:a,size:s,className:t})),...o})}function Gc(){return c.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:6",className:"min-h-[70vh] flex items-center justify-center px-4 pt-24",children:c.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:7",className:"text-center max-w-md",children:[c.jsx("p",{"data-loc":"client/src/pages/NotFound.tsx:8",className:"font-display text-7xl bg-gradient-brand bg-clip-text text-transparent",children:"404"}),c.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:11",className:"mt-4 font-display text-3xl",children:"This page slipped the setting"}),c.jsx("p",{"data-loc":"client/src/pages/NotFound.tsx:12",className:"mt-3 text-muted-foreground",children:"The piece you're looking for has moved or never existed. Let's find you something worth keeping."}),c.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:16",className:"mt-8 flex justify-center gap-3",children:[c.jsx(be,{"data-loc":"client/src/pages/NotFound.tsx:17",asChild:!0,className:"bg-gradient-brand text-white",children:c.jsx(Ee,{"data-loc":"client/src/pages/NotFound.tsx:18",href:"/",children:"Return Home"})}),c.jsx(be,{"data-loc":"client/src/pages/NotFound.tsx:20",asChild:!0,variant:"outline",children:c.jsx(Ee,{"data-loc":"client/src/pages/NotFound.tsx:21",href:"/jewelry",children:"Browse Jewelry"})})]})]})})}/**
58 * @license lucide-react v0.453.0 - ISC
59 *
60 * This source code is licensed under the ISC license.
61 * See the LICENSE file in the root directory of this source tree.
62 */const F5=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),P2=(...t)=>t.filter((a,s,l)=>!!a&&l.indexOf(a)===s).join(" ");/**
63 * @license lucide-react v0.453.0 - ISC
64 *
65 * This source code is licensed under the ISC license.
66 * See the LICENSE file in the root directory of this source tree.
67 */var Y5={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"};/**
68 * @license lucide-react v0.453.0 - ISC
69 *
70 * This source code is licensed under the ISC license.
71 * See the LICENSE file in the root directory of this source tree.
72 */const K5=w.forwardRef(({color:t="currentColor",size:a=24,strokeWidth:s=2,absoluteStrokeWidth:l,className:o="",children:u,iconNode:d,...f},p)=>w.createElement("svg",{ref:p,...Y5,width:a,height:a,stroke:t,strokeWidth:l?Number(s)*24/Number(a):s,className:P2("lucide",o),...f},[...d.map(([g,y])=>w.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
73 * @license lucide-react v0.453.0 - ISC
74 *
75 * This source code is licensed under the ISC license.
76 * See the LICENSE file in the root directory of this source tree.
77 */const je=(t,a)=>{const s=w.forwardRef(({className:l,...o},u)=>w.createElement(K5,{ref:u,iconNode:a,className:P2(`lucide-${F5(t)}`,l),...o}));return s.displayName=`${t}`,s};/**
78 * @license lucide-react v0.453.0 - ISC
79 *
80 * This source code is licensed under the ISC license.
81 * See the LICENSE file in the root directory of this source tree.
82 */const Cl=je("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
83 * @license lucide-react v0.453.0 - ISC
84 *
85 * This source code is licensed under the ISC license.
86 * See the LICENSE file in the root directory of this source tree.
87 */const Rn=je("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
88 * @license lucide-react v0.453.0 - ISC
89 *
90 * This source code is licensed under the ISC license.
91 * See the LICENSE file in the root directory of this source tree.
92 */const nm=je("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
93 * @license lucide-react v0.453.0 - ISC
94 *
95 * This source code is licensed under the ISC license.
96 * See the LICENSE file in the root directory of this source tree.
97 */const X5=je("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"}]]);/**
98 * @license lucide-react v0.453.0 - ISC
99 *
100 * This source code is licensed under the ISC license.
101 * See the LICENSE file in the root directory of this source tree.
102 */const $5=je("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"}]]);/**
103 * @license lucide-react v0.453.0 - ISC
104 *
105 * This source code is licensed under the ISC license.
106 * See the LICENSE file in the root directory of this source tree.
107 */const yl=je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
108 * @license lucide-react v0.453.0 - ISC
109 *
110 * This source code is licensed under the ISC license.
111 * See the LICENSE file in the root directory of this source tree.
112 */const Vc=je("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
113 * @license lucide-react v0.453.0 - ISC
114 *
115 * This source code is licensed under the ISC license.
116 * See the LICENSE file in the root directory of this source tree.
117 */const J5=je("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
118 * @license lucide-react v0.453.0 - ISC
119 *
120 * This source code is licensed under the ISC license.
121 * See the LICENSE file in the root directory of this source tree.
122 */const Z5=je("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
123 * @license lucide-react v0.453.0 - ISC
124 *
125 * This source code is licensed under the ISC license.
126 * See the LICENSE file in the root directory of this source tree.
127 */const W5=je("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
128 * @license lucide-react v0.453.0 - ISC
129 *
130 * This source code is licensed under the ISC license.
131 * See the LICENSE file in the root directory of this source tree.
132 */co
132nst eT=je("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
133 * @license lucide-react v0.453.0 - ISC
134 *
135 * This source code is licensed under the ISC license.
136 * See the LICENSE file in the root directory of this source tree.
137 */const tT=je("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
138 * @license lucide-react v0.453.0 - ISC
139 *
140 * This source code is licensed under the ISC license.
141 * See the LICENSE file in the root directory of this source tree.
142 */const nT=je("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
143 * @license lucide-react v0.453.0 - ISC
144 *
145 * This source code is licensed under the ISC license.
146 * See the LICENSE file in the root directory of this source tree.
147 */const yv=je("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
148 * @license lucide-react v0.453.0 - ISC
149 *
150 * This source code is licensed under the ISC license.
151 * See the LICENSE file in the root directory of this source tree.
152 */const aT=je("Earth",[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
153 * @license lucide-react v0.453.0 - ISC
154 *
155 * This source code is licensed under the ISC license.
156 * See the LICENSE file in the root directory of this source tree.
157 */const rT=je("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
158 * @license lucide-react v0.453.0 - ISC
159 *
160 * This source code is licensed under the ISC license.
161 * See the LICENSE file in the root directory of this source tree.
162 */const sT=je("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
163 * @license lucide-react v0.453.0 - ISC
164 *
165 * This source code is licensed under the ISC license.
166 * See the LICENSE file in the root directory of this source tree.
167 */const U2=je("Gem",[["path",{d:"M6 3h12l4 6-10 13L2 9Z",key:"1pcd5k"}],["path",{d:"M11 3 8 9l4 13 4-13-3-6",key:"1fcu3u"}],["path",{d:"M2 9h20",key:"16fsjt"}]]);/**
168 * @license lucide-react v0.453.0 - ISC
169 *
170 * This source code is licensed under the ISC license.
171 * See the LICENSE file in the root directory of this source tree.
172 */const am=je("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"}]]);/**
173 * @license lucide-react v0.453.0 - ISC
174 *
175 * This source code is licensed under the ISC license.
176 * See the LICENSE file in the root directory of this source tree.
177 */const lT=je("Images",[["path",{d:"M18 22H4a2 2 0 0 1-2-2V6",key:"pblm9e"}],["path",{d:"m22 13-1.296-1.296a2.41 2.41 0 0 0-3.408 0L11 18",key:"nf6bnh"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["rect",{width:"16",height:"16",x:"6",y:"2",rx:"2",key:"12espp"}]]);/**
178 * @license lucide-react v0.453.0 - ISC
179 *
180 * This source code is licensed under the ISC license.
181 * See the LICENSE file in the root directory of this source tree.
182 */const oT=je("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
183 * @license lucide-react v0.453.0 - ISC
184 *
185 * This source code is licensed under the ISC license.
186 * See the LICENSE file in the root directory of this source tree.
187 */const Hn=je("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
188 * @license lucide-react v0.453.0 - ISC
189 *
190 * This source code is licensed under the ISC license.
191 * See the LICENSE file in the root directory of this source tree.
192 */const rm=je("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"}]]);/**
193 * @license lucide-react v0.453.0 - ISC
194 *
195 * This source code is licensed under the ISC license.
196 * See the LICENSE file in the root directory of this source tree.
197 */const iT=je("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]);/**
198 * @license lucide-react v0.453.0 - ISC
199 *
200 * This source code is licensed under the ISC license.
201 * See the LICENSE file in the root directory of this source tree.
202 */const Xp=je("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"}]]);/**
203 * @license lucide-react v0.453.0 - ISC
204 *
205 * This source code is licensed under the ISC license.
206 * See the LICENSE file in the root directory of this source tree.
207 */const cT=je("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"}]]);/**
208 * @license lucide-react v0.453.0 - ISC
209 *
210 * This source code is licensed under the ISC license.
211 * See the LICENSE file in the root directory of this source tree.
212 */const uT=je("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"}]]);/**
213 * @license lucide-react v0.453.0 - ISC
214 *
215 * This source code is licensed under the ISC license.
216 * See the LICENSE file in the root directory of this source tree.
217 */const B2=je("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
218 * @license lucide-react v0.453.0 - ISC
219 *
220 * This source code is licensed under the ISC license.
221 * See the LICENSE file in the root directory of this source tree.
222 */const dT=je("PackageCheck",[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
223 * @license lucide-react v0.453.0 - ISC
224 *
225 * This source code is licensed under the ISC license.
226 * See the LICENSE file in the root directory of this source tree.
227 */const fT=je("PackageX",[["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}],["path",{d:"m17 13 5 5m-5 0 5-5",key:"im3w4b"}]]);/**
228 * @license lucide-react v0.453.0 - ISC
229 *
230 * This source code is licensed under the ISC license.
231 * See the LICENSE file in the root directory of this source tree.
232 */const Fc=je("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
233 * @license lucide-react v0.453.0 - ISC
234 *
235 * This source code is licensed under the ISC license.
236 * See the LICENSE file in the root directory of this source tree.
237 */const L2=je("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
238 * @license lucide-react v0.453.0 - ISC
239 *
240 * This source code is licensed under the ISC license.
241 * See the LICENSE file in the root directory of this source tree.
242 */const $p=je("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"}]]);/**
243 * @license lucide-react v0.453.0 - ISC
244 *
245 * This source code is licensed under the ISC license.
246 * See the LICENSE file in the root directory of this source tree.
247 */const mT=je("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"}]]);/**
248 * @license lucide-react v0.453.0 - ISC
249 *
250 * This source code is licensed under the ISC license.
251 * See the LICENSE file in the root directory of this source tree.
252 */const Jo=je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
253 * @license lucide-react v0.453.0 - ISC
254 *
255 * This source code is licensed under the ISC license.
256 * See the LICENSE file in the root directory of this source tree.
257 */const pT=je("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
258 * @license lucide-react v0.453.0 - ISC
259 *
260 * This source code is licensed under the ISC license.
261 * See the LICENSE file in the root directory of this source tree.
262 */const hT=je("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
263 * @license lucide-react v0.453.0 - ISC
264 *
265 * This source code is licensed under the ISC license.
266 * See the LICENSE file in the root directory of this source tree.
267 */const gT=je("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"}]]);/**
268 * @license lucide-react v0.453.0 - ISC
269 *
270 * This source code is licensed under the ISC license.
271 * See the LICENSE file in the root directory of this source tree.
272 */const xT=je("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"}]]);/**
273 * @license lucide-react v0.453.0 - ISC
274 *
275 * This source code is licensed under the ISC license.
276 * See the LICENSE file in the root directory of this source tree.
277 */const vv=je("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"}]]);/**
278 * @license lucide-react v0.453.0 - ISC
279 *
280 * This source code is licensed under the ISC license.
281 * See the LICENSE file in the root directory of this source tree.
282 */const bv=je("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
282y:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
283 * @license lucide-react v0.453.0 - ISC
284 *
285 * This source code is licensed under the ISC license.
286 * See the LICENSE file in the root directory of this source tree.
287 */const fp=je("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
288 * @license lucide-react v0.453.0 - ISC
289 *
290 * This source code is licensed under the ISC license.
291 * See the LICENSE file in the root directory of this source tree.
292 */const H2=je("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
293 * @license lucide-react v0.453.0 - ISC
294 *
295 * This source code is licensed under the ISC license.
296 * See the LICENSE file in the root directory of this source tree.
297 */const Jp=je("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
298 * @license lucide-react v0.453.0 - ISC
299 *
300 * This source code is licensed under the ISC license.
301 * See the LICENSE file in the root directory of this source tree.
302 */const yT=je("StarOff",[["path",{d:"M8.34 8.34 2 9.27l5 4.87L5.82 21 12 17.77 18.18 21l-.59-3.43",ke
302y:"16m0ql"}],["path",{d:"M18.42 12.76 22 9.27l-6.91-1L12 2l-1.44 2.91",key:"1vt8nq"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
303 * @license lucide-react v0.453.0 - ISC
304 *
305 * This source code is licensed under the ISC license.
306 * See the LICENSE file in the root directory of this source tree.
307 */const q2=je("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
308 * @license lucide-react v0.453.0 - ISC
309 *
310 * This source code is licensed under the ISC license.
311 * See the LICENSE file in the root directory of this source tree.
312 */const I2=je("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"}]]);/**
313 * @license lucide-react v0.453.0 - ISC
314 *
315 * This source code is licensed under the ISC license.
316 * See the LICENSE file in the root directory of this source tree.
317 */const vT=je("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"}]]);/**
318 * @license lucide-react v0.453.0 - ISC
319 *
320 * This source code is licensed under the ISC license.
321 * See the LICENSE file in the root directory of this source tree.
322 */const Lo=je("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"}]]);/**
323 * @license lucide-react v0.453.0 - ISC
324 *
325 * This source code is licensed under the ISC license.
326 * See the LICENSE file in the root directory of this source tree.
327 */const bT=je("Twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);/**
328 * @license lucide-react v0.453.0 - ISC
329 *
330 * This source code is licensed under the ISC license.
331 * See the LICENSE file in the root directory of this source tree.
332 */const wT=je("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"}]]);/**
333 * @license lucide-react v0.453.0 - ISC
334 *
335 * This source code is licensed under the ISC license.
336 * See the LICENSE file in the root directory of this source tree.
337 */const Wr=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class ST 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?c.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:c.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[c.jsx(vT,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),c.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),c.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:c.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),c.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:Ce("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[c.jsx(gT,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}var sm="focusScope.autoFocusOnMount",lm="focusScope.autoFocusOnUnmount",wv={bubbles:!1,cancelable:!0},CT="FocusScope",Zp=w.forwardRef((t,a)=>
vendor: 12,181 bytes, lines 337-377
337{const{loop:s=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:u,...d}=t,[f,p]=w.useState(null),g=Jr(o),y=Jr(u),x=w.useRef(null),S=Fe(a,v=>p(v)),C=w.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;w.useEffect(()=>{if(l){let v=function(O){if(C.paused||!f)return;const k=O.target;f.contains(k)?x.current=k:mr(x.current,{select:!0})},E=function(O){if(C.paused||!f)return;const k=O.relatedTarget;k!==null&&(f.contains(k)||mr(x.current,{select:!0}))},N=function(O){if(document.activeElement===document.body)for(const U of O)U.removedNodes.length>0&&mr(f)};document.addEventListener("focusin",v),document.addEventListener("focusout",E);const D=new MutationObserver(N);return f&&D.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",E),D.disconnect()}}},[l,f,C.paused]),w.useEffect(()=>{if(f){Cv.add(C);const v=document.activeElement;if(!f.contains(v)){const N=new CustomEvent(sm,wv);f.addEventListener(sm,g),f.dispatchEvent(N),N.defaultPrevented||(jT(TT(Q2(f)),{select:!0}),document.activeElement===v&&mr(f))}return()=>{f.removeEventListener(sm,g),setTimeout(()=>{const N=new CustomEvent(lm,wv);f.addEventListener(lm,y),f.dispatchEvent(N),N.defaultPrevented||mr(v??document.body,{select:!0}),f.removeEventListener(lm,y),Cv.remove(C)},0)}}},[f,g,y,C]);const j=w.useCallback(v=>{if(!s&&!l||C.paused)return;const E=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,N=document.activeElement;if(E&&N){const D=v.currentTarget,[O,k]=NT(D);O&&k?!v.shiftKey&&N===k?(v.preventDefault(),s&&mr(O,{select:!0})):v.shiftKey&&N===O&&(v.preventDefault(),s&&mr(k,{select:!0})):N===D&&v.preventDefault()}},[s,l,C.paused]);return c.jsx(He.div,{tabIndex:-1,...d,ref:S,onKeyDown:j})});Zp.displayName=CT;function jT(t,{select:a=!1}={}){const s=document.activeElement;for(const l of t)if(mr(l,{select:a}),document.activeElement!==s)return}function NT(t){const a=Q2(t),s=Sv(a,t),l=Sv(a.reverse(),t);return[s,l]}function Q2(t){const a=[],s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)a.push(s.currentNode);return a}function Sv(t,a){for(const s of t)if(!ET(s,{upTo:a}))return s}function ET(t,{upTo:a}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(a!==void 0&&t===a)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function AT(t){return t instanceof HTMLInputElement&&"select"in t}function mr(t,{select:a=!1}={}){if(t&&t.focus){const s=document.activeElement;t.focus({preventScroll:!0}),t!==s&&AT(t)&&a&&t.select()}}var Cv=OT();function OT(){let t=[];return{add(a){const s=t[0];a!==s&&s?.pause(),t=jv(t,a),t.unshift(a)},remove(a){t=jv(t,a),t[0]?.resume()}}}function jv(t,a){const s=[...t],l=s.indexOf(a);return l!==-1&&s.splice(l,1),s}function TT(t){return t.filter(a=>a.tagName!=="A")}var om=0;function G2(){w.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Nv()),document.body.insertAdjacentElement("beforeend",t[1]??Nv()),om++,()=>{om===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),om--}},[])}function Nv(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var ta=function(){return ta=Object.assign||function(a){for(var s,l=1,o=arguments.length;l<o;l++){s=arguments[l];for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u])}return a},ta.apply(this,arguments)};function V2(t,a){var s={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&a.indexOf(l)<0&&(s[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(t);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(t,l[o])&&(s[l[o]]=t[l[o]]);return s}function DT(t,a,s){if(s||arguments.length===2)for(var l=0,o=a.length,u;l<o;l++)(u||!(l in a))&&(u||(u=Array.prototype.slice.call(a,0,l)),u[l]=a[l]);return t.concat(u||Array.prototype.slice.call(a))}var Mc="right-scroll-bar-position",zc="width-before-scroll-bar",_T="with-scroll-bars-hidden",kT="--removed-body-scroll-bar-size";function im(t,a){return typeof t=="function"?t(a):t&&(t.current=a),t}function RT(t,a){var s=w.useState(function(){return{value:t,callback:a,facade:{get current(){return s.value},set current(l){var o=s.value;o!==l&&(s.value=l,s.callback(l,o))}}}})[0];return s.callback=a,s.facade}var MT=typeof window<"u"?w.useLayoutEffect:w.useEffect,Ev=new WeakMap;function zT(t,a){var s=RT(null,function(l){return t.forEach(function(o){return im(o,l)})});return MT(function(){var l=Ev.get(s);if(l){var o=new Set(l),u=new Set(t),d=s.current;o.forEach(function(f){u.has(f)||im(f,null)}),u.forEach(function(f){o.has(f)||im(f,d)})}Ev.set(s,t)},[t]),s}function PT(t){return t}function UT(t,a){a===void 0&&(a=PT);var s=[],l=!1,o={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return s.length?s[s.length-1]:t},useMedium:function(u){var d=a(u,l);return s.push(d),function(){s=s.filter(function(f){return f!==d})}},assignSyncMedium:function(u){for(l=!0;s.length;){var d=s;s=[],d.forEach(u)}s={push:function(f){return u(f)},filter:function(){return s}}},assignMedium:function(u){l=!0;var d=[];if(s.length){var f=s;s=[],f.forEach(u),d=s}var p=function(){var y=d;d=[],y.forEach(u)},g=function(){return Promise.resolve().then(p)};g(),s={push:function(y){d.push(y),g()},filter:function(y){return d=d.filter(y),s}}}};return o}function BT(t){t===void 0&&(t={});var a=UT(null);return a.options=ta({async:!0,ssr:!1},t),a}var F2=function(t){var a=t.sideCar,s=V2(t,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=a.read();if(!l)throw new Error("Sidecar medium not found");return w.createElement(l,ta({},s))};F2.isSideCarExport=!0;function LT(t,a){return t.useMedium(a),F2}var Y2=BT(),cm=function(){},xu=w.forwardRef(function(t,a){var s=w.useRef(null),l=w.useState({onScrollCapture:cm,onWheelCapture:cm,onTouchMoveCapture:cm}),o=l[0],u=l[1],d=t.forwardProps,f=t.children,p=t.className,g=t.removeScrollBar,y=t.enabled,x=t.shards,S=t.sideCar,C=t.noRelative,j=t.noIsolation,v=t.inert,E=t.allowPinchZoom,N=t.as,D=N===void 0?"div":N,O=t.gapMode,k=V2(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=S,R=zT([s,a]),T=ta(ta({},k),o);return w.createElement(w.Fragment,null,y&&w.createElement(U,{sideCar:Y2,removeScrollBar:g,shards:x,noRelative:C,noIsolation:j,inert:v,setCallbacks:u,allowPinchZoom:!!E,lockRef:s,gapMode:O}),d?w.cloneElement(w.Children.only(f),ta(ta({},T),{ref:R})):w.createElement(D,ta({},T,{className:p,ref:R}),f))});xu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xu.classNames={fullWidth:zc,zeroRight:Mc};var HT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function qT(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var a=HT();return a&&t.setAttribute("nonce",a),t}function IT(t,a){t.styleSheet?t.styleSheet.cssText=a:t.appendChild(document.createTextNode(a))}function QT(t){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(t)}var GT=function(){var t=0,a=null;return{add:function(s){t==0&&(a=qT())&&(IT(a,s),QT(a)),t++},remove:function(){t--,!t&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},VT=function(){var t=GT();return function(a,s){w.useEffect(function(){return t.add(a),function(){t.remove()}},[a&&s])}},K2=function(){var t=VT(),a=function(s){var l=s.styles,o=s.dynamic;return t(l,o),null};return a},FT={left:0,top:0,right:0,gap:0},um=function(t){return parseInt(t||"",10)||0},YT=function(t){var a=window.getComputedStyle(document.body),s=a[t==="padding"?"paddingLeft":"marginLeft"],l=a[t==="padding"?"paddingTop":"marginTop"],o=a[t==="padding"?"paddingRight":"marginRight"];return[um(s),um(l),um(o)]},KT=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return FT;var a=YT(t),s=document.documentElement.clientWidth,l=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,l-s+a[2]-a[0])}},XT=K2(),ol="data-scroll-locked",$T=function(t,a,s,l){var o=t.left,u=t.top,d=t.right,f=t.gap;return s===void 0&&(s="margin"),`
338  .`.concat(_T,` {
339   overflow: hidden `).concat(l,`;
340   padding-right: `).concat(f,"px ").concat(l,`;
341  }
342  body[`).concat(ol,`] {
343    overflow: hidden `).concat(l,`;
344    overscroll-behavior: contain;
345    `).concat([a&&"position: relative ".concat(l,";"),s==="margin"&&`
346    padding-left: `.concat(o,`px;
347    padding-top: `).concat(u,`px;
348    padding-right: `).concat(d,`px;
349    margin-left:0;
350    margin-top:0;
351    margin-right: `).concat(f,"px ").concat(l,`;
352    `),s==="padding"&&"padding-right: ".concat(f,"px ").concat(l,";")].filter(Boolean).join(""),`
353  }
354  
355  .`).concat(Mc,` {
356    right: `).concat(f,"px ").concat(l,`;
357  }
358  
359  .`).concat(zc,` {
360    margin-right: `).concat(f,"px ").concat(l,`;
361  }
362  
363  .`).concat(Mc," .").concat(Mc,` {
364    right: 0 `).concat(l,`;
365  }
366  
367  .`).concat(zc," .").concat(zc,` {
368    margin-right: 0 `).concat(l,`;
369  }
370  
371  body[`).concat(ol,`] {
372    `).concat(kT,": ").concat(f,`px;
373  }
374`)},Av=function(){var t=parseInt(document.body.getAttribute(ol)||"0",10);return isFinite(t)?t:0},JT=function(){w.useEffect(function(){return document.body.setAttribute(ol,(Av()+1).toString()),function(){var t=Av()-1;t<=0?document.body.removeAttribute(ol):document.body.setAttribute(ol,t.toString())}},[])},ZT=function(t){var a=t.noRelative,s=t.noImportant,l=t.gapMode,o=l===void 0?"margin":l;JT();var u=w.useMemo(function(){return KT(o)},[o]);return w.createElement(XT,{styles:$T(u,!a,o,s?"":"!important")})},mp=!1;if(typeof window<"u")try{var bc=Object.defineProperty({},"passive",{get:function(){return mp=!0,!0}});window.addEventListener("test",bc,bc),window.removeEventListener("test",bc,bc)}catch{mp=!1}var el=mp?{passive:!1}:!1,WT=function(t){return t.tagName==="TEXTAREA"},X2=function(t,a){if(!(t instanceof Element))return!1;var s=window.getComputedStyle(t);return s[a]!=="hidden"&&!(s.overflowY===s.overflowX&&!WT(t)&&s[a]==="visible")},e6=function(t){return X2(t,"overflowY")},t6=function(t){return X2(t,"overflowX")},Ov=function(t,a){var s=a.ownerDocument,l=a;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=$2(t,l);if(o){var u=J2(t,l),d=u[1],f=u[2];if(d>f)return!0}l=l.parentNode}while(l&&l!==s.body);return!1},n6=function(t){var a=t.scrollTop,s=t.scrollHeight,l=t.clientHeight;return[a,s,l]},a6=function(t){var a=t.scrollLeft,s=t.scrollWidth,l=t.clientWidth;return[a,s,l]},$2=function(t,a){return t==="v"?e6(a):t6(a)},J2=function(t,a){return t==="v"?n6(a):a6(a)},r6=function(t,a){return t==="h"&&a==="rtl"?-1:1},s6=function(t,a,s,l,o){var u=r6(t,window.getComputedStyle(a).direction),d=u*l,f=s.target,p=a.contains(f),g=!1,y=d>0,x=0,S=0;do{if(!f)break;var C=J2(t,f),j=C[0],v=C[1],E=C[2],N=v-E-u*j;(j||N)&&$2(t,f)&&(x+=N,S+=j);var D=f.parentNode;f=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!p&&f!==document.body||p&&(a.contains(f)||a===f));return(y&&Math.abs(x)<1||!y&&Math.abs(S)<1)&&(g=!0),g},wc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Tv=function(t){return[t.deltaX,t.deltaY]},Dv=function(t){return t&&"current"in t?t.current:t},l6=function(t,a){return t[0]===a[0]&&t[1]===a[1]},o6=function(t){return`
375  .block-interactivity-`.concat(t,` {pointer-events: none;}
376  .allow-interactivity-`).concat(t,` {pointer-events: all;}
377`)},i6=0,tl=[];function c6(t){var a=w.useRef([]),s=w.useRef([0,0]),l=w.useRef(),o=w.useState(i6++)[0],u=w.useState(K2)[0],d=w.useRef(t);w.useEffect(function(){d.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));
vendor: 4,288 bytes, line 377
377var v=DT([t.lockRef.current],(t.shards||[]).map(Dv),!0).filter(Boolean);return v.forEach(function(E){return E.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var f=w.useCallback(function(v,E){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!d.current.allowPinchZoom;var N=wc(v),D=s.current,O="deltaX"in v?v.deltaX:D[0]-N[0],k="deltaY"in v?v.deltaY:D[1]-N[1],U,R=v.target,T=Math.abs(O)>Math.abs(k)?"h":"v";if("touches"in v&&T==="h"&&R.type==="range")return!1;var M=Ov(T,R);if(!M)return!0;if(M?U=T:(U=T==="v"?"h":"v",M=Ov(T,R)),!M)return!1;if(!l.current&&"changedTouches"in v&&(O||k)&&(l.current=U),!U)return!0;var H=l.current||U;return s6(H,E,v,H==="h"?O:k)},[]),p=w.useCallback(function(v){var E=v;if(!(!tl.length||tl[tl.length-1]!==u)){var N="deltaY"in E?Tv(E):wc(E),D=a.current.filter(function(U){return U.name===E.type&&(U.target===E.target||E.target===U.shadowParent)&&l6(U.delta,N)})[0];if(D&&D.should){E.cancelable&&E.preventDefault();return}if(!D){var O=(d.current.shards||[]).map(Dv).filter(Boolean).filter(function(U){return U.contains(E.target)}),k=O.length>0?f(E,O[0]):!d.current.noIsolation;k&&E.cancelable&&E.preventDefault()}}},[]),g=w.useCallback(function(v,E,N,D){var O={name:v,delta:E,target:N,should:D,shadowParent:u6(N)};a.current.push(O),setTimeout(function(){a.current=a.current.filter(function(k){return k!==O})},1)},[]),y=w.useCallback(function(v){s.current=wc(v),l.current=void 0},[]),x=w.useCallback(function(v){g(v.type,Tv(v),v.target,f(v,t.lockRef.current))},[]),S=w.useCallback(function(v){g(v.type,wc(v),v.target,f(v,t.lockRef.current))},[]);w.useEffect(function(){return tl.push(u),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:S}),document.addEventListener("wheel",p,el),document.addEventListener("touchmove",p,el),document.addEventListener("touchstart",y,el),function(){tl=tl.filter(function(v){return v!==u}),document.removeEventListener("wheel",p,el),document.removeEventListener("touchmove",p,el),document.removeEventListener("touchstart",y,el)}},[]);var C=t.removeScrollBar,j=t.inert;return w.createElement(w.Fragment,null,j?w.createElement(u,{styles:o6(o)}):null,C?w.createElement(ZT,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function u6(t){for(var a=null;t!==null;)t instanceof ShadowRoot&&(a=t.host,t=t.host),t=t.parentNode;return a}const d6=LT(Y2,c6);var Wp=w.forwardRef(function(t,a){return w.createElement(xu,ta({},t,{ref:a,sideCar:d6}))});Wp.classNames=xu.classNames;var f6=function(t){if(typeof document>"u")return null;var a=Array.isArray(t)?t[0]:t;return a.ownerDocument.body},nl=new WeakMap,Sc=new WeakMap,Cc={},dm=0,Z2=function(t){return t&&(t.host||Z2(t.parentNode))},m6=function(t,a){return a.map(function(s){if(t.contains(s))return s;var l=Z2(s);return l&&t.contains(l)?l:(console.error("aria-hidden",s,"in not contained inside",t,". Doing nothing"),null)}).filter(function(s){return!!s})},p6=function(t,a,s,l){var o=m6(a,Array.isArray(t)?t:[t]);Cc[s]||(Cc[s]=new WeakMap);var u=Cc[s],d=[],f=new Set,p=new Set(o),g=function(x){!x||f.has(x)||(f.add(x),g(x.parentNode))};o.forEach(g);var y=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(S){if(f.has(S))y(S);else try{var C=S.getAttribute(l),j=C!==null&&C!=="false",v=(nl.get(S)||0)+1,E=(u.get(S)||0)+1;nl.set(S,v),u.set(S,E),d.push(S),v===1&&j&&Sc.set(S,!0),E===1&&S.setAttribute(s,"true"),j||S.setAttribute(l,"true")}catch(N){console.error("aria-hidden: cannot operate on ",S,N)}})};return y(a),f.clear(),dm++,function(){d.forEach(function(x){var S=nl.get(x)-1,C=u.get(x)-1;nl.set(x,S),u.set(x,C),S||(Sc.has(x)||x.removeAttribute(l),Sc.delete(x)),C||x.removeAttribute(s)}),dm--,dm||(nl=new WeakMap,nl=new WeakMap,Sc=new WeakMap,Cc={})}},W2=function(t,a,s){s===void 0&&(s="data-aria-hidden");var l=Array.from(Array.isArray(t)?t:[t]),o=f6(t);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),p6(l,o,s,"aria-hidden")):function(){return null}},yu="Dialog",[ew,tw]=os(yu),[h6,Vn]=ew(yu),nw=t=>{const{__scopeDialog:a,children:s,open:l,defaultOpen:o,onOpenChange:u,modal:d=!0}
vendor: 13,345 bytes, lines 377-381
377=t,f=w.useRef(null),p=w.useRef(null),[g,y]=Qc({prop:l,defaultProp:o??!1,onChange:u,caller:yu});return c.jsx(h6,{scope:a,triggerRef:f,contentRef:p,contentId:sl(),titleId:sl(),descriptionId:sl(),open:g,onOpenChange:y,onOpenToggle:w.useCallback(()=>y(x=>!x),[y]),modal:d,children:s})};nw.displayName=yu;var aw="DialogTrigger",rw=w.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=Vn(aw,s),u=Fe(a,o.triggerRef);return c.jsx(He.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":nh(o.open),...l,ref:u,onClick:Me(t.onClick,o.onOpenToggle)})});rw.displayName=aw;var eh="DialogPortal",[g6,sw]=ew(eh,{forceMount:void 0}),lw=t=>{const{__scopeDialog:a,forceMount:s,children:l,container:o}=t,u=Vn(eh,a);return c.jsx(g6,{scope:a,forceMount:s,children:w.Children.map(l,d=>c.jsx($o,{present:s||u.open,children:c.jsx(Ip,{asChild:!0,container:o,children:d})}))})};lw.displayName=eh;var Yc="DialogOverlay",ow=w.forwardRef((t,a)=>{const s=sw(Yc,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=Vn(Yc,t.__scopeDialog);return u.modal?c.jsx($o,{present:l||u.open,children:c.jsx(y6,{...o,ref:a})}):null});ow.displayName=Yc;var x6=hl("DialogOverlay.RemoveScroll"),y6=w.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=Vn(Yc,s);return c.jsx(Wp,{as:x6,allowPinchZoom:!0,shards:[o.contentRef],children:c.jsx(He.div,{"data-state":nh(o.open),...l,ref:a,style:{pointerEvents:"auto",...l.style}})})}),es="DialogContent",iw=w.forwardRef((t,a)=>{const s=sw(es,t.__scopeDialog),{forceMount:l=s.forceMount,...o}=t,u=Vn(es,t.__scopeDialog);return c.jsx($o,{present:l||u.open,children:u.modal?c.jsx(v6,{...o,ref:a}):c.jsx(b6,{...o,ref:a})})});iw.displayName=es;var v6=w.forwardRef((t,a)=>{const s=Vn(es,t.__scopeDialog),l=w.useRef(null),o=Fe(a,s.contentRef,l);return w.useEffect(()=>{const u=l.current;if(u)return W2(u)},[]),c.jsx(cw,{...t,ref:o,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(t.onCloseAutoFocus,u=>{u.preventDefault(),s.triggerRef.current?.focus()}),onPointerDownOutside:Me(t.onPointerDownOutside,u=>{const d=u.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0;(d.button===2||f)&&u.preventDefault()}),onFocusOutside:Me(t.onFocusOutside,u=>u.preventDefault())})}),b6=w.forwardRef((t,a)=>{const s=Vn(es,t.__scopeDialog),l=w.useRef(!1),o=w.useRef(!1);return c.jsx(cw,{...t,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{t.onCloseAutoFocus?.(u),u.defaultPrevented||(l.current||s.triggerRef.current?.focus(),u.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:u=>{t.onInteractOutside?.(u),u.defaultPrevented||(l.current=!0,u.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=u.target;s.triggerRef.current?.contains(d)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&o.current&&u.preventDefault()}})}),cw=w.forwardRef((t,a)=>{const{__scopeDialog:s,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:u,...d}=t,f=Vn(es,s),p=w.useRef(null),g=Fe(a,p);return G2(),c.jsxs(c.Fragment,{children:[c.jsx(Zp,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:u,children:c.jsx(lu,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":nh(f.open),...d,ref:g,onDismiss:()=>f.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(S6,{titleId:f.titleId}),c.jsx(j6,{contentRef:p,descriptionId:f.descriptionId})]})]})}),th="DialogTitle",uw=w.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=Vn(th,s);return c.jsx(He.h2,{id:o.titleId,...l,ref:a})});uw.displayName=th;var dw="DialogDescription",fw=w.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=Vn(dw,s);return c.jsx(He.p,{id:o.descriptionId,...l,ref:a})});fw.displayName=dw;var mw="DialogClose",pw=w.forwardRef((t,a)=>{const{__scopeDialog:s,...l}=t,o=Vn(mw,s);return c.jsx(He.button,{type:"button",...l,ref:a,onClick:Me(t.onClick,()=>o.onOpenChange(!1))})});pw.displayName=mw;function nh(t){return t?"open":"closed"}var hw="DialogTitleWarning",[w6,gw]=TA(hw,{contentName:es,titleName:th,docsSlug:"dialog"}),S6=({titleId:t})=>{const a=gw(hw),s=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
378
379If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
380
381For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return w.useEffect(()=>{t&&(document.getElementById(t)||console.error(s))},[s,t]),null},C6="DialogDescriptionWarning",j6=({contentRef:t,descriptionId:a})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${gw(C6).contentName}}.`;return w.useEffect(()=>{const o=t.current?.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(l))},[l,t,a]),null},ah=nw,xw=rw,rh=lw,sh=ow,lh=iw,oh=uw,N6=fw,vu=pw;function yw({...t}){return c.jsx(ah,{"data-loc":"client/src/components/ui/sheet.tsx:10","data-slot":"sheet",...t})}function E6({...t}){return c.jsx(xw,{"data-loc":"client/src/components/ui/sheet.tsx:16","data-slot":"sheet-trigger",...t})}function A6({...t}){return c.jsx(rh,{"data-loc":"client/src/components/ui/sheet.tsx:28","data-slot":"sheet-portal",...t})}function O6({className:t,...a}){return c.jsx(sh,{"data-loc":"client/src/components/ui/sheet.tsx:36","data-slot":"sheet-overlay",className:Ce("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function vw({className:t,children:a,side:s="right",...l}){return c.jsxs(A6,{"data-loc":"client/src/components/ui/sheet.tsx:56",children:[c.jsx(O6,{"data-loc":"client/src/components/ui/sheet.tsx:57"}),c.jsxs(lh,{"data-loc":"client/src/components/ui/sheet.tsx:58","data-slot":"sheet-content",className:Ce("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",s==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",s==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",s==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",s==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",t),...l,children:[a,c.jsxs(vu,{"data-loc":"client/src/components/ui/sheet.tsx:75",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[c.jsx(Wr,{"data-loc":"client/src/components/ui/sheet.tsx:76",className:"size-4"}),c.jsx("span",{"data-loc":"client/src/components/ui/sheet.tsx:77",className:"sr-only",children:"Close"})]})]})]})}function bw({className:t,...a}){return c.jsx("div",{"data-loc":"client/src/components/ui/sheet.tsx:86","data-slot":"sheet-header",className:Ce("flex flex-col gap-1.5 p-4",t),...a})}function T6({className:t,...a}){return c.jsx("div",{"data-loc":"client/src/components/ui/sheet.tsx:96","data-slot":"sheet-footer",className:Ce("mt-auto flex flex-col gap-2 p-4",t),...a})}function ww({className:t,...a}){return c.jsx(oh,{"data-loc":"client/src/components/ui/sheet.tsx:109","data-slot":"sheet-title",className:Ce("text-foreground font-semibold",t),...a})}const Sw=w.createContext(void 0),_v="glypsie-cart";function D6({children:t}){const[a,s]=w.useState(()=>{try{const j=localStorage.getItem(_v);return j?JSON.parse(j):[]}catch{return[]}}),[l,o]=w.useState(!1);w.useEffect(()=>{try{localStorage.setItem(_v,JSON.stringify(a))}catch{}},[a]);const u=w.useCallback(()=>o(!0),[]),d=w.useCallback(()=>o(!1),[]),f=w.useCallback((j,v=1)=>{s(E=>E.find(D=>D.key===j.key)?E.map(D=>D.key===j.key?{...D,quantity:D.quantity+v}:D):[...E,{...j,quantity:v}]),o(!0)},[]),p=w.useCallback(j=>{s(v=>v.filter(E=>E.key!==j))},[]),g=w.useCallback((j,v)=>{s(E=>v<=0?E.filter(N=>N.key!==j):E.map(N=>N.key===j?{...N,quantity:v}:N))},[]),y=w.useCallback(()=>s([]),[]),x=w.useMemo(()=>a.reduce((j,v)=>j+v.quantity,0),[a]),S=w.useMemo(()=>a.reduce((j,v)=>j+v.price*v.quantity,0),[a]),C=w.useMemo(()=>({items:a,isOpen:l,openCart:u,closeCart:d,addItem:f,removeItem:p,updateQuantity:g,clearCart:y,count:x,subtotal:S}),[a,l,u,d,f,p,g,y,x,S]);return c.jsx(Sw.Provider,{"data-loc":"client/src/contexts/CartContext.tsx:129",value:C,children:t})}function cs(){const t=w.useContext(Sw);if(!t)throw new Error("useCart must be used within CartProvider");return t}const _a="https://d2xsxph8kpxj0f.cloudfront.net/96922053/ik8tHCvBWGDjQs8mcyUaqr",Ma={hero:"/manus-storage/hero-wire-jewelry_a3daa3a2.png",atelier:`${_a}/atelier-JiLiUK3ypmp9eC6X5tMwAa.webp`,logo:`${_a}/logo-mark-kEb6pNRZ8r8NCA8jL9qKjR.webp`,configBase:"/manus-storage/brooch-teal-crystal_6dc1d66b.png"},Oo=[{id:"j1",handle:"teal-reverie-brooch",name:"Teal Reverie Brooch",category:"Brooches",wireType:"Copper",crystalColor:"Teal",price:48,image:"/manus-storage/brooch-teal-crystal_6dc1d66b.png",description:"A hand-twisted copper brooch with a woven oval loop and a cluster of teal faceted crystals. Two copper stems cross and spiral into a decorative curl — wearable sculpture.",customizable:!0,bestseller:!0},{id:"j2",handle:"amethyst-reverie-pendant",name:"Amethyst Reverie Pendant",category:"Pendant Necklaces",wireType:"Copper",crystalColor:"Amethyst",price:52,image:"/manus-storage/pendant-amethyst-wire_e8190ddc.png",description:"A flowing copper pendant with a braided oval loop at the crown, purple amethyst crystals wire-wrapped at the waist, and a graceful spiral tail. Comes on a copper chain.",customizable:!0,bestseller:!0},{id:"j3",handle:"sapphire-depths-brooch",name:"Sapphire Depths Brooch",category:"Brooches",wireType:"Copper",crystalColor:"Sapphire Blue",price:48,image:"/manus-storage/brooch-sapphire-wire_a21a2a32.png",description:"Deep blue sapphire crystals nestle in a wire-wrapped copper brooch. The crossing stems and spiral base give this piece a quiet architectural confidence.",customizable:!0},{id:"j4",handle:"rose-bloom-pendant",name:"Rose Bloom Pendant Necklace",category:"Pendant Necklaces",wireType:"Copper",crystalColor:"Rose Pink",price:55,image:"/manus-storage/pendant-rose-wire_4436a3d8.png",description:"Rose pink crystals bloom from a twisted copper loop. The wire stems weave and spiral into a delicate curl — romantic, handcrafted, one of a kind. Comes on a copper chain.",customizable:!0,bestseller:!0},{id:"j5",handle:"aurora-crystal-brooch",name:"Aurora Crystal Brooch",category:"Brooches",wireType:"Copper",crystalColor:"Clear Aurora",price:45,image:"/manus-storage/brooch-clear-crystal_a022e713.png",description:"Clear aurora borealis crystals catch every light source and scatter it back as rainbow sparks. A copper brooch that changes with the room.",customizable:!0},{id:"j6",handle:"emerald-forest-pendant",name:"Emerald Forest Pendant",category:"Pendant Necklaces",wireType:"Copper",crystalColor:"Emerald Green",price:52,image:"/manus-storage/pendant-green-wire_2c71e751.png",description:"Rich emerald green crystals are wire-wrapped at the junction of a copper pendant. The crossing stems and spiral base evoke the geometry of a forest floor. Comes on a copper chain.",customizable:!1,bestseller:!0},{id:"j7",handle:"twilight-mix-brooch",name:"Twilight Mix Brooch",category:"Brooches",wireType:"Copper",crystalColor:"Multi (Purple, Teal, Clear)",price:50,image:"/manus-storage/brooch-multi-crystal_11077df8.png",description:"A celebration of the house palette: purple, teal, and clear crystals clustered together on a copper brooch. No two are alike — the bead placement is always improvised.",customizable:!0}],Cw=[{id:"a1",handle:"gilded-currents",title:"Gilded Currents",artist:"Elara Voss",medium:"Oil & gold leaf on canvas",year:2025,dimensions:"48 × 64 in",price:9800,image:`${_a}/art-1-PQYNZnTHdgUFbEd3QBHTMt.webp`,ratio:.75,statement:"Two rivers — one of amethyst, one of cyan — braid through veins of gold. I painted the moment they refuse to merge yet cannot part."},{id:"a2",handle:"twilight-horizon",title:"Twilight Horizon",artist:"Elara Voss",medium:"Oil on linen",year:2024,dimensions:"40 × 40 in",price:6400,image:`${_a}/art-2-gKGqpn2VJMEaNXS5tciasG.webp`,ratio:1,statement:"The single band of teal light is the last minute of dusk, held still so you can finally look at it."},{id:"a3",handle:"fractured-grace",title:"Fractured Grace",artist:"Marek Lindqvist",medium:"Mixed media & gold on panel",year:2025,dimensions:"36 × 54 in",price:8200,image:`${_a}/art-3-nhSJ8ammpPbubWgQPSXNaZ.webp`,ratio:.667,statement:"A face assembled from shards of violet and cyan glass. Composure is not the absence of breaking — it is what we do after.",sold:!0},{id:"a4",handle:"blooming-dusk",title:"Blooming Dusk",artist:"Elara Voss",medium:"Acrylic & gold leaf on canvas",year:2025,dimensions:"32 × 40 in",price:5200,image:`${_a}/art-4-f8ynGdMbWyJ2qBWZ6opC5P.webp`,ratio:.8,statement:"Flowers that open only at the hour the sky turns violet. They keep their gold in their throats."}
381,{id:"a5",handle:"celestial-drift",title:"Celestial Drift",artist:"Marek Lindqvist",medium:"Mixed media on canvas",year:2024,dimensions:"60 × 40 in",price:11200,image:`${_a}/art-5-oQq3P2zEHbcEa4mWijRHea.webp`,ratio:1.5,statement:"A nebula that does not exist, mapped from memory. The gold flecks are the stars I wished were there."}],_6=[{id:"t1",name:"Harper's Atelier",location:"Feature, Spring Edit",rating:5,quote:"Glypsie's wire-wrapped pieces carry a quiet intensity — handcraft elevated to wearable art, one copper curl at a time.",piece:"Editorial Feature"},{id:"t2",name:"The Collector's Quarterly",location:"Gallery Review",rating:5,quote:"Where handcrafted jewelry and original painting share one language of light. The pairing is more persuasive than it has any right to be.",piece:"Gallery Review"},{id:"t3",name:"Maison & Métier",location:"Craftsmanship Profile",rating:5,quote:"Every brooch and pendant is treated as a one-of-one. The atelier's patience shows in every twist of copper wire.",piece:"Craftsmanship Profile"},{id:"t4",name:"Aurora Design Index",location:"Annual Selection",rating:5,quote:"A disciplined amethyst-and-cyan palette carried from the wire-work to the canvas. Rare coherence for a young house.",piece:"Annual Selection"}],pp=[{id:"b1",handle:"anatomy-of-a-wire-wrapped-piece",title:"The Anatomy of a Wire-Wrapped Piece",excerpt:"From the first bend of copper to the final crystal placement, we trace the making of a Glypsie brooch.",category:"Atelier",author:"Elara Voss",date:"2026-05-18",readTime:"6 min",image:`${_a}/atelier-JiLiUK3ypmp9eC6X5tMwAa.webp`,body:`A wire-wrapped piece at The House of Glypsie begins not with a sketch but with a length of copper wire and a pair of round-nose pliers.
382
383The first step is the loop — the oval crown that sits at the top of every brooch and pendant. It is formed by wrapping the wire around a mandrel, then twisting the two ends together to create the braided texture you see in the finished piece. This single gesture takes about three minutes and sets the character of everything that follows.
384
385The crystal placement comes next, and it is the most improvisational part of the process. A small cluster of faceted beads is selected — sometimes by color, sometimes by how the light catches them that morning — and wire-wrapped onto the junction where the loop meets the stem. No two placements are identical.
386
387The stems are then shaped: two lengths of copper wire are crossed, twisted, and guided into a leaf-like form before being braided together and curled into the decorative spiral at the base. The spiral is the maker's signature — the moment where structure becomes ornament.
388
389The finished piece is polished with a soft cloth and, if it is a pendant, threaded onto a copper chain. From first bend to final polish, a single piece takes between forty-five minutes and two hours, depending on the complexity of the crystal arrangement.
390
391Every piece leaves the atelier with a small card noting the crystal colors and wire type — a quiet record of the choices that made it.`},{id:"b2",handle:"choosing-your-crystal-color",title:"Choosing Your Crystal Color",excerpt:"How to pick the crystal color that will speak to you every time you wear it — a guide from the atelier.",category:"Education",author:"Marek Lindqvist",date:"2026-04-30",readTime:"5 min",image:"/manus-storage/brooch-teal-crystal_6dc1d66b.png",body:`Crystal color is the most personal choice in a wire-wrapped piece. Unlike a gemstone, which has fixed optical properties, a faceted crystal bead is designed to scatter light broadly — which means its apparent color shifts dramatically with the light source.
392
393Teal crystals, for instance, read as deep blue-green under incandescent light and as a bright, almost electric cyan in daylight. They are the most versatile color in the house palette and the one we reach for most often when a piece needs to work across many contexts.
394
395Amethyst crystals carry warmth despite their purple hue. Under warm light they glow with a reddish depth; in cool light they become a clear, dignified violet. They pair naturally with copper wire because the warm metal and the warm-purple crystal share an undertone.
396
397Clear aurora borealis crystals are the most theatrical choice. They have no single color — they scatter every wavelength and return it as a shifting rainbow. A brooch with aurora crystals will look different every time you wear it, which is either its great virtue or its great challenge, depending on your temperament.
398
399Rose pink crystals are the softest option. They do not compete for attention; they simply add warmth. They are the right choice when the piece is meant to complement rather than lead.
400
401The best way to choose is to hold the piece near your face in natural light. The crystal that makes your eyes look brighter is the right one.`},{id:"b3",handle:"painting-with-purple-and-cyan",title:"Painting with Purple and Cyan",excerpt:"The house palette is no accident. A conversation on the two colors that define everything we make.",category:"Gallery",author:"Elara Voss",date:"2026-04-12",readTime:"5 min",image:`${_a}/art-1-PQYNZnTHdgUFbEd3QBHTMt.webp`,body:`The house palette was not chosen — it arrived.
402
403Elara Voss, the house's founding artist, spent three years painting in a studio with a north-facing window. North light is cool and consistent; it does not flatter, but it does not lie. In that light, she found herself reaching for two colors above all others: a deep violet-purple and a clear, almost electric cyan.
404
405The purple came first. It is the color of the hour before a storm, of amethyst held to a lamp, of the sky at the precise moment it decides to become night. It is a color that holds depth without becoming heavy.
406
407The cyan arrived as its counterpart — not a complement in the technical sense, but a companion. Where purple recedes, cyan advances. Where purple is warm despite its coolness, cyan 
407is cool despite its warmth. Together they create a tension that feels, to Voss, like the tension between a crystal and the light it scatters.
408
409When the jewelry atelier was founded alongside the gallery, the palette transferred without effort. Teal and amethyst crystals, set in copper wire, speak the same language as the paintings on the wall.
410
411This is why, at The House of Glypsie, a brooch and a painting can share a room without competing. They are already speaking to each other.`},{id:"b4",handle:"caring-for-wire-wrapped-jewelry",title:"Caring for Wire-Wrapped Jewelry",excerpt:"A simple ritual to keep your copper and crystal pieces luminous for years — no specialist tools required.",category:"Education",author:"The Atelier",date:"2026-03-22",readTime:"4 min",image:"/manus-storage/pendant-amethyst-wire_e8190ddc.png",body:`Wire-wrapped copper jewelry is more resilient than it looks, but it does have preferences. A simple care ritual, performed occasionally, will keep your pieces luminous for years.
412
413Copper develops a natural patina over time — a warm, slightly darkened tone that many wearers find beautiful. If you prefer the bright copper look, a gentle polish with a soft cloth after wearing will slow the patina. If you love the aged look, simply leave it alone.
414
415The crystals are glass beads and are quite durable, but they do not like impacts. Avoid dropping the piece on hard surfaces, and store it somewhere it will not be knocked around.
416
417For cleaning, a soft damp cloth is all you need. Wipe the wire gently, avoiding soaking the piece in water, which can loosen the wire wrapping over time. Dry immediately with a lint-free cloth.
418
419The most important rule: last on, first off. Put your jewelry on after applying perfume and lotion — chemicals dull the crystal surface and accelerate copper patina. Remove it before washing your hands or swimming.
420
421Store each piece separately, ideally in a small pouch or a compartmented box. Wire-wrapped pieces can catch on each other and bend if stored loosely together.
422
423With this simple care, a Glypsie piece will wear beautifully for years and develop a character that is entirely its own.`}],kv=[{label:"Jewelry",href:"/jewelry"},{label:"Art Gallery",href:"/gallery"},{label:"Custom Orders",href:"/custom-orders"},{label:"Blog",href:"/blog"}],Rv=[{label:"Clothing",href:"/closet/clothing"},{label:"Purses",href:"/closet/purses"},{label:"Accessories",href:"/closet/accessories"}];function k6(){const{count:t,openCart:a}=cs(),[s]=gu(),[l,o]=w.useState(!1),[u,d]=w.useState(!1),[f,p]=w.useState(!1);return w.useEffect(()=>{const g=()=>o(window.scrollY>24);return g(),window.addEventListener("scroll",g,{passive:!0}),()=>window.removeEventListener("scroll",g)},[]),c.jsx("header",{"data-loc":"client/src/components/Navbar.tsx:44",className:Ce("fixed top-0 inset-x-0 z-50 transition-all duration-500",l?"glass border-b border-border/60 py-3 shadow-[0_8px_30px_-12px_rgba(0,0,0,0.25)]":"bg-transparent py-5"),children:c.jsxs("nav",{"data-loc":"client/src/components/Navbar.tsx:52",className:"container flex items-center justify-between gap-4",children:[c.jsxs(Ee,{"data-loc":"client/src/components/Navbar.tsx:54",href:"/",className:"flex items-center gap-3 shrink-0 group","aria-label":"The House of Glypsie home",children:[c.jsx("img",{"data-loc":"client/src/components/Navbar.tsx:59",src:Ma.logo,alt:"The House of Glypsie emblem",className:"h-10 w-10 object-contain transition-transform duration-500 group-hover:rotate-6"}),c.jsxs("span",{"data-loc":"client/src/components/Navbar.tsx:64",className:"hidden sm:flex flex-col leading-none",children:[c.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:65",className:"font-display text-xl tracking-wide",children:"The House of Glypsie"}),c.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:68",className:"text-[0.6rem] tracking-luxe text-muted-foreground uppercase mt-1",children:"Fine Jewelry · Original Art"})]})]}),c.jsxs("ul",{"data-loc":"client/src/components/Navbar.tsx:75",className:"hidden lg:flex items-center gap-9",children:[kv.map(g=>{const y=s===g.href;return c.jsx("li",{"data-loc":"client/src/components/Navbar.tsx:79",children:c.jsx(Ee,{"data-loc":"client/src/components/Navbar.tsx:80",href:g.href,className:Ce("relative text-sm tracking-wide uppercase transition-colors duration-300 py-1","after:absolute after:left-0 after:-bottom-0.5 after:h-px after:bg-gradient-brand after:transition-all after:duration-300",y?"text-foreground after:w-full":"text-muted-foreground hover:text-foreground after:w-0 hover:after:w-full"),children:g.label})},g.href)}),c.jsxs("li",{"data-loc":"client/src/components/Navbar.tsx:96",className:"relative group",children:[c.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:97",className:"flex items-center gap-1 text-sm tracking-wide uppercase transition-colors duration-300 py-1 text-muted-foreground hover:text-foreground",children:["Glypsie's Closet",c.jsx(Vc,{"data-loc":"client/src/components/Navbar.tsx:99",className:"h-3 w-3 transition-transform group-hover:rotate-180"})]}),c.jsx("ul",{"data-loc":"client/src/components/Navbar.tsx:101",className:"absolute left-0 top-full pt-2 opacity-0 invisible group-hover:opacity-100 group-hover:visible transition-all duration-300 bg-background/95 backdrop-blur-sm border border-border rounded-lg shadow-lg py-2 min-w-[180px]",children:Rv.map(g=>c.jsx("li",{"data-loc":"client/src/components/Navbar.tsx:103",children:c.jsx(Ee,{"data-loc":"client/src/components/Navbar.tsx:104",href:g.href,className:"block px-4 py-2 text-sm text-muted-foreground hover:text-foreground hover:bg-accent/10 transition-colors",children:g.label})},g.href))})]}),c.jsx("li",{"data-loc":"client/src/components/Navbar.tsx:115",children:c.jsxs(Ee,{"data-loc":"client/src/components/Navbar.tsx:116",href:"/admin",className:Ce("flex items-center gap-2 rounded-md border border-red-500/30 bg-red-500/10 px-3 py-2 text-sm tracking-wide uppercase transition-colors",s==="/admin"?"text-foreground bg-red-500/15":"text-muted-foreground hover:text-foreground hover:bg-red-500/15"),children:["Admin",c.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:126",className:"text-[0.6rem] font-sans tracking-widest text-red-400",children:"Load."})]})})]}),c.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:132",className:"flex items-center gap-2",children:[c.jsxs(be,{"data-loc":"client/src/components/Navbar.tsx:133",variant:"ghost",size:"icon",className:"relative",onClick:a,"aria-label":`Open cart, ${t} items`,children:[c.jsx(fp,{"data-loc":"client/src/components/Navbar.tsx:140",className:"h-5 w-5"}),t>0&&c.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:142",className:"absolute -top-0.5 -right-0.5 h-5 min-w-5 px-1 rounded-full bg-gradient-brand text-[0.65rem] font-medium text-white flex items-center justify-center",children:t})]}),c.jsxs(yw,{"data-loc":"client/src/components/Navbar.tsx:149",open:u,onOpenChange:d,children:[c.jsx(E6,{"data-loc":"client/src/components/Navbar.tsx:150",asChild:!0,children:c.jsx(be,{"data-loc":"client/src/components/Navbar.tsx:151",variant:"ghost",size:"icon",className:"lg:hidden","aria-label":"Open menu",children:c.jsx(uT,{"data-loc":"client/src/components/Navbar.tsx:157",className:"h-5 w-5"})})}),c.jsxs(vw,{"data-loc":"client/src/components/Navbar.tsx:160",side:"right",className:"h-full w-[300px] overflow-y-auto overscroll-contain pb-24 glass border-l",children:[c.jsx(bw,{"data-loc":"client/src/components/Navbar.tsx:164",children:c.jsx(ww,{"data-loc":"client/src/components/Navbar.tsx:165",className:"font-display text-2xl text-left",children:"Explore"})}),c.jsxs("ul",{"data-loc":"client/src/components/Navbar.tsx:169",className:"mt-8 flex flex-col gap-1 px-2",children:[kv.map(g=>c.jsx("li",{"data-loc":"client/src/components/Navbar.tsx:171",children:c.jsxs(Ee,{"data-loc":"client/src/components/Navbar.tsx:172",href:g.href,onClick:()=>d(!1),className:"flex items-center justify-between rounded-lg px-4 py-3 text-lg font-display hover:bg-accent/10 transition-colors",children:[g.label,c.jsx(Wr,{"data-loc":"client/src/components/Navbar.tsx:178",className:"h-4 w-4 opacity-0"})]})},g.href)),c.jsx("li",{"data-loc":"client/src/components/Navbar.tsx:183",children:c.jsxs(Ee,{"data-loc":"client/src/components/Navbar.tsx:184",href:"/orders",onClick:()=>d(!1),className:"flex items-center justify-between rounded-lg px-4 py-3 text-lg font-display hover:bg-accent/10 transition-colors",children:["Orders",c.jsx(Wr,{"data-loc":"client/src/components/Navbar.tsx:190",className:"h-4 w-4 opacity-0"})]})}),c.jsxs("li",{"data-loc":"client/src/components/Navbar.tsx:194",children:[c.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:195",onClick:()=>
423p(!f),className:"w-full flex items-center justify-between rounded-lg px-4 py-3 text-lg font-display hover:bg-accent/10 transition-colors",children:["Glypsie's Closet",c.jsx(Vc,{"data-loc":"client/src/components/Navbar.tsx:200",className:Ce("h-4 w-4 transition-transform",f&&"rotate-180")})]}),f&&c.jsx("ul",{"data-loc":"client/src/components/Navbar.tsx:203",className:"flex flex-col gap-1 pl-4 mt-1",children:Rv.map(g=>c.jsx("li",{"data-loc":"client/src/components/Navbar.tsx:205",children:c.jsx(Ee,{"data-loc":"client/src/components/Navbar.tsx:206",href:g.href,onClick:()=>d(!1),className:"block rounded-lg px-4 py-2 text-base text-muted-foreground hover:text-foreground hover:bg-accent/10 transition-colors",children:g.label})},g.href))})]}),c.jsx("li",{"data-loc":"client/src/components/Navbar.tsx:218",className:"mt-2 border-t border-border/60 pt-3",children:c.jsxs(Ee,{"data-loc":"client/src/components/Navbar.tsx:219",href:"/admin",onClick:()=>d(!1),className:"flex items-center justify-between rounded-lg border border-red-500/30 bg-red-500/10 px-4 py-3 text-lg font-display text-foreground transition-colors hover:bg-red-500/15",children:["Admin",c.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:225",className:"text-xs font-sans uppercase tracking-widest text-red-400",children:"Load."})]})})]}),c.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:229",className:"absolute bottom-8 left-0 right-0 px-6",children:c.jsx("p",{"data-loc":"client/src/components/Navbar.tsx:230",className:"text-xs text-muted-foreground tracking-luxe uppercase",children:"Crafted in light"})})]})]})]})]})})}const jw=w.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),ih=()=>w.useContext(jw);function ch({...t}){const a=w.useRef(!1),s=w.useRef(!1),l=w.useRef(null),o=w.useMemo(()=>({isComposing:()=>a.current,setComposing:u=>{a.current=u},justEndedComposing:()=>s.current,markCompositionEnd:()=>{s.current=!0,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{s.current=!1},150)}}),[]);return c.jsx(jw.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:c.jsx(ah,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...t})})}function R6({...t}){return c.jsx(rh,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...t})}function Nw({className:t,...a}){return c.jsx(sh,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:Ce("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}Nw.displayName="DialogOverlay";function uh({className:t,children:a,showCloseButton:s=!0,onEscapeKeyDown:l,...o}){const{isComposing:u}=ih(),d=w.useCallback(f=>{if(f.isComposing||u()){f.preventDefault();return}l?.(f)},[u,l]);return c.jsxs(R6,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[c.jsx(Nw,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),c.jsxs(lh,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:Ce("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),onEscapeKeyDown:d,...o,children:[a,s&&c.jsxs(vu,{"data-loc":"client/src/components/ui/dialog.tsx:135","data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[c.jsx(Wr,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),c.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function Ew({className:t,...a}){return c.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:Ce("flex flex-col gap-2 text-center sm:text-left",t),...a})}function Aw({className:t,...a}){return c.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:160","data-slot":"dialog-footer",className:Ce("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function Ow({className:t,...a}){return c.jsx(oh,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:Ce("text-lg leading-none font-semibold",t),...a})}function jc(t){const a=w.useRef(t);a.current=t;const s=w.useRef(null);return s.current||(s.current=function(...l){return a.current.apply(this,l)}),s.current}function Tw(t={}){const{onKeyDown:a,onCompositionStart:s,onCompositionEnd:l}=t,o=w.useRef(!1),u=w.useRef(null),d=w.useRef(null),f=jc(x=>{u.current&&(clearTimeout(u.current),u.current=null),d.current&&(clearTimeout(d.current),d.current=null),o.current=!0,s?.(x)}),p=jc(x=>{u.current=setTimeout(()=>{d.current=setTimeout(()=>{o.current=!1})}),l?.(x)}),g=jc(x=>
423{if(o.current&&(x.key==="Escape"||x.key==="Enter"&&!x.shiftKey)){x.stopPropagation();return}a?.(x)}),y=jc(()=>o.current);return{onCompositionStart:f,onCompositionEnd:p,onKeyDown:g,isComposing:y}}function Dt({className:t,type:a,onKeyDown:s,onCompositionStart:l,onCompositionEnd:o,...u}){const d=ih(),{onCompositionStart:f,onCompositionEnd:p,onKeyDown:g}=Tw({onKeyDown:y=>{const x=y.nativeEvent.isComposing||d.justEndedComposing();y.key==="Enter"&&x||s?.(y)},onCompositionStart:y=>{d.setComposing(!0),l?.(y)},onCompositionEnd:y=>{d.markCompositionEnd(),setTimeout(()=>{d.setComposing(!1)},100),o?.(y)}});return c.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:a,"data-slot":"input",className:Ce("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",t),onCompositionStart:f,onCompositionEnd:p,onKeyDown:g,...u})}const M6=[{title:"Maison",links:[{label:"Jewelry",href:"/jewelry"},{label:"Art Gallery",href:"/gallery"},{label:"Custom Orders",href:"/custom-orders"},{label:"Blog",href:"/blog"}]},{title:"The House",links:[{label:"Our Story",href:"/about"},{label:"Design a Piece",href:"/customize"},{label:"Commission Art",href:"/custom-orders"},{label:"Journal",href:"/blog"}]}];function z6(){const[t,a]=w.useState(""),s=l=>{l.preventDefault(),t.trim()&&(Ge.success("Welcome to the house list",{description:"You'll be the first to see new collections."}),a(""))};return c.jsxs("footer",{"data-loc":"client/src/components/Footer.tsx:43",className:"relative mt-24 border-t border-border/60 bg-card/40",children:[c.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:44",className:"container py-16 grid gap-12 md:grid-cols-2 lg:grid-cols-4",children:[c.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:46",className:"lg:col-span-2 max-w-sm",children:[c.jsxs(Ee,{"data-loc":"client/src/components/Footer.tsx:47",href:"/",className:"flex items-center gap-3",children:[c.jsx("img",{"data-loc":"client/src/components/Footer.tsx:48",src:Ma.logo,alt:"The House of Glypsie emblem",className:"h-11 w-11 object-contain"}),c.jsx("span",{"data-loc":"client/src/components/Footer.tsx:53",className:"font-display text-2xl",children:"The House of Glypsie"})]}),c.jsx("p",{"data-loc":"client/src/components/Footer.tsx:55",className:"mt-5 text-sm leading-relaxed text-muted-foreground",children:"Handcrafted wire-wrapped brooches and pendant necklaces, and original art — each piece made by hand in copper and crystal. Worn, gifted, and remembered."}),c.jsxs("form",{"data-loc":"client/src/components/Footer.tsx:60",className:"mt-7",onSubmit:s,children:[c.jsx("label",{"data-loc":"client/src/components/Footer.tsx:61",className:"text-xs uppercase tracking-luxe text-muted-foreground",children:"Join the house list"}),c.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:64",className:"mt-3 flex gap-2",children:[c.jsx(Dt,{"data-loc":"client/src/components/Footer.tsx:65",type:"email",required:!0,value:t,onChange:l=>a(l.target.value),placeholder:"[email protected]",className:"bg-background/60"}),c.jsx(be,{"data-loc":"client/src/components/Footer.tsx:73",type:"submit",className:"bg-gradient-brand text-white shrink-0",children:c.jsx(xT,{"data-loc":"client/src/components/Footer.tsx:74",className:"h-4 w-4"})})]})]})]}),M6.map(l=>c.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:81",children:[c.jsx("h4",{"data-loc":"client/src/components/Footer.tsx:82",className:"font-display text-lg mb-4",children:l.title}),c.jsx("ul",{"data-loc":"client/src/components/Footer.tsx:83",className:"space-y-3",children:l.links.map(o=>c.jsx("li",{"data-loc":"client/src/components/Footer.tsx:85",children:c.jsx(Ee,{"data-loc":"client/src/components/Footer.tsx:86",href:o.href,className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:o.label})},o.label))})]}
423,l.title))]}),c.jsx("div",{"data-loc":"client/src/components/Footer.tsx:99",className:"border-t border-border/60",children:c.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:100",className:"container py-6 flex flex-col sm:flex-row items-center justify-between gap-4",children:[c.jsxs("p",{"data-loc":"client/src/components/Footer.tsx:101",className:"text-xs text-muted-foreground",children:["© ",new Date().getFullYear()," The House of Glypsie. All rights reserved."]}),c.jsxs("div",{"data-loc":"client/src/components/Footer.tsx:104",className:"flex items-center gap-4 text-muted-foreground",children:[c.jsx("a",{"data-loc":"client/src/components/Footer.tsx:105",href:"#","aria-label":"Instagram",className:"hover:text-foreground transition-colors",children:c.jsx(oT,{"data-loc":"client/src/components/Footer.tsx:106",className:"h-4 w-4"})}),c.jsx("a",{"data-loc":"client/src/components/Footer.tsx:108",href:"#","aria-label":"Facebook",className:"hover:text-foreground transition-colors",children:c.jsx(sT,{"data-loc":"client/src/components/Footer.tsx:109",className:"h-4 w-4"})}),c.jsx("a",{"data-loc":"client/src/components/Footer.tsx:111",href:"#","aria-label":"Twitter",className:"hover:text-foreground transition-colors",children:c.jsx(bT,{"data-loc":"client/src/components/Footer.tsx:112",className:"h-4 w-4"})})]})]})})]})}var P6="Separator",Mv="horizontal",U6=["horizontal","vertical"],Dw=w.forwardRef((t,a)=>{const{decorative:s,orientation:l=Mv,...o}=t,u=B6(l)?l:Mv,f=s?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return c.jsx(He.div,{"data-orientation":u,...f,...o,ref:a})});Dw.displayName=P6;function B6(t){return U6.includes(t)}var L6=Dw;function za({className:t,orientation:a="horizontal",decorative:s=!0,...l}){return c.jsx(L6,{"data-loc":"client/src/components/ui/separator.tsx:13","data-slot":"separator",decorative:s,orientation:a,className:Ce("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",t),...l})}const fm=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t);function H6(){const{items:t,isOpen:a,closeCart:s,removeItem:l,updateQuantity:o,subtotal:u,count:d}=cs();return c.jsx(yw,{"data-loc":"client/src/components/CartDrawer.tsx:28",open:a,onOpenChange:f=>!f&&s(),children:c.jsxs(vw,{"data-loc":"client/src/components/CartDrawer.tsx:29",side:"right",className:"w-full sm:max-w-md flex flex-col p-0 glass",children:[c.jsx(bw,{"data-loc":"client/src/components/CartDrawer.tsx:33",className:"px-6 pt-6",children:c.jsxs(ww,{"data-loc":"client/src/components/CartDrawer.tsx:34",className:"font-display text-2xl flex items-center gap-2",children:[c.jsx(fp,{"data-loc":"client/src/components/CartDrawer.tsx:35",className:"h-5 w-5"}),"Your Selection",d>0&&c.jsxs("span",{"data-loc":"client/src/components/CartDrawer.tsx:38",className:"text-sm text-muted-foreground font-sans",children:["(",d,")"]})]})}),t.length===0?c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:46",className:"flex-1 flex flex-col items-center justify-center gap-4 px-6 text-center",children:[c.jsx("div",{"data-loc":"client/src/components/CartDrawer.tsx:47",className:"h-16 w-16 rounded-full bg-accent/10 flex items-center justify-center",children:c.jsx(fp,{"data-loc":"client/src/components/CartDrawer.tsx:48",className:"h-7 w-7 text-muted-foreground"})}),c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:50",children:[c.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:51",className:"font-display text-lg",children:"Your selection is empty"}),c.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:52",className:"text-sm text-muted-foreground mt-1",children:"Discover pieces worth keeping."})]}),c.jsx(be,{"data-loc":"client/src/components/CartDrawer.tsx:56",onClick:s,className:"bg-gradient-brand text-white mt-2",asChild:!0,children:c.jsx(Ee,{"data-loc":"client/src/components/CartDrawer.tsx:61",href:"/jewelry",children:"Browse Jewelry"})})]}):c.jsxs(c.Fragment,{children:[c.jsx("div",{"data-loc":"client/src/components/CartDrawer.tsx:66",className:"flex-1 overflow-y-auto px-6 py-4 space-y-5",children:t.map(f=>c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:68",className:"flex gap-4",children:[c.jsx("div",{"data-loc":"client/src/components/CartDrawer.tsx:69",className:"h-24 w-24 rounded-lg overflow-hidden bg-background/50 shrink-0 border border-border/60",children:c.jsx("img",{"data-loc":"client/src/components/CartDrawer.tsx:70",src:f.image,alt:f.name,className:"h-full w-full object-cover"})}),c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:76",className:"flex-1 min-w-0",children:[c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:77",className:"flex items-start justify-between gap-2",children:[c.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:78",className:"font-medium leading-tight",children:f.name}),c.jsx("button",{"data-loc":"client/src/components/CartDrawer.tsx:79",onClick:()=>l(f.key),"aria-label":"Remove item",className:"text-muted-foreground hover:text-destructive transition-colors",children:c.jsx(I2,{"data-loc":"client/src/components/CartDrawer.tsx:84",className:"h-4 w-4"})})]}),f.meta&&c.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:88",className:"text-xs text-muted-foreground mt-1 line-clamp-2",children:f.meta}),c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:92",className:"mt-3 flex items-center justify-between",children:[c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:93",className:"flex items-center border border-border rounded-full",children:[c.jsx("button",{"data-loc":"client/src/components/CartDrawer.tsx:94",onClick:()=>o(f.key,f.quantity-1),className:"h-7 w-7 flex items-center justify-center hover:bg-accent/10 rounded-l-full","aria-label":"Decrease quantity",children:c.jsx(B2,{"data-loc":"client/src/components/CartDrawer.tsx:101",className:"h-3 w-3"})}),c.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:103",className:"w-7 text-center text-sm tabular-nums",children:f.quantity}),c.jsx("button",{"data-loc":"client/src/components/CartDrawer.tsx:106",onClick:()=>o(f.key,f.quantity+1),className:"h-7 w-7 flex items-center justify-center hover:bg-accent/10 rounded-r-full","aria-label":"Increase quantity",children:c.jsx(Jo,{"data-loc":"client/src/components/CartDrawer.tsx:113",className:"h-3 w-3"})})]}),c.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:116",className:"font-medium tabular-nums",children:fm(f.price*f.quantity)})]})]})]},f.key))}),c.jsxs(T6,{"data-loc":"client/src/components/CartDrawer.tsx:125",className:"px-6 py-6 border-t border-border/60 flex-col gap-4 sm:flex-col sm:space-x-0",children:[c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:126",className:"w-full space-y-2",children:[c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:127",className:"flex items-center justify-between text-sm text-muted-foreground",children:[c.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:128",children:"Subtotal"}),c.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:129",className:"tabular-nums",children:fm(u)})]}),c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:131",className:"flex items-center justify-between text-sm text-muted-foreground",children:[c.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:132",children:"Shipping"}),c.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:133",children:"Calculated at checkout"})]}),c.jsx(za,{"data-loc":"client/src/components/CartDrawer.tsx:135",className:"my-2"}),c.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:136",className:"flex items-center justify-between font-display text-lg",children:[c.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:137",children:"Total"}),c.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:138",className:"tabular-nums",children:fm(u)})]})]}),c.jsx(be,{"data-loc":"client/src/components/CartDrawer.tsx:141",asChild:!0,size:"lg",className:"w-full bg-gradient-brand text-white",onClick:s,children:c.jsx(Ee,{"data-loc":"client/src/components/CartDrawer.tsx:147",href:"/checkout",children:"Proceed to Checkout"})}),c.jsx("button",{"data-loc":"client/src/components/CartDrawer.tsx:149",onClick:s,className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:"Continue browsing"})]})]})]})})}function q6({children:t}){const[a]=gu();return w.useEffect(()=>{window.scrollTo({top:0,behavior:"auto"})}
vendor: 26,019 bytes, lines 423-430
423,[a]),c.jsxs("div",{"data-loc":"client/src/components/Layout.tsx:16",className:"min-h-screen flex flex-col",children:[c.jsx(k6,{"data-loc":"client/src/components/Layout.tsx:17"}),c.jsx(H6,{"data-loc":"client/src/components/Layout.tsx:18"}),c.jsx("main",{"data-loc":"client/src/components/Layout.tsx:19",className:"flex-1",children:t}),c.jsx(z6,{"data-loc":"client/src/components/Layout.tsx:20"})]})}const I6=w.createContext(void 0);function zv(){return"medium"}function Q6({children:t}){const[a,s]=w.useState("medium"),[l,o]=w.useState("time"),u=w.useRef(zv());return w.useEffect(()=>{const d=document.documentElement;a==="medium"?d.classList.add("medium"):d.classList.remove("medium")},[a]),w.useEffect(()=>{const d=window.setInterval(()=>{const f=zv();u.current=f,window.scrollY<80&&s(p=>p!==f?(o("time"),f):p)},6e4);return()=>window.clearInterval(d)},[]),w.useEffect(()=>{let d=!1;const f=()=>{d=!1;const g=window.scrollY,y=window.innerHeight,x=y*.7,S=y*.35;s(C=>g>x&&C!=="medium"?(o("scroll"),"medium"):g<S&&C!==u.current?(o("scroll"),u.current):C)},p=()=>{d||(d=!0,window.requestAnimationFrame(f))};return window.addEventListener("scroll",p,{passive:!0}),f(),()=>window.removeEventListener("scroll",p)},[]),c.jsx(I6.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:111",value:{mode:a,reason:l},children:t})}var al={},mm,Pv;function G6(){return Pv||(Pv=1,mm=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),mm}var pm={},fr={},Uv;function us(){if(Uv)return fr;Uv=1;let t;const a=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return fr.getSymbolSize=function(l){if(!l)throw new Error('"version" cannot be null or undefined');if(l<1||l>40)throw new Error('"version" should be in range from 1 to 40');return l*4+17},fr.getSymbolTotalCodewords=function(l){return a[l]},fr.getBCHDigit=function(s){let l=0;for(;s!==0;)l++,s>>>=1;return l},fr.setToSJISFunction=function(l){if(typeof l!="function")throw new Error('"toSJISFunc" is not a valid function.');t=l},fr.isKanjiModeEnabled=function(){return typeof t<"u"},fr.toSJIS=function(l){return t(l)},fr}var hm={},Bv;function dh(){return Bv||(Bv=1,(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function a(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+s)}}t.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},t.from=function(l,o){if(t.isValid(l))return l;try{return a(l)}catch{return o}}})(hm)),hm}var gm,Lv;function V6(){if(Lv)return gm;Lv=1;function t(){this.buffer=[],this.length=0}return t.prototype={get:function(a){const s=Math.floor(a/8);return(this.buffer[s]>>>7-a%8&1)===1},put:function(a,s){for(let l=0;l<s;l++)this.putBit((a>>>s-l-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(a){const s=Math.floor(this.length/8);this.buffer.length<=s&&this.buffer.push(0),a&&(this.buffer[s]|=128>>>this.length%8),this.length++}},gm=t,gm}var xm,Hv;function F6(){if(Hv)return xm;Hv=1;function t(a){if(!a||a<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=a,this.data=new Uint8Array(a*a),this.reservedBit=new Uint8Array(a*a)}return t.prototype.set=function(a,s,l,o){const u=a*this.size+s;this.data[u]=l,o&&(this.reservedBit[u]=!0)},t.prototype.get=function(a,s){return this.data[a*this.size+s]},t.prototype.xor=function(a,s,l){this.data[a*this.size+s]^=l},t.prototype.isReserved=function(a,s){return this.reservedBit[a*this.size+s]},xm=t,xm}var ym={},qv;function Y6(){return qv||(qv=1,(function(t){const a=us().getSymbolSize;t.getRowColCoords=function(l){if(l===1)return[];const o=Math.floor(l/7)+2,u=a(l),d=u===145?26:Math.ceil((u-13)/(2*o-2))*2,f=[u-7];for(let p=1;p<o-1;p++)f[p]=f[p-1]-d;return f.push(6),f.reverse()},t.getPositions=function(l){const o=[],u=t.getRowColCoords(l),d=u.length;for(let f=0;f<d;f++)for(let p=0;p<d;p++)f===0&&p===0||f===0&&p===d-1||f===d-1&&p===0||o.push([u[f],u[p]]);return o}})(ym)),ym}var vm={},Iv;function K6(){if(Iv)return vm;Iv=1;const t=us().getSymbolSize,a=7;return vm.getPositions=function(l){const o=t(l);return[[0,0],[o-a,0],[0,o-a]]},vm}var bm={},Qv;function X6(){return Qv||(Qv=1,(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const a={N1:3,N2:3,N3:40,N4:10};t.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},t.from=function(o){return t.isValid(o)?parseInt(o,10):void 0},t.getPenaltyN1=function(o){const u=o.size;let d=0,f=0,p=0,g=null,y=null;for(let x=0;x<u;x++){f=p=0,g=y=null;for(let S=0;S<u;S++){let C=o.get(x,S);C===g?f++:(f>=5&&(d+=a.N1+(f-5)),g=C,f=1),C=o.get(S,x),C===y?p++:(p>=5&&(d+=a.N1+(p-5)),y=C,p=1)}f>=5&&(d+=a.N1+(f-5)),p>=5&&(d+=a.N1+(p-5))}return d},t.getPenaltyN2=function(o){const u=o.size;let d=0;for(let f=0;f<u-1;f++)for(let p=0;p<u-1;p++){const g=o.get(f,p)+o.get(f,p+1)+o.get(f+1,p)+o.get(f+1,p+1);(g===4||g===0)&&d++}return d*a.N2},t.getPenaltyN3=function(o){const u=o.size;let d=0,f=0,p=0;for(let g=0;g<u;g++){f=p=0;for(let y=0;y<u;y++)f=f<<1&2047|o.get(g,y),y>=10&&(f===1488||f===93)&&d++,p=p<<1&2047|o.get(y,g),y>=10&&(p===1488||p===93)&&d++}return d*a.N3},t.getPenaltyN4=function(o){let u=0;const d=o.data.length;for(let p=0;p<d;p++)u+=o.data[p];return Math.abs(Math.ceil(u*100/d/5)-10)*a.N4};function s(l,o,u){switch(l){case t.Patterns.PATTERN000:return(o+u)%2===0;case t.Patterns.PATTERN001:return o%2===0;case t.Patterns.PATTERN010:return u%3===0;case t.Patterns.PATTERN011:return(o+u)%3===0;case t.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(u/3))%2===0;case t.Patterns.PATTERN101:return o*u%2+o*u%3===0;case t.Patterns.PATTERN110:return(o*u%2+o*u%3)%2===0;case t.Patterns.PATTERN111:return(o*u%3+(o+u)%2)%2===0;default:throw new Error("bad maskPattern:"+l)}}t.applyMask=function(o,u){const d=u.size;for(let f=0;f<d;f++)for(let p=0;p<d;p++)u.isReserved(p,f)||u.xor(p,f,s(o,p,f))},t.getBestMask=function(o,u){const d=Object.keys(t.Patterns).length;let f=0,p=1/0;for(let g=0;g<d;g++){u(g),t.applyMask(g,o);const y=t.getPenaltyN1(o)+t.getPenaltyN2(o)+t.getPenaltyN3(o)+t.getPenaltyN4(o);t.applyMask(g,o),y<p&&(p=y,f=g)}return f}})(bm)),bm}var Nc={},Gv;function _w(){if(Gv)return Nc;Gv=1;const t=dh(),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],s=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return Nc.getBlocksCount=function(o,u){switch(u){case t.L:return a[(o-1)*4+0];case t.M:return a[(o-1)*4+1];case t.Q:return a[(o-1)*4+2];case t.H:return a[(o-1)*4+3];default:return}},Nc.getTotalCodewordsCount=function(o,u){switch(u){case t.L:return s[(o-1)*4+0];case t.M:return s[(o-1)*4+1];case t.Q:return s[(o-1)*4+2];case t.H:return s[(o-1)*4+3];default:return}},Nc}var wm={},wo={},Vv;function $6(){if(Vv)return wo;Vv=1;const t=new Uint8Array(512),a=new Uint8Array(256);return(function(){let l=1;for(let o=0;o<255;o++)t[o]=l,a[l]=o,l<<=1,l&256&&(l^=285);for(let o=255;o<512;o++)t[o]=t[o-255]})(),wo.log=function(l){if(l<1)throw new Error("log("+l+")");return a[l]},wo.exp=function(l){return t[l]},wo.mul=function(l,o){return l===0||o===0?0:t[a[l]+a[o]]},wo}var Fv;function J6(){return Fv||(Fv=1,(function(t){const a=$6();t.mul=function(l,o){const u=new Uint8Array(l.length+o.length-1);for(let d=0;d<l.length;d++)for(let f=0;f<o.length;f++)u[d+f]^=a.mul(l[d],o[f]);return u},t.mod=function(l,o){let u=new Uint8Array(l);for(;u.length-o.length>=0;){const d=u[0];for(let p=0;p<o.length;p++)u[p]^=a.mul(o[p],d);let f=0;for(;f<u.length&&u[f]===0;)f++;u=u.slice(f)}return u},t.generateECPolynomial=function(l){let o=new Uint8Array([1]);for(let u=0;u<l;u++)o=t.mul(o,new Uint8Array([1,a.exp(u)]));return o}})(wm)),wm}var Sm,Yv;function Z6(){if(Yv)return Sm;Yv=1;const t=J6();function a(s){this.genPoly=void 0,this.degree=s,this.degree&&this.initialize(this.degree)}return a.prototype.initialize=function(l){this.degree=l,this.genPoly=t.generateECPolynomial(this.degree)},a.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(l.length+this.degree);o.set(l);const u=t.mod(o,this.genPoly),d=this.degree-u.length;if(d>0){const f=new Uint8Array(this.degree);return f.set(u,d),f}return u},Sm=a,Sm}var Cm={},jm={},Nm={},Kv;function kw(){return Kv||(Kv=1,Nm.isValid=function(a){return!isNaN(a)&&a>=1&&a<=40}),Nm}var Wn={},Xv;function Rw(){if(Xv)return Wn;Xv=1;const t="[0-9]+",a="[A-Z $%*+\\-./:]+";let s="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";s=s.replace(/u/g,"\\u");const l="(?:(?![A-Z0-9 $%*+\\-./:]|"+s+`)(?:.|[\r
424]))+`;Wn.KANJI=new RegExp(s,"g"),Wn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Wn.BYTE=new RegExp(l,"g"),Wn.NUMERIC=new RegExp(t,"g"),Wn.ALPHANUMERIC=new RegExp(a,"g");const o=new RegExp("^"+s+"$"),u=new RegExp("^"+t+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Wn.testKanji=function(p){return o.test(p)},Wn.testNumeric=function(p){return u.test(p)},Wn.testAlphanumeric=function(p){return d.test(p)},Wn}var $v;function ds(){return $v||($v=1,(function(t){const a=kw(),s=Rw();t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(u,d){if(!u.ccBits)throw new Error("Invalid mode: "+u);if(!a.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?u.ccBits[0]:d<27?u.ccBits[1]:u.ccBits[2]},t.getBestModeForData=function(u){return s.testNumeric(u)?t.NUMERIC:s.testAlphanumeric(u)?t.ALPHANUMERIC:s.testKanji(u)?t.KANJI:t.BYTE},t.toString=function(u){if(u&&u.id)return u.id;throw new Error("Invalid mode")},t.isValid=function(u){return u&&u.bit&&u.ccBits};function l(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+o)}}t.from=function(u,d){if(t.isValid(u))return u;try{return l(u)}catch{return d}}})(jm)),jm}var Jv;function W6(){return Jv||(Jv=1,(function(t){const a=us(),s=_w(),l=dh(),o=ds(),u=kw(),d=7973,f=a.getBCHDigit(d);function p(S,C,j){for(let v=1;v<=40;v++)if(C<=t.getCapacity(v,j,S))return v}function g(S,C){return o.getCharCountIndicator(S,C)+4}function y(S,C){let j=0;return S.forEach(function(v){const E=g(v.mode,C);j+=E+v.getBitsLength()}),j}function x(S,C){for(let j=1;j<=40;j++)if(y(S,j)<=t.getCapacity(j,C,o.MIXED))return j}t.from=function(C,j){return u.isValid(C)?parseInt(C,10):j},t.getCapacity=function(C,j,v){if(!u.isValid(C))throw new Error("Invalid QR Code version");typeof v>"u"&&(v=o.BYTE);const E=a.getSymbolTotalCodewords(C),N=s.getTotalCodewordsCount(C,j),D=(E-N)*8;if(v===o.MIXED)return D;const O=D-g(v,C);switch(v){case o.NUMERIC:return Math.floor(O/10*3);case o.ALPHANUMERIC:return Math.floor(O/11*2);case o.KANJI:return Math.floor(O/13);case o.BYTE:default:return Math.floor(O/8)}},t.getBestVersionForData=function(C,j){let v;const E=l.from(j,l.M);if(Array.isArray(C)){if(C.length>1)return x(C,E);if(C.length===0)return 1;v=C[0]}else v=C;return p(v.mode,v.getLength(),E)},t.getEncodedBits=function(C){if(!u.isValid(C)||C<7)throw new Error("Invalid QR Code version");let j=C<<12;for(;a.getBCHDigit(j)-f>=0;)j^=d<<a.getBCHDigit(j)-f;return C<<12|j}})(Cm)),Cm}var Em={},Zv;function eD(){if(Zv)return Em;Zv=1;const t=us(),a=1335,s=21522,l=t.getBCHDigit(a);return Em.getEncodedBits=function(u,d){const f=u.bit<<3|d;let p=f<<10;for(;t.getBCHDigit(p)-l>=0;)p^=a<<t.getBCHDigit(p)-l;return(f<<10|p)^s},Em}var Am={},Om,Wv;function tD(){if(Wv)return Om;Wv=1;const t=ds();function a(s){this.mode=t.NUMERIC,this.data=s.toString()}return a.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(l){let o,u,d;for(o=0;o+3<=this.data.length;o+=3)u=this.data.substr(o,3),d=parseInt(u,10),l.put(d,10);const f=this.data.length-o;f>0&&(u=this.data.substr(o),d=parseInt(u,10),l.put(d,f*3+1))},Om=a,Om}var Tm,eb;function nD(){if(eb)return Tm;eb=1;const t=ds(),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function s(l){this.mode=t.ALPHANUMERIC,this.data=l}return s.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(o){let u;for(u=0;u+2<=this.data.length;u+=2){let d=a.indexOf(this.data[u])*45;d+=a.indexOf(this.data[u+1]),o.put(d,11)}this.data.length%2&&o.put(a.indexOf(this.data[u]),6)},Tm=s,Tm}var Dm,tb;function aD(){if(tb)return Dm;tb=1;const t=ds();function a(s){this.mode=t.BYTE,typeof s=="string"?this.data=new TextEncoder().encode(s):this.data=new Uint8Array(s)}return a.getBitsLength=function(l){return l*8},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(s){for(let l=0,o=this.data.length;l<o;l++)s.put(this.data[l],8)},Dm=a,Dm}var _m,nb;function rD(){if(nb)return _m;nb=1;const t=ds(),a=us();function s(l){this.mode=t.KANJI,this.data=l}return s.getBitsLength=function(o){return o*13},s.prototype.getLength=function(){return this.data.length},s.prototype.getBitsLength=function(){return s.getBitsLength(this.data.length)},s.prototype.write=function(l){let o;for(o=0;o<this.data.length;o++){let u=a.toSJIS(this.data[o]);if(u>=33088&&u<=40956)u-=33088;else if(u>=57408&&u<=60351)u-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+`
425Make sure your charset is UTF-8`);u=(u>>>8&255)*192+(u&255),l.put(u,13)}},_m=s,_m}var km={exports:{}},ab;function sD(){return ab||(ab=1,(function(t){var a={single_source_shortest_paths:function(s,l,o){var u={},d={};d[l]=0;var f=a.PriorityQueue.make();f.push(l,0);for(var p,g,y,x,S,C,j,v,E;!f.empty();){p=f.pop(),g=p.value,x=p.cost,S=s[g]||{};for(y in S)S.hasOwnProperty(y)&&(C=S[y],j=x+C,v=d[y],E=typeof d[y]>"u",(E||v>j)&&(d[y]=j,f.push(y,j),u[y]=g))}if(typeof o<"u"&&typeof d[o]>"u"){var N=["Could not find a path from ",l," to ",o,"."].join("");throw new Error(N)}return u},extract_shortest_path_from_predecessor_list:function(s,l){for(var o=[],u=l;u;)o.push(u),s[u],u=s[u];return o.reverse(),o},find_path:function(s,l,o){var u=a.single_source_shortest_paths(s,l,o);return a.extract_shortest_path_from_predecessor_list(u,o)},PriorityQueue:{make:function(s){var l=a.PriorityQueue,o={},u;s=s||{};for(u in l)l.hasOwnProperty(u)&&(o[u]=l[u]);return o.queue=[],o.sorter=s.sorter||l.default_sorter,o},default_sorter:function(s,l){return s.cost-l.cost},push:function(s,l){var o={value:s,cost:l};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=a})(km)),km.exports}var rb;function lD(){return rb||(rb=1,(function(t){const a=ds(),s=tD(),l=nD(),o=aD(),u=rD(),d=Rw(),f=us(),p=sD();function g(N){return unescape(encodeURIComponent(N)).length}function y(N,D,O){const k=[];let U;for(;(U=N.exec(O))!==null;)k.push({data:U[0],index:U.index,mode:D,length:U[0].length});return k}function x(N){const D=y(d.NUMERIC,a.NUMERIC,N),O=y(d.ALPHANUMERIC,a.ALPHANUMERIC,N);let k,U;return f.isKanjiModeEnabled()?(k=y(d.BYTE,a.BYTE,N),U=y(d.KANJI,a.KANJI,N)):(k=y(d.BYTE_KANJI,a.BYTE,N),U=[]),D.concat(O,k,U).sort(function(T,M){return T.index-M.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function S(N,D){switch(D){case a.NUMERIC:return s.getBitsLength(N);case a.ALPHANUMERIC:return l.getBitsLength(N);case a.KANJI:return u.getBitsLength(N);case a.BYTE:return o.getBitsLength(N)}}function C(N){return N.reduce(function(D,O){const k=D.length-1>=0?D[D.length-1]:null;return k&&k.mode===O.mode?(D[D.length-1].data+=O.data,D):(D.push(O),D)},[])}function j(N){const D=[];for(let O=0;O<N.length;O++){const k=N[O];switch(k.mode){case a.NUMERIC:D.push([k,{data:k.data,mode:a.ALPHANUMERIC,length:k.length},{data:k.data,mode:a.BYTE,length:k.length}]);break;case a.ALPHANUMERIC:D.push([k,{data:k.data,mode:a.BYTE,length:k.length}]);break;case a.KANJI:D.push([k,{data:k.data,mode:a.BYTE,length:g(k.data)}]);break;case a.BYTE:D.push([{data:k.data,mode:a.BYTE,length:g(k.data)}])}}return D}function v(N,D){const O={},k={start:{}};let U=["start"];for(let R=0;R<N.length;R++){const T=N[R],M=[];for(let H=0;H<T.length;H++){const V=T[H],q=""+R+H;M.push(q),O[q]={node:V,lastCount:0},k[q]={};for(let F=0;F<U.length;F++){const W=U[F];O[W]&&O[W].node.mode===V.mode?(k[W][q]=S(O[W].lastCount+V.length,V.mode)-S(O[W].lastCount,V.mode),O[W].lastCount+=V.length):(O[W]&&(O[W].lastCount=V.length),k[W][q]=S(V.length,V.mode)+4+a.getCharCountIndicator(V.mode,D))}}U=M}for(let R=0;R<U.length;R++)k[U[R]].end=0;return{map:k,table:O}}function E(N,D){let O;const k=a.getBestModeForData(N);if(O=a.from(D,k),O!==a.BYTE&&O.bit<k.bit)throw new Error('"'+N+'" cannot be encoded with mode '+a.toString(O)+`.
426 Suggested mode is: `+a.toString(k));switch(O===a.KANJI&&!f.isKanjiModeEnabled()&&(O=a.BYTE),O){case a.NUMERIC:return new s(N);case a.ALPHANUMERIC:return new l(N);case a.KANJI:return new u(N);case a.BYTE:return new o(N)}}t.fromArray=function(D){return D.reduce(function(O,k){return typeof k=="string"?O.push(E(k,null)):k.data&&O.push(E(k.data,k.mode)),O},[])},t.fromString=function(D,O){const k=x(D,f.isKanjiModeEnabled()),U=j(k),R=v(U,O),T=p.find_path(R.map,"start","end"),M=[];for(let H=1;H<T.length-1;H++)M.push(R.table[T[H]].node);return t.fromArray(C(M))},t.rawSplit=function(D){return t.fromArray(x(D,f.isKanjiModeEnabled()))}})(Am)),Am}var sb;function oD(){if(sb)return pm;sb=1;const t=us(),a=dh(),s=V6(),l=F6(),o=Y6(),u=K6(),d=X6(),f=_w(),p=Z6(),g=W6(),y=eD(),x=ds(),S=lD();function C(R,T){const M=R.size,H=u.getPositions(T);for(let V=0;V<H.length;V++){const q=H[V][0],F=H[V][1];for(let W=-1;W<=7;W++)if(!(q+W<=-1||M<=q+W))for(let te=-1;te<=7;te++)F+te<=-1||M<=F+te||(W>=0&&W<=6&&(te===0||te===6)||te>=0&&te<=6&&(W===0||W===6)||W>=2&&W<=4&&te>=2&&te<=4?R.set(q+W,F+te,!0,!0):R.set(q+W,F+te,!1,!0))}}function j(R){const T=R.size;for(let M=8;M<T-8;M++){const H=M%2===0;R.set(M,6,H,!0),R.set(6,M,H,!0)}}function v(R,T){const M=o.getPositions(T);for(let H=0;H<M.length;H++){const V=M[H][0],q=M[H][1];for(let F=-2;F<=2;F++)for(let W=-2;W<=2;W++)F===-2||F===2||W===-2||W===2||F===0&&W===0?R.set(V+F,q+W,!0,!0):R.set(V+F,q+W,!1,!0)}}function E(R,T){const M=R.size,H=g.getEncodedBits(T);let V,q,F;for(let W=0;W<18;W++)V=Math.floor(W/3),q=W%3+M-8-3,F=(H>>W&1)===1,R.set(V,q,F,!0),R.set(q,V,F,!0)}function N(R,T,M){const H=R.size,V=y.getEncodedBits(T,M);let q,F;for(q=0;q<15;q++)F=(V>>q&1)===1,q<6?R.set(q,8,F,!0):q<8?R.set(q+1,8,F,!0):R.set(H-15+q,8,F,!0),q<8?R.set(8,H-q-1,F,!0):q<9?R.set(8,15-q-1+1,F,!0):R.set(8,15-q-1,F,!0);R.set(H-8,8,1,!0)}function D(R,T){const M=R.size;let H=-1,V=M-1,q=7,F=0;for(let W=M-1;W>0;W-=2)for(W===6&&W--;;){for(let te=0;te<2;te++)if(!R.isReserved(V,W-te)){let ie=!1;F<T.length&&(ie=(T[F]>>>q&1)===1),R.set(V,W-te,ie),q--,q===-1&&(F++,q=7)}if(V+=H,V<0||M<=V){V-=H,H=-H;break}}}function O(R,T,M){const H=new s;M.forEach(function(te){H.put(te.mode.bit,4),H.put(te.getLength(),x.getCharCountIndicator(te.mode,R)),te.write(H)});const V=t.getSymbolTotalCodewords(R),q=f.getTotalCodewordsCount(R,T),F=(V-q)*8;for(H.getLengthInBits()+4<=F&&H.put(0,4);H.getLengthInBits()%8!==0;)H.putBit(0);const W=(F-H.getLengthInBits())/8;for(let te=0;te<W;te++)H.put(te%2?17:236,8);return k(H,R,T)}function k(R,T,M){const H=t.getSymbolTotalCodewords(T),V=f.getTotalCodewordsCount(T,M),q=H-V,F=f.getBlocksCount(T,M),W=H%F,te=F-W,ie=Math.floor(H/F),z=Math.floor(q/F),G=z+1,L=ie-z,oe=new p(L);let Y=0;const _=new Array(F),K=new Array(F);let I=0;const J=new Uint8Array(R.buffer);for(let pe=0;pe<F;pe++){const we=pe<te?z:G;_[pe]=J.slice(Y,Y+we),K[pe]=oe.encode(_[pe]),Y+=we,I=Math.max(I,we)}const le=new Uint8Array(H);let fe=0,ne,ce;for(ne=0;ne<I;ne++)for(ce=0;ce<F;ce++)ne<_[ce].length&&(le[fe++]=_[ce][ne]);for(ne=0;ne<L;ne++)for(ce=0;ce<F;ce++)le[fe++]=K[ce][ne];return le}function U(R,T,M,H){let V;if(Array.isArray(R))V=S.fromArray(R);else if(typeof R=="string"){let ie=T;if(!ie){const z=S.rawSplit(R);ie=g.getBestVersionForData(z,M)}V=S.fromString(R,ie||40)}else throw new Error("Invalid data");const q=g.getBestVersionForData(V,M);if(!q)throw new Error("The amount of data is too big to be stored in a QR Code");if(!T)T=q;else if(T<q)throw new Error(`
427The chosen QR Code version cannot contain this amount of data.
428Minimum version required to store current data is: `+q+`.
429`);const F=O(T,M,V),W=t.getSymbolSize(T),te=new l(W);return C(te,T),j(te),v(te,T),N(te,M,0),T>=7&&E(te,T),D(te,F),isNaN(H)&&(H=d.getBestMask(te,N.bind(null,te,M))),d.applyMask(H,te),N(te,M,H),{modules:te,version:T,errorCorrectionLevel:M,maskPattern:H,segments:V}}return pm.create=function(T,M){if(typeof T>"u"||T==="")throw new Error("No input text");let H=a.M,V,q;return typeof M<"u"&&(H=a.from(M.errorCorrectionLevel,a.M),V=g.from(M.version),q=d.from(M.maskPattern),M.toSJISFunc&&t.setToSJISFunction(M.toSJISFunc)),U(T,V,H,q)},pm}var Rm={},Mm={},lb;function Mw(){return lb||(lb=1,(function(t){function a(s){if(typeof s=="number"&&(s=s.toString()),typeof s!="string")throw new Error("Color should be defined as hex string");let l=s.slice().replace("#","").split("");if(l.length<3||l.length===5||l.length>8)throw new Error("Invalid hex color: "+s);(l.length===3||l.length===4)&&(l=Array.prototype.concat.apply([],l.map(function(u){return[u,u]}))),l.length===6&&l.push("F","F");const o=parseInt(l.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+l.slice(0,6).join("")}}t.getOptions=function(l){l||(l={}),l.color||(l.color={});const o=typeof l.margin>"u"||l.margin===null||l.margin<0?4:l.margin,u=l.width&&l.width>=21?l.width:void 0,d=l.scale||4;return{width:u,scale:u?4:d,margin:o,color:{dark:a(l.color.dark||"#000000ff"),light:a(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},t.getScale=function(l,o){return o.width&&o.width>=l+o.margin*2?o.width/(l+o.margin*2):o.scale},t.getImageWidth=function(l,o){const u=t.getScale(l,o);return Math.floor((l+o.margin*2)*u)},t.qrToImageData=function(l,o,u){const d=o.modules.size,f=o.modules.data,p=t.getScale(d,u),g=Math.floor((d+u.margin*2)*p),y=u.margin*p,x=[u.color.light,u.color.dark];for(let S=0;S<g;S++)for(let C=0;C<g;C++){let j=(S*g+C)*4,v=u.color.light;if(S>=y&&C>=y&&S<g-y&&C<g-y){const E=Math.floor((S-y)/p),N=Math.floor((C-y)/p);v=x[f[E*d+N]?1:0]}l[j++]=v.r,l[j++]=v.g,l[j++]=v.b,l[j]=v.a}}})(Mm)),Mm}var ob;function iD(){return ob||(ob=1,(function(t){const a=Mw();function s(o,u,d){o.clearRect(0,0,u.width,u.height),u.style||(u.style={}),u.height=d,u.width=d,u.style.height=d+"px",u.style.width=d+"px"}function l(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(u,d,f){let p=f,g=d;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),d||(g=l()),p=a.getOptions(p);const y=a.getImageWidth(u.modules.size,p),x=g.getContext("2d"),S=x.createImageData(y,y);return a.qrToImageData(S.data,u,p),s(x,g,y),x.putImageData(S,0,0),g},t.renderToDataURL=function(u,d,f){let p=f;typeof p>"u"&&(!d||!d.getContext)&&(p=d,d=void 0),p||(p={});const g=t.render(u,d,p),y=p.type||"image/png",x=p.rendererOpts||{};return g.toDataURL(y,x.quality)}})(Rm)),Rm}var zm={},ib;function cD(){if(ib)return zm;ib=1;const t=Mw();function a(o,u){const d=o.a/255,f=u+'="'+o.hex+'"';return d<1?f+" "+u+'-opacity="'+d.toFixed(2).slice(1)+'"':f}function s(o,u,d){let f=o+u;return typeof d<"u"&&(f+=" "+d),f}function l(o,u,d){let f="",p=0,g=!1,y=0;for(let x=0;x<o.length;x++){const S=Math.floor(x%u),C=Math.floor(x/u);!S&&!g&&(g=!0),o[x]?(y++,x>0&&S>0&&o[x-1]||(f+=g?s("M",S+d,.5+C+d):s("m",p,0),p=0,g=!1),S+1<u&&o[x+1]||(f+=s("h",y),y=0)):p++}return f}return zm.render=function(u,d,f){const p=t.getOptions(d),g=u.modules.size,y=u.modules.data,x=g+p.margin*2,S=p.color.light.a?"<path "+a(p.color.light,"fill")+' d="M0 0h'+x+"v"+x+'H0z"/>':"",C="<path "+a(p.color.dark,"stroke")+' d="'+l(y,g,p.margin)+'"/>',j='viewBox="0 0 '+x+" "+x+'"',E='<svg xmlns="http://www.w3.org/2000/svg" '+(p.width?'width="'+p.width+'" height="'+p.width+'" ':"")+j+' shape-rendering="crispEdges">'+S+C+`</svg>
430`;return typeof f=="function"&&f(null,E),E},zm}var cb;function uD(){if(cb)return al;cb=1;const t=G6(),a=oD(),s=iD(),l=cD();
430function o(u,d,f,p,g){const y=[].slice.call(arguments,1),x=y.length,S=typeof y[x-1]=="function";if(!S&&!t())throw new Error("Callback required as last argument");if(S){if(x<2)throw new Error("Too few arguments provided");x===2?(g=f,f=d,d=p=void 0):x===3&&(d.getContext&&typeof g>"u"?(g=p,p=void 0):(g=p,p=f,f=d,d=void 0))}else{if(x<1)throw new Error("Too few arguments provided");return x===1?(f=d,d=p=void 0):x===2&&!d.getContext&&(p=f,f=d,d=void 0),new Promise(function(C,j){try{const v=a.create(f,p);C(u(v,d,p))}catch(v){j(v)}})}try{const C=a.create(f,p);g(null,u(C,d,p))}catch(C){g(C)}}return al.create=a.create,al.toCanvas=o.bind(null,s.render),al.toDataURL=o.bind(null,s.renderToDataURL),al.toString=o.bind(null,function(u,d,f){return l.render(u,f)}),al}var dD=uD();const zw=Np(dD),fD=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t);function bu({product:t}){const{addItem:a}=cs();return c.jsxs("div",{"data-loc":"client/src/components/ProductCard.tsx:14",className:"group relative flex flex-col",children:[c.jsxs(Ee,{"data-loc":"client/src/components/ProductCard.tsx:15",href:`/jewelry/${t.handle}`,className:"relative block overflow-hidden rounded-xl bg-card border border-border/60",children:[c.jsx("div",{"data-loc":"client/src/components/ProductCard.tsx:19",className:"aspect-square overflow-hidden",children:c.jsx("img",{"data-loc":"client/src/components/ProductCard.tsx:20",src:t.image,alt:t.name,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-700 ease-[cubic-bezier(0.23,1,0.32,1)] group-hover:scale-105"})}),t.bestseller&&c.jsx("span",{"data-loc":"client/src/components/ProductCard.tsx:28",className:"absolute top-3 left-3 rounded-full bg-background/80 backdrop-blur px-3 py-1 text-[0.65rem] uppercase tracking-luxe",children:"Bestseller"}),t.customizable&&c.jsxs("span",{"data-loc":"client/src/components/ProductCard.tsx:33",className:"absolute top-3 right-3 flex items-center gap-1 rounded-full bg-gradient-brand px-2.5 py-1 text-[0.65rem] uppercase tracking-wide text-white",children:[c.jsx(Jp,{"data-loc":"client/src/components/ProductCard.tsx:34",className:"h-3 w-3"}),"Customizable"]}),!t.inStock&&c.jsx("span",{"data-loc":"client/src/components/ProductCard.tsx:39",className:"absolute top-3 left-3 rounded-full bg-background/80 backdrop-blur px-3 py-1 text-[0.65rem] uppercase tracking-luxe text-muted-foreground",children:"Sold Out"}),t.inStock&&c.jsx("div",{"data-loc":"client/src/components/ProductCard.tsx:45",className:"absolute inset-x-3 bottom-3 translate-y-3 opacity-0 transition-all duration-300 group-hover:translate-y-0 group-hover:opacity-100",children:c.jsxs(be,{"data-loc":"client/src/components/ProductCard.tsx:46",size:"sm",className:"w-full bg-background/90 text-foreground hover:bg-background backdrop-blur",onClick:s=>{s.preventDefault(),a({key:t.id,productId:t.id,name:t.name,image:t.image,price:t.price})},children:[c.jsx(Jo,{"data-loc":"client/src/components/ProductCard.tsx:60",className:"h-4 w-4 mr-1"})," Quick Add"]})})]}),c.jsxs("div",{"data-loc":"client/src/components/ProductCard.tsx:66",className:"mt-4 flex items-start justify-between gap-3",children:[c.jsxs("div",{"data-loc":"client/src/components/ProductCard.tsx:67",className:"min-w-0",children:[c.jsx(Ee,{"data-loc":"client/src/components/ProductCard.tsx:68",href:`/jewelry/${t.handle}`,children:c.jsx("h3",{"data-loc":"client/src/components/ProductCard.tsx:69",className:"font-display text-lg leading-tight truncate hover:text-primary transition-colors",children:t.name})}),c.jsxs("p",{"data-loc":"client/src/components/ProductCard.tsx:73",className:"text-xs text-muted-foreground mt-0.5",children:[t.wireType,t.crystalColor?` · ${t.crystalColor}`:""]})]}),c.jsx("p",{"data-loc":"client/src/components/ProductCard.tsx:77",className:"font-medium tabular-nums shrink-0",children:fD(t.price)})]})]})}function wr({eyebrow:t,title:a,description:s,align:l="center",className:o}){return c.jsxs("div",{"data-loc":"client/src/components/SectionHeading.tsx:19",className:Ce("max-w-2xl",l==="center"?"mx-auto text-center":"text-left",o),children:[t&&c.jsx("p",{"data-loc":"client/src/components/SectionHeading.tsx:27",className:"text-xs uppercase tracking-luxe text-accent mb-3",children:t}),c.jsx("h2",{"data-loc":"client/src/components/SectionHeading.tsx:31",className:"font-display text-3xl sm:text-4xl lg:text-5xl leading-tight",children:a}),s&&c.jsx("p",{"data-loc":"client/src/components/SectionHeading.tsx:35",className:"mt-4 text-muted-foreground leading-relaxed",children:s})]})}function mD(t){const a=w.useRef(null);return w.useEffect(()=>{const s=a.current;if(!s)return;const l=new IntersectionObserver(o=>{o.forEach(u=>{u.isIntersecting&&(u.target.classList.add("is-visible"),l.unobserve(u.target))})}
vendor: 5,096 bytes, line 430
430,{threshold:.15,rootMargin:"0px 0px -10% 0px",...t});return l.observe(s),()=>l.disconnect()},[t]),a}function nn({children:t,className:a,delay:s=0,as:l="div"}){const o=mD();return c.jsx(l,{"data-loc":"client/src/components/Reveal.tsx:20",ref:o,className:Ce("reveal",a),style:{transitionDelay:`${s}ms`},children:t})}function pD(t){return Object.prototype.toString.call(t)==="[object Object]"}function ub(t){return pD(t)||Array.isArray(t)}function hD(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function fh(t,a){const s=Object.keys(t),l=Object.keys(a);if(s.length!==l.length)return!1;const o=JSON.stringify(Object.keys(t.breakpoints||{})),u=JSON.stringify(Object.keys(a.breakpoints||{}));return o!==u?!1:s.every(d=>{const f=t[d],p=a[d];return typeof f=="function"?`${f}`==`${p}`:!ub(f)||!ub(p)?f===p:fh(f,p)})}function db(t){return t.concat().sort((a,s)=>a.name>s.name?1:-1).map(a=>a.options)}function gD(t,a){if(t.length!==a.length)return!1;const s=db(t),l=db(a);return s.every((o,u)=>{const d=l[u];return fh(o,d)})}function mh(t){return typeof t=="number"}function hp(t){return typeof t=="string"}function wu(t){return typeof t=="boolean"}function fb(t){return Object.prototype.toString.call(t)==="[object Object]"}function lt(t){return Math.abs(t)}function ph(t){return Math.sign(t)}function To(t,a){return lt(t-a)}function xD(t,a){if(t===0||a===0||lt(t)<=lt(a))return 0;const s=To(lt(t),lt(a));return lt(s/t)}function yD(t){return Math.round(t*100)/100}function Ho(t){return qo(t).map(Number)}function qn(t){return t[Zo(t)]}function Zo(t){return Math.max(0,t.length-1)}function hh(t,a){return a===Zo(t)}function mb(t,a=0){return Array.from(Array(t),(s,l)=>a+l)}function qo(t){return Object.keys(t)}function Pw(t,a){return[t,a].reduce((s,l)=>(qo(l).forEach(o=>{const u=s[o],d=l[o],f=fb(u)&&fb(d);s[o]=f?Pw(u,d):d}),s),{})}function gp(t,a){return typeof a.MouseEvent<"u"&&t instanceof a.MouseEvent}function vD(t,a){const s={start:l,center:o,end:u};function l(){return 0}function o(p){return u(p)/2}function u(p){return a-p}function d(p,g){return hp(t)?s[t](p):t(a,p,g)}return{measure:d}}function Io(){let t=[];function a(o,u,d,f={passive:!0}){let p;if("addEventListener"in o)o.addEventListener(u,d,f),p=()=>o.removeEventListener(u,d,f);else{const g=o;g.addListener(d),p=()=>g.removeListener(d)}return t.push(p),l}function s(){t=t.filter(o=>o())}const l={add:a,clear:s};return l}function bD(t,a,s,l){const o=Io(),u=1e3/60;let d=null,f=0,p=0;function g(){o.add(t,"visibilitychange",()=>{t.hidden&&j()})}function y(){C(),o.clear()}function x(E){if(!p)return;d||(d=E,s(),s());const N=E-d;for(d=E,f+=N;f>=u;)s(),f-=u;const D=f/u;l(D),p&&(p=a.requestAnimationFrame(x))}function S(){p||(p=a.requestAnimationFrame(x))}function C(){a.cancelAnimationFrame(p),d=null,f=0,p=0}function j(){d=null,f=0}return{init:g,destroy:y,start:S,stop:C,update:s,render:l}}function wD(t,a){const s=a==="rtl",l=t==="y",o=l?"y":"x",u=l?"x":"y",d=!l&&s?-1:1,f=y(),p=x();function g(j){const{height:v,width:E}=j;return l?v:E}function y(){return l?"top":s?"right":"left"}function x(){return l?"bottom":s?"left":"right"}function S(j){return j*d}return{scroll:o,cross:u,startEdge:f,endEdge:p,measureSize:g,direction:S}}function ts(t=0,a=0){const s=lt(t-a);function l(g){return g<t}function o(g){return g>a}function u(g){return l(g)||o(g)}function d(g){return u(g)?l(g)?t:a:g}function f(g){return s?g-s*Math.ceil((g-a)/s):g}return{length:s,max:a,min:t,constrain:d,reachedAny:u,reachedMax:o,reachedMin:l,removeOffset:f}}function Uw(t,a,s){const{constrain:l}=ts(0,t),o=t+1;let u=d(a);function d(S){return s?lt((o+S)%o):l(S)}function f(){return u}function p(S){return u=d(S),x}function g(S){return y().set(f()+S)}function y(){return Uw(t,f(),s)}const x={get:f,set:p,add:g,clone:y};return x}function SD(t,a,s,l,o,u,d,f,p,g,y,x,S,C,j,v,E,N,D){const{cross:O,direction:k}=t,U=["INPUT","SELECT","TEXTAREA"],R={passive:!1},T=Io(),M=Io(),H=ts(50,225).constrain(C.measure(20)),V={mouse:300,touch:400},q={mouse:500,touch:600},F=j?43:25;let W=!1,te=0,ie=0,z=!1,G=!1,L=!1,oe=!1;function Y(ue){if(!D)return;function Oe(tt){(wu(D)||D(ue,tt))&&fe(tt)}const ke=a;T.add(ke,"dragstart",tt=>tt.preventDefault(),R).add(ke,"touchmove",()=>{},R).add(ke,"touchend",()=>{}).add(ke,"touchstart",Oe).add(ke,"mousedown",Oe).add(ke,"touchcancel",ce).add(ke,"contextmenu",ce).add(ke,"click",pe,!0)}function _(){T.clear(),M.clear()}function K(){const ue=oe?s:a;M.add(ue,"touchmove",ne,R).add(ue,"touchend",ce).add(ue,"mousemove",ne,R).add(ue,"mouseup",ce)}function I(ue){const Oe=ue.nodeName||"";return U.includes(Oe)}function J(){return(j?q:V)[oe?"mouse":"touch"]}function le(ue,Oe){const ke=x.add(ph(ue)*-1),tt=y.byDistance(ue,!j).distance;return j||lt(ue)<H?tt:E&&Oe?tt*.5:y.byIndex(ke.get(),0).distance}function fe(ue){const Oe=gp(ue,l);oe=Oe,L=j&&Oe&&!ue.buttons&&W,W=To(o.get(),d.get())>=2,!(Oe&&ue.button!==0)&&(I(ue.target)||(z=!0,u.pointerDown(ue),g.useFriction(0).useDuration(0),o.set(d),K(),te=u.readPoint(ue),ie=u.readPoint(ue,O),S.emit("pointerDown")))}function ne(ue){if(!gp(ue,l)&&ue.touches.length>=2)return ce(ue);
vendor: 11,883 bytes, line 430
430const ke=u.readPoint(ue),tt=u.readPoint(ue,O),dt=To(ke,te),ft=To(tt,ie);if(!G&&!oe&&(!ue.cancelable||(G=dt>ft,!G)))return ce(ue);const an=u.pointerMove(ue);dt>v&&(L=!0),g.useFriction(.3).useDuration(.75),f.start(),o.add(k(an)),ue.preventDefault()}function ce(ue){const ke=y.byDistance(0,!1).index!==x.get(),tt=u.pointerUp(ue)*J(),dt=le(k(tt),ke),ft=xD(tt,dt),an=F-10*ft,ot=N+ft/50;G=!1,z=!1,M.clear(),g.useDuration(an).useFriction(ot),p.distance(dt,!j),oe=!1,S.emit("pointerUp")}function pe(ue){L&&(ue.stopPropagation(),ue.preventDefault(),L=!1)}function we(){return z}return{init:Y,destroy:_,pointerDown:we}}function CD(t,a){let l,o;function u(x){return x.timeStamp}function d(x,S){const j=`client${(S||t.scroll)==="x"?"X":"Y"}`;return(gp(x,a)?x:x.touches[0])[j]}function f(x){return l=x,o=x,d(x)}function p(x){const S=d(x)-d(o),C=u(x)-u(l)>170;return o=x,C&&(l=x),S}function g(x){if(!l||!o)return 0;const S=d(o)-d(l),C=u(x)-u(l),j=u(x)-u(o)>170,v=S/C;return C&&!j&&lt(v)>.1?v:0}return{pointerDown:f,pointerMove:p,pointerUp:g,readPoint:d}}function jD(){function t(s){const{offsetTop:l,offsetLeft:o,offsetWidth:u,offsetHeight:d}=s;return{top:l,right:o+u,bottom:l+d,left:o,width:u,height:d}}return{measure:t}}function ND(t){function a(l){return t*(l/100)}return{measure:a}}function ED(t,a,s,l,o,u,d){const f=[t].concat(l);let p,g,y=[],x=!1;function S(E){return o.measureSize(d.measure(E))}function C(E){if(!u)return;g=S(t),y=l.map(S);function N(D){for(const O of D){if(x)return;const k=O.target===t,U=l.indexOf(O.target),R=k?g:y[U],T=S(k?t:l[U]);if(lt(T-R)>=.5){E.reInit(),a.emit("resize");break}}}p=new ResizeObserver(D=>{(wu(u)||u(E,D))&&N(D)}),s.requestAnimationFrame(()=>{f.forEach(D=>p.observe(D))})}function j(){x=!0,p&&p.disconnect()}return{init:C,destroy:j}}function AD(t,a,s,l,o,u){let d=0,f=0,p=o,g=u,y=t.get(),x=0;function S(){const R=l.get()-t.get(),T=!p;let M=0;return T?(d=0,s.set(l),t.set(l),M=R):(s.set(t),d+=R/p,d*=g,y+=d,t.add(d),M=y-x),f=ph(M),x=y,U}function C(){const R=l.get()-a.get();return lt(R)<.001}function j(){return p}function v(){return f}function E(){return d}function N(){return O(o)}function D(){return k(u)}function O(R){return p=R,U}function k(R){return g=R,U}const U={direction:v,duration:j,velocity:E,seek:S,settled:C,useBaseFriction:D,useBaseDuration:N,useFriction:k,useDuration:O};return U}function OD(t,a,s,l,o){const u=o.measure(10),d=o.measure(50),f=ts(.1,.99);let p=!1;function g(){return!(p||!t.reachedAny(s.get())||!t.reachedAny(a.get()))}function y(C){if(!g())return;const j=t.reachedMin(a.get())?"min":"max",v=lt(t[j]-a.get()),E=s.get()-a.get(),N=f.constrain(v/d);s.subtract(E*N),!C&&lt(E)<u&&(s.set(t.constrain(s.get())),l.useDuration(25).useBaseFriction())}function x(C){p=!C}return{shouldConstrain:g,constrain:y,toggleActive:x}}function TD(t,a,s,l,o){const u=ts(-a+t,0),d=x(),f=y(),p=S();function g(j,v){return To(j,v)<=1}function y(){const j=d[0],v=qn(d),E=d.lastIndexOf(j),N=d.indexOf(v)+1;return ts(E,N)}function x(){return s.map((j,v)=>{const{min:E,max:N}=u,D=u.constrain(j),O=!v,k=hh(s,v);return O?N:k||g(E,D)?E:g(N,D)?N:D}).map(j=>parseFloat(j.toFixed(3)))}function S(){if(a<=t+o)return[u.max];if(l==="keepSnaps")return d;const{min:j,max:v}=f;return d.slice(j,v)}return{snapsContained:p,scrollContainLimit:f}}function DD(t,a,s){const l=a[0],o=s?l-t:qn(a);return{limit:ts(o,l)}}function _D(t,a,s,l){const u=a.min+.1,d=a.max+.1,{reachedMin:f,reachedMax:p}=ts(u,d);function g(S){return S===1?p(s.get()):S===-1?f(s.get()):!1}function y(S){if(!g(S))return;const C=t*(S*-1);l.forEach(j=>j.add(C))}return{loop:y}}function kD(t){const{max:a,length:s}=t;function l(u){const d=u-a;return s?d/-s:0}return{get:l}}function RD(t,a,s,l,o){const{startEdge:u,endEdge:d}=t,{groupSlides:f}=o,p=x().map(a.measure),g=S(),y=C();function x(){return f(l).map(v=>qn(v)[d]-v[0][u]).map(lt)}function S(){return l.map(v=>s[u]-v[u]).map(v=>-lt(v))}function C(){return f(g).map(v=>v[0]).map((v,E)=>v+p[E])}return{snaps:g,snapsAligned:y}}function MD(t,a,s,l,o,u){const{groupSlides:d}=o,{min:f,max:p}=l,g=y();function y(){const S=d(u),C=!t||a==="keepSnaps";return s.length===1?[u]:C?S:S.slice(f,p).map((j,v,E)=>{const N=!v,D=hh(E,v);if(N){const O=qn(E[0])+1;return mb(O)}if(D){const O=Zo(u)-qn(E)[0]+1;return mb(O,qn(E)[0])}return j})}return{slideRegistry:g}}function zD(t,a,s,l,o){const{reachedAny:u,removeOffset:d,constrain:f}=l;function p(j){return j.concat().sort((v,E)=>lt(v)-lt(E))[0]}function g(j){const v=t?d(j):f(j),E=a.map((D,O)=>({diff:y(D-v,0),index:O})).sort((D,O)=>lt(D.diff)-lt(O.diff)),{index:N}=E[0];return{index:N,distance:v}}function y(j,v){const E=[j,j+s,j-s];if(!t)return j;if(!v)return p(E);const N=E.filter(D=>ph(D)===v);return N.length?p(N):qn(E)-s}function x(j,v){const E=a[j]-o.get(),N=y(E,v);return{index:j,distance:N}}function S(j,v){const E=o.get()+j,{index:N,distance:D}=g(E),O=!t&&u(E);if(!v||O)return{index:N,distance:j};const k=a[N]-D,U=j+y(k,0);return{index:N,distance:U}}return{byDistance:S,byIndex:x,shortcut:y}}function PD(t,a,s,l,o,u,d){function f(x){const S=x.distance,C=x.index!==a.get();u.add(S),S&&(l.duration()?t.start():(t.update(),t.render(1),t.update())),C&&(s.set(a.get()),a.set(x.index),d.emit("select"))}function p(x,S){const C=o.byDistance(x,S);f(C)}function g(x,S){const C=a.clone().set(x),j=o.byIndex(C.get(),S);f(j)}return{distance:p,index:g}}function UD(t,a,s,l,o,u,d,f){const p={passive:!0,capture:!0};let g=0;function y(C){if(!f)return;function j(v){if(new Date().getTime()-g>10)return;d.emit("slideFocusStart"),t.scrollLeft=0;const D=s.findIndex(O=>O.includes(v));mh(D)&&(o.useDuration(0),l.index(D,0),d.emit("slideFocus"))}u.add(document,"keydown",x,!1),a.forEach((v,E)=>{u.add(v,"focus",N=>{(wu(f)||f(C,N))&&j(E)},p)})}function x(C){C.code==="Tab"&&(g=new Date().getTime())}return{init:y}}function jo(t){let a=t;function s(){return a}function l(p){a=d(p)}function o(p){a+=d(p)}function u(p){a-=d(p)}function d(p){return mh(p)?p:p.get()}return{get:s,set:l,add:o,subtract:u}}function Bw(t,a){const s=t.scroll==="x"?d:f,l=a.style;let o=null,u=!1;function d(S){return`translate3d(${S}px,0px,0px)`}function f(S){return`translate3d(0px,${S}px,0px)`}function p(S){if(u)return;const C=yD(t.direction(S));C!==o&&(l.transform=s(C),o=C)}function g(S){u=!S}function y(){u||(l.transform="",a.getAttribute("style")||a.removeAttribute("style"))}return{clear:y,to:p,toggleActive:g}}function BD(t,a,s,l,o,u,d,f,p){const y=Ho(o),x=Ho(o).reverse(),S=N().concat(D());function C(T,M){return T.reduce((H,V)=>H-o[V],M)}function j(T,M){return T.reduce((H,V)=>C(H,M)>0?H.concat([V]):H,[])}function v(T){return u.map((M,H)=>({start:M-l[H]+.5+T,end:M+a-.5+T}))}function E(T,M,H){const V=v(M);return T.map(q=>{const F=H?0:-s,W=H?s:0,te=H?"end":"start",ie=V[q][te];return{index:q,loopPoint:ie,slideLocation:jo(-1),translate:Bw(t,p[q]),target:()=>f.get()>ie?F:W}})}function N(){const T=d[0],M=j(x,T);return E(M,s,!1)}function D(){const T=a-d[0]-1,M=j(y,T);return E(M,-s,!0)}function O(){return S.every(({index:T})=>{const M=y.filter(H=>H!==T);return C(M,a)<=.1})}function k(){S.forEach(T=>{const{target:M,translate:H,slideLocation:V}=T,q=M();q!==V.get()&&(H.to(q),V.set(q))})}function U(){S.forEach(T=>T.translate.clear())}return{canLoop:O,clear:U,loop:k,loopPoints:S}}function LD(t,a,s){let l,o=!1;function u(p){if(!s)return;function g(y){for(const x of y)if(x.type==="childList"){p.reInit(),a.emit("slidesChanged");break}}l=new MutationObserver(y=>{o||(wu(s)||s(p,y))&&g(y)}),l.observe(t,{childList:!0})}function d(){l&&l.disconnect(),o=!0}return{init:u,destroy:d}}function HD(t,a,s,l){const o={};let u=null,d=null,f,p=!1;function g(){f=new IntersectionObserver(j=>{p||(j.forEach(v=>{const E=a.indexOf(v.target);o[E]=v}),u=null,d=null,s.emit("slidesInView"))},{root:t.parentElement,threshold:l}),a.forEach(j=>f.observe(j))}function y(){f&&f.disconnect(),p=!0}function x(j){return qo(o).reduce((v,E)=>{const N=parseInt(E),{isIntersecting:D}=o[N];return(j&&D||!j&&!D)&&v.push(N),v},[])}function S(j=!0){if(j&&u)return u;if(!j&&d)return d;const v=x(j);return j&&(u=v),j||(d=v),v}return{init:g,destroy:y,get:S}}function qD(t,a,s,l,o,u){const{measureSize:d,startEdge:f,endEdge:p}=t,g=s[0]&&o,y=j(),x=v(),S=s.map(d),C=E();function j(){if(!g)return 0;const D=s[0];return lt(a[f]-D[f])}function v(){if(!g)return 0;const D=u.getComputedStyle(qn(l));return parseFloat(D.getPropertyValue(`margin-${p}`))}function E(){return s.map((D,O,k)=>{const U=!O,R=hh(k,O);return U?S[O]+y:R?S[O]+x:k[O+1][f]-D[f]}).map(lt)}return{slideSizes:S,slideSizesWithGaps:C,startGap:y,endGap:x}}function ID(t,a,s,l,o,u,d,f,p){const{startEdge:g,endEdge:y,direction:x}=t,S=mh(s);function C(N,D){return Ho(N).filter(O=>O%D===0).map(O=>N.slice(O,O+D))}function j(N){return N.length?Ho(N).reduce((D,O,k)=>{const U=qn(D)||0,R=U===0,T=O===Zo(N),M=o[g]-u[U][g],H=o[g]-u[O][y],V=!l&&R?x(d):0,q=!l&&T?x(f):0,F=lt(H-q-(M+V));return k&&F>a+p&&D.push(O),T&&D.push(N.length),D},[]).map((D,O,k)=>{const U=Math.max(k[O-1]||0);return N.slice(U,D)}):[]}function v(N){return S?C(N,s):j(N)}return{groupSlides:v}}function QD(t,a,s,l,o,u,d){const{align:f,axis:p,direction:g,startIndex:y,loop:x,duration:S,dragFree:C,dragThreshold:j,inViewThreshold:v,slidesToScroll:E,skipSnaps:N,containScroll:D,watchResize:O,watchSlides:k,watchDrag:U,watchFocus:R}=u,T=2,M=jD(),H=M.measure(a),V=s.map(M.measure),q=wD(p,g),F=q.measureSize(H),W=ND(F),te=vD(f,F),ie=!x&&!!D,z=x||!!D,{slideSizes:G,slideSizesWithGaps:L,startGap:oe,endGap:Y}=qD(q,H,V,s,z,o),_=ID(q,F,E,x,H,V,oe,Y,T),{snaps:K,snapsAligned:I}=RD(q,te,H,V,_),J=-qn(K)+qn(L),{snapsContained:le,scrollContainLimit:fe}=TD(F,J,I,D,T),ne=ie?le:I,{limit:ce}=DD(J,ne,x),pe=Uw(Zo(ne),y,x),we=pe.clone(),ye=Ho(s),ue=({dragHandler:Ut,scrollBody:Ba,scrollBounds:bn,options:{loop:wn}})=>{wn||bn.constrain(Ut.pointerDown()),Ba.seek()},Oe=({scrollBody:Ut,translate:Ba,location:bn,offsetLocation:wn,previousLocation:_t,scrollLooper:sn,slideLooper:Nt,dragHandler:El,animation:Er,eventHandler:ln,scrollBounds:La,options:{loop:ua}},Fn)=>{const on=Ut.settled(),Ae=!La.shouldConstrain(),We=ua?on:on&&Ae,mt=We&&!El.pointerDown();mt&&Er.stop();const Et=bn.get()*Fn+_t.get()*(1-Fn);wn.set(Et),ua&&(sn.loop(Ut.direction()),Nt.loop()),Ba.to(wn.get()),mt&&ln.emit("settle"),We||ln.emit("scroll")},ke=bD(l,o,()=>ue(ca),Ut=>Oe(ca,Ut)),tt=.68,dt=ne[pe.get()],ft=jo(dt),an=jo(dt),ot=jo(dt),rn=jo(dt),Mn=AD(ft,ot,an,rn,S,tt),wt=zD(x,ne,J,ce,rn),vn=PD(ke,pe,we,Mn,wt,rn,d),jt=kD(ce),fs=Io(),oa=HD(a,s,d,v),{slideRegistry:Nr}=MD(ie,D,ne,fe,_,ye),ia=UD(t,s,Nr,vn,Mn,fs,d,R),ca={ownerDocument:l,ownerWindow:o,eventHandler:d,containerRect:H,slideRects:V,animation:ke,axis:q,dragHandler:SD(q,t,l,o,rn,CD(q,o),ft,ke,vn,Mn,wt,pe,d,W,C,j,N,tt,U),eventStore:fs,percentOfView:W,index:pe,indexPrevious:we,limit:ce,location:ft,offsetLocation:ot,previousLocation:an,options:u,resizeHandler:ED(a,d,o,s,q,O,M),scrollBody:Mn,scrollBounds:OD(ce,ot,rn,Mn,W),scrollLooper:_D(J,ce,ot,[ft,ot,an,rn]),scrollProgress:jt,scrollSnapList:ne.map(jt.get),scrollSnaps:ne,scrollTarget:wt,scrollTo:vn,slideLooper:BD(q,F,J,G,L,K,ne,ot,s),slideFocus:ia,slidesHandler:LD(a,d,k),slidesInView:oa,slideIndexes:ye,slideRegistry:Nr,slidesToScroll:_,target:rn,translate:Bw(q,a)};return ca}function GD(){let t={},a;function s(g){a=g}function l(g){return t[g]||[]}function o(g){return l(g).forEach(y=>y(a,g)),p}function u(g,y){return t[g]=l(g).concat([y]),p}function d(g,y){return t[g]=l(g).filter(x=>x!==y),p}function f(){t={}}const p={init:s,emit:o,off:d,on:u,clear:f};return p}const VD={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function FD(t){function a(u,d){return Pw(u,d||{})}function s(u){const d=u.breakpoints||{},f=qo(d).filter(p=>t.matchMedia(p).matches).map(p=>
430d[p]).reduce((p,g)=>a(p,g),{});return a(u,f)}function l(u){return u.map(d=>qo(d.breakpoints||{})).reduce((d,f)=>d.concat(f),[]).map(t.matchMedia)}return{mergeOptions:a,optionsAtMedia:s,optionsMediaQueries:l}}function YD(t){let a=[];function s(u,d){return a=d.filter(({options:f})=>t.optionsAtMedia(f).active!==!1),a.forEach(f=>f.init(u,t)),d.reduce((f,p)=>Object.assign(f,{[p.name]:p}),{})}function l(){a=a.filter(u=>u.destroy())}return{init:s,destroy:l}}function Kc(t,a,s){const l=t.ownerDocument,o=l.defaultView,u=FD(o),d=YD(u),f=Io(),p=GD(),{mergeOptions:g,optionsAtMedia:y,optionsMediaQueries:x}=u,{on:S,off:C,emit:j}=p,v=q;let E=!1,N,D=g(VD,Kc.globalOptions),O=g(D),k=[],U,R,T;function M(){const{container:ye,slides:ue}=O;R=(hp(ye)?t.querySelector(ye):ye)||t.children[0];const ke=hp(ue)?R.querySelectorAll(ue):ue;T=[].slice.call(ke||R.children)}function H(ye){const ue=QD(t,R,T,l,o,ye,p);if(ye.loop&&!ue.slideLooper.canLoop()){const Oe=Object.assign({},ye,{loop:!1});return H(Oe)}return ue}function V(ye,ue){E||(D=g(D,ye),O=y(D),k=ue||k,M(),N=H(O),x([D,...k.map(({options:Oe})=>Oe)]).forEach(Oe=>f.add(Oe,"change",q)),O.active&&(N.translate.to(N.location.get()),N.animation.init(),N.slidesInView.init(),N.slideFocus.init(we),N.eventHandler.init(we),N.resizeHandler.init(we),N.slidesHandler.init(we),N.options.loop&&N.slideLooper.loop(),R.offsetParent&&T.length&&N.dragHandler.init(we),U=d.init(we,k)))}function q(ye,ue){const Oe=_();F(),V(g({startIndex:Oe},ye),ue),p.emit("reInit")}function F(){N.dragHandler.destroy(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),N.slidesInView.destroy(),N.animation.destroy(),d.destroy(),f.clear()}function W(){E||(E=!0,f.clear(),F(),p.emit("destroy"),p.clear())}function te(ye,ue,Oe){!O.active||E||(N.scrollBody.useBaseFriction().useDuration(ue===!0?0:O.duration),N.scrollTo.index(ye,Oe||0))}function ie(ye){const ue=N.index.add(1).get();te(ue,ye,-1)}function z(ye){const ue=N.index.add(-1).get();te(ue,ye,1)}function G(){return N.index.add(1).get()!==_()}function L(){return N.index.add(-1).get()!==_()}function oe(){return N.scrollSnapList}function Y(){return N.scrollProgress.get(N.offsetLocation.get())}function _(){return N.index.get()}function K(){return N.indexPrevious.get()}function I(){return N.slidesInView.get()}function J(){return N.slidesInView.get(!1)}function le(){return U}function fe(){return N}function ne(){return t}function ce(){return R}function pe(){return T}const we={canScrollNext:G,canScrollPrev:L,containerNode:ce,internalEngine:fe,destroy:W,off:C,on:S,emit:j,plugins:le,previousScrollSnap:K,reInit:v,rootNode:ne,scrollNext:ie,scrollPrev:z,scrollProgress:Y,scrollSnapList:oe,scrollTo:te,selectedScrollSnap:_,slideNodes:pe,slidesInView:I,slidesNotInView:J};return V(a,s),setTimeout(()=>p.emit("init"),0),we}Kc.globalOptions=void 0;function gh(t={},a=[]){const s=w.useRef(t),l=w.useRef(a),[o,u]=w.useState(),[d,f]=w.useState(),p=w.useCallback(()=>{o&&o.reInit(s.current,l.current)},[o]);return w.useEffect(()=>{fh(s.current,t)||(s.current=t,p())},[t,p]),w.useEffect(()=>{gD(l.current,a)||(l.current=a,p())},[a,p]),w.useEffect(()=>{if(hD()&&d){Kc.globalOptions=gh.globalOptions;const g=Kc(d,s.current,l.current);return u(g),()=>g.destroy()}else u(void 0)},[d,u]),[f,o]}gh.globalOptions=void 0;const Lw=w.createContext(null);function Su(){const t=w.useContext(Lw);if(!t)throw new Error("useCarousel must be used within a <Carousel />");return t}function KD({orientation:t="horizontal",opts:a,setApi:s,plugins:l,className:o,children:u,...d}){const[f,p]=gh({...a,axis:t==="horizontal"?"x":"y"},l),[g,y]=w.useState(!1),[x,S]=w.useState(!1),C=w.useCallback(N=>{N&&(y(N.canScrollPrev()),S(N.canScrollNext()))},[]),j=w.useCallback(()=>{p?.scrollPrev()},[p]),v=w.useCallback(()=>{p?.scrollNext()},[p]),E=w.useCallback(N=>{N.key==="ArrowLeft"?(N.preventDefault(),j()):N.key==="ArrowRight"&&(N.preventDefault(),v())},[j,v]);return w.useEffect(()=>{!p||!s||s(p)},[p,s]),w.useEffect(()=>{if(p)return C(p),p.on("reInit",C),p.on("select",C),()=>{p?.off("select",C)}},[p,C]),c.jsx(Lw.Provider,{"data-loc":"client/src/components/ui/carousel.tsx:106",value:{carouselRef:f,api:p,opts:a,orientation:t||(a?.axis==="y"?"vertical":"horizontal"),scrollPrev:j,scrollNext:v,canScrollPrev:g,canScrollNext:x},children:c.jsx("div",{"data-loc":"client/src/components/ui/carousel.tsx:119",onKeyDownCapture:E,className:Ce("relative",o),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...d,children:u})})}function XD({className:t,...a}){const{carouselRef:s,orientation:l}=Su();return c.jsx("div",{"data-loc":"client/src/components/ui/carousel.tsx:137",ref:s,className:"overflow-hidden","data-slot":"carousel-content",children:c.jsx("div",{"data-loc":"client/src/components/ui/carousel.tsx:142",className:Ce("flex",l==="horizontal"?"-ml-4":"-mt-4 flex-col",t),...a})})}function $D({className:t,...a}){const{orientation:s}=Su();return c.jsx("div",{"data-loc":"client/src/components/ui/carousel.tsx:158",role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:Ce("min-w-0 shrink-0 grow-0 basis-full",s==="horizontal"?"pl-4":"pt-4",t),...a})}function JD({className:t,variant:a="outline",size:s="icon",...l}){const{orientation:o,scrollPrev:u,canScrollPrev:d}=Su();return c.jsxs(be,{"data-loc":"client/src/components/ui/carousel.tsx:181","data-slot":"carousel-previous",variant:a,size:s,className:Ce("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -left-12 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:u,...l,children:[c.jsx(Cl,{"data-loc":"client/src/components/ui/carousel.tsx:196"}),c.jsx("span",{"data-loc":"client/src/components/ui/carousel.tsx:197",className:"sr-only",children:"Previous slide"})]})}function ZD({className:t,variant:a="outline",size:s="icon",...l}){const{orientation:o,scrollNext:u,canScrollNext:d}=Su();return c.jsxs(be,{"data-loc":"client/src/components/ui/carousel.tsx:211","data-slot":"carousel-next",variant:a,size:s,className:Ce("absolute size-8 rounded-full",o==="horizontal"?"top-1/2 -right-12 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",t),disabled:!d,onClick:u,...l,children:[c.jsx(Rn,{"data-loc":"client/src/components/ui/carousel.tsx:226"}),c.jsx("span",{"data-loc":"client/src/components/ui/carousel.tsx:227",className:"sr-only",children:"Next slide"})]})}function WD(){return c.jsxs("section",{"data-loc":"client/src/components/TestimonialsCarou
430sel.tsx:14",className:"container py-20 sm:py-28",children:[c.jsx(wr,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:15",eyebrow:"In the Press",title:"What the world is saying",description:"Selected words from editors, galleries and craftsmanship profiles following the house."}),c.jsx("div",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:21",className:"mt-14 max-w-5xl mx-auto",children:c.jsxs(KD,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:22",opts:{align:"start",loop:!0},className:"px-2",children:[c.jsx(XD,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:26",children:_6.map(t=>c.jsx($D,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:28",className:"md:basis-1/2 lg:basis-1/2",children:c.jsxs("div",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:32",className:"h-full rounded-2xl border border-border/60 bg-card/60 p-8 backdrop-blur flex flex-col",children:[c.jsx(pT,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:33",className:"h-8 w-8 text-accent/60"}),c.jsx("div",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:34",className:"mt-4 flex gap-1",children:Array.from({length:t.rating}).map((a,s)=>c.jsx(q2,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:36",className:"h-4 w-4 fill-[var(--brand-gold)] text-[var(--brand-gold)]"},s))}),c.jsxs("p",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:42",className:"mt-4 text-lg leading-relaxed font-display italic flex-1",children:["“",t.quote,"”"]}),c.jsxs("div",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:45",className:"mt-6 pt-5 border-t border-border/60",children:[c.jsx("p",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:46",className:"font-medium",children:t.name}),c.jsxs("p",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:47",className:"text-xs text-muted-foreground",children:[t.location," · ",t.piece]})]})]})},t.id))}),c.jsxs("div",{"data-loc":"client/src/components/TestimonialsCarousel.tsx:55",className:"flex justify-center gap-3 mt-8",children:[c.jsx(JD,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:56",className:"static translate-y-0"}),c.jsx(ZD,{"data-loc":"client/src/components/TestimonialsCarousel.tsx:57",className:"static translate-y-0"})]})]})})]})}function Do(t){return{id:t.id,handle:t.handle,name:t.name,category:t.category,wireType:t.wireType,crystalColor:t.crystalColor,price:t.price,image:t.image,images:[t.image],description:t.description,customizable:t.customizable,bestseller:t.bestseller??!1,inStock:!0,featured:!1,source:"catalog"}}function _o(t){const a=t.imageUrlsArr.length>0?t.imageUrlsArr:[];return{id:String(t.id),dbId:t.id,handle:t.handle,name:t.name,category:t.category,wireType:t.wireType??"",crystalColor:t.crystalColor??"",price:t.price/100,image:a[0]??"/placeholder.svg",images:a,description:t.description??"",customizable:!1,bestseller:!1,inStock:t.inStock===1,featured:t.featured===1,source:"db"}}const Hw="/card";function e_(t){return`${t}${Hw}`}function t_(){const t=Oo.filter(o=>o.bestseller).slice(0,4).map(Do),a=Cw.slice(0,3),[s,l]=w.useState("");return w.useEffect(()=>{zw.toDataURL(e_(window.location.origin),{width:360,margin:2,errorCorrectionLevel:"H",color:{dark:"#17132f",light:"#ffffff"}}).then(l).catch(()=>l(""))},[]),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:31",children:[c.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:33",className:"relative min-h-[100svh] flex items-center overflow-hidden",children:[c.jsx("img",{"data-loc":"client/src/pages/Home.tsx:34",src:Ma.hero,alt:"Handcrafted wire-wrapped copper brooch with teal crystal beads lit by violet and cyan light",className:"absolute inset-0 h-full w-full object-cover"}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:39",className:"absolute inset-0",style:{background:"var(--gradient-hero-overlay)"}}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:43",className:"absolute inset-0 bg-gradient-to-r from-black/50 via-transparent to-transparent"}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:45",className:"container relative z-10 pt-24",children:c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:46",className:"max-w-2xl",children:[c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:47",className:"text-xs sm:text-sm uppercase tracking-luxe text-white/80 mb-5 animate-in fade-in slide-in-from-bottom-3 duration-700",children:"Handcrafted Wire-Wrapped Jewelry · Original Art"}),c.jsxs("h1",{"data-loc":"client/src/pages/Home.tsx:50",className:"font-display text-5xl sm:text-6xl lg:text-7xl leading-[1.05] text-white animate-in fade-in slide-in-from-bottom-4 duration-700",children:["Where light is",c.jsx("br",{"data-loc":"client/src/pages/Home.tsx:52"}),c.jsx("span",{"data-loc":"client/src/pages/Home.tsx:53",className:"italic",children:"shaped by hand."})]}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:55",className:"mt-6 text-lg text-white/85 max-w-lg leading-relaxed animate-in fade-in slide-in-from-bottom-5 duration-700",children:"A house of wire-wrapped brooches, pendant necklaces, and original paintings — each one made by hand in copper and crystal. Customize a piece, or commission a world."}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:60",className:"mt-9 flex flex-wrap gap-4 animate-in fade-in slide-in-from-bottom-6 duration-700",children:[c.jsx(be,{"data-loc":"client/src/pages/Home.tsx:61",asChild:!0,size:"lg",className:"bg-gradient-brand text-white border-0 h-12 px-7 text-base",children:c.jsxs(Ee,{"data-loc":"client/src/pages/Home.tsx:66",href:"/jewelry",children:["Explore Jewelry ",c.jsx(Rn,{"data-loc":"client/src/pages/Home.tsx:67",className:"ml-2 h-4 w-4"})]})}),c.jsx(be,{"data-loc":"client/src/pages/Home.tsx:70",asChild:!0,size:"lg",variant:"outline",className:"h-12 px-7 text-base bg-white/10 text-white border-white/40 backdrop-blur hover:bg-white/20",children:c.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:76",href:"/customize",children:"Design a Piece"})})]})]})}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:83",className:"absolute bottom-8 left-1/2 -translate-x-1/2 z-10 flex flex-col items-center gap-2 text-white/70",children:[c.jsx("span",{"data-loc":"client/src/pages/Home.tsx:84",className:"text-[0.65rem] uppercase tracking-luxe",children:"Scroll"}),c.jsx("span",{"data-loc":"client/src/pages/Home.tsx:85",className:"h-10 w-px bg-gradient-to-b from-white/70 to-transparent animate-pulse"})]})]}),c.jsx("section",{"data-loc":"client/src/pages/Home.tsx:90",className:"container py-6 md:hidden","aria-labelledby":"mobile-card-connect",children:c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:91",className:"flex items-center gap-4 roun
430ded-2xl border border-border/60 bg-gradient-to-br from-[#251746] via-card to-[#10182e] p-4 shadow-[0_14px_45px_-28px_rgba(0,0,0,0.9)]",children:[c.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:92",href:Hw,"aria-label":"Open Nicole Mason’s digital business card from the QR code",className:"shrink-0 rounded-xl bg-white p-2 shadow-[0_0_24px_rgba(66,224,255,0.16)]",children:s?c.jsx("img",{"data-loc":"client/src/pages/Home.tsx:94",src:s,alt:"Tap or scan to open Nicole Mason’s digital business card",className:"h-20 w-20"}):c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:96",className:"h-20 w-20 animate-pulse rounded-lg bg-slate-200","aria-hidden":"true"})}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:99",className:"min-w-0",children:[c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:100",id:"mobile-card-connect",className:"text-[0.62rem] uppercase tracking-[0.22em] text-cyan-200",children:"Scan to connect"}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:101",className:"mt-1 font-display text-xl leading-tight",children:"Save Nicole’s contact"}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:102",className:"mt-1 text-xs leading-relaxed text-muted-foreground",children:"Tap the QR code or scan it to open her digital business card."})]})]})}),c.jsx("section",{"data-loc":"client/src/pages/Home.tsx:108",className:"container py-20 sm:py-28",children:c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:109",className:"grid gap-8 md:grid-cols-3",children:[{icon:U2,title:"Wire-Wrapped Jewelry",text:"Handcrafted copper brooches and pendant necklaces with faceted crystal beads. No two pieces alike.",href:"/jewelry"},{icon:Jp,title:"Bespoke Customization",text:"Design your own brooch or pendant — wire finish, crystal color, message tag, and piece type, previewed live.",href:"/customize"},{icon:L2,title:"Original Art",text:"A curated gallery of paintings, with commissions opened by request.",href:"/gallery"}].map((o,u)=>c.jsx(nn,{"data-loc":"client/src/pages/Home.tsx:130",delay:u*80,children:c.jsxs(Ee,{"data-loc":"client/src/pages/Home.tsx:131",href:o.href,className:"group block h-full rounded-2xl border border-border/60 bg-card/40 p-8 transition-all duration-500 hover:-translate-y-1 hover:border-accent/50 hover:shadow-[var(--glow-purple)]",children:[c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:135",className:"h-12 w-12 rounded-xl bg-gradient-brand flex items-center justify-center text-white",children:c.jsx(o.icon,{"data-loc":"client/src/pages/Home.tsx:136",className:"h-6 w-6"})}),c.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:138",className:"mt-5 font-display text-2xl",children:o.title}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:139",className:"mt-3 text-sm text-muted-foreground leading-relaxed",children:o.text}),c.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:142",className:"mt-5 inline-flex items-center text-sm text-primary",children:["Discover",c.jsx(Rn,{"data-loc":"client/src/pages/Home.tsx:144",className:"ml-1.5 h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})},o.title))})}),c.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:153",className:"container py-8 sm:py-12",children:[c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:154",className:"flex items-end justify-between gap-4 mb-12",children:[c.jsx(wr,{"data-loc":"client/src/pages/Home.tsx:155",align:"left",eyebrow:"The Collection",title:"Signature pieces",className:"mx-0"}),c.jsx(be,{"data-loc":"client/src/pages/Home.tsx:161",asChild:!0,variant:"ghost",className:"hidden sm:inline-flex shrink-0",children:c.jsxs(Ee,{"data-loc":"client/src/pages/Home.tsx:162",href:"/jewelry",children:["View all ",c.jsx(Rn,{"data-loc":"client/src/pages/Home.tsx:163",className:"ml-2 h-4 w-4"})]})})]}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:167",className:"grid grid-cols-2 lg:grid-cols-4 gap-
4305 sm:gap-7",children:t.map((o,u)=>c.jsx(nn,{"data-loc":"client/src/pages/Home.tsx:169",delay:u*70,children:c.jsx(bu,{"data-loc":"client/src/pages/Home.tsx:170",product:o})},o.id))})]}),c.jsx("section",{"data-loc":"client/src/pages/Home.tsx:177",className:"relative my-20 sm:my-28",children:c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:178",className:"container",children:c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:179",className:"relative overflow-hidden rounded-3xl",children:[c.jsx("img",{"data-loc":"client/src/pages/Home.tsx:180",src:Ma.atelier,alt:"Artisan wire-wrapping a copper brooch with crystal beads",className:"h-[520px] w-full object-cover"}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:185",className:"absolute inset-0 bg-gradient-to-r from-black/80 via-black/40 to-transparent"}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:186",className:"absolute inset-0 flex items-center",children:c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:187",className:"px-8 sm:px-14 max-w-xl",children:[c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:188",className:"text-xs uppercase tracking-luxe text-white/80 mb-4",children:"The Atelier"}),c.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:191",className:"font-display text-3xl sm:text-5xl text-white leading-tight",children:"Made by hand, by people who refuse to hurry."}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:194",className:"mt-5 text-white/85 leading-relaxed",children:"Every piece passes through a single set of hands — from the first twist of wire to the final crystal placement. Patience is our most expensive material."}),c.jsx(be,{"data-loc":"client/src/pages/Home.tsx:199",asChild:!0,size:"lg",className:"mt-8 bg-white text-black hover:bg-white/90",children:c.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:204",href:"/about",children:"Our Story"})})]})})]})})}),c.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:213",className:"container py-8 sm:py-12",children:[c.jsx(wr,{"data-loc":"client/src/pages/Home.tsx:214",eyebrow:"The Gallery",title:"Original works, ready to be lived with",description:"A rotating collection of paintings in the house palette. Each is one-of-one, with commissions opened on request."}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:219",className:"mt-14 grid grid-cols-2 md:grid-cols-3 gap-4 sm:gap-6",children:a.map((o,u)=>c.jsx(nn,{"data-loc":"client/src/pages/Home.tsx:221",delay:u*80,className:u===0?"row-span-2":"",children:c.jsxs(Ee,{"data-loc":"client/src/pages/Home.tsx:226",href:"/gallery",className:"group relative block overflow-hidden rounded-xl h-full",children:[c.jsx("img",{"data-loc":"client/src/pages/Home.tsx:230",src:o.image,alt:o.title,loading:"lazy",className:"h-full w-full object-cover transition-transform duration-700 group-hover:scale-105"}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:236",className:"absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:237",className:"absolute bottom-0 p-5 translate-y-2 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500",children:[c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:238",className:"font-display text-xl text-white",children:o.title}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:239",className:"text-sm text-white/75",children:o.artist})]})]})},o.id))}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:245",className:"mt-10 text-center",children:c.jsx(be,{"data-loc":"client/src/pages/Home.tsx:246",asChild:!0,size:"lg",variant:"outline",children:c.jsxs(Ee,{"data-loc":"client/src/pages/Home.tsx:247",href:"/gallery",children:["Enter the Gallery ",c.jsx(Rn,{"data-loc":"client/src/pages/Home.tsx:248",className:"ml-2 h-4 w-4"})]})})})]}),c.jsx("section",{"data-loc":"client/src/pages/Home.tsx:255",className:"container hidden py-8 sm:py-12 md:block",children:c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:256",className:"relative overflow-hidden rounded-3xl border border-border/60 bg-gradient-to-br from-[#251746] via-card to-[#10182e] px-6 py-9 sm:px-12 sm:py-12",children:[c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:257",className:"absolute -right-24 -top-24 h-72 w-72 rounded-full bg-cyan-400/10 blur-3xl"}),c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:258",className:"absolute -bottom-28 left-1/4 h-72 w-72 rounded-full bg-fuchsia-500/10 blur-3xl"}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:259",className:"relative grid items-center gap-8 sm:grid-cols-[1fr_auto]",children:[c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:260",className:"max-w-xl",children:[c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:261",className:"text-xs uppercase tracking-luxe text-cyan-200",children:"Meet the artist"}),c.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:262",className:"mt-3 font-display text-3xl leading-tight sm:text-4xl",children:"Save Nicole’s contact c
430ard."}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:263",className:"mt-4 max-w-lg leading-relaxed text-muted-foreground",children:"Scan once to open Nicole Mason’s digital business card, call, email, visit the house, or save her contact details directly to your phone."}),c.jsxs(Ee,{"data-loc":"client/src/pages/Home.tsx:266",href:"/card",className:"mt-5 inline-flex items-center text-sm text-primary transition-colors hover:text-cyan-300",children:["Open the digital card ",c.jsx(Rn,{"data-loc":"client/src/pages/Home.tsx:267",className:"ml-2 h-4 w-4"})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:270",className:"mx-auto rounded-2xl bg-white p-4 shadow-[0_0_40px_rgba(66,224,255,0.16)] sm:mx-0",children:[s?c.jsx("img",{"data-loc":"client/src/pages/Home.tsx:272",src:s,alt:"QR code to Nicole Mason’s digital business card",className:"h-40 w-40 sm:h-44 sm:w-44"}):c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:274",className:"h-40 w-40 animate-pulse rounded-lg bg-slate-200 sm:h-44 sm:w-44","aria-hidden":"true"}),c.jsx("p",{"data-loc":"client/src/pages/Home.tsx:276",className:"mt-3 text-center text-[0.65rem] font-medium uppercase tracking-[0.22em] text-slate-800",children:"Scan to Connect"})]})]})]})}),c.jsx(WD,{"data-loc":"client/src/pages/Home.tsx:283"}),c.jsx("section",{"data-loc":"client/src/pages/Home.tsx:286",className:"container pb-24",children:c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:287",className:"relative overflow-hidden rounded-3xl bg-gradient-brand px-8 py-16 sm:py-20 text-center",children:[c.jsx("div",{"data-loc":"client/src/pages/Home.tsx:288",className:"absolute inset-0 opacity-20 bg-[radial-gradient(circle_at_30%_20%,white,transparent_50%)]"}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:289",className:"relative",children:[c.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:290",className:"font-display text-3xl sm:text-5xl text-white leading-tight max-w-2xl mx-auto",children:"Begin the piece that will outlive the trend."}),c.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:293",className:"mt-8 flex flex-wrap justify-center gap-4",children:[c.jsx(be,{"data-loc":"client/src/pages/Home.tsx:294",asChild:!0,size:"lg",className:"bg-white text-black hover:bg-white/90 h-12 px-7",children:c.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:295",href:"/customize",children:"Design a Piece"})}),c.jsx(be,{"data-loc":"client/src/pages/Home.tsx:297",asChild:!0,size:"lg",variant:"outline",className:"h-12 px-7 border-white/60 text-white bg-transparent hover:bg-white/10",children:c.jsx(Ee,{"data-loc":"client/src/pages/Home.tsx:303",href:"/custom-orders",children:"Commission Art"})})]})]})]})})]})}function Xc(t,[a,s]){return Math.min(s,Math.max(a,t))}var n_=w.createContext(void 0);function qw(t){const a=w.useContext(n_);return t||a||"ltr"}function Iw(t){const a=w.useRef({value:t,previous:t});return w.useMemo(()=>(a.current.value!==t&&(a.current.previous=a.current.value,a.current.value=t),a.current.previous),[t])}function Qw(t){const a=t+"CollectionProvider",[s,l]=os(a),[o,u]=s(a,{collectionRef:{current:null},itemMap:new Map}),d=v=>{const{scope:E,children:N}=v,D=de.useRef(null),O=de.useRef(new Map).current;return c.jsx(o,{scope:E,itemMap:O,collectionRef:D,children:N})};d.displayName=a;const f=t+"CollectionSlot",p=hl(f),g=de.forwardRef((v,E)=>{const{scope:N,children:D}=v,O=u(f,N),k=Fe(E,O.collectionRef);return c.jsx(p,{ref:k,children:D})});g.displayName=f;const y=t+"CollectionItemSlot",x="data-radix-collection-item",S=hl(y),C=de.forwardRef((v,E)=>{const{scope:N,children:D,...O}=v,k=de.useRef(null),U=Fe(E,k),R=u(y,N);return de.useEffect(()=>(R.itemMap.set(k,{ref:k,...O}),()=>void R.itemMap.delete(k))),c.jsx(S,{[x]:"",ref:U,children:D})});C.displayName=y;function j(v){const E=u(t+"CollectionConsumer",v);return de.useCallback(()=>{const D=E.collectionRef.current;if(!D)return[];const O=Array.from(D.querySelectorAll(`[${x}]`));return Array.from(E.itemMap.values()).sort((R,T)=>O.indexOf(R.ref.current)-O.indexOf(T.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:d,Slot:g,ItemSlot:C},j,l]}var Gw=["PageUp","PageDown"],Vw=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Fw={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},jl="Slider",[xp,a_,r_]=Qw(jl),[Yw]=os(jl,[r_]),[s_,Cu]=Yw(jl),Kw=w.forwardRef((t,a)=>{const{name:s,min:l=0,max:o=100,step:u=1,orientation:d="horizontal",disabled:f=!1,minStepsBetweenThumbs:p=0,defaultValue:g=[l],value:y,onValueChange:x=()=>{},onValueCommit:S=()=>{},inverted:C=!1,form:j,...v}=t,E=w.useRef(new Set),N=w.useRef(0),O=d==="horizontal"?l_:o_,[k=[],U]=Qc({prop:y,defaultProp:g,onChange:q=>{[...E.current][N.current]?.focus(),x(q)}}),R=w.useRef(k);function T(q){const F=f_(k,q);V(q,F)}function M(q){V(q,N.current)}function H(){const q=R.current[N.current];k[N.current]!==q&&S(k)}function V(q,F,{commit:W}={commit:!1}){const te=g_(u),ie=x_(Math.round((q-l)/u)*u+l,te),z=Xc(ie,[l,o]);U((G=[])=>{const L=u_(G,z,F);if(h_(L,p*u)){N.current=L.indexOf(z);const oe=String(L)!==String(G);return oe&&W&&S(L),oe?L:G}else return G})}return c.jsx(s_,{scope:t.__scopeSlider,name:s,disabled:f,min:l,max:o,valueIndexToChangeRef:N,thumbs:E.current,values:k,orientation:d,form:j,children:c.jsx(xp.Provider,{scope:t.__scopeSlider,children:c.jsx(xp.Slot,{scope:t.__scopeSlider,children:c.jsx(O,{"aria-disabled":f,"data-disabled":f?"":void 0,...v,ref:a,onPointerDown:Me(v.onPointerDown,()=>{f||(R.current=k)}),min:l,max:o,inverted:C,onSlideStart:f?void 0:T,onSlideMove:f?void 0:M,onSlideEnd:f?void 0:H,onHomeKeyDown:()=>!f&&V(l,0,{commit:!0}),onEndKeyDown:()=>!f&&V(o,k.length-1,{commit:!0}),onStepKeyDown:({event:q,direction:F})=>{if(!f){const ie=Gw.includes(q.key)||q.shiftKey&&Vw.includes(q.key)?10:1,z=N.current,G=k[z],L=u*ie*F;V(G+L,z,{commit:!0})}}})})})})});Kw.displayName=jl;var[Xw,$w]=Yw(jl,{startEdge:"left",endEdge:"right",size:"width",direction:1}),l_=w.forwardRef((t,a)=>{const{min:s,max:l,dir:o,inverted:u,onSlideStart:d,onSlideMove:f,onSlideEnd:p,onStepKeyDown:g,...y}=t,[x,S]=w.useState(null),C=Fe(a,O=>S(O)),j=w.useRef(void 0),v=qw(o),E=v==="ltr",N=E&&!u||!E&&u;function D(O){const k=j.current||x.getBoundingClientRect(),U=[0,k.width],T=xh(U,N?[s,l]:[l,s]);return j.current=k,T(O-k.left)}return c.jsx(Xw,{scope:t.__scopeSlider,startEdge:N?"left":"right",endEdge:N?"right":"left",direction:N?1:-1,size:"width",children:c.jsx(Jw,{dir:v,"data-orientation":"horizontal",...y,ref:C,style:{...y.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:O=>{const k=D(O.clientX);d?.(k)},onSlideMove:O=>{const k=D(O.clientX);f?.(k)},onSlideEnd:()=>{j.current=void 0,p?.()},onStepKeyDown:O=>{const U=Fw[N?"from-left":"from-right"].includes(O.key);g?.({event:O,direction:U?-1:1})}})})}),o_=w.forwardRef((t,a)=>{const{min:s,max:l,inverted:o,onSlideStart:u,onSlideMove:d,onSlideEnd:f,onStepKeyDown:p,...g}=t,y=w.useRef(null),x=Fe(a,y),S=w.useRef(void 0),C=!o;function j(v){const E=S.current||y.current.getBoundingClientRect(),N=[0,E.height],O=xh(N,C?[l,s]:[s,l]);return S.current=E,O(v-E.top)}return c.jsx(Xw,{scope:t.__scopeSlider,startEdge:C?"bottom":"top",endEdge:C?"top":"bottom",size:"height",direction:C?1:-1,children:c.jsx(Jw,{"data-orientation":"vertical",...g,ref:x,style:{...g.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const E=j(v.clientY);u?.(E)},onSlideMove:v=>{const E=j(v.clientY);d?.(E)},onSlideEnd:()=>{S.current=void 0,f?.()},onStepKeyDown:v=>{const N=Fw[C?"from-bottom":"from-top"].includes(v.key);p?.({event:v,direction:N?-1:1})}})})}),Jw=w.forwardRef((t,a)=>{const{__scopeSlider:s,onSlideStart:l,onSlideMove:o,onSlideEnd:u,onHomeKeyDown:d,onEndKeyDown:f,onStepKeyDown:p,...g}=t,y=Cu(jl,s);return c.jsx(He.span,{...g,ref:a,onKeyDown:Me(t.onKeyDown,x=>{x.key==="Home"?(d(x),x.preventDefault()):x.key==="End"?(f(x),x.preventDefault()):Gw.concat(Vw).includes(x.key)&&(p(x),x.preventDefault())}),onPointerDown:Me(t.onPointerDown,x=>{const S=x.target;S.setPointerCapture(x.pointerId),x.preventDefault(),y.thumbs.has(S)?S.focus():l(x)}),onPointerMove:Me(t.onPointerMove,x=>{x.target.hasPointerCapture(x.pointerId)&&o(x)}),onPointerUp:Me(t.onPointerUp,x=>{const S=x.target;S.hasPointerCapture(x.pointerId)&&(S.releasePointerCapture(x.pointerId),u(x))})})}),Zw="SliderTrack",Ww=w.forwardRef((t,a)=>{const{__scopeSlider:s,...l}=t,o=Cu(Zw,s);return c.jsx(He.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...l,ref:a})});Ww.displayName=Zw;var yp="SliderRange",eS=w.forwardRef((t,a)=>{const{__scopeSlider:s,...l}=t,o=Cu(yp,s),u=$w(yp,s),d=w.useRef(null),f=Fe(a,d),p=o.values.length,g=o.values.map(S=>
430aS(S,o.min,o.max)),y=p>1?Math.min(...g):0,x=100-Math.max(...g);return c.jsx(He.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...l,ref:f,style:{...t.style,[u.startEdge]:y+"%",[u.endEdge]:x+"%"}})});eS.displayName=yp;var vp="SliderThumb",tS=w.forwardRef((t,a)=>{const s=a_(t.__scopeSlider),[l,o]=w.useState(null),u=Fe(a,f=>o(f)),d=w.useMemo(()=>l?s().findIndex(f=>f.ref.current===l):-1,[s,l]);return c.jsx(i_,{...t,ref:u,index:d})}),i_=w.forwardRef((t,a)=>{const{__scopeSlider:s,index:l,name:o,...u}=t,d=Cu(vp,s),f=$w(vp,s),[p,g]=w.useState(null),y=Fe(a,D=>g(D)),x=p?d.form||!!p.closest("form"):!0,S=X1(p),C=d.values[l],j=C===void 0?0:aS(C,d.min,d.max),v=d_(l,d.values.length),E=S?.[f.size],N=E?m_(E,j,f.direction):0;return w.useEffect(()=>{if(p)return d.thumbs.add(p),()=>{d.thumbs.delete(p)}},[p,d.thumbs]),c.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[f.startEdge]:`calc(${j}% + ${N}px)`},children:[c.jsx(xp.ItemSlot,{scope:t.__scopeSlider,children:c.jsx(He.span,{role:"slider","aria-label":t["aria-label"]||v,"aria-valuemin":d.min,"aria-valuenow":C,"aria-valuemax":d.max,"aria-orientation":d.orientation,"data-orientation":d.orientation,"data-disabled":d.disabled?"":void 0,tabIndex:d.disabled?void 0:0,...u,ref:y,style:C===void 0?{display:"none"}:t.style,onFocus:Me(t.onFocus,()=>{d.valueIndexToChangeRef.current=l})})}),x&&c.jsx(nS,{name:o??(d.name?d.name+(d.values.length>1?"[]":""):void 0),form:d.form,value:C},l)]})});tS.displayName=vp;var c_="RadioBubbleInput",nS=w.forwardRef(({__scopeSlider:t,value:a,...s},l)=>{const o=w.useRef(null),u=Fe(o,l),d=Iw(a);return w.useEffect(()=>{const f=o.current;if(!f)return;const p=window.HTMLInputElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(d!==a&&y){const x=new Event("input",{bubbles:!0});y.call(f,a),f.dispatchEvent(x)}},[d,a]),c.jsx(He.input,{style:{display:"none"},...s,ref:u,defaultValue:a})});nS.displayName=c_;function u_(t=[],a,s){const l=[...t];return l[s]=a,l.sort((o,u)=>o-u)}function aS(t,a,s){const u=100/(s-a)*(t-a);return Xc(u,[0,100])}function d_(t,a){return a>2?`Value ${t+1} of ${a}`:a===2?["Minimum","Maximum"][t]:void 0}function f_(t,a){if(t.length===1)return 0;const s=t.map(o=>Math.abs(o-a)),l=Math.min(...s);return s.indexOf(l)}function m_(t,a,s){const l=t/2,u=xh([0,50],[0,l]);return(l-u(a)*s)*s}function p_(t){return t.slice(0,-1).map((a,s)=>t[s+1]-a)}function h_(t,a){if(a>0){const s=p_(t);return Math.min(...s)>=a}return!0}function xh(t,a){return s=>{if(t[0]===t[1]||a[0]===a[1])return a[0];const l=(a[1]-a[0])/(t[1]-t[0]);return a[0]+l*(s-t[0])}}function g_(t){return(String(t).split(".")[1]||"").length}function x_(t,a){const s=Math.pow(10,a);return Math.round(t*s)/s}var y_=Kw,v_=Ww,b_=eS,w_=tS;function rS({className:t,defaultValue:a,value:s,min:l=0,max:o=100,...u}){const d=w.useMemo(()=>Array.isArray(s)?s:Array.isArray(a)?a:[l,o],[s,a,l,o]);return c.jsxs(y_,{"data-loc":"client/src/components/ui/slider.tsx:25","data-slot":"slider",defaultValue:a,value:s,min:l,max:o,className:Ce("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col",t),...u,children:[c.jsx(v_,{"data-loc":"client/src/components/ui/slider.tsx:37","data-slot":"slider-track",className:Ce("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),children:c.jsx(b_,{"data-loc":"client/src/components/ui/slider.tsx:43","data-slot":"slider-range",className:Ce("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")})}),Array.from({length:d.length},(f,p)=>c.jsx(w_,{"data-loc":"client/src/components/ui/slider.tsx:51","data-slot":"slider-thumb",className:"border-primary ring-ring/50 block size-4 shrink-0 rounded-full border bg-white shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"},p))]})}const S_=z2("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 Qo({className:t,variant:a,asChild:s=!1,...l}){const o=s?k1:"span";return c.jsx(o,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:Ce(S_({variant:a}),t),...l})}const pb=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t);function C_(){const[t,a]=w.useState("All"),[s,l]=w.useState([]),[o,u]=w.useState(!1),{data:d,isLoading:f}=Ze.products.list.useQuery(),p=w.useMemo(()=>d&&d.length>0?d.map(_o):Oo.map(Do),[d]),g=w.useMemo(()=>Math.max(...p.map(k=>
430k.price),200),[p]),y=w.useMemo(()=>Math.min(...p.map(k=>k.price),0),[p]),[x,S]=w.useState([0,500]),C=w.useMemo(()=>{const k=new Set(p.map(U=>U.category));return["All",...Array.from(k)]},[p]),j=w.useMemo(()=>{const k=new Set(p.map(U=>U.wireType).filter(Boolean));return Array.from(k)},[p]),v=k=>l(U=>U.includes(k)?U.filter(R=>R!==k):[...U,k]),E=w.useMemo(()=>p.filter(k=>!(t!=="All"&&k.category!==t||s.length&&!s.includes(k.wireType)||k.price<x[0]||k.price>x[1])),[p,t,s,x]),N=(t!=="All"?1:0)+s.length+(x[0]!==y||x[1]!==g?1:0),D=()=>{a("All"),l([]),S([y,g])},O=()=>c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:79",className:"space-y-8",children:[c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:80",children:[c.jsx("h3",{"data-loc":"client/src/pages/Jewelry.tsx:81",className:"text-xs uppercase tracking-luxe text-muted-foreground mb-4",children:"Category"}),c.jsx("div",{"data-loc":"client/src/pages/Jewelry.tsx:82",className:"flex flex-col gap-1",children:C.map(k=>c.jsx("button",{"data-loc":"client/src/pages/Jewelry.tsx:84",onClick:()=>a(k),className:Ce("text-left px-3 py-2 rounded-lg text-sm transition-colors",t===k?"bg-accent/10 text-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent/5"),children:k},k))})]}),j.length>0&&c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:101",children:[c.jsx("h3",{"data-loc":"client/src/pages/Jewelry.tsx:102",className:"text-xs uppercase tracking-luxe text-muted-foreground mb-4",children:"Wire Type"}),c.jsx("div",{"data-loc":"client/src/pages/Jewelry.tsx:103",className:"flex flex-col gap-2",children:j.map(k=>c.jsxs("label",{"data-loc":"client/src/pages/Jewelry.tsx:105",className:"flex items-center gap-3 text-sm cursor-pointer group",children:[c.jsx("span",{"data-loc":"client/src/pages/Jewelry.tsx:106",className:Ce("h-4 w-4 rounded border flex items-center justify-center transition-colors",s.includes(k)?"bg-gradient-brand border-transparent":"border-border group-hover:border-accent"),children:s.includes(k)&&c.jsx("span",{"data-loc":"client/src/pages/Jewelry.tsx:114",className:"h-1.5 w-1.5 rounded-sm bg-white"})}),c.jsx("input",{"data-loc":"client/src/pages/Jewelry.tsx:116",type:"checkbox",className:"sr-only",checked:s.includes(k),onChange:()=>v(k)}),c.jsx("span",{"data-loc":"client/src/pages/Jewelry.tsx:122",className:s.includes(k)?"text-foreground":"text-muted-foreground",children:k})]},k))})]}),c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:131",children:[c.jsx("h3",{"data-loc":"client/src/pages/Jewelry.tsx:132",className:"text-xs uppercase tracking-luxe text-muted-foreground mb-4",children:"Price"}),c.jsx(rS,{"data-loc":"client/src/pages/Jewelry.tsx:133",min:y,max:g,step:5,value:x,onValueChange:k=>S([k[0],k[1]]),className:"mt-2"}),c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:141",className:"mt-3 flex justify-between text-sm text-muted-foreground tabular-nums",children:[c.jsx("span",{"data-loc":"client/src/pages/Jewelry.tsx:142",children:pb(x[0])}),c.jsx("span",{"data-loc":"client/src/pages/Jewelry.tsx:143",children:pb(x[1])})]})]}),N>0&&c.jsxs(be,{"data-loc":"client/src/pages/Jewelry.tsx:148",variant:"ghost",size:"sm",onClick:D,className:"text-muted-foreground",children:[c.jsx(Wr,{"data-loc":"client/src/pages/Jewelry.tsx:149",className:"h-4 w-4 mr-1"})," Clear filters"]})]});return c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:156",className:"pt-28",children:[c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:158",className:"container",children:[c.jsx("p",{"data-loc":"client/src/pages/Jewelry.tsx:159",className:"text-xs uppercase tracking-luxe text-accent mb-3",children:"The Collection"}),c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:160",className:"flex flex-wrap items-end justify-between gap-4",children:[c.jsx("h1",{"data-loc":"client/src/pages/Jewelry.tsx:161",className:"font-display text-4xl sm:text-5xl",children:"Handcrafted Jewelry"}),c.jsx(be,{"data-loc":"client/src/pages/Jewelry.tsx:162",asChild:!0,variant:"outline",children:c.jsx(Ee,{"data-loc":"client/src/pages/Jewelry.tsx:163",href:"/customize",children:"Design your own"})})]}),c.jsx("p",{"data-loc":"client/src/pages/Jewelry.tsx:166",className:"mt-4 max-w-2xl text-muted-foreground leading-relaxed",children:"Each brooch and pendant necklace is wire-wrapped by hand using copper wire and faceted crystal beads. No two pieces are identical. Pieces marked customizable can be tailored to your crystal color and wire finish."})]}),c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:173",className:"container mt-12 grid lg:grid-cols-[240px_1fr] gap-10",children:[c.jsx("aside",{"data-loc":"client/src/pages/Jewelry.tsx:175",className:"hidden lg:block sticky top-28 self-start",children:c.jsx(O,{"data-loc":"client/src/pages/Jewelry.tsx:176"})}),c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:179",children:[c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:181",className:"lg:hidden mb-6 flex items-center justify-between",children:[c.jsxs(be,{"data-loc":"client/src/pages/Jewelry.tsx:182",variant:"outline",size:"sm",onClick:()=>u(k=>!k),children:[c.jsx(H2,{"data-loc":"client/src/pages/Jewelry.tsx:187",className:"h-4 w-4 mr-2"}),"Filters",N>0&&c.jsx(Qo,{"data-loc":"client/src/pages/Jewelry.tsx:190",className:"ml-2 bg-gradient-brand text-white",children:N})]}),c.jsxs("p",{"data-loc":"client/src/pages/Jewelry.tsx:193",className:"text-sm text-muted-foreground",children:[E.length," pieces"]})]}),o&&c.jsx("div",{"data-loc":"client/src/pages/Jewelry.tsx:197",className:"lg:hidden mb-8 rounded-2xl border border-border/60 bg-card/40 p-6",children:c.jsx(O,{"data-loc":"client/src/pages/Jewelry.tsx:198"})}),c.jsx("div",{"data-loc":"client/src/pages/Jewelry.tsx:202",className:"hidden lg:flex items-center justify-between mb-6",children:c.jsxs("p",{"data-loc":"client/src/pages/Jewelry.tsx:203",className:"text-sm text-muted-foreground",children:[E.length," pieces"]})}),f?c.jsx("div",{"data-loc":"client/src/pages/Jewelry.tsx:207",className:"flex justify-center py-24",children:c.jsx(Hn,{"data-loc":"client/src/pages/Jewelry.tsx:208",className:"h-8 w-8 animate-spin text-accent"})}):E.length===0?c.jsxs("div",{"data-loc":"client/src/pages/Jewelry.tsx:211",className:"py-24 text-center",children:[c.jsx("p",{"data-loc":"client/src/pages/Jewelry.tsx:212",className:"font-display text-2xl",children:"Nothing matches just yet"}),c.jsx("p",{"data-loc":"client/src/pages/Jewelry.tsx:213",className:"mt-2 text-muted-foreground",children:"Try widening your filters."}),c.jsx(be,{"data-loc":"client/src/pages/Jewelry.tsx:214",onClick:D,className:"mt-6 bg-gradient-brand text-white",children:"Clear filters"})]}):c.jsx("div",{"data-loc":"client/src/pages/Jewelry.tsx:219",className:"grid grid-cols-2 lg:grid-cols-3 gap-5 sm:gap-7",children:E.map((k,U)=>c.jsx(nn,{"data-loc":"client/src/pages/Jewelry.tsx:221",delay:U*50,children:c.jsx(bu,{"data-loc":"client/src/pages/Jewelry.tsx:222",product:k})},k.id))})]})]})]})}const j_=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t),hb=["Clothing","Purses","Accessories"];function N_(){const t=pu(),{addItem:a}=cs(),[s,l]=w.useState(1),o=Oo.find(C=>C.handle===t.handle),{data:u,isLoading:d}=Ze.products.byHandle.useQuery({handle:t.handle||""},{enabled:!o&&!!t.handle}),{data:f=[]}=Ze.products.list.useQuery(),p=o?Do(o):u?_o(u):null,g=!!u&&!o;if(!o&&d)return c.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:43",className:"pt-28 min-h-screen flex items-center justify-center",children:c.jsx(Hn,{"data-loc":"client/src/pages/ProductDetail.tsx:44",className:"h-8 w-8 animate-spin text-accent"})});if(!p)return c.jsx(Gc,{"data-loc":"client/src/pages/ProductDetail.tsx:50"});let y=[];if(o){const C=Oo.filter(v=>v.id!==o.id&&v.category===o.category).slice(0,3).map(Do),j=Oo.filter(v=>v.id!==o.id).slice(0,3).map(Do);y=C.length?C:j}else if(u){const C=f.filter(v=>v.id!==u.id&&v.category===u.category).slice(0,3).map(_o),j=f.filter(v=>v.id!==u.id).slice(0,3).map(_o);y=C.length?C:j}const x=g&&hb.includes(p.category)?`/closet/${p.category.toLowerCase()}`:"/jewelry",S=g&&hb.includes(p.category)?`Back to ${p.category}`:"Back to Jewelry";return c.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:81",className:"pt-28",children:c.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:82",className:"container",children:[c.jsxs(Ee,{"data-loc":"client/src/pages/ProductDetail.tsx:83",href:x,className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Cl,{"data-loc":"client/src/pages/ProductDetail.tsx:87",className:"h-4 w-4 mr-1.5"}
430)," ",S]}),c.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:90",className:"mt-8 grid lg:grid-cols-2 gap-10 lg:gap-16",children:[c.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:92",className:"relative",children:c.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:93",className:"sticky top-28 overflow-hidden rounded-2xl border border-border/60 bg-card",children:c.jsx("img",{"data-loc":"client/src/pages/ProductDetail.tsx:94",src:p.image,alt:p.name,className:"w-full aspect-square object-cover"})})}),c.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:103",className:"lg:py-4",children:[c.jsx("p",{"data-loc":"client/src/pages/ProductDetail.tsx:104",className:"text-xs uppercase tracking-luxe text-accent",children:p.category}),c.jsx("h1",{"data-loc":"client/src/pages/ProductDetail.tsx:107",className:"mt-3 font-display text-4xl sm:text-5xl",children:p.name}),c.jsx("p",{"data-loc":"client/src/pages/ProductDetail.tsx:110",className:"mt-4 text-2xl font-medium tabular-nums",children:j_(p.price)}),c.jsx("p",{"data-loc":"client/src/pages/ProductDetail.tsx:113",className:"mt-6 text-muted-foreground leading-relaxed",children:p.description}),c.jsxs("dl",{"data-loc":"client/src/pages/ProductDetail.tsx:117",className:"mt-8 grid grid-cols-2 gap-4 text-sm",children:[c.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:118",className:"rounded-xl border border-border/60 p-4",children:[c.jsx("dt",{"data-loc":"client/src/pages/ProductDetail.tsx:119",className:"text-muted-foreground text-xs uppercase tracking-wide",children:"Wire"}),c.jsx("dd",{"data-loc":"client/src/pages/ProductDetail.tsx:122",className:"mt-1 font-medium",children:p.wireType||"N/A"})]}),c.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:124",className:"rounded-xl border border-border/60 p-4",children:[c.jsx("dt",{"data-loc":"client/src/pages/ProductDetail.tsx:125",className:"text-muted-foreground text-xs uppercase tracking-wide",children:"Crystal"}),c.jsx("dd",{"data-loc":"client/src/pages/ProductDetail.tsx:128",className:"mt-1 font-medium",children:p.crystalColor||"N/A"})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:133",className:"mt-8 flex items-center gap-4",children:[c.jsxs("div",{"data-loc":"client/src/pages/ProductDetail.tsx:134",className:"flex items-center border border-border rounded-full",children:[c.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:135",onClick:()=>l(C=>Math.max(1,C-1)),className:"h-11 w-11 flex items-center justify-center hover:bg-accent/10 rounded-l-full","aria-label":"Decrease quantity",children:c.jsx(B2,{"data-loc":"client/src/pages/ProductDetail.tsx:140",className:"h-4 w-4"})}),c.jsx("span",{"data-loc":"client/src/pages/ProductDetail.tsx:142",className:"w-10 text-center tabular-nums",children:s}),c.jsx("button",{"data-loc":"client/src/pages/ProductDetail.tsx:143",onClick:()=>l(C=>C+1),className:"h-11 w-11 flex items-center justify-center hover:bg-accent/10 rounded-r-full","aria-label":"Increase quantity",children:c.jsx(Jo,{"data-loc":"client/src/pages/ProductDetail.tsx:148",className:"h-4 w-4"})})]}),c.jsx(be,{"data-loc":"client/src/pages/ProductDetail.tsx:151",size:"lg",className:"flex-1 bg-gradient-brand text-white h-11",onClick:()=>a({key:p.id,productId:p.id,name:p.name,image:p.image,price:p.price},s),children:"Add to Cart"})]}),p.customizable&&c.jsx(be,{"data-loc":"client/src/pages/ProductDetail.tsx:172",asChild:!0,variant:"outline",size:"lg",className:"mt-3 w-full h-11",children:c.jsxs(Ee,{"data-loc":"client/src/pages/ProductDetail.tsx:178",href:"/customize",children:[c.jsx(Jp,{"data-loc":"client/src/pages/ProductDetail.tsx:179",className:"h-4 w-4 mr-2"}),"Customize this piece"]})}),c.jsx(za,{"data-loc":"client/src/pages/ProductDetail.tsx:185",className:"my-8"}),c.jsxs("ul",{"data-loc":"client/src/pages/ProductDetail.tsx:187",className:"space-y-3 text-sm text-muted-foreground",children:[c.jsxs("li",{"data-loc":"client/src/pages/ProductDetail.tsx:188",className:"flex items-center gap-3",children:[c.jsx(yl,{"data-loc":"client/src/pages/ProductDetail.tsx:189",className:"h-4 w-4 text-accent"}),"Handcrafted one-of-a-kind — no two pieces are identical"]}),c.jsxs("li",{"data-loc":"client/src/pages/ProductDetail.tsx:192",className:"flex items-center gap-3",children:[c.jsx(Lo,{"data-loc":"client/src/pages/ProductDetail.tsx:193",className:"h-4 w-4 text-accent"}),"Complimentary insured shipping worldwide"]}),c.jsxs("li",{"data-loc":"client/src/pages/ProductDetail.tsx:196",className:"flex items-center gap-3",children:[c.jsx(yl,{"data-loc":"client/src/pages/ProductDetail.tsx:197",className:"h-4 w-4 text-accent"}),"Lifetime craftsmanship guarantee"]})]})]})]}),c.jsxs("section",{"data-loc":"client/src/pages/ProductDetail.tsx:205",className:"mt-24",children:[c.jsx("h2",{"data-loc":"client/src/pages/ProductDetail.tsx:206",className:"font-display text-3xl mb-10",children:"You may also love"}),c.jsx("div",{"data-loc":"client/src/pages/ProductDetail.tsx:207",className:"grid grid-cols-2 lg:grid-cols-3 gap-5 sm:gap-7",children:y.map((C,j)=>c.jsx(nn,{"data-loc":"client/src/pages/ProductDetail.tsx:209",delay:j*60,children:c.jsx(bu,{"data-loc":"client/src/pages/ProductDetail.tsx:210",product:C})},C.id))})]})]})})}const gb=[{id:"copper",label:"Copper",hex:"#B87333",price:0},{id:"antique-copper",label:"Antique Copper",hex:"#7C4B2A",price:5},{id:"silver-plated",label:"Silver-Plated",hex:"#C0C0C0",price:8},{id:"gold-plated",label:"Gold-Plated",hex:"#D4AF37",price:10}],xb=[{id:"teal",label:"Teal",color:"#00B4D8",price:0},{id:"amethyst",label:"Amethyst",color:"#9B59B6",price:0},{id:"sapphire",label:"Sapphire Blue",color:"#1A5276",price:0},{id:"rose",label:"Rose Pink",color:"#E8A0BF",price:0},{id:"clear-aurora",label:"Clear Aurora",color:"#E8F4FF",price:0},{id:"emerald",label:"Emerald Green",color:"#1E8449",price:0}],yb=[{id:"brooch",label:"Brooch",description:"Pin-back, wearable on lapels, scarves, and bags.",price:0},{id:"pendant",label:"Pendant Necklace",description:'Comes on an 18" copper chain, ready to wear.',price:5}],E_=45,vb=["Wire","Crystal","Message","Piece Type"],Pm=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t);
430function A_(){const{addItem:t}=cs(),[a,s]=w.useState(0),[l,o]=w.useState(gb[0]),[u,d]=w.useState(xb[0]),[f,p]=w.useState(""),[g,y]=w.useState(yb[0]),x=E_+l.price+u.price+g.price,S=()=>{const C=[`Wire: ${l.label}`,`Crystal: ${u.label}`,f?`Message tag: "${f}"`:null,`Type: ${g.label}`].filter(Boolean).join(" · ");t({key:`custom-${l.id}-${u.id}-${f}-${g.id}`,productId:"custom-piece",name:`Custom ${g.label} — ${u.label} Crystals`,image:Ma.configBase,price:x,meta:C}),Ge.success("Added to your selection",{description:C})};return c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:79",className:"pt-28 pb-24",children:c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:80",className:"container",children:[c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:81",className:"text-xs uppercase tracking-luxe text-accent mb-3",children:"Bespoke Configurator"}),c.jsx("h1",{"data-loc":"client/src/pages/Customize.tsx:84",className:"font-display text-4xl sm:text-5xl",children:"Design your piece"}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:87",className:"mt-3 text-muted-foreground max-w-xl",children:"Four choices. One wire-wrapped piece that is entirely yours. Adjust each step and watch the preview update in real time."}),c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:92",className:"mt-12 grid lg:grid-cols-[1fr_420px] gap-10 items-start",children:[c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:94",className:"sticky top-28 order-2 lg:order-1",children:[c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:95",className:"relative rounded-3xl overflow-hidden border border-border/60 bg-card/40 flex items-center justify-center p-10 min-h-[380px]",children:[c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:97",className:"absolute inset-0 opacity-20 blur-3xl",style:{background:`radial-gradient(circle at 50% 50%, ${u.color}, transparent 70%)`}}),c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:104",className:"relative z-10 flex flex-col items-center gap-8",children:[c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:105",className:"relative",style:{filter:`drop-shadow(0 0 32px ${u.color}80)`},children:[c.jsx("img",{"data-loc":"client/src/pages/Customize.tsx:111",src:Ma.configBase,alt:"Piece preview",className:"w-64 h-64 object-contain transition-all duration-700",style:{filter:`sepia(0.3) hue-rotate(${l.id==="silver-plated"?"180deg":l.id==="gold-plated"?"30deg":"0deg"})`}}),c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:120",className:"absolute top-[32%] left-[50%] -translate-x-1/2 h-10 w-10 rounded-full blur-sm opacity-70 transition-all duration-700",style:{background:u.color}})]}),c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:127",className:"flex flex-wrap justify-center gap-2",children:[{label:l.label,color:l.hex,type:"wire"},{label:u.label,color:u.color,type:"crystal"},...f?[{label:`"${f}"`,color:"#888",type:"msg"}]:[],{label:g.label,color:"#888",type:"piece"}].map(C=>c.jsxs("span",{"data-loc":"client/src/pages/Customize.tsx:136",className:"inline-flex items-center gap-1.5 rounded-full border border-border/60 bg-background/50 px-3 py-1 text-xs",children:[c.jsx("span",{"data-loc":"client/src/pages/Customize.tsx:140",className:"h-2.5 w-2.5 rounded-full border border-white/20",style:{background:C.color}}),C.label]},C.type))})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:152",className:"mt-6 rounded-2xl border border-border/60 bg-card/40 p-6",children:[c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:153",className:"flex items-center justify-between",children:[c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:154",children:[c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:155",className:"text-xs text-muted-foreground uppercase tracking-luxe",children:"Your price"}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:158",className:"font-display text-3xl mt-1",children:Pm(x)})]}),c.jsx(be,{"data-loc":"client/src/pages/Customize.tsx:162",size:"lg",className:"bg-gradient-brand text-white",onClick:S,children:"Add to Cart"})]}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:170",className:"mt-4 text-xs text-muted-foreground",children:"Includes complimentary message tag, insured worldwide shipping, and a lifetime craftsmanship guarantee."})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:178",className:"order-1 lg:order-2",children:[c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:180",className:"flex items-center gap-0 mb-10",children:vb.map((C,j)=>c.jsxs("button",{"data-loc":"client/src/pages/Customize.tsx:182",onClick:()=>s(j),className:"flex items-center",children:[c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:187",className:Ce("flex items-center justify-center h-8 w-8 rounded-full text-xs font-medium border transition-all duration-300",j<a?"bg-gradient-brand text-white border-transparent":j===a?"border-accent text-accent":"border-border text-muted-foreground"),children:j<a?c.jsx(yl,{"data-loc":"client/src/pages/Customize.tsx:197",className:"h-4 w-4"}):j+1}),c.jsx("span",{"data-loc":"client/src/pages/Customize.tsx:199",className:Ce("ml-2 text-sm hidden sm:block",j===a?"text-foreground":"text-muted-foreground"),children:C}
430),j<vb.length-1&&c.jsx("span",{"data-loc":"client/src/pages/Customize.tsx:208",className:Ce("mx-3 h-px flex-1 w-8 transition-colors",j<a?"bg-accent":"bg-border")})]},C))}),a===0&&c.jsx(Ec,{"data-loc":"client/src/pages/Customize.tsx:221",title:"Choose your wire",description:"The wire is the skeleton of the piece. Each finish has a distinct warmth and character.",onNext:()=>s(1),children:c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:226",className:"grid grid-cols-2 gap-4",children:gb.map(C=>c.jsxs("button",{"data-loc":"client/src/pages/Customize.tsx:228",onClick:()=>o(C),className:Ce("rounded-xl border p-5 text-left transition-all duration-300",l.id===C.id?"border-accent bg-accent/10":"border-border/60 hover:border-accent/50"),children:[c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:238",className:"h-10 w-10 rounded-full border border-white/20 mb-3",style:{background:C.hex}}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:242",className:"font-medium text-sm",children:C.label}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:243",className:"text-xs text-muted-foreground mt-1",children:C.price===0?"Included":`+${Pm(C.price)}`})]},C.id))})}),a===1&&c.jsx(Ec,{"data-loc":"client/src/pages/Customize.tsx:254",title:"Choose your crystal",description:"The crystal is the soul of the piece. Each color carries a different light.",onBack:()=>s(0),onNext:()=>s(2),children:c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:260",className:"grid grid-cols-2 gap-4",children:xb.map(C=>c.jsxs("button",{"data-loc":"client/src/pages/Customize.tsx:262",onClick:()=>d(C),className:Ce("rounded-xl border p-5 text-left transition-all duration-300",u.id===C.id?"border-accent bg-accent/10":"border-border/60 hover:border-accent/50"),children:[c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:272",className:"h-10 w-10 rounded-full border border-white/20 mb-3",style:{background:C.color}}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:276",className:"font-medium text-sm",children:C.label}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:277",className:"text-xs text-muted-foreground mt-1",children:"Included"})]},C.id))})}),a===2&&c.jsx(Ec,{"data-loc":"client/src/pages/Customize.tsx:288",title:"Add a message tag",description:"A date, a name, a word — up to 30 characters on a small copper tag. Optional.",onBack:()=>s(1),onNext:()=>s(3),children:c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:294",className:"space-y-4",children:[c.jsx(Dt,{"data-loc":"client/src/pages/Customize.tsx:295",maxLength:30,value:f,onChange:C=>p(C.target.value),placeholder:"e.g. Always in light · 06.2026",className:"bg-background/60 text-base h-12"}),c.jsxs("p",{"data-loc":"client/src/pages/Customize.tsx:302",className:"text-xs text-muted-foreground",children:[f.length,"/30 characters"]}),f&&c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:306",className:"rounded-xl border border-border/60 bg-background/40 p-5 text-center",children:[c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:307",className:"text-xs uppercase tracking-luxe text-muted-foreground mb-2",children:"Tag preview"}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:310",className:"font-display text-xl italic",children:f})]})]})}),a===3&&c.jsx(Ec,{"data-loc":"client/src/pages/Customize.tsx:319",title:"Brooch or pendant?",description:"Choose how you want to wear your piece.",onBack:()=>s(2),isLast:!0,onAdd:S,children:c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:326",className:"grid grid-cols-1 gap-4",children:yb.map(C=>c.jsxs("button",{"data-loc":"client/src/pages/Customize.tsx:328",onClick:()=>y(C),className:Ce("rounded-xl border p-5 text-left transition-all duration-300",g.id===C.id?"border-accent bg-accent/10":"border-border/60 hover:border-accent/50"),children:[c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:338",className:"flex items-center justify-between",children:[c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:339",className:"font-medium",children:C.label}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:340",className:"text-xs text-muted-foreground",children:C.price===0?"Included":`+${Pm(C.price)}`})]}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:344",className:"text-sm text-muted-foreground mt-1",children:C.description})]},C.id))})})]})]})]})})}function Ec({title:t,description:a,children:s,onBack:l,onNext:o,isLast:u,onAdd:d}){return c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:378",className:"rounded-2xl border border-border/60 bg-card/40 p-8",children:[c.jsx("h2",{"data-loc":"client/src/pages/Customize.tsx:379",className:"font-display text-2xl",children:t}),c.jsx("p",{"data-loc":"client/src/pages/Customize.tsx:380",className:"mt-2 text-sm text-muted-foreground",children:a}),c.jsx("div",{"data-loc":"client/src/pages/Customize.tsx:381",className:"mt-8",children:s}),c.jsxs("div",{"data-loc":"client/src/pages/Customize.tsx:382",className:"mt-8 flex gap-3",children:[l&&c.jsx(be,{"data-loc":"client/src/pages/Customize.tsx:384",variant:"outline",onClick:l,className:"flex-1",children:"Back"}),!u&&o&&c.jsx(be,{"data-loc":"client/src/pages/Customize.tsx:389",onClick:o,className:"flex-1 bg-gradient-brand text-white",children:"Continue"}
430),u&&d&&c.jsx(be,{"data-loc":"client/src/pages/Customize.tsx:397",onClick:d,className:"flex-1 bg-gradient-brand text-white",children:"Add to Cart"})]})]})}function ju({className:t,onKeyDown:a,onCompositionStart:s,onCompositionEnd:l,...o}){const u=ih(),{onCompositionStart:d,onCompositionEnd:f,onKeyDown:p}=Tw({onKeyDown:g=>{const y=g.nativeEvent.isComposing||u.justEndedComposing();g.key==="Enter"&&!g.shiftKey&&y||a?.(g)},onCompositionStart:g=>{u.setComposing(!0),s?.(g)},onCompositionEnd:g=>{u.markCompositionEnd(),setTimeout(()=>{u.setComposing(!1)},100),l?.(g)}});return c.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:Ce("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",t),onCompositionStart:d,onCompositionEnd:f,onKeyDown:p,...o})}const O_=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t);function T_(){const[t,a]=w.useState(null);return c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:18",className:"pt-28",children:[c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:19",className:"container",children:[c.jsx(wr,{"data-loc":"client/src/pages/Gallery.tsx:20",eyebrow:"The Gallery",title:"Original works",description:"Each painting is one-of-one, composed in the house palette of amethyst and cyan. Commissions are opened on request.",align:"left"}),c.jsx("div",{"data-loc":"client/src/pages/Gallery.tsx:28",className:"mt-14 columns-2 md:columns-3 gap-5 space-y-5",children:Cw.map((s,l)=>c.jsx(nn,{"data-loc":"client/src/pages/Gallery.tsx:30",delay:l*60,className:"break-inside-avoid",children:c.jsxs("button",{"data-loc":"client/src/pages/Gallery.tsx:31",onClick:()=>a(s),className:"group relative block w-full overflow-hidden rounded-xl border border-border/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","aria-label":`View ${s.title}`,children:[c.jsx("img",{"data-loc":"client/src/pages/Gallery.tsx:36",src:s.image,alt:s.title,loading:"lazy",className:"w-full object-cover transition-transform duration-700 group-hover:scale-105"}),s.sold&&c.jsx("span",{"data-loc":"client/src/pages/Gallery.tsx:43",className:"absolute top-3 left-3 rounded-full bg-background/80 backdrop-blur px-3 py-1 text-[0.65rem] uppercase tracking-luxe",children:"Sold"}),c.jsx("div",{"data-loc":"client/src/pages/Gallery.tsx:47",className:"absolute inset-0 bg-gradient-to-t from-black/70 via-transparent to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-500"}),c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:48",className:"absolute bottom-0 p-5 translate-y-2 opacity-0 group-hover:translate-y-0 group-hover:opacity-100 transition-all duration-500",children:[c.jsx("p",{"data-loc":"client/src/pages/Gallery.tsx:49",className:"font-display text-xl text-white leading-tight",children:s.title}),c.jsx("p",{"data-loc":"client/src/pages/Gallery.tsx:52",className:"text-sm text-white/75 mt-1",children:s.artist})]})]})},s.id))})]}),c.jsx(D_,{"data-loc":"client/src/pages/Gallery.tsx:61"}),c.jsx(ch,{"data-loc":"client/src/pages/Gallery.tsx:64",open:!!t,onOpenChange:s=>!s&&a(null),children:c.jsx(uh,{"data-loc":"client/src/pages/Gallery.tsx:65",className:"max-w-3xl glass border-border/60 p-0 overflow-hidden",children:t&&c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:67",className:"grid md:grid-cols-2",children:[c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:68",className:"relative bg-black",children:[c.jsx("img",{"data-loc":"client/src/pages/Gallery.tsx:69",src:t.image,alt:t.title,className:"h-full w-full object-cover max-h-[70vh] md:max-h-none"}),t.sold&&c.jsx("span",{"data-loc":"client/src/pages/Gallery.tsx:75",className:"absolute top-4 left-4 rounded-full bg-background/80 backdrop-blur px-3 py-1 text-xs uppercase tracking-luxe",children:"Sold"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:80",className:"p-8 flex flex-col",children:[c.jsx("button",{"data-loc":"client/src/pages/Gallery.tsx:81",onClick:()=>a(null),className:"self-end text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close",children:c.jsx(Wr,{"data-loc":"client/src/pages/Gallery.tsx:86",className:"h-5 w-5"})}),c.jsx("p",{"data-loc":"client/src/pages/Gallery.tsx:88",className:"text-xs uppercase tracking-luxe text-accent mt-4",children:t.medium}),c.jsx("h2",{"data-loc":"client/src/pages/Gallery.tsx:91",className:"mt-2 font-display text-3xl",children:t.title}),c.jsxs("p",{"data-loc":"client/src/pages/Gallery.tsx:92",className:"text-muted-foreground text-sm mt-1",children:[t.artist," · ",t.year]}),c.jsx("p",{"data-loc":"client/src/pages/Gallery.tsx:95",className:"mt-1 text-sm text-muted-foreground",children:t.dimensions}),c.jsxs("p",{"data-loc":"client/src/pages/Gallery.tsx:98",className:"mt-5 text-sm leading-relaxed italic text-muted-foreground border-l-2 border-accent/40 pl-4",children:['"',t.statement,'"']}),c.jsx("div",{"data-loc":"client/src/pages/Gallery.tsx:101",className:"mt-auto pt-6",children:t.sold?c.jsx("p",{"data-loc":"client/src/pages/Gallery.tsx:103",className:"text-muted-foreground text-sm",children:"This work has found its home. Inquire about a commission in a similar spirit."}):c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:108",className:"flex items-center justify-between",children:[c.jsx("p",{"data-loc":"client/src/pages/Gallery.tsx:109",className:"font-display text-2xl",children:O_(t.price)}),c.jsxs(be,{"data-loc":"client/src/pages/Gallery.tsx:112",className:"bg-gradient-brand text-white",children:["Inquire ",c.jsx(Rn,{"data-loc":"client/src/pages/Gallery.tsx:113",className:"ml-2 h-4 w-4"})]})]})})]})]})})})]})}function D_(){const[t,a]=w.useState({name:"",email:"",vision:""}),[s,l]=w.useState(!1),o=u=>{u.preventDefault(),l(!0),Ge.success("Commission request received",{description:"We'll be in touch within 3 business days."})};return c.jsx("section",{"data-loc":"client/src/pages/Gallery.tsx:140",className:"container mt-24 pb-24",children:c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:141",className:"grid lg:grid-cols-2 gap-14 items-start",children:[c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:142",children:[c.jsx(wr,{"data-loc":"client/src/pages/Gallery.tsx:143",eyebrow:"Commission a Work",title:"A painting made for your world",description:"Each commission begins with a conversation. Tell us what you see when you close your eyes — we'll bring it into the house palette.",align:"left"}),c.jsx("ul",{"data-loc":"client/src/pages/Gallery.tsx:149",className:"mt-8 space-y-4 text-sm text-muted-foreground",children:["Turnaround: 8–14 weeks depending on scale","Sizes from 12×12 in to 60×80 in","Oil, acrylic, or mixed media","Includes a certificate of authenticity"].map(u=>c.jsxs("li",{"data-loc":"client/src/pages/Gallery.tsx:156",className:"flex items-start gap-3",children:[c.jsx("span",{"data-loc":"client/src/pages/Gallery.tsx:157",className:"mt-1 h-1.5 w-1.5 rounded-full bg-accent shrink-0"}),u]},u))})]}),c.jsx("div",{"data-loc":"client/src/pages/Gallery.tsx:164",className:"rounded-2xl border border-border/60 bg-card/40 p-8",children:s?c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:166",className:"text-center py-8",children:[c.jsx("div",{"data-loc":"client/src/pages/Gallery.tsx:167",className:"h-14 w-14 roun
430ded-full bg-gradient-brand flex items-center justify-center mx-auto",children:c.jsx(Rn,{"data-loc":"client/src/pages/Gallery.tsx:168",className:"h-6 w-6 text-white"})}),c.jsx("h3",{"data-loc":"client/src/pages/Gallery.tsx:170",className:"mt-5 font-display text-2xl",children:"Your vision is received"}),c.jsx("p",{"data-loc":"client/src/pages/Gallery.tsx:173",className:"mt-3 text-muted-foreground",children:"We'll reach out within 3 business days to begin the conversation."})]}):c.jsxs("form",{"data-loc":"client/src/pages/Gallery.tsx:179",onSubmit:o,className:"space-y-5",children:[c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:180",children:[c.jsx("label",{"data-loc":"client/src/pages/Gallery.tsx:181",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Your name"}),c.jsx(Dt,{"data-loc":"client/src/pages/Gallery.tsx:184",required:!0,value:t.name,onChange:u=>a(d=>({...d,name:u.target.value})),placeholder:"Full name",className:"bg-background/60"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:192",children:[c.jsx("label",{"data-loc":"client/src/pages/Gallery.tsx:193",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Email"}),c.jsx(Dt,{"data-loc":"client/src/pages/Gallery.tsx:196",type:"email",required:!0,value:t.email,onChange:u=>a(d=>({...d,email:u.target.value})),placeholder:"[email protected]",className:"bg-background/60"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Gallery.tsx:207",children:[c.jsx("label",{"data-loc":"client/src/pages/Gallery.tsx:208",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Your vision"}),c.jsx(ju,{"data-loc":"client/src/pages/Gallery.tsx:211",required:!0,rows:5,value:t.vision,onChange:u=>a(d=>({...d,vision:u.target.value})),placeholder:"Describe the feeling, colors, subject, or space where it will live…",className:"bg-background/60 resize-none"})]}),c.jsx(be,{"data-loc":"client/src/pages/Gallery.tsx:222",type:"submit",size:"lg",className:"w-full bg-gradient-brand text-white",children:"Send Commission Request"})]})})]})})}var __=[" ","Enter","ArrowUp","ArrowDown"],k_=[" ","Enter"],ns="Select",[Nu,Eu,R_]=Qw(ns),[Nl]=os(ns,[R_,du]),Au=du(),[M_,Cr]=Nl(ns),[z_,P_]=Nl(ns),sS=t=>{const{__scopeSelect:a,children:s,open:l,defaultOpen:o,onOpenChange:u,value:d,defaultValue:f,onValueChange:p,dir:g,name:y,autoComplete:x,disabled:S,required:C,form:j}=t,v=Au(a),[E,N]=w.useState(null),[D,O]=w.useState(null),[k,U]=w.useState(!1),R=qw(g),[T,M]=Qc({prop:l,defaultProp:o??!1,onChange:u,caller:ns}),[H,V]=Qc({prop:d,defaultProp:f,onChange:p,caller:ns}),q=w.useRef(null),F=E?j||!!E.closest("form"):!0,[W,te]=w.useState(new Set),ie=Array.from(W).map(z=>z.props.value).join(";");return c.jsx(d3,{...v,children:c.jsxs(M_,{required:C,scope:a,trigger:E,onTriggerChange:N,valueNode:D,onValueNodeChange:O,valueNodeHasChildren:k,onValueNodeHasChildrenChange:U,contentId:sl(),value:H,onValueChange:V,open:T,onOpenChange:M,dir:R,triggerPointerDownPosRef:q,disabled:S,children:[c.jsx(Nu.Provider,{scope:a,children:c.jsx(z_,{scope:t.__scopeSelect,onNativeOptionAdd:w.useCallback(z=>{te(G=>new Set(G).add(z))},[]),onNativeOptionRemove:w.useCallback(z=>{te(G=>{const L=new Set(G);return L.delete(z),L})},[]),children:s})}),F?c.jsxs(AS,{"aria-hidden":!0,required:C,tabIndex:-1,name:y,autoComplete:x,value:H,onChange:z=>V(z.target.value),disabled:S,form:j,children:[H===void 0?c.jsx("option",{value:""}):null,Array.from(W)]},ie):null]})})};sS.displayName=ns;var lS="SelectTrigger",oS=w.forwardRef((t,a)=>{const{__scopeSelect:s,disabled:l=!1,...o}=t,u=Au(s),d=Cr(lS,s),f=d.disabled||l,p=Fe(a,d.onTriggerChange),g=Eu(s),y=w.useRef("touch"),[x,S,C]=TS(v=>{const E=g().filter(O=>!O.disabled),N=E.find(O=>O.value===d.value),D=DS(E,v,N);D!==void 0&&d.onValueChange(D.value)}),j=v=>{f||(d.onOpenChange(!0),C()),v&&(d.triggerPointerDownPosRef.current={x:Math.round(v.pageX),y:Math.round(v.pageY)})};return c.jsx(s2,{asChild:!0,...u,children:c.jsx(He.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":OS(d.value)?"":void 0,...o,ref:p,onClick:Me(o.onClick,v=>
vendor: 11,028 bytes, line 430
430{v.currentTarget.focus(),y.current!=="mouse"&&j(v)}),onPointerDown:Me(o.onPointerDown,v=>{y.current=v.pointerType;const E=v.target;E.hasPointerCapture(v.pointerId)&&E.releasePointerCapture(v.pointerId),v.button===0&&v.ctrlKey===!1&&v.pointerType==="mouse"&&(j(v),v.preventDefault())}),onKeyDown:Me(o.onKeyDown,v=>{const E=x.current!=="";!(v.ctrlKey||v.altKey||v.metaKey)&&v.key.length===1&&S(v.key),!(E&&v.key===" ")&&__.includes(v.key)&&(j(),v.preventDefault())})})})});oS.displayName=lS;var iS="SelectValue",cS=w.forwardRef((t,a)=>{const{__scopeSelect:s,className:l,style:o,children:u,placeholder:d="",...f}=t,p=Cr(iS,s),{onValueNodeHasChildrenChange:g}=p,y=u!==void 0,x=Fe(a,p.onValueNodeChange);return Ht(()=>{g(y)},[g,y]),c.jsx(He.span,{...f,ref:x,style:{pointerEvents:"none"},children:OS(p.value)?c.jsx(c.Fragment,{children:d}):u})});cS.displayName=iS;var U_="SelectIcon",uS=w.forwardRef((t,a)=>{const{__scopeSelect:s,children:l,...o}=t;return c.jsx(He.span,{"aria-hidden":!0,...o,ref:a,children:l||"▼"})});uS.displayName=U_;var B_="SelectPortal",dS=t=>c.jsx(Ip,{asChild:!0,...t});dS.displayName=B_;var as="SelectContent",fS=w.forwardRef((t,a)=>{const s=Cr(as,t.__scopeSelect),[l,o]=w.useState();if(Ht(()=>{o(new DocumentFragment)},[]),!s.open){const u=l;return u?Ko.createPortal(c.jsx(mS,{scope:t.__scopeSelect,children:c.jsx(Nu.Slot,{scope:t.__scopeSelect,children:c.jsx("div",{children:t.children})})}),u):null}return c.jsx(pS,{...t,ref:a})});fS.displayName=as;var Ln=10,[mS,jr]=Nl(as),L_="SelectContentImpl",H_=hl("SelectContent.RemoveScroll"),pS=w.forwardRef((t,a)=>{const{__scopeSelect:s,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:u,onPointerDownOutside:d,side:f,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:S,collisionPadding:C,sticky:j,hideWhenDetached:v,avoidCollisions:E,...N}=t,D=Cr(as,s),[O,k]=w.useState(null),[U,R]=w.useState(null),T=Fe(a,ne=>k(ne)),[M,H]=w.useState(null),[V,q]=w.useState(null),F=Eu(s),[W,te]=w.useState(!1),ie=w.useRef(!1);w.useEffect(()=>{if(O)return W2(O)},[O]),G2();const z=w.useCallback(ne=>{const[ce,...pe]=F().map(ue=>ue.ref.current),[we]=pe.slice(-1),ye=document.activeElement;for(const ue of ne)if(ue===ye||(ue?.scrollIntoView({block:"nearest"}),ue===ce&&U&&(U.scrollTop=0),ue===we&&U&&(U.scrollTop=U.scrollHeight),ue?.focus(),document.activeElement!==ye))return},[F,U]),G=w.useCallback(()=>z([M,O]),[z,M,O]);w.useEffect(()=>{W&&G()},[W,G]);const{onOpenChange:L,triggerPointerDownPosRef:oe}=D;w.useEffect(()=>{if(O){let ne={x:0,y:0};const ce=we=>{ne={x:Math.abs(Math.round(we.pageX)-(oe.current?.x??0)),y:Math.abs(Math.round(we.pageY)-(oe.current?.y??0))}},pe=we=>{ne.x<=10&&ne.y<=10?we.preventDefault():O.contains(we.target)||L(!1),document.removeEventListener("pointermove",ce),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",pe,{capture:!0})}}},[O,L,oe]),w.useEffect(()=>{const ne=()=>L(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[L]);const[Y,_]=TS(ne=>{const ce=F().filter(ye=>!ye.disabled),pe=ce.find(ye=>ye.ref.current===document.activeElement),we=DS(ce,ne,pe);we&&setTimeout(()=>we.ref.current.focus())}),K=w.useCallback((ne,ce,pe)=>{const we=!ie.current&&!pe;(D.value!==void 0&&D.value===ce||we)&&(H(ne),we&&(ie.current=!0))},[D.value]),I=w.useCallback(()=>O?.focus(),[O]),J=w.useCallback((ne,ce,pe)=>{const we=!ie.current&&!pe;(D.value!==void 0&&D.value===ce||we)&&q(ne)},[D.value]),le=l==="popper"?bp:hS,fe=le===bp?{side:f,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:S,collisionPadding:C,sticky:j,hideWhenDetached:v,avoidCollisions:E}:{};return c.jsx(mS,{scope:s,content:O,viewport:U,onViewportChange:R,itemRefCallback:K,selectedItem:M,onItemLeave:I,itemTextRefCallback:J,focusSelectedItem:G,selectedItemText:V,position:l,isPositioned:W,searchRef:Y,children:c.jsx(Wp,{as:H_,allowPinchZoom:!0,children:c.jsx(Zp,{asChild:!0,trapped:D.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:Me(o,ne=>{D.trigger?.focus({preventScroll:!0}),ne.preventDefault()}),children:c.jsx(lu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:d,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:c.jsx(le,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:ne=>ne.preventDefault(),...N,...fe,onPlaced:()=>te(!0),ref:T,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Me(N.onKeyDown,ne=>{const ce=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!ce&&ne.key.length===1&&_(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let we=F().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const ye=ne.target,ue=we.indexOf(ye);we=we.slice(ue+1)}setTimeout(()=>z(we)),ne.preventDefault()}})})})})})})});pS.displayName=L_;var q_="SelectItemAlignedPosition",hS=w.forwardRef((t,a)=>{const{__scopeSelect:s,onPlaced:l,...o}=t,u=Cr(as,s),d=jr(as,s),[f,p]=w.useState(null),[g,y]=w.useState(null),x=Fe(a,T=>y(T)),S=Eu(s),C=w.useRef(!1),j=w.useRef(!0),{viewport:v,selectedItem:E,selectedItemText:N,focusSelectedItem:D}=d,O=w.useCallback(()=>{if(u.trigger&&u.valueNode&&f&&g&&v&&E&&N){const T=u.trigger.getBoundingClientRect(),M=g.getBoundingClientRect(),H=u.valueNode.getBoundingClientRect(),V=N.getBoundingClientRect();if(u.dir!=="rtl"){const ye=V.left-M.left,ue=H.left-ye,Oe=T.left-ue,ke=T.width+Oe,tt=Math.max(ke,M.width),dt=window.innerWidth-Ln,ft=Xc(ue,[Ln,Math.max(Ln,dt-tt)]);f.style.minWidth=ke+"px",f.style.left=ft+"px"}else{const ye=M.right-V.right,ue=window.innerWidth-H.right-ye,Oe=window.innerWidth-T.right-ue,ke=T.width+Oe,tt=Math.max(ke,M.width),dt=window.innerWidth-Ln,ft=Xc(ue,[Ln,Math.max(Ln,dt-tt)]);f.style.minWidth=ke+"px",f.style.right=ft+"px"}const q=S(),F=window.innerHeight-Ln*2,W=v.scrollHeight,te=window.getComputedStyle(g),ie=parseInt(te.borderTopWidth,10),z=parseInt(te.paddingTop,10),G=parseInt(te.borderBottomWidth,10),L=parseInt(te.paddingBottom,10),oe=ie+z+W+L+G,Y=Math.min(E.offsetHeight*5,oe),_=window.getComputedStyle(v),K=parseInt(_.paddingTop,10),I=parseInt(_.paddingBottom,10),J=T.top+T.height/2-Ln,le=F-J,fe=E.offsetHeight/2,ne=E.offsetTop+fe,ce=ie+z+ne,pe=oe-ce;if(ce<=J){const ye=q.length>0&&E===q[q.length-1].ref.current;f.style.bottom="0px";const ue=g.clientHeight-v.offsetTop-v.offsetHeight,Oe=Math.max(le,fe+(ye?I:0)+ue+G),ke=ce+Oe;f.style.height=ke+"px"}else{const ye=q.length>0&&E===q[0].ref.current;f.style.top="0px";const Oe=Math.max(J,ie+v.offsetTop+(ye?K:0)+fe)+pe;f.style.height=Oe+"px",v.scrollTop=ce-J+v.offsetTop}f.style.margin=`${Ln}px 0`,f.style.minHeight=Y+"px",f.style.maxHeight=F+"px",l?.(),requestAnimationFrame(()=>C.current=!0)}},[S,u.trigger,u.valueNode,f,g,v,E,N,u.dir,l]);Ht(()=>O(),[O]);const[k,U]=w.useState();Ht(()=>{g&&U(window.getComputedStyle(g).zIndex)},[g]);const R=w.useCallback(T=>{T&&j.current===!0&&(O(),D?.(),j.current=!1)},[O,D]);return c.jsx(Q_,{scope:s,contentWrapper:f,shouldExpandOnScrollRef:C,onScrollButtonChange:R,children:c.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:c.jsx(He.div,{...o,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});hS.displayName=q_;var I_="SelectPopperPosition",bp=w.forwardRef((t,a)=>{const{__scopeSelect:s,align:l="start",collisionPadding:o=Ln,...u}=t,d=Au(s);return c.jsx(l2,{...d,...u,ref:a,align:l,collisionPadding:o,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});bp.displayName=I_;var[Q_,yh]=Nl(as,{}),wp="SelectViewport",gS=w.forwardRef((t,a)=>{const{__scopeSelect:s,nonce:l,...o}=t,u=jr(wp,s),d=yh(wp,s),f=Fe(a,u.onViewportChange),p=w.useRef(0);return c.jsxs(c.Fragment,{children:[c.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),c.jsx(Nu.Slot,{scope:s,children:c.jsx(He.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Me(o.onScroll,g=>{const y=g.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:S}=d;if(S?.current&&x){const C=Math.abs(p.current-y.scrollTop);if(C>0){const j=window.innerHeight-Ln*2,v=parseFloat(x.style.minHeight),E=parseFloat(x.style.height),N=Math.max(v,E);if(N<j){const D=N+C,O=Math.min(j,D),k=D-O;x.style.height=O+"px",x.style.bottom==="0px"&&(y.scrollTop=k>0?k:0,x.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});gS.displayName=wp;var xS="SelectGroup",[G_,V_]=Nl(xS),F_=w.forwardRef((t,a)=>{const{__scopeSelect:s,...l}=t,o=sl();return c.jsx(G_,{scope:s,id:o,children:c.jsx(He.div,{role:"group","aria-labelledby":o,...l,ref:a})})});F_.displayName=xS;var yS="SelectLabel",Y_=w.forwardRef((t,a)=>{const{__scopeSelect:s,...l}=t,o=V_(yS,s);return c.jsx(He.div,{id:o.id,...l,ref:a})});Y_.displayName=yS;var $c="SelectItem",[K_,vS]=Nl($c),bS=w.forwardRef((t,a)=>{const{__scopeSelect:s,value:l,disabled:o=!1,textValue:u,...d}=t,f=Cr($c,s),p=jr($c,s),g=f.value===l,[y,x]=w.useState(u??""),[S,C]=w.useState(!1),j=Fe(a,D=>p.itemRefCallback?.(D,l,o)),v=sl(),E=w.useRef("touch"),N=()=>{o||(f.onValueChange(l),f.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(K_,{scope:s,value:l,disabled:o,textId:v,isSelected:g,onItemTextChange:w.useCallback(D=>{x(O=>O||(D?.textContent??"").trim())},[]),children:c.jsx(Nu.ItemSlot,{scope:s,value:l,disabled:o,textValue:y,children:c.jsx(He.div,{role:"option","aria-labelledby":v,"data-highlighted":S?"":void 0,"aria-selected":g&&S,"data-state":g?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...d,ref:j,onFocus:Me(d.onFocus,()=>C(!0)),onBlur:Me(d.onBlur,()=>C(!1)),onClick:Me(d.onClick,()=>{E.current!=="mouse"&&N()}),onPointerUp:Me(d.onPointerUp,()=>{E.current==="mouse"&&N()}),onPointerDown:Me(d.onPointerDown,D=>{E.current=D.pointerType}),onPointerMove:Me(d.onPointerMove,D=>{E.current=D.pointerType,o?p.onItemLeave?.():E.current==="mouse"&&D.currentTarget.focu
vendor: 6,535 bytes, line 430
430s({preventScroll:!0})}),onPointerLeave:Me(d.onPointerLeave,D=>{D.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:Me(d.onKeyDown,D=>{p.searchRef?.current!==""&&D.key===" "||(k_.includes(D.key)&&N(),D.key===" "&&D.preventDefault())})})})})});bS.displayName=$c;var No="SelectItemText",wS=w.forwardRef((t,a)=>{const{__scopeSelect:s,className:l,style:o,...u}=t,d=Cr(No,s),f=jr(No,s),p=vS(No,s),g=P_(No,s),[y,x]=w.useState(null),S=Fe(a,N=>x(N),p.onItemTextChange,N=>f.itemTextRefCallback?.(N,p.value,p.disabled)),C=y?.textContent,j=w.useMemo(()=>c.jsx("option",{value:p.value,disabled:p.disabled,children:C},p.value),[p.disabled,p.value,C]),{onNativeOptionAdd:v,onNativeOptionRemove:E}=g;return Ht(()=>(v(j),()=>E(j)),[v,E,j]),c.jsxs(c.Fragment,{children:[c.jsx(He.span,{id:p.textId,...u,ref:S}),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Ko.createPortal(u.children,d.valueNode):null]})});wS.displayName=No;var SS="SelectItemIndicator",CS=w.forwardRef((t,a)=>{const{__scopeSelect:s,...l}=t;return vS(SS,s).isSelected?c.jsx(He.span,{"aria-hidden":!0,...l,ref:a}):null});CS.displayName=SS;var Sp="SelectScrollUpButton",jS=w.forwardRef((t,a)=>{const s=jr(Sp,t.__scopeSelect),l=yh(Sp,t.__scopeSelect),[o,u]=w.useState(!1),d=Fe(a,l.onScrollButtonChange);return Ht(()=>{if(s.viewport&&s.isPositioned){let f=function(){const g=p.scrollTop>0;u(g)};const p=s.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[s.viewport,s.isPositioned]),o?c.jsx(ES,{...t,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=s;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});jS.displayName=Sp;var Cp="SelectScrollDownButton",NS=w.forwardRef((t,a)=>{const s=jr(Cp,t.__scopeSelect),l=yh(Cp,t.__scopeSelect),[o,u]=w.useState(!1),d=Fe(a,l.onScrollButtonChange);return Ht(()=>{if(s.viewport&&s.isPositioned){let f=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;u(y)};const p=s.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[s.viewport,s.isPositioned]),o?c.jsx(ES,{...t,ref:d,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=s;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});NS.displayName=Cp;var ES=w.forwardRef((t,a)=>{const{__scopeSelect:s,onAutoScroll:l,...o}=t,u=jr("SelectScrollButton",s),d=w.useRef(null),f=Eu(s),p=w.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return w.useEffect(()=>()=>p(),[p]),Ht(()=>{f().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),c.jsx(He.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:Me(o.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(l,50))}),onPointerMove:Me(o.onPointerMove,()=>{u.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(l,50))}),onPointerLeave:Me(o.onPointerLeave,()=>{p()})})}),X_="SelectSeparator",$_=w.forwardRef((t,a)=>{const{__scopeSelect:s,...l}=t;return c.jsx(He.div,{"aria-hidden":!0,...l,ref:a})});$_.displayName=X_;var jp="SelectArrow",J_=w.forwardRef((t,a)=>{const{__scopeSelect:s,...l}=t,o=Au(s),u=Cr(jp,s),d=jr(jp,s);return u.open&&d.position==="popper"?c.jsx(o2,{...o,...l,ref:a}):null});J_.displayName=jp;var Z_="SelectBubbleInput",AS=w.forwardRef(({__scopeSelect:t,value:a,...s},l)=>{const o=w.useRef(null),u=Fe(l,o),d=Iw(a);return w.useEffect(()=>{const f=o.current;if(!f)return;const p=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(d!==a&&y){const x=new Event("change",{bubbles:!0});y.call(f,a),f.dispatchEvent(x)}},[d,a]),c.jsx(He.select,{...s,style:{...i2,...s.style},ref:u,defaultValue:a})});AS.displayName=Z_;function OS(t){return t===""||t===void 0}function TS(t){const a=Jr(t),s=w.useRef(""),l=w.useRef(0),o=w.useCallback(d=>{const f=s.current+d;a(f),(function p(g){s.current=g,window.clearTimeout(l.current),g!==""&&(l.current=window.setTimeout(()=>p(""),1e3))})(f)},[a]),u=w.useCallback(()=>{s.current="",window.clearTimeout(l.current)},[]);return w.useEffect(()=>()=>window.clearTimeout(l.current),[]),[s,o,u]}function DS(t,a,s){const o=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a,u=s?t.indexOf(s):-1;let d=W_(t,Math.max(u,0));o.length===1&&(d=d.filter(g=>g!==s));const p=d.find(g=>g.textValue.toLowerCase().startsWith(o.toLowerCase()));return p!==s?p:void 0}function W_(t,a){return t.map((s,l)=>t[(a+l)%t.length])}var ek=sS,tk=oS,nk=cS,ak=uS,rk=dS,sk=fS,lk=gS,ok=bS,ik=wS,ck=CS,uk=jS,dk=NS;function il({...t}){return c.jsx(ek,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...t})}function cl({...t}){return c.jsx(nk,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...t})}function ul({className:t,size:a="default",children:s,...l}){return c.jsxs(tk,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":a,className:Ce("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]: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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...l,children:[s,c.jsx(ak,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:c.jsx(Vc,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function dl({className:t,children:a,position:s="popper",align:l="center",...o}){return c.jsx(rk,{"data-loc":"client/src/components/ui/select.tsx:59",children:c.jsxs(sk,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:Ce("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
430de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",s==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:s,align:l,...o,children:[c.jsx(fk,{"data-loc":"client/src/components/ui/select.tsx:72"}),c.jsx(lk,{"data-loc":"client/src/components/ui/select.tsx:73",className:Ce("p-1",s==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:a}),c.jsx(mk,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function en({className:t,children:a,...s}){return c.jsxs(ok,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:Ce("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",t),...s,children:[c.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:c.jsx(ck,{"data-loc":"client/src/components/ui/select.tsx:116",children:c.jsx(yl,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),c.jsx(ik,{"data-loc":"client/src/components/ui/select.tsx:120",children:a})]})}function fk({className:t,...a}){return c.jsx(uk,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:Ce("flex cursor-default items-center justify-center py-1",t),...a,children:c.jsx(W5,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function mk({className:t,...a}){return c.jsx(dk,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:Ce("flex cursor-default items-center justify-center py-1",t),...a,children:c.jsx(Vc,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}const pk=[{icon:U2,title:"Bespoke Jewelry",description:"A one-of-one piece designed around your vision — metal, gemstone, and form chosen together.",cta:"Start a jewelry commission",href:"/customize"},{icon:L2,title:"Original Painting",description:"A canvas made for your space, in the house palette. From intimate studies to large-scale works.",cta:"Commission a painting",href:"/gallery"},{icon:$p,title:"Engraving & Inscription",description:"Add a date, a name, or a line of verse to any piece in the collection.",cta:"Inquire about engraving",href:"#commission-form"}];function hk(){const[t,a]=w.useState({name:"",email:"",type:"",budget:"",message:""}),[s,l]=w.useState(!1),o=u=>{u.preventDefault(),l(!0),Ge.success("Commission request received",{description:"We'll be in touch within 3 business days."})};return c.jsx("div",{"data-loc":"client/src/pages/CustomOrders.tsx:64",className:"pt-28",children:c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:65",className:"container",children:[c.jsx(wr,{"data-loc":"client/src/pages/CustomOrders.tsx:66",eyebrow:"Custom Orders",title:"Made entirely for you",description:"Every commission at The House of Glypsie begins with a conversation. Tell us what you're imagining — we'll tell you what's possible."}),c.jsx("div",{"data-loc":"client/src/pages/CustomOrders.tsx:73",className:"mt-16 grid gap-6 md:grid-cols-3",children:pk.map((u,d)=>c.jsx(nn,{"data-loc":"client/src/pages/CustomOrders.tsx:75",delay:d*80,children:c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:76",className:"rounded-2xl border border-border/60 bg-card/40 p-8 h-full flex flex-col",children:[c.jsx("div",{"data-loc":"client/src/pages/CustomOrders.tsx:77",className:"h-12 w-12 rounded-xl bg-gradient-brand flex items-center justify-center text-white",children:c.jsx(u.icon,{"data-loc":"client/src/pages/CustomOrders.tsx:78",className:"h-6 w-6"})}),c.jsx("h3",{"data-loc":"client/src/pages/CustomOrders.tsx:80",className:"mt-5 font-display text-2xl",children:u.title}),c.jsx("p",{"data-loc":"client/src/pages/CustomOrders.tsx:81",className:"mt-3 text-sm text-muted-foreground leading-relaxed flex-1",children:u.description}),c.jsx(be,{"data-loc":"client/src/pages/CustomOrders.tsx:84",asChild:!0,variant:"ghost",className:"mt-6 self-start px-0",children:c.jsxs(Ee,{"data-loc":"client/src/pages/CustomOrders.tsx:85",href:u.href,children:[u.cta,c.jsx(Rn,{"data-loc":"client/src/pages/CustomOrders.tsx:87",className:"ml-2 h-4 w-4"})]})})]})},u.title))}),c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:96",id:"commission-form",className:"mt-24 grid lg:grid-cols-2 gap-14 items-start pb-24",children:[c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:97",children:[c.jsx(wr,{"data-loc":"client/src/pages/CustomOrders.tsx:98",eyebrow:"Begin Here",title:"Tell us what you're imagining",align:"left"}),c.jsx("p",{"data-loc":"client/src/pages/CustomOrders.tsx:103",className:"mt-5 text-muted-foreground leading-relaxed",children:"Fill in as much or as little as you like. We'll follow up with questions, sketches, and a detailed quote — no obligation until you're ready to proceed."}),c.jsx("ul",{"data-loc":"client/src/pages/CustomOrders.tsx:108",className:"mt-8 space-y-3 text-sm text-muted-foreground",children:["Response within 3 business days","Complimentary design consultation","Transparent pricing before any commitment","Worldwide insured delivery"].map(u=>c.jsxs("li",{"data-loc":"client/src/pages/CustomOrders.tsx:115",className:"flex items-center gap-3",children:[c.jsx("span",{"data-loc":"client/src/pages/CustomOrders.tsx:116",className:"h-1.5 w-1.5 rounded-full bg-accent shrink-0"}),u]},u))})]}),c.jsx("div",{"data-loc":"client/src/pages/CustomOrders.tsx:123",className:"rounded-2xl border border-border/60 bg-card/40 p-8",children:s?c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:125",className:"text-center py-8",children:[c.jsx("div",{"data-loc":"client/src/pages/CustomOrders.tsx:126",className:"h-14 w-14 roun
430ded-full bg-gradient-brand flex items-center justify-center mx-auto",children:c.jsx(Rn,{"data-loc":"client/src/pages/CustomOrders.tsx:127",className:"h-6 w-6 text-white"})}),c.jsx("h3",{"data-loc":"client/src/pages/CustomOrders.tsx:129",className:"mt-5 font-display text-2xl",children:"Your request is in our hands"}),c.jsx("p",{"data-loc":"client/src/pages/CustomOrders.tsx:132",className:"mt-3 text-muted-foreground",children:"We'll reach out within 3 business days to begin the conversation."})]}):c.jsxs("form",{"data-loc":"client/src/pages/CustomOrders.tsx:138",onSubmit:o,className:"space-y-5",children:[c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:139",className:"grid sm:grid-cols-2 gap-5",children:[c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:140",children:[c.jsx("label",{"data-loc":"client/src/pages/CustomOrders.tsx:141",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Name"}),c.jsx(Dt,{"data-loc":"client/src/pages/CustomOrders.tsx:144",required:!0,value:t.name,onChange:u=>a(d=>({...d,name:u.target.value})),placeholder:"Full name",className:"bg-background/60"})]}),c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:154",children:[c.jsx("label",{"data-loc":"client/src/pages/CustomOrders.tsx:155",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Email"}),c.jsx(Dt,{"data-loc":"client/src/pages/CustomOrders.tsx:158",type:"email",required:!0,value:t.email,onChange:u=>a(d=>({...d,email:u.target.value})),placeholder:"[email protected]",className:"bg-background/60"})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:170",children:[c.jsx("label",{"data-loc":"client/src/pages/CustomOrders.tsx:171",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Commission type"}),c.jsxs(il,{"data-loc":"client/src/pages/CustomOrders.tsx:174",value:t.type,onValueChange:u=>a(d=>({...d,type:u})),required:!0,children:[c.jsx(ul,{"data-loc":"client/src/pages/CustomOrders.tsx:179",className:"bg-background/60",children:c.jsx(cl,{"data-loc":"client/src/pages/CustomOrders.tsx:180",placeholder:"Select a type"})}),c.jsxs(dl,{"data-loc":"client/src/pages/CustomOrders.tsx:182",children:[c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:183",value:"jewelry",children:"Bespoke Jewelry"}),c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:184",value:"painting",children:"Original Painting"}),c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:185",value:"engraving",children:"Engraving"}),c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:186",value:"other",children:"Other"})]})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:190",children:[c.jsx("label",{"data-loc":"client/src/pages/CustomOrders.tsx:191",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Approximate budget (USD)"}),c.jsxs(il,{"data-loc":"client/src/pages/CustomOrders.tsx:194",value:t.budget,onValueChange:u=>a(d=>({...d,budget:u})),children:[c.jsx(ul,{"data-loc":"client/src/pages/CustomOrders.tsx:198",className:"bg-background/60",children:c.jsx(cl,{"data-loc":"client/src/pages/CustomOrders.tsx:199",placeholder:"Select a range"})}),c.jsxs(dl,{"data-loc":"client/src/pages/CustomOrders.tsx:201",children:[c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:202",value:"under-2k",children:"Under $2,000"}),c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:203",value:"2k-5k",children:"$2,000 – $5,000"}),c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:204",value:"5k-10k",children:"$5,000 – $10,000"}),c.jsx(en,{"data-loc":"client/src/pages/CustomOrders.tsx:205",value:"10k-plus",children:"$10,000+"})]})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/CustomOrders.tsx:209",children:[c.jsx("label",{"data-loc":"client/src/pages/CustomOrders.tsx:210",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Your vision"}),c.jsx(ju,{"data-loc":"client/src/pages/CustomOrders.tsx:213",required:!0,rows:5,value:t.message,onChange:u=>a(d=>({...d,message:u.target.value})),placeholder:"Describe the piece you have in mind — occasion, feeling, colors, materials, or anything that matters to you…",className:"bg-background/60 resize-none"})]}),c.jsx(be,{"data-loc":"client/src/pages/CustomOrders.tsx:224",type:"submit",size:"lg",className:"w-full bg-gradient-brand text-white",children:"Send Commission Request"})]})})]})]})})}function gk(){const[t,...a]=pp;return c.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:12",className:"pt-28 pb-24",children:c.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:13",className:"container",children:[c.jsx(wr,{"data-loc":"client/src/pages/Blog.tsx:14",eyebrow:"The Journal",title:"Stories from the atelier",description:"Craft notes, gemstone lore, and the thinking behind each collection."}),t&&c.jsx(nn,{"data-loc":"client/src/pages/Blog.tsx:22",className:"mt-14",children:c.jsxs(Ee,{"data-loc":"client/src/pages/Blog.tsx:23",href:`/blog/${t.handle}`,className:"group grid md:grid-cols-2 gap-0 overflow-hidden rounded-3xl border border-border/60 bg-card/40",children:[c.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:27",className:"overflow-hidden",children:c.jsx("img",{"data-loc":"client/src/pages/Blog.tsx:28",src:t.image,alt:t.title,className:"h-72 md:h-full w-full object-cover transition-transform duration-700 group-hover:scale-105"})}),c.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:34",className:"p-8 md:p-12 flex flex-col justify-center",children:[c.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:35",className:"text-xs uppercase tracking-luxe text-accent",children:t.category}),c.jsx("h2",{"data-loc":"client/src/pages/Blog.tsx:38",className:"mt-3 font-display text-3xl sm:text-4xl leading-tight",children:t.title}),c.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:41",className:"mt-4 text-muted-foreground leading-relaxed",children:t.excerpt}),c.jsxs("p",{"data-loc":"client/src/pages/Blog.tsx:44",className:"mt-5 text-xs text-muted-foreground",children:[t.author," · ",t.date]}),c.jsxs("span",{"data-loc":"client/src/pages/Blog.tsx:47",className:"mt-6 inline-flex items-center text-sm text-primary",children:["Read more",c.jsx(Rn,{"data-loc":"client/src/pages/Blog.tsx:49",className:"ml-1.5 h-4 w-4 transition-transform group-hover:translate-x-1"})]})]})]})}),c.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:57",className:"mt-10 grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:a.map((s,l)=>c.jsx(nn,{"data-loc":"client/src/pages/Blog.tsx:59",delay:l*60,children:c.jsxs(Ee,{"data-loc":"client/src/pages/Blog.tsx:60",href:`/blog/${s.handle}`,className:"group block rounded-2xl border border-border/60 bg-card/40 overflow-hidden",children:[c.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:64",className:"overflow-hidden",children:c.jsx("img",{"data-loc":"client/src/pages/Blog.tsx:65",src:s.image,alt:s.title,loading:"lazy",className:"h-52 w-full object-cover transition-transform duration-700 group-hover:scale-105"})}),c.jsxs("div",{"data-loc":"client/src/pages/Blog.tsx:72",className:"p-6",children:[c.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:73",className:"text-xs uppercase tracking-luxe text-accent",children:s.category}),c.jsx("h3",{"data-loc":"client/src/pages/Blog.tsx:76",className:"mt-2 font-display text-xl leading-tight",children:s.title}),c.jsx("p",{"data-loc":"client/src/pages/Blog.tsx:79",className:"mt-3 text-sm text-muted-foreground line-clamp-3",children:s.excerpt}),c.jsxs("p",{"data-loc":"client/src/pages/Blog.tsx:82",className:"mt-4 text-xs text-muted-foreground",children:[s.author," · ",s.date]})]})]})},s.id))}),c.jsx("div",{"data-loc":"client/src/pages/Blog.tsx:91",className:"mt-14 text-center",children:c.jsx(be,{"data-loc":"client/src/pages/Blog.tsx:92",variant:"outline",size:"lg",children:"Load more articles"})})]})})}function xk(){const t=pu(),a=pp.find(l=>l.handle===t.handle);if(!a)return c.jsx(Gc,{"data-loc":"client/src/pages/BlogPost.tsx:10"});const s=pp.filter(l=>l.id!==a.id).slice(0,3);return c.jsxs("div",{"data-loc":"client/src/pages/BlogPost.tsx:15",className:"pt-28 pb-24",children:[c.jsxs("div",{"data-loc":"client/src/pages/BlogPost.tsx:16",className:"container max-w-3xl",children:[c.jsxs(Ee,{"data-loc":"client/src/pages/BlogPost.tsx:17",href:"/blog",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Cl,{"data-loc":"client/src/pages/BlogPost.tsx:21",className:"h-4 w-4 mr-1.5"})," The Journal"]}),c.jsx("p",{"data-loc":"client/src/pages/BlogPost.tsx:24",className:"mt-8 text-xs uppercase tracking-luxe text-accent",children:a.category}),c.jsx("h1",{"data-loc":"client/src/pages/BlogPost.tsx:27",className:"mt-3 font-display text-4xl sm:text-5xl leading-tight",children:a.title}),c.jsxs("p",{"data-loc":"client/src/pages/BlogPost.tsx:30",className:"mt-4 text-sm text-muted-foreground",children:[a.author," · ",a.date]}),c.jsx("div",{"data-loc":"client/src/pages/BlogPost.tsx:34",className:"mt-8 overflow-hidden rounded-2xl",children:c.jsx("img",{"data-loc":"client/src/pages/BlogPost.tsx:35",src:a.image,alt:a.title,className:"w-full h-72 sm:h-96 object-cover"})}),c.jsx("div",{"data-loc":"client/src/pages/BlogPost.tsx:42",className:"mt-10 prose prose-lg max-w-none text-foreground prose-headings:font-display prose-headings:text-foreground prose-p:text-muted-foreground prose-p:leading-relaxed prose-a:text-primary",children:a.body.split(`
431
432`).map((l,o)=>c.jsx("p",{"data-loc":"client/src/pages/BlogPost.tsx:44",className:"mt-5 text-muted-foreground leading-relaxed",children:l},o))})]}),s.length>0&&c.jsxs("div",{"data-loc":"client/src/pages/BlogPost.tsx:52",className:"container mt-20",children:[c.jsx("h2",{"data-loc":"client/src/pages/BlogPost.tsx:53",className:"font-display text-3xl mb-8",children:"More from the journal"}),c.jsx("div",{"data-loc":"client/src/pages/BlogPost.tsx:54",className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-6",children:s.map(l=>c.jsxs(Ee,{"data-loc":"client/src/pages/BlogPost.tsx:56",href:`/blog/${l.handle}`,className:"group block rounded-2xl border border-border/60 bg-card/40 overflow-hidden",children:[c.jsx("div",{"data-loc":"client/src/pages/BlogPost.tsx:61",className:"overflow-hidden",children:c.jsx("img",{"data-loc":"client/src/pages/BlogPost.tsx:62",src:l.image,alt:l.title,loading:"lazy",className:"h-44 w-full object-cover transition-transform duration-700 group-hover:scale-105"})}),c.jsxs("div",{"data-loc":"client/src/pages/BlogPost.tsx:69",className:"p-5",children:[c.jsx("p",{"data-loc":"client/src/pages/BlogPost.tsx:70",className:"text-xs uppercase tracking-luxe text-accent",children:l.category}),c.jsx("h3",{"data-loc":"client/src/pages/BlogPost.tsx:73",className:"mt-2 font-display text-lg leading-tight",children:l.title})]})]},l.id))})]})]})}function yk(){return c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:9",className:"pt-28 pb-24",children:[c.jsx("div",{"data-loc":"client/src/pages/About.tsx:11",className:"container",children:c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:12",className:"relative overflow-hidden rounded-3xl",children:[c.jsx("img",{"data-loc":"client/src/pages/About.tsx:13",src:Ma.atelier,alt:"The atelier at dusk",className:"h-[500px] w-full object-cover"}),c.jsx("div",{"data-loc":"client/src/pages/About.tsx:18",className:"absolute inset-0 bg-gradient-to-r from-black/80 via-black/40 to-transparent"}),c.jsx("div",{"data-loc":"client/src/pages/About.tsx:19",className:"absolute inset-0 flex items-end p-10 sm:p-16",children:c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:20",className:"max-w-xl",children:[c.jsx("p",{"data-loc":"client/src/pages/About.tsx:21",className:"text-xs uppercase tracking-luxe text-white/80 mb-3",children:"Our Story"}),c.jsx("h1",{"data-loc":"client/src/pages/About.tsx:24",className:"font-display text-4xl sm:text-6xl text-white leading-tight",children:"The House of Glypsie"})]})})]})}),c.jsx("section",{"data-loc":"client/src/pages/About.tsx:33",className:"container mt-20",children:c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:34",className:"grid lg:grid-cols-2 gap-14 items-center",children:[c.jsxs(nn,{"data-loc":"client/src/pages/About.tsx:35",children:[c.jsx("p",{"data-loc":"client/src/pages/About.tsx:36",className:"text-xs uppercase tracking-luxe text-accent mb-4",children:"Founded 2021"}),c.jsx("h2",{"data-loc":"client/src/pages/About.tsx:39",className:"font-display text-4xl sm:text-5xl leading-tight",children:"A house built on patience and light."}),c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:42",className:"mt-6 space-y-5 text-muted-foreground leading-relaxed",children:[c.jsx("p",{"data-loc":"client/src/pages/About.tsx:43",children:"The House of Glypsie was founded by Elara Voss and Marek Lindqvist in a small studio in the north of the city, where the light comes in at an angle that makes everything look like it belongs in a painting."}),c.jsx("p",{"data-loc":"client/src/pages/About.tsx:49",children:"Elara had been painting for a decade; Marek had been setting stones for fifteen years. They met at an estate auction, both reaching for the same lot of uncut amethysts. The rest followed naturally."}),c.jsx("p",{"data-loc":"client/src/pages/About.tsx:55",children:"The house is built on a single conviction: that fine jewelry and original painting are the same discipline, expressed in different materials. Both are acts of making something that holds light."})]})]}),c.jsx(nn,{"data-loc":"client/src/pages/About.tsx:62",delay:100,children:c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:63",className:"relative",children:[c.jsx("div",{"data-loc":"client/src/pages/About.tsx:64",className:"absolute -inset-4 rounded-3xl bg-gradient-brand opacity-10 blur-2xl"}),c.jsx("img",{"data-loc":"client/src/pages/About.tsx:65",src:Ma.hero,alt:"Gemstones and light",className:"relative rounded-2xl w-full h-80 object-cover"})]})})]})}),c.jsxs("section",{"data-loc":"client/src/pages/About.tsx:76",className:"container mt-24",children:[c.jsx("p",{"data-loc":"client/src/pages/About.tsx:77",className:"text-xs uppercase tracking-luxe text-accent mb-4 text-center",children:"What we believe"}),c.jsx("h2",{"data-loc":"client/src/pages/About.tsx:80",className:"font-display text-4xl text-center mb-14",children:"The principles of the house"}),c.jsx("div",{"data-loc":"client/src/pages/About.tsx:83",className:"grid md:grid-cols-3 gap-6",children:[{number:"01",title:"One pair of hands",text:"Every commission passes through a single craftsperson from first sketch to final polish. We do not divide the work."},{number:"02",title:"Patience is a material",text:"We do not rush a setting. A prong placed in haste is a prong that will fail. Time is the most honest investment we make."},{number:"03",title:"Ethical provenance",text:"Every gemstone we use is conflict-free and traceable to its mine. We can tell you where your stone was born."},{number:"04",title:"A single palette",text:"Purple and cyan run through everything we make — the jewelry, the paintings, the packaging. C
432oherence is a form of respect."},{number:"05",title:"One-of-one",text:"We do not produce multiples. Every piece in the collection is unique. If a design sells, it retires."},{number:"06",title:"Lifetime guarantee",text:"We stand behind every piece we make, forever. If a prong loosens or a stone shifts, we set it right at no charge."}].map((t,a)=>c.jsx(nn,{"data-loc":"client/src/pages/About.tsx:116",delay:a*60,children:c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:117",className:"rounded-2xl border border-border/60 bg-card/40 p-7",children:[c.jsx("p",{"data-loc":"client/src/pages/About.tsx:118",className:"font-display text-4xl text-accent/30",children:t.number}),c.jsx("h3",{"data-loc":"client/src/pages/About.tsx:119",className:"mt-3 font-display text-xl",children:t.title}),c.jsx("p",{"data-loc":"client/src/pages/About.tsx:120",className:"mt-3 text-sm text-muted-foreground leading-relaxed",children:t.text})]})},t.number))})]}),c.jsxs("section",{"data-loc":"client/src/pages/About.tsx:130",className:"container mt-24",children:[c.jsx("p",{"data-loc":"client/src/pages/About.tsx:131",className:"text-xs uppercase tracking-luxe text-accent mb-4 text-center",children:"The makers"}),c.jsx("h2",{"data-loc":"client/src/pages/About.tsx:134",className:"font-display text-4xl text-center mb-14",children:"Two people. One house."}),c.jsx("div",{"data-loc":"client/src/pages/About.tsx:137",className:"grid md:grid-cols-2 gap-8 max-w-3xl mx-auto",children:[{name:"Elara Voss",role:"Founder · Artist",bio:"Elara trained at the École des Beaux-Arts before spending a decade developing the house palette. Her paintings hang in private collections across four continents."},{name:"Marek Lindqvist",role:"Founder · Master Jeweler",bio:"Marek apprenticed under three master jewelers in Geneva before striking out on his own. He has been setting stones by hand for twenty years and shows no sign of stopping."}].map((t,a)=>c.jsx(nn,{"data-loc":"client/src/pages/About.tsx:150",delay:a*80,children:c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:151",className:"rounded-2xl border border-border/60 bg-card/40 p-8",children:[c.jsx("div",{"data-loc":"client/src/pages/About.tsx:152",className:"h-16 w-16 rounded-full bg-gradient-brand flex items-center justify-center text-white font-display text-2xl",children:t.name[0]}),c.jsx("h3",{"data-loc":"client/src/pages/About.tsx:155",className:"mt-5 font-display text-2xl",children:t.name}),c.jsx("p",{"data-loc":"client/src/pages/About.tsx:156",className:"text-xs uppercase tracking-luxe text-accent mt-1",children:t.role}),c.jsx("p",{"data-loc":"client/src/pages/About.tsx:159",className:"mt-4 text-sm text-muted-foreground leading-relaxed",children:t.bio})]})},t.name))})]}),c.jsx("section",{"data-loc":"client/src/pages/About.tsx:169",className:"container mt-24",children:c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:170",className:"relative overflow-hidden rounded-3xl bg-gradient-brand px-8 py-16 text-center",children:[c.jsx("div",{"data-loc":"client/src/pages/About.tsx:171",className:"absolute inset-0 opacity-20 bg-[radial-gradient(circle_at_30%_20%,white,transparent_50%)]"}),c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:172",className:"relative",children:[c.jsx("h2",{"data-loc":"client/src/pages/About.tsx:173",className:"font-display text-3xl sm:text-4xl text-white max-w-xl mx-auto",children:"Ready to begin something that will last?"}),c.jsxs("div",{"data-loc":"client/src/pages/About.tsx:176",className:"mt-8 flex flex-wrap justify-center gap-4",children:[c.jsx(be,{"data-loc":"client/src/pages/About.tsx:177",asChild:!0,size:"lg",className:"bg-white text-black hover:bg-white/90",children:c.jsxs(Ee,{"data-loc":"client/src/pages/About.tsx:182",href:"/custom-orders",children:["Commission a piece ",c.jsx(Rn,{"data-loc":"client/src/pages/About.tsx:183",className:"ml-2 h-4 w-4"})]})}),c.jsx(be,{"data-loc":"client/src/pages/About.tsx:186",asChild:!0,size:"lg",variant:"outline",className:"border-white/60 text-white bg-transparent hover:bg-white/10",children:c.jsx(Ee,{"data-loc":"client/src/pages/About.tsx:192",href:"/jewelry",children:"Browse the collection"})})]})]})]})})]})}const So=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t);function vk(){const{items:t,subtotal:a}=cs(),[s,l]=w.useState(null),[o,u]=w.useState(0),[d,f]=w.useState({firstName:"",lastName:"",email:"",address:"",city:"",state:"",zip:"",country:"US"}),{data:p=[],isLoading:g}=Ze.checkout.getShippingOptions.useQuery();w.useEffect(()=>{if(p.length>0&&s===null){const j=p.find(v=>
432v.name==="standard");j&&l(j.id)}},[p,s]);const{data:y}=Ze.checkout.calculateShipping.useQuery({cartTotal:Math.round(a*100),shippingRateId:s||void 0},{enabled:s!==null});w.useEffect(()=>{y&&u(y.shippingCost)},[y]);const x=a+o/100,S=Ze.checkout.createSession.useMutation({onSuccess:({url:j})=>{j&&(Ge.success("Redirecting to secure checkout…",{description:"You'll be taken to Stripe's hosted payment page."}),window.open(j,"_blank"))},onError:j=>{Ge.error("Could not start checkout",{description:j.message})}}),C=j=>{if(j.preventDefault(),!s){Ge.error("Please select a shipping method");return}S.mutate({items:t.map(v=>({name:v.name,description:v.meta,price:v.price,quantity:v.quantity,image:v.image?.startsWith("http")?v.image:void 0})),customerEmail:d.email||void 0,customerName:[d.firstName,d.lastName].filter(Boolean).join(" ")||void 0,shippingRateId:s,shippingAddress:d.address&&d.city&&d.zip?{line1:d.address,city:d.city,state:d.state,postalCode:d.zip,country:d.country}:void 0})};return t.length===0?c.jsx("div",{"data-loc":"client/src/pages/Checkout.tsx:123",className:"pt-28 pb-24 min-h-[60vh] flex items-center justify-center",children:c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:124",className:"text-center max-w-md px-4",children:[c.jsx("h1",{"data-loc":"client/src/pages/Checkout.tsx:125",className:"font-display text-4xl",children:"Your selection is empty"}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:126",className:"mt-4 text-muted-foreground",children:"Add a piece to your selection before proceeding to checkout."}),c.jsx(be,{"data-loc":"client/src/pages/Checkout.tsx:129",asChild:!0,className:"mt-8 bg-gradient-brand text-white",children:c.jsx(Ee,{"data-loc":"client/src/pages/Checkout.tsx:130",href:"/jewelry",children:"Browse Jewelry"})})]})}):c.jsx("div",{"data-loc":"client/src/pages/Checkout.tsx:138",className:"pt-28 pb-24",children:c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:139",className:"container max-w-5xl",children:[c.jsxs(Ee,{"data-loc":"client/src/pages/Checkout.tsx:140",href:"/",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Cl,{"data-loc":"client/src/pages/Checkout.tsx:144",className:"h-4 w-4 mr-1.5"})," Continue shopping"]}),c.jsx("h1",{"data-loc":"client/src/pages/Checkout.tsx:147",className:"mt-6 font-display text-4xl sm:text-5xl",children:"Checkout"}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:148",className:"mt-2 text-muted-foreground text-sm",children:"Fill in your details below, then you'll be taken to Stripe's secure hosted payment page to complete your purchase."}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:153",className:"mt-10 grid lg:grid-cols-[1fr_380px] gap-10 items-start",children:[c.jsxs("form",{"data-loc":"client/src/pages/Checkout.tsx:155",onSubmit:C,className:"space-y-8",children:[c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:157",className:"rounded-2xl border border-border/60 bg-card/40 p-7",children:[c.jsx("h2",{"data-loc":"client/src/pages/Checkout.tsx:158",className:"font-display text-xl mb-5",children:"Contact"}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:159",className:"grid sm:grid-cols-2 gap-4",children:[c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:160",children:[c.jsx("label",{"data-loc":"client/src/pages/Checkout.tsx:161",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"First name"}),c.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:164",value:d.firstName,onChange:j=>f(v=>({...v,firstName:j.target.value})),className:"bg-background/60",placeholder:"Jane"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:173",children:[c.jsx("label",{"data-loc":"client/src/pages/Checkout.tsx:174",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Last name"}),c.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:177",value:d.lastName,onChange:j=>f(v=>({...v,lastName:j.target.value})),className:"bg-background/60",placeholder:"Doe"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:186",className:"sm:col-span-2",children:[c.jsxs("label",{"data-loc":"client/src/pages/Checkout.tsx:187",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:["Email ",c.jsx("span",{"data-loc":"client/src/pages/Checkout.tsx:188",className:"text-accent",children:"*"})]}),c.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:190",type:"email",required:!0,value:d.email,onChange:j=>
432f(v=>({...v,email:j.target.value})),className:"bg-background/60",placeholder:"[email protected]"}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:200",className:"text-xs text-muted-foreground mt-1.5",children:"Your order confirmation will be sent here."})]})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:208",className:"rounded-2xl border border-border/60 bg-card/40 p-7",children:[c.jsxs("h2",{"data-loc":"client/src/pages/Checkout.tsx:209",className:"font-display text-xl mb-1 flex items-center gap-2",children:[c.jsx(Lo,{"data-loc":"client/src/pages/Checkout.tsx:210",className:"h-5 w-5 text-accent"}),"Shipping address"]}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:213",className:"text-xs text-muted-foreground mb-5",children:"Optional — you can also enter your address on the Stripe checkout page."}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:217",className:"space-y-4",children:[c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:218",children:[c.jsx("label",{"data-loc":"client/src/pages/Checkout.tsx:219",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Street address"}),c.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:222",value:d.address,onChange:j=>f(v=>({...v,address:j.target.value})),className:"bg-background/60",placeholder:"123 Main St"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:231",className:"grid sm:grid-cols-3 gap-4",children:[c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:232",className:"sm:col-span-1",children:[c.jsx("label",{"data-loc":"client/src/pages/Checkout.tsx:233",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"City"}),c.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:236",value:d.city,onChange:j=>f(v=>({...v,city:j.target.value})),className:"bg-background/60",placeholder:"New York"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:245",children:[c.jsx("label",{"data-loc":"client/src/pages/Checkout.tsx:246",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"State"}),c.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:249",value:d.state,onChange:j=>f(v=>({...v,state:j.target.value})),className:"bg-background/60",placeholder:"NY"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:258",children:[c.jsx("label",{"data-loc":"client/src/pages/Checkout.tsx:259",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"ZIP"}),c.jsx(Dt,{"data-loc":"client/src/pages/Checkout.tsx:262",value:d.zip,onChange:j=>f(v=>({...v,zip:j.target.value})),className:"bg-background/60",placeholder:"10001"})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:272",children:[c.jsx("label",{"data-loc":"client/src/pages/Checkout.tsx:273",className:"text-xs uppercase tracking-luxe text-muted-foreground block mb-2",children:"Country"}),c.jsxs(il,{"data-loc":"client/src/pages/Checkout.tsx:276",value:d.country,onValueChange:j=>
432f(v=>({...v,country:j})),children:[c.jsx(ul,{"data-loc":"client/src/pages/Checkout.tsx:280",className:"bg-background/60",children:c.jsx(cl,{"data-loc":"client/src/pages/Checkout.tsx:281"})}),c.jsx(dl,{"data-loc":"client/src/pages/Checkout.tsx:283",children:c.jsx(en,{"data-loc":"client/src/pages/Checkout.tsx:284",value:"US",children:"United States"})})]})]})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:292",className:"rounded-2xl border border-border/60 bg-card/40 p-7",children:[c.jsxs("h2",{"data-loc":"client/src/pages/Checkout.tsx:293",className:"font-display text-xl mb-1 flex items-center gap-2",children:[c.jsx(Lo,{"data-loc":"client/src/pages/Checkout.tsx:294",className:"h-5 w-5 text-accent"}),"Shipping method"]}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:297",className:"text-xs text-muted-foreground mb-5",children:"Select your preferred shipping speed. Orders over $100 qualify for free standard shipping."}),g?c.jsx("div",{"data-loc":"client/src/pages/Checkout.tsx:301",className:"flex items-center justify-center py-8",children:c.jsx(Hn,{"data-loc":"client/src/pages/Checkout.tsx:302",className:"h-5 w-5 animate-spin text-accent"})}):c.jsx("div",{"data-loc":"client/src/pages/Checkout.tsx:305",className:"space-y-3",children:p.map(j=>c.jsxs("label",{"data-loc":"client/src/pages/Checkout.tsx:307",className:"flex items-center gap-3 p-4 rounded-lg border border-border/60 cursor-pointer hover:bg-accent/5 transition-colors",children:[c.jsx("input",{"data-loc":"client/src/pages/Checkout.tsx:311",type:"radio",name:"shipping",value:j.id,checked:s===j.id,onChange:()=>l(j.id),className:"w-4 h-4"}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:319",className:"flex-1 min-w-0",children:[c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:320",className:"font-medium text-sm",children:j.label}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:321",className:"text-xs text-muted-foreground",children:j.estimatedDays})]}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:325",className:"font-medium text-sm shrink-0",children:j.formattedCost})]},j.id))})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:335",className:"rounded-2xl border border-border/60 bg-card/40 p-7",children:[c.jsxs("h2",{"data-loc":"client/src/pages/Checkout.tsx:336",className:"font-display text-xl mb-2 flex items-center gap-2",children:[c.jsx(tT,{"data-loc":"client/src/pages/Checkout.tsx:337",className:"h-5 w-5 text-accent"}),"Secure Payment"]}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:340",className:"text-sm text-muted-foreground mb-5",children:"Payment is processed by Stripe — one of the world's most trusted payment platforms. Your card details are encrypted and never touch our servers."}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:345",className:"rounded-xl border border-border/60 bg-background/40 p-5 flex items-start gap-4",children:[c.jsx(rm,{"data-loc":"client/src/pages/Checkout.tsx:346",className:"h-5 w-5 text-accent shrink-0 mt-0.5"}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:347",children:[c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:348",className:"text-sm font-medium",children:"You'll be redirected to Stripe Checkout"}),c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:351",className:"text-xs text-muted-foreground mt-1",children:"After clicking the button below, a new tab will open with Stripe's hosted payment page. Accepted: Visa, Mastercard, Amex, Apple Pay, Google Pay."})]})]})]}),c.jsx(be,{"data-loc":"client/src/pages/Checkout.tsx:360",type:"submit",size:"lg",disabled:S.isPending,className:"w-full bg-gradient-brand text-white h-13 text-base",children:S.isPending?c.jsxs(c.Fragment,{children:[c.jsx("span",{"data-loc":"client/src/pages/Checkout.tsx:368",className:"animate-spin mr-2 h-4 w-4 border-2 border-white/40 border-t-white rounded-full inline-block"}),"Opening Stripe…"]}):c.jsxs(c.Fragment,{children:[c.jsx(rT,{"data-loc":"client/src/pages/Checkout.tsx:373",className:"h-4 w-4 mr-2"}),"Pay securely · ",So(x)]})}),c.jsxs("p",{"data-loc":"client/src/pages/Checkout.tsx:379",className:"text-center text-xs text-muted-foreground",children:[c.jsx(rm,{"data-loc":"client/src/pages/Checkout.tsx:380",className:"h-3 w-3 inline mr-1"}),"256-bit SSL encryption · Powered by Stripe"]})]}),c.jsx("div",{"data-loc":"client/src/pages/Checkout.tsx:386",className:"lg:sticky lg:top-28",children:c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:387",className:"rounded-2xl border border-border/60 bg-card/40 p-7",children:[c.jsx("h2",{"data-loc":"client/src/pages/Checkout.tsx:388",className:"font-display text-xl mb-5",children:"Order summary"}),c.jsx("ul",{"data-loc":"client/src/pages/Checkout.tsx:389",className:"space-y-4",children:t.map(j=>c.jsxs("li",{"data-loc":"client/src/pages/Checkout.tsx:391",className:"flex gap-4",children:[c.jsx("img",{"data-loc":"client/src/pages/Checkout.tsx:392",src:j.image,alt:j.name,className:"h-16 w-16 rounded-xl object-cover border border-border/60 shrink-0"}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:397",className:"flex-1 min-w-0",children:[c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:398",className:"text-sm font-medium line-clamp-2",children:j.name}),j.meta&&c.jsx("p",{"data-loc":"client/src/pages/Checkout.tsx:402",className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:j.meta}),c.jsxs("p",{"data-loc":"client/src/pages/Checkout.tsx:406",className:"text-sm mt-1",children:[So(j.price)," × ",j.quantity]})]})]},j.key))}),c.jsx(za,{"data-loc":"client/src/pages/Checkout.tsx:414",className:"my-5"}),c.jsxs("dl",{"data-loc":"client/src/pages/Checkout.tsx:416",className:"space-y-2 text-sm",children:[c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:417",className:"flex justify-between",children:[c.jsx("dt",{"data-loc":"client/src/pages/Checkout.tsx:418",className:"text-muted-foreground",children:"Subtotal"}),c.jsx("dd",{"data-loc":"client/src/pages/Checkout.tsx:419",children:So(a)})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:421",className:"flex justify-between",children:[c.jsx("dt",{"data-loc":"client/src/pages/Checkout.tsx:422",className:"text-muted-foreground",children:"Shipping"}),c.jsx("dd",{"data-loc":"client/src/pages/Checkout.tsx:423",className:o===0?"text-accent":"",children:o===0?"FREE":So(o/100)})]}),c.jsx(za,{"data-loc":"client/src/pages/Checkout.tsx:427",className:"my-3"}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:428",className:"flex justify-between font-medium text-base",children:[c.jsx("dt",{"data-loc":"client/src/pages/Checkout.tsx:429",children:"Total"}),c.jsx("dd",{"data-loc":"client/src/pages/Checkout.tsx:430",children:So(x)})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Checkout.tsx:434",className:"mt-5 flex items-center gap-2 text-xs text-muted-foreground",children:[c.jsx(rm,{"data-loc":"client/src/pages/Checkout.tsx:435",className:"h-3.5 w-3.5"}),"SSL encrypted · Insured worldwide delivery"]})]})})]})]})})}function bk(){const t=q5(),s=new URLSearchParams(t).get("session_id"),{clearCart:l}=cs();return w.useEffect(()=>{l()},[]),c.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:19",className:"pt-28 pb-24 min-h-[70vh] flex items-center justify-center",children:c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:20",className:"text-center max-w-lg px-6",children:[c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:22",className:"relative mx-auto h-24 w-24",children:[c.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:23",className:"absolute inset-0 rounded-full bg-gradient-brand opacity-20 animate-ping"}),c.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:24",className:"relative h-24 w-24 rounded-full bg-gradient-brand flex items-center justify-center",children:c.jsx(eT,{"data-loc":"client/src/pages/OrderSuccess.tsx:25",className:"h-11 w-11 text-white"})})]}),c.jsx("h1",{"data-loc":"client/src/pages/OrderSuccess.tsx:29",className:"mt-8 font-display text-4xl sm:text-5xl",children:"Order confirmed"}),c.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:32",className:"mt-5 text-muted-foreground leading-relaxed",children:"Thank y
432ou for your purchase. Your handcrafted piece will be prepared with care and dispatched within 3–5 business days."}),s&&c.jsxs("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:38",className:"mt-3 text-xs text-muted-foreground font-mono bg-background/40 rounded-lg px-4 py-2 inline-block",children:["Reference: ",s.slice(-12).toUpperCase()]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:44",className:"mt-10 rounded-2xl border border-border/60 bg-card/40 p-6 text-left space-y-5",children:[c.jsx("h2",{"data-loc":"client/src/pages/OrderSuccess.tsx:45",className:"font-display text-lg text-center",children:"What happens next"}),c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:46",className:"flex items-start gap-4",children:[c.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:47",className:"h-9 w-9 rounded-full bg-accent/10 flex items-center justify-center shrink-0",children:c.jsx(Xp,{"data-loc":"client/src/pages/OrderSuccess.tsx:48",className:"h-4 w-4 text-accent"})}),c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:50",children:[c.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:51",className:"text-sm font-medium",children:"Confirmation email"}),c.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:52",className:"text-xs text-muted-foreground mt-0.5",children:"Stripe will send a receipt to the email you provided at checkout."})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:57",className:"flex items-start gap-4",children:[c.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:58",className:"h-9 w-9 rounded-full bg-accent/10 flex items-center justify-center shrink-0",children:c.jsx(Fc,{"data-loc":"client/src/pages/OrderSuccess.tsx:59",className:"h-4 w-4 text-accent"})}),c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:61",children:[c.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:62",className:"text-sm font-medium",children:"Handcrafted & dispatched"}),c.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:63",className:"text-xs text-muted-foreground mt-0.5",children:"Your piece is prepared by hand and shipped with tracking within 3–5 business days."})]})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:71",className:"mt-8 flex flex-wrap justify-center gap-4",children:[c.jsx(be,{"data-loc":"client/src/pages/OrderSuccess.tsx:72",asChild:!0,className:"bg-gradient-brand text-white",children:c.jsx(Ee,{"data-loc":"client/src/pages/OrderSuccess.tsx:73",href:"/jewelry",children:"Continue shopping"})}),c.jsx(be,{"data-loc":"client/src/pages/OrderSuccess.tsx:75",asChild:!0,variant:"outline",children:c.jsx(Ee,{"data-loc":"client/src/pages/OrderSuccess.tsx:76",href:"/",children:"Return home"})})]})]})})}var _S="AlertDialog",[wk]=os(_S,[tw]),Ua=tw(),kS=t=>{const{__scopeAlertDialog:a,...s}=t,l=Ua(a);return c.jsx(ah,{...l,...s,modal:!0})};kS.displayName=_S;var Sk="AlertDialogTrigger",Ck=w.forwardRef((t,a)=>{const{__scopeAlertDialog:s,...l}=t,o=Ua(s);return c.jsx(xw,{...o,...l,ref:a})});Ck.displayName=Sk;var jk="AlertDialogPortal",RS=t=>{const{__scopeAlertDialog:a,...s}=t,l=Ua(a);return c.jsx(rh,{...l,...s})};RS.displayName=jk;var Nk="AlertDialogOverlay",MS=w.forwardRef((t,a)=>{const{__scopeAlertDialog:s,...l}=t,o=Ua(s);return c.jsx(sh,{...o,...l,ref:a})});MS.displayName=Nk;var fl="AlertDialogContent",[Ek,Ak]=wk(fl),Ok=M1("AlertDialogContent"),zS=w.forwardRef((t,a)=>{const{__scopeAlertDialog:s,children:l,...o}=t,u=Ua(s),d=w.useRef(null),f=Fe(a,d),p=w.useRef(null);return c.jsx(w6,{contentName:fl,titleName:PS,docsSlug:"alert-dialog",children:c.jsx(Ek,{scope:s,cancelRef:p,children:c.jsxs(lh,{role:"alertdialog",...u,...o,ref:f,onOpenAutoFocus:Me(o.onOpenAutoFocus,g=>{g.preventDefault(),p.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[c.jsx(Ok,{children:l}),c.jsx(Dk,{contentRef:d})]})})})});zS.displayName=fl;var PS="AlertDialogTitle",US=w.forwardRef((t,a)=>{const{__scopeAlertDialog:s,...l}=t,o=Ua(s);return c.jsx(oh,{...o,...l,ref:a})});US.displayName=PS;var BS="AlertDialogDescription",LS=w.forwardRef((t,a)=>{const{__scopeAlertDialog:s,...l}=t,o=Ua(s);return c.jsx(N6,{...o,...l,ref:a})});LS.displayName=BS;var Tk="AlertDialogAction",HS=w.forwardRef((t,a)=>{const{__scopeAlertDialog:s,...l}=t,o=Ua(s);return c.jsx(vu,{...o,...l,ref:a})});HS.displayName=Tk;var qS="AlertDialogCancel",IS=w.forwardRef((t,a)=>{const{__scopeAlertDialog:s,...l}=t,{cancelRef:o}=Ak(qS,s),u=Ua(s),d=Fe(a,o);return c.jsx(vu,{...u,...l,ref:d})});IS.displayName=qS;var Dk=({contentRef:t})=>{const a=`\`${fl}\` requires a description for the component to be accessible for screen reader users.
433
434You can add a description to the \`${fl}\` by passing a \`${BS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
435
436Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${fl}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
437
438For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return w.useEffect(()=>{document.getElementById(t.current?.getAttribute("aria-describedby"))||console.warn(a)},[a,t]),null},_k=kS,kk=RS,Rk=MS,Mk=zS,zk=HS,Pk=IS,Uk=US,Bk=LS;function Lk({...t}){return c.jsx(_k,{"data-loc":"client/src/components/ui/alert-dialog.tsx:10","data-slot":"alert-dialog",...t})}function Hk({...t}){return c.jsx(kk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:25","data-slot":"alert-dialog-portal",...t})}function qk({className:t,...a}){return c.jsx(Rk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:34","data-slot":"alert-dialog-overlay",className:Ce("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function Ik({className:t,...a}){return c.jsxs(Hk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:50",children:[c.jsx(qk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:51"}),c.jsx(Mk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:52","data-slot":"alert-dialog-content",className:Ce("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...a})]})}function Qk({className:t,...a}){return c.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:69","data-slot":"alert-dialog-header",className:Ce("flex flex-col gap-2 text-center sm:text-left",t),...a})}function Gk({className:t,...a}){return c.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:82","data-slot":"alert-dialog-footer",className:Ce("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t),...a})}function Vk({className:t,...a}){return c.jsx(Uk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:98","data-slot":"alert-dialog-title",className:Ce("text-lg font-semibold",t),...a})}function Fk({className:t,...a}){return c.jsx(Bk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:111","data-slot":"alert-dialog-description",className:Ce("text-muted-foreground text-sm",t),...a})}function Yk({className:t,...a}){return c.jsx(zk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:124",className:Ce(Kp(),t),...a})}function Kk({className:t,...a}){return c.jsx(Pk,{"data-loc":"client/src/components/ui/alert-dialog.tsx:136",className:Ce(Kp({variant:"outline"}),t),...a})}const vh=()=>{const t="https://manus.im",a="ik8tHCvBWGDjQs8mcyUaqr",s=`${window.location.origin}/api/oauth/callback`,l=btoa(s),o=new URL(`${t}/app-auth`);return o.searchParams.set("appId",a),o.searchParams.set("redirectUri",s),o.searchParams.set("state",l),o.searchParams.set("type","signIn"),o.toString()};function bh(t){const{redirectOnUnauthenticated:a=!1,redirectPath:s=vh()}={},l=Ze.useUtils(),o=Ze.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),u=Ze.auth.logout.useMutation({onSuccess:()=>{l.auth.me.setData(void 0,null)}}),d=w.useCallback(async()=>{try{await u.mutateAsync()}catch(p){if(p instanceof ml&&p.data?.code==="UNAUTHORIZED")return;throw p}finally{try{sessionStorage.removeItem("manus-cookie")}catch{}l.auth.me.setData(void 0,null),await l.auth.me.invalidate()}},[u,l]),f=w.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(o.data)),{user:o.data??null,loading:o.isLoading||u.isPending,error:o.error??u.error??null,isAuthenticated:!!o.data}),[o.data,o.error,o.isLoading,u.error,u.isPending]);return w.useEffect(()=>{a&&(o.isLoading||u.isPending||f.user||typeof window>"u"||window.location.pathname!==s&&(window.location.href=s))},[a,s,u.isPending,o.isLoading,f.user]),{...f,refresh:()=>o.refetch(),logout:d}}function pr({className:t,...a}){return c.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:Ce("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",t),...a})}const Xk=["pending","paid","processing","shipped","delivered","cancelled"],$k=["processing","shipped","in_transit","out_for_delivery","delivered","exception"],Jk=["USPS","UPS","FedEx","DHL","Other"],Ac=t=>t.replaceAll("_"," ").replace(/\b\w/g,a=>a.toUpperCase()),bb=t=>["delivered"].includes(t)?"bg-emerald-500/10 text-emerald-700 border-emerald-500/20":["shipped","in_transit","out_for_delivery"].includes(t)?"bg-cyan-500/10 text-cyan-700 border-cyan-500/20":["cancelled","exception"].includes(t)?"bg-red-500/10 text-red-700 border-red-500/20":"bg-purple-500/10 text-purple-700 border-purple-500/20",wb=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(t/100),Sb=t=>new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),Zk=t=>t?new Date(t).toISOString().slice(0,10):"",Oc=()=>({carrier:"USPS",trackingNumber:"",trackingUrl:"",estimatedDeliveryDate:"",status:"shipped",lastStatusUpdate:"Shipment created"});function Wk(){const t=Ze.useUtils(),[a,s]=w.useState(null),[l,o]=w.useState(!1),[u,d]=w.useState(Oc()),f=Ze.orders.adminList.useQuery(),p=Ze.orders.adminGetOrderDetail.useQuery({orderId:a??0},{enabled:a!==null}),g=async()=>
438{await Promise.all([t.orders.adminList.invalidate(),a?t.orders.adminGetOrderDetail.invalidate({orderId:a}):Promise.resolve()])},y=Ze.orders.updateStatus.useMutation({onSuccess:async()=>{await g(),Ge.success("Order status updated")},onError:O=>Ge.error("Could not update order",{description:O.message})}),x=Ze.orders.createShipment.useMutation({onSuccess:async()=>{await g(),o(!1),d(Oc()),Ge.success("Shipment tracking added")},onError:O=>Ge.error("Could not add shipment",{description:O.message})}),S=Ze.orders.updateShipment.useMutation({onSuccess:async()=>{await g(),o(!1),d(Oc()),Ge.success("Shipment updated")},onError:O=>Ge.error("Could not update shipment",{description:O.message})}),C=p.data?.order,j=p.data?.shipments??[],v=w.useMemo(()=>{if(!C?.items)return[];try{return JSON.parse(C.items)}catch{return[]}},[C?.items]),E=()=>{d(Oc()),o(!0)},N=O=>{d({id:O.id,carrier:O.carrier||"USPS",trackingNumber:O.trackingNumber||"",trackingUrl:O.trackingUrl||"",estimatedDeliveryDate:Zk(O.estimatedDeliveryDate),status:O.status,lastStatusUpdate:O.lastStatusUpdate||""}),o(!0)},D=()=>{if(!a)return;if(u.trackingUrl&&!/^https?:\/\//i.test(u.trackingUrl)){Ge.error("Tracking link must begin with https://");return}const O={carrier:u.carrier||void 0,trackingNumber:u.trackingNumber||void 0,trackingUrl:u.trackingUrl||void 0,estimatedDeliveryDate:u.estimatedDeliveryDate?new Date(`${u.estimatedDeliveryDate}T12:00:00`):void 0,status:u.status,lastStatusUpdate:u.lastStatusUpdate||void 0};u.id?S.mutate({shipmentId:u.id,...O}):x.mutate({orderId:a,...O})};return c.jsxs("section",{"data-loc":"client/src/components/AdminOrders.tsx:153",className:"mt-12","aria-labelledby":"orders-heading",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:154",className:"flex flex-wrap items-end justify-between gap-4",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:155",children:[c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:156",className:"text-xs uppercase tracking-luxe text-accent",children:"Fulfillment"}),c.jsx("h2",{"data-loc":"client/src/components/AdminOrders.tsx:157",id:"orders-heading",className:"mt-1 font-display text-2xl sm:text-3xl",children:"Orders & Tracking"}),c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:158",className:"mt-1 text-sm text-muted-foreground",children:"Update order progress and add carrier tracking when each package ships."})]}),c.jsxs(be,{"data-loc":"client/src/components/AdminOrders.tsx:160",variant:"outline",size:"sm",onClick:()=>f.refetch(),disabled:f.isFetching,children:[c.jsx(hT,{"data-loc":"client/src/components/AdminOrders.tsx:161",className:`mr-2 h-4 w-4 ${f.isFetching?"animate-spin":""}`})," Refresh"]})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:165",className:"mt-5 grid gap-4 lg:grid-cols-[minmax(0,1fr)_minmax(0,1.15fr)]",children:[c.jsx(pr,{"data-loc":"client/src/components/AdminOrders.tsx:166",className:"max-h-[38rem] overflow-y-auto border-border/60 bg-card/40 p-3",children:f.isLoading?c.jsx("div",{"data-loc":"client/src/components/AdminOrders.tsx:168",className:"flex justify-center py-12",children:c.jsx(Hn,{"data-loc":"client/src/components/AdminOrders.tsx:168",className:"h-6 w-6 animate-spin text-accent"})}):f.data?.length?c.jsx("ul",{"data-loc":"client/src/components/AdminOrders.tsx:170",className:"space-y-2",children:f.data.map(O=>c.jsx("li",{"data-loc":"client/src/components/AdminOrders.tsx:172",children:c.jsxs("button",{"data-loc":"client/src/components/AdminOrders.tsx:173",type:"button",onClick:()=>s(O.id),className:`w-full rounded-xl border p-3 text-left transition-colors ${a===O.id?"border-accent bg-accent/10":"border-border/60 hover:border-accent/50"}`,children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:178",className:"flex items-start justify-between gap-3",children:[c.jsxs("span",{"data-loc":"client/src/components/AdminOrders.tsx:179",className:"font-medium",children:["Order #",O.id]}),c.jsx("span",{"data-loc":"client/src/components/AdminOrders.tsx:180",className:`rounded-full border px-2 py-0.5 text-[0.65rem] font-medium uppercase tracking-wide ${bb(O.status)}`,children:Ac(O.status)})]}),c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:182",className:"mt-1 truncate text-xs text-muted-foreground",children:O.customerEmail}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:183",className:"mt-2 flex justify-between text-xs text-muted-foreground",children:[c.jsx("span",{"data-loc":"client/src/components/AdminOrders.tsx:184",children:Sb(O.createdAt)}),c.jsx("span",{"data-loc":"client/src/components/AdminOrders.tsx:185",className:"font-medium text-foreground",children:wb(O.totalAmount)})]})]})},O.id))}):c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:192",className:"px-4 py-12 text-center text-sm text-muted-foreground",children:[c.jsx(Fc,{"data-loc":"client/src/components/AdminOrders.tsx:193",className:"mx-auto mb-3 h-9 w-9 opacity-35"}),"Orders will appear here after paid checkouts are recorded."]})}),c.jsx(pr,{"data-loc":"client/src/components/AdminOrders.tsx:199",className:"border-border/60 bg-card/40 p-5",children:a===null?c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:201",className:"flex min-h-64 flex-col items-center justify-center text-center text-sm text-muted-foreground",children:[c.jsx(Lo,{"data-loc":"client/src/components/AdminOrders.tsx:202",className:"mb-3 h-9 w-9 opacity-35"}
438),"Select an order to manage its status and shipment tracking."]}):p.isLoading||!C?c.jsx("div",{"data-loc":"client/src/components/AdminOrders.tsx:206",className:"flex min-h-64 items-center justify-center",children:c.jsx(Hn,{"data-loc":"client/src/components/AdminOrders.tsx:206",className:"h-6 w-6 animate-spin text-accent"})}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:209",className:"flex flex-wrap items-start justify-between gap-3",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:210",children:[c.jsxs("p",{"data-loc":"client/src/components/AdminOrders.tsx:211",className:"font-display text-xl",children:["Order #",C.id]}),c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:212",className:"mt-1 text-sm text-muted-foreground",children:C.customerName||C.customerEmail})]}),c.jsx("span",{"data-loc":"client/src/components/AdminOrders.tsx:214",className:"font-medium text-accent",children:wb(C.totalAmount)})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:217",className:"mt-5 rounded-xl border border-border/60 bg-background/30 p-3",children:[c.jsx("label",{"data-loc":"client/src/components/AdminOrders.tsx:218",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Order status"}),c.jsx("select",{"data-loc":"client/src/components/AdminOrders.tsx:219",value:C.status,onChange:O=>y.mutate({orderId:C.id,status:O.target.value}),disabled:y.isPending,className:"mt-2 h-10 w-full rounded-md border border-border bg-background px-3 text-sm outline-none focus:ring-2 focus:ring-accent",children:Xk.map(O=>c.jsx("option",{"data-loc":"client/src/components/AdminOrders.tsx:225",value:O,children:Ac(O)},O))})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:229",className:"mt-5 flex items-center justify-between gap-3",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:230",children:[c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:231",className:"font-medium",children:"Shipments"}),c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:232",className:"text-xs text-muted-foreground",children:"Visible to the customer on their order page."})]}),c.jsxs(be,{"data-loc":"client/src/components/AdminOrders.tsx:234",size:"sm",className:"bg-gradient-brand text-white",onClick:E,children:[c.jsx(Jo,{"data-loc":"client/src/components/AdminOrders.tsx:235",className:"mr-1.5 h-4 w-4"})," Add shipment"]})]}),c.jsx("div",{"data-loc":"client/src/components/AdminOrders.tsx:239",className:"mt-3 space-y-3",children:j.length?j.map(O=>c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:241",className:"rounded-xl border border-border/60 bg-background/20 p-3",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:242",className:"flex flex-wrap items-start justify-between gap-2",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:243",children:[c.jsxs("p",{"data-loc":"client/src/components/AdminOrders.tsx:244",className:"text-sm font-medium",children:[O.carrier||"Carrier",O.trackingNumber?` · ${O.trackingNumber}`:" shipment"]}),c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:245",className:"mt-1 text-xs text-muted-foreground",children:O.estimatedDeliveryDate?`ETA ${Sb(O.estimatedDeliveryDate)}`:"Delivery date not set"})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:247",className:"flex items-center gap-2",children:[c.jsx("span",{"data-loc":"client/src/components/AdminOrders.tsx:248",className:`rounded-full border px-2 py-0.5 text-[0.65rem] font-medium uppercase tracking-wide ${bb(O.status)}`,children:Ac(O.status)}),c.jsx(be,{"data-loc":"client/src/components/AdminOrders.tsx:249",size:"icon",variant:"ghost",className:"h-8 w-8",onClick:()=>N(O),"aria-label":"Edit shipment",children:c.jsx($p,{"data-loc":"client/src/components/AdminOrders.tsx:250",className:"h-3.5 w-3.5"})})]})]}),O.lastStatusUpdate&&c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:254",className:"mt-3 border-t border-border/50 pt-2 text-xs text-muted-foreground",children:O.lastStatusUpdate})]},O.id)):c.jsx("div",{"data-loc":"client/src/components/AdminOrders.tsx:257",className:"rounded-xl border border-dashed border-border/60 p-5 text-center text-sm text-muted-foreground",children:"No shipment has been added yet."})}),v.length>0&&c.jsxs(c.Fragment,{children:[c.jsx(za,{"data-loc":"client/src/components/AdminOrders.tsx:263",className:"my-5"}),c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:264",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Items"}),c.jsx("p",{"data-loc":"client/src/components/AdminOrders.tsx:265",className:"mt-2 text-sm text-muted-foreground",children:v.map(O=>`${O.quantity||1}× ${O.name||"Item"}`).join(", ")})]})]})})]}),c.jsx(ch,{"data-loc":"client/src/components/AdminOrders.tsx:273",open:l,onOpenChange:o,children:c.jsxs(uh,{"data-loc":"client/src/components/AdminOrders.tsx:274",className:"max-w-md",children:[c.jsx(Ew,{"data-loc":"client/src/components/AdminOrders.tsx:275",children:c.jsx(Ow,{"data-loc":"client/src/components/AdminOrders.tsx:275",className:"font-display text-xl",children:u.id?"Update shipment":"Add shipment"})}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:276",className:"mt-2 space-y-4",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:277",children:[c.jsx("label",{"data-loc":"client/src/components/AdminOrders.tsx:278",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Carrier"}),c.jsx("select",{"data-loc":"client/src/components/AdminOrders.tsx:279",value:u.carrier,onCh
438ange:O=>d(k=>({...k,carrier:O.target.value})),className:"mt-1.5 h-10 w-full rounded-md border border-border bg-background px-3 text-sm outline-none focus:ring-2 focus:ring-accent",children:Jk.map(O=>c.jsx("option",{"data-loc":"client/src/components/AdminOrders.tsx:280",value:O,children:O},O))})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:283",children:[c.jsx("label",{"data-loc":"client/src/components/AdminOrders.tsx:284",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Tracking number"}),c.jsx(Dt,{"data-loc":"client/src/components/AdminOrders.tsx:285",className:"mt-1.5 bg-background/60",value:u.trackingNumber,onChange:O=>d(k=>({...k,trackingNumber:O.target.value})),placeholder:"9400…"})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:287",children:[c.jsx("label",{"data-loc":"client/src/components/AdminOrders.tsx:288",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Tracking link"}),c.jsx(Dt,{"data-loc":"client/src/components/AdminOrders.tsx:289",className:"mt-1.5 bg-background/60",value:u.trackingUrl,onChange:O=>d(k=>({...k,trackingUrl:O.target.value})),placeholder:"https://tools.usps.com/…"})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:291",className:"grid grid-cols-2 gap-3",children:[c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:292",children:[c.jsx("label",{"data-loc":"client/src/components/AdminOrders.tsx:293",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Shipment status"}),c.jsx("select",{"data-loc":"client/src/components/AdminOrders.tsx:294",value:u.status,onChange:O=>d(k=>({...k,status:O.target.value})),className:"mt-1.5 h-10 w-full rounded-md border border-border bg-background px-3 text-sm outline-none focus:ring-2 focus:ring-accent",children:$k.map(O=>c.jsx("option",{"data-loc":"client/src/components/AdminOrders.tsx:295",value:O,children:Ac(O)},O))})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:298",children:[c.jsx("label",{"data-loc":"client/src/components/AdminOrders.tsx:299",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Estimated delivery"}),c.jsx(Dt,{"data-loc":"client/src/components/AdminOrders.tsx:300",type:"date",className:"mt-1.5 bg-background/60",value:u.estimatedDeliveryDate,onChange:O=>d(k=>({...k,estimatedDeliveryDate:O.target.value}))})]})]}),c.jsxs("div",{"data-loc":"client/src/components/AdminOrders.tsx:303",children:[c.jsx("label",{"data-loc":"client/src/components/AdminOrders.tsx:304",className:"text-xs uppercase tracking-wider text-muted-foreground",children:"Customer-facing update"}),c.jsx(ju,{"data-loc":"client/src/components/AdminOrders.tsx:305",className:"mt-1.5 resize-none bg-background/60",rows:3,value:u.lastStatusUpdate,onChange:O=>d(k=>({...k,lastStatusUpdate:O.target.value})),placeholder:"Your package is on the way."})]})]}),c.jsxs(Aw,{"data-loc":"client/src/components/AdminOrders.tsx:308",className:"mt-2",children:[c.jsx(be,{"data-loc":"client/src/components/AdminOrders.tsx:309",variant:"outline",onClick:()=>o(!1),children:"Cancel"}),c.jsxs(be,{"data-loc":"client/src/components/AdminOrders.tsx:310",className:"bg-gradient-brand text-white",onClick:D,disabled:x.isPending||S.isPending,children:[x.isPending||S.isPending?c.jsx(Hn,{"data-loc":"client/src/components/AdminOrders.tsx:311",className:"mr-2 h-4 w-4 animate-spin"}):c.jsx(yl,{"data-loc":"client/src/components/AdminOrders.tsx:311",className:"mr-2 h-4 w-4"}),u.id?"Save shipment":"Add shipment"]})]})]})})]})}const eR="/manus-storage/glypsie-load-icon-180_bc118eca.png",tR="/manus-storage/glypsie-load-icon-192_73964e45.png",nR=["Brooch","Pendant Necklace","Earrings","Original Art","Clothing","Purses","Accessories","Other"],aR=["Copper","Antique Copper","Silver-Plated","Gold-Plated","Brass"],rR=["Teal","Amethyst Purple","Rose Pink","Clear Crystal","Sapphire Blue","Emerald Green","Amber","Jet Black","Pearl White","Multi-Color"],sR=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(t/100),Cb=()=>({name:"",description:"",priceUsd:"",category:"Brooch",wireType:"",crystalColor:"",inStock:!0,featured:!1,sortOrder:"0",imageUrls:[],imageKeys:[]});function lR(){const{user:t,loading:a,isAuthenticated:s}=bh(),[,l]=gu();w.useEffect(()=>{const Y=document.title,_=document.querySelector('meta[name="apple-mobile-web-app-title"]'),K=_?.content,I=document.querySelector('link[rel="apple-touch-icon"]'),J=I?.href,le=document.querySelector('link[rel="icon"][sizes="192x192"]'),fe=le?.href,ne=document.querySelector('link[rel="manifest"]'),ce=ne?.href;return document.title="Glypsie Load. — Product Manager",_&&(_.content="Glypsie Load."),I&&(I.href=eR),le&&(le.href=tR),ne&&(ne.href="/admin.webmanifest"),()=>{document.title=Y,_&&K&&(_.content=K),I&&J&&(I.href=J),le&&fe&&(le.href=fe),ne&&ce&&(ne.href=ce)}},[]);const o=Ze.useUtils(),{data:u=[],isLoading:d}=Ze.products.adminList.useQuery(void 0,{enabled:s&&t?.role==="admin"}),f=Ze.products.create.useMutation({onSuccess:()=>
438{o.products.adminList.invalidate(),o.products.list.invalidate(),Ge.success("Product added!"),j(!1)},onError:Y=>Ge.error("Failed to add product",{description:Y.message})}),p=Ze.products.update.useMutation({onSuccess:()=>{o.products.adminList.invalidate(),o.products.list.invalidate(),Ge.success("Product updated!"),j(!1)},onError:Y=>Ge.error("Failed to update product",{description:Y.message})}),g=Ze.products.delete.useMutation({onSuccess:()=>{o.products.adminList.invalidate(),o.products.list.invalidate(),Ge.success("Product deleted"),k(null)},onError:Y=>Ge.error("Failed to delete",{description:Y.message})}),y=Ze.products.toggleStock.useMutation({onSuccess:()=>o.products.adminList.invalidate(),onError:Y=>Ge.error("Failed",{description:Y.message})}),x=Ze.products.toggleFeatured.useMutation({onSuccess:()=>o.products.adminList.invalidate(),onError:Y=>Ge.error("Failed",{description:Y.message})}),S=Ze.products.uploadImage.useMutation({onError:Y=>Ge.error("Image upload failed",{description:Y.message})}),[C,j]=w.useState(!1),[v,E]=w.useState(null),[N,D]=w.useState(Cb()),[O,k]=w.useState(null),[U,R]=w.useState(!1),T=w.useRef(null),M=w.useRef(null),H=w.useRef(null),[V,q]=w.useState(!1),F=w.useRef(null),W=()=>{E(null),D(Cb()),j(!0)},te=Y=>{E(Y),D({name:Y.name,description:Y.description??"",priceUsd:(Y.price/100).toFixed(2),category:Y.category,wireType:Y.wireType??"",crystalColor:Y.crystalColor??"",inStock:Y.inStock===1,featured:Y.featured===1,sortOrder:String(Y.sortOrder),imageUrls:Y.imageUrlsArr,imageKeys:Y.imageKeysArr}),j(!0)},ie=async Y=>{const _=Y.target.files?.[0];if(_){if(_.size>5*1024*1024){Ge.error("Image too large",{description:"Please choose an image under 5 MB."});return}R(!0),q(!1);try{const K=await new Promise((J,le)=>{const fe=new FileReader;fe.onload=()=>J(fe.result),fe.onerror=le,fe.readAsDataURL(_)}),I=await S.mutateAsync({dataUrl:K,filename:_.name});D(J=>({...J,imageUrls:[...J.imageUrls,I.url],imageKeys:[...J.imageKeys,I.key]})),Ge.success("Image uploaded")}catch{}finally{R(!1),T.current&&(T.current.value=""),M.current&&(M.current.value=""),H.current&&(H.current.value="")}}},z=()=>{q(!V)},G=Y=>{D(_=>({..._,imageUrls:_.imageUrls.filter((K,I)=>I!==Y),imageKeys:_.imageKeys.filter((K,I)=>I!==Y)}))},L=Y=>{Y.preventDefault();const _=parseFloat(N.priceUsd);if(isNaN(_)||_<=0){Ge.error("Please enter a valid price");return}const K={name:N.name.trim(),description:N.description.trim()||void 0,priceUsd:_,category:N.category,wireType:N.wireType||void 0,crystalColor:N.crystalColor||void 0,imageUrls:N.imageUrls,imageKeys:N.imageKeys,inStock:N.inStock,featured:N.featured,sortOrder:parseInt(N.sortOrder)||0};v?p.mutate({id:v.id,...K}):f.mutate(K)},oe=f.isPending||p.isPending;return a?c.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:277",className:"pt-28 min-h-screen flex items-center justify-center",children:c.jsx(Hn,{"data-loc":"client/src/pages/Admin.tsx:278",className:"h-8 w-8 animate-spin text-accent"})}):s?t?.role!=="admin"?c.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:305",className:"pt-28 pb-24 min-h-screen flex items-center justify-center px-4",children:c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:306",className:"text-center max-w-sm",children:[c.jsx(bv,{"data-loc":"client/src/pages/Admin.tsx:307",className:"h-12 w-12 text-destructive mx-auto mb-4"}),c.jsx("h1",{"data-loc":"client/src/pages/Admin.tsx:308",className:"font-display text-3xl mb-3",children:"Access Denied"}),c.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:309",className:"text-muted-foreground text-sm",children:"This page is restricted to the store owner."}),c.jsxs(be,{"data-loc":"client/src/pages/Admin.tsx:312",variant:"outline",className:"mt-6",onClick:()=>l("/"),children:[c.jsx(J5,{"data-loc":"client/src/pages/Admin.tsx:313",className:"h-4 w-4 mr-1"})," Go home"]})]})}):c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:322",className:"pt-20 pb-24 min-h-screen",children:[c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:323",className:"container max-w-2xl px-4",children:[c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:325",className:"flex items-center justify-between py-6",children:[c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:326",children:[c.jsx("h1",{"data-loc":"client/src/pages/Admin.tsx:327",className:"font-display text-2xl sm:text-3xl",children:"Product Manager"}),c.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:328",className:"text-xs text-muted-foreground mt-0.5",children:[u.length," product",u.length!==1?"s":""]})]}),c.jsxs(be,{"data-loc":"client/src/pages/Admin.tsx:332",onClick:W,className:"bg-gradient-brand text-white h-10 px-4 roun
438ded-xl",children:[c.jsx(Jo,{"data-loc":"client/src/pages/Admin.tsx:336",className:"h-4 w-4 mr-1.5"})," Add Product"]})]}),c.jsx(za,{"data-loc":"client/src/pages/Admin.tsx:340",className:"mb-6"}),d?c.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:344",className:"flex justify-center py-16",children:c.jsx(Hn,{"data-loc":"client/src/pages/Admin.tsx:345",className:"h-8 w-8 animate-spin text-accent"})}):u.length===0?c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:348",className:"text-center py-16 text-muted-foreground",children:[c.jsx(am,{"data-loc":"client/src/pages/Admin.tsx:349",className:"h-12 w-12 mx-auto mb-3 opacity-30"}),c.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:350",className:"text-sm",children:'No products yet. Tap "Add Product" to get started.'})]}):c.jsx("ul",{"data-loc":"client/src/pages/Admin.tsx:353",className:"space-y-3",children:u.map(Y=>c.jsxs("li",{"data-loc":"client/src/pages/Admin.tsx:355",className:"rounded-2xl border border-border/60 bg-card/40 p-4 flex gap-4 items-start",children:[c.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:360",className:"h-16 w-16 rounded-xl overflow-hidden shrink-0 bg-background/40 border border-border/40",children:Y.imageUrlsArr[0]?c.jsx("img",{"data-loc":"client/src/pages/Admin.tsx:362",src:Y.imageUrlsArr[0],alt:Y.name,className:"h-full w-full object-cover"}):c.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:368",className:"h-full w-full flex items-center justify-center",children:c.jsx(am,{"data-loc":"client/src/pages/Admin.tsx:369",className:"h-6 w-6 text-muted-foreground/40"})})}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:375",className:"flex-1 min-w-0",children:[c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:376",className:"flex items-start justify-between gap-2",children:[c.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:377",className:"font-medium text-sm leading-tight line-clamp-2",children:Y.name}),c.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:378",className:"text-sm font-semibold text-accent shrink-0",children:sR(Y.price)})]}),c.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:382",className:"text-xs text-muted-foreground mt-0.5",children:Y.category}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:383",className:"flex flex-wrap gap-1.5 mt-2",children:[c.jsx(Qo,{"data-loc":"client/src/pages/Admin.tsx:384",variant:Y.inStock?"default":"secondary",className:"text-xs cursor-pointer select-none",onClick:()=>y.mutate({id:Y.id,inStock:Y.inStock!==1}),children:Y.inStock?c.jsxs(c.Fragment,{children:[c.jsx(dT,{"data-loc":"client/src/pages/Admin.tsx:392",className:"h-3 w-3 mr-1"})," In Stock"]}):c.jsxs(c.Fragment,{children:[c.jsx(fT,{"data-loc":"client/src/pages/Admin.tsx:394",className:"h-3 w-3 mr-1"})," Sold Out"]})}),c.jsx(Qo,{"data-loc":"client/src/pages/Admin.tsx:397",variant:Y.featured?"default":"outline",className:"text-xs cursor-pointer select-none",onClick:()=>x.mutate({id:Y.id,featured:Y.featured!==1}),children:Y.featured?c.jsxs(c.Fragment,{children:[c.jsx(q2,{"data-loc":"client/src/pages/Admin.tsx:405",className:"h-3 w-3 mr-1"})," Featured"]}):c.jsxs(c.Fragment,{children:[c.jsx(yT,{"data-loc":"client/src/pages/Admin.tsx:407",className:"h-3 w-3 mr-1"})," Not Featured"]})})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:414",className:"flex flex-col gap-2 shrink-0",children:[c.jsx(be,{"data-loc":"client/src/pages/Admin.tsx:415",size:"icon",variant:"ghost",className:"h-8 w-8 rounded-lg",onClick:()=>te(Y),children:c.jsx($p,{"data-loc":"client/src/pages/Admin.tsx:421",className:"h-3.5 w-3.5"})}),c.jsx(be,{"data-loc":"client/src/pages/Admin.tsx:423",size:"icon",variant:"ghost",className:"h-8 w-8 rounded-lg text-destructive hover:text-destructive",onClick:()=>k(Y.id),children:c.jsx(I2,{"data-loc":"client/src/pages/Admin.tsx:429",className:"h-3.5 w-3.5"})})]})]},Y.id))}),c.jsx(Wk,{"data-loc":"client/src/pages/Admin.tsx:437"})]}),c.jsx(ch,{"data-loc":"client/src/pages/Admin.tsx:441",open:C,onOpenChange:j,children:c.jsxs(uh,{"data-loc":"client/src/pages/Admin.tsx:442",className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[c.jsx(Ew,{"data-loc":"client/src/pages/Admin.tsx:443",children:c.jsx(Ow,{"data-loc":"client/src/pages/Admin.tsx:444",className:"font-display text-xl",children:v?"Edit Product":"Add New Product"})}),c.jsxs("form",{"data-loc":"client/src/pages/Admin.tsx:449",onSubmit:L,className:"space-y-5 mt-2",children:[c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:451",children:[c.jsx("label",{"data-loc":"client/src/pages/Admin.tsx:452",className:"text-xs uppercase tracking-wider text-muted-foreground block mb-2",children:"Photos"}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:455",className:"flex flex-wrap gap-2 mb-3",children:[N.imageUrls.map((Y,_)=>c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:457",className:"relative h-20 w-20 rounded-xl overflow-hidden border border-border/60",children:[c.jsx("img",{"data-loc":"client/src/pages/Admin.tsx:458",src:Y,alt:"",className:"h-full w-full object-cover"}),c.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:459",type:"button",onClick:()=>G(_),className:"absolute top-1 right-1 h-5 w-5 rounded-full bg-black/60 flex items-center justify-center",children:c.jsx(Wr,{"data-loc":"client/src/pages/Admin.tsx:464",className:"h-3 w-3 text-white"})})]},_)),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:469",className:"relative",children:[c.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:470",type:"button",onClick:z,disabled:U,className:"h-20 w-20 rounded-xl border-2 border-dashed border-border/60 flex flex-col items-center justify-center gap-1 text-muted-foreground hover:border-accent hover:text-accent transition-colors disabled:opacity-50",children:U?c.jsx(Hn,{"data-loc":"client/src/pages/Admin.tsx:477",className:"h-5 w-5 animate-spin"}):c.jsxs(c.Fragment,{children:[c.jsx(wT,{"data-loc":"client/src/pages/Admin.tsx:480",className:"h-5 w-5"}),c.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:481",className:"text-xs",children:"Add photo"})]})}),V&&c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:487",ref:F,className:"absolute top-full left-0 mt-1 bg-background border border-border rounded-lg shadow-lg z-50 min-w-[160px] overflow-hidden",children:[c.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:491",type:"button",onClick:()=>T.current?.click(),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-accent/10 transition-colors border-b border-border/50",children:[c.jsx($5,{"data-loc":"client/src/pages/Admin.tsx:496",className:"h-4 w-4"}),"Take Photo"]}),c.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:499",type:"button",onClick:()=>M.current?.click(),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-accent/10 transition-colors border-b border-border/50",children:[c.jsx(lT,{"data-loc":"client/src/pages/Admin.tsx:504",className:"h-4 w-4"}),"Choose from Gallery"]}),c.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:507",type:"button",onClick:()=>H.current?.click(),className:"w-full px-4 py-2 text-left text-sm flex items-center gap-2 hover:bg-accent/10 transition-colors",children:[c.jsx(am,{"data-loc":"client/src/pages/Admin.tsx:512",className:"h-4 w-4"}),"Upload File"]})]})]})]}),c.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:520",ref:T,type:"file",accept:"image/*",capture:"environment",className:"hidden",onChange:ie}),c.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:528",ref:M,type:"file",accept:"image/*",className:"hidden",onChange:ie}),c.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:535",ref:H,type:"file",accept:"image/*",className:"hidden",onChange:ie}),c.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:542",className:"text-xs text-muted-foreground",children:"Tap the + button to choose: camera, gallery, or file upload. Max 5 MB per image."})]}),c.jsx(za,{"data-loc":"client/src/pages/Admin.tsx:547"}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:550",children:[c.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:551",className:"text-xs uppercase tracking-wider text-muted-foreground block mb-1.5",children:["Product Name ",c.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:552",className:"text-accent",children:"*"})]}),c.jsx(Dt,{"data-loc":"client/src/pages/Admin.tsx:554",required:!0,value:N.name,onChange:Y=>D(_=>({..._,name:Y.target.value})),placeholder:"Teal Crystal Brooch",className:"bg-background/60"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:564",children:[c.jsx("label",{"data-loc":"client/src/pages/Admin.tsx:565",className:"text-xs uppercase tracking-wider text-muted-foreground block mb-1.5",children:"Description"}),c.jsx(ju,{"data-loc":"client/src/pages/Admin.tsx:568",value:N.description,onChange:Y=>D(_=>({..._,description:Y.target.value})),placeholder:"Handcrafted copper wire brooch with teal crystal beads...",className:"bg-background/60 resize-none",rows:3})]}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:578",children:[c.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:579",className:"text-xs uppercase tracking-wider text-muted-foreground block mb-1.5",children:["Price (USD) ",c.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:580",className:"text-accent",children:"*"})]}),c.jsx(Dt,{"data-loc":"client/src/pages/Admin.tsx:582",required:!0,type:"number",min:"0.50",step:"0.01",value:N.priceUsd,onChange:Y=>D(_=>({..._,priceUsd:Y.target.value})),placeholder:"48.00",className:"bg-background/60"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:595",children:[c.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:596",className:"text-xs uppercase tracking-wider text-muted-foreground block mb-1.5",children:["Category ",c.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:597",className:"text-accent",children:"*"})]}),c.jsxs(il,{"data-loc":"client/src/pages/Admin.tsx:599",value:N.category,onValueChange:Y=>D(_=>({..._,category:Y})),children:[c.jsx(ul,{"data-loc":"client/src/pages/Admin.tsx:603",className:"bg-background/60",children:c.jsx(cl,{"data-loc":"client/src/pages/Admin.tsx:604"})}),c.jsx(dl,{"data-loc":"client/src/pages/Admin.tsx:606",children:nR.map(Y=>c.jsx(en,{"data-loc":"client/src/pages/Admin.tsx:608",value:Y,children:Y},Y))})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:615",children:[c.jsx("label",{"data-loc":"client/src/pages/Admin.tsx:616",className:"text-xs uppercase tracking-wider text-muted-foreground block mb-1.5",children:"Wire Type"}),c.jsxs(il,{"data-loc":"client/src/pages/Admin.tsx:619",value:N.wireType||"__none__",onValueChange:Y=>D(_=>({..._,wireType:Y==="__none__"?"":Y})),children:[c.jsx(ul,{"data-loc":"client/src/pages/Admin.tsx:623",className:"bg-background/60",children:c.jsx(cl,{"data-loc":"client/src/pages/Admin.tsx:624",placeholder:"Select wire type…"})}),c.jsxs(dl,{"data-loc":"client/src/pages/Admin.tsx:626",children:[c.jsx(en,{"data-loc":"client/src/pages/Admin.tsx:627",value:"__none__",children:"— None —"}),aR.map(Y=>c.jsx(en,{"data-loc":"client/src/pages/Admin.tsx:629",value:Y,children:Y},Y))]})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:636",children:[c.jsx("label",{"data-loc":"client/src/pages/Admin.tsx:637",className:"text-xs uppercase tracking-wider text-muted-foreground block mb-1.5",children:"Crystal Color"}),c.jsxs(il,{"data-loc":"client/src/pages/Admin.tsx:640",value:N.crystalColor||"__none__",onValueChange:Y=>D(_=>({..._,crystalColor:Y==="__none__"?"":Y})),children:[c.jsx(ul,{"data-loc":"client/src/pages/Admin.tsx:644",className:"bg-background/60",children:c.jsx(cl,{"data-loc":"client/src/pages/Admin.tsx:645",placeholder:"Select crystal color…"})}),c.jsxs(dl,{"data-loc":"client/src/pages/Admin.tsx:647",children:[c.jsx(en,{"data-loc":"client/src/pages/Admin.tsx:648",value:"__none__",children:"— None —"}),rR.map(Y=>c.jsx(en,{"data-loc":"client/src/pages/Admin.tsx:650",value:Y,children:Y},Y))]})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:657",className:"flex gap-4",children:[c.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:658",className:"flex items-center gap-2 cursor-pointer select-none",children:[c.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:659",type:"checkbox",checked:N.inStock,onChange:Y=>D(_=>({..._,inStock:Y.target.checked})),className:"h-4 w-4 accent-purple-500"}),c.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:665",className:"text-sm",children:"In Stock"})]}),c.jsxs("label",{"data-loc":"client/src/pages/Admin.tsx:667",className:"flex items-center gap-2 cursor-pointer select-none",children:[c.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:668",type:"checkbox",checked:N.featured,onChange:Y=>D(_=>({..._,featured:Y.target.checked})),className:"h-4 w-4 accent-purple-500"}),c.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:674",className:"text-sm",children:"Featured on Homepage"})]})]}),c.jsxs(Aw,{"data-loc":"client/src/pages/Admin.tsx:678",className:"pt-2",children:[c.jsx(be,{"data-loc":"client/src/pages/Admin.tsx:679",type:"button",variant:"outline",onClick:()=>j(!1),disabled:oe,children:"Cancel"}),c.jsx(be,{"data-loc":"client/src/pages/Admin.tsx:687",type:"submit",disabled:oe||U,className:"bg-gradient-brand text-white",children:oe?c.jsxs(c.Fragment,{children:[c.jsx(Hn,{"data-loc":"client/src/pages/Admin.tsx:693",className:"h-4 w-4 mr-2 animate-spin"})," Saving…"]}):c.jsxs(c.Fragment,{children:[c.jsx(yl,{"data-loc":"client/src/pages/Admin.tsx:695",className:"h-4 w-4 mr-2"})," ",v?"Save Changes":"Add Product"]})})]})]})]})}),c.jsx(Lk,{"data-loc":"client/src/pages/Admin.tsx:704",open:O!==null,onOpenChange:Y=>!Y&&k(null),children:c.jsxs(Ik,{"data-loc":"client/src/pages/Admin.tsx:705",children:[c.jsxs(Qk,{"data-loc":"client/src/pages/Admin.tsx:706",children:[c.jsx(Vk,{"data-loc":"client/src/pages/Admin.tsx:707",children:"Delete product?"}),c.jsx(Fk,{"data-loc":"client/src/pages/Admin.tsx:708",children:"This action cannot be undone. The product will be permanently removed from your store."})]}),c.jsxs(Gk,{"data-loc":"client/src/pages/Admin.tsx:712",children:[c.jsx(Kk,{"data-loc":"client/src/pages/Admin.tsx:713",children:"Cancel"}),c.jsx(Yk,{"data-loc":"client/src/pages/Admin.tsx:714",className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>O!==null&&g.mutate({id:O}),children:"Delete"})]})]})})]}):c.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:285",className:"pt-28 pb-24 min-h-screen flex items-center justify-center px-4",children:c.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:286",className:"text-center max-w-sm",children:[c.jsx(bv,{"data-loc":"client/src/pages/Admin.tsx:287",className:"h-12 w-12 text-accent mx-auto mb-4"}),c.jsx("h1",{"data-loc":"client/src/pages/Admin.tsx:288",className:"font-display text-3xl mb-3",children:"Admin Access"}),c.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:289",className:"text-muted-foreground mb-6 text-sm",children:"Sign in with your owner account to manage products."}),c.jsxs(be,{"data-loc":"client/src/pages/Admin.tsx:292",className:"bg-gradient-brand text-white w-full",onClick:()=>window.location.href=vh(),children:[c.jsx(iT,{"data-loc":"client/src/pages/Admin.tsx:296",className:"h-4 w-4 mr-2"})," Sign in"]})]})})}const tn={name:"Nicole Mason",company:"The House of Glypsie",title:"Art Designer and Owner Operator",phone:"+18259357905",email:"[email protected]",website:"https://glypsie-shop-ik8thcvb.manus.space",tagline:"Where imagination becomes art, Nicole creates s
438oulful pieces and meaningful connections through The House of Glypsie."};function Tc(t){return t.replace(/\\/g,"\\\\").replace(/\n/g,"\\n").replace(/,/g,"\\,").replace(/;/g,"\\;")}function oR(){return["BEGIN:VCARD","VERSION:3.0",`FN:${Tc(tn.name)}`,"N:Mason;Nicole;;;",`ORG:${Tc(tn.company)}`,`TITLE:${Tc(tn.title)}`,`TEL;TYPE=WORK,VOICE:${tn.phone}`,`EMAIL;TYPE=INTERNET:${tn.email}`,`URL:${tn.website}`,`NOTE:${Tc(tn.tagline)}`,"END:VCARD"].join(`\r
439`)+`\r
440`}const iR="/manus-storage/nicole-business-card-4x3(1)_ee14f3c6.webp",cR="(825) 935-7905",uR=tn.phone,jb=tn.email,dR=tn.website,wh=tn.name,fR=tn.company,mR=tn.title,QS=tn.tagline;async function pR(t,a){return a.share?(await a.share({title:`${wh} · ${fR}`,text:QS,url:t}),"shared"):(await a.clipboard.writeText(t),"copied")}async function hR(t,a){const s="nicole-mason-house-of-glypsie.vcf",l=typeof File<"u"?new File([t],s,{type:"text/vcard;charset=utf-8"}):null;if(/iPad|iPhone|iPod/.test(a.userAgent??"")||typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent)&&"ontouchend"in document)return window.location.assign("/contact/nicole-mason.vcf"),"opened";if(l&&a.share&&a.canShare?.({files:[l]}))return await a.share({files:[l],title:`${wh} contact card`,text:"Save Nicole Mason to your contacts."}),"shared-file";const u=URL.createObjectURL(new Blob([t],{type:"text/vcard;charset=utf-8"})),d=document.createElement("a");return d.href=u,d.download=s,d.rel="noopener",d.style.display="none",document.body.appendChild(d),d.click(),d.remove(),window.setTimeout(()=>URL.revokeObjectURL(u),1e3),"downloaded"}function gR(){return oR()}function xR(){const[t,a]=w.useState(""),[s,l]=w.useState(""),[o,u]=w.useState("");w.useEffect(()=>{const g=`${window.location.origin}/card`;a(g),zw.toDataURL(g,{width:360,margin:2,errorCorrectionLevel:"H",color:{dark:"#17132f",light:"#ffffff"}}).then(l).catch(()=>l(""))},[]);const d=w.useMemo(()=>gR(),[]),f=async()=>{try{const g=await hR(d,navigator);g==="shared-file"?Ge.success("Opening Add to Contacts"):g==="opened"?Ge.success("Contact card opened"):Ge.success("Contact card downloaded")}catch(g){if(g instanceof DOMException&&g.name==="AbortError")return;
440Ge.error("Use Share card to save this contact")}},p=async()=>{const g=t||`${window.location.origin}/card`;try{await pR(g,navigator)==="copied"&&(u("Link copied"),Ge.success("Card link copied"),window.setTimeout(()=>u(""),2200))}catch(y){if(y instanceof DOMException&&y.name==="AbortError")return;try{await navigator.clipboard.writeText(g),u("Link copied"),Ge.success("Card link copied"),window.setTimeout(()=>u(""),2200)}catch{u("Copy the link from your browser")}}};return c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:143",className:"min-h-screen bg-[#100d22] text-white",children:c.jsxs("section",{"data-loc":"client/src/pages/Card.tsx:144",className:"relative overflow-hidden pb-16 pt-24 sm:pt-28",children:[c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:145",className:"pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_12%_5%,rgba(130,83,221,0.32),transparent_34%),radial-gradient(circle_at_90%_18%,rgba(39,206,229,0.18),transparent_30%),linear-gradient(180deg,#21143c_0%,#100d22_58%,#100d22_100%)]"}),c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:146",className:"pointer-events-none absolute -left-24 top-44 h-72 w-72 rounded-full bg-fuchsia-500/10 blur-3xl"}),c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:147",className:"pointer-events-none absolute -right-24 top-28 h-80 w-80 rounded-full bg-cyan-400/10 blur-3xl"}),c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:149",className:"container relative z-10 max-w-2xl",children:[c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:150",className:"mb-5 flex justify-end gap-2",children:[c.jsx(be,{"data-loc":"client/src/pages/Card.tsx:151",type:"button",variant:"outline",size:"icon",onClick:p,"aria-label":"Share Nicole Mason’s digital business card",className:"border-white/20 bg-white/10 text-white backdrop-blur hover:bg-white/20",children:c.jsx(vv,{"data-loc":"client/src/pages/Card.tsx:159",className:"h-4 w-4"})}),c.jsx(be,{"data-loc":"client/src/pages/Card.tsx:161",type:"button",variant:"outline",size:"icon",onClick:f,"aria-label":"Add Nicole Mason to Contacts or download her contact card",className:"border-white/20 bg-white/10 text-white backdrop-blur hover:bg-white/20",children:c.jsx(yv,{"data-loc":"client/src/pages/Card.tsx:169",className:"h-4 w-4"})})]}),o&&c.jsx("p",{"data-loc":"client/src/pages/Card.tsx:173",className:"mb-3 text-right text-xs uppercase tracking-[0.2em] text-cyan-200",children:o}),c.jsxs("article",{"data-loc":"client/src/pages/Card.tsx:176",className:"overflow-hidden rounded-[2rem] border border-white/15 bg-white/[0.08] shadow-[0_25px_90px_-30px_rgba(0,0,0,0.9)] backdrop-blur-xl",children:[c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:177",className:"relative aspect-[4/3] overflow-hidden sm:aspect-[16/10]",children:[c.jsx("img",{"data-loc":"client/src/pages/Card.tsx:178",src:iR,alt:"Nicole Mason, owner and art designer of The House of Glypsie",className:"h-full w-full object-cover object-center"}),c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:183",className:"absolute inset-0 bg-gradient-to-t from-[#100d22] via-[#100d22]/5 to-transparent"}),c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:184",className:"absolute left-5 top-5 flex h-14 w-14 items-center justify-center rounded-2xl border border-white/25 bg-[#100d22]/55 p-2 backdrop-blur-md sm:left-7 sm:top-7",children:c.jsx("img",{"data-loc":"client/src/pages/Card.tsx:185",src:Ma.logo,alt:"The House of Glypsie emblem",className:"h-full w-full object-contain"})})]}),c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:189",className:"relative px-6 pb-8 pt-2 sm:px-9 sm:pb-10",children:[c.jsx("p",{"data-loc":"client/src/pages/Card.tsx:190",className:"text-[0.65rem] uppercase tracking-[0.34em] text-cyan-200/80",children:"The House of Glypsie"}),c.jsx("h1",{"data-loc":"client/src/pages/Card.tsx:191",className:"mt-3 font-display text-4xl leading-none sm:text-5xl",children:wh}),c.jsx("p",{"data-loc":"client/src/pages/Card.tsx:192",className:"mt-3 text-sm font-medium uppercase tracking-[0.16em] text-fuchsia-200/90",children:mR}),c.jsx("p",{"data-loc":"client/src/pages/Card.tsx:193",className:"mt-5 max-w-xl text-base leading-relaxed text-white/75",children:QS}),c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:195",className:"mt-8 grid gap-3",children:[c.jsxs("a",{"data-loc":"client/src/pages/Card.tsx:196",href:`tel:${uR}
440`,className:"group flex items-center gap-4 rounded-2xl border border-white/10 bg-black/15 px-4 py-4 transition-colors hover:border-cyan-300/50 hover:bg-white/10",children:[c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:200",className:"flex h-10 w-10 items-center justify-center rounded-xl bg-cyan-300/15 text-cyan-200",children:c.jsx(mT,{"data-loc":"client/src/pages/Card.tsx:200",className:"h-4 w-4"})}),c.jsxs("span",{"data-loc":"client/src/pages/Card.tsx:201",className:"flex-1",children:[c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:201",className:"block text-[0.65rem] uppercase tracking-[0.2em] text-white/45",children:"Call Nicole"}),c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:201",className:"mt-1 block text-sm text-white",children:cR})]}),c.jsx(nm,{"data-loc":"client/src/pages/Card.tsx:202",className:"h-4 w-4 text-white/40 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}),c.jsxs("a",{"data-loc":"client/src/pages/Card.tsx:204",href:`mailto:${jb}`,className:"group flex items-center gap-4 roun
440ded-2xl border border-white/10 bg-black/15 px-4 py-4 transition-colors hover:border-fuchsia-300/50 hover:bg-white/10",children:[c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:208",className:"flex h-10 w-10 items-center justify-center rounded-xl bg-fuchsia-300/15 text-fuchsia-200",children:c.jsx(Xp,{"data-loc":"client/src/pages/Card.tsx:208",className:"h-4 w-4"})}),c.jsxs("span",{"data-loc":"client/src/pages/Card.tsx:209",className:"flex-1",children:[c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:209",className:"block text-[0.65rem] uppercase tracking-[0.2em] text-white/45",children:"Email Nicole"}),c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:209",className:"mt-1 block break-all text-sm text-white",children:jb})]}),c.jsx(nm,{"data-loc":"client/src/pages/Card.tsx:210",className:"h-4 w-4 text-white/40 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}),c.jsxs("a",{"data-loc":"client/src/pages/Card.tsx:212",href:dR,target:"_blank",rel:"noreferrer",className:"group flex items-center gap-4 roun
440ded-2xl border border-white/10 bg-black/15 px-4 py-4 transition-colors hover:border-cyan-300/50 hover:bg-white/10",children:[c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:218",className:"flex h-10 w-10 items-center justify-center rounded-xl bg-violet-300/15 text-violet-200",children:c.jsx(aT,{"data-loc":"client/src/pages/Card.tsx:218",className:"h-4 w-4"})}),c.jsxs("span",{"data-loc":"client/src/pages/Card.tsx:219",className:"flex-1",children:[c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:219",className:"block text-[0.65rem] uppercase tracking-[0.2em] text-white/45",children:"Visit the house"}),c.jsx("span",{"data-loc":"client/src/pages/Card.tsx:219",className:"mt-1 block text-sm text-white",children:"glypsie-shop-ik8thcvb.manus.space"})]}),c.jsx(nm,{"data-loc":"client/src/pages/Card.tsx:220",className:"h-4 w-4 text-white/40 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:224",className:"mt-8 grid gap-5 rounded-2xl border border-white/10 bg-white/[0.06] p-5 sm:grid-cols-[auto_1fr] sm:items-center sm:p-6",children:[c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:225",className:"mx-auto rounded-xl bg-white p-3 shadow-[0_0_30px_rgba(66,224,255,0.18)]",children:s?c.jsx("img",{"data-loc":"client/src/pages/Card.tsx:226",src:s,alt:"QR code for Nicole Mason’s digital business card",className:"h-36 w-36"}):c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:226",className:"h-36 w-36 animate-pulse rounded-lg bg-slate-200","aria-hidden":"true"})}),c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:228",className:"text-center sm:text-left",children:[c.jsx("p",{"data-loc":"client/src/pages/Card.tsx:229",className:"text-xs uppercase tracking-[0.28em] text-cyan-200",children:"Scan to connect"}),c.jsx("h2",{"data-loc":"client/src/pages/Card.tsx:230",className:"mt-2 font-display text-2xl",children:"Save Nicole’s contact"}),c.jsx("p",{"data-loc":"client/src/pages/Card.tsx:231",className:"mt-2 text-sm leading-relaxed text-white/60",children:"Point your phone camera at this code to open this digital business card and save the contact details."})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/Card.tsx:235",className:"mt-7 flex flex-col gap-3 sm:flex-row",children:[c.jsxs(be,{"data-loc":"client/src/pages/Card.tsx:236",type:"button",onClick:f,className:"h-12 flex-1 bg-gradient-brand text-white",children:[c.jsx(yv,{"data-loc":"client/src/pages/Card.tsx:237",className:"mr-2 h-4 w-4"})," Add to Contacts"]}),c.jsxs(be,{"data-loc":"client/src/pages/Card.tsx:239",type:"button",onClick:p,variant:"outline",className:"h-12 flex-1 border-white/20 bg-white/5 text-white hover:bg-white/10",children:[c.jsx(vv,{"data-loc":"client/src/pages/Card.tsx:240",className:"mr-2 h-4 w-4"})," Share card"]})]})]})]}),c.jsx("div",{"data-loc":"client/src/pages/Card.tsx:246",className:"mt-8 text-center",children:c.jsx(Ee,{"data-loc":"client/src/pages/Card.tsx:247",href:"/",className:"text-sm text-white/55 transition-colors hover:text-white",children:"Return to the main website"})})]})]})})}const Nb=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(t),Eb=["Clothing","Purses","Accessories"];function yR(){const[,t]=I5("/closet/:category"),a=t?.category?.toLowerCase()||"clothing",l={clothing:"Clothing",purses:"Purses",accessories:"Accessories"}[a]||"Clothing",[o,u]=w.useState([]),[d,f]=w.useState(!1),{data:p=[],isLoading:g}=Ze.products.list.useQuery(),y=w.useMemo(()=>p.filter(R=>Eb.includes(R.category)).map(_o),[p]),x=w.useMemo(()=>y.filter(R=>R.category===l),[y,l]),S=w.useMemo(()=>Math.max(...x.map(R=>R.price),200),[x]),C=w.useMemo(()=>Math.min(...x.map(R=>R.price),0),[x]),[j,v]=w.useState([0,500]),E=w.useMemo(()=>{const R=new Set(x.map(T=>T.wireType).filter(Boolean));return Array.from(R)},[x]),N=R=>u(T=>T.includes(R)?T.filter(M=>M!==R):[...T,R]),D=w.useMemo(()=>x.filter(R=>!(o.length&&!o.includes(R.wireType)||R.price<j[0]||R.price>j[1])),[x,o,j]),O=o.length+(j[0]!==C||j[1]!==S?1:0),k=()=>{u([]),v([C,S])},U=()=>c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:91",className:"space-y-8",children:[E.length>0&&c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:93",children:[c.jsx("h3",{"data-loc":"client/src/pages/Closet.tsx:94",className:"text-xs uppercase tracking-luxe text-muted-foreground mb-4",children:"Wire Type"}),c.jsx("div",{"data-loc":"client/src/pages/Closet.tsx:95",className:"flex flex-col gap-1",children:E.map(R=>c.jsx("button",{"data-loc":"client/src/pages/Closet.tsx:97",onClick:()=>N(R),className:Ce("text-left px-3 py-2 rounded-lg text-sm transition-colors",o.includes(R)?"bg-accent/10 text-foreground font-medium":"text-muted-foreground hover:text-foreground hover:bg-accent/5"),children:R},R))})]}),c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:114",children:[c.jsx("h3",{"data-loc":"client/src/pages/Closet.tsx:115",className:"text-xs uppercase tracking-luxe text-muted-foreground mb-4",children:"Price"}),c.jsx(rS,{"data-loc":"client/src/pages/Closet.tsx:116",min:0,max:1e3,step:10,value:j,onValueChange:R=>v(R),className:"mb-2"}),c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:124",className:"flex justify-between text-xs text-muted-foreground",children:[c.jsx("span",{"data-loc":"client/src/pages/Closet.tsx:125",children:Nb(j[0])}),c.jsx("span",{"data-loc":"client/src/pages/Closet.tsx:126",children:Nb(j[1])})]})]}),O>0&&c.jsx(be,{"data-loc":"client/src/pages/Closet.tsx:131",variant:"outline",size:"sm",onClick:k,className:"w-full",children:"Clear Filters"})]});return c.jsx("main",{"data-loc":"client/src/pages/Closet.tsx:144",className:"min-h-screen pt-32 pb-16",children:c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:145",className:"container",children:[c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:147",className:"mb-12",children:[c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:148",className:"flex items-center gap-2 mb-4",children:[c.jsx(Ee,{"data-loc":"client/src/pages/Closet.tsx:149",href:"/closet/clothing",className:"text-muted-foreground hover:text-foreground",children:"Glypsie's Closet"}),c.jsx("span",{"data-loc":"client/src/pages/Closet.tsx:152",className:"text-muted-foreground",children:"/"}),c.jsx("span",{"data-loc":"client/src/pages/Closet.tsx:153",className:"text-foreground font-display text-lg",children:l})]}),c.jsx("h1",{"data-loc":"client/src/pages/Closet.tsx:155",className:"font-display text-4xl md:text-5xl mb-4",children:l}),c.jsxs("p",{"data-loc":"client/src/pages/Closet.tsx:156",className:"text-muted-foreground max-w-2xl",children:["Curated ",l.toLowerCase()," pieces to complement your collection."]})]}),c.jsx("div",{"data-loc":"client/src/pages/Closet.tsx:162",className:"flex gap-2 mb-8 pb-6 border-b border-border",children:Eb.map(R=>{const T=R===l;return c.jsx(Ee,{"data-loc":"client/src/pages/Closet.tsx:166",href:`/closet/${R.toLowerCase()}`,className:Ce("px-4 py-2 rounded-lg text-sm font-medium transition-colors",T?"bg-accent/10 text-foreground":"text-muted-foreground hover:text-foreground hover:bg-accent/5"),children:R},R)})}),c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:183",className:"grid grid-cols-1 lg:grid-cols-4 gap-8",children:[c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:185",className:"lg:col-span-1",children:[c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:186",className:"hidden lg:block sticky top-32",children:[c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:187",className:"flex items-center justify-between mb-6",children:[c.jsx("h2",{"data-loc":"client/src/pages/Closet.tsx:188",className:"font-display text-lg",children:"Filters"}),O>0&&c.jsx(Qo,{"data-loc":"client/src/pages/Closet.tsx:190",variant:"secondary",className:"text-xs",children:O})]}),c.jsx(U,{"data-loc":"client/src/pages/Closet.tsx:195"})]}),c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:199",className:"lg:hidden mb-6",children:[c.jsxs(be,{"data-loc":"client/src/pages/Closet.tsx:200",variant:"outline",size:"sm",onClick:()=>f(!d),className:"w-full justify-between",children:[c.jsxs("span",{"data-loc":"client/src/pages/Closet.tsx:206",className:"flex items-center gap-2",children:[c.jsx(H2,{"data-loc":"client/src/pages/Closet.tsx:207",className:"h-4 w-4"}),"Filters"]}),O>0&&c.jsx(Qo,{"data-loc":"client/src/pages/Closet.tsx:211",variant:"secondary",className:"text-xs",children:O})]}),d&&c.jsx("div",{"data-loc":"client/src/pages/Closet.tsx:217",className:"mt-4 p-4 bg-accent/5 rounded-lg",children:c.jsx(U,{"data-loc":"client/src/pages/Closet.tsx:218"})})]})]}),c.jsx("div",{"data-loc":"client/src/pages/Closet.tsx:225",className:"lg:col-span-3",children:g?c.jsx("div",{"data-loc":"client/src/pages/Closet.tsx:227",className:"flex items-center justify-center py-16",children:c.jsx(Hn,{"data-loc":"client/src/pages/Closet.tsx:228",className:"h-8 w-8 animate-spin text-muted-foreground"})}):D.length===0?c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:231",className:"text-center py-16",children:[c.jsx("p",{"data-loc":"client/src/pages/Closet.tsx:232",className:"text-muted-foreground mb-4",children:"No items found"}),c.jsx(be,{"data-loc":"client/src/pages/Closet.tsx:233",variant:"outline",onClick:k,children:"Clear Filters"})]}):c.jsxs(c.Fragment,{children:[c.jsxs("div",{"data-loc":"client/src/pages/Closet.tsx:239",className:"text-sm text-muted-foreground mb-6",children:["Showing ",D.length," of ",x.length," items"]}),c.jsx("div",{"data-loc":"client/src/pages/Closet.tsx:242",className:"grid grid-cols-1 sm:grid-cols-2 gap-6",children:D.map((R,T)=>c.jsx(nn,{"data-loc":"client/src/pages/Closet.tsx:244",delay:T*50,children:c.jsx(bu,{"data-loc":"client/src/pages/Closet.tsx:245",product:R})},R.id))})]})})]})]})})}const vR=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0}).format(t/100),bR=t=>new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),wR=t=>
440{switch(t){case"pending":return"text-yellow-500";case"paid":return"text-blue-500";case"processing":return"text-blue-500";case"shipped":return"text-cyan-500";case"delivered":return"text-green-500";case"cancelled":return"text-red-500";default:return"text-muted-foreground"}},SR=t=>t.charAt(0).toUpperCase()+t.slice(1);function CR(){const{user:t}=bh(),{data:a=[],isLoading:s}=Ze.orders.getMyOrders.useQuery(void 0,{enabled:!!t});return t?c.jsx("div",{"data-loc":"client/src/pages/Orders.tsx:71",className:"pt-28 pb-24",children:c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:72",className:"container max-w-4xl",children:[c.jsxs(Ee,{"data-loc":"client/src/pages/Orders.tsx:73",href:"/",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Cl,{"data-loc":"client/src/pages/Orders.tsx:77",className:"h-4 w-4 mr-1.5"})," Back home"]}),c.jsx("h1",{"data-loc":"client/src/pages/Orders.tsx:80",className:"mt-6 font-display text-4xl sm:text-5xl",children:"Your Orders"}),c.jsx("p",{"data-loc":"client/src/pages/Orders.tsx:81",className:"mt-2 text-muted-foreground text-sm",children:"Track your purchases and shipping information."}),s?c.jsx("div",{"data-loc":"client/src/pages/Orders.tsx:86",className:"mt-10 space-y-4",children:[1,2,3].map(l=>c.jsx("div",{"data-loc":"client/src/pages/Orders.tsx:88",className:"h-32 rounded-2xl border border-border/60 bg-card/40 animate-pulse"},l))}):a.length===0?c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:95",className:"mt-10 rounded-2xl border border-border/60 bg-card/40 p-12 text-center",children:[c.jsx(Fc,{"data-loc":"client/src/pages/Orders.tsx:96",className:"h-12 w-12 mx-auto text-muted-foreground/50 mb-4"}),c.jsx("h2",{"data-loc":"client/src/pages/Orders.tsx:97",className:"font-display text-xl mb-2",children:"No orders yet"}),c.jsx("p",{"data-loc":"client/src/pages/Orders.tsx:98",className:"text-muted-foreground mb-6",children:"Start shopping to see your orders here."}),c.jsx(be,{"data-loc":"client/src/pages/Orders.tsx:101",asChild:!0,className:"bg-gradient-brand text-white",children:c.jsx(Ee,{"data-loc":"client/src/pages/Orders.tsx:102",href:"/jewelry",children:"Browse Jewelry"})})]}):c.jsx("div",{"data-loc":"client/src/pages/Orders.tsx:106",className:"mt-10 space-y-4",children:a.map(l=>c.jsx(Ee,{"data-loc":"client/src/pages/Orders.tsx:108",href:`/orders/${l.id}`,className:"block",children:c.jsx(pr,{"data-loc":"client/src/pages/Orders.tsx:113",className:"p-6 hover:bg-card/60 transition-colors cursor-pointer border-border/60 bg-card/40",children:c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:114",className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:115",className:"flex-1 min-w-0",children:[c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:116",className:"flex items-center gap-3 mb-3",children:[c.jsxs("h3",{"data-loc":"client/src/pages/Orders.tsx:117",className:"font-display text-lg",children:["Order #",l.id]}),c.jsx("span",{"data-loc":"client/src/pages/Orders.tsx:120",className:`text-xs font-medium uppercase tracking-luxe ${wR(l.status)}`,children:SR(l.status)})]}),c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:129",className:"grid sm:grid-cols-3 gap-4 text-sm",children:[c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:130",className:"flex items-center gap-2 text-muted-foreground",children:[c.jsx(X5,{"data-loc":"client/src/pages/Orders.tsx:131",className:"h-4 w-4 shrink-0"}),c.jsx("span",{"data-loc":"client/src/pages/Orders.tsx:132",children:bR(l.createdAt)})]}),c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:134",className:"flex items-center gap-2 text-muted-foreground",children:[c.jsx(nT,{"data-loc":"client/src/pages/Orders.tsx:135",className:"h-4 w-4 shrink-0"}),c.jsx("span",{"data-loc":"client/src/pages/Orders.tsx:136",children:vR(l.totalAmount)})]}),c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:138",className:"flex items-center gap-2 text-muted-foreground",children:[c.jsx(Fc,{"data-loc":"client/src/pages/Orders.tsx:139",className:"h-4 w-4 shrink-0"}),c.jsxs("span",{"data-loc":"client/src/pages/Orders.tsx:140",children:[JSON.parse(l.items).length," item",JSON.parse(l.items).length!==1?"s":""]})]})]}),c.jsx("p",{"data-loc":"client/src/pages/Orders.tsx:147",className:"text-xs text-muted-foreground mt-3",children:l.customerEmail})]}),c.jsx(Z5,{"data-loc":"client/src/pages/Orders.tsx:152",className:"h-5 w-5 text-muted-foreground shrink-0 mt-1"})]})})},l.id))})]})}):c.jsx("div",{"data-loc":"client/src/pages/Orders.tsx:56",className:"pt-28 pb-24 min-h-[60vh] flex items-center justify-center",children:c.jsxs("div",{"data-loc":"client/src/pages/Orders.tsx:57",className:"text-center max-w-md px-4",children:[c.jsx("h1",{"data-loc":"client/src/pages/Orders.tsx:58",className:"font-display text-4xl",children:"Sign in to view orders"}),c.jsx("p",{"data-loc":"client/src/pages/Orders.tsx:59",className:"mt-4 text-muted-foreground",children:"You need to be logged in to view your order history."}),c.jsx(be,{"data-loc":"client/src/pages/Orders.tsx:62",asChild:!0,className:"mt-8 bg-gradient-brand text-white",children:c.jsx(Ee,{"data-loc":"client/src/pages/Orders.tsx:63",href:"/",children:"Return home"})})]})})}const Co=t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0}).format(t/100),Um=t=>new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),Ab=t=>
440{switch(t){case"pending":return"bg-yellow-500/10 text-yellow-700 border-yellow-200";case"paid":return"bg-blue-500/10 text-blue-700 border-blue-200";case"processing":return"bg-blue-500/10 text-blue-700 border-blue-200";case"shipped":return"bg-cyan-500/10 text-cyan-700 border-cyan-200";case"in_transit":return"bg-cyan-500/10 text-cyan-700 border-cyan-200";case"out_for_delivery":return"bg-green-500/10 text-green-700 border-green-200";case"delivered":return"bg-green-500/10 text-green-700 border-green-200";case"cancelled":return"bg-red-500/10 text-red-700 border-red-200";default:return"bg-muted text-muted-foreground border-border"}},Ob=t=>({pending:"Pending",paid:"Paid",processing:"Processing",shipped:"Shipped",in_transit:"In Transit",out_for_delivery:"Out for Delivery",delivered:"Delivered",cancelled:"Cancelled"})[t]||t;function jR(){const{orderId:t}=pu(),{user:a}=bh(),{data:s,isLoading:l}=Ze.orders.getOrderDetail.useQuery({orderId:parseInt(t||"0")},{enabled:!!a&&!!t});if(!a)return c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:71",className:"pt-28 pb-24 min-h-[60vh] flex items-center justify-center",children:c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:72",className:"text-center max-w-md px-4",children:[c.jsx("h1",{"data-loc":"client/src/pages/OrderDetail.tsx:73",className:"font-display text-4xl",children:"Sign in to view order"}),c.jsx(be,{"data-loc":"client/src/pages/OrderDetail.tsx:74",asChild:!0,className:"mt-8 bg-gradient-brand text-white",children:c.jsx(Ee,{"data-loc":"client/src/pages/OrderDetail.tsx:75",href:"/",children:"Return home"})})]})});if(l)return c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:84",className:"pt-28 pb-24",children:c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:85",className:"container max-w-4xl",children:c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:86",className:"h-96 rounded-2xl border border-border/60 bg-card/40 animate-pulse"})})});if(!s?.order)return c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:94",className:"pt-28 pb-24 min-h-[60vh] flex items-center justify-center",children:c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:95",className:"text-center max-w-md px-4",children:[c.jsx("h1",{"data-loc":"client/src/pages/OrderDetail.tsx:96",className:"font-display text-4xl",children:"Order not found"}),c.jsx(be,{"data-loc":"client/src/pages/OrderDetail.tsx:97",asChild:!0,className:"mt-8 bg-gradient-brand text-white",children:c.jsx(Ee,{"data-loc":"client/src/pages/OrderDetail.tsx:98",href:"/orders",children:"Back to orders"})})]})});const{order:o,shipments:u}=s,d=JSON.parse(o.items),f=o.shippingAddress?JSON.parse(o.shippingAddress):null;return c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:110",className:"pt-28 pb-24",children:c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:111",className:"container max-w-4xl",children:[c.jsxs(Ee,{"data-loc":"client/src/pages/OrderDetail.tsx:112",href:"/orders",className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",children:[c.jsx(Cl,{"data-loc":"client/src/pages/OrderDetail.tsx:116",className:"h-4 w-4 mr-1.5"})," Back to orders"]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:119",className:"mt-6 flex items-start justify-between gap-4",children:[c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:120",children:[c.jsxs("h1",{"data-loc":"client/src/pages/OrderDetail.tsx:121",className:"font-display text-4xl sm:text-5xl",children:["Order #",o.id]}),c.jsxs("p",{"data-loc":"client/src/pages/OrderDetail.tsx:122",className:"mt-2 text-muted-foreground text-sm",children:["Placed on ",Um(o.createdAt)]})]}),c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:126",className:`px-4 py-2 rounded-lg border text-sm font-medium uppercase tracking-luxe ${Ab(o.status)}`,children:Ob(o.status)})]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:135",className:"mt-10 grid lg:grid-cols-3 gap-6",children:[c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:137",className:"lg:col-span-2 space-y-6",children:[c.jsxs(pr,{"data-loc":"client/src/pages/OrderDetail.tsx:139",className:"p-6 border-border/60 bg-card/40",children:[c.jsx("h2",{"data-loc":"client/src/pages/OrderDetail.tsx:140",className:"font-display text-xl mb-4",children:"Order Items"}),c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:141",className:"space-y-4",children:d.map((p,g)=>c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:143",children:[c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:144",className:"flex justify-between items-start mb-2",children:[c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:145",children:[c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:14
4406",className:"font-medium",children:p.name}),p.description&&c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:148",className:"text-sm text-muted-foreground mt-1",children:p.description})]}),c.jsxs("p",{"data-loc":"client/src/pages/OrderDetail.tsx:153",className:"font-medium",children:[Co(p.price*100)," × ",p.quantity]})]}),g<d.length-1&&c.jsx(za,{"data-loc":"client/src/pages/OrderDetail.tsx:157",className:"my-3"})]},g))})]}),u.length>0&&c.jsxs(pr,{"data-loc":"client/src/pages/OrderDetail.tsx:165",className:"p-6 border-border/60 bg-card/40",children:[c.jsxs("h2",{"data-loc":"client/src/pages/OrderDetail.tsx:166",className:"font-display text-xl mb-4 flex items-center gap-2",children:[c.jsx(Lo,{"data-loc":"client/src/pages/OrderDetail.tsx:167",className:"h-5 w-5 text-accent"}),"Shipping Information"]}),c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:170",className:"space-y-4",children:u.map((p,g)=>c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:172",className:"border border-border/60 rounded-lg p-4",children:[c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:173",className:"flex items-start justify-between mb-3",children:c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:174",children:[c.jsxs("p",{"data-loc":"client/src/pages/OrderDetail.tsx:175",className:"font-medium",children:[p.carrier||"Carrier"," Shipment"]}),c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:178",className:`text-sm font-medium mt-1 ${Ab(p.status).split(" ")[0]}`,children:Ob(p.status)})]})}),p.trackingNumber&&c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:189",className:"mb-3",children:[c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:190",className:"text-xs text-muted-foreground mb-1",children:"Tracking Number"}),c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:193",className:"font-mono text-sm",children:p.trackingNumber}),p.trackingUrl&&c.jsx("a",{"data-loc":"client/src/pages/OrderDetail.tsx:195",href:p.trackingUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-accent hover:underline mt-2 inline-block",children:"Track package →"})]}),p.estimatedDeliveryDate&&c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:208",className:"text-sm",children:[c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:209",className:"text-xs text-muted-foreground mb-1",children:"Estimated Delivery"}),c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:212",children:Um(p.estimatedDeliveryDate)})]}),p.actualDeliveryDate&&c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:217",className:"text-sm mt-2",children:[c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:218",className:"text-xs text-muted-foreground mb-1",children:"Delivered"}),c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:221",children:Um(p.actualDeliveryDate)})]}),p.lastStatusUpdate&&c.jsx("div",{"data-loc":"client/src/pages/OrderDetail.tsx:226",className:"text-xs text-muted-foreground mt-3 pt-3 border-t border-border/60",children:p.lastStatusUpdate})]},g))})]})]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:238",className:"lg:sticky lg:top-28 space-y-6",children:[c.jsxs(pr,{"data-loc":"client/src/pages/OrderDetail.tsx:240",className:"p-6 border-border/60 bg-card/40",children:[c.jsx("h2",{"data-loc":"client/src/pages/OrderDetail.tsx:241",className:"font-display text-lg mb-4",children:"Order Summary"}),c.jsxs("dl",{"data-loc":"client/src/pages/OrderDetail.tsx:242",className:"space-y-3 text-sm",children:[c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:243",className:"flex justify-between",children:[c.jsx("dt",{"data-loc":"client/src/pages/OrderDetail.tsx:244",className:"text-muted-foreground",children:"Subtotal"}),c.jsx("dd",{"data-loc":"client/src/pages/OrderDetail.tsx:245",children:Co(o.subtotal)})]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:247",className:"flex justify-between",children:[c.jsx("dt",{"data-loc":"client/src/pages/OrderDetail.tsx:248",className:"text-muted-foreground",children:"Shipping"}),c.jsx("dd",{"data-loc":"client/src/pages/OrderDetail.tsx:249",children:Co(o.shippingCost)})]}),o.taxAmount>0&&c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:252",className:"flex justify-between",children:[c.jsx("dt",{"data-loc":"client/src/pages/OrderDetail.tsx:253",className:"text-muted-foreground",children:"Tax"}),c.jsx("dd",{"data-loc":"client/src/pages/OrderDetail.tsx:254",children:Co(o.taxAmount)})]}),c.jsx(za,{"data-loc":"client/src/pages/OrderDetail.tsx:257",className:"my-3"}),c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:258",className:"flex justify-between font-medium text-base",children:[c.jsx("dt",{"data-loc":"client/src/pages/OrderDetail.tsx:259",children:"Total"}),c.jsx("dd",{"data-loc":"client/src/pages/OrderDetail.tsx:260",children:Co(o.totalAmount)})]})]})]}),f&&c.jsxs(pr,{"data-loc":"client/src/pages/OrderDetail.tsx:267",className:"p-6 border-border/60 bg-card/40",children:[c.jsxs("h2",{"data-loc":"client/src/pages/OrderDetail.tsx:268",className:"font-display text-lg mb-4 flex items-center gap-2",children:[c.jsx(cT,{"data-loc":"client/src/pages/OrderDetail.tsx:269",className:"h-5 w-5 text-accent"}),"Shipping Address"]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:272",className:"text-sm space-y-1",children:[c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:273",children:f.line1}),f.line2&&c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:274",children:f.line2}),c.jsxs("p",{"data-loc":"client/src/pages/OrderDetail.tsx:275",children:[f.city,", ",f.state," ",f.postalCode]}),c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:278",children:f.country})]})]}),c.jsxs(pr,{"data-loc":"client/src/pages/OrderDetail.tsx:284",className:"p-6 border-border/60 bg-card/40",children:[c.jsxs("h2",{"data-loc":"client/src/pages/OrderDetail.tsx:285",className:"font-display text-lg mb-4 flex items-center gap-2",children:[c.jsx(Xp,{"data-loc":"client/src/pages/OrderDetail.tsx:286",className:"h-5 w-5 text-accent"}),"Contact"]}),c.jsxs("div",{"data-loc":"client/src/pages/OrderDetail.tsx:289",className:"text-sm space-y-2",children:[o.customerName&&c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:290",children:o.customerName}),c.jsx("p",{"data-loc":"client/src/pages/OrderDetail.tsx:291",className:"text-muted-foreground",children:o.customerEmail})]})]})]})]})]})})}function NR(){return c.jsxs(V5,{"data-loc":"client/src/App.tsx:28",children:[c.jsx(Tt,{"data-loc":"client/src/App.tsx:29",path:"/",component:t_}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:30",path:"/jewelry",component:C_}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:31",path:"/jewelry/:handle",component:N_}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:32",path:"/customize",component:A_}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:33",path:"/gallery",component:T_}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:34",path:"/custom-orders",component:hk}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:35",path:"/closet/:category",component:yR}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:36",path:"/blog",component:gk}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:37",path:"/blog/:handle",component:xk}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:38",path:"/about",component:yk}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:39",path:"/checkout",component:vk}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:40",path:"/order-success",component:bk}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:41",path:"/orders",component:CR}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:42",path:"/orders/:orderId",component:jR}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:43",path:"/admin",component:lR}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:44",path:"/card",component:xR}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:45",path:"/404",component:Gc}),c.jsx(Tt,{"data-loc":"client/src/App.tsx:46",component:Gc})]})}function ER(){return c.jsx(ST,{"data-loc":"client/src/App.tsx:53",children:c.jsx(Q6,{"data-loc":"client/src/App.tsx:54",children:c.jsx(D6,{"data-loc":"client/src/App.tsx:55",children:c.jsxs(v5,{"data-loc":"client/src/App.tsx:56",children:[c.jsx(OA,{"data-loc":"client/src/App.tsx:57",position:"top-center"}),c.jsx(q6,{"data-loc":"client/src/App.tsx:58",children:c.jsx(NR,{"data-loc":"client/src/App.tsx:59"})})]})})})})}const Jc=new TN,GS=t=>{!(t instanceof ml)||typeof window>"u"||!(t.message===dE)||(window.location.href=vh())};Jc.getQueryCache().subscribe(t=>
440{if(t.type==="updated"&&t.action.type==="error"){const a=t.query.state.error;GS(a),console.error("[API Query Error]",a)}});Jc.getMutationCache().subscribe(t=>{if(t.type==="updated"&&t.action.type==="error"){const a=t.mutation.state.error;GS(a),console.error("[API Mutation Error]",a)}});const AR=Ze.createClient({links:[U4({url:"/api/trpc",transformer:Pa,headers(){try{const t=sessionStorage.getItem("manus-cookie");if(t){const a=`${uE}=`,l=t.split(";").find(o=>o.trim().startsWith(a))?.trim().slice(a.length);if(l)return{Authorization:`Bearer ${l}`}}}catch{}return{}},fetch(t,a){return globalThis.fetch(t,{...a??{},credentials:"include"})}})]});xE.createRoot(document.getElementById("root")).render(c.jsx(Ze.Provider,{"data-loc":"client/src/main.tsx:76",client:AR,queryClient:Jc,children:c.jsx(_N,{"data-loc":"client/src/main.tsx:77",client:Jc,children:c.jsx(ER,{"data-loc":"client/src/main.tsx:78"})})}));

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.