vendor: 28,082 bytes, lines 1-9
1function p3(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const c in i)if(c!=="default"&&!(c in e)){const d=Object.getOwnPropertyDescriptor(i,c);d&&Object.defineProperty(e,c,d.get?d:{enumerable:!0,get:()=>i[c]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const u of d.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(c){if(c.ep)return;c.ep=!0;const d=r(c);fetch(c.href,d)}})();function Nj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gp={exports:{}},fc={};/** 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 L0;function h3(){if(L0)return fc;L0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,c,d){var u=null;if(d!==void 0&&(u=""+d),c.key!==void 0&&(u=""+c.key),"key"in c){d={};for(var m in c)m!=="key"&&(d[m]=c[m])}else d=c;return c=d.ref,{$$typeof:e,type:i,key:u,ref:c!==void 0?c:null,props:d}}return fc.Fragment=t,fc.jsx=r,fc.jsxs=r,fc}var U0;function x3(){return U0||(U0=1,gp.exports=h3()),gp.exports}var n=x3(),Xr=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},g3={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},y3=class{#t=g3;#e=!1;setTimeoutProvider(e){this.#t=e}setTimeout(e,t){return this.#t.setTimeout(e,t)}clearTimeout(e){this.#t.clearTimeout(e)}setInterval(e,t){return this.#t.setInterval(e,t)}clearInterval(e){this.#t.clearInterval(e)}},kr=new y3;function v3(e){setTimeout(e,0)}var Br=typeof window>"u"||"Deno"in globalThis;function ss(){}function b3(e,t){return typeof e=="function"?e(t):e}function dh(e){return typeof e=="number"&&e>=0&&e!==1/0}function Sj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qn(e,t){return typeof e=="function"?e(t):e}function Xs(e,t){return typeof e=="function"?e(t):e}function B0(e,t){const{type:r="all",exact:i,fetchStatus:c,predicate:d,queryKey:u,stale:m}=e;if(u){if(i){if(t.queryHash!==bx(u,t.options))return!1}else if(!Dc(t.queryKey,u))return!1}if(r!=="all"){const f=t.isActive();if(r==="active"&&!f||r==="inactive"&&f)return!1}return!(typeof m=="boolean"&&t.isStale()!==m||c&&c!==t.state.fetchStatus||d&&!d(t))}function z0(e,t){const{exact:r,status:i,predicate:c,mutationKey:d}=e;if(d){if(!t.options.mutationKey)return!1;if(r){if(Yn(t.options.mutationKey)!==Yn(d))return!1}else if(!Dc(t.options.mutationKey,d))return!1}return!(i&&t.state.status!==i||c&&!c(t))}function bx(e,t){return(t?.queryKeyHashFn||Yn)(e)}function Yn(e){return JSON.stringify(e,(t,r)=>uh(r)?Object.keys(r).sort().reduce((i,c)=>(i[c]=r[c],i),{}):r)}function Dc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(r=>Dc(e[r],t[r])):!1}var j3=Object.prototype.hasOwnProperty;function jx(e,t){if(e===t)return e;const r=H0(e)&&H0(t);if(!r&&!(uh(e)&&uh(t)))return t;const c=(r?e:Object.keys(e)).length,d=r?t:Object.keys(t),u=d.length,m=r?new Array(u):{};let f=0;for(let h=0;h<u;h++){const y=r?h:d[h],g=e[y],b=t[y];if(g===b){m[y]=g,(r?h<c:j3.call(e,y))&&f++;continue}if(g===null||b===null||typeof g!="object"||typeof b!="object"){m[y]=b;continue}const w=jx(g,b);m[y]=w,w===g&&f++}return c===u&&f===c?e:m}function Mc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function H0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function uh(e){if(!I0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const r=t.prototype;return!(!I0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function I0(e){return Object.prototype.toString.call(e)==="[object Object]"}function w3(e){return new Promise(t=>{kr.setTimeout(t,e)})}function mh(e,t,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?jx(e,t):t}function N3(e,t,r=0){const i=[...e,t];return r&&i.length>r?i.slice(1):i}function S3(e,t,r=0){const i=[t,...e];return r&&i.length>r?i.slice(0,-1):i}var ks=Symbol();function Cj(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ks?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Aj(e,t){return typeof e=="function"?e(...t):!!e}var C3=class extends Xr{#t;#e;#s;constructor(){super(),this.#s=e=>{if(!Br&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#s=e,this.#e?.(),this.#e=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#t!==e&&(this.#t=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},wx=new C3;function fh(){let e,t;const r=new Promise((c,d)=>{e=c,t=d});r.status="pending",r.catch(()=>{});function i(c){Object.assign(r,c),delete r.resolve,delete r.reject}return r.resolve=c=>{i({status:"fulfilled",value:c}),e(c)},r.reject=c=>{i({status:"rejected",reason:c}),t(c)},r}var A3=v3;function T3(){let e=[],t=0,r=m=>{m()},i=m=>{m()},c=A3;const d=m=>{t?e.push(m):c(()=>{r(m)})},u=()=>{const m=e;e=[],m.length&&c(()=>{i(()=>{m.forEach(f=>{r(f)})})})};return{batch:m=>{let f;t++;try{f=m()}finally{t--,t||u()}return f},batchCalls:m=>(...f)=>{d(()=>{m(...f)})},schedule:d,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{c=m}}}var At=T3(),O3=class extends Xr{#t=!0;#e;#s;constructor(){super(),this.#s=e=>{if(!Br&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(e){this.#s=e,this.#e?.(),this.#e=e(this.setOnline.bind(this))}setOnline(e){this.#t!==e&&(this.#t=e,this.listeners.forEach(r=>{r(e)}))}isOnline(){return this.#t}},iu=new O3;function E3(e){return Math.min(1e3*2**e,3e4)}function Tj(e){return(e??"online")==="online"?iu.isOnline():!0}var ph=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Oj(e){let t=!1,r=0,i;const c=fh(),d=()=>c.status!=="pending",u=N=>{if(!d()){const S=new ph(N);b(S),e.onCancel?.(S)}},m=()=>{t=!0},f=()=>{t=!1},h=()=>wx.isFocused()&&(e.networkMode==="always"||iu.isOnline())&&e.canRun(),y=()=>Tj(e.networkMode)&&e.canRun(),g=N=>{d()||(i?.(),c.resolve(N))},b=N=>{d()||(i?.(),c.reject(N))},w=()=>new Promise(N=>{i=S=>{(d()||h())&&N(S)},e.onPause?.()}).then(()=>{i=void 0,d()||e.onContinue?.()}),C=()=>{if(d())return;let N;const S=r===0?e.initialPromise:void 0;try{N=S??e.fn()}catch(A){N=Promise.reject(A)}Promise.resolve(N).then(g).catch(A=>{if(d())return;const D=e.retry??(Br?0:3),M=e.retryDelay??E3,V=typeof M=="function"?M(r,A):M,O=D===!0||typeof D=="number"&&r<D||typeof D=="function"&&D(r,A);if(t||!O){b(A);return}r++,e.onFail?.(r,A),w3(V).then(()=>h()?void 0:w()).then(()=>{t?b(A):C()})})};return{promise:c,status:()=>c.status,cancel:u,continue:()=>(i?.(),c),cancelRetry:m,continueRetry:f,canStart:y,start:()=>(y()?C():w().then(C),c)}}var Ej=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),dh(this.gcTime)&&(this.#t=kr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Br?1/0:300*1e3))}clearGcTimeout(){this.#t&&(kr.clearTimeout(this.#t),this.#t=void 0)}},D3=class extends Ej{#t;#e;#s;#n;#a;#r;#o;constructor(e){super(),this.#o=!1,this.#r=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#n=e.client,this.#s=this.#n.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=V0(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#r,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=V0(this.options);t.data!==void 0&&(this.setData(t.data,{updatedAt:t.dataUpdatedAt,manual:!0}),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#s.remove(this)}setData(e,t){const r=mh(this.state.data,e,this.options);return this.#i({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(ss).catch(ss):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(e=>Xs(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ks||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Qn(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Sj(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(f=>f.options.queryFn);m&&this.setOptions(m.options)}const r=new AbortController,i=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},c=()=>{const m=Cj(this.options,t),h=(()=>{const y={client:this.#n,queryKey:this.queryKey,meta:this.meta};return i(y),y})();return this.#o=!1,this.options.persister?this.options.persister(m,h,this):m(h)},u=(()=>{const m={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:c};return i(m),m})();this.options.behavior?.onFetch(u,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta}),this.#a=Oj({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:m=>{m instanceof ph&&m.revert&&this.setState({...this.#e,fetchStatus:"idle"}),r.abort()},onFail:(m,f)=>{this.#i({type:"failed",failureCount:m,error:f})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#s.config.onSuccess?.(m,this),this.#s.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof ph){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#s.config.onError?.(m,this),this.#s.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Dj(r.data,this.options),fetchMeta:e.meta??null};case"success":const i={...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=e.manual?i:void 0,i;case"error":const c=e.error;return{...r,error:c,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),At.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}};function Dj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Tj(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function V0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=t!==void 0,i=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Wc=class extends Xr{constructor(e,t){super(),this.options=t,this.#t=e,this.#i=null,this.#o=fh(),this.bindMethods(),this.setOptions(t)}#t;#e=void 0;#s=void 0;#n=void 0;#a;#r;#o;#i;#f;#u;#m;#l;#d;#c;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),q0(this.#e,this.options)?this.#p():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hh(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hh(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#j(),this.#e.removeObserver(this)}setOptions(e){const t=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xs(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#e.setOptions(this.options),t._defaulted&&!Mc(this.options,t)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&F0(this.#e,r,this.options,t)&&this.#p(),this.updateResult(),i&&(this.#e!==r||Xs(this.options.enabled,this.#e)!==Xs(t.enabled,this.#e)||Qn(this.options.staleTime,this.#e)!==Qn(t.staleTime,this.#e))&&this.#x();const c=this.#g();i&&(this.#e!==r||Xs(this.options.enabled,this.#e)!==Xs(t.enabled,this.#e)||c!==this.#c)&&this.#y(c)}getOptimisticResult(e){const t=this.#t.getQueryCache().build(this.#t,e),r=this.createResult(t,e);return R3(this,r)&&(this.#n=r,this.#r=this.options,this.#a=this.#e.state),r}getCurrentResult(){return this.#n}trackResult(e,t){return new Proxy(e,{get:(r,i)=>(this.trackProp(i),t?.(i),i==="promise"&&!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(r,i))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#e}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#t.defaultQueryOptions(e),r=this.#t.getQueryCache().build(this.#t,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#p({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#p(e){this.#w();let t=this.#e.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ss)),t}#x(){this.#b();const e=Qn(this.options.staleTime,this.#e);if(Br||this.#n.isStale||!dh(e))return;const r=Sj(this.#n.dataUpdatedAt,e)+1;this.#l=kr.setTimeout(()=>{this.#n.isStale||this.updateResult()},r)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(e){this.#j(),this.#c=e,!(Br||Xs(this.options.enabled,this.#e)===!1||!dh(this.#c)||this.#c===0)&&(this.#d=kr.setInterval(()=>{(this.options.refetchIntervalInBackground||wx.isFocused())&&this.#p()},this.#c))}#v(){this.#x(),this.#y(this.#g())}#b(){this.#l&&(kr.clearTimeout(this.#l),this.#l=void 0)}#j(){this.#d&&(kr.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){const r=this.#e,i=this.options,c=this.#n,d=this.#a,u=this.#r,f=e!==r?e.state:this.#s,{state:h}=e;let y={...h},g=!1,b;if(t._optimisticResults){const k=this.hasListeners(),J=!k&&q0(e,t),te=k&&F0(e,r,t,i);(J||te)&&(y={...y,...Dj(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:C,status:N}=y;b=y.data;let S=!1;if(t.placeholderData!==void 0&&b===void 0&&N==="pending"){let k;c?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(k=c.data,S=!0):k=typeof t.placeholderData=="function"?t.placeholderData(this.#m?.state.data,this.#m):t.placeholderData,k!==void 0&&(N="success",b=mh(c?.data,k,t),g=!0)}if(t.select&&b!==void 0&&!S)if(c&&b===d?.data&&t.select===this.#f)b=this.#u;else try{this.#f=t.select,b=t.select(b),b=mh(c?.data,b,t),this.#u=b,this.#i=null}catch(k){this.#i=k}this.#i&&(w=this.#i,b=this.#u,C=Date.now(),N="error");const A=y.fetchStatus==="fetching",D=N==="pending",M=N==="error",V=D&&A,O=b!==void 0,E={status:N,fetchStatus:y.fetchStatus,isPending:D,isSuccess:N==="success",isError:M,isInitialLoading:V,isLoading:V,data:b,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:C,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>f.dataUpdateCount||y.errorUpdateCount>f.errorUpdateCount,isFetching:A,isRefetching:A&&!D,isLoadingError:M&&!O,isPaused:y.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:M&&O,isStale:Nx(e,t),refetch:this.refetch,promise:this.#o,isEnabled:Xs(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const k=re=>{E.status==="error"?re.reject(E.error):E.data!==void 0&&re.resolve(E.data)},J=()=>{const re=this.#o=E.promise=fh();k(re)},te=this.#o;switch(te.status){case"pending":e.queryHash===r.queryHash&&k(te);break;case"fulfilled":(E.status==="error"||E.data!==te.value)&&J();break;case"rejected":(E.status!=="error"||E.error!==te.reason)&&J();break}}return E}updateResult(){const e=this.#n,t=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#r=this.options,this.#a.data!==void 0&&(this.#m=this.#e),Mc(t,e))return;this.#n=t;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,c=typeof i=="function"?i():i;if(c==="all"||!c&&!this.#h.size)return!0;const d=new Set(c??this.#h);return this.options.throwOnError&&d.add("error"),Object.keys(this.#n).some(u=>{const m=u;return this.#n[m]!==e[m]&&d.has(m)})};this.#N({listeners:r()})}#w(){const e=this.#t.getQueryCache().build(this.#t,this.options);if(e===this.#e)return;const t=this.#e;this.#e=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#N(e){At.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function M3(e,t){return Xs(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function q0(e,t){return M3(e,t)||e.state.data!==void 0&&hh(e,t,t.refetchOnMount)}function hh(e,t,r){if(Xs(t.enabled,e)!==!1&&Qn(t.staleTime,e)!=="static"){const i=typeof r=="function"?r(e):r;return i==="always"||i!==!1&&Nx(e,t)}return!1}function F0(e,t,r,i){return(e!==t||Xs(i.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Nx(e,r)}function Nx(e,t){return Xs(t.enabled,e)!==!1&&e.isStaleByTime(Qn(t.staleTime,e))}function R3(e,t){return!Mc(e.getCurrentResult(),t)}function ou(e){return{onFetch:(t,r)=>{const i=t.options,c=t.fetchOptions?.meta?.fetchMore?.direction,d=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let m={pages:[],pageParams:[]},f=0;const h=async()=>{let y=!1;const g=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>(t.signal.aborted?y=!0:t.signal.addEventListener("abort",()=>{y=!0}),t.signal)})},b=Cj(t.options,t.fetchOptions),w=async(C,N,S)=>{if(y)return Promise.reject();if(N==null&&C.pages.length)return Promise.resolve(C);const D=(()=>{const B={client:t.client,queryKey:t.queryKey,pageParam:N,direction:S?"backward":"forward",meta:t.options.meta};return g(B),B})(),M=await b(D),{maxPages:V}=t.options,O=S?S3:N3;return{pages:O(C.pages,M,V),pageParams:O(C.pageParams,N,V)}};if(c&&d.length){const C=c==="backward",N=C?Mj:xh,S={pages:d,pageParams:u},A=N(i,S);m=await w(S,A,C)}else{const C=e??d.length;do{const N=f===0?u[0]??i.initialPageParam:xh(i,m);if(f>0&&N==null)break;m=await w(m,N),f++}while(f<C)}return m};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=h}}}function xh(e,{pages:t,pageParams:r}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,r[i],r):void 0}function Mj(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}function k3(e,t){return t?xh(e,t)!=null:!1}function P3(e,t){return!t||!e.getPreviousPageParam?!1:Mj(e,t)!=null}var Rj=class extends Wc{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:ou()})}getOptimisticResult(e){return e.behavior=ou(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:r}=e,i=super.createResult(e,t),{isFetching:c,isRefetching:d,isError:u,isRefetchError:m}=i,f=r.fetchMeta?.fetchMore?.direction,h=u&&f==="forward",y=c&&f==="forward",g=u&&f==="backward",b=c&&f==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:k3(t,r.data),hasPreviousPage:P3(t,r.data),isFetchNextPageError:h,isFetchingNextPage:y,isFetchPreviousPageError:g,isFetchingPreviousPage:b,isRefetchError:m&&!h&&!g,isRefetching:d&&!y&&!b}}},_3=class extends Ej{#t;#e;#s;#n;constructor(e){super(),this.#t=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#e=[],this.state=e.state||kj(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#e.includes(e)||(this.#e.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#e=this.#e.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#a({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=Oj({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(d,u)=>{this.#a({type:"failed",failureCount:d,error:u})},onPause:()=>{this.#a({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const i=this.state.status==="pending",c=!this.#n.canStart();try{if(i)t();else{this.#a({type:"pending",variables:e,isPaused:c}),await this.#s.config.onMutate?.(e,this,r);const u=await this.options.onMutate?.(e,r);u!==this.state.context&&this.#a({type:"pending",context:u,variables:e,isPaused:c})}const d=await this.#n.start();return await this.#s.config.onSuccess?.(d,e,this.state.context,this,r),await this.options.onSuccess?.(d,e,this.state.context,r),await this.#s.config.onSettled?.(d,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(d,null,e,this.state.context,r),this.#a({type:"success",data:d}),d}catch(d){try{throw await this.#s.config.onError?.(d,e,this.state.context,this,r),await this.options.onError?.(d,e,this.state.context,r),await this.#s.config.onSettled?.(void 0,d,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(void 0,d,e,this.state.context,r),d}finally{this.#a({type:"error",error:d})}}finally{this.#s.runNext(this)}}#a(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),At.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function kj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var L3=class extends Xr{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#e=new Map,this.#s=0}#t;#e;#s;build(e,t,r){const i=new _3({client:e,mutationCache:this,mutationId:++this.#s,options:e.defaultMutationOptions(t),state:r});return this.add(i),i}add(e){this.#t.add(e);const t=Od(e);if(typeof t=="string"){const r=this.#e.get(t);r?r.push(e):this.#e.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){const t=Od(e);if(typeof t=="string"){const r=this.#e.get(t);if(r)if(r.length>1){const i=r.indexOf(e);i!==-1&&r.splice(i,1)}else r[0]===e&&this.#e.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Od(e);if(typeof t=="string"){const i=this.#e.get(t)?.find(c=>c.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=Od(e);return typeof t=="string"?this.#e.get(t)?.find(i=>
9i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){At.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(e){const t={exact:!0,...e};return this.getAll().find(r=>z0(t,r))}findAll(e={}){return this.getAll().filter(t=>z0(e,t))}notify(e){At.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return At.batch(()=>Promise.all(e.map(t=>t.continue().catch(ss))))}};function Od(e){return e.options.scope?.id}var U3=class extends Xr{#t;#e=void 0;#s;#n;constructor(t,r){super(),this.#t=t,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const r=this.options;this.options=this.#t.defaultMutationOptions(t),Mc(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#s,observer:this}),r?.mutationKey&&this.options.mutationKey&&Yn(r.mutationKey)!==Yn(this.options.mutationKey)?this.reset():this.#s?.state.status==="pending"&&this.#s.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#s?.removeObserver(this)}onMutationUpdate(t){this.#a(),this.#r(t)}getCurrentResult(){return this.#e}reset(){this.#s?.removeObserver(this),this.#s=void 0,this.#a(),this.#r()}mutate(t,r){return this.#n=r,this.#s?.removeObserver(this),this.#s=this.#t.getMutationCache().build(this.#t,this.options),this.#s.addObserver(this),this.#s.execute(t)}#a(){const t=this.#s?.state??kj();this.#e={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#r(t){At.batch(()=>{if(this.#n&&this.hasListeners()){const r=this.#e.variables,i=this.#e.context,c={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#n.onSuccess?.(t.data,r,i,c),this.#n.onSettled?.(t.data,null,r,i,c)):t?.type==="error"&&(this.#n.onError?.(t.error,r,i,c),this.#n.onSettled?.(void 0,t.error,r,i,c))}this.listeners.forEach(r=>{r(this.#e)})})}};function G0(e,t){const r=new Set(t);return e.filter(i=>!r.has(i))}function B3(e,t,r){const i=e.slice(0);return i[t]=r,i}var z3=class extends Xr{#t;#e;#s;#n;#a;#r;#o;#i;#f=[];constructor(e,t,r){super(),this.#t=e,this.#n=r,this.#s=[],this.#a=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(e=>{e.subscribe(t=>{this.#d(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(e=>{e.destroy()})}setQueries(e,t){this.#s=e,this.#n=t,At.batch(()=>{const r=this.#a,i=this.#l(this.#s);this.#f=i,i.forEach(y=>y.observer.setOptions(y.defaultedQueryOptions));const c=i.map(y=>y.observer),d=c.map(y=>y.getCurrentResult()),u=r.length!==c.length,m=c.some((y,g)=>y!==r[g]),f=u||m,h=f?!0:d.some((y,g)=>{const b=this.#e[g];return!b||!Mc(y,b)});!f&&!h||(f&&(this.#a=c),this.#e=d,this.hasListeners()&&(f&&(G0(r,c).forEach(y=>{y.destroy()}),G0(c,r).forEach(y=>{y.subscribe(g=>{this.#d(y,g)})})),this.#c()))})}getCurrentResult(){return this.#e}getQueries(){return this.#a.map(e=>e.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(e,t){const r=this.#l(e),i=r.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions));return[i,c=>this.#m(c??i,t),()=>this.#u(i,r)]}#u(e,t){return t.map((r,i)=>{const c=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?c:r.observer.trackResult(c,d=>{t.forEach(u=>{u.observer.trackProp(d)})})})}#m(e,t){return t?((!this.#r||this.#e!==this.#i||t!==this.#o)&&(this.#o=t,this.#i=this.#e,this.#r=jx(this.#r,t(e))),this.#r):e}#l(e){const t=new Map(this.#a.map(i=>[i.options.queryHash,i])),r=[];return e.forEach(i=>{const c=this.#t.defaultQueryOptions(i),d=t.get(c.queryHash);d?r.push({defaultedQueryOptions:c,observer:d}):r.push({defaultedQueryOptions:c,observer:new Wc(this.#t,c)})}),r}#d(e,t){const r=this.#a.indexOf(e);r!==-1&&(this.#e=B3(this.#e,r,t),this.#c())}#c(){if(this.hasListeners()){const e=this.#r,t=this.#u(this.#e,this.#f),r=this.#m(t,this.#n?.combine);e!==r&&At.batch(()=>
vendor: 13,766 bytes, lines 9-17
9{this.listeners.forEach(i=>{i(this.#e)})})}}},H3=class extends Xr{constructor(e={}){super(),this.config=e,this.#t=new Map}#t;build(e,t,r){const i=t.queryKey,c=t.queryHash??bx(i,t);let d=this.get(c);return d||(d=new D3({client:e,queryKey:i,queryHash:c,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(d)),d}add(e){this.#t.has(e.queryHash)||(this.#t.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#t.get(e.queryHash);t&&(e.destroy(),t===e&&this.#t.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){At.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#t.get(e)}getAll(){return[...this.#t.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>B0(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>B0(e,r)):t}notify(e){At.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){At.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){At.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},I3=class{#t;#e;#s;#n;#a;#r;#o;#i;constructor(e={}){this.#t=e.queryCache||new H3,this.#e=e.mutationCache||new L3,this.#s=e.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#o=wx.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=iu.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=void 0)}isFetching(e){return this.#t.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#e.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#t.build(this,t),i=r.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Qn(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#t.findAll(e).map(({queryKey:t,state:r})=>{const i=r.data;return[t,i]})}setQueryData(e,t,r){const i=this.defaultQueryOptions({queryKey:e}),d=this.#t.get(i.queryHash)?.state.data,u=b3(t,d);if(u!==void 0)return this.#t.build(this,i).setData(u,{...r,manual:!0})}setQueriesData(e,t,r){return At.batch(()=>this.#t.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#t.get(t.queryHash)?.state}removeQueries(e){const t=this.#t;At.batch(()=>{t.findAll(e).forEach(r=>{t.remove(r)})})}resetQueries(e,t){const r=this.#t;return At.batch(()=>(r.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},i=At.batch(()=>this.#t.findAll(e).map(c=>c.cancel(r)));return Promise.all(i).then(ss).catch(ss)}invalidateQueries(e,t={}){return At.batch(()=>(this.#t.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},i=At.batch(()=>this.#t.findAll(e).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let d=c.fetch(void 0,r);return r.throwOnError||(d=d.catch(ss)),c.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(i).then(ss)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const r=this.#t.build(this,t);return r.isStaleByTime(Qn(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ss).catch(ss)}fetchInfiniteQuery(e){return e.behavior=ou(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ss).catch(ss)}ensureInfiniteQueryData(e){return e.behavior=ou(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return iu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#s}setDefaultOptions(e){this.#s=e}setQueryDefaults(e,t){this.#n.set(Yn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#n.values()],r={};return t.forEach(i=>{Dc(e,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(e,t){this.#a.set(Yn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#a.values()],r={};return t.forEach(i=>{Dc(e,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#s.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bx(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ks&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#s.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},yp={exports:{}},Be={};/** 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 Q0;function V3(){if(Q0)return Be;Q0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function w(R){return R===null||typeof R!="object"?null:(R=b&&R[b]||R["@@iterator"],typeof R=="function"?R:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function A(R,Y,F){this.props=R,this.context=Y,this.refs=S,this.updater=F||C}A.prototype.isReactComponent={},A.prototype.setState=function(R,Y){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,Y,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function D(){}D.prototype=A.prototype;function M(R,Y,F){this.props=R,this.context=Y,this.refs=S,this.updater=F||C}var V=M.prototype=new D;V.constructor=M,N(V,A.prototype),V.isPureReactComponent=!0;var O=Array.isArray;function B(){}var E={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function J(R,Y,F){var $=F.ref;return{$$typeof:e,type:R,key:Y,ref:$!==void 0?$:null,props:F}}function te(R,Y){return J(R.type,Y,R.props)}function re(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function ce(R){var Y={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(F){return Y[F]})}var de=/\/+/g;function ue(R,Y){return typeof R=="object"&&R!==null&&R.key!=null?ce(""+R.key):Y.toString(36)}function pe(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(B,B):(R.status="pending",R.then(function(Y){R.status==="pending"&&(R.status="fulfilled",R.value=Y)},function(Y){R.status==="pending"&&(R.status="rejected",R.reason=Y)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function P(R,Y,F,$,le){var xe=typeof R;(xe==="undefined"||xe==="boolean")&&(R=null);var _=!1;if(R===null)_=!0;else switch(xe){case"bigint":case"string":case"number":_=!0;break;case"object":switch(R.$$typeof){case e:case t:_=!0;break;case y:return _=R._init,P(_(R._payload),Y,F,$,le)}}if(_)return le=le(R),_=$===""?"."+ue(R,0):$,O(le)?(F="",_!=null&&(F=_.replace(de,"$&/")+"/"),P(le,Y,F,"",function(ge){return ge})):le!=null&&(re(le)&&(le=te(le,F+(le.key==null||R&&R.key===le.key?"":(""+le.key).replace(de,"$&/")+"/")+_)),Y.push(le)),1;_=0;var X=$===""?".":$+":";if(O(R))for(var se=0;se<R.length;se++)$=R[se],xe=X+ue($,se),_+=P($,Y,F,xe,le);else if(se=w(R),typeof se=="function")for(R=se.call(R),se=0;!($=R.next()).done;)$=$.value,xe=X+ue($,se++),_+=P($,Y,F,xe,le);else if(xe==="object"){if(typeof R.then=="function")return P(pe(R),Y,F,$,le);throw Y=String(R),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return _}function I(R,Y,F){if(R==null)return R;var $=[],le=0;return P(R,$,"","",function(xe){return Y.call(F,xe,le++)}),$}function z(R){if(R._status===-1){var Y=R._result;Y=Y(),Y.then(function(F){(R._status===0||R._status===-1)&&(R._status=1,R._result=F)},function(F){(R._status===0||R._status===-1)&&(R._status=2,R._result=F)}),R._status===-1&&(R._status=0,R._result=Y)}if(R._status===1)return R._result.default;throw R._result}var Z=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},he={map:I,forEach:function(R,Y,F){I(R,function(){Y.apply(this,arguments)},F)},count:function(R){var Y=0;return I(R,function(){Y++}),Y},toArray:function(R){return I(R,function(Y){return Y})||[]},only:function(R){if(!re(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Be.Activity=g,Be.Children=he,Be.Component=A,Be.Fragment=r,Be.Profiler=c,Be.PureComponent=M,Be.StrictMode=i,Be.Suspense=f,Be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,Be.__COMPILER_RUNTIME={__proto__:null,c:function(R){return E.H.useMemoCache(R)}},Be.cache=function(R){return function(){return R.apply(null,arguments)}},Be.cacheSignal=function(){return null},Be.cloneElement=function(R,Y,F){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var $=N({},R.props),le=R.key;if(Y!=null)for(xe in Y.key!==void 0&&(le=""+Y.key),Y)!k.call(Y,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&Y.ref===void 0||($[xe]=Y[xe]);var xe=arguments.length-2;if(xe===1)$.children=F;else if(1<xe){for(var _=Array(xe),X=0;X<xe;X++)_[X]=arguments[X+2];$.children=_}return J(R.type,le,$)},Be.createContext=function(R){return R={$$typeof:u,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:d,_context:R},R},Be.createElement=function(R,Y,F){var $,le={},xe=null;if(Y!=null)for($ in Y.key!==void 0&&(xe=""+Y.key),Y)k.call(Y,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(le[$]=Y[$]);var _=arguments.length-2;if(_===1)le.children=F;else if(1<_){for(var X=Array(_),se=0;se<_;se++)X[se]=arguments[se+2];le.children=X}if(R&&R.defaultProps)for($ in _=R.defaultProps,_)le[$]===void 0&&(le[$]=_[$]);return J(R,xe,le)},Be.createRef=function(){return{current:null}},Be.forwardRef=function(R){return{$$typeof:m,render:R}},Be.isValidElement=re,Be.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:z}},Be.memo=function(R,Y){return{$$typeof:h,type:R,compare:Y===void 0?null:Y}},Be.startTransition=function(R){var Y=E.T,F={};E.T=F;try{var $=R(),le=E.S;le!==null&&le(F,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(B,Z)}catch(xe){Z(xe)}finally{Y!==null&&F.types!==null&&(Y.types=F.types),E.T=Y}},Be.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},Be.use=function(R){return E.H.use(R)},Be.useActionState=function(R,Y,F){return E.H.useActionState(R,Y,F)},Be.useCallback=function(R,Y){return E.H.useCallback(R,Y)},Be.useContext=function(R){return E.H.useContext(R)},Be.useDebugValue=function(){},Be.useDeferredValue=function(R,Y){return E.H.useDeferredValue(R,Y)},Be.useEffect=function(R,Y){return E.H.useEffect(R,Y)},Be.useEffectEvent=function(R){return E.H.useEffectEvent(R)},Be.useId=function(){return E.H.useId()},Be.useImperativeHandle=function(R,Y,F){return E.H.useImperativeHandle(R,Y,F)},Be.useInsertionEffect=function(R,Y){return E.H.useInsertionEffect(R,Y)},Be.useLayoutEffect=function(R,Y){return E.H.useLayoutEffect(R,Y)},Be.useMemo=function(R,Y){return E.H.useMemo(R,Y)},Be.useOptimistic=function(R,Y){return E.H.useOptimistic(R,Y)},Be.useReducer=function(R,Y,F){return E.H.useReducer(R,Y,F)},Be.useRef=function(R){return E.H.useRef(R)},Be.useState=function(R){return E.H.useState(R)},Be.useSyncExternalStore=function(R,Y,F){return E.H.useSyncExternalStore(R,Y,F)},Be.useTransition=function(){return E.H.useTransition()},Be.version="19.2.1",Be}var K0;function Tu(){return K0||(K0=1,yp.exports=V3()),yp.exports}var v=Tu();const me=Nj(v),Ou=p3({__proto__:null,default:me},[v]);var Pj=v.createContext(void 0),Zc=e=>{const t=v.useContext(Pj);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},q3=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),n.jsx(Pj.Provider,{value:e,children:t})),_j=v.createContext(!1),Lj=()=>v.useContext(_j);_j.Provider;function F3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var G3=v.createContext(F3()),Uj=()=>v.useContext(G3),Bj=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOn
17Mount=!1))},zj=e=>{v.useEffect(()=>{e.clearReset()},[e])},Hj=({result:e,errorResetBoundary:t,throwOnError:r,query:i,suspense:c})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(c&&e.data===void 0||Aj(r,[e.error,i])),Sx=(e,t)=>t.state.data===void 0,Ij=e=>{if(e.suspense){const r=c=>c==="static"?c:Math.max(c??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...c)=>r(i(...c)):r(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Vj=(e,t)=>e.isLoading&&e.isFetching&&!t,gh=(e,t)=>e?.suspense&&t.isPending,cu=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function qj({queries:e,...t},r){const i=Zc(r),c=Lj(),d=Uj(),u=v.useMemo(()=>e.map(N=>{const S=i.defaultQueryOptions(N);return S._optimisticResults=c?"isRestoring":"optimistic",S}),[e,i,c]);u.forEach(N=>{Ij(N),Bj(N,d)}),zj(d);const[m]=v.useState(()=>new z3(i,u,t)),[f,h,y]=m.getOptimisticResult(u,t.combine),g=!c&&t.subscribed!==!1;v.useSyncExternalStore(v.useCallback(N=>g?m.subscribe(At.batchCalls(N)):ss,[m,g]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),v.useEffect(()=>{m.setQueries(u,t)},[u,t,m]);const w=f.some((N,S)=>gh(u[S],N))?f.flatMap((N,S)=>{const A=u[S];if(A){const D=new Wc(i,A);if(gh(A,N))return cu(A,D,d);Vj(N,c)&&cu(A,D,d)}return[]}):[];if(w.length>0)throw Promise.all(w);const C=f.find((N,S)=>{const A=u[S];return A&&Hj({result:N,errorResetBoundary:d,throwOnError:A.throwOnError,query:i.getQueryCache().get(A.queryHash),suspense:A.suspense})});if(C?.error)throw C.error;return h(y())}function Eu(e,t,r){const i=Lj(),c=Uj(),d=Zc(r),u=d.defaultQueryOptions(e);d.getDefaultOptions().queries?._experimental_beforeQuery?.(u),u._optimisticResults=i?"isRestoring":"optimistic",Ij(u),Bj(u,c),zj(c);const m=!d.getQueryCache().get(u.queryHash),[f]=v.useState(()=>new t(d,u)),h=f.getOptimisticResult(u),y=!i&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(g=>{const b=y?f.subscribe(At.batchCalls(g)):ss;return f.updateResult(),b},[f,y]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),v.useEffect(()=>{f.setOptions(u)},[u,f]),gh(u,h))throw cu(u,f,c);if(Hj({result:h,errorResetBoundary:c,throwOnError:u.throwOnError,query:d.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw h.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(u,h),u.experimental_prefetchInRender&&!Br&&Vj(h,i)&&(m?cu(u,f,c):d.getQueryCache().get(u.queryHash)?.promise)?.catch(ss).finally(()=>{f.updateResult()}),u.notifyOnChangeProps?h:f.trackResult(h)}function Q3(e,t){return Eu(e,Wc,t)}function K3(e,t){return Eu({...e,enabled:!0,suspense:!0,throwOnError:Sx,placeholderData:void 0},Wc,t)}function Y3(e,t){return Eu({...e,enabled:!0,suspense:!0,throwOnError:Sx},Rj,t)}function $3(e,t){return qj({...e,queries:e.queries.map(r=>({...r,suspense:!0,throwOnError:Sx,enabled:!0,placeholderData:void 0}))},t)}function X3(e,t){const r=Zc(t);r.getQueryState(e.queryKey)||r.prefetchQuery(e)}function W3(e,t){const r=Zc(t);r.getQueryState(e.queryKey)||r.prefetchInfiniteQuery(e)}function Z3(e,t){const r=Zc(t),[i]=v.useState(()=>new U3(r,e));v.useEffect(()=>{i.setOptions(e)},[i,e]);const c=v.useSyncExternalStore(v.useCallback(u=>i.subscribe(At.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),d=v.useCallback((u,m)=>{i.mutate(u,m).catch(ss)},[i]);if(c.error&&Aj(i.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:d,mutateAsync:c.mutate}}function J3(e,t){return Eu(e,Rj,t)}function zr(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}const e5=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Fj(e){return e5&&zr(e)&&Symbol.asyncIterator in e}var t5=Object.create,Gj=Object.defineProperty,s5=Object.getOwnPropertyDescriptor,Qj=Object.getOwnPropertyNames,a5=Object.getPrototypeOf,n5=Object.prototype.hasOwnProperty,Jc=(e,t)=>function(){return t||(0,e[Qj(e)[0]])((t={exports:{}}).exports,t),t.exports},r5=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var c=Qj(t),d=0,u=c.length,m;d<u;d++)m=c[d],!n5.call(e,m)&&m!==r&&Gj(e,m,{get:(f=>t[f]).bind(null,m),enumerable:!(i=s5(t,m))||i.enumerable});return e},Du=(e,t,r)=>(r=e!=null?t5(a5(e)):{},r5(Gj(r,"default",{value:e,enumerable:!0}),e));const Kj=()=>{},Y0=e=>{Object.freeze&&Object.freeze(e)};function Yj(e,t,r){var i;const c=t.join(".");return(i=r[c])!==null&&i!==void 0||(r[c]=new Proxy(Kj,{get(d,u){if(!(typeof u!="string"||u==="then"))return Yj(e,[...t,u],r)},apply(d,u,m){const f=t[t.length-1];let h={args:m,path:t};return f==="call"?h={args:m.length>=2?[m[1]]:[],path:t.slice(0,-1)}:f==="apply"&&(h={args:m.length>=2?m[1]:[],path:t.slice(0,-1)}),Y0(h.args),Y0(h.path),e(h)}})),r[c]}const Mu=e=>Yj(e,[],Object.create(null)),Cx=e=>
17new Proxy(Kj,{get(t,r){if(r!=="then")return e(r)}});var $j=Jc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(i){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),i5=Jc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=$j().default;function i(c,d){if(r(c)!="object"||!c)return c;var u=c[Symbol.toPrimitive];if(u!==void 0){var m=u.call(c,d||"default");if(r(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(c)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),o5=Jc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=$j().default,i=i5();function c(d){var u=i(d,"string");return r(u)=="symbol"?u:u+""}
17t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),Xj=Jc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=o5();function i(c,d,u){return(d=r(d))in c?Object.defineProperty(c,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[d]=u,c}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ax=Jc({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=Xj();function i(d,u){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(d);u&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(d,h).enumerable})),m.push.apply(m,f)}return m}function c(d){for(var u=1;u<arguments.length;u++){var m=arguments[u]!=null?arguments[u]:{};u%2?i(Object(m),!0).forEach(function(f){r(d,f,m[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):i(Object(m)).forEach(function(f){Object.defineProperty(d,f,Object.getOwnPropertyDescriptor(m,f))})}return d}
17t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}});Du(Ax());Du(Xj());var Ed=Du(Ax());function c5(e,t){if("error"in e){const i=t.deserialize(e.error);return{ok:!1,error:(0,Ed.default)((0,Ed.default)({},e),{},{error:i})}}return{ok:!0,result:(0,Ed.default)((0,Ed.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var vp=class extends Error{constructor(){super("Unable to transform response from server")}};function l5(e,t){let r;try{r=c5(e,t)}catch{throw new vp}if(!r.ok&&(!zr(r.error.error)||typeof r.error.error.code!="number"))throw new vp;if(r.ok&&!zr(r.result))throw new vp;return r}Du(Ax());function Ru(e){const t={subscribe(r){let i=null,c=!1,d=!1,u=!1;function m(){if(i===null){u=!0;return}d||(d=!0,typeof i=="function"?i():i&&i.unsubscribe())}return i=e({next(f){var h;c||(h=r.next)===null||h===void 0||h.call(r,f)},error(f){var h;c||(c=!0,(h=r.error)===null||h===void 0||h.call(r,f),m())},complete(){var f;c||(c=!0,(f=r.complete)===null||f===void 0||f.call(r),m())}}),u&&m(),{unsubscribe:m}},pipe(...r){return r.reduce(d5,t)}};return t}function d5(e,t){return t(e)}function u5(e){const t=new AbortController;return new Promise((i,c)=>{let d=!1;function u(){d||(d=!0,m.unsubscribe())}t.signal.addEventListener("abort",()=>{c(t.signal.reason)});const m=e.subscribe({next(f){d=!0,i(f),u()},error(f){c(f)},complete(){t.abort(),u()}})})}var m5=Object.create,Wj=Object.defineProperty,f5=Object.getOwnPropertyDescriptor,Zj=Object.getOwnPropertyNames,p5=Object.getPrototypeOf,h5=Object.prototype.hasOwnProperty,er=(e,t)=>function(){return t||(0,e[Zj(e)[0]])((t={exports:{}}).exports,t),t.exports},x5=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var c=Zj(t),d=0,u=c.length,m;d<u;d++)m=c[d],!h5.call(e,m)&&m!==r&&Wj(e,m,{get:(f=>t[f]).bind(null,m),enumerable:!(i=f5(t,m))||i.enumerable});return e},Wr=(e,t,r)=>(r=e!=null?m5(p5(e)):{},x5(t||!e||!e.__esModule?Wj(r,"default",{value:e,enumerable:!0}):r,e)),g5=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function r(i,c){if(i==null)return{};var d={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(c.includes(u))continue;d[u]=i[u]}return d}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),y5=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var r=g5();function i(c,d){if(c==null)return{};var u,m,f=r(c,d);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);for(m=0;m<h.length;m++)u=h[m],d.includes(u)||{}.propertyIsEnumerable.call(c,u)&&(f[u]=c[u])}return f}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jj=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(i){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),v5=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=Jj().default;function i(c,d){if(r(c)!="object"||!c)return c;var u=c[Symbol.toPrimitive];if(u!==void 0){var m=u.call(c,d||"default");if(r(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(c)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),b5=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=Jj().default,i=v5();function c(d){var u=i(d,"string");return r(u)=="symbol"?u:u+""}
17t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),j5=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=b5();function i(c,d,u){return(d=r(d))in c?Object.defineProperty(c,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[d]=u,c}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),el=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=j5();function i(d,u){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(d);u&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(d,h).enumerable})),m.push.apply(m,f)}return m}function c(d){for(var u=1;u<arguments.length;u++){var m=arguments[u]!=null?arguments[u]:{};u%2?i(Object(m),!0).forEach(function(f){r(d,f,m[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):i(Object(m)).forEach(function(f){Object.defineProperty(d,f,Object.getOwnPropertyDescriptor(m,f))})}return d}
17t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),w5=Wr(y5(),1),$0=Wr(el(),1);const N5=["cursor","direction"];function Na(e,t,r){const i=e.flatMap(c=>c.split("."));if(!t&&(!r||r==="any"))return i.length?[i]:[];if(r==="infinite"&&zr(t)&&("direction"in t||"cursor"in t)){const{cursor:c,direction:d}=t,u=(0,w5.default)(t,N5);return[i,{input:u,type:"infinite"}]}return[i,(0,$0.default)((0,$0.default)({},typeof t<"u"&&t!==ks&&{input:t}),r&&r!=="any"&&{type:r})]}function Kd(e){return Na(e,void 0,"any")}var S5=Object.create,ew=Object.defineProperty,C5=Object.getOwnPropertyDescriptor,tw=Object.getOwnPropertyNames,A5=Object.getPrototypeOf,T5=Object.prototype.hasOwnProperty,Ra=(e,t)=>function(){return t||(0,e[tw(e)[0]])((t={exports:{}}).exports,t),t.exports},O5=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var c=tw(t),d=0,u=c.length,m;d<u;d++)m=c[d],!T5.call(e,m)&&m!==r&&ew(e,m,{get:(f=>t[f]).bind(null,m),enumerable:!(i=C5(t,m))||i.enumerable});return e},Dt=(e,t,r)=>(r=e!=null?S5(A5(e)):{},O5(t||!e||!e.__esModule?ew(r,"default",{value:e,enumerable:!0}):r,e)),sw=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function r(i){"@babel/helpers - typeof";return t.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},t.exports.__esModule=!0,t.exports.default=t.exports,r(i)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),E5=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var r=sw().default;function i(c,d){if(r(c)!="object"||!c)return c;var u=c[Symbol.toPrimitive];if(u!==void 0){var m=u.call(c,d||"default");if(r(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(c)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),D5=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var r=sw().default,i=E5();function c(d){var u=i(d,"string");return r(u)=="symbol"?u:u+""}
17t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}}),Zr=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var r=D5();function i(c,d,u){return(d=r(d))in c?Object.defineProperty(c,d,{value:u,enumerable:!0,configurable:!0,writable:!0}):c[d]=u,c}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),ma=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var r=Zr();function i(d,u){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(d);u&&(f=f.filter(function(h){return Object.getOwnPropertyDescriptor(d,h).enumerable})),m.push.apply(m,f)}return m}function c(d){for(var u=1;u<arguments.length;u++){var m=arguments[u]!=null?arguments[u]:{};u%2?i(Object(m),!0).forEach(function(f){r(d,f,m[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):i(Object(m)).forEach(function(f){Object.defineProperty(d,f,Object.getOwnPropertyDescriptor(m,f))})}return d}
17t.exports=c,t.exports.__esModule=!0,t.exports.default=t.exports}});function M5(e){return t=>{let r=0,i=null;const c=[];function d(){i||(i=t.subscribe({next(m){for(const h of c){var f;(f=h.next)===null||f===void 0||f.call(h,m)}},error(m){for(const h of c){var f;(f=h.error)===null||f===void 0||f.call(h,m)}},complete(){for(const f of c){var m;(m=f.complete)===null||m===void 0||m.call(f)}}}))}function u(){if(r===0&&i){const m=i;i=null,m.unsubscribe()}}return Ru(m=>(r++,c.push(m),d(),{unsubscribe(){r--,u();const f=c.findIndex(h=>h===m);f>-1&&c.splice(f,1)}}))}}function R5(e){let t=e;const r=[],i=u=>{t!==void 0&&u.next(t),r.push(u)},c=u=>{r.splice(r.indexOf(u),1)},d=Ru(u=>(i(u),()=>{c(u)}));return d.next=u=>{if(t!==u){t=u;for(const m of r)m.next(u)}},d.get=()=>t,d}function k5(e){return Ru(t=>{function r(c=0,d=e.op){const u=e.links[c];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:d,next(f){return r(c+1,f)}})}return r().subscribe(t)})}var Dd=Dt(Zr(),1),Fi=Dt(ma(),1);function P5(e){return e instanceof Hr}function _5(e){return zr(e)&&zr(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function L5(e,t){return typeof e=="string"?e:zr(e)&&typeof e.message=="string"?e.message:t}var Hr=class Yd extends Error{constructor(t,r){var i,c;const d=r?.cause;super(t,{cause:d}),(0,Dd.default)(this,"cause",void 0),(0,Dd.default)(this,"shape",void 0),(0,Dd.default)(this,"data",void 0),(0,Dd.default)(this,"meta",void 0),this.meta=r?.meta,this.cause=d,this.shape=r==null||(i=r.result)===null||i===void 0?void 0:i.error,this.data=r==null||(c=r.result)===null||c===void 0?void 0:c.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Yd.prototype)}static from(t,r={}){const i=t;return P5(i)?(r.meta&&(i.meta=(0,Fi.default)((0,Fi.default)({},i.meta),r.meta)),i):_5(i)?new Yd(i.error.message,(0,Fi.default)((0,Fi.default)({},r),{},{result:i})):new Yd(L5(i,"Unknown error"),(0,Fi.default)((0,Fi.default)({},r),{},{cause:i}))}};function U5(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const X0=e=>typeof e=="function";function B5(e){if(e)return e;if(typeof window<"u"&&X0(window.fetch))return window.fetch;if(typeof globalThis<"u"&&X0(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var wc=Dt(ma());function z5(e){return{url:e.url.toString(),fetch:e.fetch,transformer:U5(e.transformer),methodOverride:e.methodOverride}}function H5(e){const t={};for(let r=0;r<e.length;r++){const i=e[r];t[r]=i}return t}const I5={query:"GET",mutation:"POST",subscription:"PATCH"};function aw(e){return"input"in e?e.transformer.input.serialize(e.input):H5(e.inputs.map(t=>e.transformer.input.serialize(t)))}const nw=e=>{const t=e.url.split("?");let i=t[0].replace(/\/$/,"")+"/"+e.path;const c=[];if(t[1]&&c.push(t[1]),"inputs"in e&&c.push("batch=1"),e.type==="query"||e.type==="subscription"){const d=aw(e);d!==void 0&&e.methodOverride!=="POST"&&c.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return c.length&&(i+="?"+c.join("&")),i},V5=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=aw(e);return t!==void 0?JSON.stringify(t):void 0},q5=e=>K5((0,wc.default)((0,wc.default)({},e),{},{contentTypeHeader:"application/json",getUrl:nw,getBody:V5}));var F5=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const G5=e=>{var t;if(e?.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new F5};async function Q5(e){var t;G5(e.signal);const r=e.getUrl(e),i=e.getBody(e),c=(t=e.methodOverride)!==null&&t!==void 0?t:I5[e.type],d=await(async()=>{const m=await e.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),u=(0,wc.default)((0,wc.default)((0,wc.default)({},e.contentTypeHeader&&c!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),d);return B5(e.fetch)(r,{method:c,signal:e.signal,body:i,headers:u})}async function K5(e){const t={},r=await Q5(e);t.response=r;const i=await r.json();return t.responseJSON=i,{json:i,meta:t}}Dt(ma(),1);const W0=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Z0(e){let t=null,r=null;const i=()=>{clearTimeout(r),r=null,t=null};function c(m){const f=[[]];let h=0;for(;;){const b=m[h];if(!b)break;const w=f[f.length-1];if(b.aborted){var y;(y=b.reject)===null||y===void 0||y.call(b,new Error("Aborted")),h++;continue}if(e.validate(w.concat(b).map(N=>N.key))){w.push(b),h++;continue}if(w.length===0){var g;(g=b.reject)===null||g===void 0||g.call(b,new Error("Input is too big for a single dispatch")),h++;continue}f.push([])}return f}function d(){const m=c(t);i();for(const f of m){if(!f.length)continue;const h={items:f};for(const g of f)g.batch=h;e.fetch(h.items.map(g=>g.key)).then(async g=>{await Promise.all(g.map(async(w,C)=>{const N=h.items[C];try{var S;const D=await Promise.resolve(w);(S=N.resolve)===null||S===void 0||S.call(N,D)}catch(D){var A;(A=N.reject)===null||A===void 0||A.call(N,D)}N.batch=null,N.reject=null,N.resolve=null}));for(const w of h.items){var b;(b=w.reject)===null||b===void 0||b.call(w,new Error("Missing result")),w.batch=null}}).catch(g=>{for(const w of h.items){var b;(b=w.reject)===null||b===void 0||b.call(w,g),w.batch=null}})}}function u(m){var f;const h={aborted:!1,key:m,batch:null,resolve:W0,reject:W0},y=new Promise((g,b)=>{var w;h.reject=b,h.resolve=g,(w=t)!==null&&w!==void 0||(t=[]),t.push(h)});return(f=r)!==null&&f!==void 0||(r=setTimeout(d)),y}return{load:u}}function Y5(...e){const t=new AbortController,r=e.length;let i=0;const c=()=>{++i===r&&t.abort()};for(const d of e)d?.aborted?c():d?.addEventListener("abort",c,{once:!0});return t.signal}var Md=Dt(ma(),1);function $5(e){var t,r;const i=z5(e),c=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,d=(r=e.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const u=y=>({validate(g){if(c===1/0&&d===1/0)return!0;
17if(g.length>d)return!1;const b=g.map(N=>N.path).join(","),w=g.map(N=>N.input);return nw((0,Md.default)((0,Md.default)({},i),{},{type:y,path:b,inputs:w,signal:null})).length<=c},async fetch(g){const b=g.map(D=>D.path).join(","),w=g.map(D=>D.input),C=Y5(...g.map(D=>D.signal)),N=await q5((0,Md.default)((0,Md.default)({},i),{},{path:b,inputs:w,type:y,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:g}):e.headers:{}},signal:C}));return(Array.isArray(N.json)?N.json:g.map(()=>N.json)).map(D=>({meta:N.meta,json:D}))}}),m=Z0(u("query")),f=Z0(u("mutation")),h={query:m,mutation:f};return({op:y})=>Ru(g=>{/* istanbul ignore if -- @preserve */if(y.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const w=h[y.type].load(y);let C;return w.then(N=>{C=N;const S=l5(N.json,i.transformer.output);if(!S.ok){g.error(Hr.from(S.error,{meta:N.meta}));return}g.next({context:N.meta,result:S.result}),g.complete()}).catch(N=>{g.error(Hr.from(N,{meta:C?.meta}))}),()=>{}})}}Dt(ma(),1);const rw=(e,...t)=>typeof e=="function"?e(...t):e;Dt(Zr(),1);function X5(){let e,t;return{promise:new Promise((i,c)=>{e=i,t=c}),resolve:e,reject:t}}async function W5(e){const t=await rw(e.url);if(!e.connectionParams)return t;const i=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+i}async function Z5(e){const t={method:"connectionParams",data:await rw(e)};return JSON.stringify(t)}Dt(Zr(),1);var Dr=Dt(Zr(),1);function J5(e){const{promise:t,resolve:r,reject:i}=X5();return e.addEventListener("open",()=>{e.removeEventListener("error",i),r()}),e.addEventListener("error",i),t}function eO(e,{intervalMs:t,pongTimeoutMs:r}){let i,c;function d(){i=setTimeout(()=>{e.send("PING"),c=setTimeout(()=>{e.close()},r)},t)}function u(){clearTimeout(i),d()}function m(){clearTimeout(c),u()}e.addEventListener("open",d),e.addEventListener("message",({data:f})=>{clearTimeout(i),d(),f==="PONG"&&m()}),e.addEventListener("close",()=>{clearTimeout(i),clearTimeout(c)})}var tO=class yh{constructor(t){var r;if((0,Dr.default)(this,"id",++yh.connectCount),(0,Dr.default)(this,"WebSocketPonyfill",void 0),(0,Dr.default)(this,"urlOptions",void 0),(0,Dr.default)(this,"keepAliveOpts",void 0),(0,Dr.default)(this,"wsObservable",R5(null)),(0,Dr.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=t.WebSocketPonyfill)!==null&&r!==void 0?r:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var t=this;if(t.openPromise)return t.openPromise;t.id=++yh.connectCount;const r=W5(t.urlOptions).then(i=>new t.WebSocketPonyfill(i));t.openPromise=r.then(async i=>{t.ws=i,i.addEventListener("message",function({data:c}){c==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&eO(i,t.keepAliveOpts),i.addEventListener("close",()=>{t.ws===i&&(t.ws=null)}),await J5(i),t.urlOptions.connectionParams&&i.send(await Z5(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var r;(r=t.ws)===null||r===void 0||r.close()}}};(0,Dr.default)(tO,"connectCount",0);Dt(Zr(),1);Dt(ma(),1);var bp=Dt(Zr(),1),J0=Dt(ma(),1),ku=class{constructor(e){(0,bp.default)(this,"links",void 0),(0,bp.default)(this,"runtime",void 0),(0,bp.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return k5({links:this.links,op:(0,J0.default)((0,J0.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(M5())}async requestAsPromise(e){var t=this;try{const r=t.$request(e);return(await u5(r)).result.data}catch(r){throw Hr.from(r)}}query(e,t,r){return this.requestAsPromise({type:"query",path:e,input:t,context:r?.context,signal:r?.signal})}mutation(e,t,r){return this.requestAsPromise({type:"mutation",path:e,input:t,context:r?.context,signal:r?.signal})}subscription(e,t,r){return this.$request({type:"subscription",path:e,input:t,context:r.context,signal:r.signal}).subscribe({next(c){switch(c.result.type){case"state":{var d;(d=r.onConnectionStateChange)===null||d===void 0||d.call(r,c.result);break}case"started":{var u;(u=r.onStarted)===null||u===void 0||u.call(r,{context:c.context});break}case"stopped":{var m;(m=r.onStopped)===null||m===void 0||m.call(r);break}case"data":case void 0:{var f;(f=r.onData)===null||f===void 0||f.call(r,c.result.data);break}}},error(c){var d;(d=r.onError)===null||d===void 0||d.call(r,c)},complete(){var c;
17(c=r.onComplete)===null||c===void 0||c.call(r)}})}};const iw=Symbol.for("trpc_untypedClient"),sO={query:"query",mutate:"mutation",subscribe:"subscription"},aO=e=>sO[e];function ow(e){const t=Mu(({path:r,args:i})=>{const c=[...r],d=aO(c.pop()),u=c.join(".");return e[d](u,...i)});return Cx(r=>r===iw?e:t[r])}function nO(e){const t=new ku(e);return ow(t)}function Tx(e){return e[iw]}Dt(ma(),1);Dt(ma(),1);var rO=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(c){var d,u,m,f=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,m=Symbol.iterator);f--;){if(u&&(d=c[u])!=null)return d.call(c);if(m&&(d=c[m])!=null)return new i(d.call(c));u="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function i(c){function d(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var m=u.done;return Promise.resolve(u.value).then(function(f){return{value:f,done:m}})}return i=function(m){this.s=m,this.n=m.next},i.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var f=this.s.return;return f===void 0?Promise.resolve({value:m,done:!0}):d(f.apply(this.s,arguments))},throw:function(m){var f=this.s.return;return f===void 0?Promise.reject(m):d(f.apply(this.s,arguments))}},new i(c)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}});Dt(rO(),1);Dt(ma(),1);var iO=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function r(){var i=typeof SuppressedError=="function"?SuppressedError:function(m,f){var h=Error();return h.name="SuppressedError",h.error=m,h.suppressed=f,h},c={},d=[];function u(m,f){if(f!=null){if(Object(f)!==f)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(m)var h=f[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(h===void 0&&(h=f[Symbol.dispose||Symbol.for("Symbol.dispose")],m))var y=h;if(typeof h!="function")throw new TypeError("Object is not disposable.");y&&(h=function(){try{y.call(f)}catch(b){return Promise.reject(b)}}),d.push({v:f,d:h,a:m})}else m&&d.push({d:f,a:m});return f}return{e:c,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var f,h=this.e,y=0;function g(){for(;f=d.pop();)try{if(!f.a&&y===1)return y=0,d.push(f),Promise.resolve().then(g);if(f.d){var w=f.d.call(f.v);if(f.a)return y|=2,Promise.resolve(w).then(g,b)}else y|=1}catch(C){return b(C)}if(y===1)return h!==c?Promise.reject(h):Promise.resolve();if(h!==c)throw h}function b(w){return h=h!==c?new i(w,h):w,g()}return g()}}}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),cw=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function r(i,c){this.v=i,this.k=c}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),oO=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var r=cw();function i(c){return new r(c,0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),cO=Ra({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var r=cw();function i(d){return function(){return new c(d.apply(this,arguments))}}function c(d){var u,m;function f(y,g){try{var b=d[y](g),w=b.value,C=w instanceof r;Promise.resolve(C?w.v:w).then(function(N){if(C){var S=y==="return"?"return":"next";if(!w.k||N.done)return f(S,N);N=d[S](N).value}h(b.done?"return":"normal",N)},function(N){f("throw",N)})}catch(N){h("throw",N)}}function h(y,g){switch(y){case"return":u.resolve({value:g,done:!0});break;case"throw":u.reject(g);break;default:u.resolve({value:g,done:!1})}(u=u.next)?f(u.key,u.arg):m=null}this._invoke=function(y,g){return new Promise(function(b,w){var C={key:y,arg:g,resolve:b,reject:w,next:null};m?m=m.next=C:(u=m=C,f(y,g))})},typeof d.return!="function"&&(this.return=void 0)}c.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(d){return this._invoke("next",d)},c.prototype.throw=function(d){return this._invoke("throw",d)},c.prototype.return=function(d){return this._invoke("return",d)}
17,t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});Dt(iO(),1);Dt(oO(),1);Dt(cO(),1);Dt(ma(),1);function lO(e){return Mu(({path:t,args:r})=>{var i;const c=[...t],d=c.pop();if(d==="useMutation")return e[d](c,...r);if(d==="_def")return{path:c};const[u,...m]=r,f=(i=m[0])!==null&&i!==void 0?i:{};return e[d](c,u,f)})}var jp;const dO=["client","ssrContext","ssrState","abortOnUnmount"],uO=(jp=v.createContext)===null||jp===void 0?void 0:jp.call(Ou,null),mO=e=>{switch(e){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function fO(e){return Mu(t=>{const r=[...t.path],i=r.pop(),c=[...t.args],d=c.shift(),u=mO(i),m=Na(r,d,u);return{infiniteQueryOptions:()=>e.infiniteQueryOptions(r,m,c[0]),queryOptions:()=>e.queryOptions(r,m,...c),fetch:()=>e.fetchQuery(m,...c),fetchInfinite:()=>e.fetchInfiniteQuery(m,c[0]),prefetch:()=>e.prefetchQuery(m,...c),prefetchInfinite:()=>e.prefetchInfiniteQuery(m,c[0]),ensureData:()=>e.ensureQueryData(m,...c),invalidate:()=>e.invalidateQueries(m,...c),reset:()=>e.resetQueries(m,...c),refetch:()=>e.refetchQueries(m,...c),cancel:()=>e.cancelQuery(m,...c),setData:()=>{e.setQueryData(m,c[0],c[1])},setQueriesData:()=>e.setQueriesData(m,c[0],c[1],c[2]),setInfiniteData:()=>{e.setInfiniteQueryData(m,c[0],c[1])},getData:()=>e.getQueryData(m),getInfiniteData:()=>e.getInfiniteQueryData(m),setMutationDefaults:()=>e.setMutationDefaults(Kd(r),d),getMutationDefaults:()=>e.getMutationDefaults(Kd(r)),isMutating:()=>e.isMutating({mutationKey:Kd(r)})}[i]()})}function pO(e){const t=ow(e.client),r=fO(e);return Cx(i=>{const c=i;return c==="client"?t:dO.includes(c)?e[c]:r[i]})}var hO=Wr(el(),1);function e1(e){const t=e instanceof ku?e:Tx(e);return Mu(r=>{const i=r.path,c=i.join("."),[d,u]=r.args;return(0,hO.default)({queryKey:Na(i,d,"query"),queryFn:()=>t.query(c,d,u?.trpc)},u)})}var wp=Wr(el(),1);function os(e,t,r){var i;const c=e[0];let d=(i=e[1])===null||i===void 0?void 0:i.input;if(r){var u;d=(0,wp.default)((0,wp.default)((0,wp.default)({},(u=d)!==null&&u!==void 0?u:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})}return[c.join("."),d,t?.trpc]}var xO=er({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function r(c){var d,u,m,f=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,m=Symbol.iterator);f--;){if(u&&(d=c[u])!=null)return d.call(c);if(m&&(d=c[m])!=null)return new i(d.call(c));u="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function i(c){function d(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var m=u.done;return Promise.resolve(u.value).then(function(f){return{value:f,done:m}})}return i=function(m){this.s=m,this.n=m.next},i.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var f=this.s.return;return f===void 0?Promise.resolve({value:m,done:!0}):d(f.apply(this.s,arguments))},throw:function(m){var f=this.s.return;return f===void 0?Promise.reject(m):d(f.apply(this.s,arguments))}},new i(c)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports}}),gO=Wr(xO(),1);function vh(e){return{path:e.path.join(".")}}function pc(e){const t=vh(e);return v.useMemo(()=>t,[t])}async function lw(e,t,r){const c=t.getQueryCache().build(t,{queryKey:r});c.setState({data:[],status:"success"});const d=[];var u=!1,m=!1,f;try{for(var h=(0,gO.default)(e),y;u=!(y=await h.next()).done;u=!1){const g=y.value;d.push(g),c.setState({data:[...d]})}}catch(g){m=!0,f=g}finally{try{u&&h.return!=null&&await h.return()}finally{if(m)throw f}}return d}var et=Wr(el(),1);function yO(e){const{client:t,queryClient:r}=e,i=t instanceof ku?t:Tx(t);return{infiniteQueryOptions:(c,d,u)=>{var m,f;const h=((m=d[1])===null||m===void 0?void 0:m.input)===ks,y=async g=>{var b;const w=(0,et.default)((0,et.default)({},u),{},{trpc:(0,et.default)((0,et.default)({},u?.trpc),!(u==null||(b=u.trpc)===null||b===void 0)&&b.abortOnUnmount?{signal:g.signal}:{signal:null})});return await i.query(...os(d,w,{direction:g.direction,pageParam:g.pageParam}))};return Object.assign((0,et.default)((0,et.default)({},u),{},{initialData:u?.initialData,queryKey:d,queryFn:h?ks:y,initialPageParam:(f=u?.initialCursor)!==null&&f!==void 0?f:null}),{trpc:vh({path:c})})},queryOptions:(c,d,u)=>{var m;const f=((m=d[1])===null||m===void 0?void 0:m.input)===ks,h=async y=>{var g;const b=(0,et.default)((0,et.default)({},u),{},{trpc:(0,et.default)((0,et.default)({},u?.trpc),!(u==null||(g=u.trpc)===null||g===void 0)&&g.abortOnUnmount?{signal:y.signal}:{signal:null})}),w=await i.query(...os(d,b));return Fj(w)?lw(w,r,d):w};return Object.assign((0,et.default)((0,et.default)({},u),{},{initialData:u?.initialData,queryKey:d,queryFn:f?ks:h}),{trpc:vh({path:c})})},fetchQuery:(c,d)=>r.fetchQuery((0,et.default)((0,et.default)({},d),{},{queryKey:c,queryFn:()=>i.query(...os(c,d))})),fetchInfiniteQuery:(c,d)=>{var u;return r.fetchInfiniteQuery((0,et.default)((0,et.default)({},d),{},{queryKey:c,queryFn:({pageParam:m,direction:f})=>i.query(...os(c,d,{pageParam:m,direction:f})),initialPageParam:(u=d?.initialCursor)!==null&&u!==void 0?u:null}))},prefetchQuery:(c,d)=>r.prefetchQuery((0,et.default)((0,et.default)({},d),{},{queryKey:c,queryFn:()=>i.query(...os(c,d))})),prefetchInfiniteQuery:(c,d)=>{var u;return r.prefetchInfiniteQuery((0,et.default)((0,et.default)({},d),{},{queryKey:c,queryFn:({pageParam:m,direction:f})=>i.query(...os(c,d,{pageParam:m,direction:f})),initialPageParam:(u=d?.initialCursor)!==null&&u!==void 0?u:null}))},ensureQueryData:(c,d)=>r.ensureQueryData((0,et.default)((0,et.default)({},d),{},{queryKey:c,queryFn:()=>i.query(...os(c,d))})),invalidateQueries:(c,d,u)=>
17r.invalidateQueries((0,et.default)((0,et.default)({},d),{},{queryKey:c}),u),resetQueries:(c,d,u)=>r.resetQueries((0,et.default)((0,et.default)({},d),{},{queryKey:c}),u),refetchQueries:(c,d,u)=>r.refetchQueries((0,et.default)((0,et.default)({},d),{},{queryKey:c}),u),cancelQuery:(c,d)=>r.cancelQueries({queryKey:c},d),setQueryData:(c,d,u)=>r.setQueryData(c,d,u),setQueriesData:(c,d,u,m)=>r.setQueriesData((0,et.default)((0,et.default)({},d),{},{queryKey:c}),u,m),getQueryData:c=>r.getQueryData(c),setInfiniteQueryData:(c,d,u)=>r.setQueryData(c,d,u),getInfiniteQueryData:c=>r.getQueryData(c),setMutationDefaults:(c,d)=>{const u=c[0],m=f=>i.mutation(...os([u,{input:f}],e));return r.setMutationDefaults(c,typeof d=="function"?d({canonicalMutationFn:m}):d)},getMutationDefaults:c=>r.getMutationDefaults(c),isMutating:c=>r.isMutating((0,et.default)((0,et.default)({},c),{},{exact:!0}))}}var be=Wr(el());const t1=(e,t)=>new Proxy(e,{get(i,c){return t(c),i[c]}});function vO(e){var t,r;const i=(t=void 0)!==null&&t!==void 0?t:O=>O.originalFn(),c=(r=void 0)!==null&&r!==void 0?r:uO,d=nO,u=O=>{var B;const{abortOnUnmount:E=!1,queryClient:k,ssrContext:J}=O,[te,re]=v.useState((B=O.ssrState)!==null&&B!==void 0?B:!1),ce=O.client instanceof ku?O.client:Tx(O.client),de=v.useMemo(()=>yO({client:ce,queryClient:k}),[ce,k]),ue=v.useMemo(()=>(0,be.default)({abortOnUnmount:E,queryClient:k,client:ce,ssrContext:J??null,ssrState:te},de),[E,ce,de,k,J,te]);return v.useEffect(()=>{re(pe=>pe?"mounted":!1)},[]),n.jsx(c.Provider,{value:ue,children:O.children})};function m(){const O=v.useContext(c);if(!O)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return O}function f(O,B){var E;const{queryClient:k,ssrState:J}=m();return J&&J!=="mounted"&&((E=k.getQueryCache().find({queryKey:O}))===null||E===void 0?void 0:E.state.status)==="error"?(0,be.default)({retryOnMount:!1},B):B}function h(O,B,E){var k,J,te,re,ce;const de=m(),{abortOnUnmount:ue,client:pe,ssrState:P,queryClient:I,prefetchQuery:z}=de,Z=Na(O,B,"query"),he=I.getQueryDefaults(Z),R=B===ks;typeof window>"u"&&P==="prepass"&&(E==null||(k=E.trpc)===null||k===void 0?void 0:k.ssr)!==!1&&((J=E?.enabled)!==null&&J!==void 0?J:he?.enabled)!==!1&&!R&&!I.getQueryCache().find({queryKey:Z})&&z(Z,E);const Y=f(Z,(0,be.default)((0,be.default)({},he),E)),F=(te=(re=E==null||(ce=E.trpc)===null||ce===void 0?void 0:ce.abortOnUnmount)!==null&&re!==void 0?re:void 0)!==null&&te!==void 0?te:ue,$=Q3((0,be.default)((0,be.default)({},Y),{},{queryKey:Z,queryFn:R?B:async le=>{const xe=(0,be.default)((0,be.default)({},Y),{},{trpc:(0,be.default)((0,be.default)({},Y?.trpc),F?{signal:le.signal}:{signal:null})}),_=await pe.query(...os(Z,xe));return Fj(_)?lw(_,I,Z):_}}),I);return $.trpc=pc({path:O}),$}function y(O,B,E){var k,J,te;const re=m(),ce=Na(O,B,"query"),de=B===ks,ue=(k=(J=E==null||(te=E.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&J!==void 0?J:void 0)!==null&&k!==void 0?k:re.abortOnUnmount;X3((0,be.default)((0,be.default)({},E),{},{queryKey:ce,queryFn:de?B:pe=>{const P={trpc:(0,be.default)((0,be.default)({},E?.trpc),ue?{signal:pe.signal}:{})};return re.client.query(...os(ce,P))}}))}function g(O,B,E){var k,J,te;const re=m(),ce=Na(O,B,"query"),de=(k=(J=E==null||(te=E.trpc)===null||te===void 0?void 0:te.abortOnUnmount)!==null&&J!==void 0?J:void 0)!==null&&k!==void 0?k:re.abortOnUnmount,ue=K3((0,be.default)((0,be.default)({},E),{},{queryKey:ce,queryFn:pe=>{const P=(0,be.default)((0,be.default)({},E),{},{trpc:(0,be.default)((0,be.default)({},E?.trpc),de?{signal:pe.signal}:{signal:null})});return re.client.query(...os(ce,P))}}),re.queryClient);return ue.trpc=pc({path:O}),[ue.data,ue]}function b(O,B){const{client:E,queryClient:k}=m(),J=Kd(O),te=k.defaultMutationOptions(k.getMutationDefaults(J)),re=Z3((0,be.default)((0,be.default)({},B),{},{mutationKey:J,mutationFn:ce=>
17E.mutation(...os([O,{input:ce}],B)),onSuccess(...ce){var de,ue;return i({originalFn:()=>{var P,I,z;return(P=B==null||(I=B.onSuccess)===null||I===void 0?void 0:I.call(B,...ce))!==null&&P!==void 0?P:te==null||(z=te.onSuccess)===null||z===void 0?void 0:z.call(te,...ce)},queryClient:k,meta:(de=(ue=B?.meta)!==null&&ue!==void 0?ue:te?.meta)!==null&&de!==void 0?de:{}})}}),k);return re.trpc=pc({path:O}),re}const w={data:void 0,error:null,status:"idle"},C={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function N(O,B,E){var k;const J=(k=E?.enabled)!==null&&k!==void 0?k:B!==ks,te=Yn(Na(O,B,"any")),{client:re}=m(),ce=v.useRef(E);v.useEffect(()=>{ce.current=E});const[de]=v.useState(new Set([])),ue=v.useCallback(R=>{de.add(R)},[de]),pe=v.useRef(null),P=v.useCallback(R=>{const Y=z.current,F=z.current=R(Y);let $=!1;for(const le of de)if(Y[le]!==F[le]){$=!0;break}$&&he(t1(F,ue))},[ue,de]),I=v.useCallback(()=>{var R;if((R=pe.current)===null||R===void 0||R.unsubscribe(),!J){P(()=>(0,be.default)((0,be.default)({},w),{},{reset:I}));return}P(()=>(0,be.default)((0,be.default)({},C),{},{reset:I}));const Y=re.subscription(O.join("."),B??void 0,{onStarted:()=>{var F,$;(F=($=ce.current).onStarted)===null||F===void 0||F.call($),P(le=>(0,be.default)((0,be.default)({},le),{},{status:"pending",error:null}))},onData:F=>{var $,le;($=(le=ce.current).onData)===null||$===void 0||$.call(le,F),P(xe=>(0,be.default)((0,be.default)({},xe),{},{status:"pending",data:F,error:null}))},onError:F=>{var $,le;($=(le=ce.current).onError)===null||$===void 0||$.call(le,F),P(xe=>(0,be.default)((0,be.default)({},xe),{},{status:"error",error:F}))},onConnectionStateChange:F=>{P($=>{switch(F.state){case"idle":return(0,be.default)((0,be.default)({},$),{},{status:F.state,error:null,data:void 0});case"connecting":return(0,be.default)((0,be.default)({},$),{},{error:F.error,status:F.state});case"pending":return $}})},onComplete:()=>{var F,$;(F=($=ce.current).onComplete)===null||F===void 0||F.call($),P(le=>(0,be.default)((0,be.default)({},le),{},{status:"idle",error:null,data:void 0}))}});pe.current=Y},[re,te,J,P]);v.useEffect(()=>(I(),()=>{var R;(R=pe.current)===null||R===void 0||R.unsubscribe()}),[I]);const z=v.useRef(J?(0,be.default)((0,be.default)({},C),{},{reset:I}):(0,be.default)((0,be.default)({},w),{},{reset:I})),[Z,he]=v.useState(t1(z.current,ue));return Z}function S(O,B,E){var k,J,te,re,ce;const{client:de,ssrState:ue,prefetchInfiniteQuery:pe,queryClient:P,abortOnUnmount:I}=m(),z=Na(O,B,"infinite"),Z=P.getQueryDefaults(z),he=B===ks;typeof window>"u"&&ue==="prepass"&&(E==null||(k=E.trpc)===null||k===void 0?void 0:k.ssr)!==!1&&((J=E?.enabled)!==null&&J!==void 0?J:Z?.enabled)!==!1&&!he&&!P.getQueryCache().find({queryKey:z})&&pe(z,(0,be.default)((0,be.default)({},Z),E));const R=f(z,(0,be.default)((0,be.default)({},Z),E)),Y=(te=E==null||(re=E.trpc)===null||re===void 0?void 0:re.abortOnUnmount)!==null&&te!==void 0?te:I,F=J3((0,be.default)((0,be.default)({},R),{},{initialPageParam:(ce=E.initialCursor)!==null&&ce!==void 0?ce:null,persister:E.persister,queryKey:z,queryFn:he?B:$=>{var le;const xe=(0,be.default)((0,be.default)({},R),{},{trpc:(0,be.default)((0,be.default)({},R?.trpc),Y?{signal:$.signal}:{signal:null})});return de.query(...os(z,xe,{pageParam:(le=$.pageParam)!==null&&le!==void 0?le:E.initialCursor,direction:$.direction}))}}),P);return F.trpc=pc({path:O}),F}function A(O,B,E){var k,J,te;const re=m(),ce=Na(O,B,"infinite"),de=re.queryClient.getQueryDefaults(ce),ue=B===ks,pe=f(ce,(0,be.default)((0,be.default)({},de),E)),P=(k=E==null||(J=E.trpc)===null||J===void 0?void 0:J.abortOnUnmount)!==null&&k!==void 0?k:re.abortOnUnmount;W3((0,be.default)((0,be.default)({},E),{},{initialPageParam:(te=E.initialCursor)!==null&&te!==void 0?te:null,queryKey:ce,queryFn:ue?B:I=>{var z;const Z=(0,be.default)((0,be.default)({},pe),{},{trpc:(0,be.default)((0,be.default)({},pe?.trpc),P?{signal:I.signal}:{})});return re.client.query(...os(ce,Z,{pageParam:(z=I.pageParam)!==null&&z!==void 0?z:E.initialCursor,direction:I.direction}))}}))}function D(O,B,E){var k,J,te;
17const re=m(),ce=Na(O,B,"infinite"),de=re.queryClient.getQueryDefaults(ce),ue=f(ce,(0,be.default)((0,be.default)({},de),E)),pe=(k=E==null||(J=E.trpc)===null||J===void 0?void 0:J.abortOnUnmount)!==null&&k!==void 0?k:re.abortOnUnmount,P=Y3((0,be.default)((0,be.default)({},E),{},{initialPageParam:(te=E.initialCursor)!==null&&te!==void 0?te:null,queryKey:ce,queryFn:I=>{var z;const Z=(0,be.default)((0,be.default)({},ue),{},{trpc:(0,be.default)((0,be.default)({},ue?.trpc),pe?{signal:I.signal}:{})});return re.client.query(...os(ce,Z,{pageParam:(z=I.pageParam)!==null&&z!==void 0?z:E.initialCursor,direction:I.direction}))}}),re.queryClient);return P.trpc=pc({path:O}),[P.data,P]}return{Provider:u,createClient:d,useContext:m,useUtils:m,useQuery:h,usePrefetchQuery:y,useSuspenseQuery:g,useQueries:(O,B)=>{const{ssrState:E,queryClient:k,prefetchQuery:J,client:te}=m(),re=e1(te),ce=O(re);if(typeof window>"u"&&E==="prepass")for(const ue of ce){var de;const pe=ue;((de=pe.trpc)===null||de===void 0?void 0:de.ssr)!==!1&&!k.getQueryCache().find({queryKey:pe.queryKey})&&J(pe.queryKey,pe)}return qj({queries:ce.map(ue=>(0,be.default)((0,be.default)({},ue),{},{queryKey:ue.queryKey})),combine:B?.combine},k)},useSuspenseQueries:O=>{const{queryClient:B,client:E}=m(),k=e1(E),J=O(k),te=$3({queries:J.map(re=>(0,be.default)((0,be.default)({},re),{},{queryFn:re.queryFn,queryKey:re.queryKey}))},B);return[te.map(re=>re.data),te]},useMutation:b,useSubscription:N,useInfiniteQuery:S,usePrefetchInfiniteQuery:A,useSuspenseInfiniteQuery:D}}function bO(e){const t=lO(e);return Cx(r=>r==="useContext"||r==="useUtils"?()=>{const i=e.useUtils();return v.useMemo(()=>pO(i),[i])}:e.hasOwnProperty(r)?e[r]:t[r])}function jO(e){const t=vO();return bO(t)}const Ae=jO(),dw="Please login (10001)";var Np={exports:{}},hc={},Sp={exports:{}},Cp={};/** 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 s1;function wO(){return s1||(s1=1,(function(e){function t(P,I){var z=P.length;P.push(I);e:for(;0<z;){var Z=z-1>>>1,he=P[Z];if(0<c(he,I))P[Z]=I,P[z]=he,z=Z;else break e}}function r(P){return P.length===0?null:P[0]}function i(P){if(P.length===0)return null;var I=P[0],z=P.pop();if(z!==I){P[0]=z;e:for(var Z=0,he=P.length,R=he>>>1;Z<R;){var Y=2*(Z+1)-1,F=P[Y],$=Y+1,le=P[$];if(0>c(F,z))$<he&&0>c(le,F)?(P[Z]=le,P[$]=z,Z=$):(P[Z]=F,P[Y]=z,Z=Y);else if($<he&&0>c(le,z))P[Z]=le,P[$]=z,Z=$;else break e}}return I}function c(P,I){var z=P.sortIndex-I.sortIndex;return z!==0?z:P.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;e.unstable_now=function(){return d.now()}}else{var u=Date,m=u.now();e.unstable_now=function(){return u.now()-m}}var f=[],h=[],y=1,g=null,b=3,w=!1,C=!1,N=!1,S=!1,A=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function V(P){for(var I=r(h);I!==null;){if(I.callback===null)i(h);else if(I.startTime<=P)i(h),I.sortIndex=I.expirationTime,t(f,I);else break;I=r(h)}}function O(P){if(N=!1,V(P),!C)if(r(f)!==null)C=!0,B||(B=!0,ce());else{var I=r(h);I!==null&&pe(O,I.startTime-P)}}var B=!1,E=-1,k=5,J=-1;function te(){return S?!0:!(e.unstable_now()-J<k)}function re(){if(S=!1,B){var P=e.unstable_now();J=P;var I=!0;try{e:{C=!1,N&&(N=!1,D(E),E=-1),w=!0;var z=b;try{t:{for(V(P),g=r(f);g!==null&&!(g.expirationTime>P&&te());){var Z=g.callback;if(typeof Z=="function"){g.callback=null,b=g.priorityLevel;var he=Z(g.expirationTime<=P);if(P=e.unstable_now(),typeof he=="function"){g.callback=he,V(P),I=!0;break t}g===r(f)&&i(f),V(P)}else i(f);g=r(f)}if(g!==null)I=!0;else{var R=r(h);R!==null&&pe(O,R.startTime-P),I=!1}}break e}finally{g=null,b=z,w=!1}I=void 0}}finally{I?ce():B=!1}}}var ce;if(typeof M=="function")ce=function(){M(re)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,ue=de.port2;de.port1.onmessage=re,ce=function(){ue.postMessage(null)}}else ce=function(){A(re,0)};function pe(P,I){E=A(function(){P(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(P){switch(b){case 1:case 2:case 3:var I=3;break;default:I=b}var z=b;b=I;try{return P()}finally{b=z}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(P,I){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var z=b;b=P;try{return I()}finally{b=z}},e.unstable_scheduleCallback=function(P,I,z){var Z=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0<z?Z+z:Z):z=Z,P){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}
vendor: 9,368 bytes, lines 25-43
25return he=z+he,P={id:y++,callback:I,priorityLevel:P,startTime:z,expirationTime:he,sortIndex:-1},z>Z?(P.sortIndex=z,t(h,P),r(f)===null&&P===r(h)&&(N?(D(E),E=-1):N=!0,pe(O,z-Z))):(P.sortIndex=he,t(f,P),C||w||(C=!0,B||(B=!0,ce()))),P},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(P){var I=b;return function(){var z=b;b=I;try{return P.apply(this,arguments)}finally{b=z}}}})(Cp)),Cp}var a1;function NO(){return a1||(a1=1,Sp.exports=wO()),Sp.exports}var Ap={exports:{}},ts={};/** 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 n1;function SO(){if(n1)return ts;n1=1;var e=Tu();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(f,h,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:f,containerInfo:h,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return ts.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,ts.createPortal=function(f,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return d(f,h,null,y)},ts.flushSync=function(f){var h=u.T,y=i.p;try{if(u.T=null,i.p=2,f)return f()}finally{u.T=h,i.p=y,i.d.f()}},ts.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},ts.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},ts.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var y=h.as,g=m(y,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:w}):y==="script"&&i.d.X(f,{crossOrigin:g,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},ts.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=m(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},ts.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,g=m(y,h.crossOrigin);i.d.L(f,y,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},ts.preloadModule=function(f,h){if(typeof f=="string")if(h){var y=m(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},ts.requestFormReset=function(f){i.d.r(f)},ts.unstable_batchedUpdates=function(f,h){return f(h)},ts.useFormState=function(f,h,y){return u.H.useFormState(f,h,y)},ts.useFormStatus=function(){return u.H.useHostTransitionStatus()},ts.version="19.2.1",ts}var r1;function uw(){if(r1)return Ap.exports;r1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ap.exports=SO(),Ap.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 i1;function CO(){if(i1)return hc;i1=1;var e=NO(),t=Tu(),r=uw();function i(s){var a="https://react.dev/errors/"+s;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+s+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function d(s){var a=s,o=s;if(s.alternate)for(;a.return;)a=a.return;else{s=a;do a=s,(a.flags&4098)!==0&&(o=a.return),s=a.return;while(s)}return a.tag===3?o:null}function u(s){if(s.tag===13){var a=s.memoizedState;if(a===null&&(s=s.alternate,s!==null&&(a=s.memoizedState)),a!==null)return a.dehydrated}return null}function m(s){if(s.tag===31){var a=s.memoizedState;if(a===null&&(s=s.alternate,s!==null&&(a=s.memoizedState)),a!==null)return a.dehydrated}return null}function f(s){if(d(s)!==s)throw Error(i(188))}function h(s){var a=s.alternate;if(!a){if(a=d(s),a===null)throw Error(i(188));return a!==s?null:s}for(var o=s,l=a;;){var p=o.return;if(p===null)break;var x=p.alternate;if(x===null){if(l=p.return,l!==null){o=l;continue}break}if(p.child===x.child){for(x=p.child;x;){if(x===o)return f(p),s;if(x===l)return f(p),a;x=x.sibling}throw Error(i(188))}if(o.return!==l.return)o=p,l=x;else{for(var j=!1,T=p.child;T;){if(T===o){j=!0,o=p,l=x;break}if(T===l){j=!0,l=p,o=x;break}T=T.sibling}if(!j){for(T=x.child;T;){if(T===o){j=!0,o=x,l=p;break}if(T===l){j=!0,l=x,o=p;break}T=T.sibling}if(!j)throw Error(i(189))}}if(o.alternate!==l)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?s:a}function y(s){var a=s.tag;if(a===5||a===26||a===27||a===6)return s;for(s=s.child;s!==null;){if(a=y(s),a!==null)return a;s=s.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),D=Symbol.for("react.consumer"),M=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function ce(s){return s===null||typeof s!="object"?null:(s=re&&s[re]||s["@@iterator"],typeof s=="function"?s:null)}var de=Symbol.for("react.client.reference");function ue(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===de?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case N:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case B:return"SuspenseList";case J:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case C:return"Portal";case M:return s.displayName||"Context";case D:return(s._context.displayName||"Context")+".Consumer";case V:var a=s.render;return s=s.displayName,s||(s=a.displayName||a.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case E:return a=s.displayName||null,a!==null?a:ue(s.type)||"Memo";case k:a=s._payload,s=s._init;try{return ue(s(a))}catch{}}return null}var pe=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z={pending:!1,data:null,method:null,action:null},Z=[],he=-1;function R(s){return{current:s}}function Y(s){0>he||(s.current=Z[he],Z[he]=null,he--)}function F(s,a){he++,Z[he]=s.current,s.current=a}var $=R(null),le=R(null),xe=R(null),_=R(null);function X(s,a){switch(F(xe,a),F(le,s),F($,null),a.nodeType){case 9:case 11:s=(s=a.documentElement)&&(s=s.namespaceURI)?r0(s):0;break;default:if(s=a.tagName,a=a.namespaceURI)a=r0(a),s=i0(a,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}Y($),F($,s)}function se(){Y($),Y(le),Y(xe)}function ge(s){s.memoizedState!==null&&F(_,s);var a=$.current,o=i0(a,s.type);a!==o&&(F(le,s),F($,o))}function ie(s){le.current===s&&(Y($),Y(le)),_.current===s&&(Y(_),lc._currentValue=z)}var fe,Pe;function Ie(s){if(fe===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);fe=a&&a[1]||"",Pe=-1<o.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+fe+s+Pe}var ct=!1;function Mt(s,a){if(!s||ct)return"";ct=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(a){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(W){var K=W}Reflect.construct(s,[],ne)}
vendor: 5,869 bytes, lines 43-48
43else{try{ne.call()}catch(W){K=W}s.call(ne.prototype)}}else{try{throw Error()}catch(W){K=W}(ne=s())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(W){if(W&&K&&typeof W.stack=="string")return[W.stack,K.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=l.DetermineComponentFrameRoot(),j=x[0],T=x[1];if(j&&T){var L=j.split(` 44`),Q=T.split(` 45`);for(p=l=0;l<L.length&&!L[l].includes("DetermineComponentFrameRoot");)l++;for(;p<Q.length&&!Q[p].includes("DetermineComponentFrameRoot");)p++;if(l===L.length||p===Q.length)for(l=L.length-1,p=Q.length-1;1<=l&&0<=p&&L[l]!==Q[p];)p--;for(;1<=l&&0<=p;l--,p--)if(L[l]!==Q[p]){if(l!==1||p!==1)do if(l--,p--,0>p||L[l]!==Q[p]){var ee=` 46`+L[l].replace(" at new "," at ");return s.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",s.displayName)),ee}while(1<=l&&0<=p);break}}}finally{ct=!1,Error.prepareStackTrace=o}return(o=s?s.displayName||s.name:"")?Ie(o):""}function Ns(s,a){switch(s.tag){case 26:case 27:case 5:return Ie(s.type);case 16:return Ie("Lazy");case 13:return s.child!==a&&a!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return Mt(s.type,!1);case 11:return Mt(s.type.render,!1);case 1:return Mt(s.type,!0);case 31:return Ie("Activity");default:return""}}function Pa(s){try{var a="",o=null;do a+=Ns(s,o),o=s,s=s.return;while(s);return a}catch(l){return` 47Error generating stack: `+l.message+` 48`+l.stack}}var Ht=Object.prototype.hasOwnProperty,pa=e.unstable_scheduleCallback,ir=e.unstable_cancelCallback,U=e.unstable_shouldYield,ye=e.unstable_requestPaint,Te=e.unstable_now,ve=e.unstable_getCurrentPriorityLevel,Re=e.unstable_ImmediatePriority,We=e.unstable_UserBlockingPriority,dt=e.unstable_NormalPriority,Qt=e.unstable_LowPriority,ta=e.unstable_IdlePriority,hl=e.log,un=e.unstable_setDisableYieldValue,or=null,rs=null;function sa(s){if(typeof hl=="function"&&un(s),rs&&typeof rs.setStrictMode=="function")try{rs.setStrictMode(or,s)}catch{}}var Jt=Math.clz32?Math.clz32:ha,rm=Math.log,No=Math.LN2;function ha(s){return s>>>=0,s===0?32:31-(rm(s)/No|0)|0}var ai=256,ni=262144,cr=4194304;function xa(s){var a=s&42;if(a!==0)return a;switch(s&-s){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 s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Le(s,a,o){var l=s.pendingLanes;if(l===0)return 0;var p=0,x=s.suspendedLanes,j=s.pingedLanes;s=s.warmLanes;var T=l&134217727;return T!==0?(l=T&~x,l!==0?p=xa(l):(j&=T,j!==0?p=xa(j):o||(o=T&~s,o!==0&&(p=xa(o))))):(T=l&~x,T!==0?p=xa(T):j!==0?p=xa(j):o||(o=l&~s,o!==0&&(p=xa(o)))),p===0?0:a!==0&&a!==p&&(a&x)===0&&(x=p&-p,o=a&-a,x>=o||x===32&&(o&4194048)!==0)?a:p}function xt(s,a){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&a)===0}function It(s,a){switch(s){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 es(){var s=cr;return cr<<=1,(cr&62914560)===0&&(cr=4194304),s}function mn(s){for(var a=[],o=0;31>o;o++)a.push(s);return a}function bt(s,a){s.pendingLanes|=a,a!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function ds(s,a,o,l,p,x){var j=s.pendingLanes;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=o,s.entangledLanes&=o,s.errorRecoveryDisabledLanes&=o,s.shellSuspendCounter=0;var T=s.entanglements,L=s.expirationTimes,Q=s.hiddenUpdates;for(o=j&~o;0<o;){var ee=31-Jt(o),ne=1<<ee;T[ee]=0,L[ee]=-1;var K=Q[ee];if(K!==null)for(Q[ee]=null,ee=0;ee<K.length;ee++){var W=K[ee];W!==null&&(W.lane&=-536870913)}o&=~ne}l!==0&&lr(s,l,0),x!==0&&p===0&&s.tag!==0&&(s.suspendedLanes|=x&~(j&~a))}function lr(s,a,o){s.pendingLanes|=a,s.suspendedLanes&=~a;var l=31-Jt(a);s.entangledLanes|=a,s.entanglements[l]=s.entanglements[l]|1073741824|o&261930}function us(s,a){var o=s.entangledLanes|=a;for(s=s.entanglements;o;){var l=31-Jt(o),p=1<<l;p&a|s[l]&a&&(s[l]|=a),o&=~p}}function ms(s,a){var o=a&-a;return o=(o&42)!==0?1:ri(o),(o&(s.suspendedLanes|a))!==0?0:o}function ri(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function aa(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function im(){var s=I.p;return s!==0?s:(s=window.event,s===void 0?32:E0(s.type))}function Gg(s,a){var o=I.p;try{return I.p=s,a()}finally{I.p=o}}var fn=Math.random().toString(36).slice(2),Kt="__reactFiber$"+fn,fs="__reactProps$"+fn,ii="__reactContainer$"+fn,om="__reactEvents$"+fn,a4="__reactListeners$"+fn,n4="__reactHandles$"+fn,Qg="__reactResources$"+fn,So="__reactMarker$"+fn;function cm(s){delete s[Kt],delete s[fs],delete s[om],delete s[a4],delete s[n4]}function oi(s){var a=s[Kt];
vendor: 7,523 bytes, line 48
48if(a)return a;for(var o=s.parentNode;o;){if(a=o[ii]||o[Kt]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(s=f0(s);s!==null;){if(o=s[Kt])return o;s=f0(s)}return a}s=o,o=s.parentNode}return null}function ci(s){if(s=s[Kt]||s[ii]){var a=s.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return s}return null}function Co(s){var a=s.tag;if(a===5||a===26||a===27||a===6)return s.stateNode;throw Error(i(33))}function li(s){var a=s[Qg];return a||(a=s[Qg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Vt(s){s[So]=!0}var Kg=new Set,Yg={};function dr(s,a){di(s,a),di(s+"Capture",a)}function di(s,a){for(Yg[s]=a,s=0;s<a.length;s++)Kg.add(a[s])}var r4=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]*$"),$g={},Xg={};function i4(s){return Ht.call(Xg,s)?!0:Ht.call($g,s)?!1:r4.test(s)?Xg[s]=!0:($g[s]=!0,!1)}function xl(s,a,o){if(i4(a))if(o===null)s.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":s.removeAttribute(a);return;case"boolean":var l=a.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){s.removeAttribute(a);return}}s.setAttribute(a,""+o)}}function gl(s,a,o){if(o===null)s.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(a);return}s.setAttribute(a,""+o)}}function _a(s,a,o,l){if(l===null)s.removeAttribute(o);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttributeNS(a,o,""+l)}}function Us(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Wg(s){var a=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function o4(s,a,o){var l=Object.getOwnPropertyDescriptor(s.constructor.prototype,a);if(!s.hasOwnProperty(a)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var p=l.get,x=l.set;return Object.defineProperty(s,a,{configurable:!0,get:function(){return p.call(this)},set:function(j){o=""+j,x.call(this,j)}}),Object.defineProperty(s,a,{enumerable:l.enumerable}),{getValue:function(){return o},setValue:function(j){o=""+j},stopTracking:function(){s._valueTracker=null,delete s[a]}}}}function lm(s){if(!s._valueTracker){var a=Wg(s)?"checked":"value";s._valueTracker=o4(s,a,""+s[a])}}function Zg(s){if(!s)return!1;var a=s._valueTracker;if(!a)return!0;var o=a.getValue(),l="";return s&&(l=Wg(s)?s.checked?"true":"false":s.value),s=l,s!==o?(a.setValue(s),!0):!1}function yl(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var c4=/[\n"\\]/g;function Bs(s){return s.replace(c4,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function dm(s,a,o,l,p,x,j,T){s.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?s.type=j:s.removeAttribute("type"),a!=null?j==="number"?(a===0&&s.value===""||s.value!=a)&&(s.value=""+Us(a)):s.value!==""+Us(a)&&(s.value=""+Us(a)):j!=="submit"&&j!=="reset"||s.removeAttribute("value"),a!=null?um(s,j,Us(a)):o!=null?um(s,j,Us(o)):l!=null&&s.removeAttribute("value"),p==null&&x!=null&&(s.defaultChecked=!!x),p!=null&&(s.checked=p&&typeof p!="function"&&typeof p!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?s.name=""+Us(T):s.removeAttribute("name")}function Jg(s,a,o,l,p,x,j,T){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(s.type=x),a!=null||o!=null){if(!(x!=="submit"&&x!=="reset"||a!=null)){lm(s);return}o=o!=null?""+Us(o):"",a=a!=null?""+Us(a):o,T||a===s.value||(s.value=a),s.defaultValue=a}l=l??p,l=typeof l!="function"&&typeof l!="symbol"&&!!l,s.checked=T?s.checked:!!l,s.defaultChecked=!!l,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(s.name=j),lm(s)}function um(s,a,o){a==="number"&&yl(s.ownerDocument)===s||s.defaultValue===""+o||(s.defaultValue=""+o)}function ui(s,a,o,l){if(s=s.options,a){a={};for(var p=0;p<o.length;p++)a["$"+o[p]]=!0;for(o=0;o<s.length;o++)p=a.hasOwnProperty("$"+s[o].value),s[o].selected!==p&&(s[o].selected=p),p&&l&&(s[o].defaultSelected=!0)}else{for(o=""+Us(o),a=null,p=0;p<s.length;p++){if(s[p].value===o){s[p].selected=!0,l&&(s[p].defaultSelected=!0);return}a!==null||s[p].disabled||(a=s[p])}a!==null&&(a.selected=!0)}}function ey(s,a,o){if(a!=null&&(a=""+Us(a),a!==s.value&&(s.value=a),o==null)){s.defaultValue!==a&&(s.defaultValue=a);return}s.defaultValue=o!=null?""+Us(o):""}function ty(s,a,o,l){if(a==null){if(l!=null){if(o!=null)throw Error(i(92));if(pe(l)){if(1<l.length)throw Error(i(93));l=l[0]}o=l}o==null&&(o=""),a=o}o=Us(a),s.defaultValue=o,l=s.textContent,l===o&&l!==""&&l!==null&&(s.value=l),lm(s)}function mi(s,a){if(a){var o=s.firstChild;if(o&&o===s.lastChild&&o.nodeType===3){o.nodeValue=a;return}}s.textContent=a}var l4=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 sy(s,a,o){var l=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?l?s.setProperty(a,""):a==="float"?s.cssFloat="":s[a]="":l?s.setProperty(a,o):typeof o!="number"||o===0||l4.has(a)?a==="float"?s.cssFloat=o:s[a]=(""+o).trim():s[a]=o+"px"}function ay(s,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(s=s.style,o!=null){for(var l in o)!o.hasOwnProperty(l)||a!=null&&a.hasOwnProperty(l)||(l.indexOf("--")===0?s.setProperty(l,""):l==="float"?s.cssFloat="":s[l]="");for(var p in a)l=a[p],a.hasOwnProperty(p)&&o[p]!==l&&sy(s,p,l)}else for(var x in a)a.hasOwnProperty(x)&&sy(s,x,a[x])}function mm(s){if(s.indexOf("-")===-1)return!1;switch(s){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 d4=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"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),u4=/^[\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 vl(s){return u4.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}function La(){}var fm=null;function pm(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var fi=null,pi=null;function ny(s){var a=ci(s);if(a&&(s=a.stateNode)){var o=s[fs]||null;e:switch(s=a.stateNode,a.type){case"input":if(dm(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=s;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Bs(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var l=o[a];if(l!==s&&l.form===s.form){var p=l[fs]||null;if(!p)throw Error(i(90));dm(l,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(a=0;a<o.length;a++)l=o[a],l.form===s.form&&Zg(l)}break e;case"textarea":ey(s,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&ui(s,!!o.multiple,a,!1)}}}var hm=!1;function ry(s,a,o){if(hm)return s(a,o);hm=!0;try{var l=s(a);return l}finally{if(hm=!1,(fi!==null||pi!==null)&&(id(),fi&&(a=fi,s=pi,pi=fi=null,ny(a),s)))for(a=0;a<s.length;a++)ny(s[a])}}function Ao(s,a){var o=s.stateNode;if(o===null)return null;var l=o[fs]||null;if(l===null)return null;o=l[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(s=s.type,l=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!l;break e;default:s=!1}if(s)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var Ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xm=!1;if(Ua)try{var To={};Object.defineProperty(To,"passive",{get:function(){xm=!0}}),window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{xm=!1}var pn=null,gm=null,bl=null;function iy(){if(bl)return bl;var s,a=gm,o=a.length,l,p="value"in pn?pn.value:pn.textContent,x=p.length;for(s=0;s<o&&a[s]===p[s];s++);var j=o-s;for(l=1;l<=j&&a[o-l]===p[x-l];l++);return bl=p.slice(s,1<l?1-l:void 0)}function jl(s){var a=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&a===13&&(s=13)):s=a,s===10&&(s=13),32<=s||s===13?s:0}function wl(){return!0}function oy(){return!1}function ps(s){function a(o,l,p,x,j){this._reactName=o,this._targetInst=p,this.type=l,this.nativeEvent=x,this.target=j,this.currentTarget=null;for(var T in s)s.hasOwnProperty(T)&&(o=s[T],this[T]=o?o(x):x[T]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?wl:oy,this.isPropagationStopped=oy,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=wl)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=wl)},persist:function(){},isPersistent:wl}),a}var ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nl=ps(ur),Oo=g({},ur,{view:0,detail:0}),m4=ps(Oo),ym,vm,Eo,Sl=g({},Oo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:jm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Eo&&(Eo&&s.type==="mousemove"?(ym=s.screenX-Eo.screenX,vm=s.screenY-Eo.screenY):vm=ym=0,Eo=s),ym)},movementY:function(s){return"movementY"in s?s.movementY:vm}}),cy=ps(Sl),f4=g({},Sl,{dataTransfer:0}),p4=ps(f4),h4=g({},Oo,{relatedTarget:0}),bm=ps(h4),x4=g({},ur,{animationName:0,elapsedTime:0,pseudoElement:0}),g4=ps(x4),y4=g({},ur,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),v4=ps(y4),b4=g({},ur,{data:0}),ly=ps(b4),j4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w4={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"},N4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S4(s){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(s):(s=N4[s])?!!a[s]:!1}function jm(){return S4}var C4=g({},Oo,{key:function(s){if(s.key){var a=j4[s.key]||s.key;if(a!=="Unidentified")return a}
vendor: 4,492 bytes, line 48
48return s.type==="keypress"?(s=jl(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?w4[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:jm,charCode:function(s){return s.type==="keypress"?jl(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?jl(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),A4=ps(C4),T4=g({},Sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dy=ps(T4),O4=g({},Oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:jm}),E4=ps(O4),D4=g({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),M4=ps(D4),R4=g({},Sl,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),k4=ps(R4),P4=g({},ur,{newState:0,oldState:0}),_4=ps(P4),L4=[9,13,27,32],wm=Ua&&"CompositionEvent"in window,Do=null;Ua&&"documentMode"in document&&(Do=document.documentMode);var U4=Ua&&"TextEvent"in window&&!Do,uy=Ua&&(!wm||Do&&8<Do&&11>=Do),my=" ",fy=!1;function py(s,a){switch(s){case"keyup":return L4.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var hi=!1;function B4(s,a){switch(s){case"compositionend":return hy(a);case"keypress":return a.which!==32?null:(fy=!0,my);case"textInput":return s=a.data,s===my&&fy?null:s;default:return null}}function z4(s,a){if(hi)return s==="compositionend"||!wm&&py(s,a)?(s=iy(),bl=gm=pn=null,hi=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return uy&&a.locale!=="ko"?null:a.data;default:return null}}var H4={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 xy(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a==="input"?!!H4[s.type]:a==="textarea"}function gy(s,a,o,l){fi?pi?pi.push(l):pi=[l]:fi=l,a=fd(a,"onChange"),0<a.length&&(o=new Nl("onChange","change",null,o,l),s.push({event:o,listeners:a}))}var Mo=null,Ro=null;function I4(s){Jb(s,0)}function Cl(s){var a=Co(s);if(Zg(a))return s}function yy(s,a){if(s==="change")return a}var vy=!1;if(Ua){var Nm;if(Ua){var Sm="oninput"in document;if(!Sm){var by=document.createElement("div");by.setAttribute("oninput","return;"),Sm=typeof by.oninput=="function"}Nm=Sm}else Nm=!1;vy=Nm&&(!document.documentMode||9<document.documentMode)}function jy(){Mo&&(Mo.detachEvent("onpropertychange",wy),Ro=Mo=null)}function wy(s){if(s.propertyName==="value"&&Cl(Ro)){var a=[];gy(a,Ro,s,pm(s)),ry(I4,a)}}function V4(s,a,o){s==="focusin"?(jy(),Mo=a,Ro=o,Mo.attachEvent("onpropertychange",wy)):s==="focusout"&&jy()}function q4(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Cl(Ro)}function F4(s,a){if(s==="click")return Cl(a)}function G4(s,a){if(s==="input"||s==="change")return Cl(a)}function Q4(s,a){return s===a&&(s!==0||1/s===1/a)||s!==s&&a!==a}var Ss=typeof Object.is=="function"?Object.is:Q4;function ko(s,a){if(Ss(s,a))return!0;if(typeof s!="object"||s===null||typeof a!="object"||a===null)return!1;var o=Object.keys(s),l=Object.keys(a);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var p=o[l];if(!Ht.call(a,p)||!Ss(s[p],a[p]))return!1}return!0}function Ny(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Sy(s,a){var o=Ny(s);s=0;for(var l;o;){if(o.nodeType===3){if(l=s+o.textContent.length,s<=a&&l>=a)return{node:o,offset:a-s};s=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Ny(o)}}function Cy(s,a){return s&&a?s===a?!0:s&&s.nodeType===3?!1:a&&a.nodeType===3?Cy(s,a.parentNode):"contains"in s?s.contains(a):s.compareDocumentPosition?!!(s.compareDocumentPosition(a)&16):!1:!1}function Ay(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var a=yl(s.document);a instanceof s.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}
vendor: 22,229 bytes, line 48
48if(o)s=a.contentWindow;else break;a=yl(s.document)}return a}function Cm(s){var a=s&&s.nodeName&&s.nodeName.toLowerCase();return a&&(a==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||a==="textarea"||s.contentEditable==="true")}var K4=Ua&&"documentMode"in document&&11>=document.documentMode,xi=null,Am=null,Po=null,Tm=!1;function Ty(s,a,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Tm||xi==null||xi!==yl(l)||(l=xi,"selectionStart"in l&&Cm(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Po&&ko(Po,l)||(Po=l,l=fd(Am,"onSelect"),0<l.length&&(a=new Nl("onSelect","select",null,a,o),s.push({event:a,listeners:l}),a.target=xi)))}function mr(s,a){var o={};return o[s.toLowerCase()]=a.toLowerCase(),o["Webkit"+s]="webkit"+a,o["Moz"+s]="moz"+a,o}var gi={animationend:mr("Animation","AnimationEnd"),animationiteration:mr("Animation","AnimationIteration"),animationstart:mr("Animation","AnimationStart"),transitionrun:mr("Transition","TransitionRun"),transitionstart:mr("Transition","TransitionStart"),transitioncancel:mr("Transition","TransitionCancel"),transitionend:mr("Transition","TransitionEnd")},Om={},Oy={};Ua&&(Oy=document.createElement("div").style,"AnimationEvent"in window||(delete gi.animationend.animation,delete gi.animationiteration.animation,delete gi.animationstart.animation),"TransitionEvent"in window||delete gi.transitionend.transition);function fr(s){if(Om[s])return Om[s];if(!gi[s])return s;var a=gi[s],o;for(o in a)if(a.hasOwnProperty(o)&&o in Oy)return Om[s]=a[o];return s}var Ey=fr("animationend"),Dy=fr("animationiteration"),My=fr("animationstart"),Y4=fr("transitionrun"),$4=fr("transitionstart"),X4=fr("transitioncancel"),Ry=fr("transitionend"),ky=new Map,Em="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(" ");Em.push("scrollEnd");function na(s,a){ky.set(s,a),dr(a,[s])}var Al=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)},zs=[],yi=0,Dm=0;function Tl(){for(var s=yi,a=Dm=yi=0;a<s;){var o=zs[a];zs[a++]=null;var l=zs[a];zs[a++]=null;var p=zs[a];zs[a++]=null;var x=zs[a];if(zs[a++]=null,l!==null&&p!==null){var j=l.pending;j===null?p.next=p:(p.next=j.next,j.next=p),l.pending=p}x!==0&&Py(o,p,x)}}function Ol(s,a,o,l){zs[yi++]=s,zs[yi++]=a,zs[yi++]=o,zs[yi++]=l,Dm|=l,s.lanes|=l,s=s.alternate,s!==null&&(s.lanes|=l)}function Mm(s,a,o,l){return Ol(s,a,o,l),El(s)}function pr(s,a){return Ol(s,null,null,a),El(s)}function Py(s,a,o){s.lanes|=o;var l=s.alternate;l!==null&&(l.lanes|=o);for(var p=!1,x=s.return;x!==null;)x.childLanes|=o,l=x.alternate,l!==null&&(l.childLanes|=o),x.tag===22&&(s=x.stateNode,s===null||s._visibility&1||(p=!0)),s=x,x=x.return;return s.tag===3?(x=s.stateNode,p&&a!==null&&(p=31-Jt(o),s=x.hiddenUpdates,l=s[p],l===null?s[p]=[a]:l.push(a),a.lane=o|536870912),x):null}function El(s){if(50<sc)throw sc=0,If=null,Error(i(185));for(var a=s.return;a!==null;)s=a,a=s.return;return s.tag===3?s.stateNode:null}var vi={};function W4(s,a,o,l){this.tag=s,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cs(s,a,o,l){return new W4(s,a,o,l)}function Rm(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Ba(s,a){var o=s.alternate;return o===null?(o=Cs(s.tag,a,s.key,s.mode),o.elementType=s.elementType,o.type=s.type,o.stateNode=s.stateNode,o.alternate=s,s.alternate=o):(o.pendingProps=a,o.type=s.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=s.flags&65011712,o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,a=s.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=s.sibling,o.index=s.index,o.ref=s.ref,o.refCleanup=s.refCleanup,o}function _y(s,a){s.flags&=65011714;var o=s.alternate;return o===null?(s.childLanes=0,s.lanes=a,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,a=o.dependencies,s.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),s}function Dl(s,a,o,l,p,x){var j=0;if(l=s,typeof s=="function")Rm(s)&&(j=1);else if(typeof s=="string")j=s3(s,o,$.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case J:return s=Cs(31,o,a,p),s.elementType=J,s.lanes=x,s;case N:return hr(o.children,p,x,a);case S:j=8,p|=24;break;case A:return s=Cs(12,o,a,p|2),s.elementType=A,s.lanes=x,s;case O:return s=Cs(13,o,a,p),s.elementType=O,s.lanes=x,s;case B:return s=Cs(19,o,a,p),s.elementType=B,s.lanes=x,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case M:j=10;break e;case D:j=9;break e;case V:j=11;break e;case E:j=14;break e;case k:j=16,l=null;break e}j=29,o=Error(i(130,s===null?"null":typeof s,"")),l=null}return a=Cs(j,o,a,p),a.elementType=s,a.type=l,a.lanes=x,a}function hr(s,a,o,l){return s=Cs(7,s,l,a),s.lanes=o,s}function km(s,a,o){return s=Cs(6,s,null,a),s.lanes=o,s}function Ly(s){var a=Cs(18,null,null,0);return a.stateNode=s,a}function Pm(s,a,o){return a=Cs(4,s.children!==null?s.children:[],s.key,a),a.lanes=o,a.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},a}var Uy=new WeakMap;function Hs(s,a){if(typeof s=="object"&&s!==null){var o=Uy.get(s);return o!==void 0?o:(a={value:s,source:a,stack:Pa(a)},Uy.set(s,a),a)}return{value:s,source:a,stack:Pa(a)}}var bi=[],ji=0,Ml=null,_o=0,Is=[],Vs=0,hn=null,ga=1,ya="";function za(s,a){bi[ji++]=_o,bi[ji++]=Ml,Ml=s,_o=a}function By(s,a,o){Is[Vs++]=ga,Is[Vs++]=ya,Is[Vs++]=hn,hn=s;var l=ga;s=ya;var p=32-Jt(l)-1;l&=~(1<<p),o+=1;var x=32-Jt(a)+p;if(30<x){var j=p-p%5;x=(l&(1<<j)-1).toString(32),l>>=j,p-=j,ga=1<<32-Jt(a)+p|o<<p|l,ya=x+s}else ga=1<<x|o<<p|l,ya=s}function _m(s){s.return!==null&&(za(s,1),By(s,1,0))}function Lm(s){for(;s===Ml;)Ml=bi[--ji],bi[ji]=null,_o=bi[--ji],bi[ji]=null;for(;s===hn;)hn=Is[--Vs],Is[Vs]=null,ya=Is[--Vs],Is[Vs]=null,ga=Is[--Vs],Is[Vs]=null}function zy(s,a){Is[Vs++]=ga,Is[Vs++]=ya,Is[Vs++]=hn,ga=a.id,ya=a.overflow,hn=s}var Yt=null,ft=null,Xe=!1,xn=null,qs=!1,Um=Error(i(519));function gn(s){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Lo(Hs(a,s)),Um}function Hy(s){var a=s.stateNode,o=s.type,l=s.memoizedProps;switch(a[Kt]=s,a[fs]=l,o){case"dialog":Qe("cancel",a),Qe("close",a);break;case"iframe":case"object":case"embed":Qe("load",a);break;case"video":case"audio":for(o=0;o<nc.length;o++)Qe(nc[o],a);break;case"source":Qe("error",a);break;case"img":case"image":case"link":Qe("error",a),Qe("load",a);break;case"details":Qe("toggle",a);break;case"input":Qe("invalid",a),Jg(a,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Qe("invalid",a);break;case"textarea":Qe("invalid",a),ty(a,l.value,l.defaultValue,l.children)}o=l.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||l.suppressHydrationWarning===!0||a0(a.textContent,o)?(l.popover!=null&&(Qe("beforetoggle",a),Qe("toggle",a)),l.onScroll!=null&&Qe("scroll",a),l.onScrollEnd!=null&&Qe("scrollend",a),l.onClick!=null&&(a.onclick=La),a=!0):a=!1,a||gn(s,!0)}function Iy(s){for(Yt=s.return;Yt;)switch(Yt.tag){case 5:case 31:case 13:qs=!1;return;case 27:case 3:qs=!0;return;default:Yt=Yt.return}}function wi(s){if(s!==Yt)return!1;if(!Xe)return Iy(s),Xe=!0,!1;var a=s.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=s.type,o=!(o!=="form"&&o!=="button")||sp(s.type,s.memoizedProps)),o=!o),o&&ft&&gn(s),Iy(s),a===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));ft=m0(s)}else if(a===31){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));ft=m0(s)}else a===27?(a=ft,Mn(s.type)?(s=op,op=null,ft=s):ft=a):ft=Yt?Gs(s.stateNode.nextSibling):null;return!0}function xr(){ft=Yt=null,Xe=!1}function Bm(){var s=xn;return s!==null&&(ys===null?ys=s:ys.push.apply(ys,s),xn=null),s}function Lo(s){xn===null?xn=[s]:xn.push(s)}var zm=R(null),gr=null,Ha=null;function yn(s,a,o){F(zm,a._currentValue),a._currentValue=o}function Ia(s){s._currentValue=zm.current,Y(zm)}function Hm(s,a,o){for(;s!==null;){var l=s.alternate;if((s.childLanes&a)!==a?(s.childLanes|=a,l!==null&&(l.childLanes|=a)):l!==null&&(l.childLanes&a)!==a&&(l.childLanes|=a),s===o)break;s=s.return}}function Im(s,a,o,l){var p=s.child;for(p!==null&&(p.return=s);p!==null;){var x=p.dependencies;if(x!==null){var j=p.child;x=x.firstContext;e:for(;x!==null;){var T=x;x=p;for(var L=0;L<a.length;L++)if(T.context===a[L]){x.lanes|=o,T=x.alternate,T!==null&&(T.lanes|=o),Hm(x.return,o,s),l||(j=null);break e}x=T.next}}else if(p.tag===18){if(j=p.return,j===null)throw Error(i(341));j.lanes|=o,x=j.alternate,x!==null&&(x.lanes|=o),Hm(j,o,s),j=null}else j=p.child;if(j!==null)j.return=p;else for(j=p;j!==null;){if(j===s){j=null;break}if(p=j.sibling,p!==null){p.return=j.return,j=p;break}j=j.return}p=j}}function Ni(s,a,o,l){s=null;for(var p=a,x=!1;p!==null;){if(!x){if((p.flags&524288)!==0)x=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var j=p.alternate;if(j===null)throw Error(i(387));if(j=j.memoizedProps,j!==null){var T=p.type;Ss(p.pendingProps.value,j.value)||(s!==null?s.push(T):s=[T])}}else if(p===_.current){if(j=p.alternate,j===null)throw Error(i(387));j.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(s!==null?s.push(lc):s=[lc])}p=p.return}s!==null&&Im(a,s,o,l),a.flags|=262144}function Rl(s){for(s=s.firstContext;s!==null;){if(!Ss(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function yr(s){gr=s,Ha=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function $t(s){return Vy(gr,s)}function kl(s,a){return gr===null&&yr(s),Vy(s,a)}function Vy(s,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Ha===null){if(s===null)throw Error(i(308));Ha=a,s.dependencies={lanes:0,firstContext:a},s.flags|=524288}else Ha=Ha.next=a;return o}var Z4=typeof AbortController<"u"?AbortController:function(){var s=[],a=this.signal={aborted:!1,addEventListener:function(o,l){s.push(l)}};this.abort=function(){a.aborted=!0,s.forEach(function(o){return o()})}},J4=e.unstable_scheduleCallback,eT=e.unstable_NormalPriority,Rt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vm(){return{controller:new Z4,data:new Map,refCount:0}}function Uo(s){s.refCount--,s.refCount===0&&J4(eT,function(){s.controller.abort()})}var Bo=null,qm=0,Si=0,Ci=null;function tT(s,a){if(Bo===null){var o=Bo=[];qm=0,Si=Kf(),Ci={status:"pending",value:void 0,then:function(l){o.push(l)}}}return qm++,a.then(qy,qy),a}function qy(){if(--qm===0&&Bo!==null){Ci!==null&&(Ci.status="fulfilled");var s=Bo;Bo=null,Si=0,Ci=null;for(var a=0;a<s.length;a++)(0,s[a])()}}function sT(s,a){var o=[],l={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return s.then(function(){l.status="fulfilled",l.value=a;for(var p=0;p<o.length;p++)(0,o[p])(a)},function(p){for(l.status="rejected",l.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),l}var Fy=P.S;P.S=function(s,a){Tb=Te(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&tT(s,a),Fy!==null&&Fy(s,a)};var vr=R(null);function Fm(){var s=vr.current;return s!==null?s:lt.pooledCache}function Pl(s,a){a===null?F(vr,vr.current):F(vr,a.pool)}function Gy(){var s=Fm();return s===null?null:{parent:Rt._currentValue,pool:s}}var Ai=Error(i(460)),Gm=Error(i(474)),_l=Error(i(542)),Ll={then:function(){}};function Qy(s){return s=s.status,s==="fulfilled"||s==="rejected"}function Ky(s,a,o){switch(o=s[o],o===void 0?s.push(a):o!==a&&(a.then(La,La),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw s=a.reason,$y(s),s;default:if(typeof a.status=="string")a.then(La,La);else{if(s=lt,s!==null&&100<s.shellSuspendCounter)throw Error(i(482));s=a,s.status="pending",s.then(function(l){if(a.status==="pending"){var p=a;p.status="fulfilled",p.value=l}},function(l){if(a.status==="pending"){var p=a;p.status="rejected",p.reason=l}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw s=a.reason,$y(s),s}throw jr=a,Ai}}function br(s){try{var a=s._init;return a(s._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(jr=o,Ai):o}}var jr=null;function Yy(){if(jr===null)throw Error(i(459));var s=jr;return jr=null,s}function $y(s){if(s===Ai||s===_l)throw Error(i(483))}var Ti=null,zo=0;function Ul(s){var a=zo;return zo+=1,Ti===null&&(Ti=[]),Ky(Ti,s,a)}function Ho(s,a){a=a.props.ref,s.ref=a!==void 0?a:null}function Bl(s,a){throw a.$$typeof===b?Error(i(525)):(s=Object.prototype.toString.call(a),Error(i(31,s==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":s)))}function Xy(s){function a(q,H){if(s){var G=q.deletions;G===null?(q.deletions=[H],q.flags|=16):G.push(H)}}function o(q,H){if(!s)return null;for(;H!==null;)a(q,H),H=H.sibling;return null}function l(q){for(var H=new Map;q!==null;)q.key!==null?H.set(q.key,q):H.set(q.index,q),q=q.sibling;return H}function p(q,H){return q=Ba(q,H),q.index=0,q.sibling=null,q}function x(q,H,G){return q.index=G,s?(G=q.alternate,G!==null?(G=G.index,G<H?(q.flags|=67108866,H):G):(q.flags|=67108866,H)):(q.flags|=1048576,H)}function j(q){return s&&q.alternate===null&&(q.flags|=67108866),q}function T(q,H,G,ae){return H===null||H.tag!==6?(H=km(G,q.mode,ae),H.return=q,H):(H=p(H,G),H.return=q,H)}function L(q,H,G,ae){var De=G.type;return De===N?ee(q,H,G.props.children,ae,G.key):H!==null&&(H.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&br(De)===H.type)?(H=p(H,G.props),Ho(H,G),H.return=q,H):(H=Dl(G.type,G.key,G.props,null,q.mode,ae),Ho(H,G),H.return=q,H)}function Q(q,H,G,ae){return H===null||H.tag!==4||H.stateNode.containerInfo!==G.containerInfo||H.stateNode.implementation!==G.implementation?(H=Pm(G,q.mode,ae),H.return=q,H):(H=p(H,G.children||[]),H.return=q,H)}function ee(q,H,G,ae,De){return H===null||H.tag!==7?(H=hr(G,q.mode,ae,De),H.return=q,H):(H=p(H,G),H.return=q,H)}function ne(q,H,G){if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return H=km(""+H,q.mode,G),H.return=q,H;if(typeof H=="object"&&H!==null){switch(H.$$typeof){case w:return G=Dl(H.type,H.key,H.props,null,q.mode,G),Ho(G,H),G.return=q,G;case C:return H=Pm(H,q.mode,G),H.return=q,H;case k:return H=br(H),ne(q,H,G)}if(pe(H)||ce(H))return H=hr(H,q.mode,G,null),H.return=q,H;if(typeof H.then=="function")return ne(q,Ul(H),G);if(H.$$typeof===M)return ne(q,kl(q,H),G);Bl(q,H)}return null}function K(q,H,G,ae){var De=H!==null?H.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return De!==null?null:T(q,H,""+G,ae);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case w:return G.key===De?L(q,H,G,ae):null;case C:return G.key===De?Q(q,H,G,ae):null;case k:return G=br(G),K(q,H,G,ae)}if(pe(G)||ce(G))return De!==null?null:ee(q,H,G,ae,null);if(typeof G.then=="function")return K(q,H,Ul(G),ae);if(G.$$typeof===M)return K(q,H,kl(q,G),ae);Bl(q,G)}return null}function W(q,H,G,ae,De){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return q=q.get(G)||null,T(H,q,""+ae,De);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case w:return q=q.get(ae.key===null?G:ae.key)||null,L(H,q,ae,De);case C:return q=q.get(ae.key===null?G:ae.key)||null,Q(H,q,ae,De);case k:return ae=br(ae),W(q,H,G,ae,De)}if(pe(ae)||ce(ae))return q=q.get(G)||null,ee(H,q,ae,De,null);if(typeof ae.then=="function")return W(q,H,G,Ul(ae),De);if(ae.$$typeof===M)return W(q,H,G,kl(H,ae),De);Bl(H,ae)}return null}function we(q,H,G,ae){for(var De=null,Ze=null,Ee=H,He=H=0,Ye=null;Ee!==null&&He<G.length;He++){Ee.index>He?(Ye=Ee,Ee=null):Ye=Ee.sibling;var Je=K(q,Ee,G[He],ae);if(Je===null){Ee===null&&(Ee=Ye);break}s&&Ee&&Je.alternate===null&&a(q,Ee),H=x(Je,H,He),Ze===null?De=Je:Ze.sibling=Je,Ze=Je,Ee=Ye}if(He===G.length)return o(q,Ee),Xe&&za(q,He),De;if(Ee===null){for(;He<G.length;He++)Ee=ne(q,G[He],ae),Ee!==null&&(H=x(Ee,H,He),Ze===null?De=Ee:Ze.sibling=Ee,Ze=Ee);return Xe&&za(q,He),De}for(Ee=l(Ee);He<G.length;He++)Ye=W(Ee,q,He,G[He],ae),Ye!==null&&(s&&Ye.alternate!==null&&Ee.delete(Ye.key===null?He:Ye.key),H=x(Ye,H,He),Ze===null?De=Ye:Ze.sibling=Ye,Ze=Ye);return s&&Ee.forEach(function(Ln){return a(q,Ln)}),Xe&&za(q,He),De}function ke(q,H,G,ae){if(G==null)throw Error(i(151));for(var De=null,Ze=null,Ee=H,He=H=0,Ye=null,Je=G.next();Ee!==null&&!Je.done;He++,Je=G.next()){Ee.index>He?(Ye=Ee,Ee=null):Ye=Ee.sibling;var Ln=K(q,Ee,Je.value,ae);if(Ln===null){Ee===null&&(Ee=Ye);break}s&&Ee&&Ln.alternate===null&&a(q,Ee),H=x(Ln,H,He),Ze===null?De=Ln:Ze.sibling=Ln,Ze=Ln,Ee=Ye}if(Je.done)return o(q,Ee),Xe&&za(q,He),De;if(Ee===null){for(;!Je.done;He++,Je=G.next())Je=ne(q,Je.value,ae),Je!==null&&(H=x(Je,H,He),Ze===null?De=Je:Ze.sibling=Je,Ze=Je);return Xe&&za(q,He),De}for(Ee=l(Ee);!Je.done;He++,Je=G.next())Je=W(Ee,q,He,Je.value,ae),Je!==null&&(s&&Je.alternate!==null&&Ee.delete(Je.key===null?He:Je.key),H=x(Je,H,He),Ze===null?De=Je:Ze.sibling=Je,Ze=Je);return s&&Ee.forEach(function(f3){return a(q,f3)}),Xe&&za(q,He),De}function ot(q,H,G,ae){if(typeof G=="object"&&G!==null&&G.type===N&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case w:e:{for(var De=G.key;H!==null;){if(H.key===De){if(De=G.type,De===N){if(H.tag===7){o(q,H.sibling),ae=p(H,G.props.children),ae.return=q,q=ae;break e}}else if(H.elementType===De||typeof De=="object"&&De!==null&&De.$$typeof===k&&br(De)===H.type){o(q,H.sibling),ae=p(H,G.props),Ho(ae,G),ae.return=q,q=ae;break e}o(q,H);break}else a(q,H);H=H.sibling}G.type===N?(ae=hr(G.props.children,q.mode,ae,G.key),ae.return=q,q=ae):(ae=Dl(G.type,G.key,G.props,null,q.mode,ae),Ho(ae,G),ae.return=q,q=ae)}return j(q);case C:e:{for(De=G.key;H!==null;){if(H.key===De)if(H.tag===4&&H.stateNode.containerInfo===G.containerInfo&&H.stateNode.implementation===G.implementation){o(q,H.sibling),ae=p(H,G.children||[]),ae.return=q,q=ae;break e}else{o(q,H);break}else a(q,H);H=H.sibling}ae=Pm(G,q.mode,ae),ae.return=q,q=ae}return j(q);case k:return G=br(G),ot(q,H,G,ae)}if(pe(G))return we(q,H,G,ae);if(ce(G)){if(De=ce(G),typeof De!="function")throw Error(i(150));return G=De.call(G),ke(q,H,G,ae)}if(typeof G.then=="function")return ot(q,H,Ul(G),ae);if(G.$$typeof===M)return ot(q,H,kl(q,G),ae);Bl(q,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,H!==null&&H.tag===6?(o(q,H.sibling),ae=p(H,G),ae.return=q,q=ae):(o(q,H),ae=km(G,q.mode,ae),ae.return=q,q=ae),j(q)):o(q,H)}return function(q,H,G,ae){try{zo=0;var De=ot(q,H,G,ae);return Ti=null,De}catch(Ee){if(Ee===Ai||Ee===_l)throw Ee;var Ze=Cs(29,Ee,null,q.mode);return Ze.lanes=ae,Ze.return=q,Ze}finally{}}}var wr=Xy(!0),Wy=Xy(!1),vn=!1;function Qm(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Km(s,a){s=s.updateQueue,a.updateQueue===s&&(a.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function bn(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function jn(s,a,o){var l=s.updateQueue;if(l===null)return null;if(l=l.shared,(tt&2)!==0){var p=l.pending;return p===null?a.next=a:(a.next=p.next,p.next=a),l.pending=a,a=El(s),Py(s,null,o),a}return Ol(s,l,a,o),El(s)}function Io(s,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var l=a.lanes;l&=s.pendingLanes,o|=l,a.lanes=o,us(s,o)}}function Ym(s,a){var o=s.updateQueue,l=s.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var p=null,x=null;if(o=o.firstBaseUpdate,o!==null){do{var j={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};x===null?p=x=j:x=x.next=j,o=o.next}while(o!==null);x===null?p=x=a:x=x.next=a}else p=x=a;o={baseState:l.baseState,firstBaseUpdate:p,lastBaseUpdate:x,shared:l.shared,callbacks:l.callbacks},s.updateQueue=o;return}s=o.lastBaseUpdate,s===null?o.firstBaseUpdate=a:s.next=a,o.lastBaseUpdate=a}var $m=!1;function Vo(){if($m){var s=Ci;if(s!==null)throw s}}function qo(s,a,o,l){$m=!1;var p=s.updateQueue;vn=!1;var x=p.firstBaseUpdate,j=p.lastBaseUpdate,T=p.shared.pending;if(T!==null){p.shared.pending=null;var L=T,Q=L.next;L.next=null,j===null?x=Q:j.next=Q,j=L;var ee=s.alternate;ee!==null&&(ee=ee.updateQueue,T=ee.lastBaseUpdate,T!==j&&(T===null?ee.firstBaseUpdate=Q:T.next=Q,ee.lastBaseUpdate=L))}if(x!==null){var ne=p.baseState;j=0,ee=Q=L=null,T=x;do{var K=T.lane&-536870913,W=K!==T.lane;if(W?(Ke&K)===K:(l&K)===K){K!==0&&K===Si&&($m=!0),ee!==null&&(ee=ee.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var we=s,ke=T;K=a;var ot=o;switch(ke.tag){case 1:if(we=ke.payload,typeof we=="function"){ne=we.call(ot,ne,K);break e}
vendor: 4,970 bytes, line 48
48ne=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=ke.payload,K=typeof we=="function"?we.call(ot,ne,K):we,K==null)break e;ne=g({},ne,K);break e;case 2:vn=!0}}K=T.callback,K!==null&&(s.flags|=64,W&&(s.flags|=8192),W=p.callbacks,W===null?p.callbacks=[K]:W.push(K))}else W={lane:K,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ee===null?(Q=ee=W,L=ne):ee=ee.next=W,j|=K;if(T=T.next,T===null){if(T=p.shared.pending,T===null)break;W=T,T=W.next,W.next=null,p.lastBaseUpdate=W,p.shared.pending=null}}while(!0);ee===null&&(L=ne),p.baseState=L,p.firstBaseUpdate=Q,p.lastBaseUpdate=ee,x===null&&(p.shared.lanes=0),An|=j,s.lanes=j,s.memoizedState=ne}}function Zy(s,a){if(typeof s!="function")throw Error(i(191,s));s.call(a)}function Jy(s,a){var o=s.callbacks;if(o!==null)for(s.callbacks=null,s=0;s<o.length;s++)Zy(o[s],a)}var Oi=R(null),zl=R(0);function ev(s,a){s=Xa,F(zl,s),F(Oi,a),Xa=s|a.baseLanes}function Xm(){F(zl,Xa),F(Oi,Oi.current)}function Wm(){Xa=zl.current,Y(Oi),Y(zl)}var As=R(null),Fs=null;function wn(s){var a=s.alternate;F(Tt,Tt.current&1),F(As,s),Fs===null&&(a===null||Oi.current!==null||a.memoizedState!==null)&&(Fs=s)}function Zm(s){F(Tt,Tt.current),F(As,s),Fs===null&&(Fs=s)}function tv(s){s.tag===22?(F(Tt,Tt.current),F(As,s),Fs===null&&(Fs=s)):Nn()}function Nn(){F(Tt,Tt.current),F(As,As.current)}function Ts(s){Y(As),Fs===s&&(Fs=null),Y(Tt)}var Tt=R(0);function Hl(s){for(var a=s;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||rp(o)||ip(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Va=0,ze=null,rt=null,kt=null,Il=!1,Ei=!1,Nr=!1,Vl=0,Fo=0,Di=null,aT=0;function wt(){throw Error(i(321))}function Jm(s,a){if(a===null)return!1;for(var o=0;o<a.length&&o<s.length;o++)if(!Ss(s[o],a[o]))return!1;return!0}function ef(s,a,o,l,p,x){return Va=x,ze=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,P.H=s===null||s.memoizedState===null?Bv:xf,Nr=!1,x=o(l,p),Nr=!1,Ei&&(x=av(a,o,l,p)),sv(s),x}function sv(s){P.H=Ko;var a=rt!==null&&rt.next!==null;if(Va=0,kt=rt=ze=null,Il=!1,Fo=0,Di=null,a)throw Error(i(300));s===null||Pt||(s=s.dependencies,s!==null&&Rl(s)&&(Pt=!0))}function av(s,a,o,l){ze=s;var p=0;do{if(Ei&&(Di=null),Fo=0,Ei=!1,25<=p)throw Error(i(301));if(p+=1,kt=rt=null,s.updateQueue!=null){var x=s.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}P.H=zv,x=a(o,l)}while(Ei);return x}function nT(){var s=P.H,a=s.useState()[0];return a=typeof a.then=="function"?Go(a):a,s=s.useState()[0],(rt!==null?rt.memoizedState:null)!==s&&(ze.flags|=1024),a}function tf(){var s=Vl!==0;return Vl=0,s}function sf(s,a,o){a.updateQueue=s.updateQueue,a.flags&=-2053,s.lanes&=~o}function af(s){if(Il){for(s=s.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Il=!1}Va=0,kt=rt=ze=null,Ei=!1,Fo=Vl=0,Di=null}function is(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return kt===null?ze.memoizedState=kt=s:kt=kt.next=s,kt}function Ot(){if(rt===null){var s=ze.alternate;s=s!==null?s.memoizedState:null}else s=rt.next;var a=kt===null?ze.memoizedState:kt.next;if(a!==null)kt=a,rt=s;else{if(s===null)throw ze.alternate===null?Error(i(467)):Error(i(310));rt=s,s={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},kt===null?ze.memoizedState=kt=s:kt=kt.next=s}return kt}function ql(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Go(s){var a=Fo;return Fo+=1,Di===null&&(Di=[]),s=Ky(Di,s,a),a=ze,(kt===null?a.memoizedState:kt.next)===null&&(a=a.alternate,P.H=a===null||a.memoizedState===null?Bv:xf),s}function Fl(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Go(s);if(s.$$typeof===M)return $t(s)}throw Error(i(438,String(s)))}function nf(s){var a=null,o=ze.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var l=ze.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(a={data:l.data.map(function(p){return p.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=ql(),ze.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(s),l=0;l<s;l++)o[l]=te;return a.index++,o}function qa(s,a){return typeof a=="function"?a(s):a}function Gl(s){var a=Ot();return rf(a,rt,s)}function rf(s,a,o){var l=s.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=o;var p=s.baseQueue,x=l.pending;if(x!==null){if(p!==null){var j=p.next;p.next=x.next,x.next=j}a.baseQueue=p=x,l.pending=null}if(x=s.baseState,p===null)s.memoizedState=x;else{a=p.next;
vendor: 14,585 bytes, line 48
48var T=j=null,L=null,Q=a,ee=!1;do{var ne=Q.lane&-536870913;if(ne!==Q.lane?(Ke&ne)===ne:(Va&ne)===ne){var K=Q.revertLane;if(K===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ne===Si&&(ee=!0);else if((Va&K)===K){Q=Q.next,K===Si&&(ee=!0);continue}else ne={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},L===null?(T=L=ne,j=x):L=L.next=ne,ze.lanes|=K,An|=K;ne=Q.action,Nr&&o(x,ne),x=Q.hasEagerState?Q.eagerState:o(x,ne)}else K={lane:ne,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},L===null?(T=L=K,j=x):L=L.next=K,ze.lanes|=ne,An|=ne;Q=Q.next}while(Q!==null&&Q!==a);if(L===null?j=x:L.next=T,!Ss(x,s.memoizedState)&&(Pt=!0,ee&&(o=Ci,o!==null)))throw o;s.memoizedState=x,s.baseState=j,s.baseQueue=L,l.lastRenderedState=x}return p===null&&(l.lanes=0),[s.memoizedState,l.dispatch]}function of(s){var a=Ot(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=s;var l=o.dispatch,p=o.pending,x=a.memoizedState;if(p!==null){o.pending=null;var j=p=p.next;do x=s(x,j.action),j=j.next;while(j!==p);Ss(x,a.memoizedState)||(Pt=!0),a.memoizedState=x,a.baseQueue===null&&(a.baseState=x),o.lastRenderedState=x}return[x,l]}function nv(s,a,o){var l=ze,p=Ot(),x=Xe;if(x){if(o===void 0)throw Error(i(407));o=o()}else o=a();var j=!Ss((rt||p).memoizedState,o);if(j&&(p.memoizedState=o,Pt=!0),p=p.queue,df(ov.bind(null,l,p,s),[s]),p.getSnapshot!==a||j||kt!==null&&kt.memoizedState.tag&1){if(l.flags|=2048,Mi(9,{destroy:void 0},iv.bind(null,l,p,o,a),null),lt===null)throw Error(i(349));x||(Va&127)!==0||rv(l,a,o)}return o}function rv(s,a,o){s.flags|=16384,s={getSnapshot:a,value:o},a=ze.updateQueue,a===null?(a=ql(),ze.updateQueue=a,a.stores=[s]):(o=a.stores,o===null?a.stores=[s]:o.push(s))}function iv(s,a,o,l){a.value=o,a.getSnapshot=l,cv(a)&&lv(s)}function ov(s,a,o){return o(function(){cv(a)&&lv(s)})}function cv(s){var a=s.getSnapshot;s=s.value;try{var o=a();return!Ss(s,o)}catch{return!0}}function lv(s){var a=pr(s,2);a!==null&&vs(a,s,2)}function cf(s){var a=is();if(typeof s=="function"){var o=s;if(s=o(),Nr){sa(!0);try{o()}finally{sa(!1)}}}return a.memoizedState=a.baseState=s,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:s},a}function dv(s,a,o,l){return s.baseState=o,rf(s,rt,typeof l=="function"?l:qa)}function rT(s,a,o,l,p){if(Yl(s))throw Error(i(485));if(s=a.action,s!==null){var x={payload:p,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){x.listeners.push(j)}};P.T!==null?o(!0):x.isTransition=!1,l(x),o=a.pending,o===null?(x.next=a.pending=x,uv(a,x)):(x.next=o.next,a.pending=o.next=x)}}function uv(s,a){var o=a.action,l=a.payload,p=s.state;if(a.isTransition){var x=P.T,j={};P.T=j;try{var T=o(p,l),L=P.S;L!==null&&L(j,T),mv(s,a,T)}catch(Q){lf(s,a,Q)}finally{x!==null&&j.types!==null&&(x.types=j.types),P.T=x}}else try{x=o(p,l),mv(s,a,x)}catch(Q){lf(s,a,Q)}}function mv(s,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(l){fv(s,a,l)},function(l){return lf(s,a,l)}):fv(s,a,o)}function fv(s,a,o){a.status="fulfilled",a.value=o,pv(a),s.state=o,a=s.pending,a!==null&&(o=a.next,o===a?s.pending=null:(o=o.next,a.next=o,uv(s,o)))}function lf(s,a,o){var l=s.pending;if(s.pending=null,l!==null){l=l.next;do a.status="rejected",a.reason=o,pv(a),a=a.next;while(a!==l)}s.action=null}function pv(s){s=s.listeners;for(var a=0;a<s.length;a++)(0,s[a])()}function hv(s,a){return a}function xv(s,a){if(Xe){var o=lt.formState;if(o!==null){e:{var l=ze;if(Xe){if(ft){t:{for(var p=ft,x=qs;p.nodeType!==8;){if(!x){p=null;break t}if(p=Gs(p.nextSibling),p===null){p=null;break t}}x=p.data,p=x==="F!"||x==="F"?p:null}if(p){ft=Gs(p.nextSibling),l=p.data==="F!";break e}}gn(l)}l=!1}l&&(a=o[0])}}return o=is(),o.memoizedState=o.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hv,lastRenderedState:a},o.queue=l,o=_v.bind(null,ze,l),l.dispatch=o,l=cf(!1),x=hf.bind(null,ze,!1,l.queue),l=is(),p={state:a,dispatch:null,action:s,pending:null},l.queue=p,o=rT.bind(null,ze,p,x,o),p.dispatch=o,l.memoizedState=s,[a,o,!1]}function gv(s){var a=Ot();return yv(a,rt,s)}function yv(s,a,o){if(a=rf(s,a,hv)[0],s=Gl(qa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var l=Go(a)}catch(j){throw j===Ai?_l:j}else l=a;a=Ot();var p=a.queue,x=p.dispatch;return o!==a.memoizedState&&(ze.flags|=2048,Mi(9,{destroy:void 0},iT.bind(null,p,o),null)),[l,x,s]}function iT(s,a){s.action=a}function vv(s){var a=Ot(),o=rt;if(o!==null)return yv(a,o,s);Ot(),a=a.memoizedState,o=Ot();var l=o.queue.dispatch;return o.memoizedState=s,[a,l,!1]}function Mi(s,a,o,l){return s={tag:s,create:o,deps:l,inst:a,next:null},a=ze.updateQueue,a===null&&(a=ql(),ze.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=s.next=s:(l=o.next,o.next=s,s.next=l,a.lastEffect=s),s}function bv(){return Ot().memoizedState}function Ql(s,a,o,l){var p=is();ze.flags|=s,p.memoizedState=Mi(1|a,{destroy:void 0},o,l===void 0?null:l)}function Kl(s,a,o,l){var p=Ot();l=l===void 0?null:l;var x=p.memoizedState.inst;rt!==null&&l!==null&&Jm(l,rt.memoizedState.deps)?p.memoizedState=Mi(a,x,o,l):(ze.flags|=s,p.memoizedState=Mi(1|a,x,o,l))}function jv(s,a){Ql(8390656,8,s,a)}function df(s,a){Kl(2048,8,s,a)}function oT(s){ze.flags|=4;var a=ze.updateQueue;if(a===null)a=ql(),ze.updateQueue=a,a.events=[s];else{var o=a.events;o===null?a.events=[s]:o.push(s)}}function wv(s){var a=Ot().memoizedState;return oT({ref:a,nextImpl:s}),function(){if((tt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Nv(s,a){return Kl(4,2,s,a)}function Sv(s,a){return Kl(4,4,s,a)}function Cv(s,a){if(typeof a=="function"){s=s();var o=a(s);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return s=s(),a.current=s,function(){a.current=null}}function Av(s,a,o){o=o!=null?o.concat([s]):null,Kl(4,4,Cv.bind(null,a,s),o)}function uf(){}function Tv(s,a){var o=Ot();a=a===void 0?null:a;var l=o.memoizedState;return a!==null&&Jm(a,l[1])?l[0]:(o.memoizedState=[s,a],s)}function Ov(s,a){var o=Ot();a=a===void 0?null:a;var l=o.memoizedState;if(a!==null&&Jm(a,l[1]))return l[0];if(l=s(),Nr){sa(!0);try{s()}finally{sa(!1)}}return o.memoizedState=[l,a],l}function mf(s,a,o){return o===void 0||(Va&1073741824)!==0&&(Ke&261930)===0?s.memoizedState=a:(s.memoizedState=o,s=Eb(),ze.lanes|=s,An|=s,o)}function Ev(s,a,o,l){return Ss(o,a)?o:Oi.current!==null?(s=mf(s,o,l),Ss(s,a)||(Pt=!0),s):(Va&42)===0||(Va&1073741824)!==0&&(Ke&261930)===0?(Pt=!0,s.memoizedState=o):(s=Eb(),ze.lanes|=s,An|=s,a)}function Dv(s,a,o,l,p){var x=I.p;I.p=x!==0&&8>x?x:8;var j=P.T,T={};P.T=T,hf(s,!1,a,o);try{var L=p(),Q=P.S;if(Q!==null&&Q(T,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var ee=sT(L,l);Qo(s,a,ee,Ds(s))}else Qo(s,a,l,Ds(s))}catch(ne){Qo(s,a,{then:function(){},status:"rejected",reason:ne},Ds())}finally{I.p=x,j!==null&&T.types!==null&&(j.types=T.types),P.T=j}}function cT(){}function ff(s,a,o,l){if(s.tag!==5)throw Error(i(476));var p=Mv(s).queue;Dv(s,p,a,z,o===null?cT:function(){return Rv(s),o(l)})}function Mv(s){var a=s.memoizedState;if(a!==null)return a;a={memoizedState:z,baseState:z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:z},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:o},next:null},s.memoizedState=a,s=s.alternate,s!==null&&(s.memoizedState=a),a}function Rv(s){var a=Mv(s);a.next===null&&(a=s.alternate.memoizedState),Qo(s,a.next.queue,{},Ds())}function pf(){return $t(lc)}function kv(){return Ot().memoizedState}function Pv(){return Ot().memoizedState}function lT(s){for(var a=s.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ds();s=bn(o);var l=jn(a,s,o);l!==null&&(vs(l,a,o),Io(l,a,o)),a={cache:Vm()},s.payload=a;return}a=a.return}}function dT(s,a,o){var l=Ds();o={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Yl(s)?Lv(a,o):(o=Mm(s,a,o,l),o!==null&&(vs(o,s,l),Uv(o,a,l)))}function _v(s,a,o){var l=Ds();Qo(s,a,o,l)}function Qo(s,a,o,l){var p={lane:l,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Yl(s))Lv(a,p);else{var x=s.alternate;if(s.lanes===0&&(x===null||x.lanes===0)&&(x=a.lastRenderedReducer,x!==null))try{var j=a.lastRenderedState,T=x(j,o);if(p.hasEagerState=!0,p.eagerState=T,Ss(T,j))return Ol(s,a,p,0),lt===null&&Tl(),!1}catch{}finally{}if(o=Mm(s,a,p,l),o!==null)return vs(o,s,l),Uv(o,a,l),!0}return!1}function hf(s,a,o,l){if(l={lane:2,revertLane:Kf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Yl(s)){if(a)throw Error(i(479))}else a=Mm(s,o,l,2),a!==null&&vs(a,s,2)}function Yl(s){var a=s.alternate;return s===ze||a!==null&&a===ze}function Lv(s,a){Ei=Il=!0;var o=s.pending;o===null?a.next=a:(a.next=o.next,o.next=a),s.pending=a}function Uv(s,a,o){if((o&4194048)!==0){var l=a.lanes;l&=s.pendingLanes,o|=l,a.lanes=o,us(s,o)}}var Ko={readContext:$t,use:Fl,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};Ko.useEffectEvent=wt;var Bv={readContext:$t,use:Fl,useCallback:function(s,a){return is().memoizedState=[s,a===void 0?null:a],s},useContext:$t,useEffect:jv,useImperativeHandle:function(s,a,o){o=o!=null?o.concat([s]):null,Ql(4194308,4,Cv.bind(null,a,s),o)},useLayoutEffect:function(s,a){return Ql(4194308,4,s,a)},useInsertionEffect:function(s,a){Ql(4,2,s,a)},useMemo:function(s,a){var o=is();a=a===void 0?null:a;var l=s();if(Nr){sa(!0);try{s()}finally{sa(!1)}}return o.memoizedState=[l,a],l},useReducer:function(s,a,o){var l=is();if(o!==void 0){var p=o(a);if(Nr){sa(!0);try{o(a)}finally{sa(!1)}}}else p=a;return l.memoizedState=l.baseState=p,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:p},l.queue=s,s=s.dispatch=dT.bind(null,ze,s),[l.memoizedState,s]},useRef:function(s){var a=is();return s={current:s},a.memoizedState=s},useState:function(s){s=cf(s);var a=s.queue,o=_v.bind(null,ze,a);return a.dispatch=o,[s.memoizedState,o]},useDebugValue:uf,useDeferredValue:function(s,a){var o=is();return mf(o,s,a)},useTransition:function(){var s=cf(!1);return s=Dv.bind(null,ze,s.queue,!0,!1),is().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,a,o){var l=ze,p=is();if(Xe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),lt===null)throw Error(i(349));(Ke&127)!==0||rv(l,a,o)}p.memoizedState=o;var x={value:o,getSnapshot:a};return p.queue=x,jv(ov.bind(null,l,x,s),[s]),l.flags|=2048,Mi(9,{destroy:void 0},iv.bind(null,l,x,o,a),null),o},useId:function(){var s=is(),a=lt.identifierPrefix;if(Xe){var o=ya,l=ga;o=(l&~(1<<32-Jt(l)-1)).toString(32)+o,a="_"+a+"R_"+o,o=Vl++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=aT++,a="_"+a+"r_"+o.toString(32)+"_";return s.memoizedState=a},useHostTransitionStatus:pf,useFormState:xv,useActionState:xv,useOptimistic:function(s){var a=is();a.memoizedState=a.baseState=s;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=hf.bind(null,ze,!0,o),o.dispatch=a,[s,a]},useMemoCache:nf,useCacheRefresh:function(){return is().memoizedState=lT.bind(null,ze)},useEffectEvent:function(s){var a=is(),o={impl:s};return a.memoizedState=o,function(){if((tt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},xf={readContext:$t,use:Fl,useCallback:Tv,useContext:$t,useEffect:df,useImperativeHandle:Av,useInsertionEffect:Nv,useLayoutEffect:Sv,useMemo:Ov,useReducer:Gl,useRef:bv,useState:function(){return Gl(qa)},useDebugValue:uf,useDeferredValue:function(s,a){var o=Ot();return Ev(o,rt.memoizedState,s,a)},useTransition:function(){var s=Gl(qa)[0],a=Ot().memoizedState;return[typeof s=="boolean"?s:Go(s),a]},useSyncExternalStore:nv,useId:kv,useHostTransitionStatus:pf,useFormState:gv,useActionState:gv,useOptimistic:function(s,a){var o=Ot();return dv(o,rt,s,a)},useMemoCache:nf,useCacheRefresh:Pv};xf.useEffectEvent=wv;var zv={readContext:$t,use:Fl,useCallback:Tv,useContext:$t,useEffect:df,useImperativeHandle:Av,useInsertionEffect:Nv,useLayoutEffect:Sv,useMemo:Ov,useReducer:of,useRef:bv,useState:function(){return of(qa)},useDebugValue:uf,useDeferredValue:function(s,a){var o=Ot();return rt===null?mf(o,s,a):Ev(o,rt.memoizedState,s,a)},useTransition:function(){var s=of(qa)[0],a=Ot().memoizedState;return[typeof s=="boolean"?s:Go(s),a]},useSyncExternalStore:nv,useId:kv,useHostTransitionStatus:pf,useFormState:vv,useActionState:vv,useOptimistic:function(s,a){var o=Ot();return rt!==null?dv(o,rt,s,a):(o.baseState=s,[s,o.queue.dispatch])},useMemoCache:nf,useCacheRefresh:Pv};zv.useEffectEvent=wv;function gf(s,a,o,l){a=s.memoizedState,o=o(l,a),o=o==null?a:g({},a,o),s.memoizedState=o,s.lanes===0&&(s.updateQueue.baseState=o)}var yf={enqueueSetState:function(s,a,o){s=s._reactInternals;var l=Ds(),p=bn(l);p.payload=a,o!=null&&(p.callback=o),a=jn(s,p,l),a!==null&&(vs(a,s,l),Io(a,s,l))},enqueueReplaceState:function(s,a,o){s=s._reactInternals;var l=Ds(),p=bn(l);p.tag=1,p.payload=a,o!=null&&(p.callback=o),a=jn(s,p,l),a!==null&&(vs(a,s,l),Io(a,s,l))},enqueueForceUpdate:function(s,a){s=s._reactInternals;var o=Ds(),l=bn(o);l.tag=2,a!=null&&(l.callback=a),a=jn(s,l,o),a!==null&&(vs(a,s,o),Io(a,s,o))}};function Hv(s,a,o,l,p,x,j){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(l,x,j):a.prototype&&a.prototype.isPureReactComponent?!ko(o,l)||!ko(p,x):!0}function Iv(s,a,o,l){s=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,l),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,l),a.state!==s&&yf.enqueueReplaceState(a,a.state,null)}function Sr(s,a){var o=a;if("ref"in a){o={};for(var l in a)l!=="ref"&&(o[l]=a[l])}if(s=s.defaultProps){o===a&&(o=g({},o));for(var p in s)o[p]===void 0&&(o[p]=s[p])}return o}function Vv(s){Al(s)}function qv(s){console.error(s)}function Fv(s){Al(s)}function $l(s,a){try{var o=s.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(l){setTimeout(function(){throw l})}}function Gv(s,a,o){try{var l=s.onCaughtError;l(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}
vendor: 4,486 bytes, line 48
48catch(p){setTimeout(function(){throw p})}}function vf(s,a,o){return o=bn(o),o.tag=3,o.payload={element:null},o.callback=function(){$l(s,a)},o}function Qv(s){return s=bn(s),s.tag=3,s}function Kv(s,a,o,l){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var x=l.value;s.payload=function(){return p(x)},s.callback=function(){Gv(a,o,l)}}var j=o.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(s.callback=function(){Gv(a,o,l),typeof p!="function"&&(Tn===null?Tn=new Set([this]):Tn.add(this));var T=l.stack;this.componentDidCatch(l.value,{componentStack:T!==null?T:""})})}function uT(s,a,o,l,p){if(o.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(a=o.alternate,a!==null&&Ni(a,o,p,!0),o=As.current,o!==null){switch(o.tag){case 31:case 13:return Fs===null?od():o.alternate===null&&Nt===0&&(Nt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,l===Ll?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([l]):a.add(l),Ff(s,l,p)),!1;case 22:return o.flags|=65536,l===Ll?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([l])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([l]):o.add(l)),Ff(s,l,p)),!1}throw Error(i(435,o.tag))}return Ff(s,l,p),od(),!1}if(Xe)return a=As.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=p,l!==Um&&(s=Error(i(422),{cause:l}),Lo(Hs(s,o)))):(l!==Um&&(a=Error(i(423),{cause:l}),Lo(Hs(a,o))),s=s.current.alternate,s.flags|=65536,p&=-p,s.lanes|=p,l=Hs(l,o),p=vf(s.stateNode,l,p),Ym(s,p),Nt!==4&&(Nt=2)),!1;var x=Error(i(520),{cause:l});if(x=Hs(x,o),tc===null?tc=[x]:tc.push(x),Nt!==4&&(Nt=2),a===null)return!0;l=Hs(l,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,s=p&-p,o.lanes|=s,s=vf(o.stateNode,l,s),Ym(o,s),!1;case 1:if(a=o.type,x=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(Tn===null||!Tn.has(x))))return o.flags|=65536,p&=-p,o.lanes|=p,p=Qv(p),Kv(p,s,o,l),Ym(o,p),!1}o=o.return}while(o!==null);return!1}var bf=Error(i(461)),Pt=!1;function Xt(s,a,o,l){a.child=s===null?Wy(a,null,o,l):wr(a,s.child,o,l)}function Yv(s,a,o,l,p){o=o.render;var x=a.ref;if("ref"in l){var j={};for(var T in l)T!=="ref"&&(j[T]=l[T])}else j=l;return yr(a),l=ef(s,a,o,j,x,p),T=tf(),s!==null&&!Pt?(sf(s,a,p),Fa(s,a,p)):(Xe&&T&&_m(a),a.flags|=1,Xt(s,a,l,p),a.child)}function $v(s,a,o,l,p){if(s===null){var x=o.type;return typeof x=="function"&&!Rm(x)&&x.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=x,Xv(s,a,x,l,p)):(s=Dl(o.type,null,l,a,a.mode,p),s.ref=a.ref,s.return=a,a.child=s)}if(x=s.child,!Of(s,p)){var j=x.memoizedProps;if(o=o.compare,o=o!==null?o:ko,o(j,l)&&s.ref===a.ref)return Fa(s,a,p)}return a.flags|=1,s=Ba(x,l),s.ref=a.ref,s.return=a,a.child=s}function Xv(s,a,o,l,p){if(s!==null){var x=s.memoizedProps;if(ko(x,l)&&s.ref===a.ref)if(Pt=!1,a.pendingProps=l=x,Of(s,p))(s.flags&131072)!==0&&(Pt=!0);else return a.lanes=s.lanes,Fa(s,a,p)}return jf(s,a,o,l,p)}function Wv(s,a,o,l){var p=l.children,x=s!==null?s.memoizedState:null;if(s===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((a.flags&128)!==0){if(x=x!==null?x.baseLanes|o:o,s!==null){for(l=a.child=s.child,p=0;l!==null;)p=p|l.lanes|l.childLanes,l=l.sibling;l=p&~x}else l=0,a.child=null;return Zv(s,a,x,o,l)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},s!==null&&Pl(a,x!==null?x.cachePool:null),x!==null?ev(a,x):Xm(),tv(a);else return l=a.lanes=536870912,Zv(s,a,x!==null?x.baseLanes|o:o,o,l)}else x!==null?(Pl(a,x.cachePool),ev(a,x),Nn(),a.memoizedState=null):(s!==null&&Pl(a,null),Xm(),Nn());return Xt(s,a,p,o),a.child}function Yo(s,a){return s!==null&&s.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function Zv(s,a,o,l,p){var x=Fm();return x=x===null?null:{parent:Rt._currentValue,pool:x},a.memoizedState={baseLanes:o,cachePool:x},s!==null&&Pl(a,null),Xm(),tv(a),s!==null&&Ni(s,a,l,!0),a.childLanes=p,null}function Xl(s,a){return a=Zl({mode:a.mode,children:a.children},s.mode),a.ref=s.ref,s.child=a,a.return=s,a}function Jv(s,a,o){return wr(a,s.child,null,o),s=Xl(a,a.pendingProps),s.flags|=2,Ts(a),a.memoizedState=null,s}function mT(s,a,o){var l=a.pendingProps,p=(a.flags&128)!==0;if(a.flags&=-129,s===null){if(Xe){if(l.mode==="hidden")return s=Xl(a,l),a.lanes=536870912,Yo(null,
vendor: 5,232 bytes, line 48
48s);if(Zm(a),(s=ft)?(s=u0(s,qs),s=s!==null&&s.data==="&"?s:null,s!==null&&(a.memoizedState={dehydrated:s,treeContext:hn!==null?{id:ga,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},o=Ly(s),o.return=a,a.child=o,Yt=a,ft=null)):s=null,s===null)throw gn(a);return a.lanes=536870912,null}return Xl(a,l)}var x=s.memoizedState;if(x!==null){var j=x.dehydrated;if(Zm(a),p)if(a.flags&256)a.flags&=-257,a=Jv(s,a,o);else if(a.memoizedState!==null)a.child=s.child,a.flags|=128,a=null;else throw Error(i(558));else if(Pt||Ni(s,a,o,!1),p=(o&s.childLanes)!==0,Pt||p){if(l=lt,l!==null&&(j=ms(l,o),j!==0&&j!==x.retryLane))throw x.retryLane=j,pr(s,j),vs(l,s,j),bf;od(),a=Jv(s,a,o)}else s=x.treeContext,ft=Gs(j.nextSibling),Yt=a,Xe=!0,xn=null,qs=!1,s!==null&&zy(a,s),a=Xl(a,l),a.flags|=4096;return a}return s=Ba(s.child,{mode:l.mode,children:l.children}),s.ref=a.ref,a.child=s,s.return=a,s}function Wl(s,a){var o=a.ref;if(o===null)s!==null&&s.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(s===null||s.ref!==o)&&(a.flags|=4194816)}}function jf(s,a,o,l,p){return yr(a),o=ef(s,a,o,l,void 0,p),l=tf(),s!==null&&!Pt?(sf(s,a,p),Fa(s,a,p)):(Xe&&l&&_m(a),a.flags|=1,Xt(s,a,o,p),a.child)}function eb(s,a,o,l,p,x){return yr(a),a.updateQueue=null,o=av(a,l,o,p),sv(s),l=tf(),s!==null&&!Pt?(sf(s,a,x),Fa(s,a,x)):(Xe&&l&&_m(a),a.flags|=1,Xt(s,a,o,x),a.child)}function tb(s,a,o,l,p){if(yr(a),a.stateNode===null){var x=vi,j=o.contextType;typeof j=="object"&&j!==null&&(x=$t(j)),x=new o(l,x),a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=yf,a.stateNode=x,x._reactInternals=a,x=a.stateNode,x.props=l,x.state=a.memoizedState,x.refs={},Qm(a),j=o.contextType,x.context=typeof j=="object"&&j!==null?$t(j):vi,x.state=a.memoizedState,j=o.getDerivedStateFromProps,typeof j=="function"&&(gf(a,o,j,l),x.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(j=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),j!==x.state&&yf.enqueueReplaceState(x,x.state,null),qo(a,l,x,p),Vo(),x.state=a.memoizedState),typeof x.componentDidMount=="function"&&(a.flags|=4194308),l=!0}else if(s===null){x=a.stateNode;var T=a.memoizedProps,L=Sr(o,T);x.props=L;var Q=x.context,ee=o.contextType;j=vi,typeof ee=="object"&&ee!==null&&(j=$t(ee));var ne=o.getDerivedStateFromProps;ee=typeof ne=="function"||typeof x.getSnapshotBeforeUpdate=="function",T=a.pendingProps!==T,ee||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(T||Q!==j)&&Iv(a,x,l,j),vn=!1;var K=a.memoizedState;x.state=K,qo(a,l,x,p),Vo(),Q=a.memoizedState,T||K!==Q||vn?(typeof ne=="function"&&(gf(a,o,ne,l),Q=a.memoizedState),(L=vn||Hv(a,o,L,l,K,Q,j))?(ee||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(a.flags|=4194308)):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=l,a.memoizedState=Q),x.props=l,x.state=Q,x.context=j,l=L):(typeof x.componentDidMount=="function"&&(a.flags|=4194308),l=!1)}else{x=a.stateNode,Km(s,a),j=a.memoizedProps,ee=Sr(o,j),x.props=ee,ne=a.pendingProps,K=x.context,Q=o.contextType,L=vi,typeof Q=="object"&&Q!==null&&(L=$t(Q)),T=o.getDerivedStateFromProps,(Q=typeof T=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(j!==ne||K!==L)&&Iv(a,x,l,L),vn=!1,K=a.memoizedState,x.state=K,qo(a,l,x,p),Vo();var W=a.memoizedState;j!==ne||K!==W||vn||s!==null&&s.dependencies!==null&&Rl(s.dependencies)?(typeof T=="function"&&(gf(a,o,T,l),W=a.memoizedState),(ee=vn||Hv(a,o,ee,l,K,W,L)||s!==null&&s.dependencies!==null&&Rl(s.dependencies))?(Q||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(l,W,L),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(l,W,L)),typeof x.componentDidUpdate=="function"&&(a.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof x.componentDidUpdate!="function"||j===s.memoizedProps&&K===s.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||j===s.memoizedProps&&K===s.memoizedState||(a.flags|=1024),a.memoizedProps=l,a.memoizedState=W),x.props=l,x.state=W,x.context=L,l=ee):(typeof x.componentDidUpdate!="function"||j===s.memoizedProps&&K===s.memoizedState||(a.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||j===s.memoizedProps&&K===s.memoizedState||(a.flags|=1024),l=!1)}return x=l,Wl(s,a),l=(a.flags&128)!==0,x||l?(x=a.stateNode,o=l&&typeof o.getDerivedStateFromError!="function"?null:x.render(),a.flags|=1,s!==null&&l?(a.child=wr(a,s.child,null,p),a.child=wr(a,null,o,p)):Xt(s,a,o,p),a.memoizedState=x.state,s=a.child):s=Fa(s,a,p),s}
vendor: 2,627 bytes, line 48
48function sb(s,a,o,l){return xr(),a.flags|=256,Xt(s,a,o,l),a.child}var wf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nf(s){return{baseLanes:s,cachePool:Gy()}}function Sf(s,a,o){return s=s!==null?s.childLanes&~o:0,a&&(s|=Es),s}function ab(s,a,o){var l=a.pendingProps,p=!1,x=(a.flags&128)!==0,j;if((j=x)||(j=s!==null&&s.memoizedState===null?!1:(Tt.current&2)!==0),j&&(p=!0,a.flags&=-129),j=(a.flags&32)!==0,a.flags&=-33,s===null){if(Xe){if(p?wn(a):Nn(),(s=ft)?(s=u0(s,qs),s=s!==null&&s.data!=="&"?s:null,s!==null&&(a.memoizedState={dehydrated:s,treeContext:hn!==null?{id:ga,overflow:ya}:null,retryLane:536870912,hydrationErrors:null},o=Ly(s),o.return=a,a.child=o,Yt=a,ft=null)):s=null,s===null)throw gn(a);return ip(s)?a.lanes=32:a.lanes=536870912,null}var T=l.children;return l=l.fallback,p?(Nn(),p=a.mode,T=Zl({mode:"hidden",children:T},p),l=hr(l,p,o,null),T.return=a,l.return=a,T.sibling=l,a.child=T,l=a.child,l.memoizedState=Nf(o),l.childLanes=Sf(s,j,o),a.memoizedState=wf,Yo(null,l)):(wn(a),Cf(a,T))}var L=s.memoizedState;if(L!==null&&(T=L.dehydrated,T!==null)){if(x)a.flags&256?(wn(a),a.flags&=-257,a=Af(s,a,o)):a.memoizedState!==null?(Nn(),a.child=s.child,a.flags|=128,a=null):(Nn(),T=l.fallback,p=a.mode,l=Zl({mode:"visible",children:l.children},p),T=hr(T,p,o,null),T.flags|=2,l.return=a,T.return=a,l.sibling=T,a.child=l,wr(a,s.child,null,o),l=a.child,l.memoizedState=Nf(o),l.childLanes=Sf(s,j,o),a.memoizedState=wf,a=Yo(null,l));else if(wn(a),ip(T)){if(j=T.nextSibling&&T.nextSibling.dataset,j)var Q=j.dgst;j=Q,l=Error(i(419)),l.stack="",l.digest=j,Lo({value:l,source:null,stack:null}),a=Af(s,a,o)}else if(Pt||Ni(s,a,o,!1),j=(o&s.childLanes)!==0,Pt||j){if(j=lt,j!==null&&(l=ms(j,o),l!==0&&l!==L.retryLane))throw L.retryLane=l,pr(s,l),vs(j,s,l),bf;rp(T)||od(),a=Af(s,a,o)}else rp(T)?(a.flags|=192,a.child=s.child,a=null):(s=L.treeContext,ft=Gs(T.nextSibling),Yt=a,Xe=!0,xn=null,qs=!1,s!==null&&zy(a,s),a=Cf(a,l.children),a.flags|=4096);return a}return p?(Nn(),T=l.fallback,p=a.mode,L=s.child,Q=L.sibling,l=Ba(L,{mode:"hidden",children:l.children}),l.subtreeFlags=L.subtreeFlags&65011712,Q!==null?T=Ba(Q,T):(T=hr(T,p,o,null),T.flags|=2),T.return=a,l.return=a,l.sibling=T,a.child=l,Yo(null,l),l=a.child,T=s.child.memoizedState,T===null?T=Nf(o):(p=T.cachePool,p!==null?(L=Rt._currentValue,p=p.parent!==L?{parent:L,pool:L}:p):p=Gy(),T={baseLanes:T.baseLanes|o,cachePool:p}),l.memoizedState=T,l.childLanes=Sf(s,j,o),a.memoizedState=wf,Yo(s.child,l)):(wn(a),o=s.child,s=o.sibling,o=Ba(o,{mode:"visible",children:l.children}),o.return=a,o.sibling=null,s!==null&&(j=a.deletions,j===null?(a.deleti
vendor: 2,762 bytes, line 48
48ons=[s],a.flags|=16):j.push(s)),a.child=o,a.memoizedState=null,o)}function Cf(s,a){return a=Zl({mode:"visible",children:a},s.mode),a.return=s,s.child=a}function Zl(s,a){return s=Cs(22,s,null,a),s.lanes=0,s}function Af(s,a,o){return wr(a,s.child,null,o),s=Cf(a,a.pendingProps.children),s.flags|=2,a.memoizedState=null,s}function nb(s,a,o){s.lanes|=a;var l=s.alternate;l!==null&&(l.lanes|=a),Hm(s.return,a,o)}function Tf(s,a,o,l,p,x){var j=s.memoizedState;j===null?s.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:p,treeForkCount:x}:(j.isBackwards=a,j.rendering=null,j.renderingStartTime=0,j.last=l,j.tail=o,j.tailMode=p,j.treeForkCount=x)}function rb(s,a,o){var l=a.pendingProps,p=l.revealOrder,x=l.tail;l=l.children;var j=Tt.current,T=(j&2)!==0;if(T?(j=j&1|2,a.flags|=128):j&=1,F(Tt,j),Xt(s,a,l,o),l=Xe?_o:0,!T&&s!==null&&(s.flags&128)!==0)e:for(s=a.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&nb(s,o,a);else if(s.tag===19)nb(s,o,a);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===a)break e;for(;s.sibling===null;){if(s.return===null||s.return===a)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}switch(p){case"forwards":for(o=a.child,p=null;o!==null;)s=o.alternate,s!==null&&Hl(s)===null&&(p=o),o=o.sibling;o=p,o===null?(p=a.child,a.child=null):(p=o.sibling,o.sibling=null),Tf(a,!1,p,o,x,l);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=a.child,a.child=null;p!==null;){if(s=p.alternate,s!==null&&Hl(s)===null){a.child=p;break}s=p.sibling,p.sibling=o,o=p,p=s}Tf(a,!0,o,null,x,l);break;case"together":Tf(a,!1,null,null,void 0,l);break;default:a.memoizedState=null}return a.child}function Fa(s,a,o){if(s!==null&&(a.dependencies=s.dependencies),An|=a.lanes,(o&a.childLanes)===0)if(s!==null){if(Ni(s,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(s!==null&&a.child!==s.child)throw Error(i(153));if(a.child!==null){for(s=a.child,o=Ba(s,s.pendingProps),a.child=o,o.return=a;s.sibling!==null;)s=s.sibling,o=o.sibling=Ba(s,s.pendingProps),o.return=a;o.sibling=null}return a.child}function Of(s,a){return(s.lanes&a)!==0?!0:(s=s.dependencies,!!(s!==null&&Rl(s)))}function fT(s,a,o){switch(a.tag){case 3:X(a,a.stateNode.containerInfo),yn(a,Rt,s.memoizedState.cache),xr();break;case 27:case 5:ge(a);break;case 4:X(a,a.stateNode.containerInfo);break;case 10:yn(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Zm(a),null;break;case 13:var l=a.memoizedState;if(l!==null)return l.dehydrated!==null?(wn(a),a.flags|=128,null):(o&a.child.childLanes)!==0?ab(s,a,o):(wn(a),s=Fa(s,a,o),s!==null?s.sibling:null);wn(a);break;case 19:var p=(s.flags&128)!==0;if(l=(o&a.childLanes)!==0,l||(Ni(s,a,o,!1),l=(o&a.childLanes)!==0),p){
vendor: 6,759 bytes, line 48
48if(l)return rb(s,a,o);a.flags|=128}if(p=a.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),F(Tt,Tt.current),l)break;return null;case 22:return a.lanes=0,Wv(s,a,o,a.pendingProps);case 24:yn(a,Rt,s.memoizedState.cache)}return Fa(s,a,o)}function ib(s,a,o){if(s!==null)if(s.memoizedProps!==a.pendingProps)Pt=!0;else{if(!Of(s,o)&&(a.flags&128)===0)return Pt=!1,fT(s,a,o);Pt=(s.flags&131072)!==0}else Pt=!1,Xe&&(a.flags&1048576)!==0&&By(a,_o,a.index);switch(a.lanes=0,a.tag){case 16:e:{var l=a.pendingProps;if(s=br(a.elementType),a.type=s,typeof s=="function")Rm(s)?(l=Sr(s,l),a.tag=1,a=tb(null,a,s,l,o)):(a.tag=0,a=jf(null,a,s,l,o));else{if(s!=null){var p=s.$$typeof;if(p===V){a.tag=11,a=Yv(null,a,s,l,o);break e}else if(p===E){a.tag=14,a=$v(null,a,s,l,o);break e}}throw a=ue(s)||s,Error(i(306,a,""))}}return a;case 0:return jf(s,a,a.type,a.pendingProps,o);case 1:return l=a.type,p=Sr(l,a.pendingProps),tb(s,a,l,p,o);case 3:e:{if(X(a,a.stateNode.containerInfo),s===null)throw Error(i(387));l=a.pendingProps;var x=a.memoizedState;p=x.element,Km(s,a),qo(a,l,null,o);var j=a.memoizedState;if(l=j.cache,yn(a,Rt,l),l!==x.cache&&Im(a,[Rt],o,!0),Vo(),l=j.element,x.isDehydrated)if(x={element:l,isDehydrated:!1,cache:j.cache},a.updateQueue.baseState=x,a.memoizedState=x,a.flags&256){a=sb(s,a,l,o);break e}else if(l!==p){p=Hs(Error(i(424)),a),Lo(p),a=sb(s,a,l,o);break e}else{switch(s=a.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(ft=Gs(s.firstChild),Yt=a,Xe=!0,xn=null,qs=!0,o=Wy(a,null,l,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(xr(),l===p){a=Fa(s,a,o);break e}Xt(s,a,l,o)}a=a.child}return a;case 26:return Wl(s,a),s===null?(o=g0(a.type,null,a.pendingProps,null))?a.memoizedState=o:Xe||(o=a.type,s=a.pendingProps,l=pd(xe.current).createElement(o),l[Kt]=a,l[fs]=s,Wt(l,o,s),Vt(l),a.stateNode=l):a.memoizedState=g0(a.type,s.memoizedProps,a.pendingProps,s.memoizedState),null;case 27:return ge(a),s===null&&Xe&&(l=a.stateNode=p0(a.type,a.pendingProps,xe.current),Yt=a,qs=!0,p=ft,Mn(a.type)?(op=p,ft=Gs(l.firstChild)):ft=p),Xt(s,a,a.pendingProps.children,o),Wl(s,a),s===null&&(a.flags|=4194304),a.child;case 5:return s===null&&Xe&&((p=l=ft)&&(l=qT(l,a.type,a.pendingProps,qs),l!==null?(a.stateNode=l,Yt=a,ft=Gs(l.firstChild),qs=!1,p=!0):p=!1),p||gn(a)),ge(a),p=a.type,x=a.pendingProps,j=s!==null?s.memoizedProps:null,l=x.children,sp(p,x)?l=null:j!==null&&sp(p,j)&&(a.flags|=32),a.memoizedState!==null&&(p=ef(s,a,nT,null,null,o),lc._currentValue=p),Wl(s,a),Xt(s,a,l,o),a.child;case 6:return s===null&&Xe&&((s=o=ft)&&(o=FT(o,a.pendingProps,qs),o!==null?(a.stateNode=o,Yt=a,ft=null,s=!0):s=!1),s||gn(a)),null;case 13:return ab(s,a,o);case 4:return X(a,a.stateNode.containerInfo),l=a.pendingProps,s===null?a.child=wr(a,null,l,o):Xt(s,a,l,o),a.child;case 11:return Yv(s,a,a.type,a.pendingProps,o);case 7:return Xt(s,a,a.pendingProps,o),a.child;case 8:return Xt(s,a,a.pendingProps.children,o),a.child;case 12:return Xt(s,a,a.pendingProps.children,o),a.child;case 10:return l=a.pendingProps,yn(a,a.type,l.value),Xt(s,a,l.children,o),a.child;case 9:return p=a.type._context,l=a.pendingProps.children,yr(a),p=$t(p),l=l(p),a.flags|=1,Xt(s,a,l,o),a.child;case 14:return $v(s,a,a.type,a.pendingProps,o);case 15:return Xv(s,a,a.type,a.pendingProps,o);case 19:return rb(s,a,o);case 31:return mT(s,a,o);case 22:return Wv(s,a,o,a.pendingProps);case 24:return yr(a),l=$t(Rt),s===null?(p=Fm(),p===null&&(p=lt,x=Vm(),p.pooledCache=x,x.refCount++,x!==null&&(p.pooledCacheLanes|=o),p=x),a.memoizedState={parent:l,cache:p},Qm(a),yn(a,Rt,p)):((s.lanes&o)!==0&&(Km(s,a),qo(a,null,null,o),Vo()),p=s.memoizedState,x=a.memoizedState,p.parent!==l?(p={parent:l,cache:l},a.memoizedState=p,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=p),yn(a,Rt,l)):(l=x.cache,yn(a,Rt,l),l!==p.cache&&Im(a,[Rt],o,!0))),Xt(s,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Ga(s){s.flags|=4}function Ef(s,a,o,l,p){if((a=(s.mode&32)!==0)&&(a=!1),a){if(s.flags|=16777216,(p&335544128)===p)if(s.stateNode.complete)s.flags|=8192;else if(kb())s.flags|=8192;else throw jr=Ll,Gm}else s.flags&=-16777217}function ob(s,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!w0(a))if(kb())s.flags|=8192;else throw jr=Ll,Gm}function Jl(s,a){a!==null&&(s.flags|=4),s.flags&16384&&(a=s.tag!==22?es():536870912,s.lanes|=a,_i|=a)}function $o(s,a){if(!Xe)switch(s.tailMode){case"hidden":a=s.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?s.tail=null:o.sibling=null;break;case"collapsed":o=s.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?a||s.tail===null?s.tail=null:s.tail.sibling=null:l.sibling=null}}function pt(s){var a=s.alternate!==null&&s.alternate.child===s.child,o=0,l=0;if(a)for(var p=s.child;p!==null;)o|=p.lanes|p.childLanes,l|=p.subtreeFlags&65011712,l|=p.flags&65011712,p.return=s,p=p.sibling;else for(p=s.child;p!==null;)o|=p.lanes|p.childLanes,l|=p.subtreeFlags,l|=p.flags,p.return=s,p=p.sibling;return s.subtreeFlags|=l,s.childLanes=o,a}function pT(s,a,o){var l=a.pendingProps;switch(Lm(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(a),null;case 1:return pt(a),null;case 3:return o=a.stateNode,l=null,s!==null&&(l=s.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),Ia(Rt),se(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(s===null||s.child===null)&&(wi(a)?Ga(a):s===null||s.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Bm())),pt(a),null;case 26:var p=a.type,x=a.memoizedState;return s===null?(Ga(a),x!==null?(pt(a),ob(a,x)):(pt(a),Ef(a,p,null,l,o))):x?x!==s.memoizedState?(Ga(a),pt(a),ob(a,x)):(pt(a),a.flags&=-16777217):(s=s.memoizedProps,s!==l&&Ga(a),pt(a),Ef(a,p,s,l,o)),null;case 27:if(ie(a),o=xe.current,p=a.type,s!==null&&a.stateNode!=null)s.memoizedProps!==l&&Ga(a);else{if(!l){if(a.stateNode===null)throw Error(i(166));return pt(a),null}s=$.current,wi(a)?Hy(a):(s=p0(p,l,o),a.stateNode=s,Ga(a))}return pt(a),null;case 5:if(ie(a),p=a.type,s!==null&&a.stateNode!=null)s.memoizedProps!==l&&Ga(a);else{if(!l){if(a.stateNode===null)throw Error(i(166));return pt(a),null}if(x=$.current,wi(a))Hy(a);else{var j=pd(xe.current);switch(x){case 1:x=j.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:x=j.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":x=j.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":x=j.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":x=j.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;
vendor: 19,283 bytes, line 48
48case"select":x=typeof l.is=="string"?j.createElement("select",{is:l.is}):j.createElement("select"),l.multiple?x.multiple=!0:l.size&&(x.size=l.size);break;default:x=typeof l.is=="string"?j.createElement(p,{is:l.is}):j.createElement(p)}}x[Kt]=a,x[fs]=l;e:for(j=a.child;j!==null;){if(j.tag===5||j.tag===6)x.appendChild(j.stateNode);else if(j.tag!==4&&j.tag!==27&&j.child!==null){j.child.return=j,j=j.child;continue}if(j===a)break e;for(;j.sibling===null;){if(j.return===null||j.return===a)break e;j=j.return}j.sibling.return=j.return,j=j.sibling}a.stateNode=x;e:switch(Wt(x,p,l),p){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Ga(a)}}return pt(a),Ef(a,a.type,s===null?null:s.memoizedProps,a.pendingProps,o),null;case 6:if(s&&a.stateNode!=null)s.memoizedProps!==l&&Ga(a);else{if(typeof l!="string"&&a.stateNode===null)throw Error(i(166));if(s=xe.current,wi(a)){if(s=a.stateNode,o=a.memoizedProps,l=null,p=Yt,p!==null)switch(p.tag){case 27:case 5:l=p.memoizedProps}s[Kt]=a,s=!!(s.nodeValue===o||l!==null&&l.suppressHydrationWarning===!0||a0(s.nodeValue,o)),s||gn(a,!0)}else s=pd(s).createTextNode(l),s[Kt]=a,a.stateNode=s}return pt(a),null;case 31:if(o=a.memoizedState,s===null||s.memoizedState!==null){if(l=wi(a),o!==null){if(s===null){if(!l)throw Error(i(318));if(s=a.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(557));s[Kt]=a}else xr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),s=!1}else o=Bm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=o),s=!0;if(!s)return a.flags&256?(Ts(a),a):(Ts(a),null);if((a.flags&128)!==0)throw Error(i(558))}return pt(a),null;case 13:if(l=a.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(p=wi(a),l!==null&&l.dehydrated!==null){if(s===null){if(!p)throw Error(i(318));if(p=a.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(i(317));p[Kt]=a}else xr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),p=!1}else p=Bm(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=p),p=!0;if(!p)return a.flags&256?(Ts(a),a):(Ts(a),null)}return Ts(a),(a.flags&128)!==0?(a.lanes=o,a):(o=l!==null,s=s!==null&&s.memoizedState!==null,o&&(l=a.child,p=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(p=l.alternate.memoizedState.cachePool.pool),x=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(x=l.memoizedState.cachePool.pool),x!==p&&(l.flags|=2048)),o!==s&&o&&(a.child.flags|=8192),Jl(a,a.updateQueue),pt(a),null);case 4:return se(),s===null&&Wf(a.stateNode.containerInfo),pt(a),null;case 10:return Ia(a.type),pt(a),null;case 19:if(Y(Tt),l=a.memoizedState,l===null)return pt(a),null;if(p=(a.flags&128)!==0,x=l.rendering,x===null)if(p)$o(l,!1);else{if(Nt!==0||s!==null&&(s.flags&128)!==0)for(s=a.child;s!==null;){if(x=Hl(s),x!==null){for(a.flags|=128,$o(l,!1),s=x.updateQueue,a.updateQueue=s,Jl(a,s),a.subtreeFlags=0,s=o,o=a.child;o!==null;)_y(o,s),o=o.sibling;return F(Tt,Tt.current&1|2),Xe&&za(a,l.treeForkCount),a.child}s=s.sibling}l.tail!==null&&Te()>nd&&(a.flags|=128,p=!0,$o(l,!1),a.lanes=4194304)}else{if(!p)if(s=Hl(x),s!==null){if(a.flags|=128,p=!0,s=s.updateQueue,a.updateQueue=s,Jl(a,s),$o(l,!0),l.tail===null&&l.tailMode==="hidden"&&!x.alternate&&!Xe)return pt(a),null}else 2*Te()-l.renderingStartTime>nd&&o!==536870912&&(a.flags|=128,p=!0,$o(l,!1),a.lanes=4194304);l.isBackwards?(x.sibling=a.child,a.child=x):(s=l.last,s!==null?s.sibling=x:a.child=x,l.last=x)}return l.tail!==null?(s=l.tail,l.rendering=s,l.tail=s.sibling,l.renderingStartTime=Te(),s.sibling=null,o=Tt.current,F(Tt,p?o&1|2:o&1),Xe&&za(a,l.treeForkCount),s):(pt(a),null);case 22:case 23:return Ts(a),Wm(),l=a.memoizedState!==null,s!==null?s.memoizedState!==null!==l&&(a.flags|=8192):l&&(a.flags|=8192),l?(o&536870912)!==0&&(a.flags&128)===0&&(pt(a),a.subtreeFlags&6&&(a.flags|=8192)):pt(a),o=a.updateQueue,o!==null&&Jl(a,o.retryQueue),o=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),l=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(l=a.memoizedState.cachePool.pool),l!==o&&(a.flags|=2048),s!==null&&Y(vr),null;case 24:return o=null,s!==null&&(o=s.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Ia(Rt),pt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function hT(s,a){switch(Lm(a),a.tag){case 1:return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 3:return Ia(Rt),se(),s=a.flags,(s&65536)!==0&&(s&128)===0?(a.flags=s&-65537|128,a):null;case 26:case 27:case 5:return ie(a),null;case 31:if(a.memoizedState!==null){if(Ts(a),a.alternate===null)throw Error(i(340));xr()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 13:if(Ts(a),s=a.memoizedState,s!==null&&s.dehydrated!==null){if(a.alternate===null)throw Error(i(340));xr()}return s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 19:return Y(Tt),null;case 4:return se(),null;case 10:return Ia(a.type),null;case 22:case 23:return Ts(a),Wm(),s!==null&&Y(vr),s=a.flags,s&65536?(a.flags=s&-65537|128,a):null;case 24:return Ia(Rt),null;case 25:return null;default:return null}}function cb(s,a){switch(Lm(a),a.tag){case 3:Ia(Rt),se();break;case 26:case 27:case 5:ie(a);break;case 4:se();break;case 31:a.memoizedState!==null&&Ts(a);break;case 13:Ts(a);break;case 19:Y(Tt);break;case 10:Ia(a.type);break;case 22:case 23:Ts(a),Wm(),s!==null&&Y(vr);break;case 24:Ia(Rt)}}function Xo(s,a){try{var o=a.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var p=l.next;o=p;do{if((o.tag&s)===s){l=void 0;var x=o.create,j=o.inst;l=x(),j.destroy=l}o=o.next}while(o!==p)}}catch(T){at(a,a.return,T)}}function Sn(s,a,o){try{var l=a.updateQueue,p=l!==null?l.lastEffect:null;if(p!==null){var x=p.next;l=x;do{if((l.tag&s)===s){var j=l.inst,T=j.destroy;if(T!==void 0){j.destroy=void 0,p=a;var L=o,Q=T;try{Q()}catch(ee){at(p,L,ee)}}}l=l.next}while(l!==x)}}catch(ee){at(a,a.return,ee)}}function lb(s){var a=s.updateQueue;if(a!==null){var o=s.stateNode;try{Jy(a,o)}catch(l){at(s,s.return,l)}}}function db(s,a,o){o.props=Sr(s.type,s.memoizedProps),o.state=s.memoizedState;try{o.componentWillUnmount()}catch(l){at(s,a,l)}}function Wo(s,a){try{var o=s.ref;if(o!==null){switch(s.tag){case 26:case 27:case 5:var l=s.stateNode;break;case 30:l=s.stateNode;break;default:l=s.stateNode}typeof o=="function"?s.refCleanup=o(l):o.current=l}}catch(p){at(s,a,p)}}function va(s,a){var o=s.ref,l=s.refCleanup;if(o!==null)if(typeof l=="function")try{l()}catch(p){at(s,a,p)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){at(s,a,p)}else o.current=null}function ub(s){var a=s.type,o=s.memoizedProps,l=s.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&l.focus();break e;case"img":o.src?l.src=o.src:o.srcSet&&(l.srcset=o.srcSet)}}catch(p){at(s,s.return,p)}}function Df(s,a,o){try{var l=s.stateNode;UT(l,s.type,o,a),l[fs]=a}catch(p){at(s,s.return,p)}}function mb(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Mn(s.type)||s.tag===4}function Mf(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||mb(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Mn(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Rf(s,a,o){var l=s.tag;if(l===5||l===6)s=s.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(s,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(s),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=La));else if(l!==4&&(l===27&&Mn(s.type)&&(o=s.stateNode,a=null),s=s.child,s!==null))for(Rf(s,a,o),s=s.sibling;s!==null;)Rf(s,a,o),s=s.sibling}function ed(s,a,o){var l=s.tag;if(l===5||l===6)s=s.stateNode,a?o.insertBefore(s,a):o.appendChild(s);else if(l!==4&&(l===27&&Mn(s.type)&&(o=s.stateNode),s=s.child,s!==null))for(ed(s,a,o),s=s.sibling;s!==null;)ed(s,a,o),s=s.sibling}function fb(s){var a=s.stateNode,o=s.memoizedProps;try{for(var l=s.type,p=a.attributes;p.length;)a.removeAttributeNode(p[0]);Wt(a,l,o),a[Kt]=s,a[fs]=o}catch(x){at(s,s.return,x)}}var Qa=!1,_t=!1,kf=!1,pb=typeof WeakSet=="function"?WeakSet:Set,qt=null;function xT(s,a){if(s=s.containerInfo,ep=jd,s=Ay(s),Cm(s)){if("selectionStart"in s)var o={start:s.selectionStart,end:s.selectionEnd};else e:{o=(o=s.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var p=l.anchorOffset,x=l.focusNode;l=l.focusOffset;try{o.nodeType,x.nodeType}catch{o=null;break e}var j=0,T=-1,L=-1,Q=0,ee=0,ne=s,K=null;t:for(;;){for(var W;ne!==o||p!==0&&ne.nodeType!==3||(T=j+p),ne!==x||l!==0&&ne.nodeType!==3||(L=j+l),ne.nodeType===3&&(j+=ne.nodeValue.length),(W=ne.firstChild)!==null;)K=ne,ne=W;for(;;){if(ne===s)break t;if(K===o&&++Q===p&&(T=j),K===x&&++ee===l&&(L=j),(W=ne.nextSibling)!==null)break;ne=K,K=ne.parentNode}ne=W}o=T===-1||L===-1?null:{start:T,end:L}}else o=null}o=o||{start:0,end:0}}else o=null;for(tp={focusedElem:s,selectionRange:o},jd=!1,qt=a;qt!==null;)if(a=qt,s=a.child,(a.subtreeFlags&1028)!==0&&s!==null)s.return=a,qt=s;else for(;qt!==null;){switch(a=qt,x=a.alternate,s=a.flags,a.tag){case 0:if((s&4)!==0&&(s=a.updateQueue,s=s!==null?s.events:null,s!==null))for(o=0;o<s.length;o++)p=s[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((s&1024)!==0&&x!==null){s=void 0,o=a,p=x.memoizedProps,x=x.memoizedState,l=o.stateNode;try{var we=Sr(o.type,p);s=l.getSnapshotBeforeUpdate(we,x),l.__reactInternalSnapshotBeforeUpdate=s}catch(ke){at(o,o.return,ke)}}break;case 3:if((s&1024)!==0){if(s=a.stateNode.containerInfo,o=s.nodeType,o===9)np(s);else if(o===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":np(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(i(163))}if(s=a.sibling,s!==null){s.return=a.return,qt=s;break}qt=a.return}}function hb(s,a,o){var l=o.flags;switch(o.tag){case 0:case 11:case 15:Ya(s,o),l&4&&Xo(5,o);break;case 1:if(Ya(s,o),l&4)if(s=o.stateNode,a===null)try{s.componentDidMount()}catch(j){at(o,o.return,j)}else{var p=Sr(o.type,a.memoizedProps);a=a.memoizedState;try{s.componentDidUpdate(p,a,s.__reactInternalSnapshotBeforeUpdate)}catch(j){at(o,o.return,j)}}l&64&&lb(o),l&512&&Wo(o,o.return);break;case 3:if(Ya(s,o),l&64&&(s=o.updateQueue,s!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{Jy(s,a)}catch(j){at(o,o.return,j)}}break;case 27:a===null&&l&4&&fb(o);case 26:case 5:Ya(s,o),a===null&&l&4&&ub(o),l&512&&Wo(o,o.return);break;case 12:Ya(s,o);break;case 31:Ya(s,o),l&4&&yb(s,o);break;case 13:Ya(s,o),l&4&&vb(s,o),l&64&&(s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(o=CT.bind(null,o),GT(s,o))));break;case 22:if(l=o.memoizedState!==null||Qa,!l){a=a!==null&&a.memoizedState!==null||_t,p=Qa;var x=_t;Qa=l,(_t=a)&&!x?$a(s,o,(o.subtreeFlags&8772)!==0):Ya(s,o),Qa=p,_t=x}break;case 30:break;default:Ya(s,o)}}function xb(s){var a=s.alternate;a!==null&&(s.alternate=null,xb(a)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(a=s.stateNode,a!==null&&cm(a)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var gt=null,hs=!1;function Ka(s,a,o){for(o=o.child;o!==null;)gb(s,a,o),o=o.sibling}function gb(s,a,o){if(rs&&typeof rs.onCommitFiberUnmount=="function")try{rs.onCommitFiberUnmount(or,o)}catch{}switch(o.tag){case 26:_t||va(o,a),Ka(s,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:_t||va(o,a);var l=gt,p=hs;Mn(o.type)&&(gt=o.stateNode,hs=!1),Ka(s,a,o),ic(o.stateNode),gt=l,hs=p;break;case 5:_t||va(o,a);case 6:if(l=gt,p=hs,gt=null,Ka(s,a,o),gt=l,hs=p,gt!==null)if(hs)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(o.stateNode)}catch(x){at(o,a,x)}else try{gt.removeChild(o.stateNode)}catch(x){at(o,a,x)}break;case 18:gt!==null&&(hs?(s=gt,l0(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.stateNode),qi(s)):l0(gt,o.stateNode));break;case 4:l=gt,p=hs,gt=o.stateNode.containerInfo,hs=!0,Ka(s,a,o),gt=l,hs=p;break;case 0:case 11:case 14:case 15:Sn(2,o,a),_t||Sn(4,o,a),Ka(s,a,o);break;case 1:_t||(va(o,a),l=o.stateNode,typeof l.componentWillUnmount=="function"&&db(o,a,l)),Ka(s,a,o);break;case 21:Ka(s,a,o);break;case 22:_t=(l=_t)||o.memoizedState!==null,Ka(s,a,o),_t=l;break;default:Ka(s,a,o)}}function yb(s,a){if(a.memoizedState===null&&(s=a.alternate,s!==null&&(s=s.memoizedState,s!==null))){s=s.dehydrated;try{qi(s)}catch(o){at(a,a.return,o)}}}function vb(s,a){if(a.memoizedState===null&&(s=a.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{qi(s)}catch(o){at(a,a.return,o)}}function gT(s){switch(s.tag){case 31:case 13:case 19:var a=s.stateNode;return a===null&&(a=s.stateNode=new pb),a;case 22:return s=s.stateNode,a=s._retryCache,a===null&&(a=s._retryCache=new pb),a;default:throw Error(i(435,s.tag))}}function td(s,a){var o=gT(s);a.forEach(function(l){if(!o.has(l)){o.add(l);var p=AT.bind(null,s,l);l.then(p,p)}})}function xs(s,a){var o=a.deletions;if(o!==null)for(var l=0;l<o.length;l++){var p=o[l],x=s,j=a,T=j;e:for(;T!==null;){switch(T.tag){case 27:if(Mn(T.type)){gt=T.stateNode,hs=!1;break e}break;case 5:gt=T.stateNode,hs=!1;break e;case 3:case 4:gt=T.stateNode.containerInfo,hs=!0;break e}T=T.return}if(gt===null)throw Error(i(160));gb(x,j,p),gt=null,hs=!1,x=p.alternate,x!==null&&(x.return=null),p.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)bb(a,s),a=a.sibling}var ra=null;function bb(s,a){var o=s.alternate,l=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:xs(a,s),gs(s),l&4&&(Sn(3,s,s.return),Xo(3,s),Sn(5,s,s.return));break;case 1:xs(a,s),gs(s),l&512&&(_t||o===null||va(o,o.return)),l&64&&Qa&&(s=s.updateQueue,s!==null&&(l=s.callbacks,l!==null&&(o=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=o===null?l:o.concat(l))));break;case 26:var p=ra;if(xs(a,s),gs(s),l&512&&(_t||o===null||va(o,o.return)),l&4){var x=o!==null?o.memoizedState:null;if(l=s.memoizedState,o===null)if(l===null)if(s.stateNode===null){e:{l=s.type,o=s.memoizedProps,p=p.ownerDocument||p;t:switch(l){case"title":x=p.getElementsByTagName("title")[0],(!x||x[So]||x[Kt]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=p.createElement(l),p.head.insertBefore(x,p.querySelector("head > title"))),Wt(x,l,o),x[Kt]=s,Vt(x),l=x;break e;case"link":var j=b0("link","href",p).get(l+(o.href||""));if(j){for(var T=0;T<j.length;T++)if(x=j[T],x.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&x.getAttribute("rel")===(o.rel==null?null:o.rel)&&x.getAttribute("title")===(o.title==null?null:o.title)&&x.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){j.splice(T,1);break t}}x=p.createElement(l),Wt(x,l,o),p.head.appendChild(x);break;case"meta":if(j=b0("meta","content",p).get(l+(o.content||""))){for(T=0;T<j.length;T++)if(x=j[T],x.getAttribute("content")===(o.content==null?null:""+o.content)&&x.getAttribute("name")===(o.name==null?null:o.name)&&x.getAttribute("property")===(o.property==null?null:o.property)&&x.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&x.getAttribute("charset")===(o.charSet==null?null:o.charSet)){j.splice(T,1);break t}}x=p.createElement(l),Wt(x,l,o),p.head.appendChild(x);break;default:throw Error(i(468,l))}x[Kt]=s,Vt(x),l=x}s.stateNode=l}else j0(p,s.type,s.stateNode);else s.stateNode=v0(p,l,s.memoizedProps);else x!==l?(x===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):x.count--,l===null?j0(p,s.type,s.stateNode):v0(p,l,s.memoizedProps)):l===null&&s.stateNode!==null&&Df(s,s.memoizedProps,o.memoizedProps)}break;case 27:xs(a,s),gs(s),l&512&&(_t||o===null||va(o,o.return)),o!==null&&l&4&&Df(s,s.memoizedProps,o.memoizedProps);break;case 5:if(xs(a,s),gs(s),l&512&&(_t||o===null||va(o,o.return)),s.flags&32){p=s.stateNode;try{mi(p,"")}catch(we){at(s,s.return,we)}}l&4&&s.stateNode!=null&&(p=s.memoizedProps,Df(s,p,o!==null?o.memoizedProps:p)),l&1024&&(kf=!0);break;case 6:if(xs(a,s),gs(s),l&4){if(s.stateNode===null)throw Error(i(162));l=s.memoizedProps,o=s.stateNode;try{o.nodeValue=l}catch(we){at(s,s.return,we)}}break;case 3:if(gd=null,p=ra,ra=hd(a.containerInfo),xs(a,s),ra=p,gs(s),l&4&&o!==null&&o.memoizedState.isDehydrated)try{qi(a.containerInfo)}catch(we){at(s,s.return,we)}kf&&(kf=!1,jb(s));break;case 4:l=ra,ra=hd(s.stateNode.containerInfo),xs(a,s),gs(s),ra=l;break;case 12:xs(a,s),gs(s);break;case 31:xs(a,s),gs(s),l&4&&(l=s.updateQueue,l!==null&&(s.updateQueue=null,td(s,l)));break;case 13:xs(a,s),gs(s),s.child.flags&8192&&s.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(ad=Te()),l&4&&(l=s.updateQueue,l!==null&&(s.updateQueue=null,td(s,l)));break;case 22:p=s.memoizedState!==null;var L=o!==null&&o.memoizedState!==null,Q=Qa,ee=_t;if(Qa=Q||p,_t=ee||L,xs(a,s),_t=ee,Qa=Q,gs(s),l&8192)e:for(a=s.stateNode,a._visibility=p?a._visibility&-2:a._visibility|1,p&&(o===null||L||Qa||_t||Cr(s)),o=null,a=s;;){if(a.tag===5||a.tag===26){if(o===null){L=o=a;try{if(x=L.stateNode,p)j=x.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{T=L.stateNode;var ne=L.memoizedProps.style,K=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;T.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(we){at(L,L.return,we)}}}else if(a.tag===6){if(o===null){L=a;try{L.stateNode.nodeValue=p?"":L.memoizedProps}catch(we){at(L,L.return,we)}}}else if(a.tag===18){if(o===null){L=a;try{var W=L.stateNode;p?d0(W,!0):d0(L.stateNode,!1)}catch(we){at(L,L.return,we)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===s)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}l&4&&(l=s.updateQueue,l!==null&&(o=l.retryQueue,o!==null&&(l.retryQueue=null,td(s,o))));break;case 19:xs(a,s),gs(s),l&4&&(l=s.updateQueue,l!==null&&(s.updateQueue=null,td(s,l)));break;case 30:break;case 21:break;default:xs(a,s),gs(s)}}function gs(s){var a=s.flags;if(a&2){try{for(var o,l=s.return;l!==null;){if(mb(l)){o=l;break}l=l.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var p=o.stateNode,x=Mf(s);ed(s,x,p);break;case 5:var j=o.stateNode;o.flags&32&&(mi(j,""),o.flags&=-33);var T=Mf(s);ed(s,T,j);break;case 3:case 4:var L=o.stateNode.containerInfo,Q=Mf(s);Rf(s,Q,L);break;default:throw Error(i(161))}}catch(ee){at(s,s.return,ee)}s.flags&=-3}a&4096&&(s.flags&=-4097)}function jb(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var a=s;jb(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),s=s.sibling}}function Ya(s,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)hb(s,a.alternate,a),a=a.sibling}function Cr(s){for(s=s.child;s!==null;){var a=s;switch(a.tag){case 0:case 11:case 14:case 15:Sn(4,a,a.return),Cr(a);break;case 1:va(a,a.return);var o=a.stateNode;
vendor: 19,996 bytes, line 48
48typeof o.componentWillUnmount=="function"&&db(a,a.return,o),Cr(a);break;case 27:ic(a.stateNode);case 26:case 5:va(a,a.return),Cr(a);break;case 22:a.memoizedState===null&&Cr(a);break;case 30:Cr(a);break;default:Cr(a)}s=s.sibling}}function $a(s,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var l=a.alternate,p=s,x=a,j=x.flags;switch(x.tag){case 0:case 11:case 15:$a(p,x,o),Xo(4,x);break;case 1:if($a(p,x,o),l=x,p=l.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(Q){at(l,l.return,Q)}if(l=x,p=l.updateQueue,p!==null){var T=l.stateNode;try{var L=p.shared.hiddenCallbacks;if(L!==null)for(p.shared.hiddenCallbacks=null,p=0;p<L.length;p++)Zy(L[p],T)}catch(Q){at(l,l.return,Q)}}o&&j&64&&lb(x),Wo(x,x.return);break;case 27:fb(x);case 26:case 5:$a(p,x,o),o&&l===null&&j&4&&ub(x),Wo(x,x.return);break;case 12:$a(p,x,o);break;case 31:$a(p,x,o),o&&j&4&&yb(p,x);break;case 13:$a(p,x,o),o&&j&4&&vb(p,x);break;case 22:x.memoizedState===null&&$a(p,x,o),Wo(x,x.return);break;case 30:break;default:$a(p,x,o)}a=a.sibling}}function Pf(s,a){var o=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==o&&(s!=null&&s.refCount++,o!=null&&Uo(o))}function _f(s,a){s=null,a.alternate!==null&&(s=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==s&&(a.refCount++,s!=null&&Uo(s))}function ia(s,a,o,l){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)wb(s,a,o,l),a=a.sibling}function wb(s,a,o,l){var p=a.flags;switch(a.tag){case 0:case 11:case 15:ia(s,a,o,l),p&2048&&Xo(9,a);break;case 1:ia(s,a,o,l);break;case 3:ia(s,a,o,l),p&2048&&(s=null,a.alternate!==null&&(s=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==s&&(a.refCount++,s!=null&&Uo(s)));break;case 12:if(p&2048){ia(s,a,o,l),s=a.stateNode;try{var x=a.memoizedProps,j=x.id,T=x.onPostCommit;typeof T=="function"&&T(j,a.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(L){at(a,a.return,L)}}else ia(s,a,o,l);break;case 31:ia(s,a,o,l);break;case 13:ia(s,a,o,l);break;case 23:break;case 22:x=a.stateNode,j=a.alternate,a.memoizedState!==null?x._visibility&2?ia(s,a,o,l):Zo(s,a):x._visibility&2?ia(s,a,o,l):(x._visibility|=2,Ri(s,a,o,l,(a.subtreeFlags&10256)!==0||!1)),p&2048&&Pf(j,a);break;case 24:ia(s,a,o,l),p&2048&&_f(a.alternate,a);break;default:ia(s,a,o,l)}}function Ri(s,a,o,l,p){for(p=p&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var x=s,j=a,T=o,L=l,Q=j.flags;switch(j.tag){case 0:case 11:case 15:Ri(x,j,T,L,p),Xo(8,j);break;case 23:break;case 22:var ee=j.stateNode;j.memoizedState!==null?ee._visibility&2?Ri(x,j,T,L,p):Zo(x,j):(ee._visibility|=2,Ri(x,j,T,L,p)),p&&Q&2048&&Pf(j.alternate,j);break;case 24:Ri(x,j,T,L,p),p&&Q&2048&&_f(j.alternate,j);break;default:Ri(x,j,T,L,p)}a=a.sibling}}function Zo(s,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=s,l=a,p=l.flags;switch(l.tag){case 22:Zo(o,l),p&2048&&Pf(l.alternate,l);break;case 24:Zo(o,l),p&2048&&_f(l.alternate,l);break;default:Zo(o,l)}a=a.sibling}}var Jo=8192;function ki(s,a,o){if(s.subtreeFlags&Jo)for(s=s.child;s!==null;)Nb(s,a,o),s=s.sibling}function Nb(s,a,o){switch(s.tag){case 26:ki(s,a,o),s.flags&Jo&&s.memoizedState!==null&&a3(o,ra,s.memoizedState,s.memoizedProps);break;case 5:ki(s,a,o);break;case 3:case 4:var l=ra;ra=hd(s.stateNode.containerInfo),ki(s,a,o),ra=l;break;case 22:s.memoizedState===null&&(l=s.alternate,l!==null&&l.memoizedState!==null?(l=Jo,Jo=16777216,ki(s,a,o),Jo=l):ki(s,a,o));break;default:ki(s,a,o)}}function Sb(s){var a=s.alternate;if(a!==null&&(s=a.child,s!==null)){a.child=null;do a=s.sibling,s.sibling=null,s=a;while(s!==null)}}function ec(s){var a=s.deletions;if((s.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var l=a[o];qt=l,Ab(l,s)}Sb(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Cb(s),s=s.sibling}function Cb(s){switch(s.tag){case 0:case 11:case 15:ec(s),s.flags&2048&&Sn(9,s,s.return);break;case 3:ec(s);break;case 12:ec(s);break;case 22:var a=s.stateNode;s.memoizedState!==null&&a._visibility&2&&(s.return===null||s.return.tag!==13)?(a._visibility&=-3,sd(s)):ec(s);break;default:ec(s)}}function sd(s){var a=s.deletions;if((s.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var l=a[o];qt=l,Ab(l,s)}Sb(s)}for(s=s.child;s!==null;){switch(a=s,a.tag){case 0:case 11:case 15:Sn(8,a,a.return),sd(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,sd(a));break;default:sd(a)}s=s.sibling}}function Ab(s,a){for(;qt!==null;){var o=qt;switch(o.tag){case 0:case 11:case 15:Sn(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var l=o.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Uo(o.memoizedState.cache)}if(l=o.child,l!==null)l.return=o,qt=l;else e:for(o=s;qt!==null;){l=qt;var p=l.sibling,x=l.return;if(xb(l),l===o){qt=null;break e}if(p!==null){p.return=x,qt=p;break e}qt=x}}}var yT={getCacheForType:function(s){var a=$t(Rt),o=a.data.get(s);return o===void 0&&(o=s(),a.data.set(s,o)),o},cacheSignal:function(){return $t(Rt).controller.signal}},vT=typeof WeakMap=="function"?WeakMap:Map,tt=0,lt=null,Ge=null,Ke=0,st=0,Os=null,Cn=!1,Pi=!1,Lf=!1,Xa=0,Nt=0,An=0,Ar=0,Uf=0,Es=0,_i=0,tc=null,ys=null,Bf=!1,ad=0,Tb=0,nd=1/0,rd=null,Tn=null,Ut=0,On=null,Li=null,Wa=0,zf=0,Hf=null,Ob=null,sc=0,If=null;function Ds(){return(tt&2)!==0&&Ke!==0?Ke&-Ke:P.T!==null?Kf():im()}function Eb(){if(Es===0)if((Ke&536870912)===0||Xe){var s=ni;ni<<=1,(ni&3932160)===0&&(ni=262144),Es=s}else Es=536870912;return s=As.current,s!==null&&(s.flags|=32),Es}function vs(s,a,o){(s===lt&&(st===2||st===9)||s.cancelPendingCommit!==null)&&(Ui(s,0),En(s,Ke,Es,!1)),bt(s,o),((tt&2)===0||s!==lt)&&(s===lt&&((tt&2)===0&&(Ar|=o),Nt===4&&En(s,Ke,Es,!1)),ba(s))}function Db(s,a,o){if((tt&6)!==0)throw Error(i(327));var l=!o&&(a&127)===0&&(a&s.expiredLanes)===0||xt(s,a),p=l?wT(s,a):qf(s,a,!0),x=l;do{if(p===0){Pi&&!l&&En(s,a,0,!1);break}else{if(o=s.current.alternate,x&&!bT(o)){p=qf(s,a,!1),x=!1;continue}if(p===2){if(x=a,s.errorRecoveryDisabledLanes&x)var j=0;else j=s.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){a=j;e:{var T=s;p=tc;var L=T.current.memoizedState.isDehydrated;if(L&&(Ui(T,j).flags|=256),j=qf(T,j,!1),j!==2){if(Lf&&!L){T.errorRecoveryDisabledLanes|=x,Ar|=x,p=4;break e}x=ys,ys=p,x!==null&&(ys===null?ys=x:ys.push.apply(ys,x))}p=j}if(x=!1,p!==2)continue}}if(p===1){Ui(s,0),En(s,a,0,!0);break}e:{switch(l=s,x=p,x){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:En(l,a,Es,!Cn);break e;case 2:ys=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(p=ad+300-Te(),10<p)){if(En(l,a,Es,!Cn),Le(l,0,!0)!==0)break e;Wa=a,l.timeoutHandle=o0(Mb.bind(null,l,o,ys,rd,Bf,a,Es,Ar,_i,Cn,x,"Throttled",-0,0),p);break e}Mb(l,o,ys,rd,Bf,a,Es,Ar,_i,Cn,x,null,-0,0)}}break}while(!0);ba(s)}function Mb(s,a,o,l,p,x,j,T,L,Q,ee,ne,K,W){if(s.timeoutHandle=-1,ne=a.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:La},Nb(a,x,ne);var we=(x&62914560)===x?ad-Te():(x&4194048)===x?Tb-Te():0;if(we=n3(ne,we),we!==null){Wa=x,s.cancelPendingCommit=we(zb.bind(null,s,a,x,o,l,p,j,T,L,ee,ne,null,K,W)),En(s,x,j,!Q);return}}zb(s,a,x,o,l,p,j,T,L)}function bT(s){for(var a=s;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var l=0;l<o.length;l++){var p=o[l],x=p.getSnapshot;p=p.value;try{if(!Ss(x(),p))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===s)break;for(;a.sibling===null;){if(a.return===null||a.return===s)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function En(s,a,o,l){a&=~Uf,a&=~Ar,s.suspendedLanes|=a,s.pingedLanes&=~a,l&&(s.warmLanes|=a),l=s.expirationTimes;for(var p=a;0<p;){var x=31-Jt(p),j=1<<x;l[x]=-1,p&=~j}o!==0&&lr(s,o,a)}function id(){return(tt&6)===0?(ac(0),!1):!0}function Vf(){if(Ge!==null){if(st===0)var s=Ge.return;else s=Ge,Ha=gr=null,af(s),Ti=null,zo=0,s=Ge;for(;s!==null;)cb(s.alternate,s),s=s.return;Ge=null}}function Ui(s,a){var o=s.timeoutHandle;o!==-1&&(s.timeoutHandle=-1,HT(o)),o=s.cancelPendingCommit,o!==null&&(s.cancelPendingCommit=null,o()),Wa=0,Vf(),lt=s,Ge=o=Ba(s.current,null),Ke=a,st=0,Os=null,Cn=!1,Pi=xt(s,a),Lf=!1,_i=Es=Uf=Ar=An=Nt=0,ys=tc=null,Bf=!1,(a&8)!==0&&(a|=a&32);var l=s.entangledLanes;if(l!==0)for(s=s.entanglements,l&=a;0<l;){var p=31-Jt(l),x=1<<p;a|=s[p],l&=~x}return Xa=a,Tl(),o}function Rb(s,a){ze=null,P.H=Ko,a===Ai||a===_l?(a=Yy(),st=3):a===Gm?(a=Yy(),st=4):st=a===bf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Os=a,Ge===null&&(Nt=1,$l(s,Hs(a,s.current)))}function kb(){var s=As.current;return s===null?!0:(Ke&4194048)===Ke?Fs===null:(Ke&62914560)===Ke||(Ke&536870912)!==0?s===Fs:!1}function Pb(){var s=P.H;return P.H=Ko,s===null?Ko:s}function _b(){var s=P.A;return P.A=yT,s}function od(){Nt=4,Cn||(Ke&4194048)!==Ke&&As.current!==null||(Pi=!0),(An&134217727)===0&&(Ar&134217727)===0||lt===null||En(lt,Ke,Es,!1)}function qf(s,a,o){var l=tt;tt|=2;var p=Pb(),x=_b();(lt!==s||Ke!==a)&&(rd=null,Ui(s,a)),a=!1;var j=Nt;e:do try{if(st!==0&&Ge!==null){var T=Ge,L=Os;switch(st){case 8:Vf(),j=6;break e;case 3:case 2:case 9:case 6:As.current===null&&(a=!0);var Q=st;if(st=0,Os=null,Bi(s,T,L,Q),o&&Pi){j=0;break e}break;default:Q=st,st=0,Os=null,Bi(s,T,L,Q)}}jT(),j=Nt;break}catch(ee){Rb(s,ee)}while(!0);return a&&s.shellSuspendCounter++,Ha=gr=null,tt=l,P.H=p,P.A=x,Ge===null&&(lt=null,Ke=0,Tl()),j}function jT(){for(;Ge!==null;)Lb(Ge)}function wT(s,a){var o=tt;tt|=2;var l=Pb(),p=_b();lt!==s||Ke!==a?(rd=null,nd=Te()+500,Ui(s,a)):Pi=xt(s,a);e:do try{if(st!==0&&Ge!==null){a=Ge;var x=Os;t:switch(st){case 1:st=0,Os=null,Bi(s,a,x,1);break;case 2:case 9:if(Qy(x)){st=0,Os=null,Ub(a);break}a=function(){st!==2&&st!==9||lt!==s||(st=7),ba(s)},x.then(a,a);break e;case 3:st=7;break e;case 4:st=5;break e;case 7:Qy(x)?(st=0,Os=null,Ub(a)):(st=0,Os=null,Bi(s,a,x,7));break;case 5:var j=null;switch(Ge.tag){case 26:j=Ge.memoizedState;case 5:case 27:var T=Ge;if(j?w0(j):T.stateNode.complete){st=0,Os=null;var L=T.sibling;if(L!==null)Ge=L;else{var Q=T.return;Q!==null?(Ge=Q,cd(Q)):Ge=null}break t}}st=0,Os=null,Bi(s,a,x,5);break;case 6:st=0,Os=null,Bi(s,a,x,6);break;case 8:Vf(),Nt=6;break e;default:throw Error(i(462))}}NT();break}catch(ee){Rb(s,ee)}while(!0);return Ha=gr=null,P.H=l,P.A=p,tt=o,Ge!==null?0:(lt=null,Ke=0,Tl(),Nt)}function NT(){for(;Ge!==null&&!U();)Lb(Ge)}function Lb(s){var a=ib(s.alternate,s,Xa);s.memoizedProps=s.pendingProps,a===null?cd(s):Ge=a}function Ub(s){var a=s,o=a.alternate;switch(a.tag){case 15:case 0:a=eb(o,a,a.pendingProps,a.type,void 0,Ke);break;case 11:a=eb(o,a,a.pendingProps,a.type.render,a.ref,Ke);break;case 5:af(a);default:cb(o,a),a=Ge=_y(a,Xa),a=ib(o,a,Xa)}s.memoizedProps=s.pendingProps,a===null?cd(s):Ge=a}function Bi(s,a,o,l){Ha=gr=null,af(a),Ti=null,zo=0;var p=a.return;try{if(uT(s,p,a,o,Ke)){Nt=1,$l(s,Hs(o,s.current)),Ge=null;return}}catch(x){if(p!==null)throw Ge=p,x;Nt=1,$l(s,Hs(o,s.current)),Ge=null;return}a.flags&32768?(Xe||l===1?s=!0:Pi||(Ke&536870912)!==0?s=!1:(Cn=s=!0,(l===2||l===9||l===3||l===6)&&(l=As.current,l!==null&&l.tag===13&&(l.flags|=16384))),Bb(a,s)):cd(a)}function cd(s){var a=s;do{if((a.flags&32768)!==0){Bb(a,Cn);return}s=a.return;var o=pT(a.alternate,a,Xa);if(o!==null){Ge=o;return}if(a=a.sibling,a!==null){Ge=a;return}Ge=a=s}while(a!==null);Nt===0&&(Nt=5)}function Bb(s,a){do{var o=hT(s.alternate,s);if(o!==null){o.flags&=32767,Ge=o;return}if(o=s.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(s=s.sibling,s!==null)){Ge=s;return}Ge=s=o}while(s!==null);Nt=6,Ge=null}function zb(s,a,o,l,p,x,j,T,L){s.cancelPendingCommit=null;do ld();while(Ut!==0);if((tt&6)!==0)throw Error(i(327));if(a!==null){if(a===s.current)throw Error(i(177));if(x=a.lanes|a.childLanes,x|=Dm,ds(s,o,x,j,T,L),s===lt&&(Ge=lt=null,Ke=0),Li=a,On=s,Wa=o,zf=x,Hf=p,Ob=l,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,TT(dt,function(){return Fb(),null})):(s.callbackNode=null,s.callbackPriority=0),l=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||l){l=P.T,P.T=null,p=I.p,I.p=2,j=tt,tt|=4;try{xT(s,a,o)}finally{tt=j,I.p=p,P.T=l}}Ut=1,Hb(),Ib(),Vb()}}function Hb(){if(Ut===1){Ut=0;var s=On,a=Li,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=P.T,P.T=null;var l=I.p;I.p=2;var p=tt;tt|=4;try{bb(a,s);var x=tp,j=Ay(s.containerInfo),T=x.focusedElem,L=x.selectionRange;if(j!==T&&T&&T.ownerDocument&&Cy(T.ownerDocument.documentElement,T)){if(L!==null&&Cm(T)){var Q=L.start,ee=L.end;if(ee===void 0&&(ee=Q),"selectionStart"in T)T.selectionStart=Q,T.selectionEnd=Math.min(ee,T.value.length);else{var ne=T.ownerDocument||document,K=ne&&ne.defaultView||window;if(K.getSelection){var W=K.getSelection(),we=T.textContent.length,ke=Math.min(L.start,we),ot=L.end===void 0?ke:Math.min(L.end,we);!W.extend&&ke>ot&&(j=ot,ot=ke,ke=j);var q=Sy(T,ke),H=Sy(T,ot);if(q&&H&&(W.rangeCount!==1||W.anchorNode!==q.node||W.anchorOffset!==q.offset||W.focusNode!==H.node||W.focusOffset!==H.offset)){var G=ne.createRange();G.setStart(q.node,q.offset),W.removeAllRanges(),ke>ot?(W.addRange(G),W.extend(H.node,H.offset)):(G.setEnd(H.node,H.offset),W.addRange(G))}}}}for(ne=[],W=T;W=W.parentNode;)W.nodeType===1&&ne.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ne.length;T++){var ae=ne[T];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}jd=!!ep,tp=ep=null}finally{tt=p,I.p=l,P.T=o}}s.current=a,Ut=2}}function Ib(){if(Ut===2){Ut=0;var s=On,a=Li,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=P.T,P.T=null;var l=I.p;I.p=2;var p=tt;tt|=4;try{hb(s,a.alternate,a)}finally{tt=p,I.p=l,P.T=o}}Ut=3}}function Vb(){if(Ut===4||Ut===3){Ut=0,ye();var s=On,a=Li,o=Wa,l=Ob;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ut=5:(Ut=0,Li=On=null,qb(s,s.pendingLanes));var p=s.pendingLanes;if(p===0&&(Tn=null),aa(o),a=a.stateNode,rs&&typeof rs.onCommitFiberRoot=="function")try{rs.onCommitFiberRoot(or,a,void 0,(a.current.flags&128)===128)}catch{}if(l!==null){a=P.T,p=I.p,I.p=2,P.T=null;try{for(var x=s.onRecoverableError,j=0;j<l.length;j++){var T=l[j];x(T.value,{componentStack:T.stack})}}finally{P.T=a,I.p=p}}(Wa&3)!==0&&ld(),ba(s),p=s.pendingLanes,(o&261930)!==0&&(p&42)!==0?s===If?sc++:(sc=0,If=s):sc=0,ac(0)}}function qb(s,a){(s.pooledCacheLanes&=a)===0&&(a=s.pooledCache,a!=null&&(s.pooledCache=null,Uo(a)))}function ld(){return Hb(),Ib(),Vb(),Fb()}function Fb(){if(Ut!==5)return!1;var s=On,a=zf;zf=0;var o=aa(Wa),l=P.T,p=I.p;try{I.p=32>o?32:o,P.T=null,o=Hf,Hf=null;var x=On,j=Wa;if(Ut=0,Li=On=null,Wa=0,(tt&6)!==0)throw Error(i(331));var T=tt;if(tt|=4,Cb(x.current),wb(x,x.current,j,o),tt=T,ac(0,!1),rs&&typeof rs.onPostCommitFiberRoot=="function")try{rs.onPostCommitFiberRoot(or,x)}catch{}return!0}finally{I.p=p,P.T=l,qb(s,a)}}function Gb(s,a,o){a=Hs(o,a),a=vf(s.stateNode,a,2),s=jn(s,a,2),s!==null&&(bt(s,2),ba(s))}function at(s,a,o){if(s.tag===3)Gb(s,s,o);else for(;a!==null;){if(a.tag===3){Gb(a,s,o);break}else if(a.tag===1){var l=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Tn===null||!Tn.has(l))){s=Hs(o,s),o=Qv(2),l=jn(a,o,2),l!==null&&(Kv(o,l,a,s),bt(l,2),ba(l));break}}a=a.return}}function Ff(s,a,o){var l=s.pingCache;if(l===null){l=s.pingCache=new vT;var p=new Set;l.set(a,p)}else p=l.get(a),p===void 0&&(p=new Set,l.set(a,p));p.has(o)||(Lf=!0,p.add(o),s=ST.bind(null,s,a,o),a.then(s,s))}function ST(s,a,o){var l=s.pingCache;l!==null&&l.delete(a),s.pingedLanes|=s.suspendedLanes&o,s.warmLanes&=~o,lt===s&&(Ke&o)===o&&(Nt===4||Nt===3&&(Ke&62914560)===Ke&&300>Te()-ad?(tt&2)===0&&Ui(s,0):Uf|=o,_i===Ke&&(_i=0)),ba(s)}function Qb(s,a){a===0&&(a=es()),s=pr(s,a),s!==null&&(bt(s,a),ba(s))}function CT(s){var a=s.memoizedState,o=0;a!==null&&(o=a.retryLane),Qb(s,o)}function AT(s,a){var o=0;switch(s.tag){case 31:case 13:var l=s.stateNode,p=s.memoizedState;p!==null&&(o=p.retryLane);break;case 19:l=s.stateNode;break;case 22:l=s.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(a),Qb(s,o)}function TT(s,a){return pa(s,a)}var dd=null,zi=null,Gf=!1,ud=!1,Qf=!1,Dn=0;function ba(s){s!==zi&&s.next===null&&(zi===null?dd=zi=s:zi=zi.next=s),ud=!0,Gf||(Gf=!0,ET())}function ac(s,a){if(!Qf&&ud){Qf=!0;do for(var o=!1,l=dd;l!==null;){if(s!==0){var p=l.pendingLanes;if(p===0)var x=0;else{var j=l.suspendedLanes,T=l.pingedLanes;x=(1<<31-Jt(42|s)+1)-1,x&=p&~(j&~T),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(o=!0,Xb(l,x))}else x=Ke,x=Le(l,l===lt?x:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(x&3)===0||xt(l,x)||(o=!0,Xb(l,x));l=l.next}while(o);Qf=!1}}function OT(){Kb()}function Kb(){ud=Gf=!1;var s=0;Dn!==0&&zT()&&(s=Dn);for(var a=Te(),o=null,l=dd;l!==null;){var p=l.next,x=Yb(l,a);x===0?(l.next=null,o===null?dd=p:o.next=p,p===null&&(zi=o)):(o=l,(s!==0||(x&3)!==0)&&(ud=!0)),l=p}Ut!==0&&Ut!==5||ac(s),Dn!==0&&(Dn=0)}function Yb(s,a){for(var o=s.suspendedLanes,l=s.pingedLanes,p=s.expirationTimes,x=s.pendingLanes&-62914561;0<x;){var j=31-Jt(x),T=1<<j,L=p[j];L===-1?((T&o)===0||(T&l)!==0)&&(p[j]=It(T,a)):L<=a&&(s.expiredLanes|=T),x&=~T}if(a=lt,o=Ke,o=Le(s,s===a?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),l=s.callbackNode,o===0||s===a&&(st===2||st===9)||s.cancelPendingCommit!==null)return l!==null&&l!==null&&ir(l),s.callbackNode=null,s.callbackPriority=0;if((o&3)===0||xt(s,o)){if(a=o&-o,a===s.callbackPriority)return a;switch(l!==null&&ir(l),aa(o)){case 2:case 8:o=We;break;case 32:o=dt;break;case 268435456:o=ta;break;default:o=dt}return l=$b.bind(null,s),o=pa(o,l),s.callbackPriority=a,s.callbackNode=o,a}return l!==null&&l!==null&&ir(l),s.callbackPriority=2,s.callbackNode=null,2}function $b(s,a){if(Ut!==0&&Ut!==5)return s.callbackNode=null,s.callbackPriority=0,null;var o=s.callbackNode;if(ld()&&s.callbackNode!==o)return null;var l=Ke;return l=Le(s,s===lt?l:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),l===0?null:(Db(s,l,a),Yb(s,Te()),s.callbackNode!=null&&s.callbackNode===o?$b.bind(null,s):null)}function Xb(s,a){if(ld())return null;Db(s,a,!0)}function ET(){IT(function(){(tt&6)!==0?pa(Re,OT):Kb()})}function Kf(){if(Dn===0){var s=Si;s===0&&(s=ai,ai<<=1,(ai&261888)===0&&(ai=256)),Dn=s}return Dn}function Wb(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:vl(""+s)}function Zb(s,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,s.id&&o.setAttribute("form",s.id),a.parentNode.insertBefore(o,a),s=new FormData(s),o.parentNode.removeChild(o),s}function DT(s,a,o,l,p){if(a==="submit"&&o&&o.stateNode===p){var x=Wb((p[fs]||null).action),j=l.submitter;j&&(a=(a=j[fs]||null)?Wb(a.formAction):j.getAttribute("formAction"),a!==null&&(x=a,j=null));var T=new Nl("action","action",null,l,p);s.push({event:T,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Dn!==0){var L=j?Zb(p,j):new FormData(p);ff(o,{pending:!0,data:L,method:p.method,action:x},null,L)}}else typeof x=="function"&&(T.preventDefault(),L=j?Zb(p,j):new FormData(p),ff(o,{pending:!0,data:L,method:p.method,action:x},x,L))},currentTarget:p}]})}}for(var Yf=0;Yf<Em.length;Yf++){var $f=Em[Yf],MT=$f.toLowerCase(),RT=$f[0].toUpperCase()+$f.slice(1);na(MT,"on"+RT)}na(Ey,"onAnimationEnd"),na(Dy,"onAnimationIteration"),na(My,"onAnimationStart"),na("dblclick","onDoubleClick"),na("focusin","onFocus"),na("focusout","onBlur"),na(Y4,"onTransitionRun"),na($4,"onTransitionStart"),na(X4,"onTransitionCancel"),na(Ry,"onTransitionEnd"),di("onMouseEnter",["mouseout","mouseover"]),di("onMouseLeave",["mouseout","mouseover"]),di("onPointerEnter",["pointerout","pointerover"]),di("onPointerLeave",["pointerout","pointerover"]),dr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),dr("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),dr("onBeforeInput",["compositionend","keypress","textInput","paste"]),dr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),dr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),dr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nc="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(" "),kT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(nc));function Jb(s,a){a=(a&4)!==0;for(var o=0;o<s.length;o++){var l=s[o],p=l.event;l=l.listeners;e:{var x=void 0;if(a)for(var j=l.length-1;0<=j;j--){var T=l[j],L=T.instance,Q=T.currentTarget;if(T=T.listener,L!==x&&p.isPropagationStopped())break e;x=T,p.currentTarget=Q;try{x(p)}catch(ee){Al(ee)}p.currentTarget=null,x=L}else for(j=0;j<l.length;j++){if(T=l[j],L=T.instance,Q=T.currentTarget,T=T.listener,L!==x&&p.isPropagationStopped())break e;x=T,p.currentTarget=Q;try{x(p)}catch(ee){Al(ee)}p.currentTarget=null,x=L}}}}function Qe(s,a){var o=a[om];o===void 0&&(o=a[om]=new Set);var l=s+"__bubble";o.has(l)||(e0(a,s,2,!1),o.add(l))}function Xf(s,a,o){var l=0;a&&(l|=4),e0(o,s,l,a)}var md="_reactListening"+Math.random().toString(36).slice(2);function Wf(s){if(!s[md]){s[md]=!0,Kg.forEach(function(o){o!=="selectionchange"&&(kT.has(o)||Xf(o,!1,s),Xf(o,!0,s))});var a=s.nodeType===9?s:s.ownerDocument;a===null||a[md]||(a[md]=!0,Xf("selectionchange",!1,a))}}function e0(s,a,o,l){switch(E0(a)){case 2:var p=o3;break;case 8:p=c3;break;default:p=mp}o=p.bind(null,a,o,s),p=void 0,!xm||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(p=!0),l?p!==void 0?s.addEventListener(a,o,{capture:!0,passive:p}):s.addEventListener(a,o,!0):p!==void 0?s.addEventListener(a,o,{passive:p}):s.addEventListener(a,o,!1)}function Zf(s,a,o,l,p){var x=l;if((a&1)===0&&(a&2)===0&&l!==null)e:for(;;){if(l===null)return;var j=l.tag;if(j===3||j===4){var T=l.stateNode.containerInfo;if(T===p)break;if(j===4)for(j=l.return;j!==null;){var L=j.tag;if((L===3||L===4)&&j.stateNode.containerInfo===p)return;j=j.return}for(;T!==null;){if(j=oi(T),j===null)return;if(L=j.tag,L===5||L===6||L===26||L===27){l=x=j;continue e}T=T.parentNode}}l=l.return}ry(function(){var Q=x,ee=pm(o),ne=[];e:{var K=ky.get(s);if(K!==void 0){var W=Nl,we=s;switch(s){case"keypress":if(jl(o)===0)break e;case"keydown":case"keyup":W=A4;break;case"focusin":we="focus",W=bm;break;case"focusout":we="blur",W=bm;break;case"beforeblur":case"afterblur":W=bm;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=p4;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=E4;break;case Ey:case Dy:case My:W=g4;break;case Ry:W=M4;break;case"scroll":case"scrollend":W=m4;break;case"wheel":W=k4;break;case"copy":case"cut":case"paste":W=v4;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=dy;break;case"toggle":case"beforetoggle":W=_4}var ke=(a&4)!==0,ot=!ke&&(s==="scroll"||s==="scrollend"),q=ke?K!==null?K+"Capture":null:K;ke=[];for(var H=Q,G;H!==null;){var ae=H;if(G=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||G===null||q===null||(ae=Ao(H,q),ae!=null&&ke.push(rc(H,ae,G))),ot)break;H=H.return}0<ke.length&&(K=new W(K,we,null,o,ee),ne.push({event:K,listeners:ke}))}}if((a&7)===0){e:{if(K=s==="mouseover"||s==="pointerover",W=s==="mouseout"||s==="pointerout",K&&o!==fm&&(we=o.relatedTarget||o.fromElement)&&(oi(we)||we[ii]))break e;if((W||K)&&(K=ee.window===ee?ee:(K=ee.ownerDocument)?K.defaultView||K.parentWindow:window,W?(we=o.relatedTarget||o.toElement,W=Q,we=we?oi(we):null,we!==null&&(ot=d(we),ke=we.tag,we!==ot||ke!==5&&ke!==27&&ke!==6)&&(we=null)):(W=null,we=Q),W!==we)){if(ke=cy,ae="onMouseLeave",q="onMouseEnter",H="mouse",(s==="pointerout"||s==="pointerover")&&(ke=dy,ae="onPointerLeave",q="onPointerEnter",H="pointer"),ot=W==null?K:Co(W),G=we==null?K:Co(we),K=new ke(ae,H+"leave",W,o,ee),K.target=ot,K.relatedTarget=G,ae
vendor: 5,606 bytes, lines 48-49
48=null,oi(ee)===Q&&(ke=new ke(q,H+"enter",we,o,ee),ke.target=G,ke.relatedTarget=ot,ae=ke),ot=ae,W&&we)t:{for(ke=PT,q=W,H=we,G=0,ae=q;ae;ae=ke(ae))G++;ae=0;for(var De=H;De;De=ke(De))ae++;for(;0<G-ae;)q=ke(q),G--;for(;0<ae-G;)H=ke(H),ae--;for(;G--;){if(q===H||H!==null&&q===H.alternate){ke=q;break t}q=ke(q),H=ke(H)}ke=null}else ke=null;W!==null&&t0(ne,K,W,ke,!1),we!==null&&ot!==null&&t0(ne,ot,we,ke,!0)}}e:{if(K=Q?Co(Q):window,W=K.nodeName&&K.nodeName.toLowerCase(),W==="select"||W==="input"&&K.type==="file")var Ze=yy;else if(xy(K))if(vy)Ze=G4;else{Ze=q4;var Ee=V4}else W=K.nodeName,!W||W.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?Q&&mm(Q.elementType)&&(Ze=yy):Ze=F4;if(Ze&&(Ze=Ze(s,Q))){gy(ne,Ze,o,ee);break e}Ee&&Ee(s,K,Q),s==="focusout"&&Q&&K.type==="number"&&Q.memoizedProps.value!=null&&um(K,"number",K.value)}switch(Ee=Q?Co(Q):window,s){case"focusin":(xy(Ee)||Ee.contentEditable==="true")&&(xi=Ee,Am=Q,Po=null);break;case"focusout":Po=Am=xi=null;break;case"mousedown":Tm=!0;break;case"contextmenu":case"mouseup":case"dragend":Tm=!1,Ty(ne,o,ee);break;case"selectionchange":if(K4)break;case"keydown":case"keyup":Ty(ne,o,ee)}var He;if(wm)e:{switch(s){case"compositionstart":var Ye="onCompositionStart";break e;case"compositionend":Ye="onCompositionEnd";break e;case"compositionupdate":Ye="onCompositionUpdate";break e}Ye=void 0}else hi?py(s,o)&&(Ye="onCompositionEnd"):s==="keydown"&&o.keyCode===229&&(Ye="onCompositionStart");Ye&&(uy&&o.locale!=="ko"&&(hi||Ye!=="onCompositionStart"?Ye==="onCompositionEnd"&&hi&&(He=iy()):(pn=ee,gm="value"in pn?pn.value:pn.textContent,hi=!0)),Ee=fd(Q,Ye),0<Ee.length&&(Ye=new ly(Ye,s,null,o,ee),ne.push({event:Ye,listeners:Ee}),He?Ye.data=He:(He=hy(o),He!==null&&(Ye.data=He)))),(He=U4?B4(s,o):z4(s,o))&&(Ye=fd(Q,"onBeforeInput"),0<Ye.length&&(Ee=new ly("onBeforeInput","beforeinput",null,o,ee),ne.push({event:Ee,listeners:Ye}),Ee.data=He)),DT(ne,s,Q,o,ee)}Jb(ne,a)})}function rc(s,a,o){return{instance:s,listener:a,currentTarget:o}}function fd(s,a){for(var o=a+"Capture",l=[];s!==null;){var p=s,x=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||x===null||(p=Ao(s,o),p!=null&&l.unshift(rc(s,p,x)),p=Ao(s,a),p!=null&&l.push(rc(s,p,x))),s.tag===3)return l;s=s.return}return[]}function PT(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function t0(s,a,o,l,p){for(var x=a._reactName,j=[];o!==null&&o!==l;){var T=o,L=T.alternate,Q=T.stateNode;if(T=T.tag,L!==null&&L===l)break;T!==5&&T!==26&&T!==27||Q===null||(L=Q,p?(Q=Ao(o,x),Q!=null&&j.unshift(rc(o,Q,L))):p||(Q=Ao(o,x),Q!=null&&j.push(rc(o,Q,L)))),o=o.return}j.length!==0&&s.push({event:a,listeners:j})}var _T=/\r\n?/g,LT=/\u0000|\uFFFD/g;function s0(s){return(typeof s=="string"?s:""+s).replace(_T,` 49`).replace(LT,"")}function a0(s,a){return a=s0(a),s0(s)===a}function it(s,a,o,l,p,x){switch(o){case"children":typeof l=="string"?a==="body"||a==="textarea"&&l===""||mi(s,l):(typeof l=="number"||typeof l=="bigint")&&a!=="body"&&mi(s,""+l);break;case"className":gl(s,"class",l);break;case"tabIndex":gl(s,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":gl(s,o,l);break;case"style":ay(s,l,x);break;case"data":if(a!=="object"){gl(s,"data",l);break}case"src":case"href":if(l===""&&(a!=="a"||o!=="href")){s.removeAttribute(o);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){s.removeAttribute(o);break}l=vl(""+l),s.setAttribute(o,l);break;case"action":case"formAction":if(typeof l=="function"){s.setAttribute(o,"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 x=="function"&&(o==="formAction"?(a!=="input"&&it(s,a,"name",p.name,p,null),it(s,a,"formEncType",p.formEncType,p,null),it(s,a,"formMethod",p.formMethod,p,null),it(s,a,"formTarget",p.formTarget,p,null)):(it(s,a,"encType",p.encType,p,null),it(s,a,"method",p.method,p,null),it(s,a,"target",p.target,p,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){s.removeAttribute(o);break}l=vl(""+l),s.setAttribute(o,l);break;case"onClick":l!=null&&(s.onclick=La);break;case"onScroll":l!=null&&Qe("scroll",s);break;case"onScrollEnd":l!=null&&Qe("scrollend",s);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(o=l.__html,o!=null){if(p.children!=null)throw Error(i(60));s.innerHTML=o}}break;case"multiple":s.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":s.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){s.removeAttribute("xlink:href");break}o=vl(""+l),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?s.setAttribute(o,""+l):s.removeAttribute(o);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":l&&typeof l!="function"&&typeof l!="symbol"?s.setAttribute(o,""):s.removeAttribute(o);break;case"capture":case"download":l===!0?s.setAttribute(o,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?s.setAttribute(o,l):s.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?s.setAttribute(o,l):s.removeAttribute(o);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?s.removeAttribute(o):s.setAttribute(o,l);break;case"popover":Qe("beforetoggle",s),Qe("toggle",s),xl(s,"popover",l);break;case"xlinkActuate":_a(s,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":_a(s,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":_a(s,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":_a(s,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":_a(s,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":_a(s,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":_a(s,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":_a(s,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":_a(s,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":xl(s,"is",l);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=d4.get(o)||o,xl(s,o,l))}}function Jf(s,a,o,l,p,x){switch(o){case"style":ay(s,l,x);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(o=l.__html,o!=null){if(p.children!=null)throw Error(i(60));s.innerHTML=o}}break;case"children":typeof l=="string"?mi(s,l):(typeof l=="number"||typeof l=="bigint")&&mi(s,""+l);break;case"onScroll":l!=null&&Qe("scroll",s);break;case"onScrollEnd":l!=null&&Qe("scrollend",s);break;case"onClick":l!=null&&(s.onclick=La);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Yg.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),a=o.slice(2,p?o.length-7:void 0),x=s[fs]||null,x=x!=null?x[o]:null,typeof x=="function"&&s.removeEventListener(a,x,p),typeof l=="function")){typeof x!="function"&&x!==null&&(o in s?s[o]=null:s.hasAttribute(o)&&s.removeAttribute(o)),s.addEventListener(a,l,p);break e}o in s?s[o]=l:l===!0?s.setAttribute(o,""):xl(s,o,l)}}}function Wt(s,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qe("error",s),Qe("load",s);var l=!1,p=!1,x;for(x in o)if(o.hasOwnProperty(x)){var j=o[x];if(j!=null)switch(x){case"src":l=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:it(s,a,x,j,o,null)}}p&&it(s,a,"srcSet",o.srcSet,o,null),l&&it(s,a,"src",o.src,o,null);return;case"input":Qe("invalid",s);var T=x=j=p=null,L=null,Q=null;for(l in o)if(o.hasOwnProperty(l)){var ee=o[l];if(ee!=null)switch(l){case"name":p=ee;break;case"type":j=ee;break;case"checked":L=ee;break;case"defaultChecked":Q=ee;break;case"value":x=ee;break;case"defaultValue":T=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:it(s,a,l,ee,o,null)}}Jg(s,x,T,L,Q,j,p,!1);return;case"select":Qe("invalid",s),l=j=x=null;for(p in o)if(o.hasOwnProperty(p)&&(T=o[p],T!=null))switch(p){case"value":x=T;break;case"defaultValue":j=T;break;case"multiple":l=T;default:it(s,a,p,T,o,null)}a=x,o=j,s.multiple=!!l,a!=null?ui(s,!!l,a,!1):o!=null&&ui(s,!!l,o,!0);return;case"textarea":Qe("invalid",s),x=p=l=null;for(j in o)if(o.hasOwnProperty(j)&&(T=o[j],T!=null))switch(j){case"value":l=T;break;case"defaultValue":p=T;break;case"children":x=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(i(91));break;default:it(s,a,j,T,o,null)}ty(s,l,p,x);return;case"option":for(L in o)if(o.hasOwnProperty(L)&&(l=o[L],l!=null))switch(L){case"selected":s.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:it(s,a,L,l,o,null)}return;case"dialog":Qe("beforetoggle",s),Qe("toggle",s),Qe("cancel",s),Qe("close",s
vendor: 5,922 bytes, line 49
49);break;case"iframe":case"object":Qe("load",s);break;case"video":case"audio":for(l=0;l<nc.length;l++)Qe(nc[l],s);break;case"image":Qe("error",s),Qe("load",s);break;case"details":Qe("toggle",s);break;case"embed":case"source":case"link":Qe("error",s),Qe("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in o)if(o.hasOwnProperty(Q)&&(l=o[Q],l!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:it(s,a,Q,l,o,null)}return;default:if(mm(a)){for(ee in o)o.hasOwnProperty(ee)&&(l=o[ee],l!==void 0&&Jf(s,a,ee,l,o,void 0));return}}for(T in o)o.hasOwnProperty(T)&&(l=o[T],l!=null&&it(s,a,T,l,o,null))}function UT(s,a,o,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,x=null,j=null,T=null,L=null,Q=null,ee=null;for(W in o){var ne=o[W];if(o.hasOwnProperty(W)&&ne!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":L=ne;default:l.hasOwnProperty(W)||it(s,a,W,null,l,ne)}}for(var K in l){var W=l[K];if(ne=o[K],l.hasOwnProperty(K)&&(W!=null||ne!=null))switch(K){case"type":x=W;break;case"name":p=W;break;case"checked":Q=W;break;case"defaultChecked":ee=W;break;case"value":j=W;break;case"defaultValue":T=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(i(137,a));break;default:W!==ne&&it(s,a,K,W,l,ne)}}dm(s,j,T,L,Q,ee,x,p);return;case"select":W=j=T=K=null;for(x in o)if(L=o[x],o.hasOwnProperty(x)&&L!=null)switch(x){case"value":break;case"multiple":W=L;default:l.hasOwnProperty(x)||it(s,a,x,null,l,L)}for(p in l)if(x=l[p],L=o[p],l.hasOwnProperty(p)&&(x!=null||L!=null))switch(p){case"value":K=x;break;case"defaultValue":T=x;break;case"multiple":j=x;default:x!==L&&it(s,a,p,x,l,L)}a=T,o=j,l=W,K!=null?ui(s,!!o,K,!1):!!l!=!!o&&(a!=null?ui(s,!!o,a,!0):ui(s,!!o,o?[]:"",!1));return;case"textarea":W=K=null;for(T in o)if(p=o[T],o.hasOwnProperty(T)&&p!=null&&!l.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:it(s,a,T,null,l,p)}for(j in l)if(p=l[j],x=o[j],l.hasOwnProperty(j)&&(p!=null||x!=null))switch(j){case"value":K=p;break;case"defaultValue":W=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(i(91));break;default:p!==x&&it(s,a,j,p,l,x)}ey(s,K,W);return;case"option":for(var we in o)if(K=o[we],o.hasOwnProperty(we)&&K!=null&&!l.hasOwnProperty(we))switch(we){case"selected":s.selected=!1;break;default:it(s,a,we,null,l,K)}for(L in l)if(K=l[L],W=o[L],l.hasOwnProperty(L)&&K!==W&&(K!=null||W!=null))switch(L){case"selected":s.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:it(s,a,L,K,l,W)}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 ke in o)K=o[ke],o.hasOwnProperty(ke)&&K!=null&&!l.hasOwnProperty(ke)&&it(s,a,ke,null,l,K);for(Q in l)if(K=l[Q],W=o[Q],l.hasOwnProperty(Q)&&K!==W&&(K!=null||W!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,a));break;default:it(s,a,Q,K,l,W)}return;default:if(mm(a)){for(var ot in o)K=o[ot],o.hasOwnProperty(ot)&&K!==void 0&&!l.hasOwnProperty(ot)&&Jf(s,a,ot,void 0,l,K);for(ee in l)K=l[ee],W=o[ee],!l.hasOwnProperty(ee)||K===W||K===void 0&&W===void 0||Jf(s,a,ee,K,l,W);return}}for(var q in o)K=o[q],o.hasOwnProperty(q)&&K!=null&&!l.hasOwnProperty(q)&&it(s,a,q,null,l,K);for(ne in l)K=l[ne],W=o[ne],!l.hasOwnProperty(ne)||K===W||K==null&&W==null||it(s,a,ne,K,l,W)}function n0(s){switch(s){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function BT(){if(typeof performance.getEntriesByType=="function"){for(var s=0,a=0,o=performance.getEntriesByType("resource"),l=0;l<o.length;l++){var p=o[l],x=p.transferSize,j=p.initiatorType,T=p.duration;if(x&&T&&n0(j)){for(j=0,T=p.responseEnd,l+=1;l<o.length;l++){var L=o[l],Q=L.startTime;if(Q>T)break;var ee=L.transferSize,ne=L.initiatorType;ee&&n0(ne)&&(L=L.responseEnd,j+=ee*(L<T?1:(T-Q)/(L-Q)))}if(--l,a+=8*(x+j)/(p.duration/1e3),s++,10<s)break}}if(0<s)return a/s/1e6}return navigator.connection&&(s=navigator.connection.downlink,typeof s=="number")?s:5}var ep=null,tp=null;function pd(s){return s.nodeType===9?s:s.ownerDocument}function r0(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function i0(s,a){if(s===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&a==="foreignObject"?0:s}function sp(s,a){return s==="textarea"||s==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var ap=null;function zT(){var s=window.event;return s&&s.type==="popstate"?s===ap?!1:(ap=s,!0):(ap=null,!1)}var o0=typeof setTimeout=="function"?setTimeout:void 0,HT=typeof clearTimeout=="function"?clearTimeout:void 0,c0=typeof Promise=="function"?Promise:void 0,IT=typeof queueMicrotask=="function"?queueMicrotask:typeof c0<"u"?function(s){return c0.resolve(null).then(s).catch(VT)}:o0;function VT(s){setTimeout(function(){throw s})}function Mn(s){return s==="head"}function l0(s,a){var o=a,l=0;do{var p=o.nextSibling;if(s.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(l===0){s.removeChild(p),qi(a);return}l--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")l++;else if(o==="html")ic(s.ownerDocument.documentElement);else if(o==="head"){o=s.ownerDocument.head,ic(o);for(var x=o.firstChild;x;){var j=x.nextSibling,T=x.nodeName;x[So]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&x.rel.toLowerCase()==="stylesheet"||o.removeChild(x),x=j}}else o==="body"&&ic(s.ownerDocument.body);o=p}while(o);qi(a)}function d0(s,a){var o=s;
vendor: 11,543 bytes, line 49
49s=0;do{var l=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),l&&l.nodeType===8)if(o=l.data,o==="/$"){if(s===0)break;s--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||s++;o=l}while(o)}function np(s){var a=s.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":np(o),cm(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}s.removeChild(o)}}function qT(s,a,o,l){for(;s.nodeType===1;){var p=o;if(s.nodeName.toLowerCase()!==a.toLowerCase()){if(!l&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(l){if(!s[So])switch(a){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(x=s.getAttribute("rel"),x==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(x!==p.rel||s.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||s.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||s.getAttribute("title")!==(p.title==null?null:p.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(x=s.getAttribute("src"),(x!==(p.src==null?null:p.src)||s.getAttribute("type")!==(p.type==null?null:p.type)||s.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&x&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(a==="input"&&s.type==="hidden"){var x=p.name==null?null:""+p.name;if(p.type==="hidden"&&s.getAttribute("name")===x)return s}else return s;if(s=Gs(s.nextSibling),s===null)break}return null}function FT(s,a,o){if(a==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!o||(s=Gs(s.nextSibling),s===null))return null;return s}function u0(s,a){for(;s.nodeType!==8;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!a||(s=Gs(s.nextSibling),s===null))return null;return s}function rp(s){return s.data==="$?"||s.data==="$~"}function ip(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState!=="loading"}function GT(s,a){var o=s.ownerDocument;if(s.data==="$~")s._reactRetry=a;else if(s.data!=="$?"||o.readyState!=="loading")a();else{var l=function(){a(),o.removeEventListener("DOMContentLoaded",l)};o.addEventListener("DOMContentLoaded",l),s._reactRetry=l}}function Gs(s){for(;s!=null;s=s.nextSibling){var a=s.nodeType;if(a===1||a===3)break;if(a===8){if(a=s.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return s}var op=null;function m0(s){s=s.nextSibling;for(var a=0;s;){if(s.nodeType===8){var o=s.data;if(o==="/$"||o==="/&"){if(a===0)return Gs(s.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}s=s.nextSibling}return null}function f0(s){s=s.previousSibling;for(var a=0;s;){if(s.nodeType===8){var o=s.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return s;a--}else o!=="/$"&&o!=="/&"||a++}s=s.previousSibling}return null}function p0(s,a,o){switch(a=pd(o),s){case"html":if(s=a.documentElement,!s)throw Error(i(452));return s;case"head":if(s=a.head,!s)throw Error(i(453));return s;case"body":if(s=a.body,!s)throw Error(i(454));return s;default:throw Error(i(451))}}function ic(s){for(var a=s.attributes;a.length;)s.removeAttributeNode(a[0]);cm(s)}var Qs=new Map,h0=new Set;function hd(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Za=I.d;I.d={f:QT,r:KT,D:YT,C:$T,L:XT,m:WT,X:JT,S:ZT,M:e3};function QT(){var s=Za.f(),a=id();return s||a}function KT(s){var a=ci(s);a!==null&&a.tag===5&&a.type==="form"?Rv(a):Za.r(s)}var Hi=typeof document>"u"?null:document;function x0(s,a,o){var l=Hi;if(l&&typeof a=="string"&&a){var p=Bs(a);p='link[rel="'+s+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),h0.has(p)||(h0.add(p),s={rel:s,crossOrigin:o,href:a},l.querySelector(p)===null&&(a=l.createElement("link"),Wt(a,"link",s),Vt(a),l.head.appendChild(a)))}}function YT(s){Za.D(s),x0("dns-prefetch",s,null)}function $T(s,a){Za.C(s,a),x0("preconnect",s,a)}function XT(s,a,o){Za.L(s,a,o);var l=Hi;if(l&&s&&a){var p='link[rel="preload"][as="'+Bs(a)+'"]';a==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+Bs(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+Bs(o.imageSizes)+'"]')):p+='[href="'+Bs(s)+'"]';var x=p;switch(a){case"style":x=Ii(s);break;case"script":x=Vi(s)}Qs.has(x)||(s=g({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:s,as:a},o),Qs.set(x,s),l.querySelector(p)!==null||a==="style"&&l.querySelector(oc(x))||a==="script"&&l.querySelector(cc(x))||(a=l.createElement("link"),Wt(a,"link",s),Vt(a),l.head.appendChild(a)))}}function WT(s,a){Za.m(s,a);var o=Hi;if(o&&s){var l=a&&typeof a.as=="string"?a.as:"script",p='link[rel="modulepreload"][as="'+Bs(l)+'"][href="'+Bs(s)+'"]',x=p;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=Vi(s)}if(!Qs.has(x)&&(s=g({rel:"modulepreload",href:s},a),Qs.set(x,s),o.querySelector(p)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(cc(x)))return}l=o.createElement("link"),Wt(l,"link",s),Vt(l),o.head.appendChild(l)}}}function ZT(s,a,o){Za.S(s,a,o);var l=Hi;if(l&&s){var p=li(l).hoistableStyles,x=Ii(s);a=a||"default";var j=p.get(x);if(!j){var T={loading:0,preload:null};if(j=l.querySelector(oc(x)))T.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":a},o),(o=Qs.get(x))&&cp(s,o);var L=j=l.createElement("link");Vt(L),Wt(L,"link",s),L._p=new Promise(function(Q,ee){L.onload=Q,L.onerror=ee}),L.addEventListener("load",function(){T.loading|=1}),L.addEventListener("error",function(){T.loading|=2}),T.loading|=4,xd(j,a,l)}j={type:"stylesheet",instance:j,count:1,state:T},p.set(x,j)}}}function JT(s,a){Za.X(s,a);var o=Hi;if(o&&s){var l=li(o).hoistableScripts,p=Vi(s),x=l.get(p);x||(x=o.querySelector(cc(p)),x||(s=g({src:s,async:!0},a),(a=Qs.get(p))&&lp(s,a),x=o.createElement("script"),Vt(x),Wt(x,"link",s),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},l.set(p,x))}}function e3(s,a){Za.M(s,a);var o=Hi;if(o&&s){var l=li(o).hoistableScripts,p=Vi(s),x=l.get(p);x||(x=o.querySelector(cc(p)),x||(s=g({src:s,async:!0,type:"module"},a),(a=Qs.get(p))&&lp(s,a),x=o.createElement("script"),Vt(x),Wt(x,"link",s),o.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},l.set(p,x))}}function g0(s,a,o,l){var p=(p=xe.current)?hd(p):null;if(!p)throw Error(i(446));switch(s){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Ii(o.href),o=li(p).hoistableStyles,l=o.get(a),l||(l={type:"style",instance:null,count:0,state:null},o.set(a,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){s=Ii(o.href);var x=li(p).hoistableStyles,j=x.get(s);if(j||(p=p.ownerDocument||p,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(s,j),(x=p.querySelector(oc(s)))&&!x._p&&(j.instance=x,j.state.loading=5),Qs.has(s)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Qs.set(s,o),x||t3(p,s,o,j.state))),a&&l===null)throw Error(i(528,""));return j}if(a&&l!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Vi(o),o=li(p).hoistableScripts,l=o.get(a),l||(l={type:"script",instance:null,count:0,state:null},o.set(a,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,s))}}function Ii(s){return'href="'+Bs(s)+'"'}function oc(s){return'link[rel="stylesheet"]['+s+"]"}function y0(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function t3(s,a,o,l){s.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=s.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),Wt(a,"link",o),Vt(a),s.head.appendChild(a))}function Vi(s){return'[src="'+Bs(s)+'"]'}function cc(s){return"script[async]"+s}function v0(s,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var l=s.querySelector('style[data-href~="'+Bs(o.href)+'"]');if(l)return a.instance=l,Vt(l),l;var p=g({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return l=(s.ownerDocument||s).createElement("style"),Vt(l),Wt(l,"style",p),xd(l,o.precedence,s),a.instance=l;case"stylesheet":p=Ii(o.href);var x=s.querySelector(oc(p));if(x)return a.state.loading|=4,a.instance=x,Vt(x),x;l=y0(o),(p=Qs.get(p))&&cp(l,p),x=(s.ownerDocument||s).createElement("link"),Vt(x);var j=x;return j._p=new Promise(function(T,L){j.onload=T,j.onerror=L}),Wt(x,"link",l),a.state.loading|=4,xd(x,o.precedence,s),a.instance=x;case"script":return x=Vi(o.src),(p=s.querySelector(cc(x)))?(a.instance=p,Vt(p),p):(l=o,(p=Qs.get(x))&&(l=g({},o),lp(l,p)),s=s.ownerDocument||s,p=s.createElement("script"),Vt(p),Wt(p,"link",l),s.head.appendChild(p),a.instance=p);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(l=a.instance,a.state.loading|=4,xd(l,o.precedence,s));return a.instance}function xd(s,a,o){for(var l=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=l.length?l[l.length-1]:null,x=p,j=0;j<l.length;j++){var T=l[j];if(T.dataset.precedence===a)x=T;else if(x!==p)break}x?x.parentNode.insertBefore(s,x.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(s,a.firstChild))}function cp(s,a){s.crossOrigin==null&&(s.crossOrigin=a.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=a.referrerPolicy),s.title==null&&(s.title=a.title)}function lp(s,a){s.crossOrigin==null&&(s.crossOrigin=a.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=a.referrerPolicy),s.integrity==null&&(s.integrity=a.integrity)}var gd=null;function b0(s,a,o){if(gd===null){var l=new Map,p=gd=new Map;p.set(o,l)}else p=gd,l=p.get(o),l||(l=new Map,p.set(o,l));if(l.has(s))return l;for(l.set(s,null),o=o.getElementsByTagName(s),p=0;p<o.length;p++){var x=o[p];if(!(x[So]||x[Kt]||s==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var j=x.getAttribute(a)||"";j=s+j;var T=l.get(j);T?T.push(x):l.set(j,[x])}}return l}function j0(s,a,o){s=s.ownerDocument||s,s.head.insertBefore(o,a==="title"?s.querySelector("head > title"):null)}function s3(s,a,o){if(o===1||a.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return s=a.disabled,typeof a.precedence=="string"&&s==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function w0(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function a3(s,a,o,l){if(o.type==="stylesheet"&&(typeof l.media!="str
49ing"||matchMedia(l.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=Ii(l.href),x=a.querySelector(oc(p));if(x){a=x._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(s.count++,s=yd.bind(s),a.then(s,s)),o.state.loading|=4,o.instance=x,Vt(x);return}x=a.ownerDocument||a,l=y0(l),(p=Qs.get(p))&&cp(l,p),x=x.createElement("link"),Vt(x);var j=x;j._p=new Promise(function(T,L){j.onload=T,j.onerror=L}),Wt(x,"link",l),o.instance=x}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(s.count++,o=yd.bind(s),a.addEventListener("load",o),a.addEventListener("error",o))}}var dp=0;function n3(s,a){return s.stylesheets&&s.count===0&&bd(s,s.stylesheets),0<s.count||0<s.imgCount?function(o){var l=setTimeout(function(){if(s.stylesheets&&bd(s,s.stylesheets),s.unsuspend){var x=s.unsuspend;s.unsuspend=null,x()}},6e4+a);0<s.imgBytes&&dp===0&&(dp=62500*BT());var p=setTimeout(function(){if(s.waitingForImages=!1,s.count===0&&(s.stylesheets&&bd(s,s.stylesheets),s.unsuspend)){var x=s.unsuspend;s.unsuspend=null,x()}},(s.imgBytes>dp?50:800)+a);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(l),clearTimeout(p)}}:null}function yd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bd(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var vd=null;function bd(s,a){s.stylesheets=null,s.unsuspend!==null&&(s.count++,vd=new Map,a.forEach(r3,s),vd=null,yd.call(s))}function r3(s,a){if(!(a.state.loading&4)){var o=vd.get(s);if(o)var l=o.get(null);else{o=new Map,vd.set(s,o);for(var p=s.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<p.length;x++){var j=p[x];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(o.set(j.dataset.precedence,j),l=j)}l&&o.set(null,l)}p=a.instance,j=p.getAttribute("data-precedence"),x=o.get(j)||l,x===l&&o.set(null,p),o.set(j,p),this.count++,l=yd.bind(this),p.addEventListener("load",l),p.addEventListener("error",l),x?x.parentNode.insertBefore(p,x.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(p,s.firstChild)),a.state.loading|=4}}var lc={$$typeof:M,Provider:null,Consumer:null,_currentValue:z,_currentValue2:z,_threadCount:0};function i3(s,a,o,l,p,x,j,T,L){this.tag=1,this.containerInfo=s,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=mn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mn(0),this.hiddenUpdates=mn(null),this.identifierPrefix=l,this.onUncaughtError=p,this.onCaughtError=x,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function N0(s,a,o,l,p,x,j,T,L,Q,ee,ne){return s=new i3(s,a,o,j,L,Q,ee,ne,T),a=1,x===!0&&(a|=24),x=Cs(3,null,null,a),s.current=x,x.stateNode=s,a=Vm(),a.refCount++,s.pooledCache=a,a.refCount++,x.memoizedState={element:l,isDehydrated:o,cache:a},Qm(x),s}function S0(s){return s?(s=vi,s):vi}function C0(s,a,o,l,p,x){p=S0(p),l.context===null?l.context=p:l.pendingContext=p,l=bn(a),l.payload={element:o},x=x===void 0?null:x,x!==null&&(l.callback=x),o=jn(s,l,a),o!==null&&(vs(o,s,a),Io(o,s,a))}function A0(s,a){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var o=s.retryLane;s.retryLane=o!==0&&o<a?o:a}}function up(s,a){A0(s,a),(s=s.alternate)&&A0(s,a)}function T0(s){if(s.tag===13||s.tag===31){var a=pr(s,67108864);a!==null&&vs(a,s,67108864),up(s,67108864)}}function O0(s){if(s.tag===13||s.tag===31){var a=Ds();a=ri(a);var o=pr(s,a);o!==null&&vs(o,s,a),up(s,a)}}var jd=!0;function o3(s,a,o,l){var p=P.T;P.T=null;var x=I.p;try{I.p=2,mp(s,a,o,l)}finally{I.p=x,P.T=p}}function c3(s,a,o,l){var p=P.T;P.T=null;var x=I.p;try{I.p=8,mp(s,a,o,l)}finally{I.p=x,P.T=p}}function mp(s,a,o,l){if(jd){var p=fp(l);if(p===null)Zf(s,a,l,wd,o),D0(s,l);else if(d3(p,s,a,o,l))l.stopPropagation();else if(D0(s,l),a&4&&-1<l3.indexOf(s)){for(;p!==null;){var x=ci(p);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var j=xa(x.pendingLanes);if(j!==0){var T=x;for(T.pendingLanes|=2,T.entangledLanes|=2;j;){var L=1<<31-Jt(j);T.entanglements[1]|=L,j&=~L}ba(x),(tt&6)===0&&(nd=Te()+500,ac(0))}}break;case 31:case 13:T=pr(x,2),T!==null&&vs(T,x,2),id(),up(x,2)}if(x=fp(l),x===null&&Zf(s,a,l,wd,o),x===p)break;p=x}p!==null&&l.stopPropagation()}else Zf(s,a,l,null,o)}}function fp(s){return s=pm(s),pp(s)}var wd=null;function pp(s){if(wd=null,s=oi(s),s!==null){var a=d(s);if(a===null)s=null;else{var o=a.tag;if(o===13){if(s=u(a),s!==null)return s;s=null}else if(o===31){if(s=m(a),s!==null)return s;s=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;s=null}else a!==s&&(s=null)}}return wd=s,null}function E0(s){switch(s){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 5,405 bytes, line 49
49: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(ve()){case Re:return 2;case We:return 8;case dt:case Qt:return 32;case ta:return 268435456;default:return 32}default:return 32}}var hp=!1,Rn=null,kn=null,Pn=null,dc=new Map,uc=new Map,_n=[],l3="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 D0(s,a){switch(s){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":Pn=null;break;case"pointerover":case"pointerout":dc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":uc.delete(a.pointerId)}}function mc(s,a,o,l,p,x){return s===null||s.nativeEvent!==x?(s={blockedOn:a,domEventName:o,eventSystemFlags:l,nativeEvent:x,targetContainers:[p]},a!==null&&(a=ci(a),a!==null&&T0(a)),s):(s.eventSystemFlags|=l,a=s.targetContainers,p!==null&&a.indexOf(p)===-1&&a.push(p),s)}function d3(s,a,o,l,p){switch(a){case"focusin":return Rn=mc(Rn,s,a,o,l,p),!0;case"dragenter":return kn=mc(kn,s,a,o,l,p),!0;case"mouseover":return Pn=mc(Pn,s,a,o,l,p),!0;case"pointerover":var x=p.pointerId;return dc.set(x,mc(dc.get(x)||null,s,a,o,l,p)),!0;case"gotpointercapture":return x=p.pointerId,uc.set(x,mc(uc.get(x)||null,s,a,o,l,p)),!0}return!1}function M0(s){var a=oi(s.target);if(a!==null){var o=d(a);if(o!==null){if(a=o.tag,a===13){if(a=u(o),a!==null){s.blockedOn=a,Gg(s.priority,function(){O0(o)});return}}else if(a===31){if(a=m(o),a!==null){s.blockedOn=a,Gg(s.priority,function(){O0(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){s.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Nd(s){if(s.blockedOn!==null)return!1;for(var a=s.targetContainers;0<a.length;){var o=fp(s.nativeEvent);if(o===null){o=s.nativeEvent;var l=new o.constructor(o.type,o);fm=l,o.target.dispatchEvent(l),fm=null}else return a=ci(o),a!==null&&T0(a),s.blockedOn=o,!1;a.shift()}return!0}function R0(s,a,o){Nd(s)&&o.delete(a)}function u3(){hp=!1,Rn!==null&&Nd(Rn)&&(Rn=null),kn!==null&&Nd(kn)&&(kn=null),Pn!==null&&Nd(Pn)&&(Pn=null),dc.forEach(R0),uc.forEach(R0)}function Sd(s,a){s.blockedOn===a&&(s.blockedOn=null,hp||(hp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,u3)))}var Cd=null;function k0(s){Cd!==s&&(Cd=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cd===s&&(Cd=null);for(var a=0;a<s.length;a+=3){var o=s[a],l=s[a+1],p=s[a+2];if(typeof l!="function"){if(pp(l||o)===null)continue;break}var x=ci(o);x!==null&&(s.splice(a,3),a-=3,ff(x,{pending:!0,data:p,method:o.method,action:l},l,p))}}))}function qi(s){function a(L){return Sd(L,s)}Rn!==null&&Sd(Rn,s),kn!==null&&Sd(kn,s),Pn!==null&&Sd(Pn,s),dc.forEach(a),uc.forEach(a);for(var o=0;o<_n.length;o++){var l=_n[o];l.blockedOn===s&&(l.blockedOn=null)}for(;0<_n.length&&(o=_n[0],o.blockedOn===null);)M0(o),o.blockedOn===null&&_n.shift();if(o=(s.ownerDocument||s).$$reactFormReplay,o!=null)for(l=0;l<o.length;l+=3){var p=o[l],x=o[l+1],j=p[fs]||null;if(typeof x=="function")j||k0(o);else if(j){var T=null;if(x&&x.hasAttribute("formAction")){if(p=x,j=x[fs]||null)T=j.formAction;else if(pp(p)!==null)continue}else T=j.action;typeof T=="function"?o[l+1]=T:(o.splice(l,3),l-=3),k0(o)}}}function P0(){function s(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(j){return p=j})},focusReset:"manual",scroll:"manual"})}function a(){p!==null&&(p(),p=null),l||setTimeout(o,20)}function o(){if(!l&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,p=null;return navigation.addEventListener("navigate",s),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){l=!0,navigation.removeEventListener("navigate",s),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),p!==null&&(p(),p=null)}}}function xp(s){this._internalRoot=s}Ad.prototype.render=xp.prototype.render=function(s){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,l=Ds();
49C0(o,l,s,a,null,null)},Ad.prototype.unmount=xp.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var a=s.containerInfo;C0(s.current,2,null,s,null,null),id(),a[ii]=null}};function Ad(s){this._internalRoot=s}Ad.prototype.unstable_scheduleHydration=function(s){if(s){var a=im();s={blockedOn:null,target:s,priority:a};for(var o=0;o<_n.length&&a!==0&&a<_n[o].priority;o++);_n.splice(o,0,s),o===0&&M0(s)}};var _0=t.version;if(_0!=="19.2.1")throw Error(i(527,_0,"19.2.1"));I.findDOMNode=function(s){var a=s._reactInternals;if(a===void 0)throw typeof s.render=="function"?Error(i(188)):(s=Object.keys(s).join(","),Error(i(268,s)));return s=h(a),s=s!==null?y(s):null,s=s===null?null:s.stateNode,s};var m3={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Td=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Td.isDisabled&&Td.supportsFiber)try{or=Td.inject(m3),rs=Td}catch{}}return hc.createRoot=function(s,a){if(!c(s))throw Error(i(299));var o=!1,l="",p=Vv,x=qv,j=Fv;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(p=a.onUncaughtError),a.onCaughtError!==void 0&&(x=a.onCaughtError),a.onRecoverableError!==void 0&&(j=a.onRecoverableError)),a=N0(s,1,!1,null,null,o,l,null,p,x,j,P0),s[ii]=a.current,Wf(s),new xp(a)},hc.hydrateRoot=function(s,a,o){if(!c(s))throw Error(i(299));var l=!1,p="",x=Vv,j=qv,T=Fv,L=null;return o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(x=o.onUncaughtError),o.onCaughtError!==void 0&&(j=o.onCaughtError),o.onRecoverableError!==void 0&&(T=o.onRecoverableError),o.formState!==void 0&&(L=o.formState)),a=N0(s,1,!0,a,o??null,l,p,L,x,j,T,P0),a.context=S0(null),o=a.current,l=Ds(),l=ri(l),p=bn(l),p.callback=null,jn(o,p,l),o=l,a.current.lanes=o,bt(a,o),ba(a),s[ii]=a.current,Wf(s),new Ad(a)},hc.version="19.2.1",hc}var o1;function AO(){if(o1)return Np.exports;o1=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Np.exports=CO(),Np.exports}var TO=AO(),OO=(function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(t,r){this.keyToValue.set(t,r),this.valueToKey.set(r,t)},e.prototype.getByKey=function(t){return this.keyToValue.get(t)},e.prototype.getByValue=function(t){return this.valueToKey.get(t)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e})(),mw=(function(){function e(t){this.generateIdentifier=t,this.kv=new OO}return e.prototype.register=function(t,r){this.kv.getByValue(t)||(r||(r=this.generateIdentifier(t)),this.kv.set(r,t))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(t){return this.kv.getByValue(t)},e.prototype.getValue=function(t){return this.kv.getByKey(t)},e})(),EO=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,c){i.__proto__=c}||function(i,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(i[d]=c[d])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),DO=(function(e){EO(t,e);function t(){var r=e.call(this,function(i){return i.name})||this;return r.classToAllowedProps=new Map,r}return t.prototype.register=function(r,i){typeof i=="object"?(i.allowProps&&this.classToAllowedProps.set(r,i.allowProps),e.prototype.register.call(this,r,i.identifier)):e.prototype.register.call(this,r,i)},t.prototype.getAllowedProps=function(r){return this.classToAllowedProps.get(r)},t})(mw),MO=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),c,d=[],u;try{for(;(t===void 0||t-- >0)&&!(c=i.next()).done;)d.push(c.value)}catch(m){u={error:m}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return d};function RO(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}function kO(e,t){var r=RO(e);if("find"in r)return r.find(t);for(var i=r,c=0;c<i.length;c++){var d=i[c];if(t(d))return d}}function ro(e,t){Object.entries(e).forEach(function(r){var i=MO(r,2),c=i[0],d=i[1];return t(d,c)})}function $d(e,t){return e.indexOf(t)!==-1}function c1(e,t){for(var r=0;r<e.length;r++){var i=e[r];if(t(i))return i}}var PO=(function(){function e(){this.transfomers={}}return e.prototype.register=function(t){this.transfomers[t.name]=t},e.prototype.findApplicable=function(t){return kO(this.transfomers,function(r){return r.isApplicable(t)})},e.prototype.findByName=function(t){return this.transfomers[t]},e})(),_O=function(e){return Object.prototype.toString.call(e).slice(8,-1)},fw=function(e){return typeof e>"u"},LO=function(e){return e===null},Rc=function(e){return typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype},bh=function(e){return Rc(e)&&Object.keys(e).length===0},$n=function(e){return Array.isArray(e)},UO=function(e){return typeof e=="string"},BO=function(e){return typeof e=="number"&&!isNaN(e)},zO=function(e){return typeof e=="boolean"},HO=function(e){return e instanceof RegExp},kc=function(e){return e instanceof Map},Pc=function(e){return e instanceof Set},pw=function(e){return _O(e)==="Symbol"},IO=function(e){return e instanceof Date&&!isNaN(e.valueOf())},VO=function(e){return e instanceof Error},l1=function(e){return typeof e=="number"&&isNaN(e)},qO=function(e){return zO(e)||LO(e)||fw(e)||BO(e)||UO(e)||pw(e)},FO=function(e){return typeof e=="bigint"},GO=function(e){return e===1/0||e===-1/0},QO=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},KO=function(e){return e instanceof URL},hw=function(e){return e.replace(/\./g,"\\.")},Tp=function(e){return e.map(String).map(hw).join(".")},Nc=function(e){for(var t=[],r="",i=0;i<e.length;i++){var c=e.charAt(i),d=c==="\\"&&e.charAt(i+1)===".";if(d){r+=".",i++;continue}var u=c===".";if(u){t.push(r),r="";
49continue}r+=c}var m=r;return t.push(m),t},jh=function(){return jh=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},jh.apply(this,arguments)},wh=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),c,d=[],u;try{for(;(t===void 0||t-- >0)&&!(c=i.next()).done;)d.push(c.value)}catch(m){u={error:m}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return d},Nh=function(e,t){for(var r=0,i=t.length,c=e.length;r<i;r++,c++)e[c]=t[r];return e};function ja(e,t,r,i){return{isApplicable:e,annotation:t,transform:r,untransform:i}}var xw=[ja(fw,"undefined",function(){return null},function(){}),ja(FO,"bigint",function(e){return e.toString()},function(e){return typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),ja(IO,"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),ja(VO,"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(i){r[i]=e[i]}),r},function(e,t){var r=new Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(i){r[i]=e[i]}),r}),ja(HO,"regexp",function(e){return""+e},function(e){var t=e.slice(1,e.lastIndexOf("/")),r=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,r)}),ja(Pc,"set",function(e){return Nh([],wh(e.values()))},function(e){return new Set(e)}),ja(kc,"map",function(e){return Nh([],wh(e.entries()))},function(e){return new Map(e)}),ja(function(e){return l1(e)||GO(e)},"number",function(e){return l1(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),ja(function(e){return e===0&&1/e===-1/0},"number",function(){return"-0"},Number),ja(KO,"URL",function(e){return e.toString()},function(e){return new URL(e)})];
49function Pu(e,t,r,i){return{isApplicable:e,annotation:t,transform:r,untransform:i}}var gw=Pu(function(e,t){if(pw(e)){var r=!!t.symbolRegistry.getIdentifier(e);return r}return!1},function(e,t){var r=t.symbolRegistry.getIdentifier(e);return["symbol",r]},function(e){return e.description},function(e,t,r){var i=r.symbolRegistry.getValue(t[1]);if(!i)throw new Error("Trying to deserialize unknown symbol");return i}),YO=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),yw=Pu(QO,function(e){return["typed-array",e.constructor.name]},function(e){return Nh([],wh(e))},function(e,t){var r=YO[t[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(e)});function vw(e,t){if(e?.constructor){var r=!!t.classRegistry.getIdentifier(e.constructor);return r}return!1}var bw=Pu(vw,function(e,t){var r=t.classRegistry.getIdentifier(e.constructor);return["class",r]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return jh({},e);var i={};return r.forEach(function(c){i[c]=e[c]}),i},function(e,t,r){var i=r.classRegistry.getValue(t[1]);if(!i)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(i.prototype),e)}),jw=Pu(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return["custom",r.name]},function(e,t){var r=t.customTransformerRegistry.findApplicable(e);return r.serialize(e)},function(e,t,r){var i=r.customTransformerRegistry.findByName(t[1]);if(!i)throw new Error("Trying to deserialize unknown custom value");return i.deserialize(e)}),$O=[bw,gw,jw,yw],d1=function(e,t){var r=c1($O,function(c){return c.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var i=c1(xw,function(c){return c.isApplicable(e,t)});if(i)return{value:i.transform(e,t),type:i.annotation}},ww={};xw.forEach(function(e){ww[e.annotation]=e});var XO=function(e,t,r){if($n(t))switch(t[0]){case"symbol":return gw.untransform(e,t,r);case"class":return bw.untransform(e,t,r);case"custom":return jw.untransform(e,t,r);case"typed-array":return yw.untransform(e,t,r);default:throw new Error("Unknown transformation: "+t)}else{var i=ww[t];if(!i)throw new Error("Unknown transformation: "+t);return i.untransform(e,r)}},Xi=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function Nw(e){if($d(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if($d(e,"prototype"))throw new Error("prototype is not allowed as a property");if($d(e,"constructor"))throw new Error("constructor is not allowed as a property")}var WO=function(e,t){Nw(t);for(var r=0;r<t.length;r++){var i=t[r];if(Pc(e))e=Xi(e,+i);else if(kc(e)){var c=+i,d=+t[++r]==0?"key":"value",u=Xi(e,c);switch(d){case"key":e=u;break;case"value":e=e.get(u);break}}else e=e[i]}return e},Sh=function(e,t,r){if(Nw(t),t.length===0)return r(e);for(var i=e,c=0;c<t.length-1;c++){var d=t[c];if($n(i)){var u=+d;i=i[u]}else if(Rc(i))i=i[d];else if(Pc(i)){var m=+d;i=Xi(i,m)}else if(kc(i)){var f=c===t.length-2;if(f)break;var m=+d,h=+t[++c]==0?"key":"value",y=Xi(i,m);switch(h){case"key":i=y;break;case"value":i=i.get(y);break}}}var g=t[t.length-1];if($n(i)?i[+g]=r(i[+g]):Rc(i)&&(i[g]=r(i[g])),Pc(i)){var b=Xi(i,+g),w=r(b);b!==w&&(i.delete(b),i.add(w))}if(kc(i)){var m=+t[t.length-2],C=Xi(i,m),h=+g==0?"key":"value";switch(h){case"key":{var N=r(C);i.set(N,i.get(C)),N!==C&&i.delete(C);break}case"value":{i.set(C,r(i.get(C)));break}}}return e},en=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),c,d=[],u;try{for(;(t===void 0||t-- >0)&&!(c=i.next()).done;)d.push(c.value)}catch(m){u={error:m}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return d},Gn=function(e,t){for(var r=0,i=t.length,c=e.length;r<i;r++,c++)e[c]=t[r];return e};function Ch(e,t,r){if(r===void 0&&(r=[]),!!e){if(!$n(e)){ro(e,function(u,m){return Ch(u,t,Gn(Gn([],en(r)),en(Nc(m))))});return}var i=en(e,2),c=i[0],d=i[1];d&&ro(d,function(u,m){Ch(u,t,Gn(Gn([],en(r)),en(Nc(m))))}),t(c,r)}}function ZO(e,t,r){return Ch(t,function(i,c){e=Sh(e,c,function(d){return XO(d,i,r)})}),e}function JO(e,t){function r(u,m){var f=WO(e,Nc(m));
49u.map(Nc).forEach(function(h){e=Sh(e,h,function(){return f})})}if($n(t)){var i=en(t,2),c=i[0],d=i[1];c.forEach(function(u){e=Sh(e,Nc(u),function(){return e})}),d&&ro(d,r)}else ro(t,r);return e}var eE=function(e,t){return Rc(e)||$n(e)||kc(e)||Pc(e)||vw(e,t)};function tE(e,t,r){var i=r.get(e);i?i.push(t):r.set(e,[t])}function sE(e,t){var r={},i=void 0;return e.forEach(function(c){if(!(c.length<=1)){t||(c=c.map(function(f){return f.map(String)}).sort(function(f,h){return f.length-h.length}));var d=en(c),u=d[0],m=d.slice(1);u.length===0?i=m.map(Tp):r[Tp(u)]=m.map(Tp)}}),i?bh(r)?[i]:[i,r]:bh(r)?void 0:r}var Sw=function(e,t,r,i,c,d,u){var m;c===void 0&&(c=[]),d===void 0&&(d=[]),u===void 0&&(u=new Map);var f=qO(e);if(!f){tE(e,c,t);var h=u.get(e);if(h)return i?{transformedValue:null}:h}if(!eE(e,r)){var y=d1(e,r),g=y?{transformedValue:y.value,annotations:[y.type]}:{transformedValue:e};return f||u.set(e,g),g}if($d(d,e))return{transformedValue:null};var b=d1(e,r),w=(m=b?.value)!==null&&m!==void 0?m:e,C=$n(w)?[]:{},N={};ro(w,function(A,D){var M=Sw(A,t,r,i,Gn(Gn([],en(c)),[D]),Gn(Gn([],en(d)),[e]),u);C[D]=M.transformedValue,$n(M.annotations)?N[D]=M.annotations:Rc(M.annotations)&&ro(M.annotations,function(V,O){N[hw(D)+"."+O]=V})});var S=bh(N)?{transformedValue:C,annotations:b?[b.type]:void 0}:{transformedValue:C,annotations:b?[b.type,N]:N};return f||u.set(e,S),S};function Cw(e){return Object.prototype.toString.call(e).slice(8,-1)}function u1(e){return Cw(e)==="Array"}function aE(e){if(Cw(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function nE(e,t,r,i,c){const d={}.propertyIsEnumerable.call(i,t)?"enumerable":"nonenumerable";d==="enumerable"&&(e[t]=r),c&&d==="nonenumerable"&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}function Ah(e,t={}){if(u1(e))return e.map(c=>Ah(c,t));if(!aE(e))return e;const r=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols(e);return[...r,...i].reduce((c,d)=>{if(u1(t.props)&&!t.props.includes(d))return c;const u=e[d],m=Ah(u,t);return nE(c,d,m,e,t.nonenumerable),c},{})}var Rr=function(){return Rr=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])}return e},Rr.apply(this,arguments)},rE=function(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),c,d=[],u;try{for(;(t===void 0||t-- >0)&&!(c=i.next()).done;)d.push(c.value)}catch(m){u={error:m}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return d},iE=function(e,t){for(var r=0,i=t.length,c=e.length;r<i;r++,c++)e[c]=t[r];return e},ln=(function(){function e(t){var r=t===void 0?{}:t,i=r.dedupe,c=i===void 0?!1:i;this.classRegistry=new DO,this.symbolRegistry=new mw(function(d){var u;return(u=d.description)!==null&&u!==void 0?u:""}),this.customTransformerRegistry=new PO,this.allowedErrorProps=[],this.dedupe=c}return e.prototype.serialize=function(t){var r=new Map,i=Sw(t,r,this,this.dedupe),c={json:i.transformedValue};i.annotations&&(c.meta=Rr(Rr({},c.meta),{values:i.annotations}));var d=sE(r,this.dedupe);return d&&(c.meta=Rr(Rr({},c.meta),{referentialEqualities:d})),c},e.prototype.deserialize=function(t){var r=t.json,i=t.meta,c=Ah(r);return i?.values&&(c=ZO(c,i.values,this)),i?.referentialEqualities&&(c=JO(c,i.referentialEqualities)),c},e.prototype.stringify=function(t){return JSON.stringify(this.serialize(t))},e.prototype.parse=function(t){return this.deserialize(JSON.parse(t))},e.prototype.registerClass=function(t,r){this.classRegistry.register(t,r)},e.prototype.registerSymbol=function(t,r){this.symbolRegistry.register(t,r)},e.prototype.registerCustom=function(t,r){this.customTransformerRegistry.register(Rr({name:r},t))},e.prototype.allowErrorProps=function(){for(var t,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];(t=this.allowedErrorProps).push.apply(t,iE([],rE(r)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e})();ln.serialize;ln.deserialize;ln.stringify;ln.parse;ln.registerClass;ln.registerCustom;ln.registerSymbol;ln.allowErrorProps;var oE=(e,t,r,i,c,d,u,m)=>{let f=document.documentElement,h=["light","dark"];
vendor: 7,464 bytes, line 49
49function y(w){(Array.isArray(e)?e:[e]).forEach(C=>{let N=C==="class",S=N&&d?c.map(A=>d[A]||A):c;N?(f.classList.remove(...S),f.classList.add(d&&d[w]?d[w]:w)):f.setAttribute(C,w)}),g(w)}function g(w){m&&h.includes(w)&&(f.style.colorScheme=w)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)y(i);else try{let w=localStorage.getItem(t)||r,C=u&&w==="system"?b():w;y(C)}catch{}},cE=v.createContext(void 0),lE={setTheme:e=>{},themes:[]},dE=()=>{var e;return(e=v.useContext(cE))!=null?e:lE};v.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:i,enableColorScheme:c,defaultTheme:d,value:u,themes:m,nonce:f,scriptProps:h})=>{let y=JSON.stringify([r,t,d,e,m,u,i,c]).slice(1,-1);return v.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${oE.toString()})(${y})`}})});var fo=uw();const Aw=Nj(fo);function uE(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}const mE=e=>{switch(e){case"success":return hE;case"info":return gE;case"warning":return xE;case"error":return yE;default:return null}},fE=Array(12).fill(0),pE=({visible:e,className:t})=>me.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},me.createElement("div",{className:"sonner-spinner"},fE.map((r,i)=>me.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),hE=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.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"})),xE=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},me.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"})),gE=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.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"})),yE=me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},me.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"})),vE=me.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"},me.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),me.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),bE=()=>{const[e,t]=me.useState(document.hidden);return me.useEffect(()=>{const r=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),e};let Th=1;class jE{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const r=this.subscribers.indexOf(t);this.subscribers.splice(r,1)}),this.publish=t=>{this.subscribers.forEach(r=>r(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var r;const{message:i,...c}=t,d=typeof t?.id=="number"||((r=t.id)==null?void 0:r.length)>0?t.id:Th++,u=this.toasts.find(f=>f.id===d),m=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),u?this.toasts=this.toasts.map(f=>f.id===d?(this.publish({...f,...t,id:d,title:i}),{...f,...t,id:d,dismissible:m,title:i}):f):this.addToast({title:i,...c,dismissible:m,id:d}),d},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:t,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(i=>i({id:r.id,dismiss:!0}))}),t),this.message=(t,r)=>this.create({...r,message:t}),this.error=(t,r)=>this.create({...r,message:t,type:"error"}),this.success=(t,r)=>this.create({...r,type:"success",message:t}),this.info=(t,r)=>this.create({...r,type:"info",message:t}),this.warning=(t,r)=>this.create({...r,type:"warning",message:t}),this.loading=(t,r)=>this.create({...r,type:"loading",message:t}),this.promise=(t,r)=>{if(!r)return;let i;r.loading!==void 0&&(i=this.create({...r,promise:t,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const c=Promise.resolve(t instanceof Function?t():t);let d=i!==void 0,u;const m=c.then(async h=>{if(u=["resolve",h],me.isValidElement(h))d=!1,this.create({id:i,type:"default",message:h});else if(NE(h)&&!h.ok){d=!1;const g=typeof r.error=="function"?await r.error(`HTTP error! status: ${h.status}`):r.error,b=typeof r.description=="function"?await r.description(`HTTP error! status: ${h.status}`):r.description,C=typeof g=="object"&&!me.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:b,...C})}else if(h instanceof Error){d=!1;const g=typeof r.error=="function"?await r.error(h):r.error,b=typeof r.description=="function"?await r.description(h):r.description,C=typeof g=="object"&&!me.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:b,...C})}else if(r.success!==void 0){d=!1;const g=typeof r.success=="function"?await r.success(h):r.success,b=typeof r.description=="function"?await r.description(h):r.description,C=typeof g=="object"&&!me.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:b,...C})}}).catch(async h=>{if(u=["reject",h],r.error!==void 0){d=!1;const y=typeof r.error=="function"?await r.error(h):r.error,g=typeof r.description=="function"?await r.description(h):r.description,w=typeof y=="object"&&!me.isValidElement(y)?y:{message:y};this.create({id:i,type:"error",description:g,...w})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),r.finally==null||r.finally.call(r)}),f=()=>new Promise((h,y)=>m.then(()=>u[0]==="reject"?y(u[1]):h(u[1])).catch(y));return typeof i!="string"&&typeof i!="number"?{unwrap:f}:Object.assign(i,{unwrap:f})},this.custom=(t,r)=>{const i=r?.id||Th++;return this.create({jsx:t(i),id:i,...r}),i},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const bs=new jE,wE=(e,t)=>{const r=t?.id||Th++;return bs.addToast({title:e,...t,id:r}),r},NE=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",SE=wE,CE=()=>bs.toasts,AE=()=>bs.getActiveToasts(),Me=Object.assign(SE,{success:bs.success,info:bs.info,warning:bs.warning,error:bs.error,custom:bs.custom,message:bs.message,promise:bs.promise,dismiss:bs.dismiss,loading:bs.loading},{getHistory:CE,getToasts:AE});uE
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: 984 bytes, line 49
49Rd(e){return e.label!==void 0}const TE=3,OE="24px",EE="16px",m1=4e3,DE=356,ME=14,RE=45,kE=200;function wa(...e){return e.filter(Boolean).join(" ")}function PE(e){const[t,r]=e.split("-"),i=[];return t&&i.push(t),r&&i.push(r),i}const _E=e=>{var t,r,i,c,d,u,m,f,h;const{invert:y,toast:g,unstyled:b,interacting:w,setHeights:C,visibleToasts:N,heights:S,index:A,toasts:D,expanded:M,removeToast:V,defaultRichColors:O,closeButton:B,style:E,cancelButtonStyle:k,actionButtonStyle:J,className:te="",descriptionClassName:re="",duration:ce,position:de,gap:ue,expandByDefault:pe,classNames:P,icons:I,closeButtonAriaLabel:z="Close toast"}=e,[Z,he]=me.useState(null),[R,Y]=me.useState(null),[F,$]=me.useState(!1),[le,xe]=me.useState(!1),[_,X]=me.useState(!1),[se,ge]=me.useState(!1),[ie,fe]=me.useState(!1),[Pe,Ie]=me.useState(0),[ct,Mt]=me.useState(0),Ns=me.useRef(g.duration||ce||m1),Pa=me.useRef(null),Ht=me.useRef(null),pa=A===0,ir=A+1<=N,U=g.type,ye=g.dismissible!==!1,Te=g.className||"",ve=g.de
vendor: 21,701 bytes, line 49
49scriptionClassName||"",Re=me.useMemo(()=>S.findIndex(Le=>Le.toastId===g.id)||0,[S,g.id]),We=me.useMemo(()=>{var Le;return(Le=g.closeButton)!=null?Le:B},[g.closeButton,B]),dt=me.useMemo(()=>g.duration||ce||m1,[g.duration,ce]),Qt=me.useRef(0),ta=me.useRef(0),hl=me.useRef(0),un=me.useRef(null),[or,rs]=de.split("-"),sa=me.useMemo(()=>S.reduce((Le,xt,It)=>It>=Re?Le:Le+xt.height,0),[S,Re]),Jt=bE(),rm=g.invert||y,No=U==="loading";ta.current=me.useMemo(()=>Re*ue+sa,[Re,sa]),me.useEffect(()=>{Ns.current=dt},[dt]),me.useEffect(()=>{$(!0)},[]),me.useEffect(()=>{const Le=Ht.current;if(Le){const xt=Le.getBoundingClientRect().height;return Mt(xt),C(It=>[{toastId:g.id,height:xt,position:g.position},...It]),()=>C(It=>It.filter(es=>es.toastId!==g.id))}},[C,g.id]),me.useLayoutEffect(()=>{if(!F)return;const Le=Ht.current,xt=Le.style.height;Le.style.height="auto";const It=Le.getBoundingClientRect().height;Le.style.height=xt,Mt(It),C(es=>es.find(bt=>bt.toastId===g.id)?es.map(bt=>bt.toastId===g.id?{...bt,height:It}:bt):[{toastId:g.id,height:It,position:g.position},...es])},[F,g.title,g.description,C,g.id,g.jsx,g.action,g.cancel]);const ha=me.useCallback(()=>{xe(!0),Ie(ta.current),C(Le=>Le.filter(xt=>xt.toastId!==g.id)),setTimeout(()=>{V(g)},kE)},[g,V,C,ta]);me.useEffect(()=>{if(g.promise&&U==="loading"||g.duration===1/0||g.type==="loading")return;let Le;return M||w||Jt?(()=>{if(hl.current<Qt.current){const es=new Date().getTime()-Qt.current;Ns.current=Ns.current-es}hl.current=new Date().getTime()})():(()=>{Ns.current!==1/0&&(Qt.current=new Date().getTime(),Le=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),ha()},Ns.current))})(),()=>clearTimeout(Le)},[M,w,g,U,Jt,ha]),me.useEffect(()=>{g.delete&&(ha(),g.onDismiss==null||g.onDismiss.call(g,g))},[ha,g.delete]);function ai(){var Le;if(I?.loading){var xt;return me.createElement("div",{className:wa(P?.loader,g==null||(xt=g.classNames)==null?void 0:xt.loader,"sonner-loader"),"data-visible":U==="loading"},I.loading)}return me.createElement(pE,{className:wa(P?.loader,g==null||(Le=g.classNames)==null?void 0:Le.loader),visible:U==="loading"})}const ni=g.icon||I?.[U]||mE(U);var cr,xa;return me.createElement("li",{tabIndex:0,ref:Ht,className:wa(te,Te,P?.toast,g==null||(t=g.classNames)==null?void 0:t.toast,P?.default,P?.[U],g==null||(r=g.classNames)==null?void 0:r[U]),"data-sonner-toast":"","data-rich-colors":(cr=g.richColors)!=null?cr:O,"data-styled":!(g.jsx||g.unstyled||b),"data-mounted":F,"data-promise":!!g.promise,"data-swiped":ie,"data-removed":le,"data-visible":ir,"data-y-position":or,"data-x-position":rs,"data-index":A,"data-front":pa,"data-swiping":_,"data-dismissible":ye,"data-type":U,"data-invert":rm,"data-swipe-out":se,"data-swipe-direction":R,"data-expanded":!!(M||pe&&F),"data-testid":g.testId,style:{"--index":A,"--toasts-before":A,"--z-index":D.length-A,"--offset":`${le?Pe:ta.current}px`,"--initial-height":pe?"auto":`${ct}px`,...E,...g.style},onDragEnd:()=>{X(!1),he(null),un.current=null},onPointerDown:Le=>{Le.button!==2&&(No||!ye||(Pa.current=new Date,Ie(ta.current),Le.target.setPointerCapture(Le.pointerId),Le.target.tagName!=="BUTTON"&&(X(!0),un.current={x:Le.clientX,y:Le.clientY})))},onPointerUp:()=>{var Le,xt,It;if(se||!ye)return;un.current=null;const es=Number(((Le=Ht.current)==null?void 0:Le.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),mn=Number(((xt=Ht.current)==null?void 0:xt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),bt=new Date().getTime()-((It=Pa.current)==null?void 0:It.getTime()),ds=Z==="x"?es:mn,lr=Math.abs(ds)/bt;if(Math.abs(ds)>=RE||lr>.11){Ie(ta.current),g.onDismiss==null||g.onDismiss.call(g,g),Y(Z==="x"?es>0?"right":"left":mn>0?"down":"up"),ha(),ge(!0);return}else{var us,ms;(us=Ht.current)==null||us.style.setProperty("--swipe-amount-x","0px"),(ms=Ht.current)==null||ms.style.setProperty("--swipe-amount-y","0px")}fe(!1),X(!1),he(null)},onPointerMove:Le=>{var xt,It,es;if(!un.current||!ye||((xt=window.getSelection())==null?void 0:xt.toString().length)>0)return;const bt=Le.clientY-un.current.y,ds=Le.clientX-un.current.x;var lr;const us=(lr=e.swipeDirections)!=null?lr:PE(de);!Z&&(Math.abs(ds)>1||Math.abs(bt)>1)&&he(Math.abs(ds)>Math.abs(bt)?"x":"y");let ms={x:0,y:0};const ri=aa=>1/(1.5+Math.abs(aa)/20);if(Z==="y"){if(us.includes("top")||us.includes("bottom"))if(us.includes("top")&&bt<0||us.includes("bottom")&&bt>0)ms.y=bt;else{const aa=bt*ri(bt);ms.y=Math.abs(aa)<Math.abs(bt)?aa:bt}}else if(Z==="x"&&(us.includes("left")||us.includes("right")))if(us.includes("left")&&ds<0||us.includes("right")&&ds>0)ms.x=ds;else{const aa=ds*ri(ds);ms.x=Math.abs(aa)<Math.abs(ds)?aa:ds}(Math.abs(ms.x)>0||Math.abs(ms.y)>0)&&fe(!0),(It=Ht.current)==null||It.style.setProperty("--swipe-amount-x",`${ms.x}px`),(es=Ht.current)==null||es.style.setProperty("--swipe-amount-y",`${ms.y}px`)}},We&&!g.jsx&&U!=="loading"?me.createElement("button",{"aria-label":z,"data-disabled":No,"data-close-button":!0,onClick:No||!ye?()=>{}:()=>{ha(),g.onDismiss==null||g.onDismiss.call(g,g)},className:wa(P?.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(xa=I?.close)!=null?xa:vE):null,(U||g.icon||g.promise)&&g.icon!==null&&(I?.[U]!==null||g.icon)?me.createElement("div",{"data-icon":"",className:wa(P?.icon,g==null||(c=g.classNames)==null?void 0:c.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||ai():null,g.type!=="loading"?ni:null):null,me.createElement("div",{"data-content":"",className:wa(P?.content,g==null||(d=g.classNames)==null?void 0:d.content)},me.createElement("div",{"data-title":"",className:wa(P?.title,g==null||(u=g.classNames)==null?void 0:u.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?me.createElement("div",{"data-description":"",className:wa(re,ve,P?.description,g==null||(m=g.classNames)==null?void 0:m.description)},typeof g.description=="function"?g.description():g.description):null),me.isValidElement(g.cancel)?g.cancel:g.cancel&&Rd(g.cancel)?me.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||k,onClick:Le=>{Rd(g.cancel)&&ye&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Le),ha())},className:wa(P?.cancelButton,g==null||(f=g.classNames)==null?void 0:f.cancelButton)},g.cancel.label):null,me.isValidElement(g.action)?g.action:g.action&&Rd(g.action)?me.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||J,onClick:Le=>{Rd(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Le),!Le.defaultPrevented&&ha())},className:wa(P?.actionButton,g==null||(h=g.classNames)==null?void 0:h.actionButton)},g.action.label):null)};function f1(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function LE(e,t){const r={};return[e,t].forEach((i,c)=>{const d=c===1,u=d?"--mobile-offset":"--offset",m=d?EE:OE;function f(h){["top","right","bottom","left"].forEach(y=>{r[`${u}-${y}`]=typeof h=="number"?`${h}px`:h})}typeof i=="number"||typeof i=="string"?f(i):typeof i=="object"?["top","right","bottom","left"].forEach(h=>{i[h]===void 0?r[`${u}-${h}`]=m:r[`${u}-${h}`]=typeof i[h]=="number"?`${i[h]}px`:i[h]}):f(m)}),r}const UE=me.forwardRef(function(t,r){const{id:i,invert:c,position:d="bottom-right",hotkey:u=["altKey","KeyT"],expand:m,closeButton:f,className:h,offset:y,mobileOffset:g,theme:b="light",richColors:w,duration:C,style:N,visibleToasts:S=TE,toastOptions:A,dir:D=f1(),gap:M=ME,icons:V,containerAriaLabel:O="Notifications"}=t,[B,E]=me.useState([]),k=me.useMemo(()=>i?B.filter(F=>F.toasterId===i):B.filter(F=>!F.toasterId),[B,i]),J=me.useMemo(()=>Array.from(new Set([d].concat(k.filter(F=>F.position).map(F=>F.position)))),[k,d]),[te,re]=me.useState([]),[ce,de]=me.useState(!1),[ue,pe]=me.useState(!1),[P,I]=me.useState(b!=="system"?b:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),z=me.useRef(null),Z=u.join("+").replace(/Key/g,"").replace(/Digit/g,""),he=me.useRef(null),R=me.useRef(!1),Y=me.useCallback(F=>{E($=>{var le;return(le=$.find(xe=>xe.id===F.id))!=null&&le.delete||bs.dismiss(F.id),$.filter(({id:xe})=>xe!==F.id)})},[]);return me.useEffect(()=>bs.subscribe(F=>{if(F.dismiss){requestAnimationFrame(()=>{E($=>$.map(le=>le.id===F.id?{...le,delete:!0}:le))});return}setTimeout(()=>{Aw.flushSync(()=>{E($=>{const le=$.findIndex(xe=>xe.id===F.id);return le!==-1?[...$.slice(0,le),{...$[le],...F},...$.slice(le+1)]:[F,...$]})})})}),[B]),me.useEffect(()=>{if(b!=="system"){I(b);return}if(b==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?I("dark"):I("light")),typeof window>"u")return;const F=window.matchMedia("(prefers-color-scheme: dark)");try{F.addEventListener("change",({matches:$})=>{I($?"dark":"light")})}catch{F.addListener(({matches:le})=>{try{I(le?"dark":"light")}catch(xe){console.error(xe)}})}},[b]),me.useEffect(()=>{B.length<=1&&de(!1)},[B]),me.useEffect(()=>{const F=$=>{var le;if(u.every(X=>$[X]||$.code===X)){var _;de(!0),(_=z.current)==null||_.focus()}$.code==="Escape"&&(document.activeElement===z.current||(le=z.current)!=null&&le.contains(document.activeElement))&&de(!1)};return document.addEventListener("keydown",F),()=>document.removeEventListener("keydown",F)},[u]),me.useEffect(()=>{if(z.current)return()=>{he.current&&(he.current.focus({preventScroll:!0}),he.current=null,R.current=!1)}},[z.current]),me.createElement("section",{ref:r,"aria-label":`${O} ${Z}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},J.map((F,$)=>{var le;const[xe,_]=F.split("-");return k.length?me.createElement("ol",{key:F,dir:D==="auto"?f1():D,tabIndex:-1,ref:z,className:h,"data-sonner-toaster":!0,"data-sonner-theme":P,"data-y-position":xe,"data-x-position":_,style:{"--front-toast-height":`${((le=te[0])==null?void 0:le.height)||0}px`,"--width":`${DE}px`,"--gap":`${M}px`,...N,...LE(y,g)},onBlur:X=>{R.current&&!X.currentTarget.contains(X.relatedTarget)&&(R.current=!1,he.current&&(he.current.focus({preventScroll:!0}),he.current=null))},onFocus:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||R.current||(R.current=!0,he.current=X.relatedTarget)},onMouseEnter:()=>de(!0),onMouseMove:()=>de(!0),onMouseLeave:()=>{ue||de(!1)},onDragEnd:()=>de(!1),onPointerDown:X=>{X.target instanceof HTMLElement&&X.target.dataset.dismissible==="false"||pe(!0)},onPointerUp:()=>pe(!1)},k.filter(X=>!X.position&&$===0||X.position===F).map((X,se)=>{var ge,ie;return me.createElement(_E,{key:X.id,icons:V,index:se,toast:X,defaultRichColors:w,duration:(ge=A?.duration)!=null?ge:C,className:A?.className,descriptionClassName:A?.descriptionClassName,invert:c,visibleToasts:S,closeButton:(ie=A?.closeButton)!=null?ie:f,interacting:ue,position:F,style:A?.style,unstyled:A?.unstyled,classNames:A?.classNames,cancelButtonStyle:A?.cancelButtonStyle,actionButtonStyle:A?.actionButtonStyle,closeButtonAriaLabel:A?.closeButtonAriaLabel,removeToast:Y,toasts:k.filter(fe=>fe.position==X.position),heights:te.filter(fe=>fe.position==X.position),setHeights:re,expandByDefault:m,gap:M,expanded:ce,swipeDirections:t.swipeDirections})})):null}))}),BE=({...e})=>{const{theme:t="system"}=dE();return n.jsx(UE,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:t,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...e})};function Oe(e,t,{checkForDefaultPrevented:r=!0}={}){return function(c){if(e?.(c),r===!1||!c.defaultPrevented)return t?.(c)}}function p1(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function _u(...e){return t=>{let r=!1;const i=e.map(c=>{const d=p1(c,t);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let c=0;c<i.length;c++){const d=i[c];typeof d=="function"?d():p1(e[c],null)}}}}function nt(...e){return v.useCallback(_u(...e),e)}function zE(e,t){const r=v.createContext(t),i=d=>{const{children:u,...m}=d,f=v.useMemo(()=>m,Object.values(m));return n.jsx(r.Provider,{value:f,children:u})};i.displayName=e+"Provider";function c(d){const u=v.useContext(r);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${d}\` must be used within \`${e}\``)}return[i,c]}function tr(e,t=[]){let r=[];function i(d,u){const m=v.createContext(u),f=r.length;r=[...r,u];const h=g=>{const{scope:b,children:w,...C}=g,N=b?.[e]?.[f]||m,S=v.useMemo(()=>C,Object.values(C));return n.jsx(N.Provider,{value:S,children:w})};h.displayName=d+"Provider";function y(g,b){const w=b?.[e]?.[f]||m,C=v.useContext(w);if(C)return C;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${d}\``)}return[h,y]}const c=()=>{const d=r.map(u=>v.createContext(u));return function(m){const f=m?.[e]||d;return v.useMemo(()=>({[`__scope${e}`]:{...m,[e]:f}}),[m,f])}};return c.scopeName=e,[i,HE(c,...t)]}function HE(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const u=i.reduce((m,{useScope:f,scopeName:h})=>{const g=f(d)[`__scope${h}`];return{...m,...g}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return r.scopeName=t.scopeName,r}function Ir(e){const t=IE(e),r=v.forwardRef((i,c)=>{const{children:d,...u}=i,m=v.Children.toArray(d),f=m.find(qE);if(f){const h=f.props.children,y=m.map(g=>g===f?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:g);return n.jsx(t,{...u,ref:c,children:v.isValidElement(h)?v.cloneElement(h,void 0,y):null})}return n.jsx(t,{...u,ref:c,children:d})});return r.displayName=`${e}.Slot`,r}var Tw=Ir("Slot");function IE(e){const t=v.forwardRef((r,i)=>{const{children:c,...d}=r;if(v.isValidElement(c)){const u=GE(c),m=FE(d,c.props);return c.type!==v.Fragment&&(m.ref=i?_u(i,u):u),v.cloneElement(c,m)}return v.Children.count(c)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ow=Symbol("radix.slottable");function VE(e){const t=({children:r})=>n.jsx(n.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=Ow,t}function qE(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ow}function FE(e,t){const r={...t};for(const i in t){const c=e[i],d=t[i];/^on[A-Z]/.test(i)?c&&d?r[i]=(...m)=>{const f=d(...m);return c(...m),f}:c&&(r[i]=c):i==="style"?r[i]={...c,...d}:i==="className"&&(r[i]=[c,d].filter(Boolean).join(" "))}return{...e,...r}}function GE(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var QE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],$e=QE.reduce((e,t)=>{const r=Ir(`Primitive.${t}`),i=v.forwardRef((c,d)=>{const{asChild:u,...m}=c,f=u?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),n.jsx(f,{...m,ref:d})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function Ew(e,t){e&&fo.flushSync(()=>e.dispatchEvent(t))}function Da(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...r)=>t.current?.(...r),[])}function KE(e,t=globalThis?.document){const r=Da(e);v.useEffect(()=>{const i=c=>{c.key==="Escape"&&r(c)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var YE="DismissableLayer",Oh="dismissableLayer.update",$E="dismissableLayer.pointerDownOutside",XE="dismissableLayer.focusOutside",h1,Dw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tl=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:u,onDismiss:m,...f}=e,h=v.useContext(Dw),[y,g]=v.useState(null),b=y?.ownerDocument??globalThis?.document,[,w]=v.useState({}),C=nt(t,E=>g(E)),N=Array.from(h.layers),[S]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),A=N.indexOf(S),D=y?N.indexOf(y):-1,M=h.layersWithOutsidePointerEventsDisabled.size>0,V=D>=A,O=JE(E=>{const k=E.target,J=[...h.branches].some(te=>te.contains(k));!V||J||(c?.(E),u?.(E),E.defaultPrevented||m?.())},b),B=eD(E=>{const k=E.target;[...h.branches].some(te=>te.contains(k))||(d?.(E),u?.(E),E.defaultPrevented||m?.())},b);return KE(E=>{D===h.layers.size-1&&(i?.(E),!E.defaultPrevented&&m&&(E.preventDefault(),m()))},b),v.useEffect(()=>{if(y)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(h1=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(y)),h.layers.add(y),x1(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=h1)}},[y,b,r,h]),v.useEffect(()=>()=>{y&&(h.layers.delete(y),h.layersWithOutsidePointerEventsDisabled.delete(y),x1())},[y,h]),v.useEffect(()=>{const E=()=>w({});return document.addEventListener(Oh,E),()=>document.removeEventListener(Oh,E)},[]),n.jsx($e.div,{...f,ref:C,style:{pointerEvents:M?V?"auto":"none":void 0,...e.style},onFocusCapture:Oe(e.onFocusCapture,B.onFocusCapture),onBlurCapture:Oe(e.onBlurCapture,B.onBlurCapture),onPointerDownCapture:Oe(e.onPointerDownCapture,O.onPointerDownCapture)})});tl.displayName=YE;var WE="DismissableLayerBranch",ZE=v.forwardRef((e,t)=>{const r=v.useContext(Dw),i=v.useRef(null),c=nt(t,i);return v.useEffect(()=>{const d=i.current;if(d)return r.branches.add(d),()=>{r.branches.delete(d)}},[r.branches]),n.jsx($e.div,{...e,ref:c})});ZE.displayName=WE;function JE(e,t=globalThis?.document){const r=Da(e),i=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const d=m=>{if(m.target&&!i.current){let f=function(){Mw($E,r,h,{discrete:!0})};const h={originalEvent:m};m.pointerType==="touch"?(t.removeEventListener("click",c.current),c.current=f,t.addEventListener("click",c.current,{once:!0})):f()}else t.removeEventListener("click",c.current);i.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",d),t.removeEventListener("click",c.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function eD(e,t=globalThis?.document){const r=Da(e),i=v.useRef(!1);return v.useEffect(()=>{const c=d=>{d.target&&!i.current&&Mw(XE,r,{originalEvent:d},{discrete:!1})};return t.addEventListener("focusin",c),()=>t.removeEventListener("focusin",c)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function x1(){const e=new CustomEvent(Oh);document.dispatchEvent(e)}function Mw(e,t,r,{discrete:i}){const c=r.originalEvent.target,d=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&c.addEventListener(e,t,{once:!0}),i?Ew(c,d):c.dispatchEvent(d)}var ns=globalThis?.document?v.useLayoutEffect:()=>{},tD=Ou[" useId ".trim().toString()]||(()=>{}),sD=0;function tn(e){const[t,r]=v.useState(tD());return ns(()=>{r(i=>i??String(sD++))},[e]),e||(t?`radix-${t}`:"")}const aD=["top","right","bottom","left"],Xn=Math.min,Ms=Math.max,lu=Math.round,kd=Math.floor,Aa=e=>({x:e,y:e}),nD={left:"right",right:"left",bottom:"top",top:"bottom"},rD={start:"end",end:"start"};function Eh(e,t,r){return Ms(e,Xn(t,r))}function an(e,t){return typeof e=="function"?e(t):e}function nn(e){return e.split("-")[0]}function po(e){return e.split("-")[1]}function Ox(e){return e==="x"?"y":"x"}function Ex(e){return e==="y"?"height":"width"}const iD=new Set(["top","bottom"]);function Ca(e){return iD.has(nn(e))?"y":"x"}function Dx(e){return Ox(Ca(e))}function oD(e,t,r){r===void 0&&(r=!1);const i=po(e),c=Dx(e),d=Ex(c);let u=c==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[d]>t.floating[d]&&(u=du(u)),[u,du(u)]}function cD(e){const t=du(e);return[Dh(e),t,Dh(t)]}function Dh(e){return e.replace(/start|end/g,t=>rD[t])}const g1=["left","right"],y1=["right","left"],lD=["top","bottom"],dD=["bottom","top"];function uD(e,t,r){switch(e){case"top":case"bottom":return r?t?y1:g1:t?g1:y1;case"left":case"right":return t?lD:dD;default:return[]}}function mD(e,t,r,i){const c=po(e);let d=uD(nn(e),r==="start",i);return c&&(d=d.map(u=>u+"-"+c),t&&(d=d.concat(d.map(Dh)))),d}function du(e){return e.replace(/left|right|bottom|top/g,t=>nD[t])}function fD(e){return{top:0,right:0,bottom:0,left:0,...e}}function Rw(e){return typeof e!="number"?fD(e):{top:e,right:e,bottom:e,left:e}}function uu(e){const{x:t,y:r,width:i,height:c}=e;return{width:i,height:c,top:r,left:t,right:t+i,bottom:r+c,x:t,y:r}}function v1(e,t,r){let{reference:i,floating:c}=e;const d=Ca(t),u=Dx(t),m=Ex(u),f=nn(t),h=d==="y",y=i.x+i.width/2-c.width/2,g=i.y+i.height/2-c.height/2,b=i[m]/2-c[m]/2;let w;switch(f){case"top":w={x:y,y:i.y-c.height};break;case"bottom":w={x:y,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:g};break;case"left":w={x:i.x-c.width,y:g};break;default:w={x:i.x,y:i.y}}switch(po(t)){case"start":w[u]-=b*(r&&h?-1:1);break;case"end":w[u]+=b*(r&&h?-1:1);break}return w}const pD=async(e,t,r)=>{const{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:u}=r,m=d.filter(Boolean),f=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:c}),{x:y,y:g}=v1(h,i,f),b=i,w={},C=0;for(let N=0;N<m.length;N++){const{name:S,fn:A}=m[N],{x:D,y:M,data:V,reset:O}=await A({x:y,y:g,initialPlacement:i,placement:b,strategy:c,middlewareData:w,rects:h,platform:u,elements:{reference:e,floating:t}});y=D??y,g=M??g,w={...w,[S]:{...w[S],...V}},O&&C<=50&&(C++,typeof O=="object"&&(O.placement&&(b=O.placement),O.rects&&(h=O.re
vendor: 14,544 bytes, line 49
49cts===!0?await u.getElementRects({reference:e,floating:t,strategy:c}):O.rects),{x:y,y:g}=v1(h,b,f)),N=-1)}return{x:y,y:g,placement:b,strategy:c,middlewareData:w}};async function _c(e,t){var r;t===void 0&&(t={});const{x:i,y:c,platform:d,rects:u,elements:m,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:y="viewport",elementContext:g="floating",altBoundary:b=!1,padding:w=0}=an(t,e),C=Rw(w),S=m[b?g==="floating"?"reference":"floating":g],A=uu(await d.getClippingRect({element:(r=await(d.isElement==null?void 0:d.isElement(S)))==null||r?S:S.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(m.floating)),boundary:h,rootBoundary:y,strategy:f})),D=g==="floating"?{x:i,y:c,width:u.floating.width,height:u.floating.height}:u.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m.floating)),V=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},O=uu(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:D,offsetParent:M,strategy:f}):D);return{top:(A.top-O.top+C.top)/V.y,bottom:(O.bottom-A.bottom+C.bottom)/V.y,left:(A.left-O.left+C.left)/V.x,right:(O.right-A.right+C.right)/V.x}}const hD=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:i,placement:c,rects:d,platform:u,elements:m,middlewareData:f}=t,{element:h,padding:y=0}=an(e,t)||{};if(h==null)return{};const g=Rw(y),b={x:r,y:i},w=Dx(c),C=Ex(w),N=await u.getDimensions(h),S=w==="y",A=S?"top":"left",D=S?"bottom":"right",M=S?"clientHeight":"clientWidth",V=d.reference[C]+d.reference[w]-b[w]-d.floating[C],O=b[w]-d.reference[w],B=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let E=B?B[M]:0;(!E||!await(u.isElement==null?void 0:u.isElement(B)))&&(E=m.floating[M]||d.floating[C]);const k=V/2-O/2,J=E/2-N[C]/2-1,te=Xn(g[A],J),re=Xn(g[D],J),ce=te,de=E-N[C]-re,ue=E/2-N[C]/2+k,pe=Eh(ce,ue,de),P=!f.arrow&&po(c)!=null&&ue!==pe&&d.reference[C]/2-(ue<ce?te:re)-N[C]/2<0,I=P?ue<ce?ue-ce:ue-de:0;return{[w]:b[w]+I,data:{[w]:pe,centerOffset:ue-pe-I,...P&&{alignmentOffset:I}},reset:P}}}),xD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;const{placement:c,middlewareData:d,rects:u,initialPlacement:m,platform:f,elements:h}=t,{mainAxis:y=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:N=!0,...S}=an(e,t);if((r=d.arrow)!=null&&r.alignmentOffset)return{};const A=nn(c),D=Ca(m),M=nn(m)===m,V=await(f.isRTL==null?void 0:f.isRTL(h.floating)),O=b||(M||!N?[du(m)]:cD(m)),B=C!=="none";!b&&B&&O.push(...mD(m,N,C,V));const E=[m,...O],k=await _c(t,S),J=[];let te=((i=d.flip)==null?void 0:i.overflows)||[];if(y&&J.push(k[A]),g){const ue=oD(c,u,V);J.push(k[ue[0]],k[ue[1]])}if(te=[...te,{placement:c,overflows:J}],!J.every(ue=>ue<=0)){var re,ce;const ue=(((re=d.flip)==null?void 0:re.index)||0)+1,pe=E[ue];if(pe&&(!(g==="alignment"?D!==Ca(pe):!1)||te.every(z=>Ca(z.placement)===D?z.overflows[0]>0:!0)))return{data:{index:ue,overflows:te},reset:{placement:pe}};let P=(ce=te.filter(I=>I.overflows[0]<=0).sort((I,z)=>I.overflows[1]-z.overflows[1])[0])==null?void 0:ce.placement;if(!P)switch(w){case"bestFit":{var de;const I=(de=te.filter(z=>{if(B){const Z=Ca(z.placement);return Z===D||Z==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(Z=>Z>0).reduce((Z,he)=>Z+he,0)]).sort((z,Z)=>z[1]-Z[1])[0])==null?void 0:de[0];I&&(P=I);break}case"initialPlacement":P=m;break}if(c!==P)return{reset:{placement:P}}}return{}}}};function b1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function j1(e){return aD.some(t=>e[t]>=0)}const gD=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:i="referenceHidden",...c}=an(e,t);switch(i){case"referenceHidden":{const d=await _c(t,{...c,elementContext:"reference"}),u=b1(d,r.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:j1(u)}}}case"escaped":{const d=await _c(t,{...c,altBoundary:!0}),u=b1(d,r.floating);return{data:{escapedOffsets:u,escaped:j1(u)}}}default:return{}}}}},kw=new Set(["left","top"]);async function yD(e,t){const{placement:r,platform:i,elements:c}=e,d=await(i.isRTL==null?void 0:i.isRTL(c.floating)),u=nn(r),m=po(r),f=Ca(r)==="y",h=kw.has(u)?-1:1,y=d&&f?-1:1,g=an(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:C}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return m&&typeof C=="number"&&(w=m==="end"?C*-1:C),f?{x:w*y,y:b*h}:{x:b*h,y:w*y}}const vD=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;const{x:c,y:d,placement:u,middlewareData:m}=t,f=await yD(t,e);return u===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:c+f.x,y:d+f.y,data:{...f,placement:u}}}}},bD=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:c}=t,{mainAxis:d=!0,crossAxis:u=!1,limiter:m={fn:S=>{let{x:A,y:D}=S;return{x:A,y:D}}},...f}=an(e,t),h={x:r,y:i},y=await _c(t,f),g=Ca(nn(c)),b=Ox(g);let w=h[b],C=h[g];if(d){const S=b==="y"?"top":"left",A=b==="y"?"bottom":"right",D=w+y[S],M=w-y[A];w=Eh(D,w,M)}if(u){const S=g==="y"?"top":"left",A=g==="y"?"bottom":"right",D=C+y[S],M=C-y[A];C=Eh(D,C,M)}const N=m.fn({...t,[b]:w,[g]:C});return{...N,data:{x:N.x-r,y:N.y-i,enabled:{[b]:d,[g]:u}}}}}},jD=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:i,placement:c,rects:d,middlewareData:u}=t,{offset:m=0,mainAxis:f=!0,crossAxis:h=!0}=an(e,t),y={x:r,y:i},g=Ca(c),b=Ox(g);let w=y[b],C=y[g];const N=an(m,t),S=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(f){const M=b==="y"?"height":"width",V=d.reference[b]-d.floating[M]+S.mainAxis,O=d.reference[b]+d.reference[M]-S.mainAxis;w<V?w=V:w>O&&(w=O)}if(h){var A,D;const M=b==="y"?"width":"height",V=kw.has(nn(c)),O=d.reference[g]-d.floating[M]+(V&&((A=u.offset)==null?void 0:A[g])||0)+(V?0:S.crossAxis),B=d.reference[g]+d.reference[M]+(V?0:((D=u.offset)==null?void 0:D[g])||0)-(V?S.crossAxis:0);C<O?C=O:C>B&&(C=B)}return{[b]:w,[g]:C}}}},wD=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,i;const{placement:c,rects:d,platform:u,elements:m}=t,{apply:f=()=>{},...h}=an(e,t),y=await _c(t,h),g=nn(c),b=po(c),w=Ca(c)==="y",{width:C,height:N}=d.floating;let S,A;g==="top"||g==="bottom"?(S=g,A=b===(await(u.isRTL==null?void 0:u.isRTL(m.floating))?"start":"end")?"left":"right"):(A=g,S=b==="end"?"top":"bottom");const D=N-y.top-y.bottom,M=C-y.left-y.right,V=Xn(N-y[S],D),O=Xn(C-y[A],M),B=!t.middlewareData.shift;let E=V,k=O;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(k=M),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(E=D),B&&!b){const te=Ms(y.left,0),re=Ms(y.right,0),ce=Ms(y.top,0),de=Ms(y.bottom,0);w?k=C-2*(te!==0||re!==0?te+re:Ms(y.left,y.right)):E=N-2*(ce!==0||de!==0?ce+de:Ms(y.top,y.bottom))}await f({...t,availableWidth:k,availableHeight:E});const J=await u.getDimensions(m.floating);return C!==J.width||N!==J.height?{reset:{rects:!0}}:{}}}};function Lu(){return typeof window<"u"}function ho(e){return Pw(e)?(e.nodeName||"").toLowerCase():"#document"}function Ps(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ka(e){var t;return(t=(Pw(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Pw(e){return Lu()?e instanceof Node||e instanceof Ps(e).Node:!1}function da(e){return Lu()?e instanceof Element||e instanceof Ps(e).Element:!1}function Ma(e){return Lu()?e instanceof HTMLElement||e instanceof Ps(e).HTMLElement:!1}function w1(e){return!Lu()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ps(e).ShadowRoot}const ND=new Set(["inline","contents"]);function sl(e){const{overflow:t,overflowX:r,overflowY:i,display:c}=ua(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!ND.has(c)}const SD=new Set(["table","td","th"]);function CD(e){return SD.has(ho(e))}const AD=[":popover-open",":modal"];function Uu(e){return AD.some(t=>{try{return e.matches(t)}catch{return!1}})}const TD=["transform","translate","scale","rotate","perspective"],OD=["transform","translate","scale","rotate","perspective","filter"],ED=["paint","layout","strict","content"];function Mx(e){const t=Rx(),r=da(e)?ua(e):e;return TD.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||OD.some(i=>(r.willChange||"").includes(i))||ED.some(i=>(r.contain||"").includes(i))}function DD(e){let t=Wn(e);for(;Ma(t)&&!io(t);){if(Mx(t))return t;if(Uu(t))return null;t=Wn(t)}return null}function Rx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const MD=new Set(["html","body","#document"]);function io(e){return MD.has(ho(e))}function ua(e){return Ps(e).getComputedStyle(e)}function Bu(e){return da(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wn(e){if(ho(e)==="html")return e;const t=e.assignedSlot||e.parentNode||w1(e)&&e.host||ka(e);return w1(t)?t.host:t}function _w(e){const t=Wn(e);return io(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ma(t)&&sl(t)?t:_w(t)}function Lc(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const c=_w(e),d=c===((i=e.ownerDocument)==null?void 0:i.body),u=Ps(c);if(d){const m=Mh(u);return t.concat(u,u.visualViewport||[],sl(c)?c:[],m&&r?Lc(m):[])}return t.concat(c,Lc(c,[],r))}function Mh(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lw(e){const t=ua(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const c=Ma(e),d=c?e.offsetWidth:r,u=c?e.offsetHeight:i,m=lu(r)!==d||lu(i)!==u;return m&&(r=d,i=u),{width:r,height:i,$:m}}function kx(e){return da(e)?e:e.contextElement}function so(e){const t=kx(e);if(!Ma(t))return Aa(1);const r=t.getBoundingClientRect(),{width:i,height:c,$:d}=Lw(t);let u=(d?lu(r.width):r.width)/i,m=(d?lu(r.height):r.height)/c;return(!u||!Number.isFinite(u))&&(u=1),(!m||!Number.isFinite(m))&&(m=1),{x:u,y:m}}const RD=Aa(0);function Uw(e){const t=Ps(e);return!Rx()||!t.visualViewport?RD:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kD(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Ps(e)?!1:t}function Vr(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const c=e.getBoundingClientRect(),d=kx(e);let u=Aa(1);t&&(i?da(i)&&(u=so(i)):u=so(e));const m=kD(d,r,i)?Uw(d):Aa(0);let f=(c.left+m.x)/u.x,h=(c.top+m.y)/u.y,y=c.width/u.x,g=c.height/u.y;if(d){const b=Ps(d),w=i&&da(i)?Ps(i):i;let C=b,N=Mh(C);for(;N&&i&&w!==C;){const S=so(N),A=N.getBoundingClientRect(),D=ua(N),M=A.left+(N.clientLeft+parseFloat(D.paddingLeft))*S.x,V=A.top+(N.clientTop+parseFloat(D.paddingTop))*S.y;f*=S.x,h*=S.y,y*=S.x,g*=S.y,f+=M,h+=V,C=Ps(N),N=Mh(C)}}return uu({width:y,height:g,x:f,y:h})}function zu(e,t){const r=Bu(e).scrollLeft;return t?t.left+r:Vr(ka(e)).left+r}function Bw(e,t){const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-zu(e,r),c=r.top+t.scrollTop;return{x:i,y:c}}function PD(e){let{elements:t,rect:r,offsetParent:i,strategy:c}=e;const d=c==="fixed",u=ka(i),m=t?Uu(t.floating):!1;if(i===u||m&&d)return r;let f={scrollLeft:0,scrollTop:0},h=Aa(1);const y=Aa(0),g=Ma(i);if((g||!g&&!d)&&((ho(i)!=="body"||sl(u))&&(f=Bu(i)),Ma(i))){const w=Vr(i);h=so(i),y.x=w.x+i.clientLeft,y.y=w.y+i.clientTop}const b=u&&!g&&!d?Bw(u,f):Aa(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-f.scrollLeft*h.x+y.x+b.x,y:r.y*h.y-f.scrollTop*h.y+y.y+b.y}}function _D(e){return Array.from(e.getClientRects())}function LD(e){const t=ka(e),r=Bu(e),i=e.ownerDocument.body,c=Ms(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),d=Ms(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let u=-r.scrollLeft+zu(e);const m=-r.scrollTop;return ua(i).direction==="rtl"&&(u+=Ms(t.clientWidth,i.clientWidth)-c),{width:c,height:d,x:u,y:m}}const N1=25;function UD(e,t){const r=Ps(e),i=ka(e),c=r.visualViewport;let d=i.clientWidth,u=i.clientHeight,m=0,f=0;if(c){d=c.width,u=c.height;const y=Rx();(!y||y&&t==="fixed")&&(m=c.offsetLeft,f=c.offsetTop)}const h=zu(i);if(h<=0){const y=i.ownerDocument,g=y.body,b=getComputedStyle(g),w=y.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,C=Math.abs(i.clientWidth-g.clientWidth-w);C<=N1&&(d-=C)}else h<=N1&&(d+=h);return{width:d,height:u,x:m,y:f}}const BD=new Set(["absolute","fixed"]);function zD(e,t){const r=Vr(e,!0,t==="fixed"),i=r.top+e.clientTop,c=r.left+e.clientLeft,d=Ma(e)?so(e):Aa(1),u=e.clientWidth*d.x,m=e.clientHeight*d.y,f=c*d.x,h=i*d.y;return{width:u,height:m,x:f,y:h}}function S1(e,t,r){let i;if(t==="viewport")i=UD(e,r);else if(t==="document")i=LD(ka(e));else if(da(t))i=zD(t,r);else{const c=Uw(e);i={x:t.x-c.x,y:t.y-c.y,width:t.width,height:t.height}}return uu(i)}function zw(e,t){const r=Wn(e);return r===t||!da(r)||io(r)?!1:ua(r).position==="fixed"||zw(r,t)}function HD(e,t){const r=t.get(e);if(r)return r;let i=Lc(e,[],!1).filter(m=>da(m)&&ho(m)!=="body"),c=null;const d=ua(e).position==="fixed";let u=d?Wn(e):e;for(;da(u)&&!io(u);){const m=ua(u),f=Mx(u);!f&&m.position==="fixed"&&(c=null),(d?!f&&!c:!f&&m.position==="static"&&!!c&&BD.has(c.position)||sl(u)&&!f&&zw(e,u))?i=i.filter(y=>y!==u):c=m,u=Wn(u)}return t.set(e,i),i}function ID(e){let{element:t,boundary:r,rootBoundary:i,strategy:c}=e;const u=[...r==="clippingAncestors"?Uu(t)?[]:HD(t,this._c):[].concat(r),i],m=u[0],f=u.reduce((h,y)=>{const g=S1(t,y,c);return h.top=Ms(g.top,h.top),h.right=Xn(g.right,h.right),h.bottom=Xn(g.bottom,h.bottom),h.left=Ms(g.left,h.left),h},S1(t,m,c));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function VD(e){const{width:t,height:r}=Lw(e);return{width:t,height:r}}function qD(e,t,r){const i=Ma(t),c=ka(t),d=r==="fixed",u=Vr(e,!0,d,t);let m={scrollLeft:0,scrollTop:0};const f=Aa(0);function h(){f.x=zu(c)}if(i||!i&&!d)if((ho(t)!=="body"||sl(c))&&(m=Bu(t)),i){const w=Vr(t,!0,d,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else c&&h();d&&!i&&c&&h();const y=c&&!i&&!d?Bw(c,m):Aa(0),g=u.left+m.scrollLeft-f.x-y.x,b=u.top+m.scrollTop-f.y-y.y;return{x:g,y:b,width:u.width,height:u.height}}function Op(e){return ua(e).position==="static"}function C1(e,t){if(!Ma(e)||ua(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return ka(e)===r&&(r=r.ownerDocument.body),r}function Hw(e,t){const r=Ps(e);if(Uu(e))return r;if(!Ma(e)){let c=Wn(e);for(;
vendor: 8,997 bytes, line 49
49c&&!io(c);){if(da(c)&&!Op(c))return c;c=Wn(c)}return r}let i=C1(e,t);for(;i&&CD(i)&&Op(i);)i=C1(i,t);return i&&io(i)&&Op(i)&&!Mx(i)?r:i||DD(e)||r}const FD=async function(e){const t=this.getOffsetParent||Hw,r=this.getDimensions,i=await r(e.floating);return{reference:qD(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function GD(e){return ua(e).direction==="rtl"}const QD={convertOffsetParentRelativeRectToViewportRelativeRect:PD,getDocumentElement:ka,getClippingRect:ID,getOffsetParent:Hw,getElementRects:FD,getClientRects:_D,getDimensions:VD,getScale:so,isElement:da,isRTL:GD};function Iw(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function KD(e,t){let r=null,i;const c=ka(e);function d(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function u(m,f){m===void 0&&(m=!1),f===void 0&&(f=1),d();const h=e.getBoundingClientRect(),{left:y,top:g,width:b,height:w}=h;if(m||t(),!b||!w)return;const C=kd(g),N=kd(c.clientWidth-(y+b)),S=kd(c.clientHeight-(g+w)),A=kd(y),M={rootMargin:-C+"px "+-N+"px "+-S+"px "+-A+"px",threshold:Ms(0,Xn(1,f))||1};let V=!0;function O(B){const E=B[0].intersectionRatio;if(E!==f){if(!V)return u();E?u(!1,E):i=setTimeout(()=>{u(!1,1e-7)},1e3)}E===1&&!Iw(h,e.getBoundingClientRect())&&u(),V=!1}try{r=new IntersectionObserver(O,{...M,root:c.ownerDocument})}catch{r=new IntersectionObserver(O,M)}r.observe(e)}return u(!0),d}function YD(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=kx(e),y=c||d?[...h?Lc(h):[],...Lc(t)]:[];y.forEach(A=>{c&&A.addEventListener("scroll",r,{passive:!0}),d&&A.addEventListener("resize",r)});const g=h&&m?KD(h,r):null;let b=-1,w=null;u&&(w=new ResizeObserver(A=>{let[D]=A;D&&D.target===h&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var M;(M=w)==null||M.observe(t)})),r()}),h&&!f&&w.observe(h),w.observe(t));let C,N=f?Vr(e):null;f&&S();function S(){const A=Vr(e);N&&!Iw(N,A)&&r(),N=A,C=requestAnimationFrame(S)}return r(),()=>{var A;y.forEach(D=>{c&&D.removeEventListener("scroll",r),d&&D.removeEventListener("resize",r)}),g?.(),(A=w)==null||A.disconnect(),w=null,f&&cancelAnimationFrame(C)}}const $D=vD,XD=bD,WD=xD,ZD=wD,JD=gD,A1=hD,e6=jD,t6=(e,t,r)=>{const i=new Map,c={platform:QD,...r},d={...c.platform,_c:i};return pD(e,t,{...c,platform:d})};var s6=typeof document<"u",a6=function(){},Xd=s6?v.useLayoutEffect:a6;function mu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,i,c;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(i=r;i--!==0;)if(!mu(e[i],t[i]))return!1;return!0}if(c=Object.keys(e),r=c.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(t,c[i]))return!1;for(i=r;i--!==0;){const d=c[i];if(!(d==="_owner"&&e.$$typeof)&&!mu(e[d],t[d]))return!1}return!0}return e!==e&&t!==t}function Vw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function T1(e,t){const r=Vw(e);return Math.round(t*r)/r}function Ep(e){const t=v.useRef(e);return Xd(()=>{t.current=e}),t}function n6(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:c,elements:{reference:d,floating:u}={},transform:m=!0,whileElementsMounted:f,open:h}=e,[y,g]=v.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=v.useState(i);mu(b,i)||w(i);const[C,N]=v.useState(null),[S,A]=v.useState(null),D=v.useCallback(z=>{z!==B.current&&(B.current=z,N(z))},[]),M=v.useCallback(z=>{z!==E.current&&(E.current=z,A(z))},[]),V=d||C,O=u||S,B=v.useRef(null),E=v.useRef(null),k=v.useRef(y),J=f!=null,te=Ep(f),re=Ep(c),ce=Ep(h),de=v.useCallback(()=>{if(!B.current||!E.current)return;const z={placement:t,strategy:r,middleware:b};re.current&&(z.platform=re.current),t6(B.current,E.current,z).then(Z=>{const he={...Z,isPositioned:ce.current!==!1};ue.current&&!mu(k.current,he)&&(k.current=he,fo.flushSync(()=>{g(he)}))})},[b,t,r,re,ce]);Xd(()=>{h===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g(z=>({...z,isPositioned:!1})))},[h]);const ue=v.useRef(!1);Xd(()=>(ue.current=!0,()=>{ue.current=!1}),[]),Xd(()=>{if(V&&(B.current=V),O&&(E.current=O),V&&O){if(te.current)return te.current(V,O,de);de()}},[V,O,de,te,J]);const pe=v.useMemo(()=>({reference:B,floating:E,setReference:D,setFloating:M}),[D,M]),P=v.useMemo(()=>({reference:V,floating:O}),[V,O]),I=v.useMemo(()=>{const z={position:r,left:0,top:0};if(!P.floating)return z;const Z=T1(P.floating,y.x),he=T1(P.floating,y.y);return m?{...z,transform:"translate("+Z+"px, "+he+"px)",...Vw(P.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:Z,top:he}},[r,m,P.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:de,refs:pe,elements:P,floatingStyles:I}),[y,de,pe,P,I])}const r6=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:c}=typeof e=="function"?e(r):e;return i&&t(i)?i.current!=null?A1({element:i.current,padding:c}).fn(r):{}:i?A1({element:i,padding:c}).fn(r):{}}}},i6=(e,t)=>({...$D(e),options:[e,t]}),o6=(e,t)=>({...XD(e),options:[e,t]}),c6=(e,t)=>({...e6(e),options:[e,t]}),l6=(e,t)=>({...WD(e),options:[e,t]}),d6=(e,t)=>({...ZD(e),options:[e,t]}),u6=(e,t)=>({...JD(e),options:[e,t]}),m6=(e,t)=>({...r6(e),options:[e,t]});var f6="Arrow",qw=v.forwardRef((e,t)=>{const{children:r,width:i=10,height:c=5,...d}=e;return n.jsx($e.svg,{...d,ref:t,width:i,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:n.jsx("polygon",{points:"0,0 30,0 15,10"})})});qw.displayName=f6;var p6=qw;function h6(e){const[t,r]=v.useState(void 0);return ns(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let u,m;if("borderBoxSize"in d){const f=d.borderBoxSize,h=Array.isArray(f)?f[0]:f;u=h.inlineSize,m=h.blockSize}else u=e.offsetWidth,m=e.offsetHeight;r({width:u,height:m})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var Px="Popper",[Fw,xo]=tr(Px),[x6,Gw]=Fw(Px),Qw=e=>{const{__scopePopper:t,children:r}=e,[i,c]=v.useState(null);return n.jsx(x6,{scope:t,anchor:i,onAnchorChange:c,children:r})};Qw.displayName=Px;var Kw="PopperAnchor",Yw=v.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...c}=e,d=Gw(Kw,r),u=v.useRef(null),m=nt(t,u),f=v.useRef(null);return v.useEffect(()=>{const h=f.current;f.current=i?.current||u.current,h!==f.current&&d.onAnchorChange(f.current)}),i?null:n.jsx($e.div,{...c,ref:m})});Yw.displayName=Kw;var _x="PopperContent",[g6,y6]=Fw(_x),$w=v.forwardRef((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:c=0,align:d="center",alignOffset:u=0,arrowPadding:m=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:y=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:C,...N}=e,S=Gw(_x,r),[A,D]=v.useState(null),M=nt(t,_=>D(_)),[V,O]=v.useState(null),B=h6(V),E=B?.width??0,k=B?.height??0,J=i+(d!=="center"?"-"+d:""),te=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},re=Array.isArray(h)?h:[h],ce=re.length>0,de={padding:te,boundary:re.filter(b6),altBoundary:ce},{refs:ue,floatingStyles:pe,placement:P,isPositioned:I,middlewareData:z}=n6({strategy:"fixed",placement:J,whileElementsMounted:(..._)=>YD(..._,{animationFrame:w==="always"}),elements:{reference:S.anchor},middleware:[i6({mainAxis:c+k,alignmentAxis:u}),f&&o6({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?c6():void 0,...de}),f&&l6({...de}),d6({...de,apply:({elements:_,rects:X,availableWidth:se,availableHeight:ge})=>{const{width:ie,height:fe}=X.reference,Pe=_.floating.style;Pe.setProperty("--radix-popper-available-width",`${se}px`),Pe.setProperty("--radix-popper-available-height",`${ge}px`),Pe.setProperty("--radix-popper-anchor-width",`${ie}px`),Pe.setProperty("--radix-popper-anchor-height",`${fe}px`)}}),V&&m6({element:V,padding:m}),j6({arrowWidth:E,arrowHeight:k}),b&&u6({strategy:"referenceHidden",...de})]}),[Z,he]=Zw(P),R=Da(C);ns(()=>{I&&R?.()},[I,R]);const Y=z.arrow?.x,F=z.arrow?.y,$=z.arrow?.centerOffset!==0,[le,xe]=v.useState();return ns(()=>{A&&xe(window.getComputedStyle(A).zIndex)},[A]),n.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...pe,transform:I?pe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:le,"--radix-popper-transform-origin":[z.transformOrigin?.x,z.transformOrigin?.y].join(" "),...z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:n.jsx(g6,{scope:r,placedSide:Z,onArrowChange:O,arrowX:Y,arrowY:F,shouldHideArrow:$,children:n.jsx($e.div,{"data-side":Z,"data-align":he,...N,ref:M,style:{...N.style,animation:I?void 0:"none"}})})})});$w.displayName=_x;var Xw="PopperArrow",v6={top:"bottom",right:"left",bottom:"top",left:"r
49ight"},Ww=v.forwardRef(function(t,r){const{__scopePopper:i,...c}=t,d=y6(Xw,i),u=v6[d.placedSide];return n.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:n.jsx(p6,{...c,ref:r,style:{...c.style,display:"block"}})})});Ww.displayName=Xw;function b6(e){return e!==null}var j6=e=>({name:"transformOrigin",options:e,fn(t){const{placement:r,rects:i,middlewareData:c}=t,u=c.arrow?.centerOffset!==0,m=u?0:e.arrowWidth,f=u?0:e.arrowHeight,[h,y]=Zw(r),g={start:"0%",center:"50%",end:"100%"}[y],b=(c.arrow?.x??0)+m/2,w=(c.arrow?.y??0)+f/2;let C="",N="";return h==="bottom"?(C=u?g:`${b}px`,N=`${-f}px`):h==="top"?(C=u?g:`${b}px`,N=`${i.floating.height+f}px`):h==="right"?(C=`${-f}px`,N=u?g:`${w}px`):h==="left"&&(C=`${i.floating.width+f}px`,N=u?g:`${w}px`),{data:{x:C,y:N}}}});function Zw(e){const[t,r="center"]=e.split("-");return[t,r]}var Jw=Qw,Lx=Yw,Ux=$w,Bx=Ww,w6="Portal",Hu=v.forwardRef((e,t)=>{const{container:r,...i}=e,[c,d]=v.useState(!1);ns(()=>d(!0),[]);const u=r||c&&globalThis?.document?.body;return u?Aw.createPortal(n.jsx($e.div,{...i,ref:t}),u):null});Hu.displayName=w6;function N6(e,t){return v.useReducer((r,i)=>t[r][i]??r,e)}var dn=e=>{const{present:t,children:r}=e,i=S6(t),c=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),d=nt(i.ref,C6(c));return typeof r=="function"||i.isPresent?v.cloneElement(c,{ref:d}):null};dn.displayName="Presence";function S6(e){const[t,r]=v.useState(),i=v.useRef(null),c=v.useRef(e),d=v.useRef("none"),u=e?"mounted":"unmounted",[m,f]=N6(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=Pd(i.current);d.current=m==="mounted"?h:"none"},[m]),ns(()=>{const h=i.current,y=c.current;if(y!==e){const b=d.current,w=Pd(h);e?f("MOUNT"):w==="none"||h?.display==="none"?f("UNMOUNT"):f(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),c.current=e}},[e,f]),ns(()=>{if(t){let h;const y=t.ownerDocument.defaultView??window,g=w=>{const N=Pd(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&N&&(f("ANIMATION_END"),!c.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",h=y.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},b=w=>{w.target===t&&(d.current=Pd(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{y.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function Pd(e){return e?.animationName||"none"}function C6(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var A6=Ou[" useInsertionEffect ".trim().toString()]||ns;function Uc({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[c,d,u]=T6({defaultProp:t,onChange:r}),m=e!==void 0,f=m?e:c;{const y=v.useRef(e!==void 0);v.useEffect(()=>{const g=y.current;g!==m&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${m?"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=m},[m,i])}const h=v.useCallback(y=>{if(m){const g=O6(y)?y(e):y;g!==e&&u.current?.(g)}else d(y)},[m,e,d,u]);return[f,h]}function T6({defaultProp:e,onChange:t}){const[r,i]=v.useState(e),c=v.useRef(r),d=v.useRef(t);return A6(()=>{d.current=t},[t]),v.useEffect(()=>{c.current!==r&&(d.current?.(r),c.current=r)},[r,c]),[r,i,d]}function O6(e){return typeof e=="function"}var eN=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"}),E6="VisuallyHidden",tN=v.forwardRef((e,t)=>
vendor: 4,387 bytes, line 49
49n.jsx($e.span,{...e,ref:t,style:{...eN,...e.style}}));tN.displayName=E6;var D6=tN,[Iu]=tr("Tooltip",[xo]),zx=xo(),sN="TooltipProvider",M6=700,O1="tooltip.open",[R6,aN]=Iu(sN),nN=e=>{const{__scopeTooltip:t,delayDuration:r=M6,skipDelayDuration:i=300,disableHoverableContent:c=!1,children:d}=e,u=v.useRef(!0),m=v.useRef(!1),f=v.useRef(0);return v.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),n.jsx(R6,{scope:t,isOpenDelayedRef:u,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(f.current),u.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>u.current=!0,i)},[i]),isPointerInTransitRef:m,onPointerInTransitChange:v.useCallback(h=>{m.current=h},[]),disableHoverableContent:c,children:d})};nN.displayName=sN;var rN="Tooltip",[iz,Vu]=Iu(rN),Rh="TooltipTrigger",k6=v.forwardRef((e,t)=>{const{__scopeTooltip:r,...i}=e,c=Vu(Rh,r),d=aN(Rh,r),u=zx(r),m=v.useRef(null),f=nt(t,m,c.onTriggerChange),h=v.useRef(!1),y=v.useRef(!1),g=v.useCallback(()=>h.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",g),[g]),n.jsx(Lx,{asChild:!0,...u,children:n.jsx($e.button,{"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute,...i,ref:f,onPointerMove:Oe(e.onPointerMove,b=>{b.pointerType!=="touch"&&!y.current&&!d.isPointerInTransitRef.current&&(c.onTriggerEnter(),y.current=!0)}),onPointerLeave:Oe(e.onPointerLeave,()=>{c.onTriggerLeave(),y.current=!1}),onPointerDown:Oe(e.onPointerDown,()=>{c.open&&c.onClose(),h.current=!0,document.addEventListener("pointerup",g,{once:!0})}),onFocus:Oe(e.onFocus,()=>{h.current||c.onOpen()}),onBlur:Oe(e.onBlur,c.onClose),onClick:Oe(e.onClick,c.onClose)})})});k6.displayName=Rh;var P6="TooltipPortal",[oz,_6]=Iu(P6,{forceMount:void 0}),oo="TooltipContent",L6=v.forwardRef((e,t)=>{const r=_6(oo,e.__scopeTooltip),{forceMount:i=r.forceMount,side:c="top",...d}=e,u=Vu(oo,e.__scopeTooltip);return n.jsx(dn,{present:i||u.open,children:u.disableHoverableContent?n.jsx(iN,{side:c,...d,ref:t}):n.jsx(U6,{side:c,...d,ref:t})})}),U6=v.forwardRef((e,t)=>{const r=Vu(oo,e.__scopeTooltip),i=aN(oo,e.__scopeTooltip),c=v.useRef(null),d=nt(t,c),[u,m]=v.useState(null),{trigger:f,onClose:h}=r,y=c.current,{onPointerInTransitChange:g}=i,b=v.useCallback(()=>{m(null),g(!1)},[g]),w=v.useCallback((C,N)=>{const S=C.currentTarget,A={x:C.clientX,y:C.clientY},D=V6(A,S.getBoundingClientRect()),M=q6(A,D),V=F6(N.getBoundingClientRect()),O=Q6([...M,...V]);m(O),g(!0)},[g]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(f&&y){const C=S=>w(S,y),N=S=>w(S,f);return f.addEventListener("pointerleave",C),y.addEventListener("pointerleave",N),()=>{f.removeEventListener("pointerleave",C),y.removeEventListener("pointerleave",N)}}},[f,y,w,b]),v.useEffect(()=>{if(u){const C=N=>{const S=N.target,A={x:N.clientX,y:N.clientY},D=f?.contains(S)||y?.contains(S),M=!G6(A,u);D?b():M&&(b(),h())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[f,y,u,h,b]),n.jsx(iN,{...e,ref:d})}),[B6,z6]=Iu(rN,{isInside:!1}),H6=VE("TooltipContent"),iN=v.forwardRef((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":c,onEscapeKeyDown:d,onPointerDownOutside:u,...m}=e,f=Vu(oo,r),h=zx(r),{onClose:y}=f;return v.useEffect(()=>(document.addEventListener(O1,y),()=>document.removeEventListener(O1,y)),[y]),v.useEffect(()=>{if(f.trigger){const g=b=>{b.target?.contains(f.trigger)&&y()};return window.addEventListener("scroll",g,{capture:!0}),()=>window.removeEventListener("scroll",g,{capture:!0})}},[f.trigger,y]),n.jsx(tl,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:g=>g.preventDefault(),onDismiss:y,children:n.jsxs(Ux,{"data-state":f.stateAttribute,...h,...m,ref:t,style:{...m.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:[n.jsx(H6,{children:i}),n.jsx(B6,{scope:r,isInside:!0,children:n.jsx(D6,{id:f.contentId,role:"tooltip",children:c||i})})]})})});L6.displayName=oo;var oN="TooltipArrow",I6=v.forwardRef((e,t)=>
vendor: 8,872 bytes, line 49
49{const{__scopeTooltip:r,...i}=e,c=zx(r);return z6(oN,r).isInside?null:n.jsx(Bx,{...c,...i,ref:t})});I6.displayName=oN;function V6(e,t){const r=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),c=Math.abs(t.right-e.x),d=Math.abs(t.left-e.x);switch(Math.min(r,i,c,d)){case d:return"left";case c:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function q6(e,t,r=5){const i=[];switch(t){case"top":i.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":i.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":i.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":i.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return i}function F6(e){const{top:t,right:r,bottom:i,left:c}=e;return[{x:c,y:t},{x:r,y:t},{x:r,y:i},{x:c,y:i}]}function G6(e,t){const{x:r,y:i}=e;let c=!1;for(let d=0,u=t.length-1;d<t.length;u=d++){const m=t[d],f=t[u],h=m.x,y=m.y,g=f.x,b=f.y;y>i!=b>i&&r<(g-h)*(i-y)/(b-y)+h&&(c=!c)}return c}function Q6(e){const t=e.slice();return t.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),K6(t)}function K6(e){if(e.length<=1)return e.slice();const t=[];for(let i=0;i<e.length;i++){const c=e[i];for(;t.length>=2;){const d=t[t.length-1],u=t[t.length-2];if((d.x-u.x)*(c.y-u.y)>=(d.y-u.y)*(c.x-u.x))t.pop();else break}t.push(c)}t.pop();const r=[];for(let i=e.length-1;i>=0;i--){const c=e[i];for(;r.length>=2;){const d=r[r.length-1],u=r[r.length-2];if((d.x-u.x)*(c.y-u.y)>=(d.y-u.y)*(c.x-u.x))r.pop();else break}r.push(c)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}var Y6=nN;function cN(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var c=e.length;for(t=0;t<c;t++)e[t]&&(r=cN(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function lN(){for(var e,t,r=0,i="",c=arguments.length;r<c;r++)(e=arguments[r])&&(t=cN(e))&&(i&&(i+=" "),i+=t);return i}const Hx="-",$6=e=>{const t=W6(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:u=>{const m=u.split(Hx);return m[0]===""&&m.length!==1&&m.shift(),dN(m,t)||X6(u)},getConflictingClassGroupIds:(u,m)=>{const f=r[u]||[];return m&&i[u]?[...f,...i[u]]:f}}},dN=(e,t)=>{if(e.length===0)return t.classGroupId;const r=e[0],i=t.nextPart.get(r),c=i?dN(e.slice(1),i):void 0;if(c)return c;if(t.validators.length===0)return;const d=e.join(Hx);return t.validators.find(({validator:u})=>u(d))?.classGroupId},E1=/^\[(.+)\]$/,X6=e=>{if(E1.test(e)){const t=E1.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},W6=e=>{const{theme:t,classGroups:r}=e,i={nextPart:new Map,validators:[]};for(const c in r)kh(r[c],i,c,t);return i},kh=(e,t,r,i)=>{e.forEach(c=>{if(typeof c=="string"){const d=c===""?t:D1(t,c);d.classGroupId=r;return}if(typeof c=="function"){if(Z6(c)){kh(c(i),t,r,i);return}t.validators.push({validator:c,classGroupId:r});return}Object.entries(c).forEach(([d,u])=>{kh(u,D1(t,d),r,i)})})},D1=(e,t)=>{let r=e;return t.split(Hx).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},Z6=e=>e.isThemeGetter,J6=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,i=new Map;const c=(d,u)=>{r.set(d,u),t++,t>e&&(t=0,i=r,r=new Map)};return{get(d){let u=r.get(d);if(u!==void 0)return u;if((u=i.get(d))!==void 0)return c(d,u),u},set(d,u){r.has(d)?r.set(d,u):c(d,u)}}},Ph="!",_h=":",eM=_h.length,tM=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=c=>{const d=[];let u=0,m=0,f=0,h;for(let C=0;C<c.length;C++){let N=c[C];if(u===0&&m===0){if(N===_h){d.push(c.slice(f,C)),f=C+eM;continue}if(N==="/"){h=C;continue}}N==="["?u++:N==="]"?u--:N==="("?m++:N===")"&&m--}const y=d.length===0?c:c.substring(f),g=sM(y),b=g!==y,w=h&&h>f?h-f:void 0;return{modifiers:d,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:w}};if(t){const c=t+_h,d=i;i=u=>u.startsWith(c)?d(u.substring(c.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(r){const c=i;i=d=>r({className:d,parseClassName:c})}return i},sM=e=>e.endsWith(Ph)?e.substring(0,e.length-1):e.startsWith(Ph)?e.substring(1):e,aM=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const c=[];let d=[];return i.forEach(u=>{u[0]==="["||t[u]?(c.push(...d.sort(),u),d=[]):d.push(u)}),c.push(...d.sort()),c}},nM=e=>({cache:J6(e.cacheSize),parseClassName:tM(e),sortModifiers:aM(e),...$6(e)}),rM=/\s+/,iM=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:d}=t,u=[],m=e.trim().split(rM);let f="";for(let h=m.length-1;h>=0;h-=1){const y=m[h],{isExternal:g,modifiers:b,hasImportantModifier:w,baseClassName:C,maybePostfixModifierPosition:N}=r(y);if(g){f=y+(f.length>0?" "+f:f);continue}let S=!!N,A=i(S?C.substring(0,N):C);if(!A){if(!S){f=y+(f.length>0?" "+f:f);continue}if(A=i(C),!A){f=y+(f.length>0?" "+f:f);continue}S=!1}const D=d(b).join(":"),M=w?D+Ph:D,V=M+A;if(u.includes(V))continue;u.push(V);const O=c(A,S);for(let B=0;B<O.length;++B){const E=O[B];u.push(M+E)}f=y+(f.length>0?" "+f:f)}return f};function oM(){let e=0,t,r,i="";for(;e<arguments.length;)(t=arguments[e++])&&(r=uN(t))&&(i&&(i+=" "),i+=r);return i}const uN=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=uN(e[i]))&&(r&&(r+=" "),r+=t);return r};function cM(e,...t){let r,i,c,d=u;function u(f){const h=t.reduce((y,g)=>g(y),e());return r=nM(h),i=r.cache.get,c=r.cache.set,d=m,m(f)}function m(f){const h=i(f);if(h)return h;const y=iM(f,r);return c(f,y),y}return function(){return d(oM.apply(null,arguments))}}const Bt=e=>{const t=r=>r[e]||[];return t.isThemeGetter=!0,t},mN=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,fN=/^\((?:(\w[\w-]*):)?(.+)\)$/i,lM=/^\d+\/\d+$/,dM=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,uM=/\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$/,mM=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,fM=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,pM=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gi=e=>lM.test(e),Ve=e=>!!e&&!Number.isNaN(Number(e)),Un=e=>!!e&&Number.isInteger(Number(e)),Dp=e=>e.endsWith("%")&&Ve(e.slice(0,-1)),Ja=e=>dM.test(e),hM=()=>!0,xM=e=>uM.test(e)&&!mM.test(e),pN=()=>!1,gM=e=>fM.test(e),yM=e=>pM.test(e),vM=e=>!Se(e)&&!Ce(e),bM=e=>go(e,gN,pN),Se=e=>mN.test(e),Tr=e=>go(e,yN,xM),Mp=e=>go(e,CM,Ve),M1=e=>go(e,hN,pN),jM=e=>go(e,xN,yM),_d=e=>go(e,vN,gM),Ce=e=>fN.test(e),xc=e=>yo(e,yN),wM=e=>yo(e,AM),R1=e=>yo(e,hN),NM=e=>yo(e,gN),SM=e=>yo(e,xN),Ld=e=>yo(e,vN,!0),go=(e,t,r)=>{const i=mN.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},yo=(e,t,r=!1)=>{const i=fN.exec(e);return i?i[1]?t(i[1]):r:!1},hN=e=>e==="position"||e==="percentage",xN=e=>e==="image"||e==="url",gN=e=>e==="length"||e==="size"||e==="bg-size",yN=e=>e==="length",CM=e=>e==="number",AM=e=>e==="family-name",vN=e=>e==="shadow",TM=()=>{const e=Bt("color"),t=Bt("font"),r=Bt("text"),i=Bt("font-weight"),c=Bt("tracking"),d=Bt("leading"),u=Bt("breakpoint"),m=Bt("container"),f=Bt("spacing"),h=Bt("radius"),y=Bt("shadow"),g=Bt("inset-shadow"),b=Bt("text-shadow"),w=Bt("drop-shadow"),C=Bt("blur"),N=Bt("perspective"),S=Bt("aspect"),A=Bt("ease"),D=Bt("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...V(),Ce,Se],B=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],k=()=>[Ce,Se,f],J=()=>[Gi,"full","auto",...k()],te=()=>[Un,"none","subgrid",Ce,Se],re=()=>["auto",{span:["full",Un,Ce,Se]},Un,Ce,Se],ce=()=>[Un,"auto",Ce,Se],de=()=>["auto","min","max","fr",Ce,Se],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],pe=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...k()],I=()=>[Gi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],z=()=>[e,Ce,Se],Z=()=>[...V(),R1,M1,{position:[Ce,Se]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],R=()=>["auto","cover","contain",NM,bM,{size:[Ce,Se]}],Y=()=>[Dp,xc,Tr],F=()=>["","none","full",h,Ce,Se],$=()=>["",Ve,xc,Tr],le=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],_=()=>[Ve,Dp,R1,M1],X=()=>["","none",C,Ce,Se],se=()=>["none",Ve,Ce,Se],ge=()=>["none",Ve,Ce,Se],ie=()=>[Ve,Ce,Se],fe=()=>[Gi,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ja],breakpoint:[Ja],c
vendor: 13,098 bytes, line 49
49olor:[hM],container:[Ja],"drop-shadow":[Ja],ease:["in","out","in-out"],font:[vM],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ja],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ja],shadow:[Ja],spacing:["px",Ve],text:[Ja],"text-shadow":[Ja],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gi,Se,Ce,S]}],container:["container"],columns:[{columns:[Ve,Se,Ce,m]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:O()}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:J()}],"inset-x":[{"inset-x":J()}],"inset-y":[{"inset-y":J()}],start:[{start:J()}],end:[{end:J()}],top:[{top:J()}],right:[{right:J()}],bottom:[{bottom:J()}],left:[{left:J()}],visibility:["visible","invisible","collapse"],z:[{z:[Un,"auto",Ce,Se]}],basis:[{basis:[Gi,"full","auto",m,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ve,Gi,"auto","initial","none",Se]}],grow:[{grow:["",Ve,Ce,Se]}],shrink:[{shrink:["",Ve,Ce,Se]}],order:[{order:[Un,"first","last","none",Ce,Se]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":de()}],"auto-rows":[{"auto-rows":de()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...pe(),"normal"]}],"justify-self":[{"justify-self":["auto",...pe()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...pe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...pe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...pe(),"baseline"]}],"place-self":[{"place-self":["auto",...pe()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[m,"screen",...I()]}],"min-w":[{"min-w":[m,"screen","none",...I()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[u]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",r,xc,Tr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ce,Mp]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Dp,Se]}],"font-family":[{font:[wM,Se,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[c,Ce,Se]}],"line-clamp":[{"line-clamp":[Ve,"none",Ce,Mp]}],leading:[{leading:[d,...k()]}],"list-image":[{"list-image":["none",Ce,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ce,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:z()}],"text-color":[{text:z()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ve,"from-font","auto",Ce,Tr]}],"text-decoration-color":[{decoration:z()}],"underline-offset":[{"underline-offset":[Ve,"auto",Ce,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ce,Se]}],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",Ce,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Z()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Un,Ce,Se],radial:["",Ce,Se],conic:[Un,Ce,Se]},SM,jM]}],"bg-color":[{bg:z()}],"gradient-from-pos":[{from:Y()}],"gradient-via-pos":[{via:Y()}],"gradient-to-pos":[{to:Y()}],"gradient-from":[{from:z()}],"gradient-via":[{via:z()}],"gradient-to":[{to:z()}],rounded:[{rounded:F()}],"rounded-s":[{"rounded-s":F()}],"rounded-e":[{"rounded-e":F()}],"rounded-t":[{"rounded-t":F()}],"rounded-r":[{"rounded-r":F()}],"rounded-b":[{"rounded-b":F()}],"rounded-l":[{"rounded-l":F()}],"rounded-ss":[{"rounded-ss":F()}],"rounded-se":[{"rounded-se":F()}],"rounded-ee":[{"rounded-ee":F()}],"rounded-es":[{"rounded-es":F()}],"rounded-tl":[{"rounded-tl":F()}],"rounded-tr":[{"rounded-tr":F()}],"rounded-br":[{"rounded-br":F()}],"rounded-bl":[{"rounded-bl":F()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:z()}],"border-color-x":[{"border-x":z()}],"border-color-y":[{"border-y":z()}],"border-color-s":[{"border-s":z()}],"border-color-e":[{"border-e":z()}],"border-color-t":[{"border-t":z()}],"border-color-r":[{"border-r":z()}],"border-color-b":[{"border-b":z()}],"border-color-l":[{"border-l":z()}],"divide-color":[{divide:z()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ve,Ce,Se]}],"outline-w":[{outline:["",Ve,xc,Tr]}],"outline-color":[{outline:z()}],shadow:[{shadow:["","none",y,Ld,_d]}],"shadow-color":[{shadow:z()}],"inset-shadow":[{"inset-shadow":["none",g,Ld,_d]}],"inset-shadow-color":[{"inset-shadow":z()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:z()}],"ring-offset-w":[{"ring-offset":[Ve,Tr]}],"ring-offset-color":[{"ring-offset":z()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":z()}],"text-shadow":[{"text-shadow":["none",b,Ld,_d]}],"text-shadow-color":[{"text-shadow":z()}],opacity:[{opacity:[Ve,Ce,Se]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"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":[Ve]}],"mask-image-linear-from-pos":[{"mask-linear-from":_()}],"mask-image-linear-to-pos":[{"mask-linear-to":_()}],"mask-image-linear-from-color":[{"mask-linear-from":z()}],"mask-image-linear-to-color":[{"mask-linear-to":z()}],"mask-image-t-from-pos":[{"mask-t-from":_()}],"mask-image-t-to-pos":[{"mask-t-to":_()}],"mask-image-t-from-color":[{"mask-t-from":z()}],"mask-image-t-to-color":[{"mask-t-to":z()}],"mask-image-r-from-pos":[{"mask-r-from":_()}],"mask-image-r-to-pos":[{"mask-r-to":_()}],"mask-image-r-from-color":[{"mask-r-from":z()}],"mask-image-r-to-color":[{"mask-r-to":z()}],"mask-image-b-from-pos":[{"mask-b-from":_()}],"mask-image-b-to-pos":[{"mask-b-to":_()}],"mask-image-b-from-color":[{"mask-b-from":z()}],"mask-image-b-to-color":[{"mask-b-to":z()}],"mask-image-l-from-pos":[{"mask-l-from":_()}],"mask-image-l-to-pos":[{"mask-l-to":_()}],"mask-image-l-from-color":[{"mask-l-from":z()}],"mask-image-l-to-color":[{"mask-l-to":z()}],"mask-image-x-from-pos":[{"mask-x-from":_()}],"mask-image-x-to-pos":[{"mask-x-to":_()}],"mask-image-x-from-color":[{"mask-x-from":z()}],"mask-image-x-to-color":[{"mask-x-to":z()}],"mask-image-y-from-pos":[{"mask-y-from":_()}],"mask-image-y-to-pos":[{"mask-y-to":_()}],"mask-image-y-from-color":[{"mask-y-from":z()}],"mask-image-y-to-color":[{"mask-y-to":z()}],"mask-image-radial":[{"mask-radial":[Ce,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":_()}],"mask-image-radial-to-pos":[{"mask-radial-to":_()}],"mask-image-radial-from-color":[{"mask-radial-from":z()}],"mask-image-radial-to-color":[{"mask-radial-to":z()}],"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":V()}],"mask-image-conic-pos":[{"mask-conic":[Ve]}],"mask-image-conic-from-pos":[{"mask-conic-from":_()}],"mask-image-conic-to-pos":[{"mask-conic-to":_()}],"mask-image-conic-from-color":[{"mask-conic-from":z()}],"mask-image-conic-to-color":[{"mask-conic-to":z()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Z()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ce,Se]}],filter:[{filter:["","none",Ce,Se]}],blur:[{blur:X()}],brightness:[{brightness:[Ve,Ce,Se]}],contrast:[{contrast:[Ve,Ce,Se]}],"drop-shadow":[{"drop-shadow":["","none",w,Ld,_d]}],"drop-shadow-color":[{"drop-shadow":z()}],grayscale:[{grayscale:["",Ve,Ce,Se]}],"hue-rotate":[{"hue-rotate":[Ve,Ce,Se]}],invert:[{invert:["",Ve,Ce,Se]}],saturate:[{saturate:[Ve,Ce,Se]}],sepia:[{sepia:["",Ve,Ce,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Ce,Se]}],"backdrop-blur":[{"backdrop-blur":X()}],"backdrop-brightness":[{"backdrop-brightness":[Ve,Ce,Se]}],"backdrop-contrast":[{"backdrop-contrast":[Ve,Ce,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ve,Ce,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ve,Ce,Se]}],"backdrop-invert":[{"backdrop-invert":["",Ve,Ce,Se]}],"backdrop-opacity":[{"backdrop-opacity":[Ve,Ce,Se]}],"backdrop-saturate":[{"backdrop-saturate":[Ve,Ce,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",Ve,Ce,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ce,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ve,"initial",Ce,Se]}],ease:[{ease:["linear","initial",A,Ce,Se]}],delay:[{delay:[Ve,Ce,Se]}],animate:[{animate:["none",D,Ce,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,Ce,Se]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:ie()}],"skew-x":[{"skew-x":ie()}],"skew-y":[{"skew-y":ie()}],transform:[{transform:[Ce,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}
vendor: 11,377 bytes, lines 49-104
49],translate:[{translate:fe()}],"translate-x":[{"translate-x":fe()}],"translate-y":[{"translate-y":fe()}],"translate-z":[{"translate-z":fe()}],"translate-none":["translate-none"],accent:[{accent:z()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:z()}],"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",Ce,Se]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ce,Se]}],fill:[{fill:["none",...z()]}],"stroke-w":[{stroke:[Ve,xc,Tr,Mp]}],stroke:[{stroke:["none",...z()]}],"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"]}},OM=cM(TM);function vt(...e){return OM(lN(e))}function EM({delayDuration:e=0,...t}){return n.jsx(Y6,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:e,...t})}const k1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,P1=lN,bN=(e,t)=>r=>{var i;if(t?.variants==null)return P1(e,r?.class,r?.className);const{variants:c,defaultVariants:d}=t,u=Object.keys(c).map(h=>{const y=r?.[h],g=d?.[h];if(y===null)return null;const b=k1(y)||k1(g);return c[h][b]}),m=r&&Object.entries(r).reduce((h,y)=>{let[g,b]=y;return b===void 0||(h[g]=b),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,y)=>{let{class:g,className:b,...w}=y;return Object.entries(w).every(C=>{let[N,S]=C;return Array.isArray(S)?S.includes({...d,...m}[N]):{...d,...m}[N]===S})?[...h,g,b]:h},[]);return P1(e,u,f,r?.class,r?.className)},DM=bN("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 oe({className:e,variant:t,size:r,asChild:i=!1,...c}){const d=i?Tw:"button";return n.jsx(d,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:vt(DM({variant:t,size:r,className:e})),...c})}function MM({className:e,...t}){return n.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:vt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function RM({className:e,...t}){return n.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:vt("px-6",e),...t})}/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const kM=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jN=(...e)=>e.filter((t,r,i)=>!!t&&i.indexOf(t)===r).join(" ");/** 55 * @license lucide-react v0.453.0 - ISC 56 * 57 * This source code is licensed under the ISC license. 58 * See the LICENSE file in the root directory of this source tree. 59 */var PM={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 60 * @license lucide-react v0.453.0 - ISC 61 * 62 * This source code is licensed under the ISC license. 63 * See the LICENSE file in the root directory of this source tree. 64 */const _M=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:c="",children:d,iconNode:u,...m},f)=>v.createElement("svg",{ref:f,...PM,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:jN("lucide",c),...m},[...u.map(([h,y])=>v.createElement(h,y)),...Array.isArray(d)?d:[d]]));/** 65 * @license lucide-react v0.453.0 - ISC 66 * 67 * This source code is licensed under the ISC license. 68 * See the LICENSE file in the root directory of this source tree. 69 */const je=(e,t)=>{const r=v.forwardRef(({className:i,...c},d)=>v.createElement(_M,{ref:d,iconNode:t,className:jN(`lucide-${kM(e)}`,i),...c}));return r.displayName=`${e}`,r};/** 70 * @license lucide-react v0.453.0 - ISC 71 * 72 * This source code is licensed under the ISC license. 73 * See the LICENSE file in the root directory of this source tree. 74 */const sr=je("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** 75 * @license lucide-react v0.453.0 - ISC 76 * 77 * This source code is licensed under the ISC license. 78 * See the LICENSE file in the root directory of this source tree. 79 */const rn=je("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** 80 * @license lucide-react v0.453.0 - ISC 81 * 82 * This source code is licensed under the ISC license. 83 * See the LICENSE file in the root directory of this source tree. 84 */const LM=je("Barcode",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M8 5v14",key:"1ybrkv"}],["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"M17 5v14",key:"ycjyhj"}],["path",{d:"M21 5v14",key:"nzette"}]]);/** 85 * @license lucide-react v0.453.0 - ISC 86 * 87 * This source code is licensed under the ISC license. 88 * See the LICENSE file in the root directory of this source tree. 89 */const wN=je("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/** 90 * @license lucide-react v0.453.0 - ISC 91 * 92 * This source code is licensed under the ISC license. 93 * See the LICENSE file in the root directory of this source tree. 94 */const _1=je("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 95 * @license lucide-react v0.453.0 - ISC 96 * 97 * This source code is licensed under the ISC license. 98 * See the LICENSE file in the root directory of this source tree. 99 */const UM=je("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/** 100 * @license lucide-react v0.453.0 - ISC 101 * 102 * This source code is licensed under the ISC license. 103 * See the LICENSE file in the root directory of this source tree. 104 */const Ix=je("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}
104],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/** 105 * @license lucide-react v0.453.0 - ISC 106 * 107 * This source code is licensed under the ISC license. 108 * See the LICENSE file in the root directory of this source tree. 109 */const BM=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"}]]);/** 110 * @license lucide-react v0.453.0 - ISC 111 * 112 * This source code is licensed under the ISC license. 113 * See the LICENSE file in the root directory of this source tree. 114 */const yc=je("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/** 115 * @license lucide-react v0.453.0 - ISC 116 * 117 * This source code is licensed under the ISC license. 118 * See the LICENSE file in the root directory of this source tree. 119 */const NN=je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 120 * @license lucide-react v0.453.0 - ISC 121 * 122 * This source code is licensed under the ISC license. 123 * See the LICENSE file in the root directory of this source tree. 124 */const qr=je("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 125 * @license lucide-react v0.453.0 - ISC 126 * 127 * This source code is licensed under the ISC license. 128 * See the LICENSE file in the root directory of this source tree. 129 */const zM=je("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 130 * @license lucide-react v0.453.0 - ISC 131 * 132 * This source code is licensed under the ISC license. 133 * See the LICENSE file in the root directory of this source tree. 134 */const co=je("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 135 * @license lucide-react v0.453.0 - ISC 136 * 137 * This source code is licensed under the ISC license. 138 * See the LICENSE file in the root directory of this source tree. 139 */const HM=je("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 140 * @license lucide-react v0.453.0 - ISC 141 * 142 * This source code is licensed under the ISC license. 143 * See the LICENSE file in the root directory of this source tree. 144 */const fu=je("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** 145 * @license lucide-react v0.453.0 - ISC 146 * 147 * This source code is licensed under the ISC license. 148 * See the LICENSE file in the root directory of this source tree. 149 */const ws=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"}]]);/** 150 * @license lucide-react v0.453.0 - ISC 151 * 152 * This source code is licensed under the ISC license. 153 * See the LICENSE file in the root directory of this source tree. 154 */const Wd=je("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 155 * @license lucide-react v0.453.0 - ISC 156 * 157 * This source code is licensed under the ISC license. 158 * See the LICENSE file in the root directory of this source tree. 159 */const L1=je("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** 160 * @license lucide-react v0.453.0 - ISC 161 * 162 * This source code is licensed under the ISC license. 163 * See the LICENSE file in the root directory of this source tree. 164 */const pu=je("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/** 165 * @license lucide-react v0.453.0 - ISC 166 * 167 * This source code is licensed under the ISC license. 168 * See the LICENSE file in the root directory of this source tree. 169 */const qu=je("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/** 170 * @license lucide-react v0.453.0 - ISC 171 * 172 * This source code is licensed under the ISC license. 173 * See the LICENSE file in the root directory of this source tree.
174 */const IM=je("Clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]]);/** 175 * @license lucide-react v0.453.0 - ISC 176 * 177 * This source code is licensed under the ISC license. 178 * See the LICENSE file in the root directory of this source tree. 179 */const Ta=je("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 180 * @license lucide-react v0.453.0 - ISC 181 * 182 * This source code is licensed under the ISC license. 183 * See the LICENSE file in the root directory of this source tree. 184 */const VM=je("Cookie",[["path",{d:"M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5",key:"laymnq"}],["path",{d:"M8.5 8.5v.01",key:"ue8clq"}],["path",{d:"M16 15.5v.01",key:"14dtrp"}],["path",{d:"M12 12v.01",key:"u5ubse"}],["path",{d:"M11 17v.01",key:"1hyl5a"}],["path",{d:"M7 14v.01",key:"uct60s"}]]);/** 185 * @license lucide-react v0.453.0 - ISC 186 * 187 * This source code is licensed under the ISC license. 188 * See the LICENSE file in the root directory of this source tree. 189 */const qM=je("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 190 * @license lucide-react v0.453.0 - ISC 191 * 192 * This source code is licensed under the ISC license. 193 * See the LICENSE file in the root directory of this source tree. 194 */const SN=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"}]]);/** 195 * @license lucide-react v0.453.0 - ISC 196 * 197 * This source code is licensed under the ISC license. 198 * See the LICENSE file in the root directory of this source tree. 199 */const FM=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"}]]);/** 200 * @license lucide-react v0.453.0 - ISC 201 * 202 * This source code is licensed under the ISC license. 203 * See the LICENSE file in the root directory of this source tree. 204 */const Lh=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"}]]);/** 205 * @license lucide-react v0.453.0 - ISC 206 * 207 * This source code is licensed under the ISC license. 208 * See the LICENSE file in the root directory of this source tree. 209 */const GM=je("FileBadge",[["path",{d:"M12 22h6a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"12ixgl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M5 17a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z",key:"u0c8gj"}],["path",{d:"M7 16.5 8 22l-3-1-3 1 1-5.5",key:"5gm2nr"}]]);/** 210 * @license lucide-react v0.453.0 - ISC 211 * 212 * This source code is licensed under the ISC license. 213 * See the LICENSE file in the root directory of this source tree. 214 */const Vx=je("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/** 215 * @license lucide-react v0.453.0 - ISC 216 * 217 * This source code is licensed under the ISC license. 218 * See the LICENSE file in the root directory of this source tree. 219 */const QM=je("FilePenLine",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]);/** 220 * @license lucide-react v0.453.0 - ISC 221 * 222 * This source code is licensed under the ISC license. 223 * See the LICENSE file in the root directory of this source tree. 224 */const mt=je("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** 225 * @license lucide-react v0.453.0 - ISC 226 * 227 * This source code is licensed under the ISC license. 228 * See the LICENSE file in the root directory of this source tree. 229 */const KM=je("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/** 230 * @license lucide-react v0.453.0 - ISC 231 * 232 * This source code is licensed under the ISC license. 233 * See the LICENSE file in the root directory of this source tree. 234 */const YM=je("Flag",[["path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z",key:"i9b6wo"}],["line",{x1:"4",x2:"4",y1:"22",y2:"15",key:"1cm3nv"}]]);/** 235 * @license lucide-react v0.453.0 - ISC 236 * 237 * This source code is licensed under the ISC license. 238 * See the LICENSE file in the root directory of this source tree. 239 */const Fr=je("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/** 240 * @license lucide-react v0.453.0 - ISC 241 * 242 * This source code is licensed under the ISC license. 243 * See the LICENSE file in the root directory of this source tree. 244 */const $M=je("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]]);/** 245 * @license lucide-react v0.453.0 - ISC 246 * 247 * This source code is licensed under the ISC license. 248 * See the LICENSE file in the root directory of this source tree. 249 */const XM=je("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]);/** 250 * @license lucide-react v0.453.0 - ISC 251 * 252 * This source code is licensed under the ISC license. 253 * See the LICENSE file in the root directory of this source tree.
254 */const Bc=je("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 255 * @license lucide-react v0.453.0 - ISC 256 * 257 * This source code is licensed under the ISC license. 258 * See the LICENSE file in the root directory of this source tree. 259 */const ht=je("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 260 * @license lucide-react v0.453.0 - ISC 261 * 262 * This source code is licensed under the ISC license. 263 * See the LICENSE file in the root directory of this source tree. 264 */const WM=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"}]]);/** 265 * @license lucide-react v0.453.0 - ISC 266 * 267 * This source code is licensed under the ISC license. 268 * See the LICENSE file in the root directory of this source tree. 269 */const ZM=je("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 270 * @license lucide-react v0.453.0 - ISC 271 * 272 * This source code is licensed under the ISC license. 273 * See the LICENSE file in the root directory of this source tree. 274 */const Ft=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"}]]);/** 275 * @license lucide-react v0.453.0 - ISC 276 * 277 * This source code is licensed under the ISC license. 278 * See the LICENSE file in the root directory of this source tree. 279 */const JM=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"}]]);/** 280 * @license lucide-react v0.453.0 - ISC 281 * 282 * This source code is licensed under the ISC license. 283 * See the LICENSE file in the root directory of this source tree. 284 */const eR=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"}]]);/** 285 * @license lucide-react v0.453.0 - ISC 286 * 287 * This source code is licensed under the ISC license. 288 * See the LICENSE file in the root directory of this source tree. 289 */const tR=je("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 290 * @license lucide-react v0.453.0 - ISC 291 * 292 * This source code is licensed under the ISC license. 293 * See the LICENSE file in the root directory of this source tree. 294 */const sR=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"}]]);/** 295 * @license lucide-react v0.453.0 - ISC 296 * 297 * This source code is licensed under the ISC license. 298 * See the LICENSE file in the root directory of this source tree. 299 */const la=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"}]]);/** 300 * @license lucide-react v0.453.0 - ISC 301 * 302 * This source code is licensed under the ISC license. 303 * See the LICENSE file in the root directory of this source tree. 304 */const Kn=je("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 305 * @license lucide-react v0.453.0 - ISC 306 * 307 * This source code is licensed under the ISC license. 308 * See the LICENSE file in the root directory of this source tree. 309 */const U1=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"}]]);/** 310 * @license lucide-react v0.453.0 - ISC 311 * 312 * This source code is licensed under the ISC license. 313 * See the LICENSE file in the root directory of this source tree. 314 */const aR=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"}]]);/** 315 * @license lucide-react v0.453.0 - ISC 316 * 317 * This source code is licensed under the ISC license. 318 * See the LICENSE file in the root directory of this source tree. 319 */const nR=je("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/** 320 * @license lucide-react v0.453.0 - ISC 321 * 322 * This source code is licensed under the ISC license. 323 * See the LICENSE file in the root directory of this source tree. 324 */const hu=je("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 325 * @license lucide-react v0.453.0 - ISC 326 * 327 * This source code is licensed under the ISC license. 328 * See the LICENSE file in the root directory of this source tree. 329 */const sn=je("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
329y:"oel41y"}]]);/** 330 * @license lucide-react v0.453.0 - ISC 331 * 332 * This source code is licensed under the ISC license. 333 * See the LICENSE file in the root directory of this source tree. 334 */const lo=je("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/** 335 * @license lucide-react v0.453.0 - ISC 336 * 337 * This source code is licensed under the ISC license. 338 * See the LICENSE file in the root directory of this source tree. 339 */const qx=je("Stamp",[["path",{d:"M5 22h14",key:"ehvnwv"}],["path",{d:"M19.27 13.73A2.5 2.5 0 0 0 17.5 13h-11A2.5 2.5 0 0 0 4 15.5V17a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-1.5c0-.66-.26-1.3-.73-1.77Z",key:"1sy9ra"}],["path",{d:"M14 13V8.5C14 7 15 7 15 5a3 3 0 0 0-3-3c-1.66 0-3 1-3 3s1 2 1 3.5V13",key:"cnxgux"}]]);/** 340 * @license lucide-react v0.453.0 - ISC 341 * 342 * This source code is licensed under the ISC license. 343 * See the LICENSE file in the root directory of this source tree. 344 */const rR=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"}]]);/** 345 * @license lucide-react v0.453.0 - ISC 346 * 347 * This source code is licensed under the ISC license. 348 * See the LICENSE file in the root directory of this source tree. 349 */const Gr=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"}]]);/** 350 * @license lucide-react v0.453.0 - ISC 351 * 352 * This source code is licensed under the ISC license. 353 * See the LICENSE file in the root directory of this source tree. 354 */const Qi=je("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/** 355 * @license lucide-react v0.453.0 - ISC 356 * 357 * This source code is licensed under the ISC license. 358 * See the LICENSE file in the root directory of this source tree. 359 */const zc=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"}]]);/** 360 * @license lucide-react v0.453.0 - ISC 361 * 362 * This source code is licensed under the ISC license. 363 * See the LICENSE file in the root directory of this source tree. 364 */const al=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"}]]);/** 365 * @license lucide-react v0.453.0 - ISC 366 * 367 * This source code is licensed under the ISC license. 368 * See the LICENSE file in the root directory of this source tree. 369 */const Hc=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"}]]);/** 370 * @license lucide-react v0.453.0 - ISC 371 * 372 * This source code is licensed under the ISC license. 373 * See the LICENSE file in the root directory of this source tree. 374 */const B1=je("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/** 375 * @license lucide-react v0.453.0 - ISC 376 * 377 * This source code is licensed under the ISC license. 378 * See the LICENSE file in the root directory of this source tree. 379 */const CN=je("UserPlus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/** 380 * @license lucide-react v0.453.0 - ISC 381 * 382 * This source code is licensed under the ISC license. 383 * See the LICENSE file in the root directory of this source tree. 384 */const Jr=je("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/** 385 * @license lucide-react v0.453.0 - ISC 386 * 387 * This source code is licensed under the ISC license. 388 * See the LICENSE file in the root directory of this source tree. 389 */const Rs=je("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/** 390 * @license lucide-react v0.453.0 - ISC 391 * 392 * This source code is licensed under the ISC license. 393 * See the LICENSE file in the root directory of this source tree. 394 */const _s=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}
vendor: 4,774 bytes, lines 394-407
394],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/** 395 * @license lucide-react v0.453.0 - ISC 396 * 397 * This source code is licensed under the ISC license. 398 * See the LICENSE file in the root directory of this source tree. 399 */const iR=je("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function oR(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,i,c,d,u=[],m="",f=e.split("/");for(f[0]||f.shift();c=f.shift();)r=c[0],r==="*"?(u.push(r),m+=c[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(i=c.indexOf("?",1),d=c.indexOf(".",1),u.push(c.substring(1,~i?i:~d?d:c.length)),m+=~i&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(m+=(~i?"?":"")+"\\"+c.substring(d))):m+="/"+c;return{keys:u,pattern:new RegExp("^"+m+(t?"(?=$|/)":"/?$"),"i")}}var Rp={exports:{}},kp={};/** 400 * @license React 401 * use-sync-external-store-shim.production.js 402 * 403 * Copyright (c) Meta Platforms, Inc. and affiliates. 404 * 405 * This source code is licensed under the MIT license found in the 406 * LICENSE file in the root directory of this source tree. 407 */var z1;function cR(){if(z1)return kp;z1=1;var e=Tu();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:t,i=e.useState,c=e.useEffect,d=e.useLayoutEffect,u=e.useDebugValue;function m(g,b){var w=b(),C=i({inst:{value:w,getSnapshot:b}}),N=C[0].inst,S=C[1];return d(function(){N.value=w,N.getSnapshot=b,f(N)&&S({inst:N})},[g,w,b]),c(function(){return f(N)&&S({inst:N}),g(function(){f(N)&&S({inst:N})})},[g]),u(w),w}function f(g){var b=g.getSnapshot;g=g.value;try{var w=b();return!r(g,w)}catch{return!0}}function h(g,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:m;return kp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,kp}var H1;function lR(){return H1||(H1=1,Rp.exports=cR()),Rp.exports}var dR=lR();const uR=Ou.useInsertionEffect,mR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AN=mR?v.useLayoutEffect:v.useEffect,fR=uR||AN,Fx=e=>{const t=v.useRef([e,(...r)=>t[0](...r)]).current;return fR(()=>{t[0]=e}),t[1]},pR="popstate",Gx="pushState",Qx="replaceState",hR="hashchange",I1=[pR,Gx,Qx,hR],xR=e=>{for(const t of I1)addEventListener(t,e);return()=>{for(const t of I1)removeEventListener(t,e)}},TN=(e,t)=>dR.useSyncExternalStore(xR,e,t),gR=()=>location.search,yR=({ssrSearch:e=""}={})=>TN(gR,()=>e),V1=()=>location.pathname,vR=({ssrPath:e}={})=>TN(V1,e?()=>e:V1),bR=(e,{replace:t=!1,state:r=null}={})=>history[t?Qx:Gx](r,"",e),jR=(e={})=>[vR(e),bR],q1=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[q1]>"u"){for(const e of[Gx,Qx]){const t=history[e];history[e]=function(){const r=t.apply(this,arguments),i=new Event(e);return i.arguments=arguments,dispatchEvent(i),r}}Object.defineProperty(window,q1,{value:!0})}const wR=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",ON=(e="")=>e==="/"?"":e,NR=(e,t)=>e[0]==="~"?e.slice(1):ON(t)+e,SR=(e="",t)=>wR(Uh(ON(e)),Uh(t)),CR=e=>e[0]==="?"?e.slice(1):e,Uh=e=>{try{return decodeURI(e)}catch{return e}},AR=e=>Uh(CR(e)),EN={hook:jR,searchHook:yR,parser:oR,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e},DN=v.createContext(EN),ei=()=>v.useContext(DN),MN={},RN=v.createContext(MN),TR=()=>v.useContext(RN),nl=e=>{const[t,r]=e.hook(e);return[SR(e.base,t),Fx((i,c)=>r(NR(i,e.base),c))]},Ls=()=>nl(ei()),kN=()=>{const e=ei();return AR(e.searchHook(e))},PN=(e,t,r,i)=>{const{pattern:c,keys:d}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",i),u=c.exec(r)||[],[m,...f]=u;return m!==void 0?[!0,(()=>{const h=d!==!1?Object.fromEntries(d.map((g,b)=>[g,f[b]])):u.groups;let y={...f};return h&&Object.assign(y,h),y})(),...i?[m]:[]]:[!1,null]},OR=({children:e,...t})=>{const r=ei(),i=t.hook?EN:r;let c=i;const[d,u]=t.ssrPath?.split("?")??[];u&&(t.ssrSearch=u,t.ssrPath=d),t.hrefs=t.hrefs??t.hook?.hrefs;let m=v.useRef({}),f=m.current,h=f;for(let y in i){const g=y==="base"?i[y]+(t[y]||""):t[y]||i[y];f===h&&g!==h[y]&&(m.current=h={...h}),h[y]=g,(g!==i[y]||g!==c[y])&&(c=h)}return v.createElement(DN.Provider,{value:c,children:e})},F1=({children:e,component:t},r)=>t?v.createElement(t,{params:r}):typeof e=="function"?e(r):e,ER=e=>{let t=v.useRef(MN);const r=t.current;return t.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([i,c])=>c!==r[i])?e:r},St=({path:e,nest:t,match:r,...i})=>{const c=ei(),[d]=nl(c),[u,m,f]=r??PN(c.parser,e,d,t),h=ER({...TR(),...m});if(!u)return null;const y=f?v.createElement(OR,{base:f},F1(i,h)):F1(i,h);return v.createElement(RN.Provider,{value:h,children:y})},Ne=v.forwardRef((e,t)=>
407{const r=ei(),[i,c]=nl(r),{to:d="",href:u=d,onClick:m,asChild:f,children:h,className:y,replace:g,state:b,...w}=e,C=Fx(S=>{S.ctrlKey||S.metaKey||S.altKey||S.shiftKey||S.button!==0||(m?.(S),S.defaultPrevented||(S.preventDefault(),c(u,e)))}),N=r.hrefs(u[0]==="~"?u.slice(1):r.base+u,r);return f&&v.isValidElement(h)?v.cloneElement(h,{onClick:C,href:N}):v.createElement("a",{...w,onClick:C,href:N,className:y?.call?y(i===u):y,children:h,ref:t})}),Bh=e=>Array.isArray(e)?e.flatMap(t=>Bh(t&&t.type===v.Fragment?t.props.children:t)):[e],DR=({children:e,location:t})=>{const r=ei(),[i]=nl(r);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),Bh(e).forEach(d=>{if(v.isValidElement(d)&&d.props.path){const u=d.props.path;window.__WOUTER_ROUTES__.includes(u)||window.__WOUTER_ROUTES__.push(u)}}));for(const c of Bh(e)){let d=0;if(v.isValidElement(c)&&(d=PN(r.parser,c.props.path,t||i,c.props.nest))[0])return v.cloneElement(c,{match:d})}return null},MR=e=>{const{to:t,href:r=t}=e,i=ei(),[,c]=nl(i),d=Fx(()=>c(t||r,e)),{ssrContext:u}=i;return AN(()=>{d()},[]),u&&(u.redirectTo=t),null};function G1(){const[,e]=Ls(),t=()=>{e("/")};return n.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:14",className:"min-h-screen w-full flex items-center justify-center bg-gradient-to-br from-slate-50 to-slate-100",children:n.jsx(MM,{"data-loc":"client/src/pages/NotFound.tsx:15",className:"w-full max-w-lg mx-4 shadow-lg border-0 bg-white/80 backdrop-blur-sm",children:n.jsxs(RM,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[n.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:n.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[n.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),n.jsx(fu,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),n.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),n.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),n.jsxs("p",{"data-loc":"client/src/pages/NotFound.tsx:30",className:"text-slate-600 mb-8 leading-relaxed",children:["Sorry, the page you are looking for doesn't exist.",n.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),n.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:36",id:"not-found-button-group",className:"flex flex-col sm:flex-row gap-3 justify-center",children:n.jsxs(oe,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:t,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[n.jsx(XM,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}function rl(){v.useEffect(()=>{const e=document.createElement("meta");return e.name="robots",e.content="noindex, nofollow",document.head.appendChild(e),()=>{document.head.removeChild(e)}},[])}var Pp="focusScope.autoFocusOnMount",_p="focusScope.autoFocusOnUnmount",Q1={bubbles:!1,cancelable:!0},RR="FocusScope",Fu=v.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...u}=e,[m,f]=v.useState(null),h=Da(c),y=Da(d),g=v.useRef(null),b=nt(t,N=>f(N)),w=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let N=function(M){if(w.paused||!m)return;const V=M.target;m.contains(V)?g.current=V:Bn(g.current,{select:!0})},S=function(M){if(w.paused||!m)return;const V=M.relatedTarget;V!==null&&(m.contains(V)||Bn(g.current,{select:!0}))},A=function(M){if(document.activeElement===document.body)for(const O of M)O.removedNodes.length>0&&Bn(m)};document.addEventListener("focusin",N),document.addEventListener("focusout",S);const D=new MutationObserver(A);return m&&D.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",S),D.disconnect()}}},[i,m,w.paused]),v.useEffect(()=>{if(m){Y1.add(w);const N=document.activeElement;if(!m.contains(N)){const A=new CustomEvent(Pp,Q1);m.addEventListener(Pp,h),m.dispatchEvent(A),A.defaultPrevented||(kR(BR(_N(m)),{select:!0}),document.activeElement===N&&Bn(m))}return()=>{m.removeEventListener(Pp,h),setTimeout(()=>{const A=new CustomEvent(_p,Q1);m.addEventListener(_p,y),m.dispatchEvent(A),A.defaultPrevented||Bn(N??document.body,{select:!0}),m.removeEventListener(_p,y),Y1.remove(w)},0)}}},[m,h,y,w]);const C=v.useCallback(N=>{if(!r&&!i||w.paused)return;
vendor: 9,408 bytes, lines 407-444
407const S=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,A=document.activeElement;if(S&&A){const D=N.currentTarget,[M,V]=PR(D);M&&V?!N.shiftKey&&A===V?(N.preventDefault(),r&&Bn(M,{select:!0})):N.shiftKey&&A===M&&(N.preventDefault(),r&&Bn(V,{select:!0})):A===D&&N.preventDefault()}},[r,i,w.paused]);return n.jsx($e.div,{tabIndex:-1,...u,ref:b,onKeyDown:C})});Fu.displayName=RR;function kR(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(Bn(i,{select:t}),document.activeElement!==r)return}function PR(e){const t=_N(e),r=K1(t,e),i=K1(t.reverse(),e);return[r,i]}function _N(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||c?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function K1(e,t){for(const r of e)if(!_R(r,{upTo:t}))return r}function _R(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function LR(e){return e instanceof HTMLInputElement&&"select"in e}function Bn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&LR(e)&&t&&e.select()}}var Y1=UR();function UR(){let e=[];return{add(t){const r=e[0];t!==r&&r?.pause(),e=$1(e,t),e.unshift(t)},remove(t){e=$1(e,t),e[0]?.resume()}}}function $1(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function BR(e){return e.filter(t=>t.tagName!=="A")}var Lp=0;function Kx(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??X1()),document.body.insertAdjacentElement("beforeend",e[1]??X1()),Lp++,()=>{Lp===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Lp--}},[])}function X1(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Sa=function(){return Sa=Object.assign||function(t){for(var r,i=1,c=arguments.length;i<c;i++){r=arguments[i];for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&(t[d]=r[d])}return t},Sa.apply(this,arguments)};function LN(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(e);c<i.length;c++)t.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(e,i[c])&&(r[i[c]]=e[i[c]]);return r}function zR(e,t,r){if(r||arguments.length===2)for(var i=0,c=t.length,d;i<c;i++)(d||!(i in t))&&(d||(d=Array.prototype.slice.call(t,0,i)),d[i]=t[i]);return e.concat(d||Array.prototype.slice.call(t))}var Zd="right-scroll-bar-position",Jd="width-before-scroll-bar",HR="with-scroll-bars-hidden",IR="--removed-body-scroll-bar-size";function Up(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function VR(e,t){var r=v.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var c=r.value;c!==i&&(r.value=i,r.callback(i,c))}}}})[0];return r.callback=t,r.facade}var qR=typeof window<"u"?v.useLayoutEffect:v.useEffect,W1=new WeakMap;function FR(e,t){var r=VR(null,function(i){return e.forEach(function(c){return Up(c,i)})});return qR(function(){var i=W1.get(r);if(i){var c=new Set(i),d=new Set(e),u=r.current;c.forEach(function(m){d.has(m)||Up(m,null)}),d.forEach(function(m){c.has(m)||Up(m,u)})}W1.set(r,e)},[e]),r}function GR(e){return e}function QR(e,t){t===void 0&&(t=GR);var r=[],i=!1,c={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(d){var u=t(d,i);return r.push(u),function(){r=r.filter(function(m){return m!==u})}},assignSyncMedium:function(d){for(i=!0;r.length;){var u=r;r=[],u.forEach(d)}r={push:function(m){return d(m)},filter:function(){return r}}},assignMedium:function(d){i=!0;var u=[];if(r.length){var m=r;r=[],m.forEach(d),u=r}var f=function(){var y=u;u=[],y.forEach(d)},h=function(){return Promise.resolve().then(f)};h(),r={push:function(y){u.push(y),h()},filter:function(y){return u=u.filter(y),r}}}};return c}function KR(e){e===void 0&&(e={});var t=QR(null);return t.options=Sa({async:!0,ssr:!1},e),t}var UN=function(e){var t=e.sideCar,r=LN(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Sa({},r))};UN.isSideCarExport=!0;function YR(e,t){return e.useMedium(t),UN}var BN=KR(),Bp=function(){},Gu=v.forwardRef(function(e,t){var r=v.useRef(null),i=v.useState({onScrollCapture:Bp,onWheelCapture:Bp,onTouchMoveCapture:Bp}),c=i[0],d=i[1],u=e.forwardProps,m=e.children,f=e.className,h=e.removeScrollBar,y=e.enabled,g=e.shards,b=e.sideCar,w=e.noRelative,C=e.noIsolation,N=e.inert,S=e.allowPinchZoom,A=e.as,D=A===void 0?"div":A,M=e.gapMode,V=LN(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=b,B=FR([r,t]),E=Sa(Sa({},V),c);return v.createElement(v.Fragment,null,y&&v.createElement(O,{sideCar:BN,removeScrollBar:h,shards:g,noRelative:w,noIsolation:C,inert:N,setCallbacks:d,allowPinchZoom:!!S,lockRef:r,gapMode:M}),u?v.cloneElement(v.Children.only(m),Sa(Sa({},E),{ref:B})):v.createElement(D,Sa({},E,{className:f,ref:B}),m))});Gu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Gu.classNames={fullWidth:Jd,zeroRight:Zd};var $R=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function XR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=$R();return t&&e.setAttribute("nonce",t),e}function WR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var JR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=XR())&&(WR(t,r),ZR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ek=function(){var e=JR();return function(t,r){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},zN=function(){var e=ek(),t=function(r){var i=r.styles,c=r.dynamic;return e(i,c),null};return t},tk={left:0,top:0,right:0,gap:0},zp=function(e){return parseInt(e||"",10)||0},sk=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],c=t[e==="padding"?"paddingRight":"marginRight"];return[zp(r),zp(i),zp(c)]},ak=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return tk;var t=sk(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},nk=zN(),ao="data-scroll-locked",rk=function(e,t,r,i){var c=e.left,d=e.top,u=e.right,m=e.gap;return r===void 0&&(r="margin"),` 408 .`.concat(HR,` { 409 overflow: hidden `).concat(i,`; 410 padding-right: `).concat(m,"px ").concat(i,`; 411 } 412 body[`).concat(ao,`] { 413 overflow: hidden `).concat(i,`; 414 overscroll-behavior: contain; 415 `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&` 416 padding-left: `.concat(c,`px; 417 padding-top: `).concat(d,`px; 418 padding-right: `).concat(u,`px; 419 margin-left:0; 420 margin-top:0; 421 margin-right: `).concat(m,"px ").concat(i,`; 422 `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),` 423 } 424 425 .`).concat(Zd,` { 426 right: `).concat(m,"px ").concat(i,`; 427 } 428 429 .`).concat(Jd,` { 430 margin-right: `).concat(m,"px ").concat(i,`; 431 } 432 433 .`).concat(Zd," .").concat(Zd,` { 434 right: 0 `).concat(i,`; 435 } 436 437 .`).concat(Jd," .").concat(Jd,` { 438 margin-right: 0 `).concat(i,`; 439 } 440 441 body[`).concat(ao,`] { 442 `).concat(IR,": ").concat(m,`px; 443 } 444`)},Z1=function(){var e=parseInt(document.body.getAttribute(ao)||"0",10);return isFinite(e)?e:0},ik=function(){v.useEffect(function(){return document.body.setAttribute(ao,(Z1()+1).toString()),function(){var e=Z1()-1;e<=0?document.body.removeAttribute(ao):document.body.setAttribute(ao,e.toString())}},[])},ok=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,c=i===void 0?"margin":i;ik();var d=v.useMemo(function(){return ak(c)},[c]);return v.createElement(nk,{styles:rk(d,!t,c,r?"":"!important")})},zh=!1;if(typeof window<"u")try{var Ud=Object.defineProperty({},"passive",{get:function(){return zh=!0,!0}});window.addEventListener("test",Ud,Ud),window.removeEventListener("test",Ud,Ud)}catch{zh=!1}var Ki=zh?{passive:!1}:!1,ck=function(e){return e.tagName==="TEXTAREA"},HN=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!ck(e)&&r[t]==="visible")},lk=function(e){return HN(e,"overflowY")},dk=function(e){return HN(e,"overflowX")},J1=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var c=IN(e,i);if(c){var d=VN(e,i),u=d[1],m=d[2];if(u>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1}
vendor: 2,546 bytes, lines 444-447
444,uk=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},mk=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},IN=function(e,t){return e==="v"?lk(t):dk(t)},VN=function(e,t){return e==="v"?uk(t):mk(t)},fk=function(e,t){return e==="h"&&t==="rtl"?-1:1},pk=function(e,t,r,i,c){var d=fk(e,window.getComputedStyle(t).direction),u=d*i,m=r.target,f=t.contains(m),h=!1,y=u>0,g=0,b=0;do{if(!m)break;var w=VN(e,m),C=w[0],N=w[1],S=w[2],A=N-S-d*C;(C||A)&&IN(e,m)&&(g+=A,b+=C);var D=m.parentNode;m=D&&D.nodeType===Node.DOCUMENT_FRAGMENT_NODE?D.host:D}while(!f&&m!==document.body||f&&(t.contains(m)||t===m));return(y&&Math.abs(g)<1||!y&&Math.abs(b)<1)&&(h=!0),h},Bd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},e2=function(e){return[e.deltaX,e.deltaY]},t2=function(e){return e&&"current"in e?e.current:e},hk=function(e,t){return e[0]===t[0]&&e[1]===t[1]},xk=function(e){return` 445 .block-interactivity-`.concat(e,` {pointer-events: none;} 446 .allow-interactivity-`).concat(e,` {pointer-events: all;} 447`)},gk=0,Yi=[];function yk(e){var t=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),c=v.useState(gk++)[0],d=v.useState(zN)[0],u=v.useRef(e);v.useEffect(function(){u.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(c));var N=zR([e.lockRef.current],(e.shards||[]).map(t2),!0).filter(Boolean);return N.forEach(function(S){return S.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),N.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(c))})}}},[e.inert,e.lockRef.current,e.shards]);var m=v.useCallback(function(N,S){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!u.current.allowPinchZoom;var A=Bd(N),D=r.current,M="deltaX"in N?N.deltaX:D[0]-A[0],V="deltaY"in N?N.deltaY:D[1]-A[1],O,B=N.target,E=Math.abs(M)>Math.abs(V)?"h":"v";if("touches"in N&&E==="h"&&B.type==="range")return!1;var k=J1(E,B);if(!k)return!0;if(k?O=E:(O=E==="v"?"h":"v",k=J1(E,B)),!k)return!1;if(!i.current&&"changedTouches"in N&&(M||V)&&(i.current=O),!O)return!0;var J=i.current||O;return pk(J,S,N,J==="h"?M:V)},[]),f=v.useCallback(function(N){var S=N;if(!(!Yi.length||Yi[Yi.length-1]!==d)){var A="deltaY"in S?e2(S):Bd(S),D=t.current.filter(function(O){return O.name===S.type&&(O.target===S.target||S.target===O.shadowParent)&&hk(O.delta,A)})[0];if(D&&D.should){S.cancelable&&S.preventDefault();return}
vendor: 4,338 bytes, line 447
447if(!D){var M=(u.current.shards||[]).map(t2).filter(Boolean).filter(function(O){return O.contains(S.target)}),V=M.length>0?m(S,M[0]):!u.current.noIsolation;V&&S.cancelable&&S.preventDefault()}}},[]),h=v.useCallback(function(N,S,A,D){var M={name:N,delta:S,target:A,should:D,shadowParent:vk(A)};t.current.push(M),setTimeout(function(){t.current=t.current.filter(function(V){return V!==M})},1)},[]),y=v.useCallback(function(N){r.current=Bd(N),i.current=void 0},[]),g=v.useCallback(function(N){h(N.type,e2(N),N.target,m(N,e.lockRef.current))},[]),b=v.useCallback(function(N){h(N.type,Bd(N),N.target,m(N,e.lockRef.current))},[]);v.useEffect(function(){return Yi.push(d),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",f,Ki),document.addEventListener("touchmove",f,Ki),document.addEventListener("touchstart",y,Ki),function(){Yi=Yi.filter(function(N){return N!==d}),document.removeEventListener("wheel",f,Ki),document.removeEventListener("touchmove",f,Ki),document.removeEventListener("touchstart",y,Ki)}},[]);var w=e.removeScrollBar,C=e.inert;return v.createElement(v.Fragment,null,C?v.createElement(d,{styles:xk(c)}):null,w?v.createElement(ok,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vk(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const bk=YR(BN,yk);var Qu=v.forwardRef(function(e,t){return v.createElement(Gu,Sa({},e,{ref:t,sideCar:bk}))});Qu.classNames=Gu.classNames;var jk=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$i=new WeakMap,zd=new WeakMap,Hd={},Hp=0,qN=function(e){return e&&(e.host||qN(e.parentNode))},wk=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=qN(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Nk=function(e,t,r,i){var c=wk(t,Array.isArray(e)?e:[e]);Hd[r]||(Hd[r]=new WeakMap);var d=Hd[r],u=[],m=new Set,f=new Set(c),h=function(g){!g||m.has(g)||(m.add(g),h(g.parentNode))};c.forEach(h);var y=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(b){if(m.has(b))y(b);else try{var w=b.getAttribute(i),C=w!==null&&w!=="false",N=($i.get(b)||0)+1,S=(d.get(b)||0)+1;$i.set(b,N),d.set(b,S),u.push(b),N===1&&C&&zd.set(b,!0),S===1&&b.setAttribute(r,"true"),C||b.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",b,A)}})};return y(t),m.clear(),Hp++,function(){u.forEach(function(g){var b=$i.get(g)-1,w=d.get(g)-1;$i.set(g,b),d.set(g,w),b||(zd.has(g)||g.removeAttribute(i),zd.delete(g)),w||g.removeAttribute(r)}),Hp--,Hp||($i=new WeakMap,$i=new WeakMap,zd=new WeakMap,Hd={})}},Yx=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),c=jk(e);return c?(i.push.apply(i,Array.from(c.querySelectorAll("[aria-live], script"))),Nk(i,c,r,"aria-hidden")):function(){return null}},Ku="Dialog",[FN]=tr(Ku),[Sk,fa]=FN(Ku),GN=e=>{const{__scopeDialog:t,children:r,open:i,defaultOpen:c,onOpenChange:d,modal:u=!0}=e,m=v.useRef(null),f=v.useRef(null),[h,y]=Uc({prop:i,defaultProp:c??!1,onChange:d,caller:Ku});return n.jsx(Sk,{scope:t,triggerRef:m,contentRef:f,contentId:tn(),titleId:tn(),descriptionId:tn(),open:h,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(g=>!g),[y]),modal:u,children:r})};GN.displayName=Ku;var QN="DialogTrigger",Ck=v.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,c=fa(QN,r),d=nt(t,c.triggerRef);return n.jsx($e.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Wx(c.open),...i,ref:d,onClick:Oe(e.onClick,c.onOpenToggle)})});Ck.displayName=QN;var $x="DialogPortal",[Ak,KN]=FN($x,{forceMount:void 0}),YN=e=>{const{__scopeDialog:t,forceMount:r,children:i,container:c}=e,d=fa($x,t);return n.jsx(Ak,{scope:t,forceMount:r,children:v.Children.map(i,u=>n.jsx(dn,{present:r||d.open,children:n.jsx(Hu,{asChild:!0,container:c,children:u})}))})};YN.displayName=$x;var xu="DialogOverlay",$N=v.forwardRef((e,t)=>{const r=KN(xu,e.__scopeDialog),{forceMount:i=r.forceMount,...c}=e,d=fa(xu,e.__scopeDialog);return d.modal?n.jsx(dn,{present:i||d.open,children:n.jsx(Ok,{...c,ref:t})}):null});$N.displayName=xu;var Tk=Ir("DialogOverlay.RemoveScroll"),Ok=v.forwardRef((e,t)=>
447{const{__scopeDialog:r,...i}=e,c=fa(xu,r);return n.jsx(Qu,{as:Tk,allowPinchZoom:!0,shards:[c.contentRef],children:n.jsx($e.div,{"data-state":Wx(c.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Qr="DialogContent",XN=v.forwardRef((e,t)=>{const r=KN(Qr,e.__scopeDialog),{forceMount:i=r.forceMount,...c}=e,d=fa(Qr,e.__scopeDialog);return n.jsx(dn,{present:i||d.open,children:d.modal?n.jsx(Ek,{...c,ref:t}):n.jsx(Dk,{...c,ref:t})})});XN.displayName=Qr;var Ek=v.forwardRef((e,t)=>{const r=fa(Qr,e.__scopeDialog),i=v.useRef(null),c=nt(t,r.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return Yx(d)},[]),n.jsx(WN,{...e,ref:c,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(e.onCloseAutoFocus,d=>{d.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Oe(e.onPointerDownOutside,d=>{const u=d.detail.originalEvent,m=u.button===0&&u.ctrlKey===!0;(u.button===2||m)&&d.preventDefault()}),onFocusOutside:Oe(e.onFocusOutside,d=>d.preventDefault())})}),Dk=v.forwardRef((e,t)=>{const r=fa(Qr,e.__scopeDialog),i=v.useRef(!1),c=v.useRef(!1);return n.jsx(WN,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{e.onCloseAutoFocus?.(d),d.defaultPrevented||(i.current||r.triggerRef.current?.focus(),d.preventDefault()),i.current=!1,c.current=!1},onInteractOutside:d=>{e.onInteractOutside?.(d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const u=d.target;r.triggerRef.current?.contains(u)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),WN=v.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:d,...u}=e,m=fa(Qr,r),f=v.useRef(null),h=nt(t,f);return Kx(),n.jsxs(n.Fragment,{children:[n.jsx(Fu,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:d,children:n.jsx(tl,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Wx(m.open),...u,ref:h,onDismiss:()=>m.onOpenChange(!1)})}),n.jsxs(n.Fragment,{children:[n.jsx(Mk,{titleId:m.titleId}),n.jsx(kk,{contentRef:f,descriptionId:m.descriptionId})]})]})}),Xx="DialogTitle",ZN=v.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,c=fa(Xx,r);return n.jsx($e.h2,{id:c.titleId,...i,ref:t})});ZN.displayName=Xx;var JN="DialogDescription",eS=v.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,c=fa(JN,r);return n.jsx($e.p,{id:c.descriptionId,...i,ref:t})});eS.displayName=JN;var tS="DialogClose",sS=v.forwardRef((e,t)=>{const{__scopeDialog:r,...i}=e,c=fa(tS,r);return n.jsx($e.button,{type:"button",...i,ref:t,onClick:Oe(e.onClick,()=>c.onOpenChange(!1))})});sS.displayName=tS;function Wx(e){return e?"open":"closed"}var aS="DialogTitleWarning",[cz,nS]=zE(aS,{contentName:Qr,titleName:Xx,docsSlug:"dialog"}),Mk=({titleId:e})=>{const t=nS(aS),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 448 449If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 450 451For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Rk="DialogDescriptionWarning",kk=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${nS(Rk).contentName}}.`;return v.useEffect(()=>{const c=e.current?.getAttribute("aria-describedby");t&&c&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},Pk=GN,_k=YN,Lk=$N,Uk=XN,Bk=ZN,zk=eS,Hk=sS;const rS=v.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),Zx=()=>v.useContext(rS);function Hh({...e}){const t=v.useRef(!1),r=v.useRef(!1),i=v.useRef(null),c=v.useMemo(()=>({isComposing:()=>t.current,setComposing:d=>{t.current=d},justEndedComposing:()=>r.current,markCompositionEnd:()=>{r.current=!0,i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{r.current=!1},150)}}),[]);return n.jsx(rS.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:c,children:n.jsx(Pk,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...e})})}function Ik({...e}){return n.jsx(_k,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...e})}function iS({className:e,...t}){return n.jsx(Lk,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:vt("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",e),...t})}iS.displayName="DialogOverlay";function Ih({className:e,children:t,showCloseButton:r=!0,onEscapeKeyDown:i,...c}){const{isComposing:d}=Zx(),u=v.useCallback(m=>{if(m.isComposing||d()){m.preventDefault();return}i?.(m)},[d,i]);return n.jsxs(Ik,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[n.jsx(iS,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),n.jsxs(Uk,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:vt("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 roun
451ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",e),onEscapeKeyDown:u,...c,children:[t,r&&n.jsxs(Hk,{"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:[n.jsx(_s,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),n.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function Vh({className:e,...t}){return n.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:vt("flex flex-col gap-2 text-center sm:text-left",e),...t})}function qh({className:e,...t}){return n.jsx(Bk,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:vt("text-lg leading-none font-semibold",e),...t})}function Fh({className:e,...t}){return n.jsx(zk,{"data-loc":"client/src/components/ui/dialog.tsx:189","data-slot":"dialog-description",className:vt("text-muted-foreground text-sm",e),...t})}function Id(e){const t=v.useRef(e);t.current=e;const r=v.useRef(null);return r.current||(r.current=function(...i){return t.current.apply(this,i)}),r.current}function oS(e={}){const{onKeyDown:t,onCompositionStart:r,onCompositionEnd:i}=e,c=v.useRef(!1),d=v.useRef(null),u=v.useRef(null),m=Id(g=>{d.current&&(clearTimeout(d.current),d.current=null),u.current&&(clearTimeout(u.current),u.current=null),c.current=!0,r?.(g)}),f=Id(g=>{d.current=setTimeout(()=>{u.current=setTimeout(()=>{c.current=!1})}),i?.(g)}),h=Id(g=>{if(c.current&&(g.key==="Escape"||g.key==="Enter"&&!g.shiftKey)){g.stopPropagation();return}t?.(g)}),y=Id(()=>c.current);return{onCompositionStart:m,onCompositionEnd:f,onKeyDown:h,isComposing:y}}function Fe({className:e,type:t,onKeyDown:r,onCompositionStart:i,onCompositionEnd:c,...d}){const u=Zx(),{onCompositionStart:m,onCompositionEnd:f,onKeyDown:h}=oS({onKeyDown:y=>{const g=y.nativeEvent.isComposing||u.justEndedComposing();y.key==="Enter"&&g||r?.(y)},onCompositionStart:y=>{u.setComposing(!0),i?.(y)},onCompositionEnd:y=>{u.markCompositionEnd(),setTimeout(()=>{u.setComposing(!1)},100),c?.(y)}});return n.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:t,"data-slot":"input",className:vt("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",e),onCompositionStart:m,onCompositionEnd:f,onKeyDown:h,...d})}var Vk="Label",cS=v.forwardRef((e,t)=>n.jsx($e.label,{...e,ref:t,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));cS.displayName=Vk;var qk=cS;function qe({className:e,...t}){return n.jsx(qk,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:vt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",e),...t})}function ea(e){const{redirectOnUnauthenticated:t=!1,redirectPath:r="/login"}={},i=Ae.useUtils(),c=Ae.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),d=Ae.auth.logout.useMutation({onSuccess:()=>{i.auth.me.setData(void 0,null)}}),u=v.useCallback(async()=>{try{await d.mutateAsync()}catch(f){if(f instanceof Hr&&f.data?.code==="UNAUTHORIZED")return;throw f}
451finally{i.auth.me.setData(void 0,null),await i.auth.me.invalidate()}},[d,i]),m=v.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(c.data)),{user:c.data??null,loading:c.isLoading||d.isPending,error:c.error??d.error??null,isAuthenticated:!!c.data}),[c.data,c.error,c.isLoading,d.error,d.isPending]);return v.useEffect(()=>{t&&(c.isLoading||d.isPending||m.user||typeof window>"u"||window.location.pathname!==r&&(window.location.href=r))},[t,r,d.isPending,c.isLoading,m.user]),{...m,refresh:()=>c.refetch(),logout:u}}function Fk(){rl();const[e,t]=v.useState("login"),[,r]=Ls(),{user:i,loading:c}=ea();return v.useEffect(()=>{!c&&i&&r("/dashboard")},[i,c,r]),c?null:n.jsx("div",{"data-loc":"client/src/pages/Login.tsx:29",className:"min-h-screen bg-background flex items-center justify-center px-4",children:n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:30",className:"w-full max-w-md",children:[n.jsx("div",{"data-loc":"client/src/pages/Login.tsx:32",className:"text-center mb-8",children:n.jsxs("a",{"data-loc":"client/src/pages/Login.tsx:33",href:"/",className:"inline-flex items-center gap-2",children:[n.jsx("img",{"data-loc":"client/src/pages/Login.tsx:34",src:"/favicon.png",alt:"Docucert",className:"w-8 h-8"}),n.jsx("span",{"data-loc":"client/src/pages/Login.tsx:35",className:"text-xl font-semibold tracking-tight text-foreground",children:"Docucert"})]})}),n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:39",className:"bg-card border border-border rounded-2xl shadow-sm p-8",children:[e==="login"&&n.jsx(Gk,{"data-loc":"client/src/pages/Login.tsx:40",onRegister:()=>t("register"),onForgot:()=>t("forgot")}),e==="register"&&n.jsx(Qk,{"data-loc":"client/src/pages/Login.tsx:41",onLogin:()=>t("login")}),e==="forgot"&&n.jsx(Kk,{"data-loc":"client/src/pages/Login.tsx:42",onBack:()=>t("login"),onSent:()=>t("forgot-sent")}),e==="forgot-sent"&&n.jsx(Yk,{"data-loc":"client/src/pages/Login.tsx:43",onBack:()=>t("login")})]}),n.jsxs("p",{"data-loc":"client/src/pages/Login.tsx:46",className:"text-center text-xs text-muted-foreground mt-6",children:["By continuing, you agree to our"," ",n.jsx("a",{"data-loc":"client/src/pages/Login.tsx:48",href:"/terms",className:"underline hover:text-foreground",children:"Terms of Service"})," ","and"," ",n.jsx("a",{"data-loc":"client/src/pages/Login.tsx:50",href:"/privacy",className:"underline hover:text-foreground",children:"Privacy Policy"}),"."]})]})})}function Gk({onRegister:e,onForgot:t}){const[r,i]=v.useState(""),[c,d]=v.useState(""),[u,m]=v.useState(""),[,f]=Ls(),h=Ae.auth.login.useMutation({onSuccess:()=>f("/dashboard"),onError:g=>m(g.message)}),y=g=>{g.preventDefault(),m(""),h.mutate({email:r,password:c})};return n.jsxs(n.Fragment,{children:[n.jsx("h1",{"data-loc":"client/src/pages/Login.tsx:76",className:"text-2xl font-semibold text-foreground mb-1",children:"Sign in"}),n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:77",className:"text-sm text-muted-foreground mb-6",children:"Welcome back to Docucert"}),n.jsxs("form",{"data-loc":"client/src/pages/Login.tsx:79",onSubmit:y,className:"space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:80",className:"space-y-1.5",children:[n.jsx(qe,{"data-loc":"client/src/pages/Login.tsx:81",htmlFor:"email",children:"Email"}),n.jsx(Fe,{"data-loc":"client/src/pages/Login.tsx:82",id:"email",name:"email",type:"email",placeholder:"[email protected]",value:r,onChange:g=>i(g.target.value),required:!0,autoComplete:"email"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:93",className:"space-y-1.5",children:[n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:94",className:"flex items-center justify-between",children:[n.jsx(qe,{"data-loc":"client/src/pages/Login.tsx:95",htmlFor:"password",children:"Password"}),n.jsx("button",{"data-loc":"client/src/pages/Login.tsx:96",type:"button",onClick:t,className:"text-xs text-primary hover:underline",children:"Forgot password?"})]}),n.jsx(Fe,{"data-loc":"client/src/pages/Login.tsx:104",id:"password",name:"password",type:"password",placeholder:"â¢â¢â¢â¢â¢â¢â¢â¢",value:c,onChange:g=>d(g.target.value),required:!0,autoComplete:"current-password"})]}),u&&n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:116",className:"text-sm text-destructive",children:u}),n.jsx(oe,{"data-loc":"client/src/pages/Login.tsx:118",type:"submit",className:"w-full",disabled:h.isPending,children:h.isPending?"Signing inâ¦":"Sign in"})]}),n.jsxs("p",{"data-loc":"client/src/pages/Login.tsx:127",className:"text-sm text-center text-muted-foreground mt-6",children:["Don't have an account?"," ",n.jsx("button",{"data-loc":"client/src/pages/Login.tsx:129",onClick:e,className:"text-primary hover:underline font-medium",children:"Create one"})]})]})}function Qk({onLogin:e}){const[t,r]=v.useState(""),[i,c]=v.useState(""),[d,u]=v.useState(""),[m,f]=v.useState(""),[,h]=Ls(),y=Ae.auth.register.useMutation({onSuccess:()=>h("/dashboard"),onError:b=>f(b.message)}),g=b=>{b.preventDefault(),f(""),y.mutate({name:t,email:i,password:d})};return n.jsxs(n.Fragment,{children:[n.jsx("h1",{"data-loc":"client/src/pages/Login.tsx:157",className:"text-2xl font-semibold text-foreground mb-1",children:"Create account"}),n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:158",className:"text-sm text-muted-foreground mb-6",children:"Start managing your trade documents"}),n.jsxs("form",{"data-loc":"client/src/pages/Login.tsx:160",onSubmit:g,className:"space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:161",className:"space-y-1.5",children:[n.jsx(qe,{"data-loc":"client/src/pages/Login.tsx:162",htmlFor:"name",children:"Full name"}),n.jsx(Fe,{"data-loc":"client/src/pages/Login.tsx:163",id:"name",name:"name",type:"text",placeholder:"Jane Smith",value:t,onChange:b=>r(b.target.value),required:!0,autoComplete:"name"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:174",className:"space-y-1.5",children:[n.jsx(qe,{"data-loc":"client/src/pages/Login.tsx:175",htmlFor:"reg-email",children:"Email"}),n.jsx(Fe,{"data-loc":"client/src/pages/Login.tsx:176",id:"reg-email",name:"email",type:"email",placeholder:"[email protected]",value:i,onChange:b=>c(b.target.value),required:!0,autoComplete:"email"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:187",className:"space-y-1.5",children:[n.jsx(qe,{"data-loc":"client/src/pages/Login.tsx:188",htmlFor:"reg-password",children:"Password"}),n.jsx(Fe,{"data-loc":"client/src/pages/Login.tsx:189",id:"reg-password",name:"password",type:"password",placeholder:"At least 8 characters",value:d,onChange:b=>u(b.target.value),required:!0,minLength:8,autoComplete:"new-password"})]}),m&&n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:202",className:"text-sm text-destructive",children:m}),n.jsx(oe,{"data-loc":"client/src/pages/Login.tsx:204",type:"submit",className:"w-full",disabled:y.isPending,children:y.isPending?"Creating accountâ¦":"Create account"})]}),n.jsxs("p",{"data-loc":"client/src/pages/Login.tsx:213",className:"text-sm text-center text-muted-foreground mt-6",children:["Already have an account?"," ",n.jsx("button",{"data-loc":"client/src/pages/Login.tsx:215",onClick:e,className:"text-primary hover:underline font-medium",children:"Sign in"})]})]})}function Kk({onBack:e,onSent:t}){const[r,i]=v.useState(""),[c,d]=v.useState(""),u=Ae.auth.forgotPassword.useMutation({onSuccess:t,onError:f=>d(f.message)}),m=f=>{f.preventDefault(),d(""),u.mutate({email:r})};return n.jsxs(n.Fragment,{children:[n.jsx("h1",{"data-loc":"client/src/pages/Login.tsx:240",className:"text-2xl font-semibold text-foreground mb-1",children:"Reset password"}),n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:241",className:"text-sm text-muted-foreground mb-6",children:"Enter your email and we'll send you a reset link."}),n.jsxs("form",{"data-loc":"client/src/pages/Login.tsx:245",onSubmit:m,className:"space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:246",className:"space-y-1.5",children:[n.jsx(qe,{"data-loc":"client/src/pages/Login.tsx:247",htmlFor:"forgot-email",children:"Email"}),n.jsx(Fe,{"data-loc":"client/src/pages/Login.tsx:248",id:"forgot-email",type:"email",placeholder:"[email protected]",value:r,onChange:f=>i(f.target.value),required:!0,autoComplete:"email"})]}),c&&n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:259",className:"text-sm text-destructive",children:c}),n.jsx(oe,{"data-loc":"client/src/pages/Login.tsx:261",type:"submit",className:"w-full",disabled:u.isPending,children:u.isPending?"Sendingâ¦":"Send reset link"})]}),n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:266",className:"text-sm text-center text-muted-foreground mt-6",children:n.jsx("button",{"data-loc":"client/src/pages/Login.tsx:267",onClick:e,className:"text-primary hover:underline font-medium",children:"Back to sign in"})})]})}function Yk({onBack:e}){return n.jsx(n.Fragment,{children:n.jsxs("div",{"data-loc":"client/src/pages/Login.tsx:278",className:"text-center py-4",children:[n.jsx("div",{"data-loc":"client/src/pages/Login.tsx:279",className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:n.jsx("svg",{"data-loc":"client/src/pages/Login.tsx:280",className:"w-6 h-6 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{"data-loc":"client/src/pages/Login.tsx:281",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),n.jsx("h1",{"data-loc":"client/src/pages/Login.tsx:284",className:"text-2xl font-semibold text-foreground mb-2",children:"Check your email"}),n.jsx("p",{"data-loc":"client/src/pages/Login.tsx:285",className:"text-sm text-muted-foreground mb-6",children:"If an account exists for that email, we've sent a password reset link. Check your inbox and spam folder."}),n.jsx(oe,{"data-loc":"client/src/pages/Login.tsx:288",variant:"outline",onClick:e,className:"w-full",children:"Back to sign in"})]})})}function $k(){rl();const[,e]=Ls(),[t,r]=v.useState(""),[i,c]=v.useState(""),[d,u]=v.useState(""),[m,f]=v.useState(""),[h,y]=v.useState(!1);v.useEffect(()=>{const C=new URLSearchParams(window.location.search).get("token");C?r(C):f("Invalid or missing reset token. Please request a new password reset link.")},[]);const g=Ae.auth.resetPassword.useMutation({onSuccess:()=>y(!0),onError:w=>f(w.message)}),b=w=>{if(w.preventDefault(),f(""),i!==d){f("Passwords do not match.");return}g.mutate({token:t,password:i})};return n.jsx("div",{"data-loc":"client/src/pages/ResetPassword.tsx:41",className:"min-h-screen bg-background flex flex-col items-center justify-center px-4",children:n.jsxs("div",{"data-loc":"client/src/pages/ResetPassword.tsx:42",className:"w-full max-w-sm",children:[n.jsxs("div",{"data-loc":"client/src/pages/ResetPassword.tsx:44",className:"flex items-center justify-center gap-2 mb-8",children:[n.jsx("span",{"data-loc":"client/src/pages/ResetPassword.tsx:45",className:"text-primary text-2xl font-bold",children:"â"}),n.jsx("span",{"data-loc":"client/src/pages/ResetPassword.tsx:46",className:"text-xl font-bold text-foreground",children:"Docucert"})]}),n.jsx("div",{"data-loc":"client/src/pages/ResetPassword.tsx:49",className:"bg-card border border-border rounded-2xl p-8 shadow-sm",children:h?n.jsxs("div",{"data-loc":"client/src/pages/ResetPassword.tsx:51",className:"text-center py-4",children:[n.jsx("div",{"data-loc":"client/src/pages/ResetPassword.tsx:52",className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:n.jsx("svg",{"data-loc":"client/src/pages/ResetPassword.tsx:53",className:"w-6 h-6 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{"data-loc":"client/src/pages/ResetPassword.tsx:54",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),n.jsx("h1",{"data-loc":"client/src/pages/ResetPassword.tsx:57",className:"text-2xl font-semibold text-foreground mb-2",children:"Password updated"}),n.jsx("p",{"data-loc":"client/src/pages/ResetPassword.tsx:58",className:"text-sm text-muted-foreground mb-6",children:"Your password has been changed. You are now signed in."}),n.jsx(oe,{"data-loc":"client/src/pages/ResetPassword.tsx:61",className:"w-full",onClick:()=>
451e("/dashboard"),children:"Go to dashboard"})]}):n.jsxs(n.Fragment,{children:[n.jsx("h1",{"data-loc":"client/src/pages/ResetPassword.tsx:67",className:"text-2xl font-semibold text-foreground mb-1",children:"Set new password"}),n.jsx("p",{"data-loc":"client/src/pages/ResetPassword.tsx:68",className:"text-sm text-muted-foreground mb-6",children:"Choose a strong password for your Docucert account."}),n.jsxs("form",{"data-loc":"client/src/pages/ResetPassword.tsx:71",onSubmit:b,className:"space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/ResetPassword.tsx:72",className:"space-y-1.5",children:[n.jsx(qe,{"data-loc":"client/src/pages/ResetPassword.tsx:73",htmlFor:"new-password",children:"New password"}),n.jsx(Fe,{"data-loc":"client/src/pages/ResetPassword.tsx:74",id:"new-password",type:"password",placeholder:"At least 8 characters",value:i,onChange:w=>c(w.target.value),required:!0,minLength:8,autoComplete:"new-password",disabled:!t})]}),n.jsxs("div",{"data-loc":"client/src/pages/ResetPassword.tsx:86",className:"space-y-1.5",children:[n.jsx(qe,{"data-loc":"client/src/pages/ResetPassword.tsx:87",htmlFor:"confirm-password",children:"Confirm password"}),n.jsx(Fe,{"data-loc":"client/src/pages/ResetPassword.tsx:88",id:"confirm-password",type:"password",placeholder:"Repeat your new password",value:d,onChange:w=>u(w.target.value),required:!0,minLength:8,autoComplete:"new-password",disabled:!t})]}),m&&n.jsx("p",{"data-loc":"client/src/pages/ResetPassword.tsx:100",className:"text-sm text-destructive",children:m}),n.jsx(oe,{"data-loc":"client/src/pages/ResetPassword.tsx:101",type:"submit",className:"w-full",disabled:g.isPending||!t,children:g.isPending?"Updatingâ¦":"Update password"})]}),n.jsx("p",{"data-loc":"client/src/pages/ResetPassword.tsx:109",className:"text-sm text-center text-muted-foreground mt-6",children:n.jsx("a",{"data-loc":"client/src/pages/ResetPassword.tsx:110",href:"/login",className:"text-primary hover:underline font-medium",children:"Back to sign in"})})]})}),n.jsxs("p",{"data-loc":"client/src/pages/ResetPassword.tsx:118",className:"text-xs text-center text-muted-foreground mt-6",children:["By continuing, you agree to our"," ",n.jsx("a",{"data-loc":"client/src/pages/ResetPassword.tsx:120",href:"/terms",className:"underline hover:text-foreground",children:"Terms of Service"})," ","and"," ",n.jsx("a",{"data-loc":"client/src/pages/ResetPassword.tsx:122",href:"/privacy",className:"underline hover:text-foreground",children:"Privacy Policy"}),"."]})]})})}function Xk(){rl();const[,e]=Ls(),[t,r]=v.useState("verifying"),[i,c]=v.useState(""),d=Ae.auth.verifyEmail.useMutation({onSuccess:()=>r("success"),onError:u=>{c(u.message),r("error")}});return v.useEffect(()=>{const m=new URLSearchParams(window.location.search).get("token");m?d.mutate({token:m}):(c("Invalid or missing verification token."),r("error"))},[]),n.jsx("div",{"data-loc":"client/src/pages/VerifyEmail.tsx:34",className:"min-h-screen bg-background flex flex-col items-center justify-center px-4",children:n.jsxs("div",{"data-loc":"client/src/pages/VerifyEmail.tsx:35",className:"w-full max-w-sm",children:[n.jsxs("div",{"data-loc":"client/src/pages/VerifyEmail.tsx:36",className:"flex items-center justify-center gap-2 mb-8",children:[n.jsx("span",{"data-loc":"client/src/pages/VerifyEmail.tsx:37",className:"text-primary text-2xl font-bold",children:"â"}),n.jsx("span",{"data-loc":"client/src/pages/VerifyEmail.tsx:38",className:"text-xl font-bold text-foreground",children:"Docucert"})]}),n.jsxs("div",{"data-loc":"client/src/pages/VerifyEmail.tsx:41",className:"bg-card border border-border rounded-2xl p-8 shadow-sm text-center",children:[t==="verifying"&&n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-loc":"client/src/pages/VerifyEmail.tsx:44",className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4 animate-pulse",children:n.jsx("svg",{"data-loc":"client/src/pages/VerifyEmail.tsx:45",className:"w-6 h-6 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{"data-loc":"client/src/pages/VerifyEmail.tsx:46",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"})})}),n.jsx("h1",{"data-loc":"client/src/pages/VerifyEmail.tsx:49",className:"text-xl font-semibold text-foreground mb-2",children:"Verifying your emailâ¦"}),n.jsx("p",{"data-loc":"client/src/pages/VerifyEmail.tsx:50",className:"text-sm text-muted-foreground",children:"Please wait a moment."})]}),t==="success"&&n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-loc":"client/src/pages/VerifyEmail.tsx:56",className:"w-12 h-12 rounded-full bg-green-100 flex items-center justify-center mx-auto mb-4",children:n.jsx("svg",{"data-loc":"client/src/pages/VerifyEmail.tsx:57",className:"w-6 h-6 text-green-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{"data-loc":"client/src/pages/VerifyEmail.tsx:58",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})})}),n.jsx("h1",{"data-loc":"client/src/pages/VerifyEmail.tsx:61",className:"text-2xl font-semibold text-foreground mb-2",children:"Email verified"}),n.jsx("p",{"data-loc":"client/src/pages/VerifyEmail.tsx:62",className:"text-sm text-muted-foreground mb-6",children:"Your email address has been confirmed. Your account is fully active."}),n.jsx(oe,{"data-loc":"client/src/pages/VerifyEmail.tsx:65",className:"w-full",onClick:()=>
451e("/dashboard"),children:"Go to dashboard"})]}),t==="error"&&n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-loc":"client/src/pages/VerifyEmail.tsx:73",className:"w-12 h-12 rounded-full bg-destructive/10 flex items-center justify-center mx-auto mb-4",children:n.jsx("svg",{"data-loc":"client/src/pages/VerifyEmail.tsx:74",className:"w-6 h-6 text-destructive",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{"data-loc":"client/src/pages/VerifyEmail.tsx:75",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})}),n.jsx("h1",{"data-loc":"client/src/pages/VerifyEmail.tsx:78",className:"text-2xl font-semibold text-foreground mb-2",children:"Verification failed"}),n.jsx("p",{"data-loc":"client/src/pages/VerifyEmail.tsx:79",className:"text-sm text-muted-foreground mb-6",children:i}),n.jsx(oe,{"data-loc":"client/src/pages/VerifyEmail.tsx:80",variant:"outline",className:"w-full",onClick:()=>e("/dashboard"),children:"Go to dashboard"})]})]})]})})}const il=e=>"/login";function Wk(){rl();const[,e]=Ls(),{isAuthenticated:t,loading:r}=ea(),i=new URLSearchParams(window.location.search).get("token")||"",c=Ae.company.getInviteDetails.useQuery({token:i},{enabled:!!i,retry:!1}),d=Ae.company.acceptInvite.useMutation({onSuccess:()=>{Me.success("You have joined the company account."),e("/dashboard")},onError:m=>Me.error(m.message)});if(!i)return n.jsx("div",{"data-loc":"client/src/pages/JoinCompany.tsx:32",className:"min-h-screen bg-background pt-20 flex items-center justify-center px-4",children:n.jsxs("div",{"data-loc":"client/src/pages/JoinCompany.tsx:33",className:"text-center max-w-md",children:[n.jsx(pu,{"data-loc":"client/src/pages/JoinCompany.tsx:34",className:"w-12 h-12 text-destructive mx-auto mb-4"}),n.jsx("h2",{"data-loc":"client/src/pages/JoinCompany.tsx:35",className:"font-display text-xl font-bold text-foreground mb-2",children:"Invalid Invitation"}),n.jsx("p",{"data-loc":"client/src/pages/JoinCompany.tsx:36",className:"text-muted-foreground mb-6",children:"This invitation link is missing or invalid."}),n.jsx(oe,{"data-loc":"client/src/pages/JoinCompany.tsx:37",onClick:()=>e("/"),variant:"outline",children:"Go to Homepage"})]})});if(c.isLoading||r)return n.jsx("div",{"data-loc":"client/src/pages/JoinCompany.tsx:45",className:"min-h-screen bg-background pt-20 flex items-center justify-center",children:n.jsx(ht,{"data-loc":"client/src/pages/JoinCompany.tsx:46",className:"w-8 h-8 text-primary animate-spin"})});if(c.error)return n.jsx("div",{"data-loc":"client/src/pages/JoinCompany.tsx:53",className:"min-h-screen bg-background pt-20 flex items-center justify-center px-4",children:n.jsxs("div",{"data-loc":"client/src/pages/JoinCompany.tsx:54",className:"text-center max-w-md",children:[n.jsx(pu,{"data-loc":"client/src/pages/JoinCompany.tsx:55",className:"w-12 h-12 text-destructive mx-auto mb-4"}),n.jsx("h2",{"data-loc":"client/src/pages/JoinCompany.tsx:56",className:"font-display text-xl font-bold text-foreground mb-2",children:"Invitation Expired"}),n.jsx("p",{"data-loc":"client/src/pages/JoinCompany.tsx:57",className:"text-muted-foreground mb-6",children:"This invitation link is invalid or has expired. Please ask your team admin to send a new invitation."}),n.jsx(oe,{"data-loc":"client/src/pages/JoinCompany.tsx:58",onClick:()=>e("/"),variant:"outline",children:"Go to Homepage"})]})});const u=c.data;return t?n.jsx("div",{"data-loc":"client/src/pages/JoinCompany.tsx:94",className:"min-h-screen bg-background pt-20 flex items-center justify-center px-4",children:n.jsxs("div",{"data-loc":"client/src/pages/JoinCompany.tsx:95",className:"text-center max-w-md",children:[n.jsx("div",{"data-loc":"client/src/pages/JoinCompany.tsx:96",className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:n.jsx(Rs,{"data-loc":"client/src/pages/JoinCompany.tsx:97",className:"w-8 h-8 text-primary"})}),n.jsxs("h2",{"data-loc":"client/src/pages/JoinCompany.tsx:99",className:"font-display text-2xl font-bold text-foreground mb-2",children:["Join ",u?.companyName]}),n.jsxs("p",{"data-loc":"client/src/pages/JoinCompany.tsx:100",className:"text-muted-foreground mb-6",children:["You have been invited to join ",n.jsx("strong",{"data-loc":"client/src/pages/JoinCompany.tsx:101",children:u?.companyName})," on Docucert as a ",n.jsx("strong",{"data-loc":"client/src/pages/JoinCompany.tsx:101",children:u?.memberRole}),". All team members share the same company account and can submit and track orders together."]}),n.jsxs("div",{"data-loc":"client/src/pages/JoinCompany.tsx:103",className:"flex gap-3 justify-center",children:[n.jsx(oe,{"data-loc":"client/src/pages/JoinCompany.tsx:104",onClick:()=>d.mutate({token:i}),disabled:d.isPending,className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",children:d.isPending?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/JoinCompany.tsx:109",className:"w-4 h-4 animate-spin"})," Acceptingâ¦"]}):n.jsxs(n.Fragment,{children:[n.jsx(ws,{"data-loc":"client/src/pages/JoinCompany.tsx:109",className:"w-4 h-4"})," Accept Invitation"]})}),n.jsx(oe,{"data-loc":"client/src/pages/JoinCompany.tsx:111",variant:"outline",onClick:()=>e("/"),children:"Decline"})]})]})}):n.jsx("div",{"data-loc":"client/src/pages/JoinCompany.tsx:68",className:"min-h-screen bg-background pt-20 flex items-center justify-center px-4",children:n.jsxs("div",{"data-loc":"client/src/pages/JoinCompany.tsx:69",className:"text-center max-w-md",children:[n.jsx("div",{"data-loc":"client/src/pages/JoinCompany.tsx:70",className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:n.jsx(Rs,{"data-loc":"client/src/pages/JoinCompany.tsx:71",className:"w-8 h-8 text-primary"})}),n.jsxs("h2",{"data-loc":"client/src/pages/JoinCompany.tsx:73",className:"font-display text-2xl font-bold text-foreground mb-2",children:["Join ",u?.companyName]}),n.jsxs("p",{"data-loc":"client/src/pages/JoinCompany.tsx:74",className:"text-muted-foreground mb-2",children:["You have been invited to join ",n.jsx("strong",{"data-loc":"client/src/pages/JoinCompany.tsx:75",children:u?.companyName})," on Docucert as a ",n.jsx("strong",{"data-loc":"client/src/pages/JoinCompany.tsx:75",children:u?.memberRole}),"."]}),n.jsx("p",{"data-loc":"client/src/pages/JoinCompany.tsx:77",className:"text-sm text-muted-foreground mb-6",children:"Sign in or create a Docucert account to accept this invitation."}),n.jsx(oe,{"data-loc":"client/src/pages/JoinCompany.tsx:80",onClick:()=>{window.location.href=il()},className:"bg-primary hover:bg-primary/90 text-primary-foreground",children:"Sign in to Accept"})]})})}class Zk extends v.Component{constructor(t){super(t),this.state={hasError:!1,error:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}render(){return this.state.hasError?n.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:n.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[n.jsx(zc,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),n.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),n.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:n.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),n.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:vt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[n.jsx(aR,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const Jk=v.createContext(void 0);function eP({children:e,defaultTheme:t="light",switchable:r=!1}){const[i,c]=v.useState(()=>r&&localStorage.getItem("theme")||t);v.useEffect(()=>{const u=document.documentElement;i==="dark"?u.classList.add("dark"):u.classList.remove("dark"),r&&localStorage.setItem("theme",i)},[i,r]);const d=r?()=>{c(u=>u==="light"?"dark":"light")}:void 0;return n.jsx(Jk.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:i,toggleTheme:d,switchable:r},children:e})}const Jx=v.createContext({});function eg(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const tg=typeof window<"u",lS=tg?v.useLayoutEffect:v.useEffect,Yu=v.createContext(null);function sg(e,t){e.indexOf(t)===-1&&e.push(t)}function ag(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}const on=(e,t,r)=>r>t?t:r<e?e:r;let ng=()=>{};const cn={},dS=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function uS(e){return typeof e=="object"&&e!==null}const mS=e=>/^0[^.\s]+$/u.test(e);function rg(e){let t;return()=>(t===void 0&&(t=e()),t)}
vendor: 45,134 bytes, lines 451-459
451const Zs=e=>e,tP=(e,t)=>r=>t(e(r)),ol=(...e)=>e.reduce(tP),Ic=(e,t,r)=>{const i=t-e;return i===0?1:(r-e)/i};class ig{constructor(){this.subscriptions=[]}add(t){return sg(this.subscriptions,t),()=>ag(this.subscriptions,t)}notify(t,r,i){const c=this.subscriptions.length;if(c)if(c===1)this.subscriptions[0](t,r,i);else for(let d=0;d<c;d++){const u=this.subscriptions[d];u&&u(t,r,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Oa=e=>e*1e3,Ws=e=>e/1e3;function fS(e,t){return t?e*(1e3/t):0}const pS=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,sP=1e-7,aP=12;function nP(e,t,r,i,c){let d,u,m=0;do u=t+(r-t)/2,d=pS(u,i,c)-e,d>0?r=u:t=u;while(Math.abs(d)>sP&&++m<aP);return u}function cl(e,t,r,i){if(e===t&&r===i)return Zs;const c=d=>nP(d,0,1,e,r);return d=>d===0||d===1?d:pS(c(d),t,i)}const hS=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,xS=e=>t=>1-e(1-t),gS=cl(.33,1.53,.69,.99),og=xS(gS),yS=hS(og),vS=e=>(e*=2)<1?.5*og(e):.5*(2-Math.pow(2,-10*(e-1))),cg=e=>1-Math.sin(Math.acos(e)),bS=xS(cg),jS=hS(cg),rP=cl(.42,0,1,1),iP=cl(0,0,.58,1),wS=cl(.42,0,.58,1),oP=e=>Array.isArray(e)&&typeof e[0]!="number",NS=e=>Array.isArray(e)&&typeof e[0]=="number",cP={linear:Zs,easeIn:rP,easeInOut:wS,easeOut:iP,circIn:cg,circInOut:jS,circOut:bS,backIn:og,backInOut:yS,backOut:gS,anticipate:vS},lP=e=>typeof e=="string",s2=e=>{if(NS(e)){ng(e.length===4);const[t,r,i,c]=e;return cl(t,r,i,c)}else if(lP(e))return cP[e];return e},Vd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function dP(e,t){let r=new Set,i=new Set,c=!1,d=!1;const u=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function f(y){u.has(y)&&(h.schedule(y),e()),y(m)}const h={schedule:(y,g=!1,b=!1)=>{const C=b&&c?r:i;return g&&u.add(y),C.has(y)||C.add(y),y},cancel:y=>{i.delete(y),u.delete(y)},process:y=>{if(m=y,c){d=!0;return}c=!0,[r,i]=[i,r],r.forEach(f),r.clear(),c=!1,d&&(d=!1,h.process(y))}};return h}const uP=40;function SS(e,t){let r=!1,i=!0;const c={delta:0,timestamp:0,isProcessing:!1},d=()=>r=!0,u=Vd.reduce((M,V)=>(M[V]=dP(d),M),{}),{setup:m,read:f,resolveKeyframes:h,preUpdate:y,update:g,preRender:b,render:w,postRender:C}=u,N=()=>{const M=cn.useManualTiming?c.timestamp:performance.now();r=!1,cn.useManualTiming||(c.delta=i?1e3/60:Math.max(Math.min(M-c.timestamp,uP),1)),c.timestamp=M,c.isProcessing=!0,m.process(c),f.process(c),h.process(c),y.process(c),g.process(c),b.process(c),w.process(c),C.process(c),c.isProcessing=!1,r&&t&&(i=!1,e(N))},S=()=>{r=!0,i=!0,c.isProcessing||e(N)};return{schedule:Vd.reduce((M,V)=>{const O=u[V];return M[V]=(B,E=!1,k=!1)=>(r||S(),O.schedule(B,E,k)),M},{}),cancel:M=>{for(let V=0;V<Vd.length;V++)u[Vd[V]].cancel(M)},state:c,steps:u}}const{schedule:yt,cancel:Zn,state:Zt,steps:Ip}=SS(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zs,!0);let eu;function mP(){eu=void 0}const js={now:()=>(eu===void 0&&js.set(Zt.isProcessing||cn.useManualTiming?Zt.timestamp:performance.now()),eu),set:e=>{eu=e,queueMicrotask(mP)}},CS=e=>t=>typeof t=="string"&&t.startsWith(e),lg=CS("--"),fP=CS("var(--"),dg=e=>fP(e)?pP.test(e.split("/*")[0].trim()):!1,pP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,vo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Vc={...vo,transform:e=>on(0,1,e)},qd={...vo,default:1},Sc=e=>Math.round(e*1e5)/1e5,ug=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function hP(e){return e==null}const xP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mg=(e,t)=>r=>!!(typeof r=="string"&&xP.test(r)&&r.startsWith(e)||t&&!hP(r)&&Object.prototype.hasOwnProperty.call(r,t)),AS=(e,t,r)=>i=>{if(typeof i!="string")return i;const[c,d,u,m]=i.match(ug);return{[e]:parseFloat(c),[t]:parseFloat(d),[r]:parseFloat(u),alpha:m!==void 0?parseFloat(m):1}},gP=e=>on(0,255,e),Vp={...vo,transform:e=>Math.round(gP(e))},Pr={test:mg("rgb","red"),parse:AS("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+Vp.transform(e)+", "+Vp.transform(t)+", "+Vp.transform(r)+", "+Sc(Vc.transform(i))+")"};function yP(e){let t="",r="",i="",c="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),c=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),c=e.substring(4,5),t+=t,r+=r,i+=i,c+=c),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alpha:c?parseInt(c,16)/255:1}}const Gh={test:mg("#"),parse:yP,transform:Pr.transform},ll=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),zn=ll("deg"),Ea=ll("%"),_e=ll("px"),vP=ll("vh"),bP=ll("vw"),a2={...Ea,parse:e=>Ea.parse(e)/100,transform:e=>Ea.transform(e*100)},Wi={test:mg("hsl","hue"),parse:AS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+Ea.transform(Sc(t))+", "+Ea.transform(Sc(r))+", "+Sc(Vc.transform(i))+")"},Lt={test:e=>Pr.test(e)||Gh.test(e)||Wi.test(e),parse:e=>Pr.test(e)?Pr.parse(e):Wi.test(e)?Wi.parse(e):Gh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Pr.transform(e):Wi.transform(e),getAnimatableNone:e=>{const t=Lt.parse(e);return t.alpha=0,Lt.transform(t)}},jP=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wP(e){return isNaN(e)&&typeof e=="string"&&(e.match(ug)?.length||0)+(e.match(jP)?.length||0)>0}const TS="number",OS="color",NP="var",SP="var(",n2="${}",CP=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function qc(e){const t=e.toString(),r=[],i={color:[],number:[],var:[]},c=[];let d=0;const m=t.replace(CP,f=>(Lt.test(f)?(i.color.push(d),c.push(OS),r.push(Lt.parse(f))):f.startsWith(SP)?(i.var.push(d),c.push(NP),r.push(f)):(i.number.push(d),c.push(TS),r.push(parseFloat(f))),++d,n2)).split(n2);return{values:r,split:m,indexes:i,types:c}}function ES(e){return qc(e).values}function DS(e){const{split:t,types:r}=qc(e),i=t.length;return c=>{let d="";for(let u=0;u<i;u++)if(d+=t[u],c[u]!==void 0){const m=r[u];m===TS?d+=Sc(c[u]):m===OS?d+=Lt.transform(c[u]):d+=c[u]}return d}}const AP=e=>typeof e=="number"?0:Lt.test(e)?Lt.getAnimatableNone(e):e;function TP(e){const t=ES(e);return DS(e)(t.map(AP))}const Jn={test:wP,parse:ES,createTransformer:DS,getAnimatableNone:TP};function qp(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function OP({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,t/=100,r/=100;let c=0,d=0,u=0;if(!t)c=d=u=r;else{const m=r<.5?r*(1+t):r+t-r*t,f=2*r-m;c=qp(f,m,e+1/3),d=qp(f,m,e),u=qp(f,m,e-1/3)}return{red:Math.round(c*255),green:Math.round(d*255),blue:Math.round(u*255),alpha:i}}function gu(e,t){return r=>r>0?t:e}const jt=(e,t,r)=>e+(t-e)*r,Fp=(e,t,r)=>{const i=e*e,c=r*(t*t-i)+i;return c<0?0:Math.sqrt(c)},EP=[Gh,Pr,Wi],DP=e=>EP.find(t=>t.test(e));function r2(e){const t=DP(e);if(!t)return!1;let r=t.parse(e);return t===Wi&&(r=OP(r)),r}const i2=(e,t)=>{const r=r2(e),i=r2(t);if(!r||!i)return gu(e,t);const c={...r};return d=>(c.red=Fp(r.red,i.red,d),c.green=Fp(r.green,i.green,d),c.blue=Fp(r.blue,i.blue,d),c.alpha=jt(r.alpha,i.alpha,d),Pr.transform(c))},Qh=new Set(["none","hidden"]);function MP(e,t){return Qh.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}function RP(e,t){return r=>jt(e,t,r)}function fg(e){return typeof e=="number"?RP:typeof e=="string"?dg(e)?gu:Lt.test(e)?i2:_P:Array.isArray(e)?MS:typeof e=="object"?Lt.test(e)?i2:kP:gu}function MS(e,t){const r=[...e],i=r.length,c=e.map((d,u)=>fg(d)(d,t[u]));return d=>{for(let u=0;u<i;u++)r[u]=c[u](d);return r}}function kP(e,t){const r={...e,...t},i={};for(const c in r)e[c]!==void 0&&t[c]!==void 0&&(i[c]=fg(e[c])(e[c],t[c]));return c=>{for(const d in i)r[d]=i[d](c);return r}}function PP(e,t){const r=[],i={color:0,var:0,number:0};for(let c=0;c<t.values.length;c++){const d=t.types[c],u=e.indexes[d][i[d]],m=e.values[u]??0;r[c]=m,i[d]++}return r}const _P=(e,t)=>{const r=Jn.createTransformer(t),i=qc(e),c=qc(t);return i.indexes.var.length===c.indexes.var.length&&i.indexes.color.length===c.indexes.color.length&&i.indexes.number.length>=c.indexes.number.length?Qh.has(e)&&!c.values.length||Qh.has(t)&&!i.values.length?MP(e,t):ol(MS(PP(i,c),c.values),r):gu(e,t)};function RS(e,t,r){return typeof e=="number"&&typeof t=="number"&&typeof r=="number"?jt(e,t,r):fg(e)(e,t)}const LP=e=>{const t=({timestamp:r})=>e(r);return{start:(r=!0)=>yt.update(t,r),stop:()=>Zn(t),now:()=>Zt.isProcessing?Zt.timestamp:js.now()}},kS=(e,t,r=10)=>{let i="";const c=Math.max(Math.round(t/r),2);for(let d=0;d<c;d++)i+=Math.round(e(d/(c-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},yu=2e4;function pg(e){let t=0;const r=50;let i=e.next(t);for(;!i.done&&t<yu;)t+=r,i=e.next(t);return t>=yu?1/0:t}function UP(e,t=100,r){const i=r({...e,keyframes:[0,t]}),c=Math.min(pg(i),yu);return{type:"keyframes",ease:d=>i.next(c*d).value/t,duration:Ws(c)}}const BP=5;function PS(e,t,r){const i=Math.max(t-BP,0);return fS(r-e(i),t-i)}const Ct={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Gp=.001;function zP({duration:e=Ct.duration,bounce:t=Ct.bounce,velocity:r=Ct.velocity,mass:i=Ct.mass}){let c,d,u=1-t;u=on(Ct.minDamping,Ct.maxDamping,u),e=on(Ct.minDuration,Ct.maxDuration,Ws(e)),u<1?(c=h=>{const y=h*u,g=y*e,b=y-r,w=Kh(h,u),C=Math.exp(-g);return Gp-b/w*C},d=h=>{const g=h*u*e,b=g*r+r,w=Math.pow(u,2)*Math.pow(h,2)*e,C=Math.exp(-g),N=Kh(Math.pow(h,2),u);return(-c(h)+Gp>0?-1:1)*((b-w)*C)/N}):(c=h=>{const y=Math.exp(-h*e),g=(h-r)*e+1;return-Gp+y*g},d=h=>{const y=Math.exp(-h*e),g=(r-h)*(e*e);return y*g});const m=5/e,f=IP(c,d,m);if(e=Oa(e),isNaN(f))return{stiffness:Ct.stiffness,damping:Ct.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:u*2*Math.sqrt(i*h),duration:e}}}const HP=12;function IP(e,t,r){let i=r;for(let c=1;c<HP;c++)i=i-e(i)/t(i);return i}function Kh(e,t){return e*Math.sqrt(1-t*t)}const VP=["duration","bounce"],qP=["stiffness","damping","mass"];function o2(e,t){return t.some(r=>e[r]!==void 0)}function FP(e){let t={velocity:Ct.velocity,stiffness:Ct.stiffness,damping:Ct.damping,mass:Ct.mass,isResolvedFromDuration:!1,...e};if(!o2(e,qP)&&o2(e,VP))if(e.visualDuration){const r=e.visualDuration,i=2*Math.PI/(r*1.2),c=i*i,d=2*on(.05,1,1-(e.bounce||0))*Math.sqrt(c);t={...t,mass:Ct.mass,stiffness:c,damping:d}}else{const r=zP(e);t={...t,...r,mass:Ct.mass},t.isResolvedFromDuration=!0}return t}function vu(e=Ct.visualDuration,t=Ct.bounce){const r=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:c}=r;const d=r.keyframes[0],u=r.keyframes[r.keyframes.length-1],m={done:!1,value:d},{stiffness:f,damping:h,mass:y,duration:g,velocity:b,isResolvedFromDuration:w}=FP({...r,velocity:-Ws(r.velocity||0)}),C=b||0,N=h/(2*Math.sqrt(f*y)),S=u-d,A=Ws(Math.sqrt(f/y)),D=Math.abs(S)<5;i||(i=D?Ct.restSpeed.granular:Ct.restSpeed.default),c||(c=D?Ct.restDelta.granular:Ct.restDelta.default);let M;if(N<1){const O=Kh(A,N);M=B=>{const E=Math.exp(-N*A*B);return u-E*((C+N*A*S)/O*Math.sin(O*B)+S*Math.cos(O*B))}}else if(N===1)M=O=>u-Math.exp(-A*O)*(S+(C+A*S)*O);else{const O=A*Math.sqrt(N*N-1);M=B=>{const E=Math.exp(-N*A*B),k=Math.min(O*B,300);return u-E*((C+N*A*S)*Math.sinh(k)+O*S*Math.cosh(k))/O}}const V={calculatedDuration:w&&g||null,next:O=>{const B=M(O);if(w)m.done=O>=g;else{let E=O===0?C:0;N<1&&(E=O===0?Oa(C):PS(M,O,B));const k=Math.abs(E)<=i,J=Math.abs(u-B)<=c;m.done=k&&J}return m.value=m.done?u:B,m},toString:()=>{const O=Math.min(pg(V),yu),B=kS(E=>V.next(O*E).value,O,30);return O+"ms "+B},toTransition:()=>{}};return V}vu.applyToOptions=e=>{const t=UP(e,100,vu);return e.ease=t.ease,e.duration=Oa(t.duration),e.type="keyframes",e};function Yh({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:c=10,bounceStiffness:d=500,modifyTarget:u,min:m,max:f,restDelta:h=.5,restSpeed:y}){const g=e[0],b={done:!1,value:g},w=k=>m!==void 0&&k<m||f!==void 0&&k>f,C=k=>m===void 0?f:f===void 0||Math.abs(m-k)<Math.abs(f-k)?m:f;let N=r*t;const S=g+N,A=u===void 0?S:u(S);A!==S&&(N=A-g);const D=k=>-N*Math.exp(-k/i),M=k=>A+D(k),V=k=>{const J=D(k),te=M(k);b.done=Math.abs(J)<=h,b.value=b.done?A:te};let O,B;const E=k=>{w(b.value)&&(O=k,B=vu({keyframes:[b.value,C(b.value)],velocity:PS(M,k,b.value),damping:c,stiffness:d,restDelta:h,restSpeed:y}))};return E(0),{calculatedDuration:null,next:k=>{let J=!1;return!B&&O===void 0&&(J=!0,V(k),E(k)),O!==void 0&&k>=O?B.next(k-O):(!J&&V(k),b)}}}function GP(e,t,r){const i=[],c=r||cn.mix||RS,d=e.length-1;for(let u=0;u<d;u++){let m=c(e[u],e[u+1]);if(t){const f=Array.isArray(t)?t[u]||Zs:t;m=ol(f,m)}i.push(m)}return i}function QP(e,t,{clamp:r=!0,ease:i,mixer:c}={}){const d=e.length;if(ng(d===t.length),d===1)return()=>t[0];if(d===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[d-1]&&(e=[...e].reverse(),t=[...t].reverse());const m=GP(t,i,c),f=m.length,h=y=>{if(u&&y<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(y<e[g+1]);g++);const b=Ic(e[g],e[g+1],y);return m[g](b)};return r?y=>h(on(e[0],e[d-1],y)):h}function KP(e,t){const r=e[e.length-1];for(let i=1;i<=t;i++){const c=Ic(0,t,i);e.push(jt(r,1,c))}}function YP(e){const t=[0];return KP(t,e.length-1),t}function $P(e,t){return e.map(r=>r*t)}function XP(e,t){return e.map(()=>t||wS).splice(0,e.length-1)}function Cc({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){const c=oP(i)?i.map(s2):s2(i),d={done:!1,value:t[0]},u=$P(r&&r.length===t.length?r:YP(t),e),m=QP(u,t,{ease:Array.isArray(c)?c:XP(t,c)});return{calculatedDuration:e,next:f=>(d.value=m(f),d.done=f>=e,d)}}const WP=e=>e!==null;function hg(e,{repeat:t,repeatType:r="loop"},i,c=1){const d=e.filter(WP),m=c<0||t&&r!=="loop"&&t%2===1?0:d.length-1;return!m||i===void 0?d[m]:i}const ZP={decay:Yh,inertia:Yh,tween:Cc,keyframes:Cc,spring:vu};function _S(e){typeof e.type=="string"&&(e.type=ZP[e.type])}class xg{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,r){return this.finished.then(t,r)}}const JP=e=>e/100;class gg extends xg{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:r}=this.options;r&&r.updatedAt!==js.now()&&this.tick(js.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_S(t);const{type:r=Cc,repeat:i=0,repeatDelay:c=0,repeatType:d,velocity:u=0}=t;let{keyframes:m}=t;const f=r||Cc;f!==Cc&&typeof m[0]!="number"&&(this.mixKeyframes=ol(JP,RS(m[0],m[1])),m=[0,100]);const h=f({...t,keyframes:m});d==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...m].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=pg(h));const{calculatedDuration:y}=h;this.calculatedDuration=y,this.resolvedDuration=y+c,this.totalDuration=this.resolvedDuration*(i+1)-c,this.generator=h}updateTime(t){const r=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=r}tick(t,r=!1){const{generator:i,totalDuration:c,mixKeyframes:d,mirroredGenerator:u,resolvedDuration:m,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:y,repeat:g,repeatType:b,repeatDelay:w,type:C,onUpdate:N,finalKeyframe:S}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),r?this.currentTime=t:this.updateTime(t);const A=this.currentTime-h*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?A<0:A>c;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let M=this.currentTime,V=i;if(g){const k=Math.min(this.currentTime,c)/m;let J=Math.floor(k),te=k%1;!te&&k>=1&&(te=1),te===1&&J--,J=Math.min(J,g+1),!!(J%2)&&(b==="reverse"?(te=1-te,w&&(te-=w/m)):b==="mirror"&&(V=u)),M=on(0,1,te)*m}const O=D?{done:!1,value:y[0]}:V.next(M);d&&(O.value=d(O.value));let{done:B}=O;!D&&f!==null&&(B=this.playbackSpeed>=0?this.currentTime>=c:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&B);return E&&C!==Yh&&(O.value=hg(y,this.options,S,this.speed)),N&&N(O.value),E&&this.finish(),O}then(t,r){return this.finished.then(t,r)}get duration(){return Ws(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ws(t)}get time(){return Ws(this.currentTime)}set time(t){t=Oa(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(js.now());const r=this.playbackSpeed!==t;this.playbackSpeed=t,r&&(this.time=Ws(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=LP,startTime:r}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=r??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(js.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function e_(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const _r=e=>e*180/Math.PI,$h=e=>{const t=_r(Math.atan2(e[1],e[0]));return Xh(t)},t_={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:$h,rotateZ:$h,skewX:e=>_r(Math.atan(e[1])),skewY:e=>_r(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Xh=e=>(e=e%360,e<0&&(e+=360),e),c2=$h,l2=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),d2=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),s_={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:l2,scaleY:d2,scale:e=>(l2(e)+d2(e))/2,rotateX:e=>Xh(_r(Math.atan2(e[6],e[5]))),rotateY:e=>Xh(_r(Math.atan2(-e[2],e[0]))),rotateZ:c2,rotate:c2,skewX:e=>_r(Math.atan(e[4])),skewY:e=>_r(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Wh(e){return e.includes("scale")?1:0}function Zh(e,t){if(!e||e==="none")return Wh(t);const r=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,c;if(r)i=s_,c=r;else{const m=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=t_,c=m}if(!c)return Wh(t);const d=i[t],u=c[1].split(",").map(n_);return typeof d=="function"?d(u):u[d]}const a_=(e,t)=>{const{transform:r="none"}=getComputedStyle(e);return Zh(r,t)};function n_(e){return parseFloat(e.trim())}const bo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jo=new Set(bo),u2=e=>e===vo||e===_e,r_=new Set(["x","y","z"]),i_=bo.filter(e=>!r_.has(e));function o_(e){const t=[];return i_.forEach(r=>{const i=e.getValue(r);i!==void 0&&(t.push([r,i.get()]),i.set(r.startsWith("scale")?1:0))}),t}const Lr={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>Zh(t,"x"),y:(e,{transform:t})=>Zh(t,"y")};Lr.translateX=Lr.x;Lr.translateY=Lr.y;const Ur=new Set;let Jh=!1,ex=!1,tx=!1;function LS(){if(ex){const e=Array.from(Ur).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),r=new Map;t.forEach(i=>{const c=o_(i);c.length&&(r.set(i,c),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const c=r.get(i);c&&c.forEach(([d,u])=>{i.getValue(d)?.set(u)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}ex=!1,Jh=!1,Ur.forEach(e=>e.complete(tx)),Ur.clear()}function US(){Ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ex=!0)})}function c_(){tx=!0,US(),LS(),tx=!1}class yg{constructor(t,r,i,c,d,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=r,this.name=i,this.motionValue=c,this.element=d,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Ur.add(this),Jh||(Jh=!0,yt.read(US),yt.resolveKeyframes(LS))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:r,element:i,motionValue:c}=this;if(t[0]===null){const d=c?.get(),u=t[t.length-1];if(d!==void 0)t[0]=d;else if(i&&r){const m=i.readValue(r,u);m!=null&&(t[0]=m)}t[0]===void 0&&(t[0]=u),c&&d===void 0&&c.set(t[0])}e_(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ur.delete(this)}cancel(){this.state==="scheduled"&&(Ur.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const l_=e=>e.startsWith("--");function d_(e,t,r){l_(t)?e.style.setProperty(t,r):e.style[t]=r}const u_=rg(()=>window.ScrollTimeline!==void 0),m_={};function f_(e,t){const r=rg(e);return()=>m_[t]??r()}const BS=f_(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),vc=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,m2={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vc([0,.65,.55,1]),circOut:vc([.55,0,1,.45]),backIn:vc([.31,.01,.66,-.59]),backOut:vc([.33,1.53,.69,.99])};function zS(e,t){if(e)return typeof e=="function"?BS()?kS(e,t):"ease-out":NS(e)?vc(e):Array.isArray(e)?e.map(r=>zS(r,t)||m2.easeOut):m2[e]}function p_(e,t,r,{delay:i=0,duration:c=300,repeat:d=0,repeatType:u="loop",ease:m="easeOut",times:f}={},h=void 0){const y={[t]:r};f&&(y.offset=f);const g=zS(m,c);Array.isArray(g)&&(y.easing=g);const b={delay:i,duration:c,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:d+1,direction:u==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(y,b)}function HS(e){return typeof e=="function"&&"applyToOptions"in e}function h_({type:e,...t}){return HS(e)&&BS()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class x_ extends xg{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:r,name:i,keyframes:c,pseudoElement:d,allowFlatten:u=!1,finalKeyframe:m,onComplete:f}=t;this.isPseudoElement=!!d,this.allowFlatten=u,this.options=t,ng(typeof t.type!="string");const h=h_(t);this.animation=p_(r,i,c,h,d),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!d){const y=hg(c,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(y):d_(r,i,y),this.animation.cancel()}f?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return Ws(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ws(t)}get time(){return Ws(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Oa(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&u_()?(this.animation.timeline=t,Zs):r(this)}}const IS={anticipate:vS,backInOut:yS,circInOut:jS};function g_(e){return e in IS}function y_(e){typeof e.ease=="string"&&g_(e.ease)&&(e.ease=IS[e.ease])}const f2=10;class v_ extends x_{constructor(t){y_(t),_S(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:r,onUpdate:i,onComplete:c,element:d,...u}=this.options;if(!r)return;if(t!==void 0){r.set(t);return}const m=new gg({...u,autoplay:!1}),f=Oa(this.finishedTime??this.time);r.setWithVelocity(m.sample(f-f2).value,m.sample(f).value,f2),m.stop()}}const p2=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Jn.test(e)||e==="0")&&!e.startsWith("url("));function b_(e){const t=e[0];if(e.length===1)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}function j_(e,t,r,i){const c=e[0];if(c===null)return!1;if(t==="display"||t==="visibility")return!0;const d=e[e.length-1],u=p2(c,t),m=p2(d,t);return!u||!m?!1:b_(e)||(r==="spring"||HS(r))&&i}function sx(e){e.duration=0,e.type="keyframes"}const w_=new Set(["opacity","clipPath","filter","transform"]),N_=rg(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function S_(e){const{motionValue:t,name:r,repeatDelay:i,repeatType:c,damping:d,type:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return N_()&&r&&w_.has(r)&&(r!=="transform"||!h)&&!f&&!i&&c!=="mirror"&&d!==0&&u!=="inertia"}const C_=40;class A_ extends xg{constructor({autoplay:t=!0,delay:r=0,type:i="keyframes",repeat:c=0,repeatDelay:d=0,repeatType:u="loop",keyframes:m,name:f,motionValue:h,element:y,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=js.now();const b={autoplay:t,delay:r,type:i,repeat:c,repeatDelay:d,repeatType:u,name:f,motionValue:h,element:y,...g},w=y?.KeyframeResolver||yg;this.keyframeResolver=new w(m,(C,N,S)=>this.onKeyframesResolved(C,N,b,!S),f,h,y),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,r,i,c){this.keyframeResolver=void 0;const{name:d,type:u,velocity:m,delay:f,isHandoff:h,onUpdate:y}=i;this.resolvedAt=js.now(),j_(t,d,u,m)||((cn.instantAnimations||!f)&&y?.(hg(t,i,r)),t[0]=t[t.length-1],sx(i),i.repeat=0);const b={startTime:c?this.resolvedAt?this.resolvedAt-this.createdAt>C_?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:r,...i,keyframes:t},w=!h&&S_(b)?new v_({...b,element:b.motionValue.owner.current}):new gg(b);w.finished.then(()=>this.notifyFinished()).catch(Zs),this.pendingTimeline&&(this.stopTimeline=w.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=w}get finished(){return this._animation?this.animation.finished:this._finished}then(t,r){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),c_()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const T_=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function O_(e){const t=T_.exec(e);if(!t)return[,];const[,r,i,c]=t;return[`--${r??i}`,c]}function VS(e,t,r=1){const[i,c]=O_(e);if(!i)return;const d=window.getComputedStyle(t).getPropertyValue(i);if(d){const u=d.trim();return dS(u)?parseFloat(u):u}return dg(c)?VS(c,t,r+1):c}function vg(e,t){return e?.[t]??e?.default??e}const qS=new Set(["width","height","top","left","right","bottom",...bo]),E_={test:e=>e==="auto",parse:e=>e},FS=e=>t=>t.test(e),GS=[vo,_e,Ea,zn,bP,vP,E_],h2=e=>GS.find(FS(e));function D_(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||mS(e):!0}const M_=new Set(["brightness","contrast","saturate","opacity"]);function R_(e){const[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=r.match(ug)||[];if(!i)return e;const c=r.replace(i,"");let d=M_.has(t)?1:0;return i!==r&&(d*=100),t+"("+d+c+")"}const k_=/\b([a-z-]*)\(.*?\)/gu,ax={...Jn,getAnimatableNone:e=>{const t=e.match(k_);return t?t.map(R_).join(" "):e}},x2={...vo,transform:Math.round},P_={rotate:zn,rotateX:zn,rotateY:zn,rotateZ:zn,scale:qd,scaleX:qd,scaleY:qd,scaleZ:qd,skew:zn,skewX:zn,skewY:zn,distance:_e,translateX:_e,translateY:_e,translateZ:_e,x:_e,y:_e,z:_e,perspective:_e,transformPerspective:_e,opacity:Vc,originX:a2,originY:a2,originZ:_e},bg={borderWidth:_e,borderTopWidth:_e,borderRightWidth:_e,borderBottomWidth:_e,borderLeftWidth:_e,borderRadius:_e,radius:_e,borderTopLeftRadius:_e,borderTopRightRadius:_e,borderBottomRightRadius:_e,borderBottomLeftRadius:_e,width:_e,maxWidth:_e,height:_e,maxHeight:_e,top:_e,right:_e,bottom:_e,left:_e,padding:_e,paddingTop:_e,paddingRight:_e,paddingBottom:_e,paddingLeft:_e,margin:_e,marginTop:_e,marginRight:_e,marginBottom:_e,marginLeft:_e,backgroundPositionX:_e,backgroundPositionY:_e,...P_,zIndex:x2,fillOpacity:Vc,strokeOpacity:Vc,numOctaves:x2},__={...bg,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:ax,WebkitFilter:ax},QS=e=>__[e];function KS(e,t){let r=QS(e);return r!==ax&&(r=Jn),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const L_=new Set(["auto","none","0"]);function U_(e,t,r){let i=0,c;for(;i<e.length&&!c;){const d=e[i];typeof d=="string"&&!L_.has(d)&&qc(d).values.length&&(c=e[i]),i++}if(c&&r)for(const d of t)e[d]=KS(r,c)}class B_ extends yg{constructor(t,r,i,c,d){super(t,r,i,c,d,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:r,name:i}=this;if(!r||!r.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),dg(h))){const y=VS(h,r.current);y!==void 0&&(t[f]=y),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!qS.has(i)||t.length!==2)return;const[c,d]=t,u=h2(c),m=h2(d);if(u!==m)if(u2(u)&&u2(m))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else Lr[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:r}=this,i=[];for(let c=0;c<t.length;c++)(t[c]===null||D_(t[c]))&&i.push(c);i.length&&U_(t,i,r)}measureInitialState(){const{element:t,unresolvedKeyframes:r,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lr[i](t.measureViewportBox(),window.getComputedStyle(t.current)),r[0]=this.measuredOrigin;const c=r[r.length-1];c!==void 0&&t.getValue(i,c).jump(c,!1)}measureEndState(){const{element:t,name:r,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const c=t.getValue(r);c&&c.jump(this.measuredOrigin,!1);const d=i.length-1,u=i[d];i[d]=Lr[r](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([m,f])=>{t.getValue(m).set(f)}),this.resolveNoneKeyframes()}}function z_(e,t,r){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const c=r?.[e]??i.querySelectorAll(e);return c?Array.from(c):[]}return Array.from(e)}const YS=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function $S(e){return uS(e)&&"offsetHeight"in e}const g2=30,H_=e=>!isNaN(parseFloat(e));class I_{constructor(t,r={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const c=js.now();if(this.updatedAt!==c&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const d of this.dependents)d.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=r.owner}setCurrent(t){this.current=t,this.updatedAt=js.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=H_(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,r){this.events[t]||(this.events[t]=new ig);const i=this.events[t].add(r);return t==="change"?()=>{i(),yt.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,r){this.passiveEffect=t,this.stopPassiveEffect=r}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,r,i){this.set(r),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,r=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,r&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=js.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>g2)return 0;const r=Math.min(this.updatedAt-this.prevUpdatedAt,g2);return fS(parseFloat(this.current)-parseFloat(this.prevFrameValue),r)}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=t(r),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function uo(e,t){return new I_(e,t)}const{schedule:jg}=SS(queueMicrotask,!1),oa={x:!1,y:!1};function XS(){return oa.x||oa.y}function V_(e){return e==="x"||e==="y"?oa[e]?null:(oa[e]=!0,()=>{oa[e]=!1}):oa.x||oa.y?null:(oa.x=oa.y=!0,()=>{oa.x=oa.y=!1})}function WS(e,t){const r=z_(e),i=new AbortController,c={passive:!0,...t,signal:i.signal};return[r,c,()=>i.abort()]}function y2(e){return!(e.pointerType==="touch"||XS())}function q_(e,t,r={}){const[i,c,d]=WS(e,r),u=m=>{if(!y2(m))return;const{target:f}=m,h=t(f,m);if(typeof h!="function"||!f)return;const y=g=>{y2(g)&&(h(g),f.removeEventListener("pointerleave",y))};f.addEventListener("pointerleave",y,c)};return i.forEach(m=>{m.addEventListener("pointerenter",u,c)}),d}const ZS=(e,t)=>t?e===t?!0:ZS(e,t.parentElement):!1,wg=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,F_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function G_(e){return F_.has(e.tagName)||e.tabIndex!==-1}const tu=new WeakSet;function v2(e){return t=>{t.key==="Enter"&&e(t)}}function Qp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Q_=(e,t)=>{const r=e.currentTarget;if(!r)return;const i=v2(()=>{if(tu.has(r))return;Qp(r,"down");const c=v2(()=>{Qp(r,"up")}),d=()=>Qp(r,"cancel");r.addEventListener("keyup",c,t),r.addEventListener("blur",d,t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)};function b2(e){return wg(e)&&!XS()}function K_(e,t,r={}){const[i,c,d]=WS(e,r),u=m=>{const f=m.currentTarget;if(!b2(m))return;tu.add(f);const h=t(f,m),y=(w,C)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),tu.has(f)&&tu.delete(f),b2(w)&&typeof h=="function"&&h(w,{success:C})},g=w=>{y(w,f===window||f===document||r.useGlobalTarget||ZS(f,w.target))},b=w=>{y(w,!1)};window.addEventListener("pointerup",g,c),window.addEventListener("pointercancel",b,c)};return i.forEach(m=>{(r.useGlobalTarget?window:m).addEventListener("pointerdown",u,c),$S(m)&&(m.addEventListener("focus",h=>Q_(h,c)),!G_(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),d}function JS(e){return uS(e)&&"ownerSVGElement"in e}function Y_(e){return JS(e)&&e.tagName==="svg"}const as=e=>!!(e&&e.getVelocity),$_=[...GS,Lt,Jn],X_=e=>$_.find(FS(e)),Ng=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function j2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function W_(...e){return t=>{let r=!1;const i=e.map(c=>{const d=j2(c,t);return!r&&typeof d=="function"&&(r=!0),d});if(r)return()=>{for(let c=0;c<i.length;c++){const d=i[c];typeof d=="function"?d():j2(e[c],null)}}}}function Z_(...e){return v.useCallback(W_(...e),e)}class J_ extends v.Component{getSnapshotBeforeUpdate(t){const r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){const i=r.offsetParent,c=$S(i)&&i.offsetWidth||0,d=this.props.sizeRef.current;d.height=r.offsetHeight||0,d.width=r.offsetWidth||0,d.top=r.offsetTop,d.left=r.offsetLeft,d.right=c-d.width-d.left}return null}componentDidUpdate(){}render(){return this.props.children}}function e8({children:e,isPresent:t,anchorX:r,root:i}){const c=v.useId(),d=v.useRef(null),u=v.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:m}=v.useContext(Ng),f=Z_(d,e?.ref);return v.useInsertionEffect(()=>{const{width:h,height:y,top:g,left:b,right:w}=u.current;if(t||!d.current||!h||!y)return;const C=r==="left"?`left: ${b}`:`right: ${w}`;d.current.dataset.motionPopId=c;const N=document.createElement("style");m&&(N.nonce=m);const S=i??document.head;return S.appendChild(N),N.sheet&&N.sheet.insertRule(` 452 [data-motion-pop-id="${c}"] { 453 position: absolute !important; 454 width: ${h}px !important; 455 height: ${y}px !important; 456 ${C}px !important; 457 top: ${g}px !important; 458 } 459 `),()=>{S.contains(N)&&S.removeChild(N)}},[t]),n.jsx(J_,{isPresent:t,childRef:d,sizeRef:u,children:v.cloneElement(e,{ref:f})})}const t8=({children:e,initial:t,isPresent:r,onExitComplete:i,custom:c,presenceAffectsLayout:d,mode:u,anchorX:m,root:f})=>{const h=eg(s8),y=v.useId();let g=!0,b=v.useMemo(()=>(g=!1,{id:y,initial:t,isPresent:r,custom:c,onExitComplete:w=>{h.set(w,!0);for(const C of h.values())if(!C)return;i&&i()},register:w=>(h.set(w,!1),()=>h.delete(w))}),[r,h,i]);return d&&g&&(b={...b}),v.useMemo(()=>{h.forEach((w,C)=>h.set(C,!1))},[r]),v.useEffect(()=>{!r&&!h.size&&i&&i()},[r]),u==="popLayout"&&(e=n.jsx(e8,{isPresent:r,anchorX:m,root:f,children:e})),n.jsx(Yu.Provider,{value:b,children:e})};function s8(){return new Map}function eC(e=!0){const t=v.useContext(Yu);if(t===null)return[!0,null];const{isPresent:r,onExitComplete:i,register:c}=t,d=v.useId();v.useEffect(()=>{if(e)return c(d)},[e]);const u=v.useCallback(()=>e&&i&&i(d),[d,i,e]);return!r&&i?[!1,u]:[!0]}const Fd=e=>e.key||"";function w2(e){const t=[];return v.Children.forEach(e,r=>{v.isValidElement(r)&&t.push(r)}),t}const Kr=({children:e,custom:t,initial:r=!0,onExitComplete:i,presenceAffectsLayout:c=!0,mode:d="sync",propagate:u=!1,anchorX:m="left",root:f})=>{const[h,y]=eC(u),g=v.useMemo(()=>w2(e),[e]),b=u&&!h?[]:g.map(Fd),w=v.useRef(!0),C=v.useRef(g),N=eg(()=>new Map),[S,A]=v.useState(g),[D,M]=v.useState(g);lS(()=>{w.current=!1,C.current=g;for(let B=0;B<D.length;B++){const E=Fd(D[B]);b.includes(E)?N.delete(E):N.get(E)!==!0&&N.set(E,!1)}},[D,b.length,b.join("-")]);const V=[];if(g!==S){let B=[...g];for(let E=0;E<D.length;E++){const k=D[E],J=Fd(k);b.includes(J)||(B.splice(E,0,k),V.push(k))}return d==="wait"&&V.length&&(B=V),M(w2(B)),A(g),null}const{forceRender:O}=v.useContext(Jx);return n.jsx(n.Fragment,{children:D.map(B=>{const E=Fd(B),k=u&&!h?!1:g===D||b.includes(E),J=()=>{if(N.has(E))N.set(E,!0);else return;let te=!0;N.forEach(re=>{re||(te=!1)}),te&&(O?.(),M(C.current),u&&y?.(),i&&i())};return n.jsx(t8,{isPresent:k,initial:!w.current||r?void 0:!1,custom:t,presenceAffectsLayout:c,mode:d,root:f,onExitComplete:k?void 0:J,anchorX:m,children:B},E)})})},tC=v.createContext({strict:!1}),N2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},mo={};for(const e in N2)mo[e]={isEnabled:t=>N2[e].some(r=>!!t[r])};function a8(e){for(const t in e)mo[t]={...mo[t],...e[t]}}const n8=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n8.has(e)}let sC=e=>!bu(e);function r8(e){typeof e=="function"&&(sC=t=>t.startsWith("on")?!bu(t):e(t))}try{r8(require("@emotion/is-prop-valid").default)}catch{}function i8(e,t,r){const i={};for(const c in e)c==="values"&&typeof e.values=="object"||(sC(c)||r===!0&&bu(c)||!t&&!bu(c)||e.draggable&&c.startsWith("onDrag"))&&(i[c]=e[c]);return i}const $u=v.createContext({});function Xu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Fc(e){return typeof e=="string"||Array.isArray(e)}const Sg=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cg=["initial",...Sg];function Wu(e){return Xu(e.animate)||Cg.some(t=>Fc(e[t]))}function aC(e){return!!(Wu(e)||e.variants)}function o8(e,t){if(Wu(e)){const{initial:r,animate:i}=e;return{initial:r===!1||Fc(r)?r:void 0,animate:Fc(i)?i:void 0}}return e.inherit!==!1?t:{}}function c8(e){const{initial:t,animate:r}=o8(e,v.useContext($u));return v.useMemo(()=>({initial:t,animate:r}),[S2(t),S2(r)])}function S2(e){return Array.isArray(e)?e.join(" "):e}const Gc={};function l8(e){for(const t in e)Gc[t]=e[t],lg(t)&&(Gc[t].isCSSVariable=!0)}function nC(e,{layout:t,layoutId:r}){return jo.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!Gc[e]||e==="opacity")}const d8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},u8=bo.length;function m8(e,t,r){let i="",c=!0;for(let d=0;d<u8;d++){const u=bo[d],m=e[u];if(m===void 0)continue;let f=!0;if(typeof m=="number"?f=m===(u.startsWith("scale")?1:0):f=parseFloat(m)===0,!f||r){const h=YS(m,bg[u]);if(!f){c=!1;const y=d8[u]||u;i+=`${y}(${h}) `}r&&(t[u]=h)}}return i=i.trim(),r?i=r(t,c?"":i):c&&(i="none"),i}function Ag(e,t,r){const{style:i,vars:c,transformOrigin:d}=e;let u=!1,m=!1;for(const f in t){const h=t[f];if(jo.has(f)){u=!0;continue}else if(lg(f)){c[f]=h;continue}else{const y=YS(h,bg[f]);f.startsWith("origin")?(m=!0,d[f]=y):i[f]=y}}if(t.transform||(u||r?i.transform=m8(t,e.transform,r):i.transform&&(i.transform="none")),m){const{originX:f="50%",originY:h="50%",originZ:y=0}=d;i.transformOrigin=`${f} ${h} ${y}`}}const Tg=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rC(e,t,r){for(const i in t)!as(t[i])&&!nC(i,r)&&(e[i]=t[i])}function f8({transformTemplate:e},t){return v.useMemo(()=>{const r=Tg();return Ag(r,t,e),Object.assign({},r.vars,r.style)}
vendor: 5,100 bytes, line 459
459,[t])}function p8(e,t){const r=e.style||{},i={};return rC(i,r,e),Object.assign(i,f8(e,t)),i}function h8(e,t){const r={},i=p8(e,t);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}const x8={offset:"stroke-dashoffset",array:"stroke-dasharray"},g8={offset:"strokeDashoffset",array:"strokeDasharray"};function y8(e,t,r=1,i=0,c=!0){e.pathLength=1;const d=c?x8:g8;e[d.offset]=_e.transform(-i);const u=_e.transform(t),m=_e.transform(r);e[d.array]=`${u} ${m}`}function iC(e,{attrX:t,attrY:r,attrScale:i,pathLength:c,pathSpacing:d=1,pathOffset:u=0,...m},f,h,y){if(Ag(e,m,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b}=e;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=y?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),r!==void 0&&(g.y=r),i!==void 0&&(g.scale=i),c!==void 0&&y8(g,c,d,u,!1)}const oC=()=>({...Tg(),attrs:{}}),cC=e=>typeof e=="string"&&e.toLowerCase()==="svg";function v8(e,t,r,i){const c=v.useMemo(()=>{const d=oC();return iC(d,t,cC(i),e.transformTemplate,e.style),{...d.attrs,style:{...d.style}}},[t]);if(e.style){const d={};rC(d,e.style,e),c.style={...d,...c.style}}return c}const b8=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Og(e){return typeof e!="string"||e.includes("-")?!1:!!(b8.indexOf(e)>-1||/[A-Z]/u.test(e))}function j8(e,t,r,{latestValues:i},c,d=!1){const m=(Og(e)?v8:h8)(t,i,c,e),f=i8(t,typeof e=="string",d),h=e!==v.Fragment?{...f,...m,ref:r}:{},{children:y}=t,g=v.useMemo(()=>as(y)?y.get():y,[y]);return v.createElement(e,{...h,children:g})}function C2(e){const t=[{},{}];return e?.values.forEach((r,i)=>{t[0][i]=r.get(),t[1][i]=r.getVelocity()}),t}function Eg(e,t,r,i){if(typeof t=="function"){const[c,d]=C2(i);t=t(r!==void 0?r:e.custom,c,d)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[c,d]=C2(i);t=t(r!==void 0?r:e.custom,c,d)}return t}function su(e){return as(e)?e.get():e}function w8({scrapeMotionValuesFromProps:e,createRenderState:t},r,i,c){return{latestValues:N8(r,i,c,e),renderState:t()}}function N8(e,t,r,i){const c={},d=i(e,{});for(const b in d)c[b]=su(d[b]);let{initial:u,animate:m}=e;const f=Wu(e),h=aC(e);t&&h&&!f&&e.inherit!==!1&&(u===void 0&&(u=t.initial),m===void 0&&(m=t.animate));let y=r?r.initial===!1:!1;y=y||u===!1;const g=y?m:u;if(g&&typeof g!="boolean"&&!Xu(g)){const b=Array.isArray(g)?g:[g];for(let w=0;w<b.length;w++){const C=Eg(e,b[w]);if(C){const{transitionEnd:N,transition:S,...A}=C;for(const D in A){let M=A[D];if(Array.isArray(M)){const V=y?M.length-1:0;M=M[V]}M!==null&&(c[D]=M)}for(const D in N)c[D]=N[D]}}}return c}const lC=e=>(t,r)=>{const i=v.useContext($u),c=v.useContext(Yu),d=()=>w8(e,t,i,c);return r?d():eg(d)};function Dg(e,t,r){const{style:i}=e,c={};for(const d in i)(as(i[d])||t.style&&as(t.style[d])||nC(d,e)||r?.getValue(d)?.liveStyle!==void 0)&&(c[d]=i[d]);return c}const S8=lC({scrapeMotionValuesFromProps:Dg,createRenderState:Tg});function dC(e,t,r){const i=Dg(e,t,r);for(const c in e)if(as(e[c])||as(t[c])){const d=bo.indexOf(c)!==-1?"attr"+c.charAt(0).toUpperCase()+c.substring(1):c;i[d]=e[c]}return i}const C8=lC({scrapeMotionValuesFromProps:dC,createRenderState:oC}),A8=Symbol.for("motionComponentSymbol");function Zi(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function T8(e,t,r){return v.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),r&&(typeof r=="function"?r(i):Zi(r)&&(r.current=i))},[t])}const Mg=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),O8="framerAppearId",uC="data-"+Mg(O8),mC=v.createContext({});function E8(e,t,r,i,c){const{visualElement:d}=v.useContext($u),u=v.useContext(tC),m=v.useContext(Yu),f=v.useContext(Ng).reducedMotion,h=v.useRef(null);i=i||u.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:d,props:r,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:f}));const y=h.current,g=v.useContext(mC);y&&!y.projection&&c&&(y.type==="html"||y.type==="svg")&&D8(h.current,r,c,g);const b=v.useRef(!1);v.useInsertionEffect(()=>{y&&b.current&&y.update(r,m)});const w=r[uC],C=v.useRef(!!w&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return lS(()=>{y&&(b.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),C.current&&y.animationState&&y.animationState.animateChanges())}),v.useEffect(()=>{y&&(!C.current&&y.animationState&&y.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),C.current=!1),y.enteringChildren=void 0)}),y}
vendor: 35,645 bytes, line 459
459function D8(e,t,r,i){const{layoutId:c,layout:d,drag:u,dragConstraints:m,layoutScroll:f,layoutRoot:h,layoutCrossfade:y}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:fC(e.parent)),e.projection.setOptions({layoutId:c,layout:d,alwaysMeasureLayout:!!u||m&&Zi(m),visualElement:e,animationType:typeof d=="string"?d:"both",initialPromotionConfig:i,crossfade:y,layoutScroll:f,layoutRoot:h})}function fC(e){if(e)return e.options.allowProjection!==!1?e.projection:fC(e.parent)}function Kp(e,{forwardMotionProps:t=!1}={},r,i){r&&a8(r);const c=Og(e)?C8:S8;function d(m,f){let h;const y={...v.useContext(Ng),...m,layoutId:M8(m)},{isStatic:g}=y,b=c8(m),w=c(m,g);if(!g&&tg){R8();const C=k8(y);h=C.MeasureLayout,b.visualElement=E8(e,w,y,i,C.ProjectionNode)}return n.jsxs($u.Provider,{value:b,children:[h&&b.visualElement?n.jsx(h,{visualElement:b.visualElement,...y}):null,j8(e,m,T8(w,b.visualElement,f),w,g,t)]})}d.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=v.forwardRef(d);return u[A8]=e,u}function M8({layoutId:e}){const t=v.useContext(Jx).id;return t&&e!==void 0?t+"-"+e:e}function R8(e,t){v.useContext(tC).strict}function k8(e){const{drag:t,layout:r}=mo;if(!t&&!r)return{};const i={...t,...r};return{MeasureLayout:t?.isEnabled(e)||r?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function P8(e,t){if(typeof Proxy>"u")return Kp;const r=new Map,i=(d,u)=>Kp(d,u,e,t),c=(d,u)=>i(d,u);return new Proxy(c,{get:(d,u)=>u==="create"?i:(r.has(u)||r.set(u,Kp(u,void 0,e,t)),r.get(u))})}function pC({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function _8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function L8(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}function Yp(e){return e===void 0||e===1}function nx({scale:e,scaleX:t,scaleY:r}){return!Yp(e)||!Yp(t)||!Yp(r)}function Mr(e){return nx(e)||hC(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hC(e){return A2(e.x)||A2(e.y)}function A2(e){return e&&e!=="0%"}function ju(e,t,r){const i=e-r,c=t*i;return r+c}function T2(e,t,r,i,c){return c!==void 0&&(e=ju(e,c,i)),ju(e,r,i)+t}function rx(e,t=0,r=1,i,c){e.min=T2(e.min,t,r,i,c),e.max=T2(e.max,t,r,i,c)}function xC(e,{x:t,y:r}){rx(e.x,t.translate,t.scale,t.originPoint),rx(e.y,r.translate,r.scale,r.originPoint)}const O2=.999999999999,E2=1.0000000000001;function U8(e,t,r,i=!1){const c=r.length;if(!c)return;t.x=t.y=1;let d,u;for(let m=0;m<c;m++){d=r[m],u=d.projectionDelta;const{visualElement:f}=d.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&d.options.layoutScroll&&d.scroll&&d!==d.root&&eo(e,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,xC(e,u)),i&&Mr(d.latestValues)&&eo(e,d.latestValues))}t.x<E2&&t.x>O2&&(t.x=1),t.y<E2&&t.y>O2&&(t.y=1)}function Ji(e,t){e.min=e.min+t,e.max=e.max+t}function D2(e,t,r,i,c=.5){const d=jt(e.min,e.max,c);rx(e,t,r,d,i)}function eo(e,t){D2(e.x,t.x,t.scaleX,t.scale,t.originX),D2(e.y,t.y,t.scaleY,t.scale,t.originY)}function gC(e,t){return pC(L8(e.getBoundingClientRect(),t))}function B8(e,t,r){const i=gC(e,r),{scroll:c}=t;return c&&(Ji(i.x,c.offset.x),Ji(i.y,c.offset.y)),i}const M2=()=>({translate:0,scale:1,origin:0,originPoint:0}),to=()=>({x:M2(),y:M2()}),R2=()=>({min:0,max:0}),Et=()=>({x:R2(),y:R2()}),ix={current:null},yC={current:!1};function z8(){if(yC.current=!0,!!tg)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ix.current=e.matches;e.addEventListener("change",t),t()}else ix.current=!1}const H8=new WeakMap;function I8(e,t,r){for(const i in t){const c=t[i],d=r[i];if(as(c))e.addValue(i,c);else if(as(d))e.addValue(i,uo(c,{owner:e}));else if(d!==c)if(e.hasValue(i)){const u=e.getValue(i);u.liveStyle===!0?u.jump(c):u.hasAnimated||u.set(c)}else{const u=e.getStaticValue(i);e.addValue(i,uo(u!==void 0?u:c,{owner:e}))}}for(const i in r)t[i]===void 0&&e.removeValue(i);return t}const k2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class V8{scrapeMotionValuesFromProps(t,r,i){return{}}constructor({parent:t,props:r,presenceContext:i,reducedMotionConfig:c,blockInitialAnimation:d,visualState:u},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=yg,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const b=js.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,yt.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=u;this.latestValues=f,this.baseTarget={...f},this.initialValues=r.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=r,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=c,this.options=m,this.blockInitialAnimation=!!d,this.isControllingVariants=Wu(r),this.isVariantNode=aC(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...g}=this.scrapeMotionValuesFromProps(r,{},this);for(const b in g){const w=g[b];f[b]!==void 0&&as(w)&&w.set(f[b])}}mount(t){this.current=t,H8.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,i)=>this.bindToMotionValue(i,r)),yC.current||z8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ix.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Zn(this.notifyUpdate),Zn(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const r=this.features[t];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,r){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const i=jo.has(t);i&&this.onBindTransform&&this.onBindTransform();const c=r.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&yt.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let d;window.MotionCheckAppearSync&&(d=window.MotionCheckAppearSync(this,t,r)),this.valueSubscriptions.set(t,()=>{c(),d&&d(),r.owner&&r.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in mo){const r=mo[t];if(!r)continue;const{isEnabled:i,Feature:c}=r;if(!this.features[t]&&c&&i(this.props)&&(this.features[t]=new c(this)),this.features[t]){const d=this.features[t];d.isMounted?d.update():(d.mount(),d.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Et()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}update(t,r){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let i=0;i<k2.length;i++){const c=k2[i];this.propEventSubscriptions[c]&&(this.propEventSubscriptions[c](),delete this.propEventSubscriptions[c]);const d="on"+c,u=t[d];u&&(this.propEventSubscriptions[c]=this.on(c,u))}this.prevMotionValues=I8(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const r=this.getClosestVariantNode();if(r)return r.variantChildren&&r.variantChildren.add(t),()=>r.variantChildren.delete(t)}addValue(t,r){const i=this.values.get(t);r!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,r),this.values.set(t,r),this.latestValues[t]=r.get())}removeValue(t){this.values.delete(t);const r=this.valueSubscriptions.get(t);r&&(r(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&r!==void 0&&(i=uo(r===null?void 0:r,{owner:this}),this.addValue(t,i)),i}readValue(t,r){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(dS(i)||mS(i))?i=parseFloat(i):!X_(i)&&Jn.test(r)&&(i=KS(t,r)),this.setBaseTarget(t,as(i)?i.get():i)),as(i)?i.get():i}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const d=Eg(this.props,r,this.presenceContext?.custom);d&&(i=d[t])}if(r&&i!==void 0)return i;const c=this.getBaseTargetFromProps(this.props,t);return c!==void 0&&!as(c)?c:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new ig),this.events[t].add(r)}notify(t,...r){this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){jg.render(this.render)}}class vC extends V8{constructor(){super(...arguments),this.KeyframeResolver=B_}sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){return t.style?t.style[r]:void 0}removeValueFromRenderState(t,{vars:r,style:i}){delete r[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;as(t)&&(this.childSubscription=t.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}}function bC(e,{style:t,vars:r},i,c){const d=e.style;let u;for(u in t)d[u]=t[u];c?.applyProjectionStyles(d,i);for(u in r)d.setProperty(u,r[u])}function q8(e){return window.getComputedStyle(e)}class F8 extends vC{constructor(){super(...arguments),this.type="html",this.renderInstance=bC}readValueFromInstance(t,r){if(jo.has(r))return this.projection?.isProjecting?Wh(r):a_(t,r);{const i=q8(t),c=(lg(r)?i.getPropertyValue(r):i[r])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(t,{transformPagePoint:r}){return gC(t,r)}build(t,r,i){Ag(t,r,i.transformTemplate)}scrapeMotionValuesFromProps(t,r,i){return Dg(t,r,i)}}const jC=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function G8(e,t,r,i){bC(e,t,void 0,i);for(const c in t.attrs)e.setAttribute(jC.has(c)?c:Mg(c),t.attrs[c])}class Q8 extends vC{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Et}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){if(jo.has(r)){const i=QS(r);return i&&i.default||0}return r=jC.has(r)?r:Mg(r),t.getAttribute(r)}scrapeMotionValuesFromProps(t,r,i){return dC(t,r,i)}build(t,r,i){iC(t,r,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,r,i,c){G8(t,r,i,c)}mount(t){this.isSVGTag=cC(t.tagName),super.mount(t)}}const K8=(e,t)=>Og(e)?new Q8(t):new F8(t,{allowProjection:e!==v.Fragment});function no(e,t,r){const i=e.getProps();return Eg(i,t,r!==void 0?r:i.custom,e)}const ox=e=>Array.isArray(e);function Y8(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,uo(r))}function $8(e){return ox(e)?e[e.length-1]||0:e}function X8(e,t){const r=no(e,t);let{transitionEnd:i={},transition:c={},...d}=r||{};d={...d,...i};for(const u in d){const m=$8(d[u]);Y8(e,u,m)}}function W8(e){return!!(as(e)&&e.add)}function cx(e,t){const r=e.getValue("willChange");if(W8(r))return r.add(t);if(!r&&cn.WillChange){const i=new cn.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function wC(e){return e.props[uC]}const Z8=e=>e!==null;function J8(e,{repeat:t,repeatType:r="loop"},i){const c=e.filter(Z8),d=t&&r!=="loop"&&t%2===1?0:c.length-1;return c[d]}const e7={type:"spring",stiffness:500,damping:25,restSpeed:10},t7=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),s7={type:"keyframes",duration:.8},a7={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},n7=(e,{keyframes:t})=>t.length>2?s7:jo.has(e)?e.startsWith("scale")?t7(t[1]):e7:a7;function r7({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:c,repeat:d,repeatType:u,repeatDelay:m,from:f,elapsed:h,...y}){return!!Object.keys(y).length}const Rg=(e,t,r,i={},c,d)=>u=>{const m=vg(i,e)||{},f=m.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Oa(f);const y={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...m,delay:-h,onUpdate:b=>{t.set(b),m.onUpdate&&m.onUpdate(b)},onComplete:()=>{u(),m.onComplete&&m.onComplete()},name:e,motionValue:t,element:d?void 0:c};r7(m)||Object.assign(y,n7(e,y)),y.duration&&(y.duration=Oa(y.duration)),y.repeatDelay&&(y.repeatDelay=Oa(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let g=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(sx(y),y.delay===0&&(g=!0)),(cn.instantAnimations||cn.skipAnimations)&&(g=!0,sx(y),y.delay=0),y.allowFlatten=!m.type&&!m.ease,g&&!d&&t.get()!==void 0){const b=J8(y.keyframes,m);if(b!==void 0){yt.update(()=>{y.onUpdate(b),y.onComplete()});return}}return m.isSync?new gg(y):new A_(y)};function i7({protectedKeys:e,needsAnimating:t},r){const i=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,i}function NC(e,t,{delay:r=0,transitionOverride:i,type:c}={}){let{transition:d=e.getDefaultTransition(),transitionEnd:u,...m}=t;i&&(d=i);const f=[],h=c&&e.animationState&&e.animationState.getState()[c];for(const y in m){const g=e.getValue(y,e.latestValues[y]??null),b=m[y];if(b===void 0||h&&i7(h,y))continue;const w={delay:r,...vg(d||{},y)},C=g.get();if(C!==void 0&&!g.isAnimating&&!Array.isArray(b)&&b===C&&!w.velocity)continue;let N=!1;if(window.MotionHandoffAnimation){const A=wC(e);if(A){const D=window.MotionHandoffAnimation(A,y,yt);D!==null&&(w.startTime=D,N=!0)}}cx(e,y),g.start(Rg(y,g,b,e.shouldReduceMotion&&qS.has(y)?{type:!1}:w,e,N));const S=g.animation;S&&f.push(S)}return u&&Promise.all(f).then(()=>{yt.update(()=>{u&&X8(e,u)})}),f}function SC(e,t,r,i=0,c=1){const d=Array.from(e).sort((h,y)=>h.sortNodePosition(y)).indexOf(t),u=e.size,m=(u-1)*i;return typeof r=="function"?r(d,u):c===1?d*i:m-d*i}function lx(e,t,r={}){const i=no(e,t,r.type==="exit"?e.presenceContext?.custom:void 0);let{transition:c=e.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(c=r.transitionOverride);const d=i?()=>Promise.all(NC(e,i,r)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:y,staggerDirection:g}=c;return o7(e,t,f,h,y,g,r)}:()=>Promise.resolve(),{when:m}=c;if(m){const[f,h]=m==="beforeChildren"?[d,u]:[u,d];return f().then(()=>h())}else return Promise.all([d(),u(r.delay)])}function o7(e,t,r=0,i=0,c=0,d=1,u){const m=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),m.push(lx(f,t,{...u,delay:r+(typeof i=="function"?0:i)+SC(e.variantChildren,f,i,c,d)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(m)}function c7(e,t,r={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const c=t.map(d=>lx(e,d,r));i=Promise.all(c)}else if(typeof t=="string")i=lx(e,t,r);else{const c=typeof t=="function"?no(e,t,r.custom):t;i=Promise.all(NC(e,c,r))}return i.then(()=>{e.notify("AnimationComplete",t)})}function CC(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}const l7=Cg.length;function AC(e){if(!e)return;if(!e.isControllingVariants){const r=e.parent?AC(e.parent)||{}:{};return e.props.initial!==void 0&&(r.initial=e.props.initial),r}const t={};for(let r=0;r<l7;r++){const i=Cg[r],c=e.props[i];(Fc(c)||c===!1)&&(t[i]=c)}return t}const d7=[...Sg].reverse(),u7=Sg.length;function m7(e){return t=>Promise.all(t.map(({animation:r,options:i})=>c7(e,r,i)))}function f7(e){let t=m7(e),r=P2(),i=!0;const c=f=>(h,y)=>{const g=no(e,y,f==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:b,transitionEnd:w,...C}=g;h={...h,...C,...w}}return h};function d(f){t=f(e)}function u(f){const{props:h}=e,y=AC(e.parent)||{},g=[],b=new Set;let w={},C=1/0;for(let S=0;S<u7;S++){const A=d7[S],D=r[A],M=h[A]!==void 0?h[A]:y[A],V=Fc(M),O=A===f?D.isActive:null;O===!1&&(C=S);let B=M===y[A]&&M!==h[A]&&V;if(B&&i&&e.manuallyAnimateOnMount&&(B=!1),D.protectedKeys={...w},!D.isActive&&O===null||!M&&!D.prevProp||Xu(M)||typeof M=="boolean")continue;const E=p7(D.prevProp,M);let k=E||A===f&&D.isActive&&!B&&V||S>C&&V,J=!1;const te=Array.isArray(M)?M:[M];let re=te.reduce(c(A),{});O===!1&&(re={});const{prevResolvedValues:ce={}}=D,de={...ce,...re},ue=I=>{k=!0,b.has(I)&&(J=!0,b.delete(I)),D.needsAnimating[I]=!0;const z=e.getValue(I);z&&(z.liveStyle=!1)};for(const I in de){const z=re[I],Z=ce[I];if(w.hasOwnProperty(I))continue;let he=!1;ox(z)&&ox(Z)?he=!CC(z,Z):he=z!==Z,he?z!=null?ue(I):b.add(I):z!==void 0&&b.has(I)?ue(I):D.protectedKeys[I]=!0}D.prevProp=M,D.prevResolvedValues=re,D.isActive&&(w={...w,...re}),i&&e.blockInitialAnimation&&(k=!1);const pe=B&&E;k&&(!pe||J)&&g.push(...te.map(I=>{const z={type:A};if(typeof I=="string"&&i&&!pe&&e.manuallyAnimateOnMount&&e.parent){const{parent:Z}=e,he=no(Z,I);if(Z.enteringChildren&&he){const{delayChildren:R}=he.transition||{};z.delay=SC(Z.enteringChildren,e,R)}}return{animation:I,options:z}}))}if(b.size){const S={};if(typeof h.initial!="boolean"){const A=no(e,Array.isArray(h.initial)?h.initial[0]:h.initial);A&&A.transition&&(S.transition=A.transition)}b.forEach(A=>{const D=e.getBaseTarget(A),M=e.getValue(A);M&&(M.liveStyle=!0),S[A]=D??null}),g.push({animation:S})}let N=!!g.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(N=!1),i=!1,N?t(g):Promise.resolve()}function m(f,h){if(r[f].isActive===h)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(f,h)),r[f].isActive=h;const y=u(f);for(const g in r)r[g].protectedKeys={};return y}return{animateChanges:u,setActive:m,setAnimateFunction:d,getState:()=>r,reset:()=>{r=P2(),i=!0}}}function p7(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CC(t,e):!1}function Or(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function P2(){return{animate:Or(!0),whileInView:Or(),whileHover:Or(),whileTap:Or(),whileDrag:Or(),whileFocus:Or(),exit:Or()}}class ar{constructor(t){this.isMounted=!1,this.node=t}update(){}}class h7 extends ar{constructor(t){super(t),t.animationState||(t.animationState=f7(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Xu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:r}=this.node.prevProps||{};t!==r&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let x7=0;class g7 extends ar{constructor(){super(...arguments),this.id=x7++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:r}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;const c=this.node.animationState.setActive("exit",!t);r&&!t&&c.then(()=>{r(this.id)})}mount(){const{register:t,onExitComplete:r}=this.node.presenceContext||{};r&&r(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const y7={animation:{Feature:h7},exit:{Feature:g7}};function Qc(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function dl(e){return{point:{x:e.pageX,y:e.pageY}}}const v7=e=>t=>wg(t)&&e(t,dl(t));function Ac(e,t,r,i){return Qc(e,t,v7(r),i)}const TC=1e-4,b7=1-TC,j7=1+TC,OC=.01,w7=0-OC,N7=0+OC;function cs(e){return e.max-e.min}function S7(e,t,r){return Math.abs(e-t)<=r}function _2(e,t,r,i=.5){e.origin=i,e.originPoint=jt(t.min,t.max,e.origin),e.scale=cs(r)/cs(t),e.translate=jt(r.min,r.max,e.origin)-e.originPoint,(e.scale>=b7&&e.scale<=j7||isNaN(e.scale))&&(e.scale=1),(e.translate>=w7&&e.translate<=N7||isNaN(e.translate))&&(e.translate=0)}function Tc(e,t,r,i){_2(e.x,t.x,r.x,i?i.originX:void 0),_2(e.y,t.y,r.y,i?i.originY:void 0)}function L2(e,t,r){e.min=r.min+t.min,e.max=e.min+cs(t)}function C7(e,t,r){L2(e.x,t.x,r.x),L2(e.y,t.y,r.y)}function U2(e,t,r){e.min=t.min-r.min,e.max=e.min+cs(t)}function Oc(e,t,r){U2(e.x,t.x,r.x),U2(e.y,t.y,r.y)}function Ys(e){return[e("x"),e("y")]}const EC=({current:e})=>e?e.ownerDocument.defaultView:null,B2=(e,t)=>Math.abs(e-t);function A7(e,t){const r=B2(e.x,t.x),i=B2(e.y,t.y);return Math.sqrt(r**2+i**2)}class DC{constructor(t,r,{transformPagePoint:i,contextWindow:c=window,dragSnapToOrigin:d=!1,distanceThreshold:u=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Xp(this.lastMoveEventInfo,this.history),w=this.startEvent!==null,C=A7(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!w&&!C)return;const{point:N}=b,{timestamp:S}=Zt;this.history.push({...N,timestamp:S});const{onStart:A,onMove:D}=this.handlers;w||(A&&A(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),D&&D(this.lastMoveEvent,b)},this.handlePointerMove=(b,w)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=$p(w,this.transformPagePoint),yt.update(this.updatePoint,!0)},this.handlePointerUp=(b,w)=>{this.end();const{onEnd:C,onSessionEnd:N,resumeAnimation:S}=this.handlers;if(this.dragSnapToOrigin&&S&&S(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=Xp(b.type==="pointercancel"?this.lastMoveEventInfo:$p(w,this.transformPagePoint),this.history);this.startEvent&&C&&C(b,A),N&&N(b,A)},!wg(t))return;this.dragSnapToOrigin=d,this.handlers=r,this.transformPagePoint=i,this.distanceThreshold=u,this.contextWindow=c||window;const m=dl(t),f=$p(m,this.transformPagePoint),{point:h}=f,{timestamp:y}=Zt;this.history=[{...h,timestamp:y}];const{onSessionStart:g}=r;g&&g(t,Xp(f,this.history)),this.removeListeners=ol(Ac(this.contextWindow,"pointermove",this.handlePointerMove),Ac(this.contextWindow,"pointerup",this.handlePointerUp),Ac(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Zn(this.updatePoint)}}function $p(e,t){return t?{point:t(e.point)}:e}function z2(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xp({point:e},t){return{point:e,delta:z2(e,MC(t)),offset:z2(e,T7(t)),velocity:O7(t,.1)}}function T7(e){return e[0]}function MC(e){return e[e.length-1]}function O7(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null;const c=MC(e);for(;r>=0&&(i=e[r],!(c.timestamp-i.timestamp>Oa(t)));)r--;if(!i)return{x:0,y:0};const d=Ws(c.timestamp-i.timestamp);if(d===0)return{x:0,y:0};const u={x:(c.x-i.x)/d,y:(c.y-i.y)/d};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function E7(e,{min:t,max:r},i){return t!==void 0&&e<t?e=i?jt(t,e,i.min):Math.max(e,t):r!==void 0&&e>r&&(e=i?jt(r,e,i.max):Math.min(e,r)),e}function H2(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function D7(e,{top:t,left:r,bottom:i,right:c}){return{x:H2(e.x,r,c),y:H2(e.y,t,i)}}function I2(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function M7(e,t){return{x:I2(e.x,t.x),y:I2(e.y,t.y)}}function R7(e,t){let r=.5;const i=cs(e),c=cs(t);return c>i?r=Ic(t.min,t.max-i,e.min):i>c&&(r=Ic(e.min,e.max-c,t.min)),on(0,1,r)}function k7(e,t){const r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}const dx=.35;function P7(e=dx){return e===!1?e=0:e===!0&&(e=dx),{x:V2(e,"left","right"),y:V2(e,"top","bottom")}}function V2(e,t,r){return{min:q2(e,t),max:q2(e,r)}}function q2(e,t){return typeof e=="number"?e:e[t]||0}const _7=new WeakMap;class L7{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Et(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:r=!1,distanceThreshold:i}={}){const{presenceContext:c}=this.visualElement;if(c&&c.isPresent===!1)return;const d=g=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(dl(g).point)},u=(g,b)=>{const{drag:w,dragPropagation:C,onDragStart:N}=this.getProps();if(w&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=V_(w),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ys(A=>{let D=this.getAxisMotionValue(A).get()||0;if(Ea.test(D)){const{projection:M}=this.visualElement;if(M&&M.layout){const V=M.layout.layoutBox[A];V&&(D=cs(V)*(parseFloat(D)/100))}}this.originPoint[A]=D}),N&&yt.postRender(()=>N(g,b)),cx(this.visualElement,"transform");const{animationState:S}=this.visualElement;S&&S.setActive("whileDrag",!0)},m=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:C,onDirectionLock:N,onDrag:S}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:A}=b;if(C&&this.currentDirection===null){this.currentDirection=U7(A),this.currentDirection!==null&&N&&N(this.currentDirection);return}this.updateAxis("x",b.point,A),this.updateAxis("y",b.point,A),this.visualElement.render(),S&&S(g,b)},f=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>Ys(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:y}=this.getProps();this.panSession=new DC(t,{onSessionStart:d,onStart:u,onMove:m,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:i,contextWindow:EC(this.visualElement)})}stop(t,r){const i=t||this.latestPointerEvent,c=r||this.latestPanInfo,d=this.isDragging;if(this.cancel(),!d||!c||!i)return;const{velocity:u}=c;this.startAnimation(u);const{onDragEnd:m}=this.getProps();m&&yt.postRender(()=>m(i,c))}cancel(){this.isDragging=!1;const{projection:t,animationState:r}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(t,r,i){const{drag:c}=this.getProps();if(!i||!Gd(t,c,this.currentDirection))return;const d=this.getAxisMotionValue(t);let u=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(u=E7(u,this.constraints[t],this.elastic[t])),d.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,c=this.constraints;t&&Zi(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=D7(i.layoutBox,t):this.constraints=!1,this.elastic=P7(r),c!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ys(d=>{this.constraints!==!1&&this.getAxisMotionValue(d)&&(this.constraints[d]=k7(i.layoutBox[d],this.constraints[d]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Zi(t))return!1;const i=t.current,{projection:c}=this.visualElement;if(!c||!c.layout)return!1;const d=B8(i,c.root,this.visualElement.getTransformPagePoint());let u=M7(c.layout.layoutBox,d);if(r){const m=r(_8(u));this.hasMutatedConstraints=!!m,m&&(u=pC(m))}return u}startAnimation(t){const{drag:r,dragMomentum:i,dragElastic:c,dragTransition:d,dragSnapToOrigin:u,onDragTransitionEnd:m}=this.getProps(),f=this.constraints||{},h=Ys(y=>{if(!Gd(y,r,this.currentDirection))return;let g=f&&f[y]||{};u&&(g={min:0,max:0});const b=c?200:1e6,w=c?40:1e7,C={type:"inertia",velocity:i?t[y]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...d,...g};return this.startAxisValueAnimation(y,C)});return Promise.all(h).then(m)}startAxisValueAnimation(t,r){const i=this.getAxisMotionValue(t);return cx(this.visualElement,t),i.start(Rg(t,i,0,r,this.visualElement,!1))}stopAnimation(){Ys(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ys(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const r=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),c=i[r];return c||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){Ys(r=>{const{drag:i}=this.getProps();if(!Gd(r,i,this.currentDirection))return;const{projection:c}=this.visualElement,d=this.getAxisMotionValue(r);if(c&&c.layout){const{min:u,max:m}=c.layout.layoutBox[r];d.set(t[r]-jt(u,m,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:r}=this.getProps(),{projection:i}=this.visualElement;if(!Zi(r)||!i||!this.constraints)return;this.stopAnimation();const c={x:0,y:0};Ys(u=>{const m=this.getAxisMotionValue(u);if(m&&this.constraints!==!1){const f=m.get();c[u]=R7({min:f,max:f},this.constraints[u])}});const{transformTemplate:d}=this.visualElement.getProps();this.visualElement.current.style.transform=d?d({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ys(u=>{if(!Gd(u,t,null))return;const m=this.getAxisMotionValue(u),{min:f,max:h}=this.constraints[u];m.set(jt(f,h,c[u]))})}addListeners(){if(!this.visualElement.current)return;_7.set(this.visualElement,this);const t=this.visualElement.current,r=Ac(t,"pointerdown",f=>{const{drag:h,dragListener:y=!0}=this.getProps();h&&y&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();Zi(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:c}=this.visualElement,d=c.addEventListener("measure",i);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),yt.read(i);const u=Qc(window,"resize",()=>this.scalePositionWithinConstraints()),m=c.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Ys(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=f[y].translate,g.set(g.get()+f[y].translate))}),this.visualElement.render())}));return()=>{u(),r(),d(),m&&m()}}getProps(){const t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:i=!1,dragPropagation:c=!1,dragConstraints:d=!1,dragElastic:u=dx,dragMomentum:m=!0}=t;return{...t,drag:r,dragDirectionLock:i,dragPropagation:c,dragConstraints:d,dragElastic:u,dragMomentum:m}}}function Gd(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function U7(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}class B7 extends ar{constructor(t){super(t),this.removeGroupControls=Zs,this.removeListeners=Zs,this.controls=new L7(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zs}unmount(){this.removeGroupControls(),this.removeListeners()}}const F2=e=>(t,r)=>{e&&yt.postRender(()=>e(t,r))};class z7 extends ar{constructor(){super(...arguments),this.removePointerDownListener=Zs}onPointerDown(t){this.session=new DC(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:EC(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:r,onPan:i,onPanEnd:c}=this.node.getProps();return{onSessionStart:F2(t),onStart:F2(r),onMove:i,onEnd:(d,u)=>{delete this.session,c&&yt.postRender(()=>c(d,u))}}}mount(){this.removePointerDownListener=Ac(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const au={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function G2(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const gc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(_e.test(e))e=parseFloat(e);else return e;const r=G2(e,t.target.x),i=G2(e,t.target.y);return`${r}% ${i}%`}},H7={correct:(e,{treeScale:t,projectionDelta:r})=>{const i=e,c=Jn.parse(e);if(c.length>5)return i;const d=Jn.createTransformer(e),u=typeof c[0]!="number"?1:0,m=r.x.scale*t.x,f=r.y.scale*t.y;c[0+u]/=m,c[1+u]/=f;const h=jt(m,f,.5);return typeof c[2+u]=="number"&&(c[2+u]/=h),typeof c[3+u]=="number"&&(c[3+u]/=h),d(c)}};let Wp=!1;class I7 extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i,layoutId:c}=this.props,{projection:d}=t;l8(V7),d&&(r.group&&r.group.add(d),i&&i.register&&c&&i.register(d),Wp&&d.root.didUpdate(),d.addEventListener("animationComplete",()=>{this.safeToRemove()}),d.setOptions({...d.options,onExitComplete:()=>this.safeToRemove()})),au.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:r,visualElement:i,drag:c,isPresent:d}=this.props,{projection:u}=i;return u&&(u.isPresent=d,Wp=!0,c||t.layoutDependency!==r||r===void 0||t.isPresent!==d?u.willUpdate():this.safeToRemove(),t.isPresent!==d&&(d?u.promote():u.relegate()||yt.postRender(()=>{const m=u.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),jg.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:r,switchLayoutGroup:i}=this.props,{projection:c}=t;Wp=!0,c&&(c.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(c),i&&i.deregister&&i.deregister(c))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function RC(e){const[t,r]=eC(),i=v.useContext(Jx);return n.jsx(I7,{...e,layoutGroup:i,switchLayoutGroup:v.useContext(mC),isPresent:t,safeToRemove:r})}const V7={borderRadius:{...gc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gc,borderTopRightRadius:gc,borderBottomLeftRadius:gc,borderBottomRightRadius:gc,boxSh
vendor: 4,524 bytes, line 459
459adow:H7};function q7(e,t,r){const i=as(e)?e:uo(e);return i.start(Rg("",i,t,r)),i.animation}const F7=(e,t)=>e.depth-t.depth;class G7{constructor(){this.children=[],this.isDirty=!1}add(t){sg(this.children,t),this.isDirty=!0}remove(t){ag(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(F7),this.isDirty=!1,this.children.forEach(t)}}function Q7(e,t){const r=js.now(),i=({timestamp:c})=>{const d=c-r;d>=t&&(Zn(i),e(d-t))};return yt.setup(i,!0),()=>Zn(i)}const kC=["TopLeft","TopRight","BottomLeft","BottomRight"],K7=kC.length,Q2=e=>typeof e=="string"?parseFloat(e):e,K2=e=>typeof e=="number"||_e.test(e);function Y7(e,t,r,i,c,d){c?(e.opacity=jt(0,r.opacity??1,$7(i)),e.opacityExit=jt(t.opacity??1,0,X7(i))):d&&(e.opacity=jt(t.opacity??1,r.opacity??1,i));for(let u=0;u<K7;u++){const m=`border${kC[u]}Radius`;let f=Y2(t,m),h=Y2(r,m);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||K2(f)===K2(h)?(e[m]=Math.max(jt(Q2(f),Q2(h),i),0),(Ea.test(h)||Ea.test(f))&&(e[m]+="%")):e[m]=h}(t.rotate||r.rotate)&&(e.rotate=jt(t.rotate||0,r.rotate||0,i))}function Y2(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const $7=PC(0,.5,bS),X7=PC(.5,.95,Zs);function PC(e,t,r){return i=>i<e?0:i>t?1:r(Ic(e,t,i))}function $2(e,t){e.min=t.min,e.max=t.max}function Ks(e,t){$2(e.x,t.x),$2(e.y,t.y)}function X2(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function W2(e,t,r,i,c){return e-=t,e=ju(e,1/r,i),c!==void 0&&(e=ju(e,1/c,i)),e}function W7(e,t=0,r=1,i=.5,c,d=e,u=e){if(Ea.test(t)&&(t=parseFloat(t),t=jt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let m=jt(d.min,d.max,i);e===d&&(m-=t),e.min=W2(e.min,t,r,m,c),e.max=W2(e.max,t,r,m,c)}function Z2(e,t,[r,i,c],d,u){W7(e,t[r],t[i],t[c],t.scale,d,u)}const Z7=["x","scaleX","originX"],J7=["y","scaleY","originY"];function J2(e,t,r,i){Z2(e.x,t,Z7,r?r.x:void 0,i?i.x:void 0),Z2(e.y,t,J7,r?r.y:void 0,i?i.y:void 0)}function ej(e){return e.translate===0&&e.scale===1}function _C(e){return ej(e.x)&&ej(e.y)}function tj(e,t){return e.min===t.min&&e.max===t.max}function e9(e,t){return tj(e.x,t.x)&&tj(e.y,t.y)}function sj(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function LC(e,t){return sj(e.x,t.x)&&sj(e.y,t.y)}function aj(e){return cs(e.x)/cs(e.y)}function nj(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class t9{constructor(){this.members=[]}add(t){sg(this.members,t),t.scheduleRender()}remove(t){if(ag(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){const r=this.members.findIndex(c=>t===c);if(r===0)return!1;let i;for(let c=r;c>=0;c--){const d=this.members[c];if(d.isPresent!==!1){i=d;break}}return i?(this.promote(i),!0):!1}promote(t,r){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,r&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:c}=t.options;c===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:r,resumingFrom:i}=t;r.onExitComplete&&r.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function s9(e,t,r){let i="";const c=e.x.translate/t.x,d=e.y.translate/t.y,u=r?.z||0;if((c||d||u)&&(i=`translate3d(${c}px, ${d}px, ${u}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:h,rotate:y,rotateX:g,rotateY:b,skewX:w,skewY:C}=r;h&&(i=`perspective(${h}px) ${i}`),y&&(i+=`rotate(${y}deg) `),g&&(i+=`rotateX(${g}deg) `),b&&(i+=`rotateY(${b}deg) `),w&&(i+=`skewX(${w}deg) `),C&&(i+=`skewY(${C}deg) `)}const m=e.x.scale*t.x,f=e.y.scale*t.y;return(m!==1||f!==1)&&(i+=`scale(${m}, ${f})`),i||"none"}const Zp=["","X","Y","Z"],a9=1e3;let n9=0;function Jp(e,t,r,i){const{latestValues:c}=t;c[e]&&(r[e]=c[e],t.setStaticValue(e,0),i&&(i[e]=0))}function UC(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=wC(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:c,layoutId:d}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",yt,!(c||d))}const{parent:i}=e;
vendor: 4,106 bytes, line 459
459i&&!i.hasCheckedOptimisedAppear&&UC(i)}function BC({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:c}){return class{constructor(u={},m=t?.()){this.id=n9++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(o9),this.nodes.forEach(u9),this.nodes.forEach(m9),this.nodes.forEach(c9)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new G7)}addEventListener(u,m){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new ig),this.eventHandlers.get(u).add(m)}notifyListeners(u,...m){const f=this.eventHandlers.get(u);f&&f.notify(...m)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=JS(u)&&!Y_(u),this.instance=u;const{layoutId:m,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||m)&&(this.isLayoutDirty=!0),e){let y,g=0;const b=()=>this.root.updateBlockedByResize=!1;yt.read(()=>{g=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==g&&(g=w,this.root.updateBlockedByResize=!0,y&&y(),y=Q7(b,250),au.hasAnimatedSinceResize&&(au.hasAnimatedSinceResize=!1,this.nodes.forEach(oj)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&h&&(m||f)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||h.getDefaultTransition()||g9,{onLayoutAnimationStart:N,onLayoutAnimationComplete:S}=h.getProps(),A=!this.targetLayout||!LC(this.targetLayout,w),D=!g&&b;if(this.options.layoutRoot||this.resumeFrom||D||g&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...vg(C,"layout"),onPlay:N,onComplete:S};(h.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(y,D)}else g||oj(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Zn(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(f9),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&UC(this),!this.root.isUpdating&&this.root.startUpd
vendor: 7,163 bytes, line 459
459ate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const g=this.path[y];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:m,layout:f}=this.options;if(m===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rj);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ij);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(d9),this.nodes.forEach(r9),this.nodes.forEach(i9)):this.nodes.forEach(ij),this.clearAllSnapshots();const m=js.now();Zt.delta=on(0,1e3/60,m-Zt.timestamp),Zt.timestamp=m,Zt.isProcessing=!0,Ip.update.process(Zt),Ip.preRender.process(Zt),Ip.render.process(Zt),Zt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,jg.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(l9),this.sharedNodes.forEach(p9)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){yt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!cs(this.snapshot.measuredBox.x)&&!cs(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Et(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(m=!1),m&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:f,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!c)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!_C(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,y=h!==this.prevTransformTemplateValue;u&&this.instance&&(m||Mr(this.latestValues)||y)&&(c(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const m=this.measurePageBox();let f=this.removeElementScroll(m);return u&&(f=this.removeTransform(f)),y9(f),{animationId:this.root.animationId,measuredBox:m,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return Et();const m=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(v9))){const{scroll:h}=this.root;h&&(Ji(m.x,h.offset.x),Ji(m.y,h.offset.y))}return m}removeElementScroll(u){const m=Et();if(Ks(m,u),this.scroll?.wasRoot)return m;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:y,options:g}=h;h!==this.root&&y&&g.layoutScroll&&(y.wasRoot&&Ks(m,u),Ji(m.x,y.offset.x),Ji(m.y,y.offset.y))}return m}applyTransform(u,m=!1){const f=Et();Ks(f,u);for(let h=0;h<this.path.length;h++){const y=this.path[h];!m&&y.options.layoutScroll&&y.scroll&&y!==y.root&&eo(f,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Mr(y.latestValues)&&eo(f,y.latestValues)}return Mr(this.latestValues)&&eo(f,this.latestValues),f}removeTransform(u){const m=Et();Ks(m,u);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!Mr(h.latestValues))continue;nx(h.latestValues)&&h.updateSnapshot();const y=Et(),g=h.measurePageBox();Ks(y,g),J2(m,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,y)}return Mr(this.latestValues)&&J2(m,this.latestValues),m}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Zt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==m;if(!(u||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:g}=this.options;if(!(!this.layout||!(y||g))){if(this.resolvedRelativeTargetAt=Zt.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Et(),this.relativeTargetOrigin=Et(),Oc(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),Ks(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Et(),this.targetWithTransforms=Et()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),C7(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ks(this.target,this.layout.layoutBox),xC(this.target,this.targetDelta)):Ks(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Et(),this.relativeTargetOrigin=Et(),Oc(this.relativeTargetOrigin,this.target,b.target),Ks(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||nx(this.parent.latestValues)||hC(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const u=this.getLead(),m=!!this.resumingFrom||this!==u;let f=!0;
vendor: 9,323 bytes, line 459
459if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Zt.timestamp&&(f=!1),f)return;const{layout:h,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||y))return;Ks(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;U8(this.layoutCorrected,this.treeScale,this.path,m),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Et());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(X2(this.prevProjectionDelta.x,this.projectionDelta.x),X2(this.prevProjectionDelta.y,this.projectionDelta.y)),Tc(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!nj(this.projectionDelta.x,this.prevProjectionDelta.x)||!nj(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=to(),this.projectionDelta=to(),this.projectionDeltaWithTransform=to()}setAnimationOrigin(u,m=!1){const f=this.snapshot,h=f?f.latestValues:{},y={...this.latestValues},g=to();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const b=Et(),w=f?f.source:void 0,C=this.layout?this.layout.source:void 0,N=w!==C,S=this.getStack(),A=!S||S.members.length<=1,D=!!(N&&!A&&this.options.crossfade===!0&&!this.path.some(x9));this.animationProgress=0;let M;this.mixTargetDelta=V=>{const O=V/1e3;cj(g.x,u.x,O),cj(g.y,u.y,O),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Oc(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h9(this.relativeTarget,this.relativeTargetOrigin,b,O),M&&e9(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=Et()),Ks(M,this.relativeTarget)),N&&(this.animationValues=y,Y7(y,h,this.latestValues,O,D,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Zn(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=yt.update(()=>{au.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=uo(0)),this.currentAnimation=q7(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),u.onUpdate&&u.onUpdate(m)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(a9),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:m,target:f,layout:h,latestValues:y}=u;if(!(!m||!f||!h)){if(this!==u&&this.layout&&h&&zC(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Et();const g=cs(this.layout.layoutBox.x);f.x.min=u.target.x.min,f.x.max=f.x.min+g;const b=cs(this.layout.layoutBox.y);f.y.min=u.target.y.min,f.y.max=f.y.min+b}Ks(m,f),eo(m,y),Tc(this.projectionDeltaWithTransform,this.layoutCorrected,m,y)}}registerSharedNode(u,m){this.sharedNodes.has(u)||this.sharedNodes.set(u,new t9),this.sharedNodes.get(u).add(m);const h=m.options.initialPromotionConfig;m.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(m):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:m,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),u&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let m=!1;const{latestValues:f}=u;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(m=!0),!m)return;const h={};f.z&&Jp("z",u,h,this.animationValues);for(let y=0;y<Zp.length;y++)Jp(`rotate${Zp[y]}`,u,h,this.animationValues),Jp(`skew${Zp[y]}`,u,h,this.animationValues);u.render();for(const y in h)u.setStaticValue(y,h[y]),this.animationValues&&(this.animationValues[y]=h[y]);u.scheduleRender()}applyProjectionStyles(u,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=su(m?.pointerEvents)||"",u.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=su(m?.pointerEvents)||""),this.hasProjected&&!Mr(this.latestValues)&&(u.transform=f?f({},""):"none",this.hasProjected=!1);return}u.visibility="";const y=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=s9(this.projectionDeltaWithTransform,this.treeScale,y);f&&(g=f(y,g)),u.transform=g;const{x:b,y:w}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,h.animationValues?u.opacity=h===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:u.opacity=h===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const C in Gc){if(y[C]===void 0)continue;const{correct:N,applyTo:S,isCSSVariable:A}=Gc[C],D=g==="none"?y[C]:N(y[C],h);if(S){const M=S.length;for(let V=0;V<M;V++)u[S[V]]=D}else A?this.options.visualElement.renderState.vars[C]=D:u[C]=D}this.options.layoutId&&(u.pointerEvents=h===this?su(m?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(rj),this.root.sharedNodes.clear()}}}function r9(e){e.updateLayout()}function i9(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:c}=e.options,d=t.source!==e.layout.source;c==="size"?Ys(y=>{const g=d?t.measuredBox[y]:t.layoutBox[y],b=cs(g);g.min=r[y].min,g.max=g.min+b}):zC(c,t.layoutBox,r)&&Ys(y=>{const g=d?t.measuredBox[y]:t.layoutBox[y],b=cs(r[y]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+b)});const u=to();Tc(u,r,t.layoutBox);const m=to();d?Tc(m,e.applyTransform(i,!0),t.measuredBox):Tc(m,r,t.layoutBox);const f=!_C(u);let h=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:g,layout:b}=y;if(g&&b){const w=Et();Oc(w,t.layoutBox,g.layoutBox);const C=Et();Oc(C,r,b.layoutBox),LC(w,C)||(h=!0),y.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=w,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:m,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function o9(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function c9(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function l9(e){e.clearSnapshot()}function rj(e){e.clearMeasurements()}function ij(e){e.isLayoutDirty=!1}function d9(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oj(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function u9(e){e.resolveTargetDelta()}function m9(e){e.calcProjection()}
vendor: 7,828 bytes, line 459
459function f9(e){e.resetSkewAndRotation()}function p9(e){e.removeLeadSnapshot()}function cj(e,t,r){e.translate=jt(t.translate,0,r),e.scale=jt(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function lj(e,t,r,i){e.min=jt(t.min,r.min,i),e.max=jt(t.max,r.max,i)}function h9(e,t,r,i){lj(e.x,t.x,r.x,i),lj(e.y,t.y,r.y,i)}function x9(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const g9={duration:.45,ease:[.4,0,.1,1]},dj=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),uj=dj("applewebkit/")&&!dj("chrome/")?Math.round:Zs;function mj(e){e.min=uj(e.min),e.max=uj(e.max)}function y9(e){mj(e.x),mj(e.y)}function zC(e,t,r){return e==="position"||e==="preserve-aspect"&&!S7(aj(t),aj(r),.2)}function v9(e){return e!==e.root&&e.scroll?.wasRoot}const b9=BC({attachResizeListener:(e,t)=>Qc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),eh={current:void 0},HC=BC({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!eh.current){const e=new b9({});e.mount(window),e.setOptions({layoutScroll:!0}),eh.current=e}return eh.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),j9={pan:{Feature:z7},drag:{Feature:B7,ProjectionNode:HC,MeasureLayout:RC}};function fj(e,t,r){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",r==="Start");const c="onHover"+r,d=i[c];d&&yt.postRender(()=>d(t,dl(t)))}class w9 extends ar{mount(){const{current:t}=this.node;t&&(this.unmount=q_(t,(r,i)=>(fj(this.node,i,"Start"),c=>fj(this.node,c,"End"))))}unmount(){}}class N9 extends ar{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ol(Qc(this.node.current,"focus",()=>this.onFocus()),Qc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pj(e,t,r){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",r==="Start");const c="onTap"+(r==="End"?"":r),d=i[c];d&&yt.postRender(()=>d(t,dl(t)))}class S9 extends ar{mount(){const{current:t}=this.node;t&&(this.unmount=K_(t,(r,i)=>(pj(this.node,i,"Start"),(c,{success:d})=>pj(this.node,c,d?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const ux=new WeakMap,th=new WeakMap,C9=e=>{const t=ux.get(e.target);t&&t(e)},A9=e=>{e.forEach(C9)};function T9({root:e,...t}){const r=e||document;th.has(r)||th.set(r,{});const i=th.get(r),c=JSON.stringify(t);return i[c]||(i[c]=new IntersectionObserver(A9,{root:e,...t})),i[c]}function O9(e,t,r){const i=T9(t);return ux.set(e,r),i.observe(e),()=>{ux.delete(e),i.unobserve(e)}}const E9={some:0,all:1};class D9 extends ar{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:r,margin:i,amount:c="some",once:d}=t,u={root:r?r.current:void 0,rootMargin:i,threshold:typeof c=="number"?c:E9[c]},m=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,d&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),b=h?y:g;b&&b(f)};return O9(this.node.current,u,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:r}=this.node;["amount","margin","root"].some(M9(t,r))&&this.startObserver()}unmount(){}}function M9({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}const R9={inView:{Feature:D9},tap:{Feature:S9},focus:{Feature:N9},hover:{Feature:w9}},k9={layout:{ProjectionNode:HC,MeasureLayout:RC}},P9={...y7,...R9,...j9,...k9},Ue=P8(P9,K8);function ul({title:e,description:t,canonical:r,ogTitle:i,ogDescription:c,breadcrumbs:d}){v.useEffect(()=>{const u=document.title;document.title=e;let m=document.querySelector('meta[name="description"]');const f=m?.content??"";m||(m=document.createElement("meta"),m.name="description",document.head.appendChild(m)),m.content=t;let h=document.querySelector('link[rel="canonical"]');const y=h?.href??"";r&&(h||(h=document.createElement("link"),h.rel="canonical",document.head.appendChild(h)),h.href=r);let g=document.querySelector('meta[property="og:title"]');const b=g?.content??"";i&&g&&(g.content=i);let w=document.querySelector('meta[property="og:description"]');const C=w?.content??"";c&&w&&(w.content=c);let N=null;return d&&d.length>0&&(N=document.createElement("script"),N.type="application/ld+json",N.id="breadcrumb-jsonld",N.textContent=JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:d.map((S,A)=>({"@type":"ListItem",position:A+1,name:S.name,item:S.url}))}),document.head.appendChild(N)),()=>{document.title=u,m&&(m.content=f),h&&y&&(h.href=y),g&&(g.content=b),w&&(w.content=C),N&&N.remove()}},[e,t,r,i,c,d])}const _9=bN("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 Gt({className:e,variant:t,asChild:r=!1,...i}){const c=r?Tw:"span";return n.jsx(c,{"data-loc":"client/src/components/ui/badge.tsx:38","data-slot":"badge",className:vt(_9({variant:t}),e),...i})}const L9=[{id:"uk-coo",icon:Vx,title:"UK Certificate of Origin",description:"LCCI-certified proof of origin for UK-manufactured goods. Required for preferential tariff rates in many markets.",badge:"Trade Certificate",badgeColor:"bg-green-100 text-green-800"},{id:"arab-british",icon:Fr,title:"Arab-British Certificate",description:"Embassy-legalised certification for goods traded with Arab League member states. Issued via the Arab-British Chamber of Commerce.",badge:"Trade Certificate",badgeColor:"bg-green-100 text-green-800"},{id:"eur1",icon:mt,title:"EUR-1 Movement Certificate",description:"Preferential origin declaration for exports to EU and other countries with UK trade agreements. Reduces or eliminates import duties.",badge:"Trade Certificate",badgeColor:"bg-green-100 text-green-800"},{id:"apostille",icon:qx,title:"Apostille",description:"FCDO-authenticated legalisation for UK public documents accepted in 120+ Hague Convention countries.",badge:"Trade Certificate",badgeColor:"bg-green-100 text-green-800"},{id:"commercial-invoice",icon:QM,title:"Commercial Invoice Certification",description:"Chamber-certified commercial invoices accepted by customs authorities worldwide. Confirms value, origin, and description of goods.",badge:"Trade Certificate",badgeColor:"bg-green-100 text-green-800"}
459],U9=[{id:"elo",icon:al,title:"ELO (Logistics Envelope)",description:"Electronic Logistics Operator declaration for goods entering the EU. Required for all commercial shipments under 2026 customs reforms.",badge:"2026 Border Service",badgeColor:"bg-blue-100 text-blue-800"},{id:"ics2",icon:qu,title:"ICS2 ENS Filing",description:"Entry Summary Declaration filing for air and maritime cargo entering the EU. Mandatory pre-arrival safety and security notification.",badge:"2026 Border Service",badgeColor:"bg-blue-100 text-blue-800"},{id:"gmr",icon:LM,title:"GMR / PBN Barcodes",description:"Goods Movement Reference and Pre-Boarding Notification barcodes for GB-EU goods movements via GVMS-registered ports.",badge:"2026 Border Service",badgeColor:"bg-blue-100 text-blue-800"}];function hj({icon:e,title:t,description:r,badge:i,badgeColor:c,delay:d=0}){return n.jsxs(Ue.div,{"data-loc":"client/src/pages/Home.tsx:99",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:d},className:"group bg-card border border-border rounded-2xl p-6 hover:shadow-md hover:border-primary/30 transition-all duration-300 flex flex-col gap-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:106",className:"flex items-start justify-between gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:107",className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center shrink-0",children:n.jsx(e,{"data-loc":"client/src/pages/Home.tsx:108",className:"w-5 h-5 text-primary"})}),n.jsx("span",{"data-loc":"client/src/pages/Home.tsx:110",className:`text-[10px] font-semibold px-2 py-0.5 rounded-full whitespace-nowrap ${c}`,children:i})]}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:114",children:[n.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:115",className:"font-semibold text-foreground mb-1.5",children:t}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:116",className:"text-sm text-muted-foreground leading-relaxed",children:r})]}),n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:118",className:"mt-auto pt-2",children:n.jsx(Ne,{"data-loc":"client/src/pages/Home.tsx:119",href:"/documents",children:n.jsxs(oe,{"data-loc":"client/src/pages/Home.tsx:120",variant:"ghost",size:"sm",className:"gap-1.5 text-primary hover:text-primary/80 px-0 h-auto font-medium text-sm",children:["Order now ",n.jsx(co,{"data-loc":"client/src/pages/Home.tsx:121",className:"w-3.5 h-3.5"})]})})})]})}const B9=[{icon:ws,label:"LCCI Accredited"},{icon:Ta,label:"Same-day processing"},{icon:Fr,label:"120+ destination countries"},{icon:sn,label:"HMRC compliant"}],sh=[{step:"01",Icon:qu,title:"Select & order",description:"Browse our catalogue of trade certificates and 2026 border compliance services. Add what you need to your basket and submit your order in minutes."},{step:"02",Icon:Hc,title:"Upload your documents",description:"Securely upload your commercial invoice, packing list, or any supporting paperwork directly through your dashboard. All files are encrypted in transit."},{step:"03",Icon:hu,title:"Draft review & your approval",description:"A UK-based trade expert prepares a draft certificate and sends it to you for approval before anything is submitted to the issuing authority. No surprises."},{step:"04",Icon:sR,title:"Certified & delivered",description:"Once approved, we submit to the LCCI, ABCC, HMRC, or FCDO on your behalf. Certified documents are delivered digitally or by tracked courier."}],z9=[{q:"What is a Certificate of Origin and do I need one?",a:"A Certificate of Origin (COO) is an official document that certifies the country in which your goods were manufactured. Many importing countries require a COO to determine applicable tariff rates, comply with trade agreements, or meet customs regulations. If you export UK-manufactured goods, you will likely need one."},{q:"How long does it take to get a trade certificate?",a:"Most certificates are processed within 1â2 business days. Same-day processing is available for urgent orders. Embassy legalisation (e.g. Arab-British Certificates) may take an additional 1â2 days depending on the embassy's schedule."},{q:"What is the difference between an Apostille and Embassy legalisation?",a:"An Apostille is issued by the UK Foreign, Commonwealth & Development Office (FCDO) and is accepted in 120+ countries that are signatories to the Hague Convention. Embassy legalisation is required for countries that are not Hague Convention members - the document is first apostilled, then presented to the relevant embassy for further authentication."},{q:"What is an EUR-1 Movement Certificate?",a:"An EUR-1 is a preferential origin certificate used to claim reduced or zero import duties under UK trade agreements with the EU and other partner countries. It must be completed by the exporter and stamped by HMRC."},{q:"Can I submit an order without paying immediately?",a:"Yes. At checkout you can choose to submit your order and pay later by invoice. Our team will review your documents and send you an invoice. Payment can be made by bank transfer or card."},{q:"Do you handle Embassy legalisation directly?",a:"Yes. Docucert manages the full legalisation chain - from LCCI certification through to Embassy submission and collection. You do not need to visit the embassy yourself."},{q:"Which countries accept LCCI Certificates of Origin?",a:"LCCI Certificates of Origin are accepted in over 120 countries w
459orldwide, including all EU member states, the United States, Canada, Australia, the Gulf Cooperation Council (GCC) countries, and many others. Contact us at [email protected] if you need confirmation for a specific destination."}];function H9(){const[e,t]=v.useState(null);return n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:201",className:"space-y-3",children:z9.map((r,i)=>n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:203",className:"border border-border rounded-xl overflow-hidden bg-card",children:[n.jsxs("button",{"data-loc":"client/src/pages/Home.tsx:207",type:"button",className:"w-full flex items-center justify-between px-6 py-4 text-left gap-4 hover:bg-accent/40 transition-colors",onClick:()=>t(e===i?null:i),"aria-expanded":e===i,children:[n.jsx("span",{"data-loc":"client/src/pages/Home.tsx:213",className:"font-semibold text-foreground text-sm md:text-base",children:r.q}),n.jsx(qr,{"data-loc":"client/src/pages/Home.tsx:214",className:`w-4 h-4 text-muted-foreground flex-shrink-0 transition-transform duration-200 ${e===i?"rotate-180":""}`})]}),e===i&&n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:221",className:"px-6 pb-5 text-sm text-muted-foreground leading-relaxed border-t border-border pt-4",children:r.a})]},i))})}function I9(){return ul({title:"Docucert | Trade Document Certification for UK Exporters",description:"LCCI-certified Certificates of Origin, EUR-1s, Apostilles and Embassy legalisation for UK exporters - handled end-to-end, fast and compliant.",canonical:"https://docucert.co/",ogTitle:"Docucert | Trade Document Certification for UK Exporters",ogDescription:"LCCI Certificates of Origin, EUR-1s, Apostilles and Embassy legalisation for UK exporters - handled end-to-end."}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:241",className:"min-h-screen bg-background",children:[n.jsxs("section",{"data-loc":"client/src/pages/Home.tsx:243",className:"relative pt-36 pb-24 overflow-hidden",children:[n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:244",className:"absolute inset-0 bg-gradient-to-b from-primary/3 via-transparent to-transparent pointer-events-none"}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:246",className:"container mx-auto px-4 max-w-6xl relative",children:[n.jsxs(Ue.div,{"data-loc":"client/src/pages/Home.tsx:247",initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.6},className:"max-w-3xl",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:253",className:"inline-flex items-center gap-2 bg-primary/20 border border-primary/40 rounded-full px-4 py-2 mb-6 shadow-sm",children:[n.jsx(GM,{"data-loc":"client/src/pages/Home.tsx:254",className:"w-4 h-4 text-primary"}),n.jsx("span",{"data-loc":"client/src/pages/Home.tsx:255",className:"text-sm font-bold text-primary uppercase tracking-widest",children:"Trade Certification Platform"})]}),n.jsxs("h1",{"data-loc":"client/src/pages/Home.tsx:258",className:"font-display font-bold text-foreground leading-tight mb-6",style:{fontSize:"56px"},children:["The Certification Partner",n.jsx("br",{"data-loc":"client/src/pages/Home.tsx:259"}),"Behind UK Exporters."]}),n.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:263",className:"text-lg sm:text-xl text-muted-foreground leading-relaxed mb-8 max-w-2xl",children:["End-to-end trade document certification for exporters.",n.jsx("br",{"data-loc":"client/src/pages/Home.tsx:264"}),"LCCI and Embassy legalisation at your fingertips."]}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:268",className:"flex flex-wrap gap-3",children:[n.jsx(Ne,{"data-loc":"client/src/pages/Home.tsx:269",href:"/documents",children:n.jsxs(oe,{"data-loc":"client/src/pages/Home.tsx:270",size:"lg",className:"gap-2 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-8",children:["View Document Services ",n.jsx(rn,{"data-loc":"client/src/pages/Home.tsx:271",className:"w-4 h-4"})]})}),n.jsxs(oe,{"data-loc":"client/src/pages/Home.tsx:274",size:"lg",variant:"outline",className:"gap-2 border-border/60",onClick:()=>{navigator.clipboard.writeText("[email protected]"),Me.success("Email copied to clipboard")},children:[n.jsx(Ft,{"data-loc":"client/src/pages/Home.tsx:283",className:"w-4 h-4"})," [email protected]"]})]})]}),n.jsx(Ue.div,{"data-loc":"client/src/pages/Home.tsx:289",initial:{opacity:0,y:20}
459,animate:{opacity:1,y:0},transition:{duration:.6,delay:.3},className:"flex flex-wrap gap-x-8 gap-y-3 mt-14",children:B9.map(e=>n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:296",className:"flex items-center gap-2 text-sm text-muted-foreground",children:[n.jsx(e.icon,{"data-loc":"client/src/pages/Home.tsx:297",className:"w-4 h-4 text-primary"}),e.label]},e.label))})]})]}),n.jsx("section",{"data-loc":"client/src/pages/Home.tsx:306",className:"py-20 bg-muted/30",children:n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:307",className:"container mx-auto px-4 max-w-6xl",children:[n.jsxs(Ue.div,{"data-loc":"client/src/pages/Home.tsx:308",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[n.jsx(Gt,{"data-loc":"client/src/pages/Home.tsx:314",variant:"outline",className:"mb-4 text-xs font-semibold uppercase tracking-wide border-green-600/60 text-green-600 dark:text-green-400 dark:border-green-600/50 bg-green-600/10",children:"Trade Certificates"}),n.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:317",className:"font-display text-3xl sm:text-4xl font-bold text-foreground mb-3",children:"Certificates & Legalisation"}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:320",className:"text-muted-foreground max-w-xl",children:"LCCI-accredited and embassy-legalised certificates accepted by customs authorities in 120+ countries."})]}),n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:325",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4",children:L9.map((e,t)=>n.jsx(hj,{"data-loc":"client/src/pages/Home.tsx:327",...e,delay:t*.05},e.id))})]})}),n.jsx("section",{"data-loc":"client/src/pages/Home.tsx:335",className:"py-20",children:n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:336",className:"container mx-auto px-4 max-w-6xl",children:[n.jsxs(Ue.div,{"data-loc":"client/src/pages/Home.tsx:337",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"mb-12",children:[n.jsx(Gt,{"data-loc":"client/src/pages/Home.tsx:343",variant:"outline",className:"mb-4 text-xs font-semibold uppercase tracking-wide border-blue-400/50 text-blue-600",children:"2026 Border Services"}),n.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:346",className:"font-display text-3xl sm:text-4xl font-bold text-foreground mb-3",children:"New Border Compliance"}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:349",className:"text-muted-foreground max-w-xl",children:"Stay ahead of 2026 customs reforms. We handle ENS filings, ELO declarations, and GVMS barcodes so you don't have to."})]}),n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:354",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:U9.map((e,t)=>n.jsx(hj,{"data-loc":"client/src/pages/Home.tsx:356",...e,delay:t*.05},e.id))})]})}),n.jsx("section",{"data-loc":"client/src/pages/Home.tsx:365",className:"py-24 bg-muted/30",id:"how-it-works",children:n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:366",className:"container mx-auto px-4 max-w-6xl",children:[n.jsxs(Ue.div,{"data-loc":"client/src/pages/Home.tsx:367",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-center mb-16",children:[n.jsx(Gt,{"data-loc":"client/src/pages/Home.tsx:373",variant:"outline",className:"mb-4 text-xs font-semibold uppercase tracking-widest border-primary/40 text-primary bg-primary/5",children:"The Process"}),n.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:376",className:"font-display text-3xl sm:text-4xl font-bold text-foreground mb-3",children:"How It Works"}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:379",className:"text-muted-foreground max-w-lg mx-auto",children:"From order to certified document - four straightforward steps, with your approval at every stage."})]}),n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:385",className:"grid grid-cols-1 sm:grid-cols-2 gap-6 lg:hidden",children:sh.map((e,t)=>n.jsxs(Ue.div,{"data-loc":"client/src/pages/Home.tsx:387",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"bg-background rounded-2xl border border-border/60 p-6 shadow-sm hover:shadow-md transition-shadow",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:395",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:396",className:"w-10 h-10 rounded-xl bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(e.Icon,{"data-loc":"client/src/pages/Home.tsx:397",className:"w-5 h-5 text-primary"})}),n.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:399",className:"text-xs font-bold text-primary/60 tracking-widest uppercase",children:["Step ",e.step]})]}),n.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:401",className:"font-semibold text-foreground mb-2 text-base",children:e.title}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:402",className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]},e.step))}),n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:407",className:"hidden lg:flex items-stretch gap-0",children:sh.map((e,t)=>n.jsxs(me.Fragment,{children:[n.jsxs(Ue.div,{"data-loc":"client/src/pages/Home.tsx:410",initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:t*.1},className:"flex-1 bg-background rounded-2xl border border-border/60 p-6 shadow-sm hover:shadow-md transition-shadow",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:417",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:418",className:"w-10 h-10 rounded-xl bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(e.Icon,{"data-loc":"client/src/pages/Home.tsx:419",className:"w-5 h-5 text-primary"})}),n.jsxs("span",{"data-loc":"client/src/pages/Home.tsx:421",className:"text-xs font-bold text-primary/60 tracking-widest uppercase",children:["Step ",e.step]})]}),n.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:423",className:"font-semibold text-foreground mb-2 text-base",children:e.title}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:424",className:"text-sm text-muted-foreground leading-relaxed",children:e.description})]}),t<sh.length-1&&n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:427",className:"flex items-center justify-center w-6 flex-shrink-0",children:n.jsx(co,{"data-loc":"client/src/pages/Home.tsx:428",className:"w-5 h-5 text-muted-foreground
459/40"})})]},e.step))}),n.jsx(Ue.div,{"data-loc":"client/src/pages/Home.tsx:435",initial:{opacity:0,y:10},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.4},className:"text-center mt-10",children:n.jsx(Ne,{"data-loc":"client/src/pages/Home.tsx:442",href:"/documents",children:n.jsxs(oe,{"data-loc":"client/src/pages/Home.tsx:443",size:"lg",className:"gap-2 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold px-8",children:["View all services ",n.jsx(rn,{"data-loc":"client/src/pages/Home.tsx:444",className:"w-4 h-4"})]})})})]})}),n.jsx("section",{"data-loc":"client/src/pages/Home.tsx:454",className:"py-20 bg-background",id:"faq",children:n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:455",className:"container mx-auto px-4 max-w-3xl",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:456",className:"text-center mb-12",children:[n.jsx(Gt,{"data-loc":"client/src/pages/Home.tsx:457",variant:"outline",className:"mb-4 text-xs font-semibold tracking-widest uppercase border-green-600/40 text-green-700 bg-green-600/5",children:"FAQ"}),n.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:458",className:"font-display text-3xl md:text-4xl font-bold text-foreground mb-4",children:"Frequently Asked Questions"}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:459",className:"text-muted-foreground text-lg",children:"Everything you need to know about trade document certification."})]}),n.jsx(H9,{"data-loc":"client/src/pages/Home.tsx:461"})]})}),n.jsx("footer",{"data-loc":"client/src/pages/Home.tsx:466",className:"border-t border-border bg-card",children:n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:467",className:"container mx-auto px-4 max-w-6xl py-12",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:468",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-8 mb-10",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:470",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:471",className:"flex items-center gap-2 mb-3",children:[n.jsx("div",{"data-loc":"client/src/pages/Home.tsx:472",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center",children:n.jsx(mt,{"data-loc":"client/src/pages/Home.tsx:473",className:"w-4 h-4 text-primary"})}),n.jsx("span",{"data-loc":"client/src/pages/Home.tsx:475",className:"font-display font-bold text-lg text-foreground",children:"Docucert"})]}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:477",className:"text-sm text-muted-foreground leading-relaxed",children:"Professional trade certification and border compliance for high-growth exporters."})]}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:483",children:[n.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:484",className:"text-sm font-semibold text-foreground mb-3 uppercase tracking-wide",children:"Services"}),n.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:485",className:"space-y-2",children:[["Document Services","/documents"]].map(([e,t])=>n.jsx("li",{"data-loc":"client/src/pages/Home.tsx:489",children:n.jsx(Ne,{"data-loc":"client/src/pages/Home.tsx:490",href:t,children:n.jsx("span",{"data-loc":"client/src/pages/Home.tsx:491",className:"text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:e})})},t))})]}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:499",children:[n.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:500",className:"text-sm font-semibold text-foreground mb-3 uppercase tracking-wide",children:"Trade Resources"}),n.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:501",className:"space-y-2",children:[["Certification FAQ","/faq"],["HMRC Compliance Guide","/hmrc-guide"],["2026 Border Changes","/border-2026"]].map(([e,t])=>n.jsx("li",{"data-loc":"client/src/pages/Home.tsx:507",children:n.jsx(Ne,{"data-loc":"client/src/pages/Home.tsx:508",href:t,children:n.jsx("span",{"data-loc":"client/src/pages/Home.tsx:509",className:"text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:e})})},t))})]}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:517",children:[n.jsx("h4",{"data-loc":"client/src/pages/Home.tsx:518",className:"text-sm font-semibold text-foreground mb-3 uppercase tracking-wide",children:"Legal"}),n.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:519",className:"space-y-2",children:[["Terms of Service","/terms"],["Privacy Policy","/
459privacy"],["Cookie Policy","/cookies"],["Payment Terms","/payment-terms"]].map(([e,t])=>n.jsx("li",{"data-loc":"client/src/pages/Home.tsx:526",children:n.jsx(Ne,{"data-loc":"client/src/pages/Home.tsx:527",href:t,children:n.jsx("span",{"data-loc":"client/src/pages/Home.tsx:528",className:"text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer",children:e})})},t))})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:536",className:"border-t border-border pt-6 flex flex-col sm:flex-row items-start justify-between gap-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:537",className:"text-xs text-muted-foreground space-y-1",children:[n.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:538",children:["© ",new Date().getFullYear()," Docucert Ltd. All rights reserved."]}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:539",children:"Docucert Ltd - Registered in England and Wales. Company No. 17305458"}),n.jsx("p",{"data-loc":"client/src/pages/Home.tsx:540",children:"Registered Office: 167â169 Great Portland Street, 5th Floor, London, W1W 5PF"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:542",className:"flex gap-4 text-xs text-muted-foreground",children:[n.jsx("a",{"data-loc":"client/src/pages/Home.tsx:543",href:"mailto:[email protected]",className:"hover:text-foreground transition-colors",children:"[email protected]"}),n.jsx("a",{"data-loc":"client/src/pages/Home.tsx:544",href:"mailto:[email protected]",className:"hover:text-foreground transition-colors",children:"[email protected]"})]})]})]})})]})}const IC=v.createContext({items:[],addItem:()=>{},removeItem:()=>{},clearCart:()=>{},totalCount:0,drawerOpen:!1,setOpen:()=>{}});function V9({children:e}){const[t,r]=v.useState(()=>{try{const f=sessionStorage.getItem("docucert_cart");return f?JSON.parse(f):[]}catch{return[]}}),[i,c]=v.useState(!1);v.useEffect(()=>{try{sessionStorage.setItem("docucert_cart",JSON.stringify(t))}catch{}},[t]);const d=f=>{r(h=>h.find(y=>y.id===f.id)?h:[...h,f])},u=f=>{r(h=>h.filter(y=>y.id!==f))},m=()=>r([]);return n.jsx(IC.Provider,{"data-loc":"client/src/contexts/CartContext.tsx:62",value:{items:t,addItem:d,removeItem:u,clearCart:m,totalCount:t.length,drawerOpen:i,setOpen:c},children:e})}function kg(){return v.useContext(IC)}function wu({className:e,onKeyDown:t,onCompositionStart:r,onCompositionEnd:i,...c}){const d=Zx(),{onCompositionStart:u,onCompositionEnd:m,onKeyDown:f}=oS({onKeyDown:h=>{const y=h.nativeEvent.isComposing||d.justEndedComposing();h.key==="Enter"&&!h.shiftKey&&y||t?.(h)},onCompositionStart:h=>{d.setComposing(!0),r?.(h)},onCompositionEnd:h=>{d.markCompositionEnd(),setTimeout(()=>{d.setComposing(!1)},100),i?.(h)}});return n.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:vt("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",e),onCompositionStart:u,onCompositionEnd:m,onKeyDown:f,...c})}const Hn=27.9,ut=[{key:"cert_of_origin_uk",label:"UK Certificate of Origin",price:95,desc:"LCCI certified. Required for goods exported from the UK to prove country of origin.",Icon:Fr,badge:"LCCI",turnaround:"1â2 business days",authority:"London Chamber of Commerce",section:"certificates",expressAvailable:!0,expressTurnaround:"2-hour turnaround"},{key:"arab_british_cert",label:"Arab-British Certificate",price:165,desc:"Arab-British Chamber of Commerce. Required for trade with Arab League countries. Embassy legalisation (Stream II) is quoted separately - please select your destination country in the notes.",Icon:$M,badge:"ABCC",turnaround:"2â3 business days",authority:"Arab-British Chamber",section:"certificates",expressAvailable:!0,expressTurnaround:"2-hour turnaround"},{key:"eur1",label:"EUR-1 Movement Certificate",price:85,desc:"Preferential tariff treatment within EU trade agreements. Issued by HMRC.",Icon:YM,badge:"EU",turnaround:"1â2 business days",authority:"HMRC",section:"certificates",expressAvailable:!0,expressTurnaround:"2-hour turnaround"},{key:"apostille",label:"Apostille",price:120,desc:"Foreign & Commonwealth Office legalisation for international document recognition.",Icon:qx,badge:"FCO",turnaround:"3â5 business days",authority:"FCDO",section:"certificates"},{key:"elo",label:"ELO (Logistics Envelope)",price:45,desc:"Mandatory digital barcode for the French 'Smart Border' (UKâFR).",Icon:yc,badge:"FR",turnaround:"Same day",authority:"French Customs",section:"border"},{key:"ics2_ens",label:"ICS2 ENS Filing",price:35,desc:"Safety & Security declaration required for all EU-bound cargo.",Icon:Vx,badge:"EU",turnaround:"Same day",authority:"EU Customs",section:"border"},{key:"gmr_pbn",label:"GMR / PBN Barcodes",price:25,desc:"Essential transit barcodes for UK, Ireland, and French tunnel/ferry crossings.",Icon:al,badge:"HMRC",turnaround:"Same day",authority:"HMRC / GV
459MS",section:"border"},{key:"commercial_invoice_cert",label:"Commercial Invoice Certification",price:85,desc:"LCCI certified and verified for international banking and customs.",Icon:mt,badge:"LCCI",turnaround:"1â2 business days",authority:"London Chamber of Commerce",section:"certificates",expressAvailable:!0,expressTurnaround:"2-hour turnaround"}];function q9({cart:e,onToggle:t,onProceed:r,onEnquire:i,disabled:c}){const d=e.filter(f=>!ut.find(h=>h.key===f.key)?.enquireOnly),u=e.filter(f=>ut.find(h=>h.key===f.key)?.enquireOnly),m=d.reduce((f,h)=>{const y=ut.find(w=>w.key===h.key),g=y?.price||0,b=h.express&&y?.expressAvailable?Hn:0;return f+g+b},0);return n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:164",className:"sticky top-24 glass-card rounded-xl border border-border/50 overflow-hidden",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:165",className:"p-4 border-b border-border/40 flex items-center gap-2",children:[n.jsx(lo,{"data-loc":"client/src/pages/Order.tsx:166",className:"w-4 h-4 text-primary"}),n.jsx("h3",{"data-loc":"client/src/pages/Order.tsx:167",className:"font-semibold text-foreground text-sm",children:"Your Order"}),e.length>0&&n.jsxs(Gt,{"data-loc":"client/src/pages/Order.tsx:169",className:"ml-auto bg-primary/20 text-primary border-0 text-xs",children:[e.length," item",e.length!==1?"s":""]})]}),e.length===0?n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:176",className:"p-6 text-center",children:[n.jsx(lo,{"data-loc":"client/src/pages/Order.tsx:177",className:"w-8 h-8 text-muted-foreground/30 mx-auto mb-2"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:178",className:"text-sm text-muted-foreground",children:"No documents selected"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:179",className:"text-xs text-muted-foreground/60 mt-1",children:"Click a service card to add it"})]}):n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:182",className:"p-4 space-y-2",children:[d.map(f=>{const h=ut.find(y=>y.key===f.key);return n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:187",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:188",className:"flex items-center justify-between text-sm gap-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:189",className:"flex items-center gap-2 text-foreground min-w-0",children:[n.jsx(h.Icon,{"data-loc":"client/src/pages/Order.tsx:190",className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:191",className:"truncate text-xs",children:h.label})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:193",className:"flex items-center gap-2 flex-shrink-0",children:[n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:194",className:"text-muted-foreground text-xs",children:["£",(h.price+(f.express&&h.expressAvailable?Hn:0)).toFixed(2)]}),n.jsx("button",{"data-loc":"client/src/pages/Order.tsx:197",type:"button",onClick:()=>t(f.key),className:"text-muted-foreground hover:text-destructive transition-colors",children:n.jsx(_s,{"data-loc":"client/src/pages/Order.tsx:198",className:"w-3.5 h-3.5"})})]})]}),f.express&&h.expressAvailable&&n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:203",className:"flex items-center mt-0.5 pl-5",children:n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:204",className:"text-[10px] text-muted-foreground italic",children:"+ Express 2-hour processing"})}),f.key==="arab_british_cert"&&f.embassyLegalisation&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:208",className:"flex items-center justify-between mt-1 pl-5",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:209",className:"text-[10px] text-muted-foreground italic",children:"+ Embassy Legalisation (Stream II)"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:210",className:"text-[10px] text-amber-600 dark:text-amber-400 font-medium",children:"Quoted separately"})]}),f.key==="arab_british_cert"&&f.destinationCountry&&n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:214",className:"flex items-center justify-between mt-0.5 pl-5",children:n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:215",className:"text-[10px] text-muted-foreground italic",children:["Destination: ",f.destinationCountry]})})]},f.key)}),u.length>0&&n.jsxs(n.Fragment,{children:[d.length>0&&n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:225",className:"border-t border-border/40 pt-2 mt-2"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:226",className:"text-[10px] font-semibold uppercase tracking-wider text-amber-600 dar
459k:text-amber-400 mb-1",children:"Enquiry Items"}),u.map(f=>{const h=ut.find(y=>y.key===f.key);return n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:230",className:"flex items-center justify-between text-sm gap-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:231",className:"flex items-center gap-2 min-w-0",children:[n.jsx(h.Icon,{"data-loc":"client/src/pages/Order.tsx:232",className:"w-3.5 h-3.5 text-amber-500 flex-shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:233",className:"truncate text-xs text-foreground",children:h.label})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:235",className:"flex items-center gap-2 flex-shrink-0",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:236",className:"text-[10px] text-amber-600 dark:text-amber-400 font-medium",children:"Enquire"}),n.jsx("button",{"data-loc":"client/src/pages/Order.tsx:237",type:"button",onClick:()=>t(f.key),className:"text-muted-foreground hover:text-destructive transition-colors",children:n.jsx(_s,{"data-loc":"client/src/pages/Order.tsx:238",className:"w-3.5 h-3.5"})})]})]},f.key)})]}),d.length>0&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:249",className:"border-t border-border/40 pt-3 mt-3 flex items-center justify-between",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:250",className:"font-semibold text-foreground text-sm",children:"Total"}),n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:251",className:"font-bold text-foreground text-lg",children:["£",m.toFixed(2)]})]}),d.length>0&&n.jsxs(oe,{"data-loc":"client/src/pages/Order.tsx:257",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground font-semibold mt-2",onClick:r,disabled:c,children:["Continue - Upload Docs ",n.jsx(rn,{"data-loc":"client/src/pages/Order.tsx:262",className:"w-4 h-4 ml-2"})]}),u.map(f=>{const h=ut.find(y=>y.key===f.key);return n.jsxs(oe,{"data-loc":"client/src/pages/Order.tsx:268",variant:"outline",className:"w-full border-amber-500/40 text-amber-600 dark:text-amber-400 hover:bg-amber-500/10 font-semibold mt-1",onClick:()=>i(f.key),disabled:c,children:[n.jsx(Ft,{"data-loc":"client/src/pages/Order.tsx:275",className:"w-4 h-4 mr-2"})," Enquire: ",h.label]},f.key)}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:279",className:"text-xs text-muted-foreground text-center",children:d.length>0?"Upload your supporting documents in the next step":"Submit your enquiry to receive a tailored quote"})]})]})}function F9({docStates:e,onFileAdd:t,onFileRemove:r,onProceed:i,onBack:c,isPaying:d,isSubmittingWithoutPayment:u,onSubmitWithoutPayment:m,contactInfo:f,onContactChange:h,isEnquiry:y,notes:g,onNotesChange:b,customerRef:w,onCustomerRefChange:C}){const N=v.useRef({});return n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:309",className:"space-y-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:310",className:"glass-card rounded-xl p-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:311",className:"flex items-center gap-2 mb-1",children:[n.jsx(Hc,{"data-loc":"client/src/pages/Order.tsx:312",className:"w-4 h-4 text-primary"}),n.jsx("h3",{"data-loc":"client/src/pages/Order.tsx:313",className:"font-semibold text-foreground",children:"Upload Supporting Documents"})]}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:315",className:"text-sm text-muted-foreground mb-5",children:"Upload your invoices, packing lists, or any relevant documents. Our trade experts will review everything before processing."}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:319",className:"space-y-4",children:e.map(S=>{const A=ut.find(D=>D.key===S.key);return n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:323",className:"border border-border/50 rounded-xl p-4 bg-secondary/20",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:324",className:"flex items-center gap-2 mb-3",children:[n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:325",className:"w-7 h-7 rounded-md bg-primary/10 flex items-center justify-center flex-shrink-0",children:n.jsx(A.Icon,{"data-loc":"client/src/pages/Order.tsx:326",className:"w-3.5 h-3.5 text-primary"})}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:328",children:[n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:329",className:"text-sm font-medium text-foreground",children:A.label}),n.jsxs("p",{"data-loc":"client/src/pages/Order.tsx:330",className:"text-xs text-muted-foreground",children:["£",A.price.toFixed(2)]})]})]}),S.uploadedFiles.length>
4590&&n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:336",className:"space-y-1.5 mb-3",children:S.uploadedFiles.map((D,M)=>n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:338",className:"flex items-center gap-2 p-2 rounded-lg bg-primary/5 border border-primary/20",children:[n.jsx(ws,{"data-loc":"client/src/pages/Order.tsx:339",className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:340",className:"text-xs text-foreground flex-1 truncate",children:D.name}),n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:341",className:"text-xs text-muted-foreground",children:[(D.size/1024).toFixed(0)," KB"]}),n.jsx("button",{"data-loc":"client/src/pages/Order.tsx:342",type:"button",onClick:()=>r(S.key,M),className:"text-muted-foreground hover:text-destructive transition-colors",children:n.jsx(_s,{"data-loc":"client/src/pages/Order.tsx:347",className:"w-3.5 h-3.5"})})]},M))}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:355",className:"border-2 border-dashed rounded-lg p-4 text-center cursor-pointer transition-colors border-border/50 hover:border-primary/40 hover:bg-primary/5",onClick:()=>N.current[S.key]?.click(),children:[n.jsx(Hc,{"data-loc":"client/src/pages/Order.tsx:359",className:"w-5 h-5 text-muted-foreground/50 mx-auto mb-1"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:360",className:"text-xs text-muted-foreground",children:"Click to upload PDF, JPG, or PNG"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:361",className:"text-xs text-muted-foreground/60",children:"Max 16MB per file"}),n.jsx("input",{"data-loc":"client/src/pages/Order.tsx:362",ref:D=>{N.current[S.key]=D},type:"file",accept:"application/pdf,image/jpeg,image/png",className:"hidden",onChange:D=>{const M=D.target.files?.[0];M&&t(S.key,M),D.target&&(D.target.value="")}})]})]},S.key)})})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:381",className:"glass-card rounded-xl p-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:382",className:"flex items-center gap-2 mb-4",children:[n.jsx(Rs,{"data-loc":"client/src/pages/Order.tsx:383",className:"w-4 h-4 text-primary"}),n.jsx("h3",{"data-loc":"client/src/pages/Order.tsx:384",className:"font-semibold text-foreground",children:"Contact Details"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:386",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:387",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:388",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Full Name *"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:389",value:f.name,onChange:S=>h("name",S.target.value),placeholder:"e.g. Jane Smith",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:396",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:397",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Email Address *"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:398",type:"email",value:f.email,onChange:S=>h("email",S.target.value),placeholder:"e.g. [email protected]",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:406",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:407",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Phone Number"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:408",type:"tel",value:f.phone,onChange:S=>h("phone",S.target.value),placeholder:"e.g. +44 7700 900000",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:416",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:417",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Company Name"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:418",value:f.company,onChange:S=>h("company",S.target.value),placeholder:"e.g. Acme Exports Ltd",className:"bg-secondary/40 border-border/60 text-sm h-9"})]})]})]}),!y&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:429",className:"glass-card rounded-xl p-5",children:[n.jsxs(qe,{"data-loc":"client/src/pages/Order.tsx:430",className:"text-sm font-medium text-foreground mb-1 block",children:["Your Reference Number ",n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:431",className:"text-muted-foreground font-normal",children:"(optional)"})]}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:433",className:"text-xs text-muted-foreground mb-3",children:"Add your own order or PO number to cross-reference with your records."}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:434",value:w??"",onChange:S=>C?.(S.target.value),placeholder:"e.g. PO-2024-001 or INV-12345",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:443",className:"glass-card rounded-xl p-5",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:444",className:"text-sm font-medium text-foreground mb-2 block",children:y?"Additional Requirements / Notes":"Special Instructions (optional)"}),n.jsx(wu,{"data-loc":"client/src/pages/Order.tsx:447",value:g??"",onChange:S=>b?.(S.target.value),placeholder:y?"Describe your goods, destination, timeline, or any specific requirementsâ¦":"Any special requirements, reference numbers, or instructions for our teamâ¦",className:"bg-secondary/40 border-border/60 text-sm resize-none",rows:y?4:3})]}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:456",className:"glass-card rounded-xl p-4 border border-primary/20 bg-primary/5",children:n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:457",className:"flex items-start gap-3",children:[n.jsx(sn,{"data-loc":"client/src/pages/Order.tsx:458",className:"w-4 h-4 text-primary flex-shrink-0 mt-0.5"}),n.jsxs("p",{"data-loc":"client/src/pages/Order.tsx:459",className:"text-xs text-muted-foreground leading-relaxed",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:4
45960",className:"font-semibold text-foreground",children:"Draft review before submission."})," ","We will contact you with a draft copy of your document for approval before submitting to the issuing authority."]})]})}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:466",className:"flex gap-3",children:n.jsx(oe,{"data-loc":"client/src/pages/Order.tsx:467",className:"flex-1 h-12 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold text-base",onClick:i,disabled:d||u,children:d?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/Order.tsx:473",className:"w-4 h-4 mr-2 animate-spin"})," ",y?"Submittingâ¦":"Redirecting to paymentâ¦"]}):y?n.jsxs(n.Fragment,{children:[n.jsx(Ft,{"data-loc":"client/src/pages/Order.tsx:475",className:"w-4 h-4 mr-2"})," Submit Enquiry"]}):n.jsxs(n.Fragment,{children:[n.jsx(SN,{"data-loc":"client/src/pages/Order.tsx:477",className:"w-4 h-4 mr-2"})," Proceed to Payment"]})})}),!y&&m&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:482",className:"flex flex-col gap-2",children:[n.jsx(oe,{"data-loc":"client/src/pages/Order.tsx:483",variant:"outline",className:"w-full border-border/60 text-muted-foreground hover:text-foreground",onClick:m,disabled:d||u,children:u?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/Order.tsx:490",className:"w-4 h-4 mr-2 animate-spin"})," Submitting orderâ¦"]}):n.jsxs(n.Fragment,{children:[n.jsx(Ft,{"data-loc":"client/src/pages/Order.tsx:492",className:"w-4 h-4 mr-2"})," Submit order - pay later by invoice"]})}),n.jsxs("p",{"data-loc":"client/src/pages/Order.tsx:495",className:"text-xs text-muted-foreground text-center",children:["We offer ",n.jsx("a",{"data-loc":"client/src/pages/Order.tsx:496",href:"/payment-terms",className:"underline underline-offset-2 hover:text-foreground transition-colors",children:"Net 30 terms"})," for qualified customers who prefer to pay by bank transfer or purchase order. Our team will review your order and send an invoice."]})]}),!y&&!m&&n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:501",className:"text-xs text-muted-foreground text-center",children:"Secured by Stripe"})]})}function G9({doc:e,onClose:t,contactInfo:r,onContactChange:i}){const[c,d]=v.useState("intro"),[u,m]=v.useState([]),[f,h]=v.useState(""),[y,g]=v.useState(""),b=v.useRef(null),w=Ae.consular.submitEnquiry.useMutation(),C=Ae.consular.uploadInvoice.useMutation(),N=async()=>{try{const S=[],A=[],D=[];for(const M of u){const V=await new Promise(B=>{const E=new FileReader;E.onload=k=>B((k.target?.result).split(",")[1]),E.readAsDataURL(M)}),O=await C.mutateAsync({fileName:M.name,fileBase64:V,mimeType:M.type||"application/pdf"});S.push(O.url),A.push(O.key),D.push(M.name)}await w.mutateAsync({docType:e.key,notes:f||void 0,customerName:r.name||void 0,customerEmail:r.email||void 0,customerPhone:r.phone||void 0,customerCompany:r.company||void 0,fileUrls:S,fileKeys:A,fileNames:D}),Me.success("Enquiry submitted! Our team will be in touch within 2 business hours."),t()}catch{Me.error("Something went wrong. Please try again.")}};return n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:565",className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/60 backdrop-blur-sm overflow-y-auto",children:n.jsxs(Ue.div,{"data-loc":"client/src/pages/Order.tsx:566",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"glass-card rounded-2xl w-full max-w-xl border border-border/50 shadow-xl my-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:573",className:"flex items-start gap-3 p-6 pb-4 border-b border-border/40",children:[n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:574",className:"w-10 h-10 rounded-xl bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:n.jsx(e.Icon,{"data-loc":"client/src/pages/Order.tsx:575",className:"w-5 h-5 text-amber-500"})}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:577",className:"flex-1 min-w-0",children:[n.jsx("h3",{"data-loc":"client/src/pages/Order.tsx:578",className:"font-semibold text-foreground",children:e.label}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:579",className:"text-sm text-muted-foreground",children:e.authority})]}),n.jsx("button",{"data-loc":"client/src/pages/Order.tsx:581",onClick:t,className:"text-muted-foreground hover:text-foreground transition-colors flex-shrink-0",children:n.jsx(_s,{"data-loc":"client/src/pages/Order.tsx:582",className:"w-4 h-4"})})]}),c==="intro"&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:587",className:"p-6 space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:588",className:"text-sm text-muted-foreground leading-relaxed",children:e.desc}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:589",className:"bg-amber-500/10 rounded-lg p-3",children:n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:590",className:"flex items-start gap-2",children:[n.jsx(Ft,{"data-loc":"client/src/pages/Order.tsx:591",className:"w-4 h-4 text-amber-500 flex-shrink-0 mt-0.5"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:592",className:"text-xs text-muted-foreground leading-relaxed",children:"This service requires a custom consultation. Upload your supporting documents and fill in your details - our trade experts will review and provide a tailored quote within 2 business hours."})]})}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:597",className:"flex gap-3 pt-2",children:[n.jsx(oe,{"data-loc":"client/src/pages/Order.tsx:598",variant:"outline",onClick:t,className:"flex-1 border-border/60",children:"Cancel"}),n.jsxs(oe,{"data-loc":"client/src/pages/Order.tsx:599",className:"flex-1 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",onClick:()=>d("upload"),children:["Continue ",n.jsx(rn,{"data-loc":"client/src/pages/Order.tsx:603",className:"w-4 h-4 ml-2"})]})]})]}),c==="upload"&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:610",className:"p-6 space-y-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:612",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:613",className:"flex items-center gap-2 mb-3",children:[n.jsx(Hc,{"data-loc":"client/src/pages/Order.tsx:614",className:"w-4 h-4 text-primary"}),n.jsx("h4",{"data-loc":"client/src/pages/Order.tsx:615",className:"font-semibold text-foreground text-sm",children:"Supporting Documents (optional)"})]}),u.length>0&&n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:618",className:"space-y-1.5 mb-3",children:u.map((S,A)=>n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:620",className:"flex items-center gap-2 p-2 rounded-lg bg-primary/5 border border-primary/20",children:[n.jsx(ws,{"data-loc":"client/src/pages/Order.tsx:621",className:"w-3.5 h-3.5 text-primary flex-shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:622",className:"text-xs text-foreground flex-1 truncate",children:S.name}),n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:623",className:"text-xs text-muted-foreground",children:[(S.size/1024).toFixed(0)," KB"]}
459),n.jsx("button",{"data-loc":"client/src/pages/Order.tsx:624",type:"button",onClick:()=>m(D=>D.filter((M,V)=>V!==A)),className:"text-muted-foreground hover:text-destructive transition-colors",children:n.jsx(_s,{"data-loc":"client/src/pages/Order.tsx:629",className:"w-3.5 h-3.5"})})]},A))}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:635",className:"border-2 border-dashed rounded-lg p-4 text-center cursor-pointer transition-colors border-border/50 hover:border-primary/40 hover:bg-primary/5",onClick:()=>b.current?.click(),children:[n.jsx(Hc,{"data-loc":"client/src/pages/Order.tsx:639",className:"w-5 h-5 text-muted-foreground/50 mx-auto mb-1"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:640",className:"text-xs text-muted-foreground",children:"Click to upload PDF, JPG, or PNG"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:641",className:"text-xs text-muted-foreground/60",children:"Max 16MB per file"}),n.jsx("input",{"data-loc":"client/src/pages/Order.tsx:642",ref:b,type:"file",accept:"application/pdf,image/jpeg,image/png",className:"hidden",onChange:S=>{const A=S.target.files?.[0];A&&m(D=>[...D,A]),S.target&&(S.target.value="")}})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:657",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:658",className:"flex items-center gap-2 mb-3",children:[n.jsx(Rs,{"data-loc":"client/src/pages/Order.tsx:659",className:"w-4 h-4 text-primary"}),n.jsx("h4",{"data-loc":"client/src/pages/Order.tsx:660",className:"font-semibold text-foreground text-sm",children:"Contact Details"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:662",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:663",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:664",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Full Name *"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:665",value:r.name,onChange:S=>i("name",S.target.value),placeholder:"e.g. Jane Smith",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:672",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:673",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Email Address *"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:674",type:"email",value:r.email,onChange:S=>i("email",S.target.value),placeholder:"e.g. [email protected]",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:682",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:683",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Phone Number"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:684",type:"tel",value:r.phone,onChange:S=>i("phone",S.target.value),placeholder:"e.g. +44 7700 900000",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:692",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:693",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Company Name"}),n.jsx(Fe,{"data-loc":"client/src/pages/Order.tsx:694",value:r.company,onChange:S=>i("company",S.target.value),placeholder:"e.g. Acme Exports Ltd",className:"bg-secondary/40 border-border/60 text-sm h-9"})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:705",children:[n.jsx(qe,{"data-loc":"client/src/pages/Order.tsx:706",className:"text-sm font-medium text-foreground mb-2 block",children:"Additional Requirements / Notes"}),n.jsx(wu,{"data-loc":"client/src/pages/Order.tsx:707",value:f,onChange:S=>h(S.target.value),placeholder:"Describe your goods, destination, timeline, or any specific requirementsâ¦",className:"bg-secondary/40 border-border/60 text-sm resize-none",rows:3})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:716",className:"flex gap-3",children:[n.jsxs(oe,{"data-loc":"client/src/pages/Order.tsx:717",variant:"outline",onClick:()=>d("intro"),className:"border-border/60",children:[n.jsx(zM,{"data-loc":"client/src/pages/Order.tsx:718",className:"w-4 h-4 mr-1"})," Back"]}),n.jsx(oe,{"data-loc":"client/src/pages/Order.tsx:720",className:"flex-1 h-11 bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",onClick:N,disabled:w.isPending||C.isPending,children:w.isPending||C.isPending?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/Order.tsx:726",className:"w-4 h-4 mr-2 animate-spin"})," Submittingâ¦"]}):n.jsxs(n.Fragment,{children:[n.jsx(Ft,{"data-loc":"client/src/pages/Order.tsx:728",className:"w-4 h-4 mr-2"})," Submit Enquiry"]})})]})]})]})})}function Q9(){ul({title:"Document Services | Docucert",description:"Order LCCI Certificates of Origin, Arab-British Certificates, EUR-1s, Apostilles, Commercial Invoice Certification and more. Fast, compliant UK trade document services.",canonical:"https://docucert.co/documents",ogTitle:"Document Services | Docucert",ogDescription:"Order LCCI Certificates of Origin, Arab-British Certificates, EUR-1s, Apostilles and more. Fast, compliant UK trade document services.",breadcrumbs:[{name:"Home",url:"https://docucert.co/"},{name:"Document Services",url:"https://docucert.co/documents"}]});const{user:e}=ea(),{clearCart:t}=kg(),[,r]=Ls(),i=kN(),[c]=v.useState(()=>{try{const _=sessionStorage.getItem("docucert_cart");return _?JSON.parse(_).filter(se=>se.enquire&&ut.some(ge=>ge.key===se.id)).map(se=>se.id):[]}catch{return[]}}),[d,u]=v.useState(()=>{try{const _=sessionStorage.getItem("docucert_cart");return _?JSON.parse(_).filter(se=>ut.some(ge=>ge.key===se.id)).map(se=>({key:se.id})):[]}catch{return[]}}),[m,f]=v.useState([]),[h,y]=v.useState("select"),[g,b]=v.useState(null),[w,C]=v.useState([]),[N,S]=v.useState(!1),[A,D]=v.useState({name:"",email:"",ph
459one:"",company:""}),[M,V]=v.useState(""),[O,B]=v.useState(""),E=Ae.consular.uploadInvoice.useMutation(),k=Ae.payments.createConsularCheckout.useMutation();Ae.consular.createOrder.useMutation(),Ae.consular.saveOrderFiles.useMutation();const J=Ae.consular.submitWithoutPayment.useMutation();v.useEffect(()=>{t()},[]),v.useEffect(()=>{const X=new URLSearchParams(i).get("doc");if(X){const se=ut.find(ge=>ge.key===X);se&&(se.enquireOnly?b(se):u(ge=>ge.some(ie=>ie.key===X)?ge:[...ge,{key:X}]))}},[]),v.useEffect(()=>{e&&D(_=>({name:_.name||e.name||"",email:_.email||e.email||"",phone:_.phone||e.phone||"",company:_.company||e.companyName||""}))},[e?.id]);const te=_=>{u(X=>X.map(se=>se.key==="arab_british_cert"?{...se,embassyLegalisation:_}:se))},re=_=>{u(X=>X.map(se=>se.key==="arab_british_cert"?{...se,destinationCountry:_}:se))},ce=(_,X)=>{u(se=>se.map(ge=>ge.key===_?{...ge,express:X}:ge))},de=_=>{u(X=>X.some(se=>se.key===_)?(Me.info("Removed from order"),X.filter(se=>se.key!==_)):(Me.success("Added to order"),[...X,{key:_}]))},ue=d.filter(_=>ut.find(X=>X.key===_.key)?.enquireOnly),pe=d.filter(_=>!ut.find(X=>X.key===_.key)?.enquireOnly),P=ue.length>0,I=pe.length>0,z=()=>{const _=pe.map(X=>({key:X.key,uploadedFiles:[],fileUrls:[],notes:"",uploading:!1,reviewed:!1}));f(_),y("upload"),window.scrollTo({top:0,behavior:"smooth"})},Z=()=>{if(P){const _=ue.map(se=>se.key);C(_.slice(1)),S(I);const X=ut.find(se=>se.key===_[0]);X&&b(X)}else z()},he=()=>{if(b(null),w.length>0){const _=w[0];C(se=>se.slice(1));const X=ut.find(se=>se.key===_);X&&b(X)}else N&&(S(!1),z())},R=(_,X)=>{f(se=>se.map(ge=>ge.key===_?{...ge,uploadedFiles:[...ge.uploadedFiles,X]}:ge))},Y=(_,X)=>{f(se=>se.map(ge=>ge.key===_?{...ge,uploadedFiles:ge.uploadedFiles.filter((ie,fe)=>fe!==X)}:ge))},F=async()=>{try{const _=fe=>new Promise((Pe,Ie)=>{const ct=new FileReader;ct.onload=Mt=>Pe((Mt.target?.result).split(",")[1]),ct.onerror=Ie,ct.readAsDataURL(fe)}),X={};for(const fe of m){const Pe=[];for(const Ie of fe.uploadedFiles)try{const ct=await _(Ie),Mt=await E.mutateAsync({fileName:Ie.name,fileBase64:ct,mimeType:Ie.type||"application/pdf"});Pe.push({fileUrl:Mt.url,fileKey:Mt.key,fileName:Ie.name,mimeType:Ie.type||"application/pdf"})}catch{}X[fe.key]=Pe}const se=pe.map(fe=>{const Pe=ut.find(Mt=>Mt.key===fe.key),Ie=!!fe.express&&!!Pe.expressAvailable,ct=Ie?Pe.price+Hn:Pe.price;return{docType:fe.key,docLabel:Ie?`${Pe.label} (Express - 2hr)`:Pe.label,priceGbp:ct,uploadedFiles:X[fe.key]||[]}}),ge=pe.filter(fe=>fe.express&&ut.find(Pe=>Pe.key===fe.key)?.expressAvailable),ie=await k.mutateAsync({items:se,customerName:A.name||void 0,customerEmail:A.email||void 0,customerPhone:A.phone||void 0,customerCompany:A.company||void 0,customerRef:O||void 0,specialInstructions:[M,d.some(fe=>fe.key==="arab_british_cert"&&fe.embassyLegalisation)?"EMBASSY LEGALISATION (Stream II) REQUIRED - please quote separately":"",(()=>{const fe=d.find(Pe=>Pe.key==="arab_british_cert")?.destinationCountry;return fe?`Destination country: ${fe}`:""})(),ge.length>0?`EXPRESS 2-HOUR PROCESSING REQUESTED for: ${ge.map(fe=>ut.find(Pe=>Pe.key===fe.key)?.label).join(", ")}`:""].filter(Boolean).join(" | ")||void 0});ie.url&&(window.open(ie.url,"_blank"),Me.success("Redirecting to secure paymentâ¦"))}catch(_){Me.error(_?.message||"Something went wrong. Please try again.")}},$=async()=>{try{const _=ie=>new Promise((fe,Pe)=>{const Ie=new FileReader;Ie.onload=ct=>fe((ct.target?.result).split(",")[1]),Ie.onerror=Pe,Ie.readAsDataURL(ie)}),X={};for(const ie of m){const fe=[];for(const Pe of ie.uploadedFiles)try{const Ie=await _(Pe),ct=await E.mutateAsync({fileName:Pe.name,fileBase64:Ie,mimeType:Pe.type||"application/pdf"});fe.push({fileUrl:ct.url,fileKey:ct.key,fileName:Pe.name,mimeType:Pe.type||"application/pdf"})}catch{}X[ie.key]=fe}const se=pe.map(ie=>{const fe=ut.find(ct=>ct.key===ie.key),Pe=!!ie.express&&!!fe.expressAvailable,Ie=Pe?fe.price+Hn:fe.price;return{docType:ie.key,docLabel:Pe?`${fe.label} (Express - 2hr)`:fe.label,priceGbp:Ie,uploadedFiles:X[ie.key]||[]}}),ge=pe.filter(ie=>ie.express&&ut.find(fe=>fe.key===ie.key)?.expressAvailable);await J.mutateAsync({items:se,customerName:A.name||void 0,customerEmail:A.email||void 0,customerPhone:A.phone||void 0,customerCompany:A.company||void 0,customerRef:O||void 0,specialInstructions:[M,d.some(ie=>ie.key==="arab_british_cert"&&ie.embassyLegalisation)?"EMBASSY LEGALISATION (Stream II) REQUIRED - please quote separately":"",(()=>{const ie=d.find(fe=>fe.key==="arab_british_cert")?.destinationCountry;return ie?`Destination country: ${ie}`:""})(),ge.length>0?`EXPRESS 2-HOUR PROCESSING REQUESTED for: ${ge.map(ie=>ut.find(fe=>fe.key===ie.key)?.label).join(", ")}
459`:""].filter(Boolean).join(" | ")||void 0}),Me.success("Order submitted! Our team will be in touch to arrange payment."),r("/documents/success")}catch(_){Me.error(_?.message||"Something went wrong. Please try again.")}},le=ut.filter(_=>_.section==="certificates"),xe=ut.filter(_=>_.section==="border");return n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1061",className:"min-h-screen bg-background pt-20 pb-16 px-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1062",className:"max-w-6xl mx-auto",children:[n.jsxs(Ue.div,{"data-loc":"client/src/pages/Order.tsx:1064",initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"mb-8",children:[n.jsxs("button",{"data-loc":"client/src/pages/Order.tsx:1065",onClick:()=>h==="upload"?y("select"):r("/"),className:"flex items-center gap-1.5 px-2 py-1.5 rounded-md text-sm font-medium text-muted-foreground hover:text-foreground transition-all mb-4 -ml-1",children:[n.jsx(sr,{"data-loc":"client/src/pages/Order.tsx:1069",className:"w-4 h-4"})," ",h==="upload"?"Back to Document Selection":"Back"]}),n.jsx("h1",{"data-loc":"client/src/pages/Order.tsx:1071",className:"font-display text-3xl font-bold text-foreground",children:"Document Services"}),n.jsxs("button",{"data-loc":"client/src/pages/Order.tsx:1074",onClick:()=>{navigator.clipboard.writeText("[email protected]"),Me.success("Email address copied to clipboard")},className:"mt-4 inline-flex items-center gap-2 px-4 py-2 rounded-lg border border-primary/20 bg-primary/5 hover:bg-primary/10 transition-colors group",children:[n.jsx(Ft,{"data-loc":"client/src/pages/Order.tsx:1081",className:"w-4 h-4 text-primary"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1082",className:"text-sm text-muted-foreground",children:"Order online or contact:"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1083",className:"text-sm font-semibold text-primary group-hover:underline",children:"[email protected]"}),n.jsx(IM,{"data-loc":"client/src/pages/Order.tsx:1084",className:"w-3.5 h-3.5 text-muted-foreground/60 group-hover:text-primary transition-colors"})]})]}),n.jsxs(Kr,{"data-loc":"client/src/pages/Order.tsx:1088",mode:"wait",children:[h==="select"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/Order.tsx:1090",initial:{opacity:0}
459,animate:{opacity:1},exit:{opacity:0},className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1098",className:"lg:col-span-2 space-y-8",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1100",children:[n.jsx("h2",{"data-loc":"client/src/pages/Order.tsx:1101",className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider mb-4",children:"Trade Certificates"}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1104",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:le.map(_=>{const X=d.some(ie=>ie.key===_.key),se=d.find(ie=>ie.key===_.key),ge=_.key==="arab_british_cert";return n.jsx(Ue.div,{"data-loc":"client/src/pages/Order.tsx:1110",initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:vt("glass-card rounded-xl p-5 border transition-all cursor-pointer select-none",_.enquireOnly?"border-border/50 hover:border-amber-500/40 hover:bg-amber-500/5":X?"border-primary/60 bg-primary/5 shadow-sm shadow-primary/10":"border-border/50 hover:border-primary/30 hover:bg-secondary/30"),onClick:()=>de(_.key),children:n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1124",className:"flex items-start gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1125",className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:n.jsx(_.Icon,{"data-loc":"client/src/pages/Order.tsx:1126",className:"w-4 h-4 text-primary"})}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1128",className:"flex-1 min-w-0",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1129",className:"flex items-center gap-2 mb-1 flex-wrap",children:[n.jsx("h3",{"data-loc":"client/src/pages/Order.tsx:1130",className:"font-semibold text-foreground text-sm leading-tight",children:_.label}),X&&!_.enquireOnly&&n.jsx(ws,{"data-loc":"client/src/pages/Order.tsx:1131",className:"w-4 h-4 text-primary flex-shrink-0"})]}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:1133",className:"text-xs text-muted-foreground leading-relaxed mb-2",children:_.desc}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1134",className:"flex items-center gap-2 flex-wrap",children:[_.enquireOnly?n.jsx(Gt,{"data-loc":"client/src/pages/Order.tsx:1136",variant:"outline",className:"text-[10px] px-1.5 py-0 border-amber-500/40 text-amber-600 dark:text-amber-400",children:"Enquire for Quote"}):n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1140",className:"font-bold text-foreground",children:["£",_.price.toFixed(2)]}),n.jsx(Gt,{"data-loc":"client/src/pages/Order.tsx:1142",variant:"outline",className:"text-[10px] px-1.5 py-0 border-border/40 text-muted-foreground",children:_.badge}),n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1145",className:"text-[10px] text-muted-foreground flex items-center gap-1",children:[n.jsx(Ta,{"data-loc":"client/src/pages/Order.tsx:1146",className:"w-2.5 h-2.5"})," ",_.turnaround]}),_.expressAvailable&&!_.enquireOnly&&n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1149",className:"text-[10px] text-muted-foreground border border-border/50 rounded px-1.5 py-0.5 font-medium tracking-wide uppercase",children:"Express available"})]}),_.expressAvailable&&!_.enquireOnly&&X&&n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1156",className:"mt-3 pt-3 border-t border-border/40",onClick:ie=>ie.stopPropagation(),children:n.jsxs("label",{"data-loc":"client/src/pages/Order.tsx:1160",className:"flex items-start gap-2.5 cursor-pointer group",children:[n.jsx("input",{"data-loc":"client/src/pages/Order.tsx:1161",type:"checkbox",className:"mt-0.5 h-3.5 w-3.5 rounded border-border accent-primary cursor-pointer flex-shrink-0",checked:!!se?.express,onChange:ie=>ce(_.key,ie.target.checked)}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1167",children:[n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1168",className:"text-xs font-semibold text-foreground group-hover:text-primary transition-colors",children:["Express 2-hour processing +£",Hn.toFixed(2)]}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:1171",className:"text-[10px] text-muted-foreground mt-0.5 leading-relaxed",children:"Certified document delivered digitally by email within 2 hours. No physical drop-off required."})]})]})}),ge&&X&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1180",className:"mt-3 pt-3 border-t border-border/40",onClick:ie=>ie.stopPropagation(),children:[n.jsxs("label",{"data-loc":"client/src/pages/Order.tsx:1184",className:"flex items-start gap-2.5 cursor-pointer group",children:[n.jsx("input",{"data-loc":"client/src/pages/Order.tsx:1185",type:"checkbox",className:"mt-0.5 h-3.5 w-3.5 rounded border-border accent-primary curs
459or-pointer flex-shrink-0",checked:!!se?.embassyLegalisation,onChange:ie=>te(ie.target.checked)}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1191",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1192",className:"text-xs font-semibold text-foreground group-hover:text-primary transition-colors",children:"Add Embassy Legalisation (Stream II)"}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:1195",className:"text-[10px] text-muted-foreground mt-0.5 leading-relaxed",children:"Required when your buyer or letter of credit specifies it. Fee quoted separately - we will contact you with the embassy charge for your destination country."})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1201",className:"mt-2 ml-6",children:[n.jsx("label",{"data-loc":"client/src/pages/Order.tsx:1202",className:"block text-[10px] font-medium text-muted-foreground mb-1",children:"Destination country"}),n.jsxs("select",{"data-loc":"client/src/pages/Order.tsx:1203",className:"w-full text-xs rounded-md border border-border/60 bg-background px-2 py-1.5 text-foreground focus:outline-none focus:ring-1 focus:ring-primary/50",value:se?.destinationCountry||"",onChange:ie=>re(ie.target.value),onClick:ie=>ie.stopPropagation(),children:[n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1209",value:"",children:"Select destinationâ¦"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1210",value:"Algeria",children:"Algeria"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1211",value:"Bahrain",children:"Bahrain"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1212",value:"Egypt",children:"Egypt"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1213",value:"Iraq",children:"Iraq"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1214",value:"Jordan",children:"Jordan"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1215",value:"Kuwait",children:"Kuwait"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1216",value:"Lebanon",children:"Lebanon"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1217",value:"Libya",children:"Libya"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1218",value:"Mauritania",children:"Mauritania"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1219",value:"Morocco",children:"Morocco"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1220",value:"Oman",children:"Oman"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1221",value:"Palestine",children:"Palestine"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1222",value:"Qatar",children:"Qatar"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1223",value:"Saudi Arabia",children:"Saudi Arabia"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1224",value:"Somalia",children:"Somalia"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1225",value:"Sudan",children:"Sudan"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1226",value:"Syria",children:"Syria"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1227",value:"Tunisia",children:"Tunisia"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1228",value:"UAE",children:"UAE"}),n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1229",value:"Yemen",children:"Yemen"})]})]})]})]})]})},_.key)})})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1243",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1244",className:"flex items-center gap-3 mb-4",children:[n.jsx("h2",{"data-loc":"client/src/pages/Order.tsx:1245",className:"text-sm font-semibold text-muted-foreground uppercase tracking-wider",children:"2026 Border Services"}),n.jsx(Gt,{"data-loc":"client/src/pages/Order.tsx:1248",className:"bg-primary/20 text-primary border-0 text-xs",children:"New"})]}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1250",className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:xe.map(_=>{const X=d.some(se=>se.key===_.key);return n.jsx(Ue.div,{"data-loc":"client/src/pages/Order.tsx:1254",initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:vt("glass-card rounded-xl p-5 border transition-all cursor-pointer select-none",X?"border-primary/60 bg-primary/5 shadow-sm shadow-primary/10":"border-border/50 hover:border-primary/30 hover:bg-secondary/30"),onClick:()=>de(_.key),children:n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1266",className:"flex items-start gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1267",className:"w-9 h-9 rounded-lg bg-primary/10 flex items-center justify-center flex-shrink-0 mt-0.5",children:n.jsx(_.Icon,{"data-loc":"client/src/pages/Order.tsx:1268",className:"w-4 h-4 text-primary"})}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1270",className:"flex-1 min-w-0",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1271",className:"flex items-center gap-2 mb-1 flex-wrap",children:[n.jsx("h3",{"data-loc":"client/src/pages/Order.tsx:1272",className:"font-semibold text-foreground text-sm leading-tight",children:_.label}),X&&n.jsx(ws,{"data-loc":"client/src/pages/Order.tsx:1273",className:"w-4 h-4 text-primary flex-shrink-0"})]}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:1275",className:"text-xs text-muted-foreground leading-relaxed mb-2",children:_.desc}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1276",className:"flex items-center gap-2 flex-wrap",children:[n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1277",className:"font-bold text-foreground",children:["£",_.price.toFixed(2)]}),n.jsx(Gt,{"data-loc":"client/src/pages/Order.tsx:1278",variant:"outline",className:"text-[10px] px-1.5 py-0 border-border/40 text-muted-foreground",children:_.badge}),n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1281",className:"text-[10px] text-muted-foreground flex items-center gap-1",children:[n.jsx(Ta,{"data-loc":"client/src/pages/Order.tsx:1282",className:"w-2.5 h-2.5"})," ",_.turnaround]})]})]})]})},_.key)})})]})]}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1295",className:"lg:col-span-1",children:n.jsx(q9,{"data-loc":"client/src/pages/Order.tsx:1296",cart:d,onToggle:de,onProceed:Z,onEnquire:_=>
459{const X=ut.find(se=>se.key===_);X&&b(X)},disabled:d.length===0})})]},"select"),h==="upload"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/Order.tsx:1311",initial:{opacity:0,x:30},animate:{opacity:1,x:0},exit:{opacity:0,x:-30},className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1319",className:"lg:col-span-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1320",className:"flex items-center gap-2 mb-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1321",className:"flex items-center gap-1.5 text-sm text-muted-foreground",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1322",className:"w-5 h-5 rounded-full bg-primary text-primary-foreground text-xs flex items-center justify-center font-bold",children:"1"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1323",className:"text-muted-foreground/50",children:"Select"})]}),n.jsx(co,{"data-loc":"client/src/pages/Order.tsx:1325",className:"w-3 h-3 text-muted-foreground/40"}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1326",className:"flex items-center gap-1.5 text-sm",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1327",className:"w-5 h-5 rounded-full bg-primary text-primary-foreground text-xs flex items-center justify-center font-bold",children:"2"}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1328",className:"font-medium text-foreground",children:"Upload & Pay"})]})]}),n.jsx(F9,{"data-loc":"client/src/pages/Order.tsx:1331",docStates:m,onFileAdd:R,onFileRemove:Y,onProceed:F,onBack:()=>y("select"),isPaying:k.isPending,isSubmittingWithoutPayment:J.isPending,onSubmitWithoutPayment:$,contactInfo:A,onContactChange:(_,X)=>D(se=>({...se,[_]:X})),notes:M,onNotesChange:V,customerRef:O,onCustomerRefChange:B})]}),n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1350",className:"lg:col-span-1",children:n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1351",className:"sticky top-24 glass-card rounded-xl border border-border/50 overflow-hidden",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1352",className:"p-4 border-b border-border/40 flex items-center gap-2",children:[n.jsx(lo,{"data-loc":"client/src/pages/Order.tsx:1353",className:"w-4 h-4 text-primary"}),n.jsx("h3",{"data-loc":"client/src/pages/Order.tsx:1354",className:"font-semibold text-foreground text-sm",children:"Order Summary"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1356",className:"p-4 space-y-2",children:[d.map(_=>{const X=ut.find(se=>se.key===_.key);return n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1360",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1361",className:"flex items-center justify-between text-sm gap-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1362",className:"flex items-center gap-2 text-foreground min-w-0",children:[n.jsx(X.Icon,{"data-loc":"client/src/pages/Order.tsx:1363",className:`w-3.5 h-3.5 flex-shrink-0 ${X.enquireOnly?"text-amber-500":"text-primary"}`}),n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1364",className:"truncate text-xs",children:X.label})]}),X.enquireOnly?n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1367",className:"text-[10px] text-amber-600 dark:text-amber-400 font-medium flex-shrink-0",children:"Enquire"}):n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1369",className:"text-muted-foreground text-xs flex-shrink-0",children:["£",(X.price+(_.express&&X.expressAvailable?Hn:0)).toFixed(2)]})]}),X.expressAvailable&&!X.enquireOnly&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1376",className:"mt-1.5 ml-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1377",className:"flex items-center justify-between gap-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1378",className:"flex items-center gap-2",children:[n.jsx("input",{"data-loc":"client/src/pages/Order.tsx:1379",type:"checkbox",id:`express-${_.key}`,checked:!!_.express,onChange:se=>ce(_.key,se.target.checked),className:"w-3 h-3 accent-primary cursor-pointer"}),n.jsx("label",{"data-loc":"client/src/pages/Order.tsx:1386",htmlFor:`express-${_.key}`,className:"text-[10px] text-muted-foreground cursor-pointer select-none",children:"Express 2-hour processing"})]}),_.express&&n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1391",className:"text-[10px] text-primary font-medium flex-shrink-0",children:["+£",Hn.toFixed(2)]})]}),_.express&&n.jsxs("p",{"data-loc":"client/src/pages/Order.tsx:1395",className:"mt-0.5 text-[10px] text-muted-foreground
459/70 flex items-center gap-1",children:[n.jsx(Ft,{"data-loc":"client/src/pages/Order.tsx:1396",className:"w-2.5 h-2.5 flex-shrink-0"})," Delivered digitally by email"]})]}),_.key==="arab_british_cert"&&n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1403",className:"mt-1.5 ml-5 space-y-1",children:[n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1404",className:"flex items-center gap-2",children:[n.jsx("input",{"data-loc":"client/src/pages/Order.tsx:1405",type:"checkbox",id:"checkout-embassy",checked:!!_.embassyLegalisation,onChange:se=>te(se.target.checked),className:"w-3 h-3 accent-primary cursor-pointer"}),n.jsxs("label",{"data-loc":"client/src/pages/Order.tsx:1412",htmlFor:"checkout-embassy",className:"text-[10px] text-muted-foreground cursor-pointer select-none",children:["Embassy Legalisation (Stream II)",_.embassyLegalisation&&n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1414",className:"ml-1 text-amber-600 dark:text-amber-400",children:"- quoted separately"})]})]}),_.embassyLegalisation&&n.jsx("div",{"data-loc":"client/src/pages/Order.tsx:1418",children:n.jsxs("select",{"data-loc":"client/src/pages/Order.tsx:1419",className:"w-full text-[10px] rounded border border-border/60 bg-background px-1.5 py-1 text-foreground focus:outline-none focus:ring-1 focus:ring-primary/50",value:_.destinationCountry||"",onChange:se=>re(se.target.value),children:[n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1424",value:"",children:"Select destinationâ¦"}),["Algeria","Bahrain","Egypt","Iraq","Jordan","Kuwait","Lebanon","Libya","Mauritania","Morocco","Oman","Palestine","Qatar","Saudi Arabia","Somalia","Sudan","Syria","Tunisia","UAE","Yemen"].map(se=>n.jsx("option",{"data-loc":"client/src/pages/Order.tsx:1426",value:se,children:se},se))]})})]})]},_.key)}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1436",className:"border-t border-border/40 pt-3 mt-3 flex items-center justify-between",children:[n.jsx("span",{"data-loc":"client/src/pages/Order.tsx:1437",className:"font-semibold text-foreground text-sm",children:"Total"}),n.jsxs("span",{"data-loc":"client/src/pages/Order.tsx:1438",className:"font-bold text-foreground text-lg",children:["£",d.filter(_=>!ut.find(X=>X.key===_.key)?.enquireOnly).reduce((_,X)=>{const se=ut.find(fe=>fe.key===X.key),ge=se?.price||0,ie=X.express&&se?.expressAvailable?Hn:0;return _+ge+ie},0).toFixed(2)]})]})]})]})})]},"upload")]}),n.jsx(Ue.div,{"data-loc":"client/src/pages/Order.tsx:1455",initial:{opacity:0}
459,animate:{opacity:1},transition:{delay:.3},className:"mt-12 grid grid-cols-1 sm:grid-cols-3 gap-4",children:[{icon:sn,title:"Secure & Confidential",desc:"All documents handled under strict data protection protocols."},{icon:Rs,title:"UK-Based Experts",desc:"Every application reviewed by a qualified trade specialist."},{icon:Ta,title:"Fast Turnaround",desc:"Most certificates issued within 1â3 business days."}].map((_,X)=>n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1466",className:"glass-card rounded-xl p-4 flex items-start gap-3",children:[n.jsx(_.icon,{"data-loc":"client/src/pages/Order.tsx:1467",className:"w-5 h-5 text-primary flex-shrink-0 mt-0.5"}),n.jsxs("div",{"data-loc":"client/src/pages/Order.tsx:1468",children:[n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:1469",className:"text-sm font-semibold text-foreground",children:_.title}),n.jsx("p",{"data-loc":"client/src/pages/Order.tsx:1470",className:"text-xs text-muted-foreground mt-0.5",children:_.desc})]})]},X))})]}),n.jsx(Kr,{"data-loc":"client/src/pages/Order.tsx:1478",children:g&&n.jsx(G9,{"data-loc":"client/src/pages/Order.tsx:1480",doc:g,onClose:he,contactInfo:A,onContactChange:(_,X)=>D(se=>({...se,[_]:X}))})})]})}function K9(){const{user:e}=ea(),t=il();return n.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:12",className:"min-h-screen bg-background flex items-center justify-center px-4 py-16",children:n.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:13",className:"max-w-md w-full text-center",children:[n.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:15",className:"flex justify-center mb-6",children:n.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:16",className:"w-20 h-20 rounded-full bg-green-500/10 flex items-center justify-center",children:n.jsx(ws,{"data-loc":"client/src/pages/OrderSuccess.tsx:17",className:"w-10 h-10 text-green-500"})})}),n.jsx("h1",{"data-loc":"client/src/pages/OrderSuccess.tsx:21",className:"text-2xl font-bold text-foreground mb-2",children:"Order Received!"}),n.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:22",className:"text-muted-foreground mb-6 leading-relaxed",children:"Thank you for your order. We have received your payment and documents. A Docucert team member will be in touch via email to confirm your order before processing begins."}),n.jsx("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:27",className:"bg-secondary/40 rounded-xl p-5 mb-8 text-left border border-border/50",children:n.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:28",className:"flex items-start gap-3",children:[n.jsx(mt,{"data-loc":"client/src/pages/OrderSuccess.tsx:29",className:"w-5 h-5 text-primary mt-0.5 flex-shrink-0"}),n.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:30",children:[n.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:31",className:"font-semibold text-foreground text-sm mb-1",children:"What happens next?"}),n.jsxs("ul",{"data-loc":"client/src/pages/OrderSuccess.tsx:32",className:"text-sm text-muted-foreground space-y-1.5",children:[n.jsx("li",{"data-loc":"client/src/pages/OrderSuccess.tsx:33",children:"⢠A confirmation email has been sent to your inbox"}),n.jsx("li",{"data-loc":"client/src/pages/OrderSuccess.tsx:34",children:"⢠A Docucert team member will contact you to confirm details"}),n.jsx("li",{"data-loc":"client/src/pages/OrderSuccess.tsx:35",children:"⢠Typical turnaround is 3â5 business days"}),n.jsxs("li",{"data-loc":"client/src/pages/OrderSuccess.tsx:36",children:["⢠Questions? Email ",n.jsx("a",{"data-loc":"client/src/pages/OrderSuccess.tsx:36",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})]})}),e?n.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:44",className:"space-y-3",children:[n.jsx(Ne,{"data-loc":"client/src/pages/OrderSuccess.tsx:45",href:"/dashboard",children:n.jsxs(oe,{"data-loc":"client/src/pages/OrderSuccess.tsx:46",className:"w-full gap-2",children:[n.jsx(Bc,{"data-loc":"client/src/pages/OrderSuccess.tsx:47",className:"w-4 h-4"}),"View in Dashboard"]})}),n.jsx(Ne,{"data-loc":"client/src/pages/OrderSuccess.tsx:51",href:"/documents",children:n.jsx(oe,{"data-loc":"client/src/pages/OrderSuccess.tsx:52",variant:"outline",className:"w-full",children:"Order More Documents"})})]}):n.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:57",className:"space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/OrderSuccess.tsx:58",className:"bg-amber-500/10 border border-amber-500/20 rounded-xl p-4 text-left",children:[n.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:59",className:"text-sm font-semibold text-amber-700 dark:text-amber-400 mb-1",children:"Create a free account to track y
459our order"}),n.jsx("p",{"data-loc":"client/src/pages/OrderSuccess.tsx:62",className:"text-xs text-amber-600/80 dark:text-amber-500/80",children:"Sign up to access your order history, track status updates, and manage future orders from your dashboard."})]}),n.jsx("a",{"data-loc":"client/src/pages/OrderSuccess.tsx:66",href:t,className:"block",children:n.jsxs(oe,{"data-loc":"client/src/pages/OrderSuccess.tsx:67",className:"w-full gap-2",children:["Create Account",n.jsx(rn,{"data-loc":"client/src/pages/OrderSuccess.tsx:69",className:"w-4 h-4"})]})}),n.jsx(Ne,{"data-loc":"client/src/pages/OrderSuccess.tsx:72",href:"/documents",children:n.jsx(oe,{"data-loc":"client/src/pages/OrderSuccess.tsx:73",variant:"outline",className:"w-full",children:"Order More Documents"})}),n.jsx(Ne,{"data-loc":"client/src/pages/OrderSuccess.tsx:75",href:"/",children:n.jsx(oe,{"data-loc":"client/src/pages/OrderSuccess.tsx:76",variant:"ghost",className:"w-full text-muted-foreground",children:"Back to Home"})})]})]})})}function Y9(){const[,e]=Ls(),{user:t}=ea(),[r,i]=v.useState(!1),c=()=>{navigator.clipboard.writeText("[email protected]").then(()=>{i(!0),Me.success("Email copied to clipboard"),setTimeout(()=>i(!1),2e3)})};return n.jsx("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:23",className:"min-h-screen bg-gradient-to-br from-slate-50 to-blue-50 flex items-center justify-center px-4 py-20",children:n.jsxs("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:24",className:"max-w-lg w-full",children:[n.jsxs("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:26",className:"bg-white rounded-2xl shadow-lg border border-slate-100 overflow-hidden",children:[n.jsx("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:28",className:"h-1.5 bg-gradient-to-r from-blue-500 to-indigo-600"}),n.jsxs("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:30",className:"p-8 text-center",children:[n.jsx("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:32",className:"w-16 h-16 bg-green-50 rounded-full flex items-center justify-center mx-auto mb-5",children:n.jsx(ws,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:33",className:"w-8 h-8 text-green-500"})}),n.jsx("h1",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:37",className:"text-2xl font-bold text-slate-900 mb-2",children:"Thank you for your enquiry"}),n.jsx("p",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:40",className:"text-slate-500 text-sm mb-6 leading-relaxed",children:"Our team will review your request and get back to you as soon as possible."}),n.jsxs("button",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:45",onClick:c,className:"inline-flex items-center gap-2 bg-amber-50 border border-amber-200 rounded-lg px-4 py-2.5 text-sm text-amber-800 hover:bg-amber-100 transition-colors mx-auto mb-8 group",children:[n.jsx(Ft,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:49",className:"w-4 h-4 text-amber-600"}),n.jsx("span",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:50",children:"Reach us directly:"}),n.jsx("span",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:51",className:"font-semibold text-amber-900",children:"[email protected]"}),n.jsx("span",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:52",className:"text-amber-500 text-xs ml-1 group-hover:text-amber-700 transition-colors",children:r?"Copied!":"Click to copy"})]}),n.jsx("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:58",className:"border-t border-slate-100 mb-6"}),t?n.jsxs("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:62",className:"space-y-3",children:[n.jsx("p",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:63",className:"text-sm text-slate-500 mb-4",children:"Track your order status in your dashboard."}),n.jsxs(oe,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:66",className:"w-full gap-2",onClick:()=>e("/dashboard"),children:[n.jsx(mt,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:70",className:"w-4 h-4"}),"View in Dashboard - Document Services",n.jsx(rn,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:72",className:"w-4 h-4"})]})]}):n.jsxs("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:76",className:"space-y-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:77",className:"bg-blue-50 border border-blue-100 rounded-xl p-4 text-left mb-4",children:[n.jsx("p",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:78",className:"text-sm font-semibold text-blue-900 mb-1",children:"Create a free account to track y
459our order"}),n.jsx("p",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:81",className:"text-xs text-blue-700 leading-relaxed",children:"Sign up to access your Document Services dashboard, view order status updates, and download your completed documents."})]}),n.jsxs(oe,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:85",className:"w-full gap-2",onClick:()=>{window.location.href=il()},children:["Create Account",n.jsx(rn,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:92",className:"w-4 h-4"})]}),n.jsx(oe,{"data-loc":"client/src/pages/DocumentsSuccess.tsx:94",variant:"ghost",className:"w-full text-slate-500 text-sm",onClick:()=>e("/documents"),children:"Back to Document Services"})]})]})]}),n.jsx("p",{"data-loc":"client/src/pages/DocumentsSuccess.tsx:107",className:"text-center text-xs text-slate-400 mt-6",children:"A confirmation email has been sent to your email address."})]})})}const $9={cert_of_origin_uk:"UK Certificate of Origin",arab_british_cert:"Arab-British Certificate",eur1:"EUR-1 Movement Certificate",apostille:"Apostille",commercial_invoice_cert:"Commercial Invoice Certification",elo:"ELO (Logistics Envelope)",ics2_ens:"ICS2 ENS Filing",gmr_pbn:"GMR / PBN Barcodes"},xj={draft:{label:"Draft",badgeClass:"bg-muted/40 text-muted-foreground border-border"},submitted:{label:"Submitted",badgeClass:"bg-blue-500/10 text-blue-600 border-blue-400/30"},reviewing:{label:"Reviewing",badgeClass:"bg-amber-500/10 text-amber-700 border-amber-400/30"},pending_review:{label:"Pending Review",badgeClass:"bg-amber-500/10 text-amber-700 border-amber-400/30"},quote_sent:{label:"Quote Sent",badgeClass:"bg-sky-500/10 text-sky-700 border-sky-400/30"},sent_to_chamber:{label:"Sent to Chamber",badgeClass:"bg-violet-500/10 text-violet-700 border-violet-400/30"},legalized:{label:"Legalised",badgeClass:"bg-emerald-500/10 text-emerald-700 border-emerald-400/30"},dispatched:{label:"Dispatched",badgeClass:"bg-green-500/10 text-green-700 border-green-400/30"},processing:{label:"Processing",badgeClass:"bg-blue-500/10 text-blue-600 border-blue-400/30"},completed:{label:"Completed",badgeClass:"bg-green-500/10 text-green-700 border-green-400/30"},rejected:{label:"Rejected",badgeClass:"bg-red-500/10 text-red-700 border-red-400/30"}};function X9(){const{isAuthenticated:e,loading:t,user:r}=ea(),[i,c]=v.useState("orders"),u=Ae.consular.list.useQuery(void 0,{enabled:e}).data||[],m=v.useMemo(()=>({pending:u.filter(h=>["draft","submitted","reviewing","pending_review","processing","quote_sent","sent_to_chamber"].includes(h.status)).length,completed:u.filter(h=>["completed","dispatched","legalized"].includes(h.status)).length}),[u]),f=[{key:"orders",label:"My Orders",icon:mt},{key:"notifications",label:"Notifications",icon:wN},{key:"account",label:"Account",icon:Jr}];return t?n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:75",className:"min-h-screen bg-background pt-20 flex items-center justify-center",children:n.jsx(ht,{"data-loc":"client/src/pages/Dashboard.tsx:76",className:"w-8 h-8 text-primary animate-spin"})}):e?n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:110",className:"min-h-screen bg-background pt-20 pb-16",children:n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:111",className:"max-w-7xl mx-auto flex min-h-[calc(100vh-4rem)]",children:[n.jsxs("aside",{"data-loc":"client/src/pages/Dashboard.tsx:112",className:"hidden lg:flex flex-col w-56 shrink-0 border-r border-border/60 pt-8 pb-6 px-3 sticky top-16 h-[calc(100vh-4rem)] overflow-y-auto",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:113",className:"px-3 mb-6",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:114",className:"text-xs text-muted-foreground font-medium uppercase tracking-wide mb-0.5",children:"Signed in as"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:115",className:"text-sm font-semibold text-foreground truncate",children:r?.name||r?.email||"You"})]}),n.jsx("nav",{"data-loc":"client/src/pages/Dashboard.tsx:118",className:"flex flex-col gap-0.5 flex-1",children:f.map(h=>n.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:120",onClick:()=>c(h.key),className:`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors text-left w-full ${i===h.key?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground hover:bg-muted/40"}`,children:[n.jsx(h.icon,{"data-loc":"client/src/pages/Dashboard.tsx:129",className:"w-4 h-4 shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:130",className:"truncate",children:h.label})]},h.key))}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:135",className:"mt-6 px-1",children:n.jsx(Ne,{"data-loc":"client/src/pages/Dashboard.tsx:136",href:"/documents",children:n.jsxs(oe,{"data-loc":"client/src/pages/Dashboard.tsx:137",size:"sm",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground gap-2 text-xs justify-start",children:[n.jsx(Kn,{"data-loc":"client/src/pages/Dashboard.tsx:138",className:"w-3.5 h-3.5"})," New Application"]})})})]}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:144",className:"lg:hidden fixed bottom-0 left-0 right-0 z-40 bg-card/95 backdrop-blur border-t border-border/60 overflow-x-auto",style:{WebkitOverflowScrolling:"touch"},children:n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:145",className:"flex px-2 py-1 gap-0.5",style:{width:"max-content",minWidth:"100%"},children:f.map(h=>n.jsxs("button",{"data-loc":"client/src/pages/Dashboard.tsx:147",onClick:()=>c(h.key),className:`flex flex-col items-center gap-0.5 px-3 py-1.5 rounded-lg text-xs font-medium transition-colors min-w-[64px] ${i===h.key?"text-primary":"text-muted-foreground"}`,children:[n.jsx(h.icon,{"data-loc":"client/src/pages/Dashboard.tsx:154",className:"w-4 h-4"}),n.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:155",className:"truncate max-w-[60px] text-center leading-tight",children:h.label})]},h.key))})}),n.jsxs("main",{"data-loc":"client/src/pages/Dashboard.tsx:161",className:"flex-1 min-w-0 px-6 pt-8 pb-24 lg:pb-8",children:[n.jsx(Ue.div,{"data-loc":"client/src/pages/Dashboard.tsx:162",initial:{opacity:0,y:10}
459,animate:{opacity:1,y:0},className:"mb-6",children:n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:163",className:"flex items-center justify-between gap-4 flex-wrap",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:164",children:[n.jsx("h1",{"data-loc":"client/src/pages/Dashboard.tsx:165",className:"font-display text-2xl font-bold text-foreground",children:f.find(h=>h.key===i)?.label||"Dashboard"}),n.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:168",className:"text-sm text-muted-foreground mt-0.5",children:[i==="orders"&&`${m.pending} active order${m.pending===1?"":"s"} · ${m.completed} completed`,i==="notifications"&&"How Docucert keeps you updated about your order",i==="account"&&"Manage your account details and team"]})]}),n.jsx(Ne,{"data-loc":"client/src/pages/Dashboard.tsx:175",href:"/documents",children:n.jsxs(oe,{"data-loc":"client/src/pages/Dashboard.tsx:176",size:"sm",className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-1.5 text-xs",children:[n.jsx(Kn,{"data-loc":"client/src/pages/Dashboard.tsx:177",className:"w-3.5 h-3.5"})," New Application"]})})]})}),i==="orders"&&n.jsx(Ue.div,{"data-loc":"client/src/pages/Dashboard.tsx:184",initial:{opacity:0}
459,animate:{opacity:1},children:n.jsx(W9,{"data-loc":"client/src/pages/Dashboard.tsx:185"})}),i==="notifications"&&n.jsx(Ue.div,{"data-loc":"client/src/pages/Dashboard.tsx:190",initial:{opacity:0},animate:{opacity:1},children:n.jsx(Z9,{"data-loc":"client/src/pages/Dashboard.tsx:191",userEmail:r?.email||"[email protected]"})}),i==="account"&&n.jsx(Ue.div,{"data-loc":"client/src/pages/Dashboard.tsx:196",initial:{opacity:0},animate:{opacity:1},className:"space-y-6",children:n.jsx(J9,{"data-loc":"client/src/pages/Dashboard.tsx:197"})})]})]})}):n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:83",className:"min-h-screen bg-background pt-20 flex items-center justify-center px-4",children:n.jsxs(Ue.div,{"data-loc":"client/src/pages/Dashboard.tsx:84",initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center max-w-md",children:[n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:89",className:"w-16 h-16 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-4",children:n.jsx(Bc,{"data-loc":"client/src/pages/Dashboard.tsx:90",className:"w-8 h-8 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:92",className:"font-display text-2xl font-bold text-foreground mb-2",children:"Sign in to your dashboard"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:93",className:"text-muted-foreground mb-6",children:"View your document orders, check status updates, and manage your account details."}),n.jsxs(oe,{"data-loc":"client/src/pages/Dashboard.tsx:96",onClick:()=>{window.location.href=il()},className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",children:["Sign In to Continue ",n.jsx(rn,{"data-loc":"client/src/pages/Dashboard.tsx:102",className:"w-4 h-4"})]})]})})}function W9(){const e=Ae.consular.list.useQuery(),t=e.data||[];if(e.isLoading)return n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:212",className:"flex items-center justify-center py-16",children:n.jsx(ht,{"data-loc":"client/src/pages/Dashboard.tsx:213",className:"w-8 h-8 text-primary animate-spin"})});if(t.length===0)return n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:220",className:"glass-card rounded-xl p-12 text-center",children:[n.jsx(mt,{"data-loc":"client/src/pages/Dashboard.tsx:221",className:"w-12 h-12 text-muted-foreground/40 mx-auto mb-4"}),n.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:222",className:"font-display font-semibold text-foreground mb-2",children:"No document orders yet"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:223",className:"text-sm text-muted-foreground mb-4",children:"Start a new application for a Certificate of Origin, Apostille, EUR-1, or another document service."}),n.jsx(Ne,{"data-loc":"client/src/pages/Dashboard.tsx:226",href:"/documents",children:n.jsxs(oe,{"data-loc":"client/src/pages/Dashboard.tsx:227",className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2",children:[n.jsx(Kn,{"data-loc":"client/src/pages/Dashboard.tsx:228",className:"w-4 h-4"})," New Application"]})})]});const r={};for(const c of t){const d=c.orderGroupRef||`solo-${c.id}`;r[d]||(r[d]=[]),r[d].push(c)}const i=Object.entries(r).sort((c,d)=>{const u=new Date(c[1][0].createdAt).getTime();return new Date(d[1][0].createdAt).getTime()-u});return n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:249",className:"space-y-4",children:[i.map(([c,d],u)=>{const m=d[0],f=m.orderGroupRef||`DOC-${String(m.id).padStart(4,"0")}`,h=d.reduce((b,w)=>b+Number(w.priceGbp||0),0),y=d.flatMap(b=>b.uploadedFiles||[]),g=d.every(b=>b.paymentStatus==="paid");return n.jsxs(Ue.div,{"data-loc":"client/src/pages/Dashboard.tsx:258",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:u*.05},className:"glass-card rounded-xl overflow-hidden border border-border/50 hover:border-primary/30 transition-colors",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:265",className:"p-4 border-b border-border/30 bg-secondary/20 flex items-center justify-between gap-3 flex-wrap",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:266",className:"flex items-center gap-3 flex-wrap",children:[n.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:267",className:"font-mono text-xs font-bold text-primary bg-primary/10 px-2 py-0.5 rounded",children:f}),g?n.jsx(Gt,{"data-loc":"client/src/pages/Dashboard.tsx:269",variant:"outline",className:"text-xs border-green-400/40 text-green-700",children:"Paid"}):n.jsx(Gt,{"data-loc":"client/src/pages/Dashboard.tsx:271",variant:"outline",className:"text-xs border-amber-400/40 text-amber-700",children:"Awaiting Payment"}),m.customerRef&&n.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:274",className:"text-xs text-muted-foreground",children:["Your ref: ",n.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:275",className:"font-medium text-foreground",children:m.customerRef})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:280",className:"flex items-center gap-3 flex-wrap",children:[h>0&&n.jsxs("span",{"data-loc":"client/src/pages/Dashboard.tsx:281",className:"text-sm font-bold text-foreground",children:["£",h.toFixed(2)]}),n.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:282",className:"text-xs text-muted-foreground",children:new Date(m.createdAt).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"numeric"})})]})]}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:292",className:"divide-y divide-border/30",children:d.map(b=>{const w=xj[b.status]||xj.submitted,C=`DOC-${String(b.id).padStart(4,"0")}`;return n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:298",className:"p-4 flex items-start justify-between gap-3",children:n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:299",className:"flex-1 min-w-0",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:300",className:"flex items-center gap-2 flex-wrap",children:[n.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:301",className:"font-mono text-xs text-muted-foreground",children:C}),n.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:302",className:"text-sm font-medium text-foreground",children:$9[b.docType]||b.docType}),n.jsx(Gt,{"data-loc":"client/src/pages/Dashboard.tsx:305",variant:"outline",className:`text-xs border ${w.badgeClass}`,children:w.label})]}),b.priceGbp&&n.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:310",className:"text-xs text-muted-foreground mt-0.5",children:["£",Number(b.priceGbp).toFixed(2)]}),(b.customerName||b.customerEmail)&&n.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:313",className:"text-xs text-muted-foreground mt-1",children:[b.customerName||"",b.customerName&&b.customerEmail?" · ":"",b.customerEmail||""]})]})},b.id)})}),m.specialInstructions&&n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:324",className:"px-4 pb-3 pt-2 bg-amber-50/60 border-t border-amber-100/60",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:325",className:"text-xs font-medium text-amber-900 mb
459-0.5",children:"Special Instructions"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:326",className:"text-xs text-amber-800 leading-relaxed",children:m.specialInstructions})]}),y.length>0&&n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:331",className:"px-4 pb-4 pt-2 border-t border-border/30",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:332",className:"text-xs font-medium text-muted-foreground mb-2",children:"Uploaded Documents"}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:333",className:"flex flex-wrap gap-2",children:y.map((b,w)=>n.jsxs("a",{"data-loc":"client/src/pages/Dashboard.tsx:335",href:b.fileUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline flex items-center gap-1 bg-primary/5 border border-primary/20 rounded px-2 py-1",children:[n.jsx(Lh,{"data-loc":"client/src/pages/Dashboard.tsx:342",className:"w-3 h-3"})," ",b.fileName||`File ${w+1}`]},w))})]})]},c)}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:352",className:"pt-2",children:n.jsx(Ne,{"data-loc":"client/src/pages/Dashboard.tsx:353",href:"/documents",children:n.jsxs(oe,{"data-loc":"client/src/pages/Dashboard.tsx:354",variant:"outline",size:"sm",className:"gap-2 text-xs",children:[n.jsx(Kn,{"data-loc":"client/src/pages/Dashboard.tsx:355",className:"w-3.5 h-3.5"})," New Application"]})})})]})}function Z9({userEmail:e}){return n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:365",className:"grid grid-cols-1 xl:grid-cols-[1.2fr_0.8fr] gap-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:366",className:"glass-card rounded-xl p-6 space-y-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:367",children:[n.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:368",className:"font-display text-lg font-semibold text-foreground mb-1",children:"Order updates"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:369",className:"text-sm text-muted-foreground",children:"Docucert sends progress updates for your applications by email. When an order moves into review, requires action, or is completed and dispatched, we will contact you using the details on your order."})]}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:375",className:"grid grid-cols-1 md:grid-cols-3 gap-3",children:[{title:"Submission received",body:"Confirmation is sent once your application and files have been received."},{title:"Review or quotation",body:"We email you if we need clarification or when a quotation is issued."},{title:"Completion and dispatch",body:"You receive a final update when the order is completed or ready for onward delivery."}].map(t=>n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:390",className:"rounded-lg border border-border/50 bg-background/70 p-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:391",className:"flex items-center gap-2 mb-2",children:[n.jsx(wN,{"data-loc":"client/src/pages/Dashboard.tsx:392",className:"w-4 h-4 text-primary"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:393",className:"text-sm font-semibold text-foreground",children:t.title})]}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:395",className:"text-xs text-muted-foreground leading-relaxed",children:t.body})]},t.title))}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:400",className:"rounded-lg border border-border/50 bg-secondary/20 p-4",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:401",className:"text-sm font-medium text-foreground mb-1",children:"Need to change where updates go?"}),n.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:402",className:"text-sm text-muted-foreground",children:["Update your account details in the profile tab, or email ",n.jsx("a",{"data-loc":"client/src/pages/Dashboard.tsx:403",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})," with your order reference and the correct contact details."]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:408",className:"glass-card rounded-xl p-6 space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:409",className:"flex items-center gap-2",children:[n.jsx(Ft,{"data-loc":"client/src/pages/Dashboard.tsx:410",className:"w-4 h-4 text-primary"}),n.jsx("h3",{"data-loc":"client/src/pages/Dashboard.tsx:411",className:"text-base font-semibold text-foreground",children:"Current contact email"})]}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:413",className:"text-sm text-muted-foreground",children:"We will normally use the email attached to your account and the email entered on each application."}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:416",className:"rounded-lg border border-border/50 bg-background/70 px-4 py-3",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:417",className:"text-xs text-muted-foreground mb-1",children:"Signed-in email"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:418",className:"text-sm font-medium text-foreground break-all",children:e})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:420",className:"rounded-lg border border-border/50 bg-background/70 px-4 py-3",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:421",className:"text-xs text-muted-foreground mb-1",children:"Support"}),n.jsx("a",{"data-loc":"client/src/pages/Dashboard.tsx:422",href:"mailto:[email protected]",className:"text-sm font-medium text-primary hover:underline",children:"[email protected]"})]})]})]})}function J9(){const{user:e,refresh:t}=ea(),r=Ae.auth.updateMe.useMutation({onSuccess:()=>{Me.success("Profile updated."),t()},onError:S=>Me.error(S.message)}),i=Ae.auth.changeEmail.useMutation({onSuccess:()=>{Me.success("Email updated. Please verify your new address."),t(),f({newEmail:"",currentPassword:""})},onError:S=>Me.error(S.message)}),c=Ae.auth.changePassword.useMutation({onSuccess:()=>{Me.success("Password updated."),y({currentPassword:"",newPassword:"",confirmPassword:""})},onError:S=>Me.error(S.message)}),[d,u]=v.useState({phone:e?.phone||"",companyName:e?.companyName||""}),[m,f]=v.useState({newEmail:"",currentPassword:""}),[h,y]=v.useState({currentPassword:"",newPassword:"",confirmPassword:""}),[g,b]=v.useState("");v.useEffect(()=>{e&&u({phone:e?.phone||"",companyName:e?.companyName||""})},[e?.id,e]);const w=S=>{S.preventDefault(),r.mutate({phone:d.phone||void 0,companyName:d.companyName||void 0})},C=S=>{S.preventDefault(),i.mutate({newEmail:m.newEmail,currentPassword:m.currentPassword})},N=S=>{if(S.preventDefault(),b(""),h.newPassword!==h.confirmPassword){b("New passwords do not match.");return}c.mutate({currentPassword:h.currentPassword,newPassword:h.newPassword})};return n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:472",className:"space-y-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:474",className:"grid grid-cols-1 xl:grid-cols-2 gap-6 items-stretch",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:475",className:"glass-card rounded-xl p-5 space-y-4 flex flex-col justify-between",children:[n.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:476",className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[n.jsx(Jr,{"data-loc":"client/src/pages/Dashboard.tsx:477",className:"w-4 h-4 text-primary"})," Identity"]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:479",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:480",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:481",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Full Name"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:482",value:e?.name||"",disabled:!0,className:"bg-secondary/20 border-border/40 text-sm h-9 text-muted-foreground"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:484",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:485",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Email Address"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:486",value:e?.email||"",disabled:!0,className:"bg-secondary/20 border-border/40 text-sm h-9 text-muted-foreground"})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:490",className:"glass-card rounded-xl p-5 space-y-4",children:[n.jsxs("form",{"data-loc":"client/src/pages/Dashboard.tsx:491",onSubmit:w,className:"space-y-4",children:[n.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:492",className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[n.jsx(Ix,{"data-loc":"client/src/pages/Dashboard.tsx:493",className:"w-4 h-4 text-primary"})," Business Details"]}
459),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:495",className:"text-sm text-muted-foreground",children:"These details help us pre-fill your information on new document applications."}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:496",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:497",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:498",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Phone Number"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:499",type:"tel",value:d.phone,onChange:S=>u(A=>({...A,phone:S.target.value})),placeholder:"e.g. +44 7700 900000",className:"bg-secondary/40 border-border/60 text-sm h-9"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:501",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:502",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Company Name"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:503",value:d.companyName,onChange:S=>u(A=>({...A,companyName:S.target.value})),placeholder:"e.g. Acme Exports Ltd",className:"bg-secondary/40 border-border/60 text-sm h-9"})]})]}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:506",className:"flex justify-end pt-1",children:n.jsx(oe,{"data-loc":"client/src/pages/Dashboard.tsx:507",type:"submit",disabled:r.isPending,className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:r.isPending?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/Dashboard.tsx:508",className:"w-4 h-4 mr-2 animate-spin"})," Savingâ¦"]}):n.jsxs(n.Fragment,{children:[n.jsx(nR,{"data-loc":"client/src/pages/Dashboard.tsx:508",className:"w-4 h-4 mr-2"})," Save Changes"]})})})]}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:512",className:"border-t border-border/40 pt-4",children:n.jsx(eL,{"data-loc":"client/src/pages/Dashboard.tsx:513"})})]})]}),n.jsxs("form",{"data-loc":"client/src/pages/Dashboard.tsx:519",onSubmit:C,className:"glass-card rounded-xl p-5 space-y-4",children:[n.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:520",className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[n.jsx(Ft,{"data-loc":"client/src/pages/Dashboard.tsx:521",className:"w-4 h-4 text-primary"})," Change Email Address"]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:523",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:524",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:525",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"New Email Address"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:526",type:"email",value:m.newEmail,onChange:S=>f(A=>({...A,newEmail:S.target.value})),placeholder:"[email protected]",className:"bg-secondary/40 border-border/60 text-sm h-9",required:!0})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:528",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:529",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Current Password"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:530",type:"password",value:m.currentPassword,onChange:S=>f(A=>({...A,currentPassword:S.target.value})),placeholder:"Confirm with your password",className:"bg-secondary/40 border-border/60 text-sm h-9",required:!0})]})]}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:533",className:"flex justify-end pt-1",children:n.jsx(oe,{"data-loc":"client/src/pages/Dashboard.tsx:534",type:"submit",disabled:i.isPending,className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:i.isPending?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/Dashboard.tsx:535",className:"w-4 h-4 mr-2 animate-spin"})," Updatingâ¦"]}):"Update Email"})})]}),n.jsxs("form",{"data-loc":"client/src/pages/Dashboard.tsx:541",onSubmit:N,className:"glass-card rounded-xl p-5 space-y-4",children:[n.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:542",className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[n.jsx("svg",{"data-loc":"client/src/pages/Dashboard.tsx:543",className:"w-4 h-4 text-primary",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{"data-loc":"client/src/pages/Dashboard.tsx:543",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})}),"Change Password"]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:546",className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:547",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:548",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Current Password"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:549",type:"password",value:h.currentPassword,onChange:S=>y(A=>({...A,currentPassword:S.target.value})),placeholder:"Current password",className:"bg-secondary/40 border-border/60 text-sm h-9",required:!0})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:551",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:552",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"New Password"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:553",type:"password",value:h.newPassword,onChange:S=>y(A=>({...A,newPassword:S.target.value})),placeholder:"Min. 8 characters",className:"bg-secondary/40 border-border/60 text-sm h-9",required:!0,minLength:8})]}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:555",children:[n.jsx(qe,{"data-loc":"client/src/pages/Dashboard.tsx:556",className:"text-xs font-medium text-muted-foreground mb-1.5 block",children:"Confirm New Password"}),n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:557",type:"password",value:h.confirmPassword,onChange:S=>y(A=>({...A,confirmPassword:S.target.value})),placeholder:"Repeat new password",className:"bg-secondary/40 border-border/60 text-sm h-9",required:!0,minLength:8})]})]}),g&&n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:560",className:"text-sm text-destructive",children:g}),n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:561",className:"flex justify-end pt-1",children:n.jsx(oe,{"data-loc":"client/src/pages/Dashboard.tsx:562",type:"submit",disabled:c.isPending,className:"bg-primary hover:bg-primary/90 text-primary-foreground font-semibold",children:c.isPending?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/Dashboard.tsx:563",className:"w-4 h-4 mr-2 animate-spin"})," Updatingâ¦"]}):"Update Password"})})]})]})}function eL(){const{user:e}=ea(),t=Ae.useUtils(),r=Ae.company.getMembers.useQuery(),i=Ae.company.getInvites.useQuery(),c=Ae.company.inviteMember.useMutation({onSuccess:()=>{Me.success("Invitation sent."),f(""),t.company.getInvites.invalidate(),t.company.getMembers.invalidate()},onError:b=>Me.error(b.message)}),d=Ae.company.cancelInvite.useMutation({onSuccess:()=>{Me.success("Invitation cancelled."),t.company.getInvites.invalidate()},onError:b=>Me.error(b.message)}),u=Ae.company.removeMember.useMutation({onSuccess:()=>{Me.success("Member removed."),t.company.getMembers.invalidate()},onError:b=>Me.error(b.message)}),[m,f]=v.useState(""),h=r.data||[],y=i.data||[],g=!!e?.companyName?.trim();return n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:598",className:"space-y-5",children:[n.jsxs("h2",{"data-loc":"client/src/pages/Dashboard.tsx:599",className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[n.jsx(Rs,{"data-loc":"client/src/pages/Dashboard.tsx:600",className:"w-4 h-4 text-primary"})," Team Members"]}),h.length>1&&n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:605",className:"space-y-2",children:[n.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:606",className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:["Members (",h.length,")"]}),h.map(b=>n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:608",className:"flex items-center justify-between gap-2 py-1.5 border-b border-border/40 last:border-0",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:609",className:"flex items-center gap-2 min-w-0",children:[n.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:610",className:"w-7 h-7 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:n.jsx(Jr,{"data-loc":"client/src/pages/Dashboard.tsx:611",className:"w-3.5 h-3.5 text-primary"})}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:613",className:"min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:614",className:"text-sm font-medium text-foreground truncate",children:b.name||b.email}),b.name&&n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:615",className:"text-xs text-muted-foreground truncate",children:b.email})]})]}
459),b.userId!==e?.id&&n.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:619",onClick:()=>u.mutate({userId:b.userId}),disabled:u.isPending,className:"text-muted-foreground hover:text-destructive transition-colors shrink-0",title:"Remove member",children:n.jsx(Gr,{"data-loc":"client/src/pages/Dashboard.tsx:625",className:"w-3.5 h-3.5"})})]},b.memberId))]}),y.length>0&&n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:635",className:"space-y-2",children:[n.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:636",className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:["Pending Invites (",y.length,")"]}),y.map(b=>n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:638",className:"flex items-center justify-between gap-2 py-1.5 border-b border-border/40 last:border-0",children:[n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:639",className:"flex items-center gap-2 min-w-0",children:[n.jsx(Ft,{"data-loc":"client/src/pages/Dashboard.tsx:640",className:"w-3.5 h-3.5 text-muted-foreground shrink-0"}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:641",className:"text-sm text-muted-foreground truncate",children:b.email})]}),n.jsx("button",{"data-loc":"client/src/pages/Dashboard.tsx:643",onClick:()=>d.mutate({inviteId:b.id}),disabled:d.isPending,className:"text-muted-foreground hover:text-destructive transition-colors shrink-0",title:"Cancel invite",children:n.jsx(Gr,{"data-loc":"client/src/pages/Dashboard.tsx:649",className:"w-3.5 h-3.5"})})]},b.id))]}),g?n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:665",className:"space-y-2",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:666",className:"text-xs font-medium text-muted-foreground uppercase tracking-wide",children:"Invite a Colleague"}),n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:667",className:"flex gap-2",children:[n.jsx(Fe,{"data-loc":"client/src/pages/Dashboard.tsx:668",type:"email",value:m,onChange:b=>f(b.target.value),onKeyDown:b=>b.key==="Enter"&&m.trim()&&c.mutate({email:m.trim(),origin:window.location.origin}),placeholder:"[email protected]",className:"bg-secondary/40 border-border/60 text-sm h-9"}),n.jsx(oe,{"data-loc":"client/src/pages/Dashboard.tsx:676",onClick:()=>m.trim()&&c.mutate({email:m.trim(),origin:window.location.origin}),disabled:c.isPending||!m.trim(),className:"bg-primary hover:bg-primary/90 text-primary-foreground shrink-0 gap-1.5",children:c.isPending?n.jsx(ht,{"data-loc":"client/src/pages/Dashboard.tsx:681",className:"w-4 h-4 animate-spin"}):n.jsxs(n.Fragment,{children:[n.jsx(CN,{"data-loc":"client/src/pages/Dashboard.tsx:681",className:"w-4 h-4"})," Invite"]})})]}),n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:684",className:"text-xs text-muted-foreground",children:"They'll receive an email invitation to create their own login and join your company account. The link is valid for 7 days."})]}):n.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:658",className:"rounded-lg bg-amber-50 dark:bg-amber-950/30 border border-amber-200 dark:border-amber-800 p-3 space-y-1",children:[n.jsx("p",{"data-loc":"client/src/pages/Dashboard.tsx:659",className:"text-sm font-medium text-amber-800 dark:text-amber-300",children:"Company name required"}),n.jsxs("p",{"data-loc":"client/src/pages/Dashboard.tsx:660",className:"text-xs text-amber-700 dark:text-amber-400",children:["Please add your company name in ",n.jsx("strong",{"data-loc":"client/src/pages/Dashboard.tsx:661",children:"Business Details"})," above before inviting team members."]})]})]})}function tL(){const e=kN(),t=new URLSearchParams(e),r=t.get("type")||"shipment",i=t.get("session_id"),{isAuthenticated:c}=ea(),[d,u]=v.useState(!0),m=Ae.payments.getSession.useQuery({sessionId:i},{enabled:!!i}),f=m.data?.metadata||{},h=f.customer_email||"",y=!c,g=f.carrier||"",b=f.service||"",w=f.origin_country||"",C=f.dest_country||"";f.sender_name||f.customer_name;const N=f.sender_email||f.customer_email||"",S=f.sender_city||"",A=f.receiver_name||"",D=f.receiver_city||"",M=f.weight_kg||"",V=f.goods_description||"",O=f.parcel_count||"1",B=f.dims_summary||"",E=m.data?.amount?`£${(m.data.amount/100).toFixed(2)}`:f.display_price?`£${parseFloat(f.display_price).toFixed(2)}`:null;return v.useEffect(()=>{window.scrollTo(0,0)},[]),n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:59",className:"min-h-screen bg-background pt-20 pb-16 px-4 flex items-center justify-center",children:n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:60",className:"max-w-xl w-full",children:n.jsxs(Ue.div,{"data-loc":"client/src/pages/PaymentSuccess.tsx:61",initial:{opacity:0,scale:.95,y:20}
459,animate:{opacity:1,scale:1,y:0},transition:{duration:.4,type:"spring"},children:[n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:67",className:"text-center mb-6",children:[n.jsx(Ue.div,{"data-loc":"client/src/pages/PaymentSuccess.tsx:68",initial:{scale:0},animate:{scale:1},transition:{delay:.15,type:"spring",stiffness:200},className:"w-20 h-20 rounded-full bg-green-500/20 flex items-center justify-center mx-auto mb-4",children:n.jsx(ws,{"data-loc":"client/src/pages/PaymentSuccess.tsx:74",className:"w-10 h-10 text-green-400"})}),n.jsx(Gt,{"data-loc":"client/src/pages/PaymentSuccess.tsx:76",className:"mb-3 bg-green-500/10 text-green-400 border-green-500/30 border",children:"Payment Confirmed"}),n.jsx("h1",{"data-loc":"client/src/pages/PaymentSuccess.tsx:79",className:"font-display text-3xl font-bold text-foreground mb-2",children:r==="consular"?"Documents Received.":"Shipment Booked!"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:82",className:"text-muted-foreground text-sm",children:r==="consular"?"Our trade experts are reviewing your application and will be in touch shortly to finalise the submission.":`Confirmation & label sent to ${N||"your email address"}.`})]}),r==="shipment"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/PaymentSuccess.tsx:91",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.2},className:"glass-card rounded-xl p-5 mb-4 text-left",children:[n.jsxs("h2",{"data-loc":"client/src/pages/PaymentSuccess.tsx:97",className:"font-semibold text-foreground text-sm mb-4 flex items-center gap-2",children:[n.jsx(la,{"data-loc":"client/src/pages/PaymentSuccess.tsx:98",className:"w-4 h-4 text-primary"}),"Order Summary"]}),m.isLoading?n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:103",className:"space-y-3",children:[1,2,3,4].map(k=>n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:105",className:"h-4 bg-muted/40 rounded animate-pulse"},k))}):n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:109",className:"space-y-0",children:[(w||C)&&n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:112",className:"flex items-start gap-3 py-2.5 border-b border-border/30",children:[n.jsx(JM,{"data-loc":"client/src/pages/PaymentSuccess.tsx:113",className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:114",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:115",className:"text-[11px] text-muted-foreground uppercase tracking-wide mb-0.5",children:"Route"}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:116",className:"text-sm font-medium text-foreground",children:[S?`${S}, `:"",w,n.jsx("span",{"data-loc":"client/src/pages/PaymentSuccess.tsx:118",className:"text-muted-foreground mx-1.5",children:"â"}),D?`${D}, `:"",C]})]})]}),g&&n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:127",className:"flex items-start gap-3 py-2.5 border-b border-border/30",children:[n.jsx(al,{"data-loc":"client/src/pages/PaymentSuccess.tsx:128",className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:129",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:130",className:"text-[11px] text-muted-foreground uppercase tracking-wide mb-0.5",children:"Carrier & Service"}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:131",className:"text-sm font-medium text-foreground",children:[g," - ",b]})]})]}),M&&n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:138",className:"flex items-start gap-3 py-2.5 border-b border-border/30",children:[n.jsx(la,{"data-loc":"client/src/pages/PaymentSuccess.tsx:139",className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:140",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:141",className:"text-[11px] text-muted-foreground uppercase tracking-wide mb-0.5",children:O==="1"?"Parcel":`${O} Parcels`}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:144",className:"text-sm font-medium text-foreground",children:[M," kg",B?` · ${B}`:""]})]})]}),V&&n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:153",className:"flex items-start gap-3 py-2.5 border-b border-border/30",children:[n.jsx(mt,{"data-loc":"client/src/pages/PaymentSuccess.tsx:154",className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:155",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:156",className:"text-[11px] text-muted-foreground uppercase tracking-wide mb-0.5",children:"Contents"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:157",className:"text-sm font-medium text-foreground",children:V})]})]}),A&&n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:164",className:"flex items-start gap-3 py-2.5 border-b border-border/30",children:[n.jsx(co,{"data-loc":"client/src/pages/PaymentSuccess.tsx:165",className:"w-4 h-4 text-muted-foreground flex-shrink-0 mt-0.5"}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:166",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:167",className:"text-[11px] text-muted-foreground uppercase tracking-wide mb-0.5",children:"Recipient"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:168",className:"text-sm font-medium text-foreground",children:A})]})]}),E&&n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:175",className:"flex items-center gap-3 pt-3 mt-1",children:[n.jsx(SN,{"data-loc":"client/src/pages/PaymentSuccess.tsx:176",className:"w-4 h-4 text-green-400 flex-shrink-0"}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:177",className:"flex-1",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:178",className:"text-[11px] text-muted-foreground uppercase tracking-wide mb-0.5",children:"Total Paid"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:179",className:"text-xl font-bold text-green-400",children:E})]}),n.jsx(Gt,{"data-loc":"client/src/pages/PaymentSuccess.tsx:181",className:"bg-green-500/10 text-green-400 border-green-500/30 border",children:"Confirmed"})]})]})]}),n.jsxs(Ue.div,{"data-loc":"client/src/pages/PaymentSuccess.tsx:192",initial:{opacity:0,y:10}
459,animate:{opacity:1,y:0},transition:{delay:.3},className:"glass-card rounded-xl p-5 mb-4 text-left",children:[n.jsxs("h3",{"data-loc":"client/src/pages/PaymentSuccess.tsx:198",className:"font-semibold text-foreground text-sm mb-3 flex items-center gap-2",children:[n.jsx(Ta,{"data-loc":"client/src/pages/PaymentSuccess.tsx:199",className:"w-4 h-4 text-primary"}),"What happens next?"]}),n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:202",className:"space-y-3",children:(r==="consular"?[{step:"1",text:"Our team reviews your application and extracted data"},{step:"2",text:"Documents are prepared and certified by the relevant authority"},{step:"3",text:"Completed documents are sent to you within 2â3 business days"}]:[{step:"1",text:"Your shipping label is being generated - check your email shortly"},{step:"2",text:"Drop off your parcel at the nearest carrier location"},{step:"3",text:"Track your shipment live at any time - no login required"}]).map(k=>n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:212",className:"flex items-start gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:213",className:"w-6 h-6 rounded-full bg-primary/20 flex items-center justify-center text-xs font-bold text-primary flex-shrink-0 mt-0.5",children:k.step}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:216",className:"text-sm text-muted-foreground",children:k.text})]},k.step))})]}),n.jsx(Kr,{"data-loc":"client/src/pages/PaymentSuccess.tsx:223",children:y&&d&&r==="shipment"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/PaymentSuccess.tsx:225",initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{delay:.4},className:"glass-card rounded-xl p-5 mb-4 text-left border border-primary/20 relative",children:[n.jsx("button",{"data-loc":"client/src/pages/PaymentSuccess.tsx:232",type:"button",onClick:()=>u(!1),className:"absolute top-3 right-3 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Dismiss",children:n.jsx(_s,{"data-loc":"client/src/pages/PaymentSuccess.tsx:238",className:"w-4 h-4"})}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:241",className:"flex items-center gap-2 mb-3",children:[n.jsx(CN,{"data-loc":"client/src/pages/PaymentSuccess.tsx:242",className:"w-4 h-4 text-primary"}),n.jsx("h3",{"data-loc":"client/src/pages/PaymentSuccess.tsx:243",className:"font-semibold text-foreground text-sm",children:"Save your details for next time"})]}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:245",className:"text-xs text-muted-foreground mb-4 leading-relaxed",children:["Create a free account to access your shipment history, saved addresses, and faster checkout.",h&&` We'll link this booking to ${h}.`]}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:250",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:252",className:"rounded-lg border border-border/60 p-3 hover:border-primary/40 hover:bg-primary/5 transition-all",children:[n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:253",className:"flex items-center gap-2 mb-2",children:[n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:254",className:"w-7 h-7 rounded-md bg-primary/10 flex items-center justify-center",children:n.jsx(iR,{"data-loc":"client/src/pages/PaymentSuccess.tsx:255",className:"w-3.5 h-3.5 text-primary"})}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:257",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:258",className:"text-sm font-semibold text-foreground",children:"Standard"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:259",className:"text-[10px] text-muted-foreground",children:"Free forever"})]})]}),n.jsx("ul",{"data-loc":"client/src/pages/PaymentSuccess.tsx:262",className:"space-y-1 mb-3",children:["Shipment history","Saved addresses","Faster checkout"].map(k=>n.jsxs("li",{"data-loc":"client/src/pages/PaymentSuccess.tsx:264",className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[n.jsx(co,{"data-loc":"client/src/pages/PaymentSuccess.tsx:265",className:"w-3 h-3 text-primary/60 flex-shrink-0"}),k]},k))}),n.jsx("a",{"data-loc":"client/src/pages/PaymentSuccess.tsx:270",href:il(),className:"block w-full text-center py-1.5 px-3 rounded-md bg-primary text-primary-foreground text-xs font-medium hover:bg-primary/90 transition-colors",children:"Create Free Account"})]}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:279",className:"rounded-lg border border-amber-500/40 bg-amber-500/5 p-3 hover:border-amber-500/60 transition-all",children:[n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:280",className:"flex items-center gap-2 mb-2",children:[n.jsx("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:281",className:"w-7 h-7 rounded-md bg-amber-500/15 flex items-center justify-center",children:n.jsx(Ix,{"data-loc":"client/src/pages/PaymentSuccess.tsx:282",className:"w-3.5 h-3.5 text-amber-500"})}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:284",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:285",className:"text-sm font-semibold text-foreground",children:"Enterprise"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:286",className:"text-[10px] text-amber-500/80",children:"Free - for businesses"})]})]}),n.jsx("ul",{"data-loc":"client/src/pages/PaymentSuccess.tsx:289",className:"space-y-1 mb-3",children:["Bulk CSV uploads","Saved parcel library","Lower negotiated rates"].map(k=>n.jsxs("li",{"data-loc":"client/src/pages/PaymentSuccess.tsx:291",className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[n.jsx(rR,{"data-loc":"client/src/pages/PaymentSuccess.tsx:292",className:"w-3 h-3 text-amber-500/60 flex-shrink-0"}),k]},k))}),n.jsx(Ne,{"data-loc":"client/src/pages/PaymentSuccess.tsx:297",href:"/enterprise",children:n.jsx("span",{"data-loc":"client/src/pages/PaymentSuccess.tsx:298",className:"block w-full text-center py-1.5 px-3 rounded-md border border-amber-500/50 text-amber-500 text-xs font-medium hover:bg-amber-500/10 transition-colors cursor-pointer",children:"Apply for Enterprise"})})]})]})]})}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentSuccess.tsx:309",className:"flex flex-col sm:flex-row gap-3 justify-center",children:[c?n.jsx(Ne,{"data-loc":"client/src/pages/PaymentSuccess.tsx:311",href:"/dashboard",children:n.jsxs(oe,{"data-loc":"client/src/pages/PaymentSuccess.tsx:312",className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2 w-full sm:w-auto",children:[n.jsx(Bc,{"data-loc":"client/src/pages/PaymentSuccess.tsx:313",className:"w-4 h-4"})," Go to Dashboard"]})}):n.jsx(Ne,{"data-loc":"client/src/pages/PaymentSuccess.tsx:317",href:"/ship",children:n.jsxs(oe,{"data-loc":"client/src/pages/PaymentSuccess.tsx:318",className:"bg-primary hover:bg-primary/90 text-primary-foreground gap-2 w-full sm:w-auto",children:[n.jsx(la,{"data-loc":"client/src/pages/PaymentSuccess.tsx:319",className:"w-4 h-4"})," Ship Again"]})}),n.jsx(Ne,{"data-loc":"client/src/pages/PaymentSuccess.tsx:323",href:r==="consular"?"/documents":"/ship",children:n.jsx(oe,{"data-loc":"client/src/pages/PaymentSuccess.tsx:324",variant:"outline",className:"border-border/60 gap-2 w-full sm:w-auto bg-background",children:r==="consular"?n.jsxs(n.Fragment,{children:[n.jsx(mt,{"data-loc":"client/src/pages/PaymentSuccess.tsx:326",className:"w-4 h-4"})," New Application"]}):n.jsxs(n.Fragment,{children:[n.jsx(rn,{"data-loc":"client/src/pages/PaymentSuccess.tsx:327",className:"w-4 h-4"})," New Quote"]})})})]}),n.jsx("p",{"data-loc":"client/src/pages/PaymentSuccess.tsx:332",className:"text-xs text-muted-foreground mt-6 text-center",children:y?"A confirmation email with your label and tracking details has been sent to your email address.":"A confirmation email has been sent to your registered email address."})]})})})}const Kc={online:{label:"Online",dot:"bg-green-500",badge:"bg-green-500/15 text-green-600 dark:text-green-400"}
459,away:{label:"Away",dot:"bg-amber-400",badge:"bg-amber-500/15 text-amber-600 dark:text-amber-400"},busy:{label:"Busy",dot:"bg-red-500",badge:"bg-red-500/15 text-red-600 dark:text-red-400"},offline:{label:"Offline",dot:"bg-muted-foreground/40",badge:"bg-muted text-muted-foreground"}};function sL(e){if(!e)return"Never";const t=Date.now()-new Date(e).getTime(),r=Math.floor(t/6e4);if(r<1)return"Just now";if(r<60)return`${r}m ago`;const i=Math.floor(r/60);return i<24?`${i}h ago`:`${Math.floor(i/24)}d ago`}function aL({status:e}){const t=Kc[e]??Kc.offline;return n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:52",className:"relative flex h-2.5 w-2.5 shrink-0",children:[e==="online"&&n.jsx("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:54",className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-60"}),n.jsx("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:56",className:`relative inline-flex rounded-full h-2.5 w-2.5 ${t.dot}`})]})}function nL({status:e}){const t=Kc[e]??Kc.offline;return n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:64",className:`inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium ${t.badge}`,children:[n.jsx(aL,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:65",status:e}),t.label]})}function rL({isMaster:e}){const t=Ae.useUtils(),r=Ae.admin.listTeamMembers.useQuery(),i=Ae.admin.addTeamMember.useMutation({onSuccess:()=>{Me.success("Team member added"),t.admin.listTeamMembers.invalidate(),f(!1),y({name:"",email:"",jobTitle:"",department:"",role:"staff",notes:""})},onError:O=>Me.error(O.message)}),c=Ae.admin.updateTeamMemberStatus.useMutation({onSuccess:()=>t.admin.listTeamMembers.invalidate(),onError:O=>Me.error(O.message)}),d=Ae.admin.removeTeamMember.useMutation({onSuccess:()=>{Me.success("Team member removed"),t.admin.listTeamMembers.invalidate()},onError:O=>Me.error(O.message)}),u=Ae.admin.updateTeamMemberRole.useMutation({onSuccess:()=>{Me.success("Role updated"),t.admin.listTeamMembers.invalidate()},onError:O=>Me.error(O.message)}),[m,f]=v.useState(!1),[h,y]=v.useState({name:"",email:"",jobTitle:"",department:"",role:"staff",notes:""}),[g,b]=v.useState(null),[w,C]=v.useState("all"),[N,S]=v.useState(""),A=r.data??[];A.filter(O=>O.onlineStatus==="online").length;const D=v.useMemo(()=>Array.from(new Set(A.map(B=>B.department).filter(Boolean))).sort(),[A]),M=v.useMemo(()=>A.filter(O=>{if(w!=="all"&&O.department!==w)return!1;if(N){const B=N.toLowerCase();return O.name.toLowerCase().includes(B)||O.email.toLowerCase().includes(B)||(O.jobTitle||"").toLowerCase().includes(B)||(O.department||"").toLowerCase().includes(B)}return!0}),[A,w,N]);function V(O){O.preventDefault(),!(!h.name.trim()||!h.email.trim())&&i.mutate({name:h.name.trim(),email:h.email.trim(),jobTitle:h.jobTitle.trim()||void 0,department:h.department.trim()||void 0,role:h.role,notes:h.notes.trim()||void 0})}return n.jsx("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:293",className:"space-y-8",children:n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:295",className:"space-y-5",children:[n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:297",className:"flex items-center justify-between flex-wrap gap-3",children:[n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:298",className:"flex items-center gap-3",children:[n.jsx("h2",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:299",className:"text-lg font-semibold text-foreground",children:"Team"}),n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:300",className:"text-sm text-muted-foreground",children:[A.length," member",A.length!==1?"s":""]})]}),e&&n.jsxs(oe,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:303",size:"sm",onClick:()=>f(O=>!O),className:"gap-2",children:[m?n.jsx(_s,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:304",className:"w-4 h-4"}
459):n.jsx(Kn,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:304",className:"w-4 h-4"}),m?"Cancel":"Add Member"]})]}),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:311",className:"flex flex-wrap gap-2 items-center",children:[n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:312",className:"relative flex-1 min-w-[180px] max-w-xs",children:[n.jsx(hu,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:313",className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground"}),n.jsx("input",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:314",type:"text",placeholder:"Search name, email, role...",value:N,onChange:O=>S(O.target.value),className:"w-full pl-8 pr-3 py-1.5 text-sm bg-background border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/40 text-foreground placeholder:text-muted-foreground"})]}),D.length>0&&n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:323",className:"flex items-center gap-1.5",children:[n.jsx(KM,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:324",className:"w-3.5 h-3.5 text-muted-foreground"}),n.jsxs("select",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:325",value:w,onChange:O=>C(O.target.value),className:"text-sm bg-background border border-border rounded-lg px-2.5 py-1.5 focus:outline-none focus:ring-2 focus:ring-primary/40 text-foreground",children:[n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:330",value:"all",children:"All Departments"}),D.map(O=>n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:331",value:O,children:O},O))]})]})]}),n.jsx(Kr,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:338",children:m&&e&&n.jsx(Ue.div,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:340",initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:n.jsxs("form",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:341",onSubmit:V,className:"bg-card border border-border rounded-xl p-5 space-y-4",children:[n.jsxs("h3",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:342",className:"text-sm font-semibold text-foreground flex items-center gap-2",children:[n.jsx(B1,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:343",className:"w-4 h-4 text-primary"}),"Add New Team Member"]}),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:346",className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:[[{label:"Full Name *",field:"name",type:"text",placeholder:"e.g. Sarah Mitchell"},{label:"Email Address *",field:"email",type:"email",placeholder:"[email protected]"},{label:"Job Title",field:"jobTitle",type:"text",placeholder:"e.g. Logistics Manager"},{label:"Department",field:"department",type:"text",placeholder:"e.g. Operations"}].map(({label:O,field:B,type:E,placeholder:k})=>n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:353",children:[n.jsx("label",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:354",className:"block text-xs font-medium text-muted-foreground mb-1",children:O}),n.jsx("input",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:355",type:E,required:O.endsWith("*"),value:h[B],onChange:J=>y(te=>({...te,[B]:J.target.value})),placeholder:k,className:"w-full px-3 py-2 text-sm bg-background border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/40 text-foreground placeholder:text-muted-foreground"})]},B)),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:365",children:[n.jsx("label",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:366",className:"block text-xs font-medium text-muted-foreground mb-1",children:"Role"}),n.jsxs("select",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:367",value:h.role,onChange:O=>y(B=>({...B,role:O.target.value})),className:"w-full px-3 py-2 text-sm bg-background border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/40 text-foreground",children:[n.jsx("option",{"data-loc":"client/src/components/
459admin/AdminTeamSection.tsx:369",value:"staff",children:"Staff"}),n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:370",value:"admin",children:"Admin"})]})]}),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:373",children:[n.jsx("label",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:374",className:"block text-xs font-medium text-muted-foreground mb-1",children:"Notes (internal)"}),n.jsx("input",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:375",type:"text",value:h.notes,onChange:O=>y(B=>({...B,notes:O.target.value})),placeholder:"Optional internal notes",className:"w-full px-3 py-2 text-sm bg-background border border-border rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/40 text-foreground placeholder:text-muted-foreground"})]})]}),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:380",className:"flex justify-end gap-2 pt-1",children:[n.jsx(oe,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:381",type:"button",variant:"outline",size:"sm",onClick:()=>f(!1),children:"Cancel"}),n.jsxs(oe,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:382",type:"submit",size:"sm",disabled:i.isPending,className:"gap-2",children:[i.isPending&&n.jsx(ht,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:383",className:"w-3.5 h-3.5 animate-spin"}),"Add Member"]})]})]})})}),r.isLoading?n.jsx("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:394",className:"flex items-center justify-center py-16",children:n.jsx(ht,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:395",className:"w-6 h-6 animate-spin text-muted-foreground"})}):M.length===0?n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:398",className:"text-center py-16 text-muted-foreground",children:[n.jsx(Rs,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:399",className:"w-10 h-10 mx-auto mb-3 opacity-30"}),n.jsx("p",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:400",className:"text-sm font-medium",children:A.length===0?"No team members yet":"No members match your filter"}),e&&A.length===0&&n.jsx("p",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:402",className:"text-xs mt-1",children:'Click "Add Member" to add your first docucert.ai team member.'})]}):n.jsx("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:406",className:"grid gap-3",children:M.map(O=>n.jsxs(Ue.div,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:408",initial:{opacity:0,y:6},animate:{opacity:1,y:0},className:"bg-card border border-border rounded-xl p-4 flex items-start gap-4",children:[n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:411",className:"relative shrink-0",children:[n.jsx("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:412",className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary font-semibold text-sm select-none",children:O.name.charAt(0).toUpperCase()}),n.jsx("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:415",className:`absolute -bottom-0.5 -right-0.5 w-3 h-3 rounded-full border-2 border-card ${Kc[O.onlineStatus]?.dot??"bg-muted-foreground/40"}`})]}),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:419",className:"flex-1 min-w-0",children:[n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:420",className:"flex items-center gap-2 flex-wrap",children:[n.jsx("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:421",className:"font-medium text-sm text-foreground",children:O.name}),n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:422",className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-semibold ${O.role==="admin"?"bg-amber-500/15 text-amber-600 dark:text-amber-400":"bg-secondary text-muted-foreground"}`,children:[n.jsx(sn,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:427",className:"w-2.5 h-2.5"})," ",O.role==="admin"?"Admin":"Staff"]}
459),n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:429",className:"inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-semibold bg-primary/10 text-primary",children:[n.jsx(B1,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:430",className:"w-2.5 h-2.5"})," Admin Access"]}),n.jsx(nL,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:432",status:O.onlineStatus})]}),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:435",className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-0.5 text-xs text-muted-foreground",children:[n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:436",className:"flex items-center gap-1",children:[n.jsx(Ft,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:437",className:"w-3 h-3 shrink-0"}),n.jsx("a",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:438",href:`mailto:${O.email}`,className:"hover:text-foreground transition-colors truncate max-w-[220px]",children:O.email})]}),O.jobTitle&&n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:443",className:"flex items-center gap-1",children:[n.jsx(UM,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:444",className:"w-3 h-3 shrink-0"}),O.jobTitle]}),O.department&&n.jsxs("span",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:448",className:"flex items-center gap-1",children:[n.jsx(Ix,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:449",className:"w-3 h-3 shrink-0"}),O.department]})]}),O.lastSeenAt&&n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:456",className:"mt-1 flex items-center gap-1 text-[10px] text-muted-foreground/60",children:[n.jsx(Ta,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:457",className:"w-2.5 h-2.5"}),"Last seen ",sL(O.lastSeenAt)]}),O.notes&&n.jsx("p",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:463",className:"mt-1 text-xs text-muted-foreground/70 italic truncate",children:O.notes})]}),n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:468",className:"flex items-center gap-2 shrink-0",children:[n.jsxs("select",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:469",value:O.onlineStatus,onChange:B=>c.mutate({id:O.id,onlineStatus:B.target.value}),className:"text-xs bg-background border border-border rounded-lg px-2 py-1.5 focus:outline-none focus:ring-2 focus:ring-primary/40 text-foreground cursor-pointer",title:"Update status",children:[n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:475",value:"online",children:"Online"}),n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:476",value:"away",children:"Away"}),n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:477",value:"busy",children:"Busy"}),n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:478",value:"offline",children:"Offline"})]}),e&&n.jsxs("select",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:482",value:O.role,onChange:B=>u.mutate({id:O.id,role:B.target.value}),className:"text-xs bg-background border border-border rounded-lg px-2 py-1.5 focus:outline-none focus:ring-2 focus:ring-primary/40 text-foreground cursor-pointer",title:"Change role",disabled:u.isPending,children:[n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:489",value:"staff",children:"Staff"}),n.jsx("option",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:490",value:"admin",children:"Admin"})]}),e&&(g===O.id?n.jsxs("div",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:496",className:"flex items-center gap-1",children:[n.jsx("button",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:497",onClick:()=>{d.mutate({id:O.id}),b(null)},className:"text-xs text-red-500 hover:text-red-600 font-medium px-2 py-1 rounded border border-red-500/40 hover:bg-red-500/10 transition-colors",disabled:d.isPending,children:"Confirm"}
vendor: 18,458 bytes, line 459
459),n.jsx("button",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:502",onClick:()=>b(null),className:"text-xs text-muted-foreground hover:text-foreground px-2 py-1 rounded border border-border transition-colors",children:"Cancel"})]}):n.jsx("button",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:508",onClick:()=>b(O.id),className:"p-1.5 rounded-lg text-muted-foreground hover:text-red-500 hover:bg-red-500/10 transition-colors",title:"Remove team member",children:n.jsx(Gr,{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:511",className:"w-3.5 h-3.5"})}))]})]},O.id))}),!e&&A.length>0&&n.jsx("p",{"data-loc":"client/src/components/admin/AdminTeamSection.tsx:522",className:"text-xs text-muted-foreground text-center pt-2",children:"Contact team members directly via email. Only the master account can add or remove members."})]})})}function gj(e,[t,r]){return Math.min(r,Math.max(t,e))}function Pg(e){const t=e+"CollectionProvider",[r,i]=tr(t),[c,d]=r(t,{collectionRef:{current:null},itemMap:new Map}),u=N=>{const{scope:S,children:A}=N,D=me.useRef(null),M=me.useRef(new Map).current;return n.jsx(c,{scope:S,itemMap:M,collectionRef:D,children:A})};u.displayName=t;const m=e+"CollectionSlot",f=Ir(m),h=me.forwardRef((N,S)=>{const{scope:A,children:D}=N,M=d(m,A),V=nt(S,M.collectionRef);return n.jsx(f,{ref:V,children:D})});h.displayName=m;const y=e+"CollectionItemSlot",g="data-radix-collection-item",b=Ir(y),w=me.forwardRef((N,S)=>{const{scope:A,children:D,...M}=N,V=me.useRef(null),O=nt(S,V),B=d(y,A);return me.useEffect(()=>(B.itemMap.set(V,{ref:V,...M}),()=>void B.itemMap.delete(V))),n.jsx(b,{[g]:"",ref:O,children:D})});w.displayName=y;function C(N){const S=d(e+"CollectionConsumer",N);return me.useCallback(()=>{const D=S.collectionRef.current;if(!D)return[];const M=Array.from(D.querySelectorAll(`[${g}]`));return Array.from(S.itemMap.values()).sort((B,E)=>M.indexOf(B.ref.current)-M.indexOf(E.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:u,Slot:h,ItemSlot:w},C,i]}var iL=v.createContext(void 0);function _g(e){const t=v.useContext(iL);return e||t||"ltr"}function oL(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var cL=[" ","Enter","ArrowUp","ArrowDown"],lL=[" ","Enter"],Yr="Select",[Zu,Ju,dL]=Pg(Yr),[wo]=tr(Yr,[dL,xo]),em=xo(),[uL,nr]=wo(Yr),[mL,fL]=wo(Yr),VC=e=>{const{__scopeSelect:t,children:r,open:i,defaultOpen:c,onOpenChange:d,value:u,defaultValue:m,onValueChange:f,dir:h,name:y,autoComplete:g,disabled:b,required:w,form:C}=e,N=em(t),[S,A]=v.useState(null),[D,M]=v.useState(null),[V,O]=v.useState(!1),B=_g(h),[E,k]=Uc({prop:i,defaultProp:c??!1,onChange:d,caller:Yr}),[J,te]=Uc({prop:u,defaultProp:m,onChange:f,caller:Yr}),re=v.useRef(null),ce=S?C||!!S.closest("form"):!0,[de,ue]=v.useState(new Set),pe=Array.from(de).map(P=>P.props.value).join(";");return n.jsx(Jw,{...N,children:n.jsxs(uL,{required:w,scope:t,trigger:S,onTriggerChange:A,valueNode:D,onValueNodeChange:M,valueNodeHasChildren:V,onValueNodeHasChildrenChange:O,contentId:tn(),value:J,onValueChange:te,open:E,onOpenChange:k,dir:B,triggerPointerDownPosRef:re,disabled:b,children:[n.jsx(Zu.Provider,{scope:t,children:n.jsx(mL,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(P=>{ue(I=>new Set(I).add(P))},[]),onNativeOptionRemove:v.useCallback(P=>{ue(I=>{const z=new Set(I);return z.delete(P),z})},[]),children:r})}),ce?n.jsxs(dA,{"aria-hidden":!0,required:w,tabIndex:-1,name:y,autoComplete:g,value:J,onChange:P=>te(P.target.value),disabled:b,form:C,children:[J===void 0?n.jsx("option",{value:""}):null,Array.from(de)]},pe):null]})})};VC.displayName=Yr;var qC="SelectTrigger",FC=v.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:i=!1,...c}=e,d=em(r),u=nr(qC,r),m=u.disabled||i,f=nt(t,u.onTriggerChange),h=Ju(r),y=v.useRef("touch"),[g,b,w]=mA(N=>{const S=h().filter(M=>!M.disabled),A=S.find(M=>M.value===u.value),D=fA(S,N,A);D!==void 0&&u.onValueChange(D.value)}),C=N=>{m||(u.onOpenChange(!0),w()),N&&(u.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return n.jsx(Lx,{asChild:!0,...d,children:n.jsx($e.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":uA(u.value)?"":void 0,...c,ref:f,onClick:Oe(c.onClick,N=>{N.currentTarget.focus(),y.current!=="mouse"&&C(N)}),onPointerDown:Oe(c.onPointerDown,N=>{y.current=N.pointerType;const S=N.target;S.hasPointerCapture(N.pointerId)&&S.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(C(N),N.preventDefault())}),onKeyDown:Oe(c.onKeyDown,N=>{const S=g.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&b(N.key),!(S&&N.key===" ")&&cL.includes(N.key)&&(C(),N.preventDefault())})})})});FC.displayName=qC;var GC="SelectValue",QC=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:i,style:c,children:d,placeholder:u="",...m}=e,f=nr(GC,r),{onValueNodeHasChildrenChange:h}=f,y=d!==void 0,g=nt(t,f.onValueNodeChange);return ns(()=>{h(y)},[h,y]),n.jsx($e.span,{...m,ref:g,style:{pointerEvents:"none"},children:uA(f.value)?n.jsx(n.Fragment,{children:u}):d})});QC.displayName=GC;var pL="SelectIcon",KC=v.forwardRef((e,t)=>{const{__scopeSelect:r,children:i,...c}=e;return n.jsx($e.span,{"aria-hidden":!0,...c,ref:t,children:i||"â¼"})});KC.displayName=pL;var hL="SelectPortal",YC=e=>n.jsx(Hu,{asChild:!0,...e});YC.displayName=hL;var $r="SelectContent",$C=v.forwardRef((e,t)=>{const r=nr($r,e.__scopeSelect),[i,c]=v.useState();if(ns(()=>{c(new DocumentFragment)},[]),!r.open){const d=i;return d?fo.createPortal(n.jsx(XC,{scope:e.__scopeSelect,children:n.jsx(Zu.Slot,{scope:e.__scopeSelect,children:n.jsx("div",{children:e.children})})}),d):null}return n.jsx(WC,{...e,ref:t})});$C.displayName=$r;var ca=10,[XC,rr]=wo($r),xL="SelectContentImpl",gL=Ir("SelectContent.RemoveScroll"),WC=v.forwardRef((e,t)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:d,onPointerDownOutside:u,side:m,sideOffset:f,align:h,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:C,hideWhenDetached:N,avoidCollisions:S,...A}=e,D=nr($r,r),[M,V]=v.useState(null),[O,B]=v.useState(null),E=nt(t,_=>V(_)),[k,J]=v.useState(null),[te,re]=v.useState(null),ce=Ju(r),[de,ue]=v.useState(!1),pe=v.useRef(!1);v.useEffect(()=>{if(M)return Yx(M)},[M]),Kx();const P=v.useCallback(_=>{const[X,...se]=ce().map(fe=>fe.ref.current),[ge]=se.slice(-1),ie=document.activeElement;for(const fe of _)if(fe===ie||(fe?.scrollIntoView({block:"nearest"}),fe===X&&O&&(O.scrollTop=0),fe===ge&&O&&(O.scrollTop=O.scrollHeight),fe?.focus(),document.activeElement!==ie))return},[ce,O]),I=v.useCallback(()=>P([k,M]),[P,k,M]);v.useEffect(()=>{de&&I()},[de,I]);const{onOpenChange:z,triggerPointerDownPosRef:Z}=D;v.useEffect(()=>{if(M){let _={x:0,y:0};const X=ge=>{_={x:Math.abs(Math.round(ge.pageX)-(Z.current?.x??0)),y:Math.abs(Math.round(ge.pageY)-(Z.current?.y??0))}},se=ge=>{_.x<=10&&_.y<=10?ge.preventDefault():M.contains(ge.target)||z(!1),document.removeEventListener("pointermove",X),Z.current=null};return Z.current!==null&&(document.addEventListener("pointermove",X),document.addEventListener("pointerup",se,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",X),document.removeEventListener("pointerup",se,{capture:!0})}}},[M,z,Z]),v.useEffect(()=>{const _=()=>z(!1);return window.addEventListener("blur",_),window.addEventListener("resize",_),()=>{window.removeEventListener("blur",_),window.removeEventListener("resize",_)}},[z]);const[he,R]=mA(_=>{const X=ce().filter(ie=>!ie.disabled),se=X.find(ie=>ie.ref.current===document.activeElement),ge=fA(X,_,se);ge&&setTimeout(()=>ge.ref.current.focus())}),Y=v.useCallback((_,X,se)=>{const ge=!pe.current&&!se;(D.value!==void 0&&D.value===X||ge)&&(J(_),ge&&(pe.current=!0))},[D.value]),F=v.useCallback(()=>M?.focus(),[M]),$=v.useCallback((_,X,se)=>{const ge=!pe.current&&!se;(D.value!==void 0&&D.value===X||ge)&&re(_)},[D.value]),le=i==="popper"?mx:ZC,xe=le===mx?{side:m,sideOffset:f,align:h,alignOffset:y,arrowPadding:g,collisionBoundary:b,collisionPadding:w,sticky:C,hideWhenDetached:N,avoidCollisions:S}:{};return n.jsx(XC,{scope:r,content:M,viewport:O,onViewportChange:B,itemRefCallback:Y,selectedItem:k,onItemLeave:F,itemTextRefCallback:$,focusSelectedItem:I,selectedItemText:te,position:i,isPositioned:de,searchRef:he,children:n.jsx(Qu,{as:gL,allowPinchZoom:!0,children:n.jsx(Fu,{asChild:!0,trapped:D.open,onMountAutoFocus:_=>{_.preventDefault()},onUnmountAutoFocus:Oe(c,_=>{D.trigger?.focus({preventScroll:!0}),_.preventDefault()}),children:n.jsx(tl,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:u,onFocusOutside:_=>_.preventDefault(),onDismiss:()=>D.onOpenChange(!1),children:n.jsx(le,{role:"listbox",id:D.contentId,"data-state":D.open?"open":"closed",dir:D.dir,onContextMenu:_=>_.preventDefault(),...A,...xe,onPlaced:()=>ue(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Oe(A.onKeyDown,_=>{const X=_.ctrlKey||_.altKey||_.metaKey;if(_.key==="Tab"&&_.preventDefault(),!X&&_.key.length===1&&R(_.key),["ArrowUp","ArrowDown","Home","End"].includes(_.key)){let ge=ce().filter(ie=>!ie.disabled).map(ie=>ie.ref.current);if(["ArrowUp","End"].includes(_.key)&&(ge=ge.slice().reverse()),["ArrowUp","ArrowDown"].includes(_.key)){const ie=_.target,fe=ge.indexOf(ie);ge=ge.slice(fe+1)}setTimeout(()=>P(ge)),_.preventDefault()}})})})})})})});WC.displayName=xL;var yL="SelectItemAlignedPosition",ZC=v.forwardRef((e,t)=>{const{__scopeSelect:r,onPlaced:i,...c}=e,d=nr($r,r),u=rr($r,r),[m,f]=v.useState(null),[h,y]=v.useState(null),g=nt(t,E=>y(E)),b=Ju(r),w=v.useRef(!1),C=v.useRef(!0),{viewport:N,selectedItem:S,selectedItemText:A,focusSelectedItem:D}=u,M=v.useCallback(()=>{if(d.trigger&&d.valueNode&&m&&h&&N&&S&&A){const E=d.trigger.getBoundingClientRect(),k=h.getBoundingClientRect(),J=d.valueNode.getBoundingClientRect(),te=A.getBoundingClientRect();if(d.dir!=="rtl"){const ie=te.left-k.left,fe=J.left-ie,Pe=E.left-fe,Ie=E.width+Pe,ct=Math.max(Ie,k.width),Mt=window.innerWidth-ca,Ns=gj(fe,[ca,Math.max(ca,Mt-ct)]);m.style.minWidth=Ie+"px",m.style.left=Ns+"px"}else{const ie=k.right-te.right,fe=window.innerWidth-J.right-ie,Pe=window.innerWidth-E.right-fe,Ie=E.width+Pe,ct=Math.max(Ie,k.width),Mt=window.innerWidth-ca,Ns=gj(fe,[ca,Math.max(ca,Mt-ct)]);m.style.minWidth=Ie+"px",m.style.right=Ns+"px"}const re=b(),ce=window.innerHeight-ca*2,de=N.scrollHeight,ue=window.getComputedStyle(h),pe=parseInt(ue.borderTopWidth,10),P=parseInt(ue.paddingTop,10),I=parseInt(ue.borderBottomWidth,10),z=parseInt(ue.paddingBottom,10),Z=pe+P+de+z+I,he=Math.min(S.offsetHeight*5,Z),R=window.getComputedStyle(N),Y=parseInt(R.paddingTop,10),F=parseInt(R.paddingBottom,10),$=E.top+E.height/2-ca,le=ce-$,xe=S.offsetHeight/2,_=S.offsetTop+xe,X=pe+P+_,se=Z-X;if(X<=$){const ie=re.length>0&&S===re[re.length-1].ref.current;m.style.bottom="0px";const fe=h.clientHeight-N.offsetTop-N.offsetHeight,Pe=Math.max(le,xe+(ie?F:0)+fe+I),Ie=X+Pe;m.style.height=Ie+"px"}else{const ie=re.length>0&&S===re[0].ref.current;m.style.top="0px";const Pe=Math.max($,pe+N.offsetTop+(ie?Y:0)+xe)+se;m.style.height=Pe+"px",N.scrollTop=X-$+N.offsetTop}m.style.margin=`${ca}px 0`,m.style.minHeight=he+"px",m.style.maxHeight=ce+"px",i?.(),requestAnimationFrame(()=>w.current=!0)}},[b,d.trigger,d.valueNode,m,h,N,S,A,d.dir,i]);ns(()=>M(),[M]);const[V,O]=v.useState();ns(()=>{h&&O(window.getComputedStyle(h).zIndex)},[h]);const B=v.useCallback(E=>{E&&C.current===!0&&(M(),D?.(),C.current=!1)},[M,D]);return n.jsx(bL,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:w,onScrollButtonChange:B,children:n.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:V},children:n.jsx($e.div,{...c,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});ZC.displayName=yL;var vL="SelectPopperPosition",mx=v.forwardRef((e,t)=>{const{__scopeSelect:r,align:i="start",collisionPadding:c=ca,...d}=e,u=em(r);return n.jsx(Ux,{...u,...d,ref:t,align:i,collisionPadding:c,style:{boxSizing:"border-box",...d.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)"}})});mx.displayName=vL;var[bL,Lg]=wo($r,{}),fx="SelectViewport",JC=v.forwardRef((e,t)=>{const{__scopeSelect:r,nonce:i,...c}=e,d=rr(fx,r),u=Lg(fx,r),m=nt(t,d.onViewportChange),f=v.useRef(0);return n.jsxs(n.Fragment,{children:[n.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:i}),n.jsx(Zu.Slot,{scope:r,children:n.jsx($e.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:Oe(c.onScroll,h=>{const y=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=u;if(b?.current&&g){const w=Math.abs(f.current-y.scrollTop);if(w>0){const C=window.innerHeight-ca*2,N=parseFloat(g.style.minHeight),S=parseFloat(g.style.height),A=Math.max(N,S);if(A<C){const D=A+w,M=Math.min(C,D),V=D-M;g.style.height=M+"px",g.style.bottom==="0px"&&(y.scrollTop=V>0?V:0,g.style.justifyContent="flex-end")}}}f.current=y.scrollTop})})})]})});JC.displayName=fx;var eA="SelectGroup",[jL,wL]=wo(eA),NL=v.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e,c=tn();return n.jsx(jL,{scope:r,id:c,children:n.jsx($e.div,{role:"group","aria-labelledby":c,...i,ref:t})})});NL.displayName=eA;var tA="SelectLabel",SL=v.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e,c=wL(tA,r);return n.jsx($e.div,{id:c.id,...i,ref:t})});SL.displayName=tA;var Nu="SelectItem",[CL,sA]=wo(Nu),aA=v.forwardRef((e,t)=>{const{__scopeSelect:r,value:i,disabled:c=!1,textValue:d,...u}=e,m=nr(Nu,r),f=rr(Nu,r),h=m.value===i,[y,g]=v.useState(d??""),[b,w]=v.useState(!1),C=nt(t,D=>f.itemRefCallback?.(D,i,c)),N=tn(),S=v.useRef("touch"),A=()=>{c||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")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 n.jsx(CL,{scope:r,value:i,disabled:c,textId:N,isSelected:h,onItemTextChange:v.useCallback(D=>{g(M=>M||(D?.textContent??"").trim())},[]),children:n.jsx(Zu.ItemSlot,{scope:r,value:i,disabled:c,textValue:y,children:n.jsx($e.div,{role:"option","aria-labelledby":N,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...u,ref:C,onFocus:Oe(u.onFocus,()=>w(!0)),onBlur:Oe(u.onBlur,()=>w(!1)),onClick:Oe(u.onClick,()=>{S.current!=="mouse"&&A()}),onPointerUp:Oe(u.onPointerUp,()=>{S.current==="mouse"&&A()}),onPointerDown:Oe(u.onPointerDown,D=>{S.current=D.pointerType}),onPointerMove:Oe(u.onPointerMove,D=>{S.current=D.pointerType,c?f.onItemLeave?.():S.current==="mouse"&&D.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Oe(u.onPointerLeave,D=>{D.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Oe(u.onKeyDown,D=>{f.searchRef?.current!==""&&D.key===" "||(lL.includes(D.key)&&A(),D.key===" "&&D.preventDefault())})})})})});aA.displayName=Nu;var bc="SelectItemText",nA=v.forwardRef((e,t)=>{const{__scopeSelect:r,className:i,style:c,...d}=e,u=nr(bc,r),m=rr(bc,r),f=sA(bc,r),h=fL(bc,r),[y,g]=v.useState(null),b=nt(t,A=>g(A),f.onItemTextChange,A=>m.itemTextRefCallback?.(A,f.value,f.disabled)),w=y?.textContent,C=v.useMemo(()=>n.jsx("option",{value:f.value,disabled:f.disabled,children:w},f.value),[f.disabled,f.value,w]),{onNativeOptionAdd:N,onNativeOptionRemove:S}=h;return ns(()=>(N(C),()=>S(C)),[N,S,C]),n.jsxs(n.Fragment,{children:[n.jsx($e.span,{id:f.textId,...d,ref:b}),f.isSelected&&u.valueNode&&!u.valueNodeHasChildren?fo.createPortal(d.children,u.valueNode):null]})});nA.displayName=bc;var rA="SelectItemIndicator",iA=v.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e;return sA(rA,r).isSelected?n.jsx($e.span,{"aria-hidden":!0,...i,ref:t}):null});iA.displayName=rA;var px="SelectScrollUpButton",oA=v.forwardRef((e,t)=>{const r=rr(px,e.__scopeSelect),i=Lg(px,e.__scopeSelect),[c,d]=v.useState(!1),u=nt(t,i.onScrollButtonChange);return ns(()=>{if(r.viewport&&r.isPositioned){let m=function(){const h=f.scrollTop>0;d(h)};const f=r.viewport;return m(),f.addEventListener("scroll",m),()=>f.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),c?n.jsx(lA,{...e,ref:u,onAutoScroll:()=>{const{viewport:m,selectedItem:f}=r;m&&f&&(m.scrollTop=m.scrollTop-f.offsetHeight)}}):null});oA.displayName=px;var hx="SelectScrollDownButton",cA=v.forwardRef((e,t)=>{const r=rr(hx,e.__scopeSelect),i=Lg(hx,e.__scopeSelect),[c,d]=v.useState(!1),u=nt(t,i.onScrollButtonChange);return ns(()=>{if(r.viewport&&r.isPositioned){let m=function(){const h=f.scrollHeight-f.clientHeight,y=Math.ceil(f.scrollTop)<h;d(y)};const f=r.viewport;return m(),f.addEventListener("scroll",m),()=>f.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),c?n.jsx(lA,{...e,ref:u,onAutoScroll:()=>{const{viewport:m,selectedItem:f}=r;m&&f&&(m.scrollTop=m.scrollTop+f.offsetHeight)}}):null});cA.displayName=hx;var lA=v.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:i,...c}=e,d=rr("SelectScrollButton",r),u=v.useRef(null),m=Ju(r),f=v.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return v.useEffect(()=>()=>f(),[f]),ns(()=>{m().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),n.jsx($e.div,{"aria-hidden":!0,...c,ref:t,style:{flexShrink:0,...c.style},onPointerDown:Oe(c.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(i,50))}),onPointerMove:Oe(c.onPointerMove,()=>{d.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(i,50))}),onPointerLeave:Oe(c.onPointerLeave,()=>{f()})})}),AL="SelectSeparator",TL=v.forwardRef((e,t)=>
vendor: 6,213 bytes, line 459
459{const{__scopeSelect:r,...i}=e;return n.jsx($e.div,{"aria-hidden":!0,...i,ref:t})});TL.displayName=AL;var xx="SelectArrow",OL=v.forwardRef((e,t)=>{const{__scopeSelect:r,...i}=e,c=em(r),d=nr(xx,r),u=rr(xx,r);return d.open&&u.position==="popper"?n.jsx(Bx,{...c,...i,ref:t}):null});OL.displayName=xx;var EL="SelectBubbleInput",dA=v.forwardRef(({__scopeSelect:e,value:t,...r},i)=>{const c=v.useRef(null),d=nt(i,c),u=oL(t);return v.useEffect(()=>{const m=c.current;if(!m)return;const f=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(f,"value").set;if(u!==t&&y){const g=new Event("change",{bubbles:!0});y.call(m,t),m.dispatchEvent(g)}},[u,t]),n.jsx($e.select,{...r,style:{...eN,...r.style},ref:d,defaultValue:t})});dA.displayName=EL;function uA(e){return e===""||e===void 0}function mA(e){const t=Da(e),r=v.useRef(""),i=v.useRef(0),c=v.useCallback(u=>{const m=r.current+u;t(m),(function f(h){r.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>f(""),1e3))})(m)},[t]),d=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,c,d]}function fA(e,t,r){const c=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,d=r?e.indexOf(r):-1;let u=DL(e,Math.max(d,0));c.length===1&&(u=u.filter(h=>h!==r));const f=u.find(h=>h.textValue.toLowerCase().startsWith(c.toLowerCase()));return f!==r?f:void 0}function DL(e,t){return e.map((r,i)=>e[(t+i)%e.length])}var ML=VC,RL=FC,kL=QC,PL=KC,_L=YC,LL=$C,UL=JC,BL=aA,zL=nA,HL=iA,IL=oA,VL=cA;function In({...e}){return n.jsx(ML,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...e})}function Vn({...e}){return n.jsx(kL,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...e})}function qn({className:e,size:t="default",children:r,...i}){return n.jsxs(RL,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":t,className:vt("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-full min-w-0 items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm 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 overflow-hidden *:data-[slot=select-value]:truncate *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 *:data-[slot=select-value]:min-w-0 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i,children:[r,n.jsx(PL,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:n.jsx(qr,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function Fn({className:e,children:t,position:r="popper",align:i="center",...c}){return n.jsx(_L,{"data-loc":"client/src/components/ui/select.tsx:59",children:n.jsxs(LL,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:vt("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]:slide-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",r==="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",e),position:r,align:i,...c,children:[n.jsx(qL,{"data-loc":"client/src/components/ui/select.tsx:72"}),n.jsx(UL,{"data-loc":"client/src/components/ui/select.tsx:73",className:vt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),n.jsx(FL,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function zt({className:e,children:t,...r}){return n.jsxs(BL,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:vt("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",e),...r,children:[n.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:n.jsx(HL,{"data-loc":"client/src/components/ui/select.tsx:116",children:n.jsx(NN,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),n.jsx(zL,{"data-loc":"client/src/components/ui/select.tsx:120",children:t})]})}function qL({className:e,...t}){return n.jsx(IL,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:vt("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(HM,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function FL({className:e,...t}){return n.jsx(VL,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:vt("flex cursor-default items-center justify-center py-1",e),...t,children:n.jsx(qr,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}const GL={paid:"bg-green-500/20 text-green-600 dark:text-green-400",pending:"bg-yellow-500/20 text-yellow-600 dark:text-yellow-400",failed:"bg-red-500/20 text-red-600 dark:text-red-400",refunded:"bg-purple-500/20 text-purple-600 dar
459k:text-purple-400"};function Ec(e){return e?new Date(e).toLocaleString("en-GB",{day:"2-digit",month:"short",year:"numeric",hour:"2-digit",minute:"2-digit"}):"-"}function QL({data:e,title:t}){const[r,i]=v.useState(!1);return e?n.jsxs(n.Fragment,{children:[n.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:61",onClick:()=>i(!0),className:"text-xs text-primary hover:underline flex items-center gap-1",children:[n.jsx(mt,{"data-loc":"client/src/pages/Admin.tsx:62",className:"w-3 h-3"})," View JSON"]}),n.jsx(Hh,{"data-loc":"client/src/pages/Admin.tsx:64",open:r,onOpenChange:i,children:n.jsxs(Ih,{"data-loc":"client/src/pages/Admin.tsx:65",className:"max-w-2xl max-h-[80vh] overflow-auto",children:[n.jsxs(Vh,{"data-loc":"client/src/pages/Admin.tsx:66",children:[n.jsx(qh,{"data-loc":"client/src/pages/Admin.tsx:67",className:"text-sm font-mono",children:t}),n.jsx(Fh,{"data-loc":"client/src/pages/Admin.tsx:68",className:"sr-only",children:"JSON data viewer"})]}),n.jsx("pre",{"data-loc":"client/src/pages/Admin.tsx:70",className:"text-xs bg-secondary/50 rounded-lg p-4 overflow-auto whitespace-pre-wrap break-all font-mono",children:JSON.stringify(e,null,2)})]})})]}):n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:58",className:"text-muted-foreground text-xs",children:"-"})}const yj=[{value:"pending",label:"Pending",color:"bg-amber-500/20 text-amber-600 dark:text-amber-400"},{value:"processing",label:"Processing",color:"bg-blue-500/20 text-blue-600 dark:text-blue-400"},{value:"complete",label:"Complete",color:"bg-green-500/20 text-green-600 dark:text-green-400"},{value:"cancelled",label:"Cancelled",color:"bg-red-500/20 text-red-600 dark:text-red-400"}],nu={cert_of_origin_uk:"UK Certificate of Origin",arab_british_cert:"Arab-British Certificate",eur1:"EUR-1 Movement Certificate",apostille:"Apostille",commercial_invoice_cert:"Commercial Invoice Certification",elo:"ELO (Logistics Envelope)",ics2_ens:"ICS2 ENS Filing",gmr_pbn:"GMR / PBN Barcodes"};function KL({docId:e,currentStaff:t}){const[r,i]=v.useState(!1),[c,d]=v.useState(t||""),u=Ae.useUtils(),m=Ae.admin.assignDocumentStaff.useMutation({onSuccess:()=>{u.admin.listDocuments.invalidate(),Me.success("Staff assigned"),i(!1)},onError:()=>Me.error("Failed to assign staff")});return r?n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:120",className:"flex items-center gap-2",children:[n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:121",value:c,onChange:f=>d(f.target.value),placeholder:"Staff name",className:"h-7 text-xs w-36",autoFocus:!0,onKeyDown:f=>{f.key==="Enter"&&m.mutate({id:e,staffName:c}),f.key==="Escape"&&i(!1)}}),n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:132",size:"sm",className:"h-7 text-xs px-2",onClick:()=>m.mutate({id:e,staffName:c}),disabled:m.isPending,children:m.isPending?"â¦":"Save"}),n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:136",variant:"ghost",size:"sm",className:"h-7 text-xs px-1",onClick:()=>i(!1),children:n.jsx(_s,{"data-loc":"client/src/pages/Admin.tsx:137",className:"w-3 h-3"})})]}):n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:113",variant:"outline",size:"sm",className:"h-6 text-xs px-2 gap-1",onClick:()=>i(!0),children:[n.jsx(Jr,{"data-loc":"client/src/pages/Admin.tsx:114",className:"w-3 h-3"})," ",t?"Reassign":"Assign"]})}function YL({doc:e,onStatusChange:t,onAssignStaff:r,staffList:i,onNotesChange:c,onSaveNotes:d,onDeleteNote:u,notesValue:m,notesSaving:f}){const[h,y]=v.useState(!1),g=Ae.admin.listConsularOrderFiles.useQuery({documentId:e.id},{enabled:h}),b=yj.find(w=>w.value===(e.status||"draft"));return n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:200",className:"border border-border/60 rounded-xl bg-card overflow-hidden",children:[n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:202",className:"flex items-start gap-3 p-4",children:n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:204",className:"flex-1 min-w-0",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:206",className:"cursor-pointer",onClick:()=>y(w=>!w),children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:207",className:"flex items-center gap-2 mb-1 flex-wrap",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:208",className:"font-mono text-xs font-semibold text-primary",children:e.docNumber?`DOC #${e.docNumber}`:`DOC-${String(e.id).padStart(4,"0")}`}),e.orderGroupRef&&n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:209",className:"font-mono text-xs font-semibold text-sky-600 bg-sky-500/10 px-2 py-0.5 rounded-full",children:e.orderGroupRef}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:210",className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${b?.color||"bg-muted text-muted-foreground"}`,children:b?.label||e.status}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:211",className:`inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium ${GL[e.paymentStatus||""]||"bg-muted text-muted-foreground"}`,children:e.paymentStatus||"pending"}),e.priceGbp&&n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:212",className:"text-xs font-semibold text-foreground",children:["£",e.priceGbp]}),(()=>{const w=e.internalNotes?e.internalNotes.split(`
460`).filter(Boolean).length:0;return w>0?n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:216",className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/15 text-amber-600 dark:text-amber-400 border border-amber-500/20",title:`${w} internal note${w!==1?"s":""}`,children:[n.jsx(tR,{"data-loc":"client/src/pages/Admin.tsx:217",className:"w-3 h-3"}),w]}):null})()]}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:222",className:"text-sm font-medium text-foreground",children:nu[e.docType]||e.docType}),n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:223",className:"text-xs text-muted-foreground mt-0.5 break-all",children:[e.customerCompany&&n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:224",className:"font-medium text-foreground/80",children:[e.customerCompany," · "]}),e.userName||e.customerName||(e.isGuest?"Guest":"Unknown")," ⢠",e.userEmail||e.customerEmail||e.guestEmail||"-"," ⢠",Ec(e.createdAt),e.isGuest?" · Guest":""]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:228",className:"flex flex-wrap gap-2 mt-3",children:[n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:229",value:e.status||"pending",onValueChange:w=>t(e.id,w),children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:233",className:"h-7 text-xs w-32",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:234"})}),n.jsx(Fn,{"data-loc":"client/src/pages/Admin.tsx:236",children:yj.map(w=>n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:238",value:w.value,children:w.label},w.value))})]}),i&&n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:243",value:e.assignedStaffName||"unassigned",onValueChange:w=>r&&r(e.id,w==="unassigned"?null:w),children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:247",className:"h-7 text-xs w-32",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:248",placeholder:"Assign toâ¦"})}),n.jsxs(Fn,{"data-loc":"client/src/pages/Admin.tsx:250",children:[n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:251",value:"unassigned",children:"Unassigned"}),i.map(w=>n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:253",value:w.name,children:w.name},w.id))]})]}),n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:258",variant:"outline",size:"sm",className:"h-7 text-xs gap-1",onClick:()=>y(w=>!w),children:[h?"Hide":"Details"," ",n.jsx(qr,{"data-loc":"client/src/pages/Admin.tsx:259",className:`w-3 h-3 transition-transform ${h?"rotate-180":""}`})]})]})]})}),h&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:267",className:"border-t border-border/40 p-4 space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:269",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:270",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-2",children:"Customer Info"}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:271",className:"grid grid-cols-2 gap-2 text-xs",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:272",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:272",className:"text-muted-foreground",children:"Name:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:272",className:"text-foreground",children:e.userName||e.customerName||"-"})]}),e.customerCompany&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:273",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:273",className:"text-muted-foreground",children:"Company:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:273",className:"text-foreground",children:e.customerCompany})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:274",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:274",className:"text-muted-foreground",children:"Email:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:274",className:"text-foreground",children:e.userEmail||e.customerEmail||e.guestEmail||"-"})]}),e.customerPhone&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:275",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:275",className:"text-muted-foreground",children:"Phone:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:275",className:"text-foreground",children:e.customerPhone})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:276",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:276",className:"text-muted-foreground",children:"User ID:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:276",className:"text-foreground font-mono",children:e.userId||(e.isGuest?"Guest":"-")})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:277",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:277",className:"text-muted-foreground",children:"Doc ID:"})," ",n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:277",className:"text-foreground font-mono",children:["#",e.id]})]}),e.orderGroupRef&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:278",className:"col-span-2",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:278",className:"text-muted-foreground",children:"Order Ref:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:278",className:"text-foreground font-mono font-bold",children:e.orderGroupRef})]}),e.customerRef&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:279",className:"col-span-2",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:279",className:"text-muted-foreground",children:"Customer Ref:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:279",className:"text-foreground font-medium",children:e.customerRef})]})]})]}),e.notes&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:287",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:288",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Customer Notes"}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:289",className:"text-xs text-foreground bg-secondary/40 rounded-lg p-2",children:e.notes})]}),c&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:294",children:[n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:295",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1.5",children:["Internal Notes ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:295",className:"font-normal text-muted-foreground
460/60",children:"(admin only)"})]}),e.internalNotes&&n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:297",className:"bg-secondary/40 rounded-lg p-3 mb-2 space-y-1",children:e.internalNotes.split(` 461`).filter(Boolean).map((w,C)=>n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:299",className:"flex items-start gap-2 group",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:300",className:"text-xs text-foreground font-mono flex-1 whitespace-pre-wrap break-words",children:w}),n.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:301",className:"opacity-0 group-hover:opacity-100 text-destructive hover:text-destructive/80 text-xs px-1 py-0.5 rounded transition-opacity shrink-0",title:"Delete note",onClick:()=>u&&u(e.id,C),children:"â"})]},C))}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:310",className:"flex gap-2",children:[n.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:311",className:"flex-1 border border-border/60 rounded-md px-3 py-1.5 text-xs bg-background text-foreground focus:outline-none focus:ring-1 focus:ring-primary",placeholder:"Add note (timestamped automatically)â¦",value:m??"",onChange:w=>c(e.id,w.target.value),onKeyDown:w=>{w.key==="Enter"&&!w.shiftKey&&(m??"").trim()&&(w.preventDefault(),d&&d(e.id,m??""))}}),n.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:318",className:"text-xs px-3 py-1 rounded-md bg-primary text-primary-foreground hover:bg-primary/90 disabled:opacity-50 whitespace-nowrap",disabled:f||!(m??"").trim(),onClick:()=>d&&d(e.id,m??""),children:f?"Addingâ¦":"Add Note"})]})]}),e.specialInstructions&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:330",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:331",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"Special Instructions"}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:332",className:"text-xs text-foreground bg-amber-50 border border-amber-200/60 rounded-lg p-2",children:e.specialInstructions})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:336",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:337",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-2",children:"Assigned Staff"}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:338",className:"flex items-center gap-2",children:[e.assignedStaffName?n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:340",className:"text-xs bg-blue-50 border border-blue-200/60 text-blue-800 rounded-full px-3 py-1 font-medium flex items-center gap-1.5",children:[n.jsx(Jr,{"data-loc":"client/src/pages/Admin.tsx:341",className:"w-3 h-3"})," ",e.assignedStaffName]}):n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:344",className:"text-xs text-muted-foreground",children:"Unassigned"}),n.jsx(KL,{"data-loc":"client/src/pages/Admin.tsx:346",docId:e.id,currentStaff:e.assignedStaffName})]})]}),!!e.extractedDataJson&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:352",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:353",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-1",children:"AI Extracted Data"}),n.jsx(QL,{"data-loc":"client/src/pages/Admin.tsx:354",data:e.extractedDataJson,title:`Extracted Data - Order #${e.id}`})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:359",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:360",className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-2",children:"Document Vault"}),g.isLoading?n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:362",className:"text-xs text-muted-foreground",children:"Loading files..."}):g.data?.length?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:374",className:"grid grid-cols-2 md:grid-cols-3 gap-2",children:g.data.map(w=>n.jsxs("a",{"data-loc":"client/src/pages/Admin.tsx:376",href:w.fileUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 p-2 rounded-lg border border-border/60 hover:border-primary/50 hover:bg-secondary/40 transition-colors text-xs text-foreground",children:[n.jsx(mt,{"data-loc":"client/src/pages/Admin.tsx:383",className:"w-3.5 h-3.5 text-purple-500 shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:384",className:"truncate",children:w.fileName}),n.jsx(Lh,{"data-loc":"client/src/pages/Admin.tsx:385",className:"w-3 h-3 text-muted-foreground shrink-0 ml-auto"})]},w.id))}):n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:364",className:"space-y-1",children:e.invoiceFileUrl?n.jsxs("a",{"data-loc":"client/src/pages/Admin.tsx:366",href:e.invoiceFileUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2 text-xs text-primary hover:underline",children:[n.jsx(mt,{"data-loc":"client/src/pages/Admin.tsx:367",className:"w-3 h-3"})," invoice.pdf ",n.jsx(Lh,{"data-loc":"client/src/pages/Admin.tsx:367",className:"w-3 h-3"})]}):n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:370",className:"text-xs text-muted-foreground",children:"No files uploaded yet."})})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:393",className:"flex gap-4 text-xs text-muted-foreground pt-1 border-t border-border/30",children:[n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:394",children:["Created: ",Ec(e.createdAt)]}),n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:395",children:["Updated: ",Ec(e.updatedAt)]})]})]})]})}function $L(){rl();const{user:e,isAuthenticated:t}=ea(),[r,i]=v.useState("overview"),[c,d]=v.useState(180),[u]=v.useState(!1),[m,f]=v.useState(null),h=Ae.useUtils(),y=Ae.admin.stats.useQuery(void 0,{enabled:t&&e?.role==="admin"}),g=Ae.admin.listDocuments.useQuery(void 0,{enabled:t&&e?.role==="admin"}),b=Ae.admin.listUsers.useQuery(void 0,{enabled:(r==="users"||r==="consular_docs")&&e?.role==="admin"}),w=Ae.admin.listStaff.useQuery(void 0,{enabled:r==="consular_docs"&&e?.role==="admin"}),C=Ae.admin.topUsers.useQuery(void 0,{enabled:r==="overview"&&e?.role==="admin"}
461),N=Ae.admin.dashboardAnalytics.useQuery(void 0,{enabled:(r==="overview"||r==="revenue")&&e?.role==="admin"}),S=Ae.admin.stripeRevenue.useQuery({days:c},{enabled:r==="revenue"&&e?.role==="admin"}),A=Ae.admin.getUserOrders.useQuery({userId:m},{enabled:m!==null&&e?.role==="admin"}),D=Ae.admin.assignDocumentStaff.useMutation({onSuccess:()=>h.admin.listDocuments.invalidate()}),[M,V]=v.useState(new Set),[O,B]=v.useState(""),E=Ae.admin.bulkUpdateDocumentStatus.useMutation({onSuccess:U=>{Me.success(`Updated ${U.updated} order(s)`),V(new Set),B(""),h.admin.listDocuments.invalidate()},onError:U=>Me.error(U.message||"Bulk update failed")}),k=Ae.admin.updateDocumentStatus.useMutation({onSuccess:()=>{h.admin.listDocuments.invalidate(),Me.success("Status updated")},onError:()=>Me.error("Failed to update status")});Ae.admin.updateUserRole.useMutation({onSuccess:()=>{h.admin.listUsers.invalidate(),Me.success("Role updated")},onError:U=>Me.error(U.message||"Failed to update role")});const J=Ae.admin.manualVerifyUser.useMutation({onSuccess:()=>{h.admin.listUsers.invalidate(),Me.success("Email marked as verified")},onError:U=>Me.error(U.message||"Failed to verify email")}),re=Ae.admin.isMasterAccount.useQuery(void 0,{enabled:e?.role==="admin"}).data?.isMaster??!1,de=Ae.admin.getMyTeamRole.useQuery(void 0,{enabled:e?.role==="admin"}).data?.role==="staff",[ue,pe]=v.useState({name:"",email:"",role:"user"}),[P,I]=v.useState(!1),z=Ae.admin.createUser.useMutation({onSuccess:()=>{h.admin.listUsers.invalidate(),Me.success("User created successfully"),I(!1),pe({name:"",email:"",role:"user"})},onError:U=>Me.error(U.message||"Failed to create user")});Ae.admin.updateDocumentStatus?.useMutation({onSuccess:()=>{h.admin.listDocuments.invalidate(),Me.success("Status updated")},onError:()=>Me.error("Failed to update status")});const[Z,he]=v.useState(!1),[R,Y]=v.useState(""),[F,$]=v.useState("all"),[le,xe]=v.useState("all"),[_,X]=v.useState(""),[se,ge]=v.useState(!1),[ie,fe]=v.useState({customerName:"",customerEmail:"",customerPhone:"",customerCompany:"",customerRef:"",docTypes:[{docType:"cert_of_origin_uk",priceGbp:""}],specialInstructions:"",notes:"",paymentStatus:"paid",status:"pending"}),Pe=Ae.admin.createManualDocumentOrder.useMutation({onSuccess:U=>{h.admin.listDocuments.invalidate(),Me.success(`Document order created: ${U.orderGroupRef}`),he(!1),fe({customerName:"",customerEmail:"",customerPhone:"",customerCompany:"",customerRef:"",docTypes:[{docType:"cert_of_origin_uk",priceGbp:""}],specialInstructions:"",notes:"",paymentStatus:"paid",status:"pending"}),X("")},onError:U=>Me.error(`Failed: ${U.message}`)}),[Ie,ct]=v.useState({}),Mt=Ae.admin.updateDocumentInternalNotes.useMutation({onSuccess:(U,ye)=>{h.admin.listDocuments.invalidate(),ct(Te=>({...Te,[ye.id]:""})),Me.success("Note added")},onError:()=>Me.error("Failed to add note")}),Ns=Ae.admin.deleteDocumentNote.useMutation({onSuccess:()=>h.admin.listDocuments.invalidate()}),[Pa,Ht]=v.useState(null),pa=Ae.admin.deleteDocument.useMutation({onSuccess:()=>{h.admin.listDocuments.invalidate(),Ht(null),Me.success("Order deleted")},onError:()=>Me.error("Failed to delete order")});if(!t)return n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:518",className:"min-h-screen bg-background flex items-center justify-center pt-20",children:n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:519",className:"text-center",children:[n.jsx(sn,{"data-loc":"client/src/pages/Admin.tsx:520",className:"w-12 h-12 text-muted-foreground/40 mx-auto mb-4"}),n.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:521",className:"font-display font-bold text-xl text-foreground mb-2",children:"Authentication Required"}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:522",className:"text-muted-foreground text-sm mb-4",children:"Please sign in to access the admin panel."}),n.jsx(Ne,{"data-loc":"client/src/pages/Admin.tsx:523",href:"/",children:n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:523",variant:"outline",children:"â Back to Home"})})]})});if(e?.role!=="admin")return n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:531",className:"min-h-screen bg-background flex items-center justify-center pt-20",children:n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:532",className:"text-center",children:[n.jsx(zc,{"data-loc":"client/src/pages/Admin.tsx:533",className:"w-12 h-12 text-yellow-500 mx-auto mb-4"}),n.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:534",className:"font-display font-bold text-xl text-foreground mb-2",children:"Access Denied"}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:535",className:"text-muted-foreground text-sm mb-4",children:"You need admin privileges to view this page."}),n.jsx(Ne,{"data-loc":"client/src/pages/Admin.tsx:536",href:"/dashboard",children:n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:536",variant:"outline",children:"â Back to Dashboard"})})]})});const ir=[{id:"overview",label:"Overview",icon:yc},{id:"consular_docs",label:"Document Services",icon:mt,badge:(g.data||[]).filter(U=>!U.assignedStaffName).length||0},{id:"users",label:"Users",icon:Rs},{id:"team",label:"Team",icon:Rs},...!de&&e?.role==="admin"?[{id:"revenue",label:"Revenue",icon:Qi}]:[]];return n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:551",className:"min-h-screen bg-background pt-28 pb-16 px-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:552",className:"max-w-7xl mx-auto",children:[n.jsx(Ue.div,{"data-loc":"client/src/pages/Admin.tsx:554",initial:{opacity:0,y:20}
461,animate:{opacity:1,y:0},className:"mb-8",children:n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:555",className:"flex items-center gap-2 mb-2",children:[n.jsx(sn,{"data-loc":"client/src/pages/Admin.tsx:556",className:"w-5 h-5 text-primary"}),n.jsx("h1",{"data-loc":"client/src/pages/Admin.tsx:557",className:"font-display text-3xl font-bold text-foreground",children:"Admin Panel"})]})}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:562",className:"mb-8 border-b border-border/60 overflow-x-auto",style:{WebkitOverflowScrolling:"touch",scrollbarWidth:"none"},children:n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:563",className:"flex gap-0",style:{width:"max-content",minWidth:"100%"},children:ir.map(U=>n.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:565",onClick:()=>i(U.id),className:`flex items-center gap-1.5 px-3 sm:px-4 py-2.5 text-xs sm:text-sm font-medium border-b-2 transition-colors whitespace-nowrap -mb-px ${r===U.id?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground hover:border-border"}`,children:[n.jsx(U.icon,{"data-loc":"client/src/pages/Admin.tsx:574",className:"w-3.5 h-3.5 sm:w-4 sm:h-4 shrink-0"}),U.label,U.badge!==void 0&&U.badge>0&&n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:577",className:"ml-1 inline-flex items-center justify-center w-4 h-4 rounded-full bg-amber-500/20 text-amber-600 dark:text-amber-400 text-[10px] font-bold",children:U.badge>99?"99+":U.badge})]},U.id))})}),r==="overview"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/Admin.tsx:588",initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:[y.isLoading||N.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:590",className:"flex items-center justify-center h-40",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:590",className:"w-6 h-6 animate-spin text-primary"})}):n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:592",className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[{label:"Total Documents",value:(y.data?.documents||0).toLocaleString(),icon:mt,color:"text-purple-500",tab:"consular_docs",sub:`${y.data?.users||0} registered users`},{label:"Pending Review",value:((N.data?.documents.byStatus?.submitted||0)+(N.data?.documents.byStatus?.processing||0)+(N.data?.documents.byStatus?.reviewing||0)).toLocaleString(),icon:Ta,color:"text-amber-500",tab:"consular_docs",sub:"Submitted + processing"},{label:"Completed",value:((N.data?.documents.byStatus?.completed||0)+(N.data?.documents.byStatus?.complete||0)+(N.data?.documents.byStatus?.dispatched||0)).toLocaleString(),icon:Wd,color:"text-green-500",tab:"consular_docs",sub:"Certified & dispatched"},...de?[]:[{label:"Revenue (Paid)",value:`£${(N.data?.totalRevenuePaidGbp||0).toLocaleString("en-GB",{minimumFractionDigits:2,maximumFractionDigits:2})}`,icon:Qi,color:"text-emerald-500",tab:"revenue",sub:"Paid document orders"}]].map((U,ye)=>n.jsxs(Ue.button,{"data-loc":"client/src/pages/Admin.tsx:635",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:ye*.05},onClick:()=>i(U.tab),className:"glass-card rounded-xl p-5 text-left hover:border-primary/40 transition-colors",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:643",className:"flex items-center justify-between mb-3",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:644",className:"text-xs text-muted-foreground",children:U.label}),n.jsx(U.icon,{"data-loc":"client/src/pages/Admin.tsx:645",className:`w-4 h-4 ${U.color}`})]}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:647",className:"font-display font-bold text-2xl text-foreground",children:U.value}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:648",className:"text-xs text-muted-foreground mt-1",children:U.sub})]},ye))}),!de&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:653",className:"glass-card rounded-xl p-6 mb-4",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:654",className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[n.jsx(sn,{"data-loc":"client/src/pages/Admin.tsx:655",className:"w-4 h-4 text-primary"})," Quick Actions"]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:657",className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:[n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:658",variant:"outline",className:"justify-start gap-2 border-border/60",onClick:()=>i("consular_docs"),children:[n.jsx(mt,{"data-loc":"client/src/pages/Admin.tsx:659",className:"w-4 h-4 text-purple-500"})," Document Services"]}),n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:661",variant:"outline",className:"justify-start gap-2 border-border/60",onClick:()=>i("users"),children:[n.jsx(Rs,{"data-loc":"client/src/pages/Admin.tsx:662",className:"w-4 h-4 text-orange-500"})," Users"]}),n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:664",variant:"outline",className:"justify-start gap-2 border-border/60",onClick:()=>i("revenue"),children:[n.jsx(Qi,{"data-loc":"client/src/pages/Admin.tsx:665",className:"w-4 h-4 text-green-500"})," Revenue"]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:671",className:"glass-card rounded-xl p-6 mb-4",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:672",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(yc,{"data-loc":"client/src/pages/Admin.tsx:673",className:"w-4 h-4 text-primary"})," Order Status Breakdown"]}),N.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:676",className:"flex items-center justify-center h-24",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:676",className:"w-5 h-5 animate-spin text-primary"})}):n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:678",className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-6",children:[{label:"Document Services",color:"text-purple-600",bg:"bg-purple-500/10",total:N.data?.documents.total||0,byStatus:N.data?.documents.byStatus||{},statusColors:{draft:"bg-gray-400",submitted:"bg-blue-400",processing:"bg-yellow-400",reviewing:"bg-orange-400",quote_sent:"bg-purple-400",sent_to_chamber:"bg-blue-500",legalized:"bg-green-400",dispatched:"bg-green-500",complete:"bg-green-600",completed:"bg-green-600",rejected:"bg-red-400"},tab:"consular_docs"}].map(U=>n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:691",className:"space-y-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:692",className:"flex items-center justify-between",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:693",className:`text-sm font-semibold ${U.color}`,children:U.label}),n.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:694",onClick:()=>i(U.tab),className:`text-xs px-2 py-0.5 rounded-full font-bold ${U.bg}
461 ${U.color} hover:opacity-80 transition-opacity`,children:[U.total," total"]})]}),U.total===0?n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:702",className:"text-xs text-muted-foreground",children:"No records yet"}):n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:704",className:"space-y-1.5",children:Object.entries(U.byStatus).sort((ye,Te)=>Te[1]-ye[1]).map(([ye,Te])=>{const ve=Math.round(Te/U.total*100),Re=U.statusColors[ye]||"bg-muted-foreground/40";return n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:709",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:710",className:"flex items-center justify-between mb-0.5",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:711",className:"text-xs text-muted-foreground capitalize",children:ye.replace(/_/g," ")}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:712",className:"text-xs font-medium text-foreground",children:Te})]}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:714",className:"h-1.5 bg-secondary rounded-full overflow-hidden",children:n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:715",className:`h-full rounded-full transition-all ${Re}`,style:{width:`${ve}%`}})})]},ye)})})]},U.label))})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:732",className:"glass-card rounded-xl p-6 mb-4",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:733",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(Ta,{"data-loc":"client/src/pages/Admin.tsx:734",className:"w-4 h-4 text-blue-500"})," Recent Activity"]}),N.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:737",className:"flex items-center justify-center h-16",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:737",className:"w-5 h-5 animate-spin text-primary"})}):N.data?.recentActivity?.length?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:741",className:"space-y-2",children:N.data.recentActivity.map((U,ye)=>{const Te={document:{label:"Doc",color:"bg-purple-500/20 text-purple-600",icon:mt},freight:{label:"Freight",color:"bg-sky-500/20 text-sky-600",icon:al},enquiry:{label:"Quote",color:"bg-amber-500/20 text-amber-600",icon:qu},parcel:{label:"Parcel",color:"bg-green-500/20 text-green-600",icon:la}},ve=Te[U.type]||Te.document,Re=ve.icon;return n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:752",className:"flex items-center gap-3 py-2 border-b border-border/20 last:border-0",children:[n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:753",className:`inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium ${ve.color} shrink-0`,children:[n.jsx(Re,{"data-loc":"client/src/pages/Admin.tsx:754",className:"w-3 h-3"})," ",ve.label]}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:756",className:"text-xs font-mono text-muted-foreground shrink-0",children:U.ref||`#${U.id}`}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:757",className:"text-sm text-foreground flex-1 truncate",children:U.name||"-"}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:758",className:`text-xs px-2 py-0.5 rounded-full font-medium ${U.status==="complete"||U.status==="completed"||U.status==="booked"||U.status==="quoted"?"bg-green-500/20 text-green-600":U.status==="processing"||U.status==="in_progress"||U.status==="reviewing"?"bg-yellow-500/20 text-yellow-600":U.status==="new"||U.status==="pending"||U.status==="submitted"?"bg-blue-500/20 text-blue-600":U.status==="rejected"||U.status==="cancelled"?"bg-red-500/20 text-red-600":"bg-muted text-muted-foreground"} shrink-0`,children:U.status?.replace(/_/g," ")}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:765",className:"text-xs text-muted-foreground shrink-0",children:new Date(U.createdAt).toLocaleDateString("en-GB",{day:"2-digit",month:"short"})})]},ye)})}):n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:739",className:"text-sm text-muted-foreground text-center py-4",children:"No recent activity."})]}),!de&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:774",className:"glass-card rounded-xl p-6",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:775",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(Qi,{"data-loc":"client/src/pages/Admin.tsx:776",className:"w-4 h-4 text-green-500"})," Top Customers by Orders"]}),C.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:779",className:"flex items-center justify-center h-24",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:779",className:"w-5 h-5 animate-spin text-primary"})}):C.data?.length===0?n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:781",className:"text-sm text-muted-foreground text-center py-6",children:"No order data yet."}):n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:783",className:"overflow-x-auto",children:n.jsxs("table",{"data-loc":"client/src/pages/Admin.tsx:784",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/Admin.tsx:785",children:n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:786",className:"border-b border-border/40",children:[n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:787",className:"text-left py-2 px-3 text-xs font-medium text-muted-foreground",children:"#"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:788",className:"text-left py-2 px-3 text-xs font-medium text-muted-foreground",children:"Customer"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:789",className:"text-left py-2 px-3 text-xs font-medium text-muted-foreground",children:"Plan"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:790",className:"text-right py-2 px-3 text-xs font-medium text-muted-foreground",children:"Document Services"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:791",className:"text-right py-2 px-3 text-xs font-medium text-muted-foreground",children:"Total Orders"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:792",className:"py-2 px-3"})]})}),n.jsx("tbody",{"data-loc":"client/src/pages/Admin.tsx:795",children:C.data?.map((U,ye)=>n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:797",className:"border-b border-border/20 hover:bg-muted/30 transition-colors",children:[n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:798",className:"py-2.5 px-3 text-muted-foreground font-mono text-xs",children:ye+1}),n.jsxs("td",{"data-loc":"client/src/pages/Admin.tsx:799",className:"py-2.5 px-3",children:[n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:800",className:"font-medium text-foreground",children:U.name||"-"}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:801",className:"text-xs text-muted-foreground",children:U.email})]}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:803",className:"py-2.5 px-3",children:n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:804",className:`text-xs px-2 py-0.5 rounded-full font-medium ${U.accountTier==="enterprise"?"bg-amber-500/20 text-amber-600":U.accountTier==="business"?"bg-blue-500/20 text-blue-600":"bg-muted text-muted-foreground"}`,children:U.accountTier||"standard"})}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:810",className:"py-2.5 px-3 text-right font-mono text-xs",children:U.docCount}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:811",className:"py-2.5 px-3 text-right font-bold text-foreground",children:U.totalOrders}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:812",className:"py-2.5 px-3",children:n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:813",size:"sm",variant:"ghost",className:"h-7 px-2 text-xs",onClick:()=>{f(U.id),i("users")},children:"View"})})]},U.id))})]})})]})]}),r==="users"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/Admin.tsx:837",initial:{opacity:0,y:10}
461,animate:{opacity:1,y:0},children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:838",className:"flex items-center justify-between mb-4",children:[n.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:839",className:"font-display font-semibold text-foreground",children:"Registered Users"}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:840",className:"flex items-center gap-2",children:[re&&n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:842",size:"sm",className:"gap-2",onClick:()=>I(U=>!U),children:[n.jsx(Rs,{"data-loc":"client/src/pages/Admin.tsx:843",className:"w-3.5 h-3.5"})," Add User"]}),n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:846",variant:"outline",size:"sm",className:"gap-2 border-border/60",onClick:()=>h.admin.listUsers.invalidate(),children:[n.jsx(U1,{"data-loc":"client/src/pages/Admin.tsx:847",className:"w-3.5 h-3.5"})," Refresh"]})]})]}),re&&P&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:853",className:"glass-card rounded-xl p-5 mb-5 border border-primary/20",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:854",className:"font-semibold text-foreground text-sm mb-4 flex items-center gap-2",children:[n.jsx(Rs,{"data-loc":"client/src/pages/Admin.tsx:855",className:"w-4 h-4 text-primary"})," Create New User"]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:857",className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:858",children:[n.jsx("label",{"data-loc":"client/src/pages/Admin.tsx:859",className:"text-xs text-muted-foreground block mb-1",children:"Full Name"}),n.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:860",type:"text",value:ue.name,onChange:U=>pe(ye=>({...ye,name:U.target.value})),placeholder:"Jane Smith",className:"w-full px-3 py-2 text-sm rounded-lg border border-border/60 bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/40"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:868",children:[n.jsx("label",{"data-loc":"client/src/pages/Admin.tsx:869",className:"text-xs text-muted-foreground block mb-1",children:"Email Address"}),n.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:870",type:"email",value:ue.email,onChange:U=>pe(ye=>({...ye,email:U.target.value})),placeholder:"[email protected]",className:"w-full px-3 py-2 text-sm rounded-lg border border-border/60 bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/40"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:880",className:"flex items-center gap-2 mt-4",children:[n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:881",size:"sm",disabled:z.isPending||!ue.name||!ue.email,onClick:()=>z.mutate(ue),className:"gap-2",children:[z.isPending?n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:887",className:"w-3.5 h-3.5 animate-spin"}):n.jsx(Rs,{"data-loc":"client/src/pages/Admin.tsx:887",className:"w-3.5 h-3.5"}),"Create User"]}),n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:890",variant:"ghost",size:"sm",onClick:()=>I(!1),children:"Cancel"})]}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:892",className:"text-xs text-muted-foreground mt-3",children:"The user will be able to sign in with their Manus account once their email is registered here."})]}),m!==null&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:897",className:"glass-card rounded-xl p-5 mb-5 border border-primary/20",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:898",className:"flex items-center justify-between mb-4",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:899",className:"font-semibold text-foreground text-sm flex items-center gap-2",children:[n.jsx(la,{"data-loc":"client/src/pages/Admin.tsx:900",className:"w-4 h-4 text-primary"})," ",A.data?.user?.name?`${A.data.user.name}'s Profile`:`User #${m}`]}),n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:902",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>f(null),children:"â Close"})]}),A.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:905",className:"flex items-center justify-center h-20",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:905",className:"w-5 h-5 animate-spin text-primary"})}):A.data?n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:909",className:"space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:911",className:"grid grid-cols-2 gap-3 p-3 bg-muted/30 rounded-lg text-xs",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:912",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:912",className:"text-muted-foreground",children:"Name:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:912",className:"font-medium text-foreground ml-1",children:A.data.user?.name||"-"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:913",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:913",className:"text-muted-foreground",children:"Email:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:913",className:"font-medium text-foreground ml-1",children:A.data.user?.email||"-"})]}),A.data.user?.companyName&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:914",className:"col-span-2",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:914",className:"text-muted-foreground",children:"Company:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:914",className:"font-medium text-foreground ml-1",children:A.data.user.companyName})]}),!de&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:915",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:915",className:"text-muted-foreground",children:"Member since:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:915",className:"font-medium text-foreground ml-1",children:A.data.user?.createdAt?new Date(A.data.user.createdAt).toLocaleDateString():"-"})]}),!de&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:916",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:916",className:"text-muted-foreground",children:"Last sign-in:"})," ",n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:916",className:"font-medium text-foreground ml-1",children:A.data.user?.lastSignedIn?new Date(A.data.user.lastSignedIn).toLocaleDateString():"-"})]})]}),A.data.documents.length>0&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:921",children:[n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:922",className:"text-xs font-semibold text-muted-foreground mb-2 uppercase tracking-wide",children:["Document Services (",A.data.documents.length,")"]}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:923",className:"overflow-x-auto",children:n.jsxs("table",{"data-loc":"client/src/pages/Admin.tsx:924",className:"w-full text-xs",children:[n.jsx("thead",{"data-loc":"client/src/pages/Admin.tsx:925",children:n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:925",className:"border-b border-border/30",children:[n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:926",className:"text-left py-1.5 px-2 text-muted-foreground",children:"Ref"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:927",className:"text-left py-1.5 px-2 text-muted-foreground",children:"Type"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:928",className:"text-left py-1.5 px-2 text-muted-foreground",children:"Status"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:929",className:"text-right py-1.5 px-2 text-muted-foreground",children:"Price"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:930",className:"text-left py-1.5 px-2 text-muted-foreground",children:"Date"})]})}),n.jsx("tbody",{"data-loc":"client/src/pages/Admin.tsx:932",children:A.data.documents.map(U=>n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:934",className:"border-b border-border/10",children:[n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:935",className:"py-1.5 px-2 font-mono font-semibold text-primary",children:U.docNumber?`DOC #${U.docNumber}`:`DOC-${String(U.id).padStart(4,"0")}`}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:936",className:"py-1.5 px-2",children:U.docType||"-"}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:937",className:"py-1.5 px-2",children:n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:937",className:"px-1.5 py-0.5 rounded-full bg-secondary text-muted-foreground",children:U.status})}),n.jsxs("td",{"data-loc":"client/src/pages/Admin.tsx:938",className:"py-1.5 px-2 text-right",children:["£",U.priceGbp?Number(U.priceGbp).toFixed(2):"-"]}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:939",className:"py-1.5 px-2 text-muted-foreground",children:new Date(U.createdAt).toLocaleDateString()})]},U.id))})]})})]}),A.data.documents.length===0&&n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:948",className:"text-sm text-muted-foreground text-center py-4",children:"This user has no orders yet."})]}):n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:907",className:"text-sm text-muted-foreground",children:"No orders found."})]}),b.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:956",className:"flex items-center justify-center h-40",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:956",className:"w-6 h-6 animate-spin text-primary"})}):n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:958",className:"glass-card rounded-xl overflow-hidden",children:n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:959",className:"overflow-x-auto",children:n.jsxs("table",{"data-loc":"client/src/pages/Admin.tsx:960",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/Admin.tsx:961",children:n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:962",className:"border-b border-border/40 bg-secondary/30",children:[n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:963",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"ID"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:964",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"Name"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:965",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"Email"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:966",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"Company"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:967",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"Login"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:968",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"Email Verified"}),!de&&n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:969",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"Last Sign In"}),!de&&n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:970",className:"text-left px-4 py-3 text-xs font-semibold text-muted-foreground",children:"Joined"})]})}),n.jsx("tbody",{"data-loc":"client/src/pages/Admin.tsx:973",children:(b.data||[]).length===0?n.jsx("tr",{"data-loc":"client/src/pages/Admin.tsx:975",children:n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:975",colSpan:6,className:"text-center py-12 text-muted-foreground text-sm",children:"No users yet"})}):(b.data||[]).map(U=>n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:977",className:`border-b border-border/20 hover:bg-secondary/20 transition-colors cursor-pointer ${m===U.id?"bg-primary/5":""}`,onClick:()=>f(m===U.id?null:U.id),children:[n.jsxs("td",{"data-loc":"client/src/pages/Admin.tsx:978",className:"px-4 py-3 text-muted-foreground font-mono text-xs",children:["#",U.id]}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:979",className:"px-4 py-3 text-xs font-medium text-foreground",children:U.name||"-"}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:980",className:"px-4 py-3 text-xs text-muted-foreground",children:U.email||"-"}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:981",className:"px-4 py-3 text-xs text-muted-foreground",children:U.companyName||"-"}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:982",className:"px-4 py-3 text-xs text-muted-foreground",children:U.loginMethod||"-"}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:984",className:"px-4 py-3",children:U.emailVerified?n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:986",className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/15 text-green-600",children:[n.jsx(ws,{"data-loc":"client/src/pages/Admin.tsx:987",className:"w-3 h-3"})," Verified"]}):n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:990",className:"flex items-center gap-1.5",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:991",className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-amber-500/15 text-amber-600",children:"Unverified"}),re&&n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:995",size:"sm",variant:"ghost",className:"h-5 px-1.5 text-xs text-primary hover:bg-primary/10",onClick:ye=>{ye.stopPropagation(),J.mutate({id:U.id})},disabled:J.isPending,children:"Verify"})]})}),!de&&n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:1008",className:"px-4 py-3 text-xs text-muted-foreground",children:U.lastSignedIn?Ec(U.lastSignedIn):"-"}),!de&&n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:1011",className:"px-4 py-3 text-xs text-muted-foreground",children:Ec(U.createdAt)})]},U.id))})]})})})]}),r==="consular_docs"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/Admin.tsx:1032",initial:{opacity:0,y:10}
461,animate:{opacity:1,y:0},children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1034",className:"flex flex-col gap-3 mb-5",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1035",className:"flex items-center justify-between",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1036",children:[n.jsx("h2",{"data-loc":"client/src/pages/Admin.tsx:1037",className:"font-display font-semibold text-foreground",children:"Document Services"}),n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:1038",className:"text-xs text-muted-foreground mt-0.5",children:[g.data?.length??0," total orders · grouped by customer"]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1042",className:"flex items-center gap-2",children:[n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:1043",variant:"outline",size:"sm",className:"gap-1.5",onClick:()=>g.refetch(),children:[n.jsx(U1,{"data-loc":"client/src/pages/Admin.tsx:1044",className:"w-3.5 h-3.5"})," Refresh"]}),n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:1046",size:"sm",className:"gap-1.5",onClick:()=>he(!0),children:[n.jsx(Kn,{"data-loc":"client/src/pages/Admin.tsx:1047",className:"w-3.5 h-3.5"})," Create Order"]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1052",className:"flex flex-wrap items-center gap-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1053",className:"relative flex-1 min-w-[160px] max-w-xs",children:[n.jsx(hu,{"data-loc":"client/src/pages/Admin.tsx:1054",className:"absolute left-2.5 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground"}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1055",placeholder:"Search by name, email, refâ¦",value:R,onChange:U=>Y(U.target.value),className:"h-8 pl-8 text-xs"})]}),n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:1062",value:F,onValueChange:$,children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:1063",className:"h-8 text-xs w-36",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:1064",placeholder:"All statuses"})}),n.jsxs(Fn,{"data-loc":"client/src/pages/Admin.tsx:1066",children:[n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1067",value:"all",children:"All Statuses"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1068",value:"pending",children:"Pending"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1069",value:"processing",children:"Processing"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1070",value:"complete",children:"Complete"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1071",value:"cancelled",children:"Cancelled"})]})]}),n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:1074",value:le,onValueChange:xe,children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:1075",className:"h-8 text-xs w-48",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:1076",placeholder:"All doc types"})}),n.jsxs(Fn,{"data-loc":"client/src/pages/Admin.tsx:1078",children:[n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1079",value:"all",children:"All Doc Types"}),Object.entries(nu).map(([U,ye])=>n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1081",value:U,children:ye},U))]})]}),(R||F!=="all"||le!=="all")&&n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1086",variant:"ghost",size:"sm",className:"h-8 text-xs text-muted-foreground",onClick:()=>{Y(""),$("all"),xe("all")},children:"Clear filters"})]})]}),g.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1094",className:"flex items-center justify-center h-32",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:1094",className:"w-5 h-5 animate-spin text-primary"})}):g.data?.length?(()=>{const U=(g.data||[]).filter(ve=>{const Re=R.toLowerCase(),We=!Re||[ve.userName,ve.customerName,ve.userEmail,ve.customerEmail,ve.guestEmail,ve.docType,ve.orderGroupRef,ve.customerRef].some(ta=>ta?.toLowerCase().includes(Re)),dt=F==="all"||ve.status===F,Qt=le==="all"||ve.docType===le;return We&&dt&&Qt});if(!U.length)return n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1108",className:"text-sm text-muted-foreground text-center py-12",children:"No orders match the current filters."});const ye=new Map;for(const ve of U){const Re=ve.customerEmail||ve.userEmail||ve.guestEmail||"unknown",We=ve.customerName||ve.userName||"Guest";ye.has(Re)||ye.set(Re,{customerKey:Re,customerName:We,customerEmail:Re,userId:ve.userId??null,docs:[]}),ye.get(Re).docs.push(ve)}const Te=Array.from(ye.values()).sort((ve,Re)=>{const We=Math.max(...ve.docs.map(Qt=>new Date(Qt.createdAt).getTime()));return Math.max(...Re.docs.map(Qt=>new Date(Qt.createdAt).getTime()))-We});return n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1126",className:"space-y-6",children:[M.size>0&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1129",className:"flex items-center gap-3 p-3 bg-primary/5 border border-primary/20 rounded-xl",children:[n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1130",className:"text-xs font-medium text-primary",children:[M.size," selected"]}),n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:1131",value:O,onValueChange:B,children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:1132",className:"h-7 text-xs w-40",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:1133",placeholder:"Set statusâ¦"})}),n.jsx(Fn,{"data-loc":"client/src/pages/Admin.tsx:1135",children:["pending","processing","complete","cancelled"].map(ve=>n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1137",value:ve,children:ve.charAt(0).toUpperCase()+ve.slice(1)},ve))})]}),n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1141",size:"sm",className:"h-7 text-xs",disabled:!O||E.isPending,onClick:()=>E.mutate({ids:Array.from(M),status:O}
461),children:E.isPending?"Updatingâ¦":"Apply"}),n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1145",variant:"ghost",size:"sm",className:"h-7 text-xs",onClick:()=>V(new Set),children:"Clear"})]}),Te.map(ve=>n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1150",className:"border border-border/50 rounded-2xl overflow-hidden",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1152",className:"flex items-center justify-between px-4 py-3 bg-muted/40 border-b border-border/40",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1153",className:"flex items-center gap-3",children:[n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1154",className:"w-8 h-8 rounded-full bg-primary/15 flex items-center justify-center shrink-0",children:n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1155",className:"text-xs font-bold text-primary",children:ve.customerName.charAt(0).toUpperCase()})}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1157",children:[n.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1158",className:"text-sm font-semibold text-primary hover:underline text-left",onClick:()=>{ve.userId&&(f(ve.userId),i("users"))},title:ve.userId?"View user profile":"Guest - no profile",disabled:!ve.userId,children:ve.customerName}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1166",className:"text-xs text-muted-foreground",children:ve.customerEmail})]})]}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1169",className:"flex items-center gap-2",children:n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1170",className:"text-xs text-muted-foreground bg-background border border-border/50 rounded-full px-2.5 py-0.5 font-medium",children:[ve.docs.length," order",ve.docs.length!==1?"s":""]})})]}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1176",className:"divide-y divide-border/30",children:ve.docs.map(Re=>n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1178",className:"flex items-start gap-2 p-3",children:[n.jsx("input",{"data-loc":"client/src/pages/Admin.tsx:1179",type:"checkbox",className:"mt-4 ml-1 h-4 w-4 rounded border-border accent-primary cursor-pointer shrink-0",checked:M.has(Re.id),onChange:We=>V(dt=>{const Qt=new Set(dt);return We.target.checked?Qt.add(Re.id):Qt.delete(Re.id),Qt})}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1189",className:"flex-1 min-w-0",children:n.jsx(YL,{"data-loc":"client/src/pages/Admin.tsx:1190",doc:Re,onStatusChange:(We,dt)=>k.mutate({id:We,status:dt}),onAssignStaff:(We,dt)=>D.mutate({id:We,staffName:dt||""}),staffList:w.data||[],onNotesChange:(We,dt)=>ct(Qt=>({...Qt,[We]:dt})),onSaveNotes:(We,dt)=>Mt.mutate({id:We,note:dt}),onDeleteNote:(We,dt)=>Ns.mutate({id:We,noteIndex:dt}),notesValue:Ie[Re.id]||"",notesSaving:Mt.isPending})}),e?.role==="admin"&&n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1203",variant:"ghost",size:"sm",className:"h-7 w-7 p-0 text-destructive hover:text-destructive hover:bg-destructive/10 shrink-0 mt-1",title:"Delete order",onClick:()=>Ht(Re.id),children:n.jsx(Gr,{"data-loc":"client/src/pages/Admin.tsx:1210",className:"w-3.5 h-3.5"})})]},Re.id))})]},ve.customerKey))]})})():n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1096",className:"text-sm text-muted-foreground text-center py-12",children:"No document orders yet."})]}),r==="team"&&n.jsx(Ue.div,{"data-loc":"client/src/pages/Admin.tsx:1227",initial:{opacity:0,y:10},animate:{opacity:1,y:0},children:n.jsx(rL,{"data-loc":"client/src/pages/Admin.tsx:1228",isMaster:re})}),r==="revenue"&&e?.role==="admin"&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/Admin.tsx:1234",initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"space-y-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1235",className:"flex items-center justify-between mb-2",children:[n.jsxs("h2",{"data-loc":"client/src/pages/Admin.tsx:1236",className:"font-display text-xl font-bold text-foreground flex items-center gap-2",children:[n.jsx(Qi,{"data-loc":"client/src/pages/Admin.tsx:1237",className:"w-5 h-5 text-green-500"})," Revenue Dashboard"]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1239",className:"flex items-center gap-2",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1240",className:"text-xs text-muted-foreground bg-amber-500/10 text-amber-600 px-2 py-0.5 rounded-full font-medium",children:"Admin only"}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1241",className:"flex items-center gap-1 bg-muted rounded-lg p-0.5",children:[{label:"30d",days:30},{label:"90d",days:90},{label:"6m",days:180},{label:"1y",days:365}].map(U=>n.jsx("button",{"data-loc":"client/src/pages/Admin.tsx:1243",onClick:()=>d(U.days),className:`px-2.5 py-1 rounded-md text-xs font-medium transition-colors ${c===U.days?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"}`,children:U.label},U.label))}),S.data?.monthly?.length?n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:1247",size:"sm",variant:"outline",className:"h-7 text-xs gap-1.5",onClick:()=>{const ye=[["Month","Gross (GBP)","Refunds (GBP)","Net (GBP)","Charges"],...(S.data?.monthly||[]).map(We=>[We.month,We.gross.toFixed(2),We.refunds.toFixed(2),We.net.toFixed(2),We.count])].map(We=>We.join(",")).join(` 462`),Te=new Blob([ye],{type:"text/csv"}),ve=URL.createObjectURL(Te),Re=document.createElement("a");Re.href=ve,Re.download=`docucert-revenue-${new Date().toISOString().slice(0,10)}.csv`,Re.click(),URL.revokeObjectURL(ve)},children:[n.jsx(FM,{"data-loc":"client/src/pages/Admin.tsx:1272",className:"w-3 h-3"})," Export CSV"]}):null]})]}),N.isLoading||S.isLoading?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1279",className:"flex items-center justify-center h-40",children:n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:1279",className:"w-6 h-6 animate-spin text-primary"})}):n.jsxs(n.Fragment,{children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1283",className:"grid grid-cols-2 sm:grid-cols-4 gap-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1284",className:"glass-card rounded-xl p-5",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1285",className:"text-xs text-muted-foreground mb-1",children:"Gross Revenue"}),n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:1286",className:"font-display font-bold text-2xl text-green-500",children:["£",(S.data?.totalGross||0).toLocaleStr
462ing("en-GB",{minimumFractionDigits:2,maximumFractionDigits:2})]}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1287",className:"text-xs text-muted-foreground mt-1",children:"Live from Stripe"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1289",className:"glass-card rounded-xl p-5",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1290",className:"text-xs text-muted-foreground mb-1",children:"Net Revenue"}),n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:1291",className:"font-display font-bold text-2xl text-foreground",children:["£",(S.data?.totalNet||0).toLocaleString("en-GB",{minimumFractionDigits:2,maximumFractionDigits:2})]}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1292",className:"text-xs text-muted-foreground mt-1",children:"After refunds"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1294",className:"glass-card rounded-xl p-5",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1295",className:"text-xs text-muted-foreground mb-1",children:"Refunds"}),n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:1296",className:"font-display font-bold text-2xl text-red-500",children:["£",(S.data?.totalRefunds||0).toLocaleString("en-GB",{minimumFractionDigits:2,maximumFractionDigits:2})]}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1297",className:"text-xs text-muted-foreground mt-1",children:"Last 6 months"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1299",className:"glass-card rounded-xl p-5",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1300",className:"text-xs text-muted-foreground mb-1",children:"Charges / Disputes"}),n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:1301",className:"font-display font-bold text-2xl text-foreground",children:[S.data?.totalCharges||0," ",n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1301",className:"text-sm font-normal text-red-400",children:["/ ",S.data?.totalDisputed||0]})]}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1302",className:"text-xs text-muted-foreground mt-1",children:"Succeeded / Disputed"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1307",className:"glass-card rounded-xl p-6",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:1308",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(yc,{"data-loc":"client/src/pages/Admin.tsx:1309",className:"w-4 h-4 text-green-500"})," Monthly Stripe Revenue (Last 6 Months)"]}),S.data?.monthly?.length?(()=>{const U=Math.max(...(S.data?.monthly||[]).map(ye=>ye.gross),1);return n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1316",className:"flex items-end gap-3 h-40",children:(S.data?.monthly||[]).map(ye=>{const Te=ye.gross/U*100,ve=ye.net/U*100,[Re,We]=ye.month.split("-"),dt=new Date(Number(Re),Number(We)-1).toLocaleString("en-GB",{month:"short",year:"2-digit"});return n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1323",className:"flex-1 flex flex-col items-center gap-1",children:[n.jsxs("span",{"data-loc":"client/src/pages/Admin.tsx:1324",className:"text-xs font-semibold text-green-600",children:["£",ye.gross.toFixed(0)]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1325",className:"w-full relative",style:{height:"100px"},children:[n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1327",className:"absolute bottom-0 w-full bg-green-500/30 rounded-t-sm",style:{height:`${Te}%`}}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1329",className:"absolute bottom-0 w-full bg-green-500/80 rounded-t-sm",style:{height:`${ve}%`}})]}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1331",className:"text-[10px] text-muted-foreground",children:dt})]},ye.month)})})})():n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1312",className:"text-sm text-muted-foreground text-center py-8",children:"No Stripe revenue data yet."})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1341",className:"glass-card rounded-xl p-6",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:1342",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(yc,{"data-loc":"client/src/pages/Admin.tsx:1343",className:"w-4 h-4 text-primary"})," Monthly Document Orders (Last 6 Months)"]}),(()=>{const U=(N.data?.monthlyDocs||[]).sort((Te,ve)=>Te.month.localeCompare(ve.month));if(!U.length)return n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1347",className:"text-sm text-muted-foreground text-center py-8",children:"No order data yet."});const ye=Math.max(...U.map(Te=>Te.count),1);return n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1350",className:"flex items-end gap-3 h-40",children:U.map(Te=>{const[ve,Re]=Te.month.split("-"),We=new Date(Number(ve),Number(Re)-1).toLocaleStr
462ing("en-GB",{month:"short",year:"2-digit"}),dt=Te.count/ye*100;return n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1356",className:"flex-1 flex flex-col items-center gap-1",children:[n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1357",className:"text-xs font-semibold text-primary",children:Te.count}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1358",className:"w-full relative",style:{height:"100px"},children:n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1359",className:"absolute bottom-0 w-full bg-primary/70 rounded-t-sm",style:{height:`${dt}%`},title:`${Te.count} orders`})}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1361",className:"text-[10px] text-muted-foreground",children:We})]},Te.month)})})})()]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1370",className:"glass-card rounded-xl p-6",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:1371",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(mt,{"data-loc":"client/src/pages/Admin.tsx:1372",className:"w-4 h-4 text-purple-500"})," Revenue by Document Type"]}),Object.keys(N.data?.documents.revenueByDocType||{}).length?(()=>{const U=Object.entries(N.data?.documents.revenueByDocType||{}).map(([Te,ve])=>({type:Te,rev:ve,count:N.data?.documents.byDocType?.[Te]||0})).sort((Te,ve)=>ve.rev-Te.rev),ye=Math.max(...U.map(Te=>Te.rev),1);return n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1382",className:"space-y-3",children:U.map(({type:Te,rev:ve,count:Re})=>n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1384",className:"flex items-center gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1385",className:"w-40 shrink-0",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1386",className:"text-xs font-medium text-foreground truncate",children:nu[Te]||Te}),n.jsxs("p",{"data-loc":"client/src/pages/Admin.tsx:1387",className:"text-[10px] text-muted-foreground",children:[Re," order",Re!==1?"s":""]})]}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1389",className:"flex-1 bg-muted rounded-full h-2 overflow-hidden",children:n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1390",className:"h-full bg-purple-500/70 rounded-full",style:{width:`${ve/ye*100}%`}})}),n.jsx("span",{"data-loc":"client/src/pages/Admin.tsx:1392",className:"text-xs font-semibold text-foreground w-16 text-right",children:`£${ve.toFixed(2)}`})]},Te))})})():n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1375",className:"text-sm text-muted-foreground text-center py-6",children:"No revenue data yet."})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1400",className:"glass-card rounded-xl p-6",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:1401",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(mt,{"data-loc":"client/src/pages/Admin.tsx:1402",className:"w-4 h-4 text-amber-500"})," Payment Status Breakdown"]}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1404",className:"flex flex-wrap gap-3",children:Object.entries(N.data?.documents.byPayment||{}).map(([U,ye])=>n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1406",className:"glass-card rounded-lg px-4 py-3 text-center min-w-[100px]",children:[n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1407",className:"font-bold text-xl text-foreground",children:ye}),n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1408",className:"text-xs text-muted-foreground capitalize mt-0.5",children:U.replace(/_/g," ")})]},U))})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1414",className:"glass-card rounded-xl p-6",children:[n.jsxs("h3",{"data-loc":"client/src/pages/Admin.tsx:1415",className:"font-semibold text-foreground mb-4 flex items-center gap-2",children:[n.jsx(Qi,{"data-loc":"client/src/pages/Admin.tsx:1416",className:"w-4 h-4 text-green-500"})," Recent Stripe Transactions"]}),S.data?.recent?.length?n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1421",className:"overflow-x-auto",children:n.jsxs("table",{"data-loc":"client/src/pages/Admin.tsx:1422",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/Admin.tsx:1423",children:n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:1424",className:"border-b border-border/40",children:[n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:1425",className:"text-left py-2 px-3 text-xs font-medium text-muted-foreground",children:"Date"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:1426",className:"text-left py-2 px-3 text-xs font-medium text-muted-foreground",children:"Customer"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:1427",className:"text-left py-2 px-3 text-xs font-medium text-muted-foreground",children:"Description"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:1428",className:"text-right py-2 px-3 text-xs font-medium text-muted-foreground",children:"Amount"}),n.jsx("th",{"data-loc":"client/src/pages/Admin.tsx:1429",className:"py-2 px-3"})]})}),n.jsx("tbody",{"data-loc":"client/src/pages/Admin.tsx:1432",children:S.data.recent.map(U=>n.jsxs("tr",{"data-loc":"client/src/pages/Admin.tsx:1434",className:"border-b border-border/20 hover:bg-muted/30 transition-colors",children:[n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:1435",className:"py-2 px-3 text-xs text-muted-foreground whitespace-nowrap",children:new Date(U.createdAt).toLocaleDateString("en-GB",{day:"2-digit",month:"short",year:"2-digit"})}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:1436",className:"py-2 px-3 text-xs text-foreground",children:U.customerEmail||"-"}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:1437",className:"py-2 px-3 text-xs text-muted-foreground truncate max-w-[200px]",children:U.description}),n.jsxs("td",{"data-loc":"client/src/pages/Admin.tsx:1438",className:"py-2 px-3 text-xs font-semibold text-green-600 text-right whitespace-nowrap",children:[U.currency," ",U.amount.toLocaleStr
462ing("en-GB",{minimumFractionDigits:2,maximumFractionDigits:2})]}),n.jsx("td",{"data-loc":"client/src/pages/Admin.tsx:1439",className:"py-2 px-3",children:U.receiptUrl&&n.jsx("a",{"data-loc":"client/src/pages/Admin.tsx:1441",href:U.receiptUrl,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-primary hover:underline",children:"Receipt"})})]},U.id))})]})}):n.jsx("p",{"data-loc":"client/src/pages/Admin.tsx:1419",className:"text-sm text-muted-foreground text-center py-6",children:"No transactions yet."})]})]})]})]}),n.jsx(Hh,{"data-loc":"client/src/pages/Admin.tsx:1458",open:Z,onOpenChange:he,children:n.jsxs(Ih,{"data-loc":"client/src/pages/Admin.tsx:1459",className:"max-w-lg max-h-[90vh] overflow-y-auto",children:[n.jsxs(Vh,{"data-loc":"client/src/pages/Admin.tsx:1460",children:[n.jsx(qh,{"data-loc":"client/src/pages/Admin.tsx:1461",children:"Create Document Order"}),n.jsx(Fh,{"data-loc":"client/src/pages/Admin.tsx:1462",children:"Manually create a document service order from an email enquiry."})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1464",className:"space-y-3 py-2",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1466",className:"relative",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1467",className:"text-xs",children:"Search Existing Customer"}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1468",className:"relative mt-1",children:[n.jsx(hu,{"data-loc":"client/src/pages/Admin.tsx:1469",className:"absolute left-2 top-1/2 -translate-y-1/2 w-3.5 h-3.5 text-muted-foreground"}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1470",className:"h-8 text-sm pl-7",placeholder:"Type name or email to find a registered customer...",value:_,onChange:U=>{X(U.target.value),ge(!0)},onFocus:()=>ge(!0)})]}),se&&_.length>=2&&n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1479",className:"absolute z-50 mt-1 w-full bg-popover border border-border rounded-md shadow-md max-h-48 overflow-y-auto",children:[(b.data||[]).filter(U=>U.name?.toLowerCase().includes(_.toLowerCase())||U.email?.toLowerCase().includes(_.toLowerCase())).slice(0,8).map(U=>n.jsxs("button",{"data-loc":"client/src/pages/Admin.tsx:1484",type:"button",className:"w-full text-left px-3 py-2 text-sm hover:bg-accent hover:text-accent-foreground flex items-center gap-2",onClick:()=>{fe(ye=>({...ye,customerName:U.name||"",customerEmail:U.email||""})),X(U.name||U.email||""),ge(!1)},children:[n.jsx(Jr,{"data-loc":"client/src/pages/Admin.tsx:1494",className:"w-3.5 h-3.5 text-muted-foreground shrink-0"}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1495",children:[n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1496",className:"font-medium",children:U.name}),n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1497",className:"text-xs text-muted-foreground",children:U.email})]})]},U.id)),(b.data||[]).filter(U=>U.name?.toLowerCase().includes(_.toLowerCase())||U.email?.toLowerCase().includes(_.toLowerCase())).length===0&&n.jsx("div",{"data-loc":"client/src/pages/Admin.tsx:1502",className:"px-3 py-2 text-sm text-muted-foreground",children:"No registered users found - fill in details below"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1507",className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1508",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1509",className:"text-xs",children:"Customer Name *"}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1510",className:"mt-1 h-8 text-sm",value:ie.customerName,onChange:U=>fe(ye=>({...ye,customerName:U.target.value})),placeholder:"Jane Smith"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1512",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1513",className:"text-xs",children:"Customer Email *"}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1514",className:"mt-1 h-8 text-sm",type:"email",value:ie.customerEmail,onChange:U=>fe(ye=>({...ye,customerEmail:U.target.value})),placeholder:"[email protected]"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1517",className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1518",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1519",className:"text-xs",children:"Phone"}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1520",className:"mt-1 h-8 text-sm",value:ie.customerPhone,onChange:U=>fe(ye=>({...ye,customerPhone:U.target.value})),placeholder:"+44 7700 000000"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1522",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1523",className:"text-xs",children:"Company"}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1524",className:"mt-1 h-8 text-sm",value:ie.customerCompany,onChange:U=>fe(ye=>({...ye,customerCompany:U.target.value})),placeholder:"Acme Ltd"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1527",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1528",className:"text-xs",children:"Customer Reference"}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1529",className:"mt-1 h-8 text-sm",value:ie.customerRef,onChange:U=>fe(ye=>({...ye,customerRef:U.target.value})),placeholder:"Their PO / reference number"})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1531",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1532",className:"text-xs",children:"Certificates *"}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1533",className:"mt-1 space-y-2",children:[ie.docTypes.map((U,ye)=>n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1535",className:"flex items-center gap-2",children:[n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:1536",value:U.docType,onValueChange:Te=>fe(ve=>{const Re=[...ve.docTypes];return Re[ye]={...Re[ye],docType:Te},{...ve,docTypes:Re}}),children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:1537",className:"h-8 text-sm flex-1",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:1537"})}),n.jsx(Fn,{"data-loc":"client/src/pages/Admin.tsx:1538",children:Object.entries(nu).map(([Te,ve])=>n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1540",value:Te,children:ve},Te))})]}),n.jsx(Fe,{"data-loc":"client/src/pages/Admin.tsx:1544",className:"h-8 text-sm w-24",type:"number",min:"0",step:"0.01",value:U.priceGbp,onChange:Te=>fe(ve=>{const Re=[...ve.docTypes];return Re[ye]={...Re[ye],priceGbp:Te.target.value},{...ve,docTypes:Re}}),placeholder:"£ price"}),ie.docTypes.length>1&&n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1546",variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0 text-destructive hover:text-destructive",onClick:()=>fe(Te=>({...Te,docTypes:Te.docTypes.filter((ve,Re)=>Re!==ye)})),children:n.jsx(_s,{"data-loc":"client/src/pages/Admin.tsx:1547",className:"w-3.5 h-3.5"})})]},ye)),n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:1552",variant:"outline",size:"sm",className:"h-7 text-xs mt-1",onClick:()=>fe(U=>({...U,docTypes:[...U.docTypes,{docType:"cert_of_origin_uk",priceGbp:""}]})),children:[n.jsx(Kn,{"data-loc":"client/src/pages/Admin.tsx:1553",className:"w-3 h-3 mr-1"})," Add Certificate"]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1557",className:"grid grid-cols-2 gap-3",children:[n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1558",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1559",className:"text-xs",children:"Payment Status"}),n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:1560",value:ie.paymentStatus,onValueChange:U=>fe(ye=>({...ye,paymentStatus:U})),children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:1561",className:"mt-1 h-8 text-sm",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:1561"})}),n.jsxs(Fn,{"data-loc":"client/src/pages/Admin.tsx:1562",children:[n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1563",value:"paid",children:"Paid"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1564",value:"pending",children:"Pending"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1565",value:"failed",children:"Failed"})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1569",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1570",className:"text-xs",children:"Initial Status"}),n.jsxs(In,{"data-loc":"client/src/pages/Admin.tsx:1571",value:ie.status,onValueChange:U=>fe(ye=>({...ye,status:U})),children:[n.jsx(qn,{"data-loc":"client/src/pages/Admin.tsx:1572",className:"mt-1 h-8 text-sm",children:n.jsx(Vn,{"data-loc":"client/src/pages/Admin.tsx:1572"})}),n.jsxs(Fn,{"data-loc":"client/src/pages/Admin.tsx:1573",children:[n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1574",value:"pending",children:"Pending"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1575",value:"processing",children:"Processing"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1576",value:"complete",children:"Complete"}),n.jsx(zt,{"data-loc":"client/src/pages/Admin.tsx:1577",value:"cancelled",children:"Cancelled"})]})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1582",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1583",className:"text-xs",children:"Special Instructions"}),n.jsx(wu,{"data-loc":"client/src/pages/Admin.tsx:1584",className:"mt-1 text-sm min-h-[60
462px]",value:ie.specialInstructions,onChange:U=>fe(ye=>({...ye,specialInstructions:U.target.value})),placeholder:"Any special instructions from the customer..."})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1586",children:[n.jsx(qe,{"data-loc":"client/src/pages/Admin.tsx:1587",className:"text-xs",children:"Internal Notes"}),n.jsx(wu,{"data-loc":"client/src/pages/Admin.tsx:1588",className:"mt-1 text-sm min-h-[60px]",value:ie.notes,onChange:U=>fe(ye=>({...ye,notes:U.target.value})),placeholder:"Internal staff notes..."})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1591",className:"flex justify-end gap-2 pt-2",children:[n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1592",variant:"outline",size:"sm",onClick:()=>he(!1),children:"Cancel"}),n.jsxs(oe,{"data-loc":"client/src/pages/Admin.tsx:1593",size:"sm",disabled:!ie.customerName||!ie.customerEmail||ie.docTypes.length===0||!ie.docTypes.every(U=>U.priceGbp)||Pe.isPending,onClick:()=>Pe.mutate({customerName:ie.customerName,customerEmail:ie.customerEmail,customerPhone:ie.customerPhone||void 0,customerCompany:ie.customerCompany||void 0,customerRef:ie.customerRef||void 0,docTypes:ie.docTypes.map(U=>({docType:U.docType,priceGbp:parseFloat(U.priceGbp)||0})),specialInstructions:ie.specialInstructions||void 0,notes:ie.notes||void 0,paymentStatus:ie.paymentStatus,status:ie.status}),children:[Pe.isPending?n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:1606",className:"w-3.5 h-3.5 animate-spin"}):n.jsx(Kn,{"data-loc":"client/src/pages/Admin.tsx:1606",className:"w-3.5 h-3.5"}),"Create Order"]})]})]})}),n.jsx(Hh,{"data-loc":"client/src/pages/Admin.tsx:1614",open:Pa!==null,onOpenChange:U=>{U||Ht(null)},children:n.jsxs(Ih,{"data-loc":"client/src/pages/Admin.tsx:1615",className:"max-w-sm",children:[n.jsxs(Vh,{"data-loc":"client/src/pages/Admin.tsx:1616",children:[n.jsxs(qh,{"data-loc":"client/src/pages/Admin.tsx:1617",className:"flex items-center gap-2 text-destructive",children:[n.jsx(Gr,{"data-loc":"client/src/pages/Admin.tsx:1618",className:"w-4 h-4"})," Delete Order"]}),n.jsx(Fh,{"data-loc":"client/src/pages/Admin.tsx:1620",children:"Are you sure you want to permanently delete this order? This action cannot be undone and will also remove all associated files."})]}),n.jsxs("div",{"data-loc":"client/src/pages/Admin.tsx:1624",className:"flex justify-end gap-2 pt-2",children:[n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1625",variant:"outline",onClick:()=>Ht(null),disabled:pa.isPending,children:"Cancel"}),n.jsx(oe,{"data-loc":"client/src/pages/Admin.tsx:1628",variant:"destructive",onClick:()=>Pa!==null&&pa.mutate({id:Pa}),disabled:pa.isPending,children:pa.isPending?n.jsxs(n.Fragment,{children:[n.jsx(ht,{"data-loc":"client/src/pages/Admin.tsx:1633",className:"w-3.5 h-3.5 animate-spin mr-1"})," Deletingâ¦"]}):"Delete Order"})]})]})})]})}function XL(){return n.jsxs("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:7",className:"min-h-screen bg-background text-foreground",children:[n.jsx("header",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:9",className:"border-b border-border/40 py-4 px-6",children:n.jsxs("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:10",className:"max-w-4xl mx-auto flex items-center justify-between",children:[n.jsx(Ne,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:11",href:"/",children:n.jsxs("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:12",className:"flex items-center gap-2 cursor-pointer",children:[n.jsx("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:13",className:"w-7 h-7 rounded bg-primary flex items-center justify-center",children:n.jsx(la,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:14",className:"w-4 h-4 text-primary-foreground"})}),n.jsx("span",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:16",className:"font-bold text-lg text-foreground",children:"Docucert"})]})}),n.jsx(Ne,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:19",href:"/",children:n.jsxs(oe,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:20",variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground",children:[n.jsx(sr,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:21",className:"w-4 h-4"})," Back to home"]})})]})}),n.jsxs("main",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:28",className:"max-w-4xl mx-auto px-6 py-12",children:[n.jsxs("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:29",className:"mb-8",children:[n.jsx("h1",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:30",className:"text-3xl font-bold text-foreground mb-2",children:"Privacy Policy"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:31",className:"text-muted-foreground text-sm",children:"Last updated: 22 June 2026"})]}),n.jsxs("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:34",className:"prose prose-neutral dark:prose-invert max-w-none space-y-8 text-foreground",children:[n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:35",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:36",className:"text-xl font-semibold text-foreground mb-3",children:"1. Who We Are"}),n.jsxs("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:37",className:"text-muted-foreground leading-relaxed",children:['Docucert Ltd ("we", "us", "our") is a trade document certification platform registered in England and Wales (Company No. 17305458). Our registered office is at 167â169 Great Portland Street, 5th Floor, London, W1W 5PF. We provide LCCI Certificates of Origin, EUR-1 movement certificates, apostilles, embassy legalisation, and related export documentation services to UK exporters. Our registered contact email is'," ",n.jsx("a",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:39",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:43",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:44",className:"text-xl font-semibold text-foreground mb-3",children:"2. Information We Collect"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:45",className:"text-muted-foreground leading-relaxed mb-3",children:"We collect the following categories of personal data:"}),n.jsxs("ul",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:46",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:47",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:47",className:"text-foreground",children:"Account information:"})," name, email address, and authentication data when you create an account."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:48",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:48",className:"text-foreground",children:"Order data:"})," company name, contact details, and document information required to process your certification application."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:49",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:49",className:"text-foreground",children:"Payment information:"})," billing details processed securely through Stripe. We do not store card numbers or CVV codes."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:50",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:50",className:"text-foreground",children:"Usage data:"})," pages visited, features used, IP address, browser type, and device information collected via anal
462ytics."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:51",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:51",className:"text-foreground",children:"Communications:"})," messages you send us via our contact form, email, or support channels."]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:55",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:56",className:"text-xl font-semibold text-foreground mb-3",children:"3. How We Use Your Information"}),n.jsxs("ul",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:57",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:58",children:"To create and manage your account and authenticate your identity."}),n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:59",children:"To process document certification orders and submit applications to the relevant issuing authorities on your behalf."}),n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:60",children:"To process payments through Stripe."}),n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:61",children:"To send transactional emails (order confirmations, draft documents for review, invoices)."}),n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:62",children:"To respond to enquiries and provide customer support."}),n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:63",children:"To improve our platform, detect fraud, and ensure security."}),n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:64",children:"To send service-related communications (we do not send unsolicited marketing without consent)."})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:68",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:69",className:"text-xl font-semibold text-foreground mb-3",children:"4. Legal Basis for Processing (UK GDPR)"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:70",className:"text-muted-foreground leading-relaxed mb-3",children:"We process your personal data under the following lawful bases:"}),n.jsxs("ul",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:71",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:72",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:72",className:"text-foreground",children:"Contract performance:"})," processing necessary to fulfil certification orders."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:73",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:73",className:"text-foreground",children:"Legitimate interests:"})," fraud prevention, platform security, and service improvement."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:74",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:74",className:"text-foreground",children:"Legal obligation:"})," compliance with customs, export control, and financial regulations."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:75",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:75",className:"text-foreground",children:"Consent:"})," marketing communications where you have opted in."]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:79",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:80",className:"text-xl font-semibold text-foreground mb-3",children:"5. Data Sharing"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:81",className:"text-muted-foreground leading-relaxed mb-3",children:"We share your data only where necessary:"}),n.jsxs("ul",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:82",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:83",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:83",className:"text-foreground",children:"Issuing authorities:"})," relevant order and document data is shared with the LCCI, FCDO, embassies, or other bodies as required to process your application."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:84",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:84",className:"text-foreground",children:"Stripe:"})," payment processing. Stripe's privacy policy applies to data processed by them."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:85",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:85",className:"text-foreground",children:"Customs authorities:"})," export declarations and related data as required by law."]}),n.jsx("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:86",children:"We do not sell your personal data to third parties."})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:90",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:91",className:"text-xl font-semibold text-foreground mb-3",children:"6. Data Retention"}),n.jsxs("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:92",className:"text-muted-foreground leading-relaxed",children:["We retain account data for as long as your account is active. Order and certification records are retained for 7 years to comply with UK financial and customs regulations. You may request deleti
462on of your account and associated data by contacting us at"," ",n.jsx("a",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:94",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),", subject to legal retention requirements."]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:98",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:99",className:"text-xl font-semibold text-foreground mb-3",children:"7. Your Rights"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:100",className:"text-muted-foreground leading-relaxed mb-3",children:"Under UK GDPR, you have the right to:"}),n.jsxs("ul",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:101",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:102",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:102",className:"text-foreground",children:"Access"})," the personal data we hold about you."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:103",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:103",className:"text-foreground",children:"Rectification"})," of inaccurate or incomplete data."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:104",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:104",className:"text-foreground",children:"Erasure"}),' ("right to be forgotten") where applicable.']}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:105",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:105",className:"text-foreground",children:"Restriction"})," of processing in certain circumstances."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:106",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:106",className:"text-foreground",children:"Data portability"})," in a machine-readable format."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:107",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:107",className:"text-foreground",children:"Object"})," to processing based on legitimate interests."]}),n.jsxs("li",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:108",children:[n.jsx("strong",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:108",className:"text-foreground",children:"Withdraw consent"})," at any time where processing is consent-based."]})]}),n.jsxs("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:110",className:"text-muted-foreground leading-relaxed mt-3",children:["To exercise any of these rights, contact us at"," ",n.jsx("a",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:112",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),". You also have the right to lodge a complaint with the Information Commissioner's Office (ICO) at"," ",n.jsx("a",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:113",href:"https://ico.org.uk",target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:"ico.org.uk"}),"."]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:117",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:118",className:"text-xl font-semibold text-foreground mb-3",children:"8. International Transfers"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:119",className:"text-muted-foreground leading-relaxed",children:"Some of our service providers (including Stripe) may process data outside the UK and EEA. Where this occurs, we ensure appropriate safeguards are in place, such as Standard Contractual Clauses or adequacy decisions."})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:124",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:125",className:"text-xl font-semibold text-foreground mb-3",children:"9. Security"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:126",className:"text-muted-foreground leading-relaxed",children:"We implement industry-standard security measures including HTTPS encryption, secure authentication, and access controls. However, no system is completely secure. Please use a strong, unique password and notify us immediately if you suspect unauthorised access to your account."})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:131",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:132",className:"text-xl font-semibold text-foreground mb-3",children:"10. Changes to This Policy"}),n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:133",className:"text-muted-foreground leading-relaxed",children:"We may update this Privacy Policy from time to time. Material changes will be communicated via email or a prominent notice on the platform. Continued use of Docucert after changes constitutes acceptance of the updated policy."})]}),n.jsxs("section",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:138",children:[n.jsx("h2",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:139",className:"text-xl font-semibold text-foreground mb-3",children:"11. Contact Us"}),n.jsxs("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:140",className:"text-muted-foreground leading-relaxed",children:["For any privacy-related queries, please contact us at"," ",n.jsx("a",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:142",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),". Docucert Ltd, 167â169 Great Portland Street, 5th Floor, London, W1W 5PF. Company No. 17305458."]})]})]})]}),n.jsx("footer",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:150",className:"border-t border-border/40 py-6 px-6 mt-12",children:n.jsxs("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:151",className:"max-w-4xl mx-auto
462space-y-3",children:[n.jsx("p",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:152",className:"text-xs text-muted-foreground",children:"Docucert Ltd - Registered in England and Wales, Company No. 17305458. Registered Office: 167â169 Great Portland Street, 5th Floor, London, W1W 5PF."}),n.jsxs("div",{"data-loc":"client/src/pages/PrivacyPolicy.tsx:153",className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[n.jsx(Ne,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:154",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:155",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),n.jsx(Ne,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:156",href:"/cookies",className:"hover:text-foreground transition-colors",children:"Cookie Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/PrivacyPolicy.tsx:157",href:"/payment-terms",className:"hover:text-foreground transition-colors",children:"Payment Terms"})]})]})})]})}function WL(){return n.jsxs("div",{"data-loc":"client/src/pages/TermsOfService.tsx:7",className:"min-h-screen bg-background text-foreground",children:[n.jsx("header",{"data-loc":"client/src/pages/TermsOfService.tsx:9",className:"border-b border-border/40 py-4 px-6",children:n.jsxs("div",{"data-loc":"client/src/pages/TermsOfService.tsx:10",className:"max-w-4xl mx-auto flex items-center justify-between",children:[n.jsx(Ne,{"data-loc":"client/src/pages/TermsOfService.tsx:11",href:"/",children:n.jsxs("div",{"data-loc":"client/src/pages/TermsOfService.tsx:12",className:"flex items-center gap-2 cursor-pointer",children:[n.jsx("div",{"data-loc":"client/src/pages/TermsOfService.tsx:13",className:"w-7 h-7 rounded bg-primary flex items-center justify-center",children:n.jsx(la,{"data-loc":"client/src/pages/TermsOfService.tsx:14",className:"w-4 h-4 text-primary-foreground"})}),n.jsx("span",{"data-loc":"client/src/pages/TermsOfService.tsx:16",className:"font-bold text-lg text-foreground",children:"Docucert"})]})}),n.jsx(Ne,{"data-loc":"client/src/pages/TermsOfService.tsx:19",href:"/",children:n.jsxs(oe,{"data-loc":"client/src/pages/TermsOfService.tsx:20",variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground",children:[n.jsx(sr,{"data-loc":"client/src/pages/TermsOfService.tsx:21",className:"w-4 h-4"})," Back to home"]})})]})}),n.jsxs("main",{"data-loc":"client/src/pages/TermsOfService.tsx:28",className:"max-w-4xl mx-auto px-6 py-12",children:[n.jsxs("div",{"data-loc":"client/src/pages/TermsOfService.tsx:29",className:"mb-8",children:[n.jsx("h1",{"data-loc":"client/src/pages/TermsOfService.tsx:30",className:"text-3xl font-bold text-foreground mb-2",children:"Terms of Service"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:31",className:"text-muted-foreground text-sm",children:"Last updated: 22 June 2026"})]}),n.jsxs("div",{"data-loc":"client/src/pages/TermsOfService.tsx:34",className:"space-y-8 text-foreground",children:[n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:35",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:36",className:"text-xl font-semibold text-foreground mb-3",children:"1. Acceptance of Terms"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:37",className:"text-muted-foreground leading-relaxed",children:'By accessing or using the Docucert platform ("Service"), you agree to be bound by these Terms of Service ("Terms"). If you do not agree to these Terms, you may not use the Service. The
462se Terms constitute a legally binding agreement between you and Docucert. We reserve the right to update these Terms at any time; continued use of the Service constitutes acceptance of any changes.'})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:42",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:43",className:"text-xl font-semibold text-foreground mb-3",children:"2. Description of Service"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:44",className:"text-muted-foreground leading-relaxed",children:"Docucert is a trade document certification platform providing LCCI Certificates of Origin, EUR-1 movement certificates, apostilles, embassy legalisation, ATA Carnets, and related export documentation services. We act as an agent on your behalf in submitting applications to the relevant issuing authorities. We are not an issuing authority and the final decision on certification rests with the relevant body (e.g. the London Chamber of Commerce and Industry, the Foreign, Commonwealth & Development Office, or the relevant embassy)."})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:49",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:50",className:"text-xl font-semibold text-foreground mb-3",children:"3. Account Registration"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:51",className:"text-muted-foreground leading-relaxed mb-3",children:"To use the Service, you must create an account. You agree to:"}),n.jsxs("ul",{"data-loc":"client/src/pages/TermsOfService.tsx:54",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:55",children:"Provide accurate, current, and complete information during registration."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:56",children:"Maintain the security of your account credentials and not share them with third parties."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:57",children:"Notify us immediately of any unauthorised use of your account."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:58",children:"Be responsible for all activity that occurs under your account."})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:62",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:63",className:"text-xl font-semibold text-foreground mb-3",children:"4. Pricing and Payment"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:64",className:"text-muted-foreground leading-relaxed mb-3",children:"Docucert operates on a pay-per-transaction basis. You pay only for the services you order at the price confirmed at the time of booking. All prices are shown in GBP and are inclusive of our service fee. Third-party fees (e.g. LCCI certification fees, embassy fees, courier charges) are itemised separately where applicable."}),n.jsxs("p",{"data-loc":"client/src/pages/TermsOfService.tsx:67",className:"text-muted-foreground leading-relaxed mb-3",children:["Payments are processed securely via Stripe. By completing a purchase you authorise Docucert to charge your selected payment method for the amount shown at checkout. Qualified customers may apply for Net 30 invoice terms - see our"," ",n.jsx(Ne,{"data-loc":"client/src/pages/TermsOfService.tsx:69",href:"/payment-terms",className:"text-primary hover:underline",children:"Payment Terms"})," for details."]}),n.jsxs("p",{"data-loc":"client/src/pages/TermsOfService.tsx:71",className:"text-muted-foreground leading-relaxed",children:["All sales are final once an application has been submitted to the issuing authority on your behalf. Refunds for orders not yet submitted are available on request - contact"," ",n.jsx("a",{"data-loc":"client/src/pages/TermsOfService.tsx:73",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:77",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:78",className:"text-xl font-semibold text-foreground mb-3",children:"5. Your Responsibilities"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:79",className:"text-muted-foreground leading-relaxed mb-3",children:"You are responsible for ensuring that all information and documents you provide to Docucert are accurate, complete, and authentic. You must not submit:"}),n.jsxs("ul",{"data-loc":"client/src/pages/TermsOfService.tsx:82",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:83",children:"False or misleading declarations of origin, value, or description of goods."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:84",children:"Forged, altered, or fraudulent documents."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:85",children:"Applications that would breach UK export control laws or international sanctions."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:86",children:"Applications for goods or transactions prohibited by the issuing authority's rules."})]}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:88",className:"text-muted-foreground leading-relaxed mt-3",children:"Docucert reserves the right to decline or cancel any order and terminate accounts where we reasonably suspect a breach of these obligations."})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:93",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:94",className:"text-xl font-semibold text-foreground mb-3",children:"6. Document Review and Submission"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:95",className:"text-muted-foreground leading-relaxed",children:"Before submitting any application to an issuing authority, a member of our team will review your documents and contact you with a draft copy for your approval. We will not submit on your behalf until you have confirmed the details are correct. Processing times are estimates only and may vary depending on the issuing authority's workload."})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:100",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:101",className:"text-xl font-semibold text-foreground mb-3",children:"7. Liability and Disclaimers"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:102",className:"text-muted-foreground leading-relaxed mb-3",children:"Docucert acts as an agent and intermediary. To the maximum extent permitted by law:"}),n.jsxs("ul",{"data-loc":"client/src/pages/TermsOfService.tsx:105",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:106",children:"We are not liable for rejection of an application by an issuing authority where the rejection is due to inaccurate or incomplete information provided by you."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:107",children:"We are not liable for delays caused by the issuing authority, embassy, or courier."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:108",children:"We are not liable for indirect, consequential, or punitive damages arising from use of the Service."}),n.jsx("li",{"data-loc":"client/src/pages/TermsOfService.tsx:109",children:"Our total liability to you for any claim shall not exceed the fees paid by you in the 3 months preceding the claim."})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:113",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:114",className:"text-xl font-semibold text-foreground mb-3",children:"8. Intellectual Property"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:115",className:"text-muted-foreground leading-relaxed",children:"All content, trademarks, and software on the Docucert platform are owned by or licensed to Docucert. You may not reproduce, distribute, or create derivative works without our express written permission."})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:120",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:121",className:"text-xl font-semibold text-foreground mb-3",children:"9. Termination"}),n.jsxs("p",{"data-loc":"client/src/pages/TermsOfService.tsx:122",className:"text-muted-foreground leading-relaxed",children:["We reserve the right to suspend or terminate your account at any time for breach of these Terms, fraudulent activity, or any other reason at our sole discretion. You may close your account at any time by contacting us at"," ",n.jsx("a",{"data-loc":"client/src/pages/TermsOfService.tsx:124",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:128",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:129",className:"text-xl font-semibold text-foreground mb-3",children:"10. Governing Law"}),n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:130",className:"text-muted-foreground leading-relaxed",children:"These Terms are governed by the laws of England and Wales. Any disputes shall be subject to the exclusive jurisdiction of the courts of England and Wales."})]}),n.jsxs("section",{"data-loc":"client/src/pages/TermsOfService.tsx:135",children:[n.jsx("h2",{"data-loc":"client/src/pages/TermsOfService.tsx:136",className:"text-xl font-semibold text-foreground mb-3",children:"11. Contact"}),n.jsxs("p",{"data-loc":"client/src/pages/TermsOfService.tsx:137",className:"text-muted-foreground leading-relaxed",children:["For any questions about these Terms, contact us at"," ",n.jsx("a",{"data-loc":"client/src/pages/TermsOfService.tsx:139",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),". Docucert Ltd, 167â169 Great Portland Street, 5th Floor, London, W1W 5PF. Registered in England and Wales, Company No. 17305458."]})]})]})]}),n.jsx("footer",{"data-loc":"client/src/pages/TermsOfService.tsx:147",className:"border-t border-border/40 py-6 px-6 mt-12",children:n.jsxs("div",{"data-loc":"client/src/pages/TermsOfService.tsx:148",className:"max-w-4xl mx-auto
462space-y-3",children:[n.jsx("p",{"data-loc":"client/src/pages/TermsOfService.tsx:149",className:"text-xs text-muted-foreground",children:"Docucert Ltd - Registered in England and Wales, Company No. 17305458. Registered Office: 167â169 Great Portland Street, 5th Floor, London, W1W 5PF."}),n.jsxs("div",{"data-loc":"client/src/pages/TermsOfService.tsx:150",className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[n.jsx(Ne,{"data-loc":"client/src/pages/TermsOfService.tsx:151",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/TermsOfService.tsx:152",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),n.jsx(Ne,{"data-loc":"client/src/pages/TermsOfService.tsx:153",href:"/cookies",className:"hover:text-foreground transition-colors",children:"Cookie Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/TermsOfService.tsx:154",href:"/payment-terms",className:"hover:text-foreground transition-colors",children:"Payment Terms"})]})]})})]})}function ZL(){return n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:7",className:"min-h-screen bg-background text-foreground",children:[n.jsx("header",{"data-loc":"client/src/pages/CookiePolicy.tsx:9",className:"border-b border-border/40 py-4 px-6",children:n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:10",className:"max-w-4xl mx-auto flex items-center justify-between",children:[n.jsx(Ne,{"data-loc":"client/src/pages/CookiePolicy.tsx:11",href:"/",children:n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:12",className:"flex items-center gap-2 cursor-pointer",children:[n.jsx("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:13",className:"w-7 h-7 rounded bg-primary flex items-center justify-center",children:n.jsx(la,{"data-loc":"client/src/pages/CookiePolicy.tsx:14",className:"w-4 h-4 text-primary-foreground"})}),n.jsx("span",{"data-loc":"client/src/pages/CookiePolicy.tsx:16",className:"font-bold text-lg text-foreground",children:"Docucert"})]})}),n.jsx(Ne,{"data-loc":"client/src/pages/CookiePolicy.tsx:19",href:"/",children:n.jsxs(oe,{"data-loc":"client/src/pages/CookiePolicy.tsx:20",variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground",children:[n.jsx(sr,{"data-loc":"client/src/pages/CookiePolicy.tsx:21",className:"w-4 h-4"})," Back to home"]})})]})}),n.jsxs("main",{"data-loc":"client/src/pages/CookiePolicy.tsx:28",className:"max-w-4xl mx-auto px-6 py-12",children:[n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:29",className:"mb-8",children:[n.jsx("h1",{"data-loc":"client/src/pages/CookiePolicy.tsx:30",className:"text-3xl font-bold text-foreground mb-2",children:"Cookie Policy"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:31",className:"text-muted-foreground text-sm",children:"Last updated: 8 April 2026"})]}),n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:34",className:"space-y-8 text-foreground",children:[n.jsxs("section",{"data-loc":"client/src/pages/CookiePolicy.tsx:35",children:[n.jsx("h2",{"data-loc":"client/src/pages/CookiePolicy.tsx:36",className:"text-xl font-semibold text-foreground mb-3",children:"1. What Are Cookies?"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:37",className:"text-muted-foreground leading-relaxed",children:'Cookies are small text files placed on your device when you visit a website. They are widely used to make websites work efficiently, remember your preferences, and provide information to website owners. Cookies can be "session cookies" (deleted when you close your browser) or "persistent cookies" (remain on your device until they expire or you delete them).'})]}),n.jsxs("section",{"data-loc":"client/src/pages/CookiePolicy.tsx:42",children:[n.jsx("h2",{"data-loc":"client/src/pages/CookiePolicy.tsx:43",className:"text-xl font-semibold text-foreground mb-3",children:"2. Cookies We Use"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:44",className:"text-muted-foreground leading-relaxed mb-4",children:"Docucert uses the following categories of cookies:"}),n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:46",className:"space-y-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:47",className:"rounded-xl border border-border/60 p-4 bg-muted/20",children:[n.jsx("h3",{"data-loc":"client/src/pages/CookiePolicy.tsx:48",className:"font-semibold text-foreground mb-2",children:"Strictly Necessary Cookies"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:49",className:"text-sm text-muted-foreground mb-2",children:"These cookies are essential for the platform to function and cannot be disabled."}),n.jsxs("table",{"data-loc":"client/src/pages/CookiePolicy.tsx:50",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/CookiePolicy.tsx:51",children:n.jsxs("tr",{"data-loc":"client/src/pages/CookiePolicy.tsx:52",className:"border-b border-border/40",children:[n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:53",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Cookie Name"}),n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:54",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Purpose"}),n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:55",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Duration"})]})}),n.jsxs("tbody",{"data-loc":"client/src/pages/CookiePolicy.tsx:58",className:"text-muted-foreground",children:[n.jsxs("tr",{"data-loc":"client/src/pages/CookiePolicy.tsx:59",className:"border-b border-border/20",children:[n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:60",className:"py-2 font-mono text-xs",children:"docucert_session"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:61",className:"py-2",children:"Maintains your authenticated session"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:62",className:"py-2",children:"7 days"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/CookiePolicy.tsx:64",children:[n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:65",className:"py-2 font-mono text-xs",children:"csrf_token"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:66",className:"py-2",children:"Protects against cross-site request forgery"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:67",className:"py-2",children:"Session"})]})]})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:73",className:"rounded-xl border border-border/60 p-4 bg-muted/20",children:[n.jsx("h3",{"data-loc":"client/src/pages/CookiePolicy.tsx:74",className:"font-semibold text-foreground mb-2",children:"Functional Cookies"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:75",className:"text-sm text-muted-foreground mb-2",children:"These cookies remember your preferences to enhance your experience."}),n.jsxs("table",{"data-loc":"client/src/pages/CookiePolicy.tsx:76",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/CookiePolicy.tsx:77",children:n.jsxs("tr",{"data-loc":"client/src/pages/CookiePolicy.tsx:78",className:"border-b border-border/40",children:[n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:79",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Cookie Name"}),n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:80",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Purpose"}),n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:81",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Duration"})]})}),n.jsx("tbody",{"data-loc":"client/src/pages/CookiePolicy.tsx:84",className:"text-muted-foreground",children:n.jsxs("tr",{"data-loc":"client/src/pages/CookiePolicy.tsx:85",children:[n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:86",className:"py-2 font-mono text-xs",children:"theme_preference"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:87",className:"py-2",children:"Remembers your dark/light mode preference"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:88",className:"py-2",children:"1 year"})]})})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:94",className:"rounded-xl border border-border/60 p-4 bg-muted/20",children:[n.jsx("h3",{"data-loc":"client/src/pages/CookiePolicy.tsx:95",className:"font-semibold text-foreground mb-2",children:"Analytics Co
462okies"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:96",className:"text-sm text-muted-foreground mb-2",children:"These cookies help us understand how visitors use the platform so we can improve it. We use privacy-friendly analytics that do not track you across other websites."}),n.jsxs("table",{"data-loc":"client/src/pages/CookiePolicy.tsx:97",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/CookiePolicy.tsx:98",children:n.jsxs("tr",{"data-loc":"client/src/pages/CookiePolicy.tsx:99",className:"border-b border-border/40",children:[n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:100",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Cookie Name"}),n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:101",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Purpose"}),n.jsx("th",{"data-loc":"client/src/pages/CookiePolicy.tsx:102",className:"text-left py-2 text-xs font-semibold text-muted-foreground uppercase",children:"Duration"})]})}),n.jsx("tbody",{"data-loc":"client/src/pages/CookiePolicy.tsx:105",className:"text-muted-foreground",children:n.jsxs("tr",{"data-loc":"client/src/pages/CookiePolicy.tsx:106",children:[n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:107",className:"py-2 font-mono text-xs",children:"_analytics"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:108",className:"py-2",children:"Aggregated page view and session analytics"}),n.jsx("td",{"data-loc":"client/src/pages/CookiePolicy.tsx:109",className:"py-2",children:"1 year"})]})})]})]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/CookiePolicy.tsx:117",children:[n.jsx("h2",{"data-loc":"client/src/pages/CookiePolicy.tsx:118",className:"text-xl font-semibold text-foreground mb-3",children:"3. Third-Party Cookies"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:119",className:"text-muted-foreground leading-relaxed mb-3",children:"Some third-party services we use may set their own cookies:"}),n.jsx("ul",{"data-loc":"client/src/pages/CookiePolicy.tsx:120",className:"list-disc list-inside space-y-2 text-muted-foreground",children:n.jsxs("li",{"data-loc":"client/src/pages/CookiePolicy.tsx:121",children:[n.jsx("strong",{"data-loc":"client/src/pages/CookiePolicy.tsx:121",className:"text-foreground",children:"Stripe:"})," payment processing cookies for fraud prevention and checkout functionality."]})}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:123",className:"text-muted-foreground leading-relaxed mt-3",children:"These third parties have their own cookie policies, which we encourage you to review."})]}),n.jsxs("section",{"data-loc":"client/src/pages/CookiePolicy.tsx:128",children:[n.jsx("h2",{"data-loc":"client/src/pages/CookiePolicy.tsx:129",className:"text-xl font-semibold text-foreground mb-3",children:"4. Managing Cookies"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:130",className:"text-muted-foreground leading-relaxed mb-3",children:"You can control and manage cookies in several ways:"}),n.jsxs("ul",{"data-loc":"client/src/pages/CookiePolicy.tsx:133",className:"list-disc list-inside space-y-2 text-muted-foreground",children:[n.jsxs("li",{"data-loc":"client/src/pages/CookiePolicy.tsx:134",children:[n.jsx("strong",{"data-loc":"client/src/pages/CookiePolicy.tsx:134",className:"text-foreground",children:"Browser settings:"})," most browsers allow you to block or delete cookies. Note that disabling strictly necessary cookies will prevent you from logging in to Docucert."]}),n.jsxs("li",{"data-loc":"client/src/pages/CookiePolicy.tsx:135",children:[n.jsx("strong",{"data-loc":"client/src/pages/CookiePolicy.tsx:135",className:"text-foreground",children:"Opt-out tools:"})," for analytics, you can opt out by adjusting your browser's Do Not Track setting."]})]}),n.jsxs("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:137",className:"text-muted-foreground leading-relaxed mt-3",children:["For guidance on managing cookies in popular browsers, visit ",n.jsx("a",{"data-loc":"client/src/pages/CookiePolicy.tsx:138",href:"https://www.allaboutcookies.org",target:"_blank",rel:"noreferrer",className:"text-primary hover:underline",children:"allaboutcookies.org"}),"."]})]}),n.jsxs("section",{"data-loc":"client/src/pages/CookiePolicy.tsx:142",children:[n.jsx("h2",{"data-loc":"client/src/pages/CookiePolicy.tsx:143",className:"text-xl font-semibold text-foreground mb-3",children:"5. Changes to This Policy"}),n.jsx("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:144",className:"text-muted-foreground leading-relaxed",children:"We may update this Cookie Policy from time to time. Changes will be posted on this page with an updated date. We encourage you to review this policy periodically."})]}),n.jsxs("section",{"data-loc":"client/src/pages/CookiePolicy.tsx:149",children:[n.jsx("h2",{"data-loc":"client/src/pages/CookiePolicy.tsx:150",className:"text-xl font-semibold text-foreground mb-3",children:"6. Contact Us"}),n.jsxs("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:151",className:"text-muted-foreground leading-relaxed",children:["If you have any questions about our use of cookies, please contact us at ",n.jsx("a",{"data-loc":"client/src/pages/CookiePolicy.tsx:152",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]})]})]}),n.jsx("footer",{"data-loc":"client/src/pages/CookiePolicy.tsx:159",className:"border-t border-border/40 py-6 px-6 mt-12",children:n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:160",className:"max-w-4xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-3 text-xs text-muted-foreground",children:[n.jsxs("p",{"data-loc":"client/src/pages/CookiePolicy.tsx:161",children:["© ",new Date().getFullYear()," Docucert Ltd. All rights reserved. Registered in England and Wales, Company No. 17305458. Registered Office: 167â169 Great Portland Street, 5th Floor, London, W1W 5PF."]}),n.jsxs("div",{"data-loc":"client/src/pages/CookiePolicy.tsx:162",className:"flex items-center gap-4",children:[n.jsx(Ne,{"data-loc":"client/src/pages/CookiePolicy.tsx:163",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/CookiePolicy.tsx:164",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),n.jsx(Ne,{"data-loc":"client/src/pages/CookiePolicy.tsx:165",href:"/cookies",className:"hover:text-foreground transition-colors",children:"Cookie Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/CookiePolicy.tsx:166",href:"/payment-terms",className:"hover:text-foreground transition-colors",children:"Payment Terms"})]})]})})]})}var ah="rovingFocusGroup.onEntryFocus",JL={bubbles:!1,cancelable:!0},ml="RovingFocusGroup",[gx,pA,eU]=Pg(ml),[tU,hA]=tr(ml,[eU]),[sU,aU]=tU(ml),xA=v.forwardRef((e,t)=>
vendor: 4,357 bytes, line 462
462n.jsx(gx.Provider,{scope:e.__scopeRovingFocusGroup,children:n.jsx(gx.Slot,{scope:e.__scopeRovingFocusGroup,children:n.jsx(nU,{...e,ref:t})})}));xA.displayName=ml;var nU=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:c=!1,dir:d,currentTabStopId:u,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:y=!1,...g}=e,b=v.useRef(null),w=nt(t,b),C=_g(d),[N,S]=Uc({prop:u,defaultProp:m??null,onChange:f,caller:ml}),[A,D]=v.useState(!1),M=Da(h),V=pA(r),O=v.useRef(!1),[B,E]=v.useState(0);return v.useEffect(()=>{const k=b.current;if(k)return k.addEventListener(ah,M),()=>k.removeEventListener(ah,M)},[M]),n.jsx(sU,{scope:r,orientation:i,dir:C,loop:c,currentTabStopId:N,onItemFocus:v.useCallback(k=>S(k),[S]),onItemShiftTab:v.useCallback(()=>D(!0),[]),onFocusableItemAdd:v.useCallback(()=>E(k=>k+1),[]),onFocusableItemRemove:v.useCallback(()=>E(k=>k-1),[]),children:n.jsx($e.div,{tabIndex:A||B===0?-1:0,"data-orientation":i,...g,ref:w,style:{outline:"none",...e.style},onMouseDown:Oe(e.onMouseDown,()=>{O.current=!0}),onFocus:Oe(e.onFocus,k=>{const J=!O.current;if(k.target===k.currentTarget&&J&&!A){const te=new CustomEvent(ah,JL);if(k.currentTarget.dispatchEvent(te),!te.defaultPrevented){const re=V().filter(P=>P.focusable),ce=re.find(P=>P.active),de=re.find(P=>P.id===N),pe=[ce,de,...re].filter(Boolean).map(P=>P.ref.current);vA(pe,y)}}O.current=!1}),onBlur:Oe(e.onBlur,()=>D(!1))})})}),gA="RovingFocusGroupItem",yA=v.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:c=!1,tabStopId:d,children:u,...m}=e,f=tn(),h=d||f,y=aU(gA,r),g=y.currentTabStopId===h,b=pA(r),{onFocusableItemAdd:w,onFocusableItemRemove:C,currentTabStopId:N}=y;return v.useEffect(()=>{if(i)return w(),()=>C()},[i,w,C]),n.jsx(gx.ItemSlot,{scope:r,id:h,focusable:i,active:c,children:n.jsx($e.span,{tabIndex:g?0:-1,"data-orientation":y.orientation,...m,ref:t,onMouseDown:Oe(e.onMouseDown,S=>{i?y.onItemFocus(h):S.preventDefault()}),onFocus:Oe(e.onFocus,()=>y.onItemFocus(h)),onKeyDown:Oe(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){y.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const A=oU(S,y.orientation,y.dir);if(A!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let M=b().filter(V=>V.focusable).map(V=>V.ref.current);if(A==="last")M.reverse();else if(A==="prev"||A==="next"){A==="prev"&&M.reverse();const V=M.indexOf(S.currentTarget);M=y.loop?cU(M,V+1):M.slice(V+1)}setTimeout(()=>vA(M))}}),children:typeof u=="function"?u({isCurrentTabStop:g,hasTabStop:N!=null}):u})})});yA.displayName=gA;var rU={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function iU(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function oU(e,t,r){const i=iU(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return rU[i]}function vA(e,t=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}function cU(e,t){return e.map((r,i)=>e[(t+i)%e.length])}var lU=xA,dU=yA,yx=["Enter"," "],uU=["ArrowDown","PageUp","Home"],bA=["ArrowUp","PageDown","End"],mU=[...uU,...bA],fU={ltr:[...yx,"ArrowRight"],rtl:[...yx,"ArrowLeft"]},pU={ltr:["ArrowLeft"],rtl:["ArrowRight"]},fl="Menu",[Yc,hU,xU]=Pg(fl),[ti,jA]=tr(fl,[xU,xo,hA]),tm=xo(),wA=hA(),[gU,si]=ti(fl),[yU,pl]=ti(fl),NA=e=>{const{__scopeMenu:t,open:r=!1,children:i,dir:c,onOpenChange:d,modal:u=!0}=e,m=tm(t),[f,h]=v.useState(null),y=v.useRef(!1),g=Da(d),b=_g(c);return v.useEffect(()=>{const w=()=>{y.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>y.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),n.jsx(Jw,{...m,children:n.jsx(gU,{scope:t,open:r,onOpenChange:g,content:f,onContentChange:h,children:n.jsx(yU,{scope:t,onClose:v.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:y,dir:b,modal:u,children:i})})})};NA.displayName=fl;var vU="MenuAnchor",Ug=v.forwardRef((e,t)=>
vendor: 13,462 bytes, line 462
462{const{__scopeMenu:r,...i}=e,c=tm(r);return n.jsx(Lx,{...c,...i,ref:t})});Ug.displayName=vU;var Bg="MenuPortal",[bU,SA]=ti(Bg,{forceMount:void 0}),CA=e=>{const{__scopeMenu:t,forceMount:r,children:i,container:c}=e,d=si(Bg,t);return n.jsx(bU,{scope:t,forceMount:r,children:n.jsx(dn,{present:r||d.open,children:n.jsx(Hu,{asChild:!0,container:c,children:i})})})};CA.displayName=Bg;var Js="MenuContent",[jU,zg]=ti(Js),AA=v.forwardRef((e,t)=>{const r=SA(Js,e.__scopeMenu),{forceMount:i=r.forceMount,...c}=e,d=si(Js,e.__scopeMenu),u=pl(Js,e.__scopeMenu);return n.jsx(Yc.Provider,{scope:e.__scopeMenu,children:n.jsx(dn,{present:i||d.open,children:n.jsx(Yc.Slot,{scope:e.__scopeMenu,children:u.modal?n.jsx(wU,{...c,ref:t}):n.jsx(NU,{...c,ref:t})})})})}),wU=v.forwardRef((e,t)=>{const r=si(Js,e.__scopeMenu),i=v.useRef(null),c=nt(t,i);return v.useEffect(()=>{const d=i.current;if(d)return Yx(d)},[]),n.jsx(Hg,{...e,ref:c,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Oe(e.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),NU=v.forwardRef((e,t)=>{const r=si(Js,e.__scopeMenu);return n.jsx(Hg,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),SU=Ir("MenuContent.ScrollLock"),Hg=v.forwardRef((e,t)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:c,onOpenAutoFocus:d,onCloseAutoFocus:u,disableOutsidePointerEvents:m,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,disableOutsideScroll:C,...N}=e,S=si(Js,r),A=pl(Js,r),D=tm(r),M=wA(r),V=hU(r),[O,B]=v.useState(null),E=v.useRef(null),k=nt(t,E,S.onContentChange),J=v.useRef(0),te=v.useRef(""),re=v.useRef(0),ce=v.useRef(null),de=v.useRef("right"),ue=v.useRef(0),pe=C?Qu:v.Fragment,P=C?{as:SU,allowPinchZoom:!0}:void 0,I=Z=>{const he=te.current+Z,R=V().filter(_=>!_.disabled),Y=document.activeElement,F=R.find(_=>_.ref.current===Y)?.textValue,$=R.map(_=>_.textValue),le=LU($,he,F),xe=R.find(_=>_.textValue===le)?.ref.current;(function _(X){te.current=X,window.clearTimeout(J.current),X!==""&&(J.current=window.setTimeout(()=>_(""),1e3))})(he),xe&&setTimeout(()=>xe.focus())};v.useEffect(()=>()=>window.clearTimeout(J.current),[]),Kx();const z=v.useCallback(Z=>de.current===ce.current?.side&&BU(Z,ce.current?.area),[]);return n.jsx(jU,{scope:r,searchRef:te,onItemEnter:v.useCallback(Z=>{z(Z)&&Z.preventDefault()},[z]),onItemLeave:v.useCallback(Z=>{z(Z)||(E.current?.focus(),B(null))},[z]),onTriggerLeave:v.useCallback(Z=>{z(Z)&&Z.preventDefault()},[z]),pointerGraceTimerRef:re,onPointerGraceIntentChange:v.useCallback(Z=>{ce.current=Z},[]),children:n.jsx(pe,{...P,children:n.jsx(Fu,{asChild:!0,trapped:c,onMountAutoFocus:Oe(d,Z=>{Z.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:n.jsx(tl,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:h,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,children:n.jsx(lU,{asChild:!0,...M,dir:A.dir,orientation:"vertical",loop:i,currentTabStopId:O,onCurrentTabStopIdChange:B,onEntryFocus:Oe(f,Z=>{A.isUsingKeyboardRef.current||Z.preventDefault()}),preventScrollOnEntryFocus:!0,children:n.jsx(Ux,{role:"menu","aria-orientation":"vertical","data-state":VA(S.open),"data-radix-menu-content":"",dir:A.dir,...D,...N,ref:k,style:{outline:"none",...N.style},onKeyDown:Oe(N.onKeyDown,Z=>{const R=Z.target.closest("[data-radix-menu-content]")===Z.currentTarget,Y=Z.ctrlKey||Z.altKey||Z.metaKey,F=Z.key.length===1;R&&(Z.key==="Tab"&&Z.preventDefault(),!Y&&F&&I(Z.key));const $=E.current;if(Z.target!==$||!mU.includes(Z.key))return;Z.preventDefault();const xe=V().filter(_=>!_.disabled).map(_=>_.ref.current);bA.includes(Z.key)&&xe.reverse(),PU(xe)}),onBlur:Oe(e.onBlur,Z=>{Z.currentTarget.contains(Z.target)||(window.clearTimeout(J.current),te.current="")}),onPointerMove:Oe(e.onPointerMove,$c(Z=>{const he=Z.target,R=ue.current!==Z.clientX;if(Z.currentTarget.contains(he)&&R){const Y=Z.clientX>ue.current?"right":"left";de.current=Y,ue.current=Z.clientX}}))})})})})})})});AA.displayName=Js;var CU="MenuGroup",Ig=v.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return n.jsx($e.div,{role:"group",...i,ref:t})});Ig.displayName=CU;var AU="MenuLabel",TA=v.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return n.jsx($e.div,{...i,ref:t})});TA.displayName=AU;var Su="MenuItem",vj="menu.itemSelect",sm=v.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:i,...c}=e,d=v.useRef(null),u=pl(Su,e.__scopeMenu),m=zg(Su,e.__scopeMenu),f=nt(t,d),h=v.useRef(!1),y=()=>{const g=d.current;if(!r&&g){const b=new CustomEvent(vj,{bubbles:!0,cancelable:!0});g.addEventListener(vj,w=>i?.(w),{once:!0}),Ew(g,b),b.defaultPrevented?h.current=!1:u.onClose()}};return n.jsx(OA,{...c,ref:f,disabled:r,onClick:Oe(e.onClick,y),onPointerDown:g=>{e.onPointerDown?.(g),h.current=!0},onPointerUp:Oe(e.onPointerUp,g=>{h.current||g.currentTarget?.click()}),onKeyDown:Oe(e.onKeyDown,g=>{const b=m.searchRef.current!=="";r||b&&g.key===" "||yx.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});sm.displayName=Su;var OA=v.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:i=!1,textValue:c,...d}=e,u=zg(Su,r),m=wA(r),f=v.useRef(null),h=nt(t,f),[y,g]=v.useState(!1),[b,w]=v.useState("");return v.useEffect(()=>{const C=f.current;C&&w((C.textContent??"").trim())},[d.children]),n.jsx(Yc.ItemSlot,{scope:r,disabled:i,textValue:c??b,children:n.jsx(dU,{asChild:!0,...m,focusable:!i,children:n.jsx($e.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...d,ref:h,onPointerMove:Oe(e.onPointerMove,$c(C=>{i?u.onItemLeave(C):(u.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Oe(e.onPointerLeave,$c(C=>u.onItemLeave(C))),onFocus:Oe(e.onFocus,()=>g(!0)),onBlur:Oe(e.onBlur,()=>g(!1))})})})}),TU="MenuCheckboxItem",EA=v.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:i,...c}=e;return n.jsx(PA,{scope:e.__scopeMenu,checked:r,children:n.jsx(sm,{role:"menuitemcheckbox","aria-checked":Cu(r)?"mixed":r,...c,ref:t,"data-state":qg(r),onSelect:Oe(c.onSelect,()=>i?.(Cu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});EA.displayName=TU;var DA="MenuRadioGroup",[OU,EU]=ti(DA,{value:void 0,onValueChange:()=>{}}),MA=v.forwardRef((e,t)=>{const{value:r,onValueChange:i,...c}=e,d=Da(i);return n.jsx(OU,{scope:e.__scopeMenu,value:r,onValueChange:d,children:n.jsx(Ig,{...c,ref:t})})});MA.displayName=DA;var RA="MenuRadioItem",kA=v.forwardRef((e,t)=>{const{value:r,...i}=e,c=EU(RA,e.__scopeMenu),d=r===c.value;return n.jsx(PA,{scope:e.__scopeMenu,checked:d,children:n.jsx(sm,{role:"menuitemradio","aria-checked":d,...i,ref:t,"data-state":qg(d),onSelect:Oe(i.onSelect,()=>c.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});kA.displayName=RA;var Vg="MenuItemIndicator",[PA,DU]=ti(Vg,{checked:!1}),_A=v.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:i,...c}=e,d=DU(Vg,r);return n.jsx(dn,{present:i||Cu(d.checked)||d.checked===!0,children:n.jsx($e.span,{...c,ref:t,"data-state":qg(d.checked)})})});_A.displayName=Vg;var MU="MenuSeparator",LA=v.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return n.jsx($e.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});LA.displayName=MU;var RU="MenuArrow",UA=v.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e,c=tm(r);return n.jsx(Bx,{...c,...i,ref:t})});UA.displayName=RU;var kU="MenuSub",[dz,BA]=ti(kU),jc="MenuSubTrigger",zA=v.forwardRef((e,t)=>{const r=si(jc,e.__scopeMenu),i=pl(jc,e.__scopeMenu),c=BA(jc,e.__scopeMenu),d=zg(jc,e.__scopeMenu),u=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:f}=d,h={__scopeMenu:e.__scopeMenu},y=v.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const g=m.current;return()=>{window.clearTimeout(g),f(null)}},[m,f]),n.jsx(Ug,{asChild:!0,...h,children:n.jsx(OA,{id:c.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":c.contentId,"data-state":VA(r.open),...e,ref:_u(t,c.onTriggerChange),onClick:g=>{e.onClick?.(g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Oe(e.onPointerMove,$c(g=>{d.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!r.open&&!u.current&&(d.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:Oe(e.onPointerLeave,$c(g=>{y();const b=r.content?.getBoundingClientRect();if(b){const w=r.content?.dataset.side,C=w==="right",N=C?-5:5,S=b[C?"left":"right"],A=b[C?"right":"left"];d.onPointerGraceIntentChange({area:[{x:g.clientX+N,y:g.clientY},{x:S,y:b.top},{x:A,y:b.top},{x:A,y:b.bottom},{x:S,y:b.bottom}],side:w}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.onPointerGraceIntentChange(null),300)}else{if(d.onTriggerLeave(g),g.defaultPrevented)return;d.onPointerGraceIntentChange(null)}})),onKeyDown:Oe(e.onKeyDown,g=>{const b=d.searchRef.current!=="";e.disabled||b&&g.key===" "||fU[i.dir].includes(g.key)&&(r.onOpenChange(!0),r.content?.focus(),g.preventDefault())})})})});zA.displayName=jc;var HA="MenuSubContent",IA=v.forwardRef((e,t)=>{const r=SA(Js,e.__scopeMenu),{forceMount:i=r.forceMount,...c}=e,d=si(Js,e.__scopeMenu),u=pl(Js,e.__scopeMenu),m=BA(HA,e.__scopeMenu),f=v.useRef(null),h=nt(t,f);return n.jsx(Yc.Provider,{scope:e.__scopeMenu,children:n.jsx(dn,{present:i||d.open,children:n.jsx(Yc.Slot,{scope:e.__scopeMenu,children:n.jsx(Hg,{id:m.contentId,"aria-labelledby":m.triggerId,...c,ref:h,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{u.isUsingKeyboardRef.current&&f.current?.focus(),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:Oe(e.onFocusOutside,y=>{y.target!==m.trigger&&d.onOpenChange(!1)}),onEscapeKeyDown:Oe(e.onEscapeKeyDown,y=>{u.onClose(),y.preventDefault()}),onKeyDown:Oe(e.onKeyDown,y=>{const g=y.currentTarget.contains(y.target),b=pU[u.dir].includes(y.key);g&&b&&(d.onOpenChange(!1),m.trigger?.focus(),y.preventDefault())})})})})})});IA.displayName=HA;function VA(e){return e?"open":"closed"}function Cu(e){return e==="indeterminate"}function qg(e){return Cu(e)?"indeterminate":e?"checked":"unchecked"}function PU(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function _U(e,t){return e.map((r,i)=>e[(t+i)%e.length])}function LU(e,t,r){const c=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,d=r?e.indexOf(r):-1;let u=_U(e,Math.max(d,0));c.length===1&&(u=u.filter(h=>h!==r));const f=u.find(h=>h.toLowerCase().startsWith(c.toLowerCase()));return f!==r?f:void 0}function UU(e,t){const{x:r,y:i}=e;let c=!1;for(let d=0,u=t.length-1;d<t.length;u=d++){const m=t[d],f=t[u],h=m.x,y=m.y,g=f.x,b=f.y;y>i!=b>i&&r<(g-h)*(i-y)/(b-y)+h&&(c=!c)}return c}function BU(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return UU(r,t)}function $c(e){return t=>t.pointerType==="mouse"?e(t):void 0}var zU=NA,HU=Ug,IU=CA,VU=AA,qU=Ig,FU=TA,GU=sm,QU=EA,KU=MA,YU=kA,$U=_A,XU=LA,WU=UA,ZU=zA,JU=IA,am="DropdownMenu",[eB]=tr(am,[jA]),ls=jA(),[tB,qA]=eB(am),FA=e=>{const{__scopeDropdownMenu:t,children:r,dir:i,open:c,defaultOpen:d,onOpenChange:u,modal:m=!0}=e,f=ls(t),h=v.useRef(null),[y,g]=Uc({prop:c,defaultProp:d??!1,onChange:u,caller:am});return n.jsx(tB,{scope:t,triggerId:tn(),triggerRef:h,contentId:tn(),open:y,onOpenChange:g,onOpenToggle:v.useCallback(()=>g(b=>!b),[g]),modal:m,children:n.jsx(zU,{...f,open:y,onOpenChange:g,dir:i,modal:m,children:r})})};FA.displayName=am;var GA="DropdownMenuTrigger",QA=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...c}=e,d=qA(GA,r),u=ls(r);return n.jsx(HU,{asChild:!0,...u,children:n.jsx($e.button,{type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...c,ref:_u(t,d.triggerRef),onPointerDown:Oe(e.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(d.onOpenToggle(),d.open||m.preventDefault())}),onKeyDown:Oe(e.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&d.onOpenToggle(),m.key==="ArrowDown"&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});QA.displayName=GA;var sB="DropdownMenuPortal",KA=e=>{const{__scopeDropdownMenu:t,...r}=e,i=ls(t);return n.jsx(IU,{...i,...r})};KA.displayName=sB;var YA="DropdownMenuContent",$A=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=qA(YA,r),d=ls(r),u=v.useRef(!1);return n.jsx(VU,{id:c.contentId,"aria-labelledby":c.triggerId,...d,...i,ref:t,onCloseAutoFocus:Oe(e.onCloseAutoFocus,m=>{u.current||c.triggerRef.current?.focus(),u.current=!1,m.preventDefault()}),onInteractOutside:Oe(e.onInteractOutside,m=>{const f=m.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,y=f.button===2||h;(!c.modal||y)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$A.displayName=YA;var aB="DropdownMenuGroup",nB=v.forwardRef((e,t)=>
462{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(qU,{...c,...i,ref:t})});nB.displayName=aB;var rB="DropdownMenuLabel",iB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(FU,{...c,...i,ref:t})});iB.displayName=rB;var oB="DropdownMenuItem",XA=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(GU,{...c,...i,ref:t})});XA.displayName=oB;var cB="DropdownMenuCheckboxItem",lB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(QU,{...c,...i,ref:t})});lB.displayName=cB;var dB="DropdownMenuRadioGroup",uB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(KU,{...c,...i,ref:t})});uB.displayName=dB;var mB="DropdownMenuRadioItem",fB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(YU,{...c,...i,ref:t})});fB.displayName=mB;var pB="DropdownMenuItemIndicator",hB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx($U,{...c,...i,ref:t})});hB.displayName=pB;var xB="DropdownMenuSeparator",WA=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(XU,{...c,...i,ref:t})});WA.displayName=xB;var gB="DropdownMenuArrow",yB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(WU,{...c,...i,ref:t})});yB.displayName=gB;var vB="DropdownMenuSubTrigger",bB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(ZU,{...c,...i,ref:t})});bB.displayName=vB;var jB="DropdownMenuSubContent",wB=v.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,c=ls(r);return n.jsx(JU,{...c,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wB.displayName=jB;var NB=FA,SB=QA,CB=KA,AB=$A,TB=XA,OB=WA;function nh({modal:e=!1,...t}){return n.jsx(NB,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:11","data-slot":"dropdown-menu",modal:e,...t})}function rh({...e}){return n.jsx(SB,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:26","data-slot":"dropdown-menu-trigger",...e})}function ih({className:e,sideOffset:t=4,...r}){return n.jsx(CB,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39",children:n.jsx(AB,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:40","data-slot":"dropdown-menu-content",sideOffset:t,className:vt("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]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...r})})}function Er({className:e,inset:t,variant:r="default",...i}){return n.jsx(TB,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:71","data-slot":"dropdown-menu-item","data-inset":t,"data-variant":r,className:vt("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}function EB({className:e,...t}){return n.jsx(OB,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:170","data-slot":"dropdown-menu-separator",className:vt("bg-border -mx-1 my-1 h-px",e),...t})}function DB(){const{items:e,removeItem:t,clearCart:r,totalCount:i,drawerOpen:c,setOpen:d}=kg(),[,u]=Ls(),m=()=>{d(!1),u("/documents")},f=fo.createPortal(n.jsxs(n.Fragment,{children:[n.jsx(Kr,{"data-loc":"client/src/components/CartDrawer.tsx:21",children:c&&n.jsx(Ue.div,{"data-loc":"client/src/components/CartDrawer.tsx:23",initial:{opacity:0}
462,animate:{opacity:1},exit:{opacity:0},style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.45)",zIndex:9998},onClick:()=>d(!1)},"backdrop")}),n.jsx(Kr,{"data-loc":"client/src/components/CartDrawer.tsx:35",children:c&&n.jsxs(Ue.div,{"data-loc":"client/src/components/CartDrawer.tsx:37",initial:{x:"100%"},animate:{x:0},exit:{x:"100%"},transition:{type:"spring",damping:28,stiffness:300},style:{position:"fixed",top:0,right:0,height:"100%",zIndex:9999},className:"w-80 max-w-[90vw] bg-background border-l border-border shadow-2xl flex flex-col",children:[n.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:47",className:"flex items-center justify-between px-5 py-4 border-b border-border",children:[n.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:48",className:"flex items-center gap-2",children:[n.jsx(lo,{"data-loc":"client/src/components/CartDrawer.tsx:49",className:"w-4 h-4 text-primary"}),n.jsx("h2",{"data-loc":"client/src/components/CartDrawer.tsx:50",className:"font-semibold text-foreground",children:"Documents Cart"}),i>0&&n.jsx(Gt,{"data-loc":"client/src/components/CartDrawer.tsx:52",variant:"secondary",className:"text-xs",children:i})]}),n.jsx("button",{"data-loc":"client/src/components/CartDrawer.tsx:55",onClick:()=>d(!1),className:"p-1.5 rounded-lg hover:bg-accent transition-colors",children:n.jsx(_s,{"data-loc":"client/src/components/CartDrawer.tsx:56",className:"w-4 h-4 text-muted-foreground"})})]}),n.jsx("div",{"data-loc":"client/src/components/CartDrawer.tsx:61",className:"flex-1 overflow-y-auto px-5 py-4 space-y-3",children:e.length===0?n.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:63",className:"flex flex-col items-center justify-center h-40 text-center gap-3",children:[n.jsx(mt,{"data-loc":"client/src/components/CartDrawer.tsx:64",className:"w-10 h-10 text-muted-foreground/40"}),n.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:65",className:"text-sm text-muted-foreground",children:"Your cart is empty."}),n.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:66",className:"text-xs text-muted-foreground/70",children:"Add consular documents from the list below."})]}):e.map(h=>n.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:70",className:"flex items-center gap-3 p-3 rounded-lg bg-card border border-border/50",children:[n.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:71",className:"text-[9px] font-bold uppercase tracking-wider bg-primary/10 text-primary px-2 py-0.5 rounded-full shrink-0",children:h.badge}),n.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:74",className:"flex-1 min-w-0",children:[n.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:75",className:"text-sm font-medium text-foreground leading-snug truncate",children:h.label}),n.jsx("p",{"data-loc":"client/src/components/CartDrawer.tsx:76",className:"text-xs text-primary font-semibold",children:h.price})]}),n.jsx("button",{"data-loc":"client/src/components/CartDrawer.tsx:78",onClick:()=>t(h.id),className:"p-1 rounded hover:bg-destructive/10 text-muted-foreground hover:text-destructive transition-colors shrink-0",children:n.jsx(Gr,{"data-loc":"client/src/components/CartDrawer.tsx:82",className:"w-3.5 h-3.5"})})]},h.id))}),e.length>0&&n.jsxs("div",{"data-loc":"client/src/components/CartDrawer.tsx:91",className:"px-5 py-4 border-t border-border space-y-2",children:[n.jsxs(oe,{"data-loc":"client/src/components/CartDrawer.tsx:92",className:"w-full bg-primary hover:bg-primary/90 text-primary-foreground gap-2",onClick:m,children:["Proceed to Application ",n.jsx(co,{"data-loc":"client/src/components/CartDrawer.tsx:96",className:"w-4 h-4"})]}),n.jsxs(oe,{"data-loc":"client/src/components/CartDrawer.tsx:98",variant:"ghost",size:"sm",className:"w-full text-muted-foreground hover:text-destructive",onClick:r,children:[n.jsx(Gr,{"data-loc":"client/src/components/CartDrawer.tsx:104",className:"w-3.5 h-3.5 mr-1.5"})," Clear cart"]})]})]},"drawer")})]}),document.body);return n.jsxs(n.Fragment,{children:[n.jsxs("button",{"data-loc":"client/src/components/CartDrawer.tsx:118",onClick:()=>d(!c),className:"relative p-2 rounded-lg hover:bg-accent transition-colors","aria-label":"Open cart",children:[n.jsx(lo,{"data-loc":"client/src/components/CartDrawer.tsx:123",className:"w-5 h-5 text-foreground
462/70"}),i>0&&n.jsx("span",{"data-loc":"client/src/components/CartDrawer.tsx:125",className:"absolute -top-0.5 -right-0.5 w-4 h-4 rounded-full bg-primary text-primary-foreground text-[10px] font-bold flex items-center justify-center leading-none",children:i})]}),f]})}function bj({text:e}){const[t,r]=v.useState(!1);return n.jsx("button",{"data-loc":"client/src/components/Navbar.tsx:25",type:"button",onClick:i=>{i.preventDefault(),i.stopPropagation(),navigator.clipboard.writeText(e).then(()=>{r(!0),setTimeout(()=>r(!1),1500)})},className:"ml-auto p-1 rounded hover:bg-accent text-muted-foreground hover:text-foreground transition-colors",title:"Copy to clipboard",children:t?n.jsx(NN,{"data-loc":"client/src/components/Navbar.tsx:38",className:"w-3 h-3 text-green-500"}):n.jsx(qM,{"data-loc":"client/src/components/Navbar.tsx:38",className:"w-3 h-3"})})}function nm(){const[e]=Ls(),[t,r]=v.useState(!1),{user:i,isAuthenticated:c}=ea(),{totalCount:d,setOpen:u}=kg(),m=Ae.auth.logout.useMutation({onSuccess:()=>{window.location.href="/"}}),f=[{href:"/documents",label:"Document Services",icon:mt},{href:"/dashboard",label:"Dashboard",icon:Bc}],h=y=>y==="/"?e==="/":e.startsWith(y);return n.jsxs("nav",{"data-loc":"client/src/components/Navbar.tsx:61",className:"fixed top-0 left-0 right-0 z-50 border-b border-border/50 bg-background/90 backdrop-blur-xl",children:[n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:62",className:"container mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",children:n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:63",className:"flex items-center justify-between h-20",children:[n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:65",href:"/",children:n.jsx(Ue.div,{"data-loc":"client/src/components/Navbar.tsx:66",className:"flex items-center cursor-pointer",whileHover:{scale:1.02},children:n.jsxs("span",{"data-loc":"client/src/components/Navbar.tsx:68",className:"relative inline-flex items-baseline",children:[n.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:69",className:"font-display font-bold text-[1.6rem] leading-none tracking-tight text-foreground",style:{fontFamily:"'Inter', 'Helvetica Neue', Arial, sans-serif"},children:"Docucert"}),n.jsx("svg",{"data-loc":"client/src/components/Navbar.tsx:75",className:"absolute",style:{top:"-2px",right:"-10px"},width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("polyline",{"data-loc":"client/src/components/Navbar.tsx:84",points:"1,5 4,8 11,1",stroke:"#B08D6A",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})})}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:97",className:"hidden md:flex items-center gap-1",children:[f.map(y=>n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:99",href:y.href,children:n.jsx(oe,{"data-loc":"client/src/components/Navbar.tsx:100",variant:"ghost",size:"sm",className:`text-sm font-medium transition-colors ${h(y.href)?"text-foreground bg-accent":"text-muted-foreground hover:text-foreground"}`,children:y.label})},y.href)),i?.role==="admin"&&n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:116",href:"/admin",children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:117",variant:"ghost",size:"sm",className:`text-sm font-medium transition-colors gap-1.5 ${h("/admin")?"text-foreground bg-accent":"text-amber-500 hover:text-amber-400"}`,children:[n.jsx(sn,{"data-loc":"client/src/components/Navbar.tsx:126",className:"w-3.5 h-3.5"}),"Admin"]})}),n.jsxs(nh,{"data-loc":"client/src/components/Navbar.tsx:133",children:[n.jsx(rh,{"data-loc":"client/src/components/Navbar.tsx:134",asChild:!0,children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:135",variant:"ghost",size:"sm",className:"text-sm font-medium text-muted-foreground hover:text-foreground gap-1",children:["Resources ",n.jsx(qr,{"data-loc":"client/src/components/Navbar.tsx:140",className:"w-3.5 h-3.5 opacity-60"})]})}),n.jsxs(ih,{"data-loc":"client/src/components/Navbar.tsx:143",align:"start",className:"bg-card border-border w-60",children:[n.jsx(Er,{"data-loc":"client/src/components/Navbar.tsx:144",asChild:!0,children:n.jsxs(Ne,{"data-loc":"client/src/components/Navbar.tsx:145",href:"/faq",className:"cursor-pointer flex items-center gap-2 w-full",children:[n.jsx(L1,{"data-loc":"client/src/components/Navbar.tsx:146",className:"w-4 h-4 text-primary shrink-0"}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:147",children:[n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:148",className:"text-xs font-medium text-foreground",children:"Certification FAQ"}),n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:149",className:"text-xs text-muted-foreground",children:"Common questions answered"})]})]})}),n.jsx(Er,{"data-loc":"client/src/components/Navbar.tsx:153",asChild:!0,children:n.jsxs(Ne,{"data-loc":"client/src/components/Navbar.tsx:154",href:"/hmrc-guide",className:"cursor-pointer flex items-center gap-2 w-full",children:[n.jsx(_1,{"data-loc":"client/src/components/Navbar.tsx:155",className:"w-4 h-4 text-primary shrink-0"}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:156",children:[n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:157",className:"text-xs font-medium text-foreground",children:"HMRC Compliance Guide"}),n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:158",className:"text-xs text-muted-foreground",children:"Rules of origin & declarations"})]})]})}),n.jsx(Er,{"data-loc":"client/src/components/Navbar.tsx:162",asChild:!0,children:n.jsxs(Ne,{"data-loc":"client/src/components/Navbar.tsx:163",href:"/border-2026",className:"cursor-pointer flex items-center gap-2 w-full",children:[n.jsx(fu,{"data-loc":"client/src/components/Navbar.tsx:164",className:"w-4 h-4 text-primary shrink-0"}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:165",children:[n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:166",className:"text-xs font-medium text-foreground",children:"2026 Border Changes"}),n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:167",className:"text-xs text-muted-foreground",children:"EES, BTOM, CBAM & more"})]})]})})]})]}),n.jsxs(nh,{"data-loc":"client/src/components/Navbar.tsx:175",children:[n.jsx(rh,{"data-loc":"client/src/components/Navbar.tsx:176",asChild:!0,children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:177",variant:"ghost",size:"sm",className:"text-sm font-medium text-muted-foreground hover:text-foreground gap-1",children:["Contact ",n.jsx(qr,{"data-loc":"client/src/components/Navbar.tsx:182",className:"w-3.5 h-3.5 opacity-60"})]})}),n.jsxs(ih,{"data-loc":"client/src/components/Navbar.tsx:185",align:"start",className:"bg-card border-border w-64",children:[n.jsx(Er,{"data-loc":"client/src/components/Navbar.tsx:186",asChild:!0,children:n.jsxs("a",{"data-loc":"client/src/components/Navbar.tsx:187",href:"mailto:[email protected]",className:"cursor-pointer flex items-center gap-2 w-full",children:[n.jsx(Ft,{"data-loc":"client/src/components/Navbar.tsx:188",className:"w-4 h-4 text-primary shrink-0"}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:189",className:"flex-1 min-w-0",children:[n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:190",className:"text-xs font-medium text-foreground",children:"Sales Enquiries"}),n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:191",className:"text-xs text-muted-foreground",children:"[email protected]"})]}),n.jsx(bj,{"data-loc":"client/src/components/Navbar.tsx:193",text:"[email protected]"})]})}),n.jsx(Er,{"data-loc":"client/src/components/Navbar.tsx:196",asChild:!0,children:n.jsxs("a",{"data-loc":"client/src/components/Navbar.tsx:197",href:"mailto:[email protected]",className:"cursor-pointer flex items-center gap-2 w-full",children:[n.jsx(Ft,{"data-loc":"client/src/components/Navbar.tsx:198",className:"w-4 h-4 text-primary shrink-0"}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:199",className:"flex-1 min-w-0",children:[n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:200",className:"text-xs font-medium text-foreground",children:"Customer Support"}),n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:201",className:"text-xs text-muted-foreground",children:"[email protected]"})]}),n.jsx(bj,{"data-loc":"client/src/components/Navbar.tsx:203",text:"[email protected]"})]})})]})]})]}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:211",className:"flex items-center gap-2",children:[n.jsx(DB,{"data-loc":"client/src/components/Navbar.tsx:213"}),c?n.jsxs(nh,{"data-loc":"client/src/components/Navbar.tsx:217",children:[n.jsx(rh,{"data-loc":"client/src/components/Navbar.tsx:218",asChild:!0,children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:219",variant:"outline",size:"sm",className:"gap-2 border-border/60",children:[n.jsx(Jr,{"data-loc":"client/src/components/Navbar.tsx:220",className:"w-3.5 h-3.5"}),n.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:221",className:"hidden sm:inline max-w-24 truncate text-xs",children:i?.name||"Account"})]})}),n.jsxs(ih,{"data-loc":"client/src/components/Navbar.tsx:224",align:"end",className:"bg-card border-border",children:[n.jsx(Er,{"data-loc":"client/src/components/Navbar.tsx:225",asChild:!0,children:n.jsxs(Ne,{"data-loc":"client/src/components/Navbar.tsx:226",href:"/dashboard",className:"cursor-pointer",children:[n.jsx(Bc,{"data-loc":"client/src/components/Navbar.tsx:227",className:"w-4 h-4 mr-2"})," Dashboard"]})}),n.jsx(EB,{"data-loc":"client/src/components/Navbar.tsx:230"}),n.jsxs(Er,{"data-loc":"client/src/components/Navbar.tsx:231",onClick:()=>m.mutate(),className:"text-destructive cursor-pointer",children:[n.jsx(ZM,{"data-loc":"client/src/components/Navbar.tsx:235",className:"w-4 h-4 mr-2"})," Sign Out"]})]})]}):n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:240",size:"sm",className:"gap-2 bg-primary hover:bg-primary/90 text-primary-foreground",onClick:()=>window.location.href="/login",children:[n.jsx(WM,{"data-loc":"client/src/components/Navbar.tsx:245",className:"w-3.5 h-3.5"}),n.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:246",className:"hidden sm:inline",children:"Sign In"})]}),n.jsx(oe,{"data-loc":"client/src/components/Navbar.tsx:251",variant:"ghost",size:"sm",className:"md:hidden",onClick:()=>r(!t),children:t?n.jsx(_s,{"data-loc":"client/src/components/Navbar.tsx:257",className:"w-5 h-5"}):n.jsx(eR,{"data-loc":"client/src/components/Navbar.tsx:257",className:"w-5 h-5"})})]})]})}),n.jsx(Kr,{"data-loc":"client/src/components/Navbar.tsx:264",children:t&&n.jsx(Ue.div,{"data-loc":"client/src/components/Navbar.tsx:266",initial:{opacity:0,height:0}
462,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"md:hidden border-t border-border/50 bg-background/95 backdrop-blur-xl",children:n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:272",className:"container mx-auto px-4 py-3 space-y-1",children:[f.map(y=>n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:274",href:y.href,onClick:()=>r(!1),children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:275",variant:"ghost",className:`w-full justify-start text-sm ${h(y.href)?"text-foreground bg-accent":"text-muted-foreground"}`,children:[y.icon&&n.jsx(y.icon,{"data-loc":"client/src/components/Navbar.tsx:281",className:"w-4 h-4 mr-2"}),y.label]})},y.href)),i?.role==="admin"&&n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:289",href:"/admin",onClick:()=>r(!1),children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:290",variant:"ghost",className:`w-full justify-start text-sm gap-2 ${h("/admin")?"text-foreground bg-accent":"text-amber-500"}`,children:[n.jsx(sn,{"data-loc":"client/src/components/Navbar.tsx:296",className:"w-4 h-4"}),"Admin"]})}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:303",className:"pt-1 border-t border-border/30 space-y-1",children:[n.jsx("p",{"data-loc":"client/src/components/Navbar.tsx:304",className:"text-xs text-muted-foreground px-3 py-1 font-medium uppercase tracking-wide",children:"Resources"}),n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:305",href:"/faq",onClick:()=>r(!1),children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:306",variant:"ghost",className:"w-full justify-start gap-2 text-muted-foreground text-sm",children:[n.jsx(L1,{"data-loc":"client/src/components/Navbar.tsx:307",className:"w-4 h-4 text-primary"})," Certification FAQ"]})}),n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:310",href:"/hmrc-guide",onClick:()=>r(!1),children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:311",variant:"ghost",className:"w-full justify-start gap-2 text-muted-foreground text-sm",children:[n.jsx(_1,{"data-loc":"client/src/components/Navbar.tsx:312",className:"w-4 h-4 text-primary"})," HMRC Compliance Guide"]})}),n.jsx(Ne,{"data-loc":"client/src/components/Navbar.tsx:315",href:"/border-2026",onClick:()=>r(!1),children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:316",variant:"ghost",className:"w-full justify-start gap-2 text-muted-foreground text-sm",children:[n.jsx(fu,{"data-loc":"client/src/components/Navbar.tsx:317",className:"w-4 h-4 text-primary"})," 2026 Border Changes"]})})]}),n.jsxs("div",{"data-loc":"client/src/components/Navbar.tsx:323",className:"pt-1 border-t border-border/30 space-y-1",children:[n.jsx("p",{"data-loc":"client/src/components/Navbar.tsx:324",className:"text-xs text-muted-foreground px-3 py-1 font-medium uppercase tracking-wide",children:"Contact"}),n.jsx("a",{"data-loc":"client/src/components/Navbar.tsx:325",href:"mailto:[email protected]",onClick:()=>r(!1),children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:326",variant:"ghost",className:"w-full justify-start gap-2 text-muted-foreground text-sm",children:[n.jsx(Ft,{"data-loc":"client/src/components/Navbar.tsx:327",className:"w-4 h-4 text-primary"})," [email protected]"]})}),n.jsx("a",{"data-loc":"client/src/components/Navbar.tsx:330",href:"mailto:[email protected]",onClick:()=>r(!1),children:n.jsxs(oe,{"data-loc":"client/src/components/Navbar.tsx:331",variant:"ghost",className:"w-full justify-start gap-2 text-muted-foreground text-sm",children:[n.jsx(Ft,{"data-loc":"client/src/components/Navbar.tsx:332",className:"w-4 h-4 text-primary"})," [email protected]"]})})]}),n.jsx("div",{"data-loc":"client/src/components/Navbar.tsx:338",className:"pt-1 border-t border-border/30",children:n.jsxs("button",{"data-loc":"client/src/components/Navbar.tsx:339",className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg hover:bg-accent transition-colors text-sm text-muted-foreground",onClick:()=>{r(!1),u(!0)},children:[n.jsx(lo,{"data-loc":"client/src/components/Navbar.tsx:343",className:"w-4 h-4 text-primary"}),"Documents Cart",d>0&&n.jsx("span",{"data-loc":"client/src/components/Navbar.tsx:346",className:"ml-auto w-5 h-5 rounded-full bg-primary text-primary-foreground text-[10px] font-bold flex items-center justify-center",children:d})]})})]})})})]})}const MB=[{title:"Certificates of Origin",icon:Vx,faqs:[{q:"What is a Certificate of Origin?",a:"A Certificate of Origin (COO) is an official trade document that certifies the country in which a product was manufactured, produced, or processed. It is one of the most commonly required export documents and is used by customs authorities worldwide to determine the applicable tariff rate, verify compliance with trade agreements, and enforce import regulations. In the UK, COOs are typically issued by the London Chamber of Commerce and Industry (LCCI) or other approved Chambers of Commerce."},{q:"When do I need a Certificate of Origin?",a:"You will need a Certificate of Origin whenever your importing country's customs authority requires proof of where your goods were made. This is most commonly required when: claiming preferential tariff rates under a trade agreement; exporting to countries in the Middle East, North Africa, or South Asia; complying with an import licence condition; or when the buyer or their bank requires it as part of a Letter of Credit. If you are unsure whether your shipment requires a COO, contact us at [email protected] and we can advise."}
462,{q:"What is the difference between a preferential and non-preferential Certificate of Origin?",a:"A non-preferential Certificate of Origin simply confirms the country of origin of the goods. It does not confer any tariff advantage but is required by many countries for customs clearance and statistical purposes. A preferential Certificate of Origin (such as an EUR-1 Movement Certificate or a GSP Form A) is used to claim a reduced or zero import duty rate under a specific trade agreement between the UK and the destination country. To qualify, the goods must meet the relevant 'rules of origin' criteria set out in the agreement."},{q:"What does 'substantial transformation' mean for origin purposes?",a:"Substantial transformation is the principle used to determine the country of origin when goods are made using materials or components from more than one country. Under this principle, a product is considered to originate in the country where it underwent its last substantial transformation - meaning a process that resulted in a new and different article of commerce with a distinctive name, character, and use. The specific criteria vary by trade agreement and product type, but common tests include a change in tariff heading, a value-added threshold, or a specific manufacturing process."},{q:"How long is a Certificate of Origin valid?",a:"There is no universal expiry date for a non-preferential Certificate of Origin - it relates to a specific shipment and is valid for that consignment. However, most customs authorities expect the COO to be presented alongside the goods at the time of import. Preferential certificates such as EUR-1s are generally valid for 10 months from the date of issue. Some countries impose their own validity requirements, so it is worth checking the specific rules for your destination market."},{q:"Can I get a backdated Certificate of Origin?",a:"No. Certificates of Origin must be issued before or at the time of export. Backdating a COO is fraudulent and can result in serious legal consequences, including customs penalties and criminal prosecution. If you have already shipped goods without a COO and the importer requires one, you may be able to apply for a retrospective or 'replacement' certificate in limited circumstances - contact us to discuss your situation."}]},{title:"Arab-British Certificates",icon:Fr,faqs:[{q:"What is an Arab-British Certificate of Origin?",a:"An Arab-British Certificate of Origin is a specialised certificate issued by the Arab-British Chamber of Commerce (ABCC) for goods exported from the UK to Arab League member states. It is distinct from a standard LCCI Certificate of Origin and is specifically required by many Arab countries - particularly in the Gulf Cooperation Council (GCC) - as a condition of customs clearance. The certificate confirms that the goods are of UK origin and have been certified by a recognised UK authority."},{q:"Which countries require an Arab-British Certificate?",a:"Arab-British Certificates are typically required for exports to the 22 member states of the Arab League, including Saudi Arabia, the United Arab Emirates, Qatar, Kuwait, Bahrain, Oman, Egypt, Jordan, Iraq, Lebanon, Libya, and others. Requirements vary by country and by the nature of the goods. Some countries require the certificate to be legalised by the relevant embassy in London before it will be accepted."},{q:"Does an Arab-British Certificate need to be legalised?",a:"Yes, for many Arab League countries - particularly Saudi Arabia, the UAE, and Kuwait - the Arab-British Certificate must be legalised (authenticated) by the relevant embassy in London after it has been issued by the ABCC. Docucert handles the full legalisation chain on your behalf, including ABCC certification, embassy submission, and collection. You do not need to visit the embassy yourself."}]},{title:"Apostilles & Legalisation",icon:qx,faqs:[{q:"What is an Apostille?",a:"An Apostille is a form of authentication issued by a competent authority (in the UK, the Foreign, Commonwealth & Development Office - FCDO) that verifies the authenticity of a public document for use in another country. It is governed by the 1961 Hague Convention Abolishing the Requirement of Legalisation for Foreign Public Documents. An Apostille confirms that the signature, seal, or stamp on a document is genuine, but does not val
462idate the content of the document itself."},{q:"Which countries accept an Apostille?",a:"An Apostille is accepted in all countries that are signatories to the 1961 Hague Convention - currently over 120 countries, including all EU member states, the United States, Australia, India, China, Brazil, and many others. For countries that are not Hague Convention members (such as Saudi Arabia, the UAE, and many other Arab League states), full embassy legalisation is required instead of, or in addition to, an Apostille."},{q:"What documents can be apostilled?",a:"In the UK, the FCDO can apostille a wide range of public documents, including birth, marriage, and death certificates; educational certificates and transcripts; company documents such as Certificates of Incorporation and Articles of Association; statutory declarations and affidavits; and documents signed by a notary public or solicitor. Commercial documents such as invoices and packing lists are generally not eligible for an Apostille - these require a different form of authentication."},{q:"What is the difference between an Apostille and Embassy legalisation?",a:"An Apostille is a single-step process: the FCDO authenticates the document and attaches a standardised certificate. It is accepted in all Hague Convention countries. Embassy legalisation is a multi-step process required for non-Hague countries: the document is typically first notarised or certified, then authenticated by the FCDO (Apostille), and finally legalised by the embassy of the destination country in London. Docucert manages the full legalisation chain for both processes."}]},{title:"EUR-1 & Preferential Origin",icon:mt,faqs:[{q:"What is an EUR-1 Movement Certificate?",a:"An EUR-1 Movement Certificate is a preferential origin document used to claim reduced or zero import duties under the UK's trade agreements with the European Union and other partner countries. It is completed by the exporter, declaring that the goods meet the relevant rules of origin under the applicable trade agreement, and must be stamped and endorsed by HMRC before export."},{q:"When should I use an EUR-1 instead of a Supplier's Declaration?",a:"An EUR-1 is used for individual consignments where the exporter wants to claim preferential tariff treatment at the point of import. A Supplier's Declaration (or Long-Term Supplier's Declaration) is used by a UK supplier to inform a UK exporter about the origin status of the goods they are supplying, so that the exporter can in turn make a preference claim. If you are the exporter and you are shipping directly to a customer in a country with a UK trade agreement, you will typically use an EUR-1 or a Statement on Origin."},{q:"What are 'rules of origin' and how do I know if my goods qualify?",a:"Rules of origin are the criteria used to determine whether goods qualify for preferential tariff treatment under a trade agreement. They vary by agreement and by product (identified by HS tariff code). Common criteria include: wholly obtained (the goods are entirely produced in the UK); sufficient processing (the goods have undergone a specified level of manufacturing or transformation in the UK);
462 or a value-added threshold (a minimum percentage of the product's value must originate in the UK). If you are unsure whether your goods qualify, contact us and we can help you assess your eligibility."}]}];function RB({q:e,a:t}){const[r,i]=v.useState(!1);return n.jsxs("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:104",className:"border border-border rounded-xl overflow-hidden bg-card",children:[n.jsxs("button",{"data-loc":"client/src/pages/CertificationFAQ.tsx:105",type:"button",className:"w-full flex items-center justify-between px-6 py-4 text-left gap-4 hover:bg-accent/40 transition-colors",onClick:()=>i(!r),"aria-expanded":r,children:[n.jsx("span",{"data-loc":"client/src/pages/CertificationFAQ.tsx:111",className:"font-semibold text-foreground text-sm md:text-base",children:e}),n.jsx(qr,{"data-loc":"client/src/pages/CertificationFAQ.tsx:112",className:`w-4 h-4 text-muted-foreground flex-shrink-0 transition-transform duration-200 ${r?"rotate-180":""}`})]}),r&&n.jsx("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:117",className:"px-6 pb-5 text-sm text-muted-foreground leading-relaxed border-t border-border pt-4",children:t})]})}function kB(){return ul({title:"Trade Certification FAQ | Docucert",description:"Answers to common questions about Certificates of Origin, EUR-1s, Apostilles, Embassy legalisation, and UK export documentation requirements.",canonical:"https://docucert.co/faq",ogTitle:"Trade Certification FAQ | Docucert",ogDescription:"Answers to common questions about Certificates of Origin, EUR-1s, Apostilles, Embassy legalisation, and UK export documentation.",breadcrumbs:[{name:"Home",url:"https://docucert.co/"},{name:"Resources",url:"https://docucert.co/faq"},{name:"Trade Certification FAQ",url:"https://docucert.co/faq"}]}),n.jsxs("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:139",className:"min-h-screen bg-background",children:[n.jsx(nm,{"data-loc":"client/src/pages/CertificationFAQ.tsx:140"}),n.jsxs("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:141",className:"pt-24 pb-20",children:[n.jsxs("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:143",className:"container mx-auto px-4 max-w-3xl mb-12",children:[n.jsx(Ne,{"data-loc":"client/src/pages/CertificationFAQ.tsx:144",href:"/",children:n.jsxs(oe,{"data-loc":"client/src/pages/CertificationFAQ.tsx:145",variant:"ghost",size:"sm",className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[n.jsx(sr,{"data-loc":"client/src/pages/CertificationFAQ.tsx:146",className:"w-4 h-4 mr-2"})," Back to home"]})}),n.jsx(Gt,{"data-loc":"client/src/pages/CertificationFAQ.tsx:149",variant:"outline",className:"mb-4 text-xs font-semibold tracking-widest uppercase border-green-600/40 text-green-700 bg-green-600/5",children:"Trade Resources"}),n.jsx("h1",{"data-loc":"client/src/pages/CertificationFAQ.tsx:152",className:"font-display text-4xl md:text-5xl font-bold text-foreground mb-4",children:"Certification FAQ"}),n.jsx("p",{"data-loc":"client/src/pages/CertificationFAQ.tsx:155",className:"text-lg text-muted-foreground leading-relaxed",children:"Answers to the most common questions about UK trade document certification - Certificates of Origin, Apostilles, EUR-1s, and Embassy legalisation."}),n.jsxs("p",{"data-loc":"client/src/pages/CertificationFAQ.tsx:158",className:"text-sm text-muted-foreground mt-3",children:["Last updated: June 2026 · Questions? Email"," ",n.jsx("a",{"data-loc":"client/src/pages/CertificationFAQ.tsx:160",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]}),n.jsx("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:167",className:"container mx-auto px-4 max-w-3xl space-y-12",children:MB.map(e=>n.jsxs("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:169",children:[n.jsxs("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:170",className:"flex items-center gap-3 mb-5",children:[n.jsx("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:171",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(e.icon,{"data-loc":"client/src/pages/CertificationFAQ.tsx:172",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/CertificationFAQ.tsx:174",className:"text-xl font-bold text-foreground",children:e.title})]}),n.jsx("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:176",className:"space-y-3",children:e.faqs.map((t,r)=>n.jsx(RB,{"data-loc":"client/src/pages/CertificationFAQ.tsx:178",q:t.q,a:t.a},r))})]},e.title))}),n.jsx("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:186",className:"container mx-auto px-4 max-w-3xl mt-16",children:n.jsxs("div",{"data-loc":"client/src/pages/CertificationFAQ.tsx:187",className:"rounded-2xl border border-border bg-card p-8 text-center",children:[n.jsx("h3",{"data-loc":"client/src/pages/CertificationFAQ.tsx:188",className:"font-bold text-xl text-foreground mb-2",children:"Ready to get started?"}),n.jsx("p",{"data-loc":"client/src/pages/CertificationFAQ.tsx:189",className:"text-muted-foreground mb-6",children:"Browse our full catalogue of trade certificates and submit your order in minutes."}),n.jsx(Ne,{"data-loc":"client/src/pages/CertificationFAQ.tsx:192",href:"/documents",children:n.jsx(oe,{"data-loc":"client/src/pages/CertificationFAQ.tsx:193",size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90",children:"View Document Services"})})]})})]})]})}function PB(){return ul({title:"HMRC Customs Guide for UK Exporters | Docucert",description:"A practical guide to HMRC customs procedures, commodity codes, and export declarations for UK businesses trading internationally.",canonical:"https://docucert.co/hmrc-guide",ogTitle:"HMRC Customs Guide for UK Exporters | Docucert",ogDescription:"Practical guide to HMRC customs procedures, commodity codes, and export declarations for UK businesses.",breadcrumbs:[{name:"Home",url:"https://docucert.co/"},{name:"Resources",url:"https://docucert.co/hmrc-guide"},{name:"HMRC Customs Guide",url:"https://docucert.co/hmrc-guide"}]}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:22",className:"min-h-screen bg-background",children:[n.jsx(nm,{"data-loc":"client/src/pages/HMRCGuide.tsx:23"}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:24",className:"pt-24 pb-20",children:[n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:26",className:"container mx-auto px-4 max-w-3xl mb-12",children:[n.jsx(Ne,{"data-loc":"client/src/pages/HMRCGuide.tsx:27",href:"/",children:n.jsxs(oe,{"data-loc":"client/src/pages/HMRCGuide.tsx:28",variant:"ghost",size:"sm",className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[n.jsx(sr,{"data-loc":"client/src/pages/HMRCGuide.tsx:29",className:"w-4 h-4 mr-2"})," Back to home"]})}),n.jsx(Gt,{"data-loc":"client/src/pages/HMRCGuide.tsx:32",variant:"outline",className:"mb-4 text-xs font-semibold tracking-widest uppercase border-green-600/40 text-green-700 bg-green-600/5",children:"Trade Resources"}),n.jsx("h1",{"data-loc":"client/src/pages/HMRCGuide.tsx:35",className:"font-display text-4xl md:text-5xl font-bold text-foreground mb-4",children:"HMRC Compliance Guide"}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:38",className:"text-lg text-muted-foreground leading-relaxed",children:"A practical guide to HMRC's requirements for UK exporters - covering customs declarations, rules of origin, export licences, and record-keeping obligations."}),n.jsxs("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:41",className:"text-sm text-muted-foreground mt-3",children:["Last updated: June 2026 · Questions? Email"," ",n.jsx("a",{"data-loc":"client/src/pages/HMRCGuide.tsx:43",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:49",className:"container mx-auto px-4 max-w-3xl space-y-12",children:[n.jsxs("section",{"data-loc":"client/src/pages/HMRCGuide.tsx:52",children:[n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:53",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:54",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(mt,{"data-loc":"client/src/pages/HMRCGuide.tsx:55",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/HMRCGuide.tsx:57",className:"text-xl font-bold text-foreground",children:"Customs Declarations & Export Procedures"})]}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:59",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:60",children:"All goods exported from the UK with a value above £873 (or any controlled goods regardless of value) must be declared to HMRC using the Customs Declaration Service (CDS). CDS replaced the legacy CHIEF system for exports in November 2023. Exporters must either submit declarations themselves using approved software or appoint a customs agent or freight forwarder to act on their behalf."}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:63",children:"The export declaration must be submitted before the goods leave the UK. It captures information including the exporter's EORI number, the commodity code (HS code) of the goods, the customs procedure code (CPC), the value and quantity of the goods, and the country of destination. HMRC uses this data to compile UK trade statistics and to enforce export controls."}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:66",className:"rounded-xl border border-border bg-card p-5",children:[n.jsxs("h3",{"data-loc":"client/src/pages/HMRCGuide.tsx:67",className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[n.jsx(ws,{"data-loc":"client/src/pages/HMRCGuide.tsx:68",className:"w-4 h-4 text-green-600"})," Key requirements for export declarations"]}),n.jsxs("table",{"data-loc":"client/src/pages/HMRCGuide.tsx:70",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/HMRCGuide.tsx:71",children:n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:72",className:"border-b border-border",children:[n.jsx("th",{"data-loc":"client/src/pages/HMRCGuide.tsx:73",className:"text-left py-2 pr-4 font-semibold text-foreground",children:"Requirement"}),n.jsx("th",{"data-loc":"client/src/pages/HMRCGuide.tsx:74",className:"text-left py-2 font-semibold text-foreground",children:"Detail"})]})}),n.jsxs("tbody",{"data-loc":"client/src/pages/HMRCGuide.tsx:77",className:"divide-y divide-border",children:[n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:78",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:79",className:"py-2 pr-4 font-medium text-foreground",children:"EORI number"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:80",className:"py-2",children:"Required for all UK exporters. Apply via HMRC if you do not have one."})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:82",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:83",className:"py-2 pr-4 font-medium text-foreground",children:"Commodity code"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:84",className:"py-2",children:"10-digit code from the UK Global Trade Tariff identifying your goods."})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:86",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:87",className:"py-2 pr-4 font-medium text-foreground",children:"Customs value"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:88",className:"py-2",children:"The transaction value of the goods in GBP at the time of export."})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:90",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:91",className:"py-2 pr-4 font-medium text-foreground",children:"Customs Procedure Code"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:92",className:"py-2",children:"Identifies the customs regime (e.g. permanent export, temporary export, re-export)."})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:94",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:95",className:"py-2 pr-4 font-medium text-foreground",children:"Country of destination"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:96",className:"py-2",children:"The final destination country of the goods."})]})]})]})]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/HMRCGuide.tsx:105",children:[n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:106",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:107",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(Fr,{"data-loc":"client/src/pages/HMRCGuide.tsx:108",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/HMRCGuide.tsx:110",className:"text-xl font-bold text-foreground",children:"Rules of Origin & Preferential Trade"})]}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:112",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:113",children:"Rules of origin determine whether goods qualify for preferential (reduced or zero) import duty rates under the UK's trade agreements. The UK has trade agreements with over 70 countries, including the EUâUK Trade and Cooperation Agreement (TCA), agreements with Japan, Canada, Australia, New Zealand, Singapore, and many others."}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:116",children:`To claim preference, the exporter must be able to demonstrate that the goods meet the relevant origin criteria - typically either that they are "wholly obtained" in the UK (e.g. agricultural produce, minerals) or that they have been "sufficiently processed" in the UK (e.g. manufactured goods that have undergone a qualifying transformation). The specific criteria are set out in the rules of origin annex of each trade agreement and are identified by the goods' HS tariff code.`}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:119",children:"The method of claiming preference depends on the agreement and the value of the goods. For most UK trade agreements, exporters can use one of three methods: an EUR-1 Movement Certificate (stamped by HMRC); a Statement on Origin (a declaration on the commercial invoice or other document, which can be made by any exporter for consignments up to £5,500, or by a Registered Exporter for higher-value shipments); or a REX declaration for certain agreements."}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:122",className:"rounded-xl border border-amber-200 bg-amber-50 p-5",children:[n.jsxs("h3",{"data-loc":"client/src/pages/HMRCGuide.tsx:123",className:"font-semibold text-amber-900 mb
462-2 flex items-center gap-2",children:[n.jsx(zc,{"data-loc":"client/src/pages/HMRCGuide.tsx:124",className:"w-4 h-4 text-amber-600"})," Important: Supplier's Declarations"]}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:126",className:"text-sm text-amber-800 leading-relaxed",children:"If your goods contain materials or components sourced from other UK suppliers, you may need to obtain Supplier's Declarations from those suppliers confirming the origin status of their goods. Without these, you may not be able to demonstrate that your finished product meets the rules of origin threshold. HMRC can request evidence of origin at any time, and incorrect preference claims can result in the importer being liable for the full import duty."})]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/HMRCGuide.tsx:134",children:[n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:135",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:136",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(qu,{"data-loc":"client/src/pages/HMRCGuide.tsx:137",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/HMRCGuide.tsx:139",className:"text-xl font-bold text-foreground",children:"Export Licences & Controlled Goods"})]}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:141",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:142",children:"Certain goods require an export licence from the Export Control Joint Unit (ECJU) before they can be exported from the UK. Controlled goods include military and dual-use items (goods that have both civilian and military applications), certain chemicals, cryptographic software, and goods subject to trade sanctions or embargoes. Exporting controlled goods without a licence is a criminal offence."}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:145",children:"Exporters should check whether their goods are subject to export controls using the UK Strategic Export Controls List and the UK Sanctions List. If your goods are controlled, you must apply for the appropriate licence - either an Open General Export Licence (OGEL), which covers certain categories of goods to specified destinations without individual applications, or a Standard Individual Export Licence (SIEL) for specific consignments."}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:148",className:"rounded-xl border border-border bg-card p-5",children:[n.jsx("h3",{"data-loc":"client/src/pages/HMRCGuide.tsx:149",className:"font-semibold text-foreground mb-3",children:"Common categories of controlled exports"}),n.jsx("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:150",className:"grid grid-cols-1 sm:grid-cols-2 gap-2 text-sm text-muted-foreground",children:["Military equipment and components","Dual-use technology (electronics, software)","Certain chemicals and precursors","Cryptographic and security software","Goods destined for sanctioned countries","Cultural property and heritage items","Certain food and agricultural products","Endangered species (CITES)"].map(e=>n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:161",className:"flex items-start gap-2",children:[n.jsx(ws,{"data-loc":"client/src/pages/HMRCGuide.tsx:162",className:"w-3.5 h-3.5 text-green-600 mt-0.5 flex-shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/HMRCGuide.tsx:163",children:e})]},e))})]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/HMRCGuide.tsx:172",children:[n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:173",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:174",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(mt,{"data-loc":"client/src/pages/HMRCGuide.tsx:175",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/HMRCGuide.tsx:177",className:"text-xl font-bold text-foreground",children:"Record-Keeping Obligations"})]}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:179",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:180",children:"UK exporters are required by HMRC to keep records of all export transactions for a minimum of four years. These records must be sufficient to demonstrate compliance with customs requirements and to support any preference claims made. HMRC has the power to audit exporters and request evidence of origin, customs values, and export declarations at any time."}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:183",children:"Records that should be retained include: commercial invoices and packing lists; bills of lading or airway bills; export declarations and any associated HMRC correspondence; Certificates of Origin, EUR-1s, or Statements on Origin; Supplier's Declarations received from your suppliers; export licences and any ECJU correspondence; and evidence supporting the customs value declared (e.g. purchase orders, contracts, freight invoices)."}),n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:186",className:"rounded-xl border border-border bg-card p-5",children:[n.jsx("h3",{"data-loc":"client/src/pages/HMRCGuide.tsx:187",className:"font-semibold text-foreground mb-3",children:"Record-keeping summary"}),n.jsxs("table",{"data-loc":"client/src/pages/HMRCGuide.tsx:188",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/HMRCGuide.tsx:189",children:n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:190",className:"border-b border-border",children:[n.jsx("th",{"data-loc":"client/src/pages/HMRCGuide.tsx:191",className:"text-left py-2 pr-4 font-semibold text-foreground",children:"Document type"}),n.jsx("th",{"data-loc":"client/src/pages/HMRCGuide.tsx:192",className:"text-left py-2 font-semibold text-foreground",children:"Retention period"})]})}),n.jsxs("tbody",{"data-loc":"client/src/pages/HMRCGuide.tsx:195",className:"divide-y divide-border",children:[n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:196",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:197",className:"py-2 pr-4",children:"Export declarations (CDS)"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:198",className:"py-2",children:"4 years minimum"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:200",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:201",className:"py-2 pr-4",children:"Certificates of Origin & EUR-1s"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:202",className:"py-2",children:"4 years minimum"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:204",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:205",className:"py-2 pr-4",children:"Supplier's Declarations"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:206",className:"py-2",children:"4 years minimum"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:208",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:209",className:"py-2 pr-4",children:"Export licences"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:210",className:"py-2",children:"4 years after licence expiry"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/HMRCGuide.tsx:212",children:[n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:213",className:"py-2 pr-4",children:"Commercial invoices & shipping docs"}),n.jsx("td",{"data-loc":"client/src/pages/HMRCGuide.tsx:214",className:"py-2",children:"4 years minimum"})]})]})]})]})]})]})]}),n.jsx("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:225",className:"container mx-auto px-4 max-w-3xl mt-16",children:n.jsxs("div",{"data-loc":"client/src/pages/HMRCGuide.tsx:226",className:"rounded-2xl border border-border bg-card p-8 text-center",children:[n.jsx("h3",{"data-loc":"client/src/pages/HMRCGuide.tsx:227",className:"font-bold text-xl text-foreground mb-2",children:"Need a Certificate of Origin or EUR-1?"}),n.jsx("p",{"data-loc":"client/src/pages/HMRCGuide.tsx:228",className:"text-muted-foreground mb-6",children:"Docucert handles the full certification process - from document preparation to LCCI stamping and Embassy legalisation."}),n.jsx(Ne,{"data-loc":"client/src/pages/HMRCGuide.tsx:231",href:"/documents",children:n.jsx(oe,{"data-loc":"client/src/pages/HMRCGuide.tsx:232",size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90",children:"View Document Services"})})]})})]})]})}function _B(){return ul({title:"UK Border Changes 2026: What Exporters Need to Know | Docucert",description:"Key changes to UK border controls and export documentation requirements in 2026. Stay compliant with the latest HMRC and UKBA guidance.",canonical:"https://docucert.co/border-2026",ogTitle:"UK Border Changes 2026 | Docucert",ogDescription:"Key changes to UK border controls and export documentation requirements in 2026. Stay compliant.",breadcrumbs:[{name:"Home",url:"https://docucert.co/"},{name:"Resources",url:"https://docucert.co/border-2026"},{name:"UK Border Changes 2026",url:"https://docucert.co/border-2026"}]}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:22",className:"min-h-screen bg-background",children:[n.jsx(nm,{"data-loc":"client/src/pages/BorderChanges2026.tsx:23"}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:24",className:"pt-24 pb-20",children:[n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:26",className:"container mx-auto px-4 max-w-3xl mb-12",children:[n.jsx(Ne,{"data-loc":"client/src/pages/BorderChanges2026.tsx:27",href:"/",children:n.jsxs(oe,{"data-loc":"client/src/pages/BorderChanges2026.tsx:28",variant:"ghost",size:"sm",className:"mb-6 -ml-2 text-muted-foreground hover:text-foreground",children:[n.jsx(sr,{"data-loc":"client/src/pages/BorderChanges2026.tsx:29",className:"w-4 h-4 mr-2"})," Back to home"]})}),n.jsx(Gt,{"data-loc":"client/src/pages/BorderChanges2026.tsx:32",variant:"outline",className:"mb-4 text-xs font-semibold tracking-widest uppercase border-green-600/40 text-green-700 bg-green-600/5",children:"Trade Resources"}),n.jsx("h1",{"data-loc":"client/src/pages/BorderChanges2026.tsx:35",className:"font-display text-4xl md:text-5xl font-bold text-foreground mb-4",children:"2026 Border Changes"}),n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:38",className:"text-lg text-muted-foreground leading-relaxed",children:"A summary of the key UK and EU border control changes taking effect in 2026 and what they mean for UK exporters and importers."}),n.jsxs("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:41",className:"text-sm text-muted-foreground mt-3",children:["Last updated: June 2026 · Questions? Email"," ",n.jsx("a",{"data-loc":"client/src/pages/BorderChanges2026.tsx:43",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:49",className:"container mx-auto px-4 max-w-3xl space-y-12",children:[n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:52",className:"rounded-xl border border-amber-200 bg-amber-50 p-5 flex gap-3",children:[n.jsx(zc,{"data-loc":"client/src/pages/BorderChanges2026.tsx:53",className:"w-5 h-5 text-amber-600 flex-shrink-0 mt-0.5"}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:54",children:[n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:55",className:"font-semibold text-amber-900 mb
462-1",children:"Action required for many exporters"}),n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:56",className:"text-sm text-amber-800 leading-relaxed",children:"Several significant changes to UK and EU border procedures are taking effect in 2026. UK exporters should review their documentation processes, customs agent relationships, and IT systems to ensure continued compliance. This guide summarises the key changes and the steps you should take."})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/BorderChanges2026.tsx:63",children:[n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:64",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:65",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(Fr,{"data-loc":"client/src/pages/BorderChanges2026.tsx:66",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/BorderChanges2026.tsx:68",className:"text-xl font-bold text-foreground",children:"EU Entry/Exit System (EES)"})]}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:70",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:71",children:"The EU's Entry/Exit System (EES) is a new automated IT system that records the entry and exit of non-EU nationals (including UK citizens post-Brexit) crossing the EU's external borders. EES replaces the manual passport stamping process and creates a digital record of each traveller's visits to the Schengen Area, including fingerprints and facial images."}),n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:74",children:"EES is expected to be rolled out at major EU entry points during 2025â2026, following several delays. For UK exporters who travel frequently to EU markets, EES will mean longer border processing times at land borders (particularly DoverâCalais) and airports during the initial roll-out period. Dedicated EES lanes are being introduced at major crossing points to manage the additional processing time."}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:77",className:"rounded-xl border border-border bg-card p-5",children:[n.jsxs("h3",{"data-loc":"client/src/pages/BorderChanges2026.tsx:78",className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[n.jsx(BM,{"data-loc":"client/src/pages/BorderChanges2026.tsx:79",className:"w-4 h-4 text-primary"})," What this means for your business"]}),n.jsx("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:81",className:"space-y-2 text-sm text-muted-foreground",children:["Allow extra time at EU border crossings, particularly during the initial roll-out period.","UK nationals are limited to 90 days in any 180-day period in the Schengen Area - EES will enforce this automatically.","Freight and goods movements are not directly affected by EES, but driver processing times may increase at some crossings.","Businesses sending staff to EU trade shows or client meetings should review their Schengen day-count carefully."].map((e,t)=>n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:88",className:"flex items-start gap-2",children:[n.jsx(ws,{"data-loc":"client/src/pages/BorderChanges2026.tsx:89",className:"w-3.5 h-3.5 text-green-600 mt-0.5 flex-shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/BorderChanges2026.tsx:90",children:e})]},t))})]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/BorderChanges2026.tsx:99",children:[n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:100",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:101",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(al,{"data-loc":"client/src/pages/BorderChanges2026.tsx:102",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/BorderChanges2026.tsx:104",className:"text-xl font-bold text-foreground",children:"UK Border Target Operating Model (BTOM)"})]}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:106",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:107",children:"The UK's Border Target Operating Model (BTOM) sets out the government's approach to import controls on goods entering Great Britain from the EU and the rest of the world. Following a phased implementation that began in 2023, the full BTOM regime is now in effect, with ongoing refinements expected in 2026."}),n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:110",children:"Under BTOM, all goods imported into Great Britain - including from the EU - are subject to customs declarations, safety and security declarations, and (for certain categories of goods) sanitary and phytosanitary (SPS) checks at the border. The risk-based approach means that not all c
462onsignments are physically inspected, but all must be pre-notified and declared."}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:113",className:"rounded-xl border border-border bg-card p-5",children:[n.jsx("h3",{"data-loc":"client/src/pages/BorderChanges2026.tsx:114",className:"font-semibold text-foreground mb-3",children:"BTOM import requirements at a glance"}),n.jsxs("table",{"data-loc":"client/src/pages/BorderChanges2026.tsx:115",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/BorderChanges2026.tsx:116",children:n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:117",className:"border-b border-border",children:[n.jsx("th",{"data-loc":"client/src/pages/BorderChanges2026.tsx:118",className:"text-left py-2 pr-4 font-semibold text-foreground",children:"Goods category"}),n.jsx("th",{"data-loc":"client/src/pages/BorderChanges2026.tsx:119",className:"text-left py-2 font-semibold text-foreground",children:"Requirements"})]})}),n.jsxs("tbody",{"data-loc":"client/src/pages/BorderChanges2026.tsx:122",className:"divide-y divide-border",children:[n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:123",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:124",className:"py-2 pr-4 font-medium text-foreground",children:"All goods (EU & RoW)"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:125",className:"py-2",children:"Customs declaration required"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:127",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:128",className:"py-2 pr-4 font-medium text-foreground",children:"Medium-risk animal products"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:129",className:"py-2",children:"Pre-notification via IPAFFS; health certificate required"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:131",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:132",className:"py-2 pr-4 font-medium text-foreground",children:"High-risk animal products"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:133",className:"py-2",children:"Pre-notification; health certificate; physical checks at BCP"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:135",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:136",className:"py-2 pr-4 font-medium text-foreground",children:"Medium-risk plants & plant products"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:137",className:"py-2",children:"Phytosanitary certificate; pre-notification"})]}),n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:139",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:140",className:"py-2 pr-4 font-medium text-foreground",children:"Safety & security"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:141",className:"py-2",children:"Import Safety & Security Declaration (S&SD) required"})]})]})]})]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/BorderChanges2026.tsx:150",children:[n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:151",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:152",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(mt,{"data-loc":"client/src/pages/BorderChanges2026.tsx:153",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/BorderChanges2026.tsx:155",className:"text-xl font-bold text-foreground",children:"EU Carbon Border Adjustment Mechanism (CBAM)"})]}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:157",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:158",children:"The EU's Carbon Border Adjustment Mechanism (CBAM) entered its transitional phase in October 2023 and will become fully operational from 1 January 2026. CBAM is a carbon pricing mechanism that applies to imports of certain carbon-intensive goods into the EU, requiring importers to purchase CBAM certificates corresponding to the carbon price that would have been paid under the EU Emissions Trading System (ETS) if the goods had been produced in the EU."}),n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:161",children:"In its initial phase, CBAM covers six sectors: cement, iron and steel, aluminium, fertilisers, electricity, and hydrogen. UK exporters of goods in these sectors who sell into the EU market will be directly affected. EU importers of these goods must report the embedded carbon content of their imports and, from 2026, surrender CBAM certificates accordingly."}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:164",className:"rounded-xl border border-border bg-card p-5",children:[n.jsxs("h3",{"data-loc":"client/src/pages/BorderChanges2026.tsx:165",className:"font-semibold text-foreground mb-3 flex items-center gap-2",children:[n.jsx(zc,{"data-loc":"client/src/pages/BorderChanges2026.tsx:166",className:"w-4 h-4 text-amber-500"})," What UK exporters need to do"]}),n.jsx("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:168",className:"space-y-2 text-sm text-muted-foreground",children:["Identify whether your goods fall within the CBAM sectors (cement, steel, aluminium, fertilisers, electricity, hydrogen).","Calculate and document the embedded carbon emissions in your production process - your EU importer will need this data.","Work with your EU customers to ensure they are registered as CBAM declarants and understand their obligations.","Consider whether investing in lower-carbon production processes could reduce your EU customers' CBAM costs and improve your competitiveness.","Monitor the UK government's own carbon border adjustment proposals, which may affect imports into the UK from 2027."].map((e,t)=>n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:176",className:"flex items-start gap-2",children:[n.jsx(ws,{"data-loc":"client/src/pages/BorderChanges2026.tsx:177",className:"w-3.5 h-3.5 text-green-600 mt-0.5 flex-shrink-0"}),n.jsx("span",{"data-loc":"client/src/pages/BorderChanges2026.tsx:178",children:e})]},t))})]})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/BorderChanges2026.tsx:187",children:[n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:188",className:"flex items-center gap-3 mb-4",children:[n.jsx("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:189",className:"w-8 h-8 rounded-lg bg-primary/10 border border-primary/20 flex items-center justify-center flex-shrink-0",children:n.jsx(Fr,{"data-loc":"client/src/pages/BorderChanges2026.tsx:190",className:"w-4 h-4 text-primary"})}),n.jsx("h2",{"data-loc":"client/src/pages/BorderChanges2026.tsx:192",className:"text-xl font-bold text-foreground",children:"New UK Trade Agreements in 2025â2026"})]}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:194",className:"prose-sm text-muted-foreground leading-relaxed space-y-4",children:[n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:195",children:"The UK has been actively negotiating and ratifying new trade agreements since leaving the EU. Several agreements that entered into force or were substantially concluded in 2025â2026 create new preferential tariff opportunities for UK exporters."}),n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:198",className:"rounded-xl border border-border bg-card p-5",children:[n.jsx("h3",{"data-loc":"client/src/pages/BorderChanges2026.tsx:199",className:"font-semibold text-foreground mb-3",children:"Key agreements affecting UK exporters"}),n.jsxs("table",{"data-loc":"client/src/pages/BorderChanges2026.tsx:200",className:"w-full text-sm",children:[n.jsx("thead",{"data-loc":"client/src/pages/BorderChanges2026.tsx:201",children:n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:202",className:"border-b border-border",children:[n.jsx("th",{"data-loc":"client/src/pages/BorderChanges2026.tsx:203",className:"text-left py-2 pr-4 font-semibold text-foreground",children:"Agreement"}),n.jsx("th",{"data-loc":"client/src/pages/BorderChanges2026.tsx:204",className:"text-left py-2 font-semibold text-foreground",children:"Status & key points"})]})}),n.jsxs("tbody",{"data-loc":"client/src/pages/BorderChanges2026.tsx:207",className:"divide-y divide-border",children:[n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:208",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:209",className:"py-2 pr-4 font-medium text-foreground",children:"UKâIndia FTA"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:210",className:"py-2",children:"Negotiations ongoing; expected to cover tariff reductions on goods, services liberalisation, and investment protections."})]}),n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:212",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:213",className:"py-2 pr-4 font-medium text-foreground",children:"UKâGulf Cooperation Council (GCC)"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:214",className:"py-2",children:"Negotiations ongoing with Saudi Arabia, UAE, Qatar, Kuwait, Bahrain, and Oman. Significant opportunity for UK exporters to the Gulf."})]}),n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:216",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:217",className:"py-2 pr-4 font-medium text-foreground",children:"CPTPP accession"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:218",className:"py-2",children:"UK formally acceded to the Comprehensive and Progressive Agreement for Trans-Pacific Partnership in December 2024, opening preferential access to 11 Pacific markets."})]}),n.jsxs("tr",{"data-loc":"client/src/pages/BorderChanges2026.tsx:220",children:[n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:221",className:"py-2 pr-4 font-medium text-foreground",children:"UKâEU TCA review"}),n.jsx("td",{"data-loc":"client/src/pages/BorderChanges2026.tsx:222",className:"py-2",children:"The UKâEU Trade and Cooperation Agreement is subject to a joint review. Discussions on mutual recognition of professional qual
462ifications and SPS alignment are ongoing."})]})]})]})]}),n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:227",children:"For each new agreement, UK exporters should review whether their goods meet the relevant rules of origin criteria to qualify for preferential tariff rates. Docucert can assist with EUR-1 certificates and Statements on Origin for qualifying shipments."})]})]})]}),n.jsx("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:236",className:"container mx-auto px-4 max-w-3xl mt-16",children:n.jsxs("div",{"data-loc":"client/src/pages/BorderChanges2026.tsx:237",className:"rounded-2xl border border-border bg-card p-8 text-center",children:[n.jsx("h3",{"data-loc":"client/src/pages/BorderChanges2026.tsx:238",className:"font-bold text-xl text-foreground mb-2",children:"Stay compliant in 2026"}),n.jsx("p",{"data-loc":"client/src/pages/BorderChanges2026.tsx:239",className:"text-muted-foreground mb-6",children:"Docucert handles Certificates of Origin, EUR-1s, Apostilles, and Embassy legalisation - keeping your exports moving smoothly."}),n.jsx(Ne,{"data-loc":"client/src/pages/BorderChanges2026.tsx:242",href:"/documents",children:n.jsx(oe,{"data-loc":"client/src/pages/BorderChanges2026.tsx:243",size:"lg",className:"bg-primary text-primary-foreground hover:bg-primary/90",children:"View Document Services"})})]})})]})]})}const jj={draft:{label:"Draft",color:"text-gray-600",icon:mt},submitted:{label:"Submitted",color:"text-blue-600",icon:Ta},processing:{label:"Processing",color:"text-yellow-600",icon:Ta},reviewing:{label:"Reviewing",color:"text-yellow-600",icon:fu},quote_sent:{label:"Quote Sent",color:"text-purple-600",icon:Ft},sent_to_chamber:{label:"Sent to Chamber",color:"text-blue-600",icon:la},legalized:{label:"Legalized",color:"text-green-600",icon:Wd},dispatched:{label:"Dispatched",color:"text-green-600",icon:la},complete:{label:"Complete",color:"text-green-600",icon:Wd},completed:{label:"Completed",color:"text-green-600",icon:Wd},rejected:{label:"Rejected",color:"text-red-600",icon:pu}},LB={cert_of_origin_uk:"UK Certificate of Origin",arab_british_cert:"Arab-British Certificate",eur1:"EUR-1 Movement Certificate",apostille:"Apostille",commercial_invoice_cert:"Commercial Invoice Certification",elo:"ELO (Logistics Envelope)",ics2_ens:"ICS2 ENS Filing",gmr_pbn:"GMR / PBN Barcodes"};function UB(){const[e,t]=v.useState(""),[r,i]=v.useState(""),[c,d]=v.useState(!1),u=Ae.consular.trackOrder.useQuery({orderGroupRef:e,email:r},{enabled:c&&!!e&&!!r}),m=h=>{h.preventDefault(),e.trim()&&r.trim()&&d(!0)},f=()=>{d(!1),t(""),i("")};return n.jsx("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:57",className:"min-h-screen bg-gradient-to-br from-background via-background to-secondary/20",children:n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:58",className:"container mx-auto px-4 py-16 max-w-4xl",children:[n.jsxs(Ue.div,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:60",initial:{opacity:0,y:-20},animate:{opacity:1,y:0},className:"text-center mb-12",children:[n.jsx("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:65",className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 mb-4",children:n.jsx(la,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:66",className:"w-8 h-8 text-primary"})}),n.jsx("h1",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:68",className:"text-4xl font-bold mb-3",children:"Track Your Document Order"}),n.jsx("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:69",className:"text-muted-foreground text-lg",children:"Enter your order reference and email to view the status of your document services order."})]}),!c&&n.jsx(Ue.div,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:76",initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"bg-card border border-border/60 rounded-2xl p-8 shadow-lg",children:n.jsxs("form",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:82",onSubmit:m,className:"space-y-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:83",children:[n.jsx("label",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:84",className:"block text-sm font-medium mb-2",children:"Order Reference"}),n.jsx(Fe,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:85",type:"text",placeholder:"e.g., DS-2024-001",value:e,onCh
462ange:h=>t(h.target.value),className:"h-12 text-base",required:!0}),n.jsx("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:93",className:"text-xs text-muted-foreground mt-1.5",children:"You can find this in your confirmation email"})]}),n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:97",children:[n.jsx("label",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:98",className:"block text-sm font-medium mb-2",children:"Email Address"}),n.jsx(Fe,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:99",type:"email",placeholder:"[email protected]",value:r,onChange:h=>i(h.target.value),className:"h-12 text-base",required:!0}),n.jsx("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:107",className:"text-xs text-muted-foreground mt-1.5",children:"The email address used when placing the order"})]}),n.jsx(oe,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:111",type:"submit",size:"lg",className:"w-full h-12 text-base",children:"Track Order"})]})}),c&&u.isLoading&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:120",initial:{opacity:0}
462,animate:{opacity:1},className:"bg-card border border-border/60 rounded-2xl p-12 text-center shadow-lg",children:[n.jsx(ht,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:125",className:"w-12 h-12 animate-spin text-primary mx-auto mb-4"}),n.jsx("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:126",className:"text-muted-foreground",children:"Looking up your order..."})]}),c&&!u.isLoading&&!u.data&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:132",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},className:"bg-card border border-border/60 rounded-2xl p-12 text-center shadow-lg",children:[n.jsx("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:137",className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-red-500/10 mb-4",children:n.jsx(pu,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:138",className:"w-8 h-8 text-red-600"})}),n.jsx("h2",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:140",className:"text-2xl font-bold mb-2",children:"Order Not Found"}),n.jsxs("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:141",className:"text-muted-foreground mb-6",children:["We couldn't find an order with that reference and email combination.",n.jsx("br",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:143"}),"Please check your details and try again."]}),n.jsx(oe,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:146",onClick:f,variant:"outline",children:"Try Again"})]}),c&&u.data&&u.data.length>0&&n.jsxs(Ue.div,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:154",initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"space-y-6",children:[n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:160",className:"bg-card border border-border/60 rounded-2xl p-6 shadow-lg",children:[n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:161",className:"flex items-start justify-between gap-4 mb-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:162",children:[n.jsxs("h2",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:163",className:"text-2xl font-bold mb-1",children:["Order ",u.data[0].orderGroupRef]}),n.jsxs("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:164",className:"text-muted-foreground",children:["Placed on ",new Date(u.data[0].createdAt).toLocaleDateString("en-GB",{day:"2-digit",month:"long",year:"numeric"})]})]}),n.jsx(oe,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:168",onClick:f,variant:"outline",size:"sm",children:"Track Another Order"})]}),u.data[0].customerName&&n.jsxs("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:173",className:"text-sm text-muted-foreground",children:[n.jsx("span",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:174",className:"font-medium text-foreground",children:"Customer:"})," ",u.data[0].customerName,u.data[0].customerCompany&&` ⢠${u.data[0].customerCompany}`]})]}),n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:181",className:"space-y-4",children:[n.jsxs("h3",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:182",className:"text-lg font-semibold px-1",children:["Documents (",u.data.length,")"]}),u.data.map(h=>{const y=jj[h.status]||jj.submitted,g=y.icon;return n.jsxs(Ue.div,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:187",initial:{opacity:0,x:-20},animate:{opacity:1,x:0},className:"bg-card border border-border/60 rounded-xl p-6 shadow-md hover:shadow-lg transition-shadow",children:[n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:193",className:"flex items-start justify-between gap-4 mb-4",children:[n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:194",className:"flex-1",children:[n.jsx("h4",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:195",className:"text-lg font-semibold mb-1",children:LB[h.docType]||h.docType}),n.jsxs("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:198",className:"text-sm text-muted-foreground",children:["Document ID: ",h.id," ⢠£",h.priceGbp]})]}),n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:202",className:`inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-secondary/60 ${y.color} font-medium text-sm`,children:[n.jsx(g,{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:203",className:"w-4 h-4"}),y.label]})]}),n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:209",className:"flex items-center gap-2 text-sm mb-3",children:[n.jsx("span",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:210",className:"text-muted-foreground",children:"Payment:"}),n.jsx("span",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:211",className:`font-medium ${h.paymentStatus==="paid"?"text-green-600":"text-yellow-600"}`,children:h.paymentStatus==="paid"?"â Paid":h.paymentStatus==="failed"?"â Failed":"â³ Pending"})]}),h.specialInstructions&&n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:218",className:"bg-amber-50 dark:bg-amber-950/30 border border-amber-200/60 rounded-lg p-3 text-sm",children:[n.jsx("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:219",className:"font-medium text-amber-900 dark:text-amber-100 mb-1",children:"Special Instructions:"}),n.jsx("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:220",className:"text-amber-800 dark:text-amber-200",children:h.specialInstructions})]}),h.customerRef&&n.jsxs("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:226",className:"text-sm text-muted-foreground mt-3",children:[n.jsx("span",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:227",className:"font-medium text-foreground",children:"Your Reference:"})," ",h.customerRef]}),h.assignedStaffName&&n.jsxs("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:233",className:"text-sm text-muted-foreground mt-2",children:[n.jsx("span",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:234",className:"font-medium text-foreground",children:"Assigned to:"})," ",h.assignedStaffName]})]}
462,h.id)})]}),n.jsxs("div",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:243",className:"bg-secondary/30 border border-border/40 rounded-xl p-6 text-center",children:[n.jsx("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:244",className:"text-sm text-muted-foreground mb-2",children:"Need help with your order?"}),n.jsxs("p",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:247",className:"text-sm",children:["Contact us at"," ",n.jsx("a",{"data-loc":"client/src/pages/TrackDocumentOrder.tsx:249",href:"mailto:[email protected]",className:"text-primary hover:underline font-medium",children:"[email protected]"})]})]})]})]})})}function BB(){return n.jsxs("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:7",className:"min-h-screen bg-background text-foreground",children:[n.jsx("header",{"data-loc":"client/src/pages/PaymentTerms.tsx:9",className:"border-b border-border/40 py-4 px-6",children:n.jsxs("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:10",className:"max-w-4xl mx-auto flex items-center justify-between",children:[n.jsx(Ne,{"data-loc":"client/src/pages/PaymentTerms.tsx:11",href:"/",children:n.jsxs("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:12",className:"flex items-center gap-2 cursor-pointer",children:[n.jsx("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:13",className:"w-7 h-7 rounded bg-primary flex items-center justify-center",children:n.jsx(mt,{"data-loc":"client/src/pages/PaymentTerms.tsx:14",className:"w-4 h-4 text-primary-foreground"})}),n.jsx("span",{"data-loc":"client/src/pages/PaymentTerms.tsx:16",className:"font-bold text-lg text-foreground",children:"Docucert"})]})}),n.jsx(Ne,{"data-loc":"client/src/pages/PaymentTerms.tsx:19",href:"/",children:n.jsxs(oe,{"data-loc":"client/src/pages/PaymentTerms.tsx:20",variant:"ghost",size:"sm",className:"gap-1.5 text-muted-foreground",children:[n.jsx(sr,{"data-loc":"client/src/pages/PaymentTerms.tsx:21",className:"w-4 h-4"})," Back to home"]})})]})}),n.jsxs("main",{"data-loc":"client/src/pages/PaymentTerms.tsx:28",className:"max-w-4xl mx-auto px-6 py-12",children:[n.jsxs("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:29",className:"mb-8",children:[n.jsx("h1",{"data-loc":"client/src/pages/PaymentTerms.tsx:30",className:"text-3xl font-bold text-foreground mb-2",children:"Payment Terms"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:31",className:"text-muted-foreground text-sm",children:"Last updated: 22 June 2026"})]}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:34",className:"space-y-8 text-foreground",children:[n.jsxs("section",{"data-loc":"client/src/pages/PaymentTerms.tsx:36",children:[n.jsx("h2",{"data-loc":"client/src/pages/PaymentTerms.tsx:37",className:"text-xl font-semibold text-foreground mb-3",children:"1. Standard Payment"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:38",className:"text-muted-foreground leading-relaxed",children:"Payment for all document certification and legalisation services is due at the time of order. We accept all major credit and debit cards via Stripe. Payments are processed securely and your card details are never stored on our servers."})]}),n.jsxs("section",{"data-loc":"client/src/pages/PaymentTerms.tsx:43",children:[n.jsx("h2",{"data-loc":"client/src/pages/PaymentTerms.tsx:44",className:"text-xl font-semibold text-foreground mb-3",children:"2. Net 30 Terms"}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:45",className:"text-muted-foreground leading-relaxed mb-4",children:["Docucert offers ",n.jsx("strong",{"data-loc":"client/src/pages/PaymentTerms.tsx:46",className:"text-foreground",children:"Net 30 payment terms"})," for qualified customers who prefer to pay by bank transfer or purchase order. Under Net 30 terms, payment in full is due within 30 calendar days of the invoice date."]}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:48",className:"text-muted-foreground leading-relaxed mb-4",children:["To apply for Net 30 terms, please contact us at"," ",n.jsx("a",{"data-loc":"client/src/pages/PaymentTerms.tsx:50",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})," ","with your company name, registered address, and VAT number (if applicable). Approval is at Docucert's sole discretion and may be subject to a credit check."]}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:53",className:"text-muted-foreground leading-relaxed",children:["Approved customers can select ",n.jsx("strong",{"data-loc":"client/src/pages/PaymentTerms.tsx:54",className:"text-foreground",children:'"Submit order - pay later by invoice"'})," at checkout. An invoice will be issued by email and payment can be made by:"]}),n.jsxs("ul",{"data-loc":"client/src/pages/PaymentTerms.tsx:56",className:"mt-3 space-y-1 list-disc list-inside text-muted-foreground",children:[n.jsx("li",{"data-loc":"client/src/pages/PaymentTerms.tsx:57",children:"Bank transfer (BACS / CHAPS) - details provided on the invoice"}),n.jsx("li",{"data-loc":"client/src/pages/PaymentTerms.tsx:58",children:"Purchase order - accepted from pre-approved organisations"})]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PaymentTerms.tsx:62",children:[n.jsx("h2",{"data-loc":"client/src/pages/PaymentTerms.tsx:63",className:"text-xl font-semibold text-foreground mb-3",children:"3. Late Payment"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:64",className:"text-muted-foreground leading-relaxed",children:"Invoices not settled within the agreed payment period may incur a late payment charge of 8% per annum above the Bank of England base rate, in accordance with the Late Payment of Commercial Debts (Interest) Act 1998. Docucert reserves the right to suspend services for accounts with outstanding balances."})]}),n.jsxs("section",{"data-loc":"client/src/pages/PaymentTerms.tsx:69",children:[n.jsx("h2",{"data-loc":"client/src/pages/PaymentTerms.tsx:70",className:"text-xl font-semibold text-foreground mb-3",children:"4. Refunds"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:71",className:"text-muted-foreground leading-relaxed mb-4",children:"If an order cannot be fulfilled due to an error on our part, a full refund will be issued within 5â10 business days to the original payment method. Refunds are not available once a document has been submitted to the issuing authority (e.g. LCCI, embassy, or notary) on your behalf."}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:74",className:"text-muted-foreground leading-relaxed",children:["To request a refund, please contact"," ",n.jsx("a",{"data-loc":"client/src/pages/PaymentTerms.tsx:76",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})," ","with your order reference number."]})]}),n.jsxs("section",{"data-loc":"client/src/pages/PaymentTerms.tsx:81",children:[n.jsx("h2",{"data-loc":"client/src/pages/PaymentTerms.tsx:82",className:"text-xl font-semibold text-foreground mb-3",children:"5. VAT"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:83",className:"text-muted-foreground leading-relaxed",children:"All prices displayed are exclusive of VAT unless otherwise stated. VAT will be applied at the prevailing UK rate where applicable. A VAT invoice is issued automatically upon payment confirmation."})]}),n.jsxs("section",{"data-loc":"client/src/pages/PaymentTerms.tsx:88",children:[n.jsx("h2",{"data-loc":"client/src/pages/PaymentTerms.tsx:89",className:"text-xl font-semibold text-foreground mb-3",children:"6. Currency"}),n.jsx("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:90",className:"text-muted-foreground leading-relaxed",children:"All invoices are issued in Pounds Sterling (GBP) unless a separate written agreement has been made. For international bank transfers, the customer is responsible for any currency conversion fees or bank charges."})]}),n.jsxs("section",{"data-loc":"client/src/pages/PaymentTerms.tsx:95",children:[n.jsx("h2",{"data-loc":"client/src/pages/PaymentTerms.tsx:96",className:"text-xl font-semibold text-foreground mb-3",children:"7.
462Contact"}),n.jsxs("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:97",className:"text-muted-foreground leading-relaxed",children:["For billing enquiries, please contact our accounts team at"," ",n.jsx("a",{"data-loc":"client/src/pages/PaymentTerms.tsx:99",href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"}),"."]})]})]})]}),n.jsx("footer",{"data-loc":"client/src/pages/PaymentTerms.tsx:107",className:"border-t border-border/40 py-6 px-6 mt-12",children:n.jsxs("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:108",className:"max-w-4xl mx-auto space-y-3",children:[n.jsx("p",{"data-loc":"client/src/pages/PaymentTerms.tsx:109",className:"text-xs text-muted-foreground",children:"Docucert Ltd - Registered in England and Wales, Company No. 17305458. Registered Office: 167â169 Great Portland Street, 5th Floor, London, W1W 5PF."}),n.jsxs("div",{"data-loc":"client/src/pages/PaymentTerms.tsx:110",className:"flex flex-wrap gap-4 text-sm text-muted-foreground",children:[n.jsx(Ne,{"data-loc":"client/src/pages/PaymentTerms.tsx:111",href:"/privacy",className:"hover:text-foreground transition-colors",children:"Privacy Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/PaymentTerms.tsx:112",href:"/terms",className:"hover:text-foreground transition-colors",children:"Terms of Service"}),n.jsx(Ne,{"data-loc":"client/src/pages/PaymentTerms.tsx:113",href:"/cookies",className:"hover:text-foreground transition-colors",children:"Cookie Policy"}),n.jsx(Ne,{"data-loc":"client/src/pages/PaymentTerms.tsx:114",href:"/payment-terms",className:"hover:text-foreground transition-colors font-medium text-foreground",children:"Payment Terms"})]})]})})]})}const oh="docucert_cookie_consent";function zB(){const[e,t]=v.useState(null),[r,i]=v.useState(!1);v.useEffect(()=>{const u=localStorage.getItem(oh);if(!u){const m=setTimeout(()=>i(!0),800);return()=>clearTimeout(m)}t(u)},[]);const c=()=>{localStorage.setItem(oh,"accepted"),t("accepted"),i(!1)},d=()=>{localStorage.setItem(oh,"declined"),t("declined"),i(!1)};return!r||e!==null?null:n.jsx("div",{"data-loc":"client/src/components/CookieConsent.tsx:39",className:"fixed bottom-0 left-0 right-0 z-[9999] p-4 md:p-6",role:"dialog","aria-label":"Cookie consent",children:n.jsxs("div",{"data-loc":"client/src/components/CookieConsent.tsx:44",className:"max-w-4xl mx-auto bg-card border border-border rounded-xl shadow-2xl p-5 md:p-6 flex flex-col md:flex-row gap-4 md:items-center",children:[n.jsxs("div",{"data-loc":"client/src/components/CookieConsent.tsx:46",className:"flex gap-3 flex-1 min-w-0",children:[n.jsx("div",{"data-loc":"client/src/components/CookieConsent.tsx:47",className:"shrink-0 mt-0.5",children:n.jsx(VM,{"data-loc":"client/src/components/CookieConsent.tsx:48",className:"h-5 w-5 text-primary"})}),n.jsxs("div",{"data-loc":"client/src/components/CookieConsent.tsx:50",className:"min-w-0",children:[n.jsx("p",{"data-loc":"client/src/components/CookieConsent.tsx:51",className:"text-sm font-semibold text-foreground mb-1",children:"We use cookies"}),n.jsxs("p",{"data-loc":"client/src/components/CookieConsent.tsx:54",className:"text-sm text-muted-foreground leading-relaxed",children:["We use essential cookies to keep the site running and optional analytics cookies to understand how you use Docucert. Read our"," ",n.jsx(Ne,{"data-loc":"client/src/components/CookieConsent.tsx:56",href:"/cookies",className:"text-primary underline underline-offset-2 hover:opacity-80",children:"Cookie Policy"})," ","and"," ",n.jsx(Ne,{"data-loc":"client/src/components/CookieConsent.tsx:60",href:"/privacy",className:"text-primary underline underline-offset-2 hover:opacity-80",children:"Privacy Policy"})," ","for details."]})]})]}),n.jsxs("div",{"data-loc":"client/src/components/CookieConsent.tsx:69",className:"flex items-center gap-2 shrink-0",children:[n.jsx(oe,{"data-loc":"client/src/components/CookieConsent.tsx:70",variant:"outline",size:"sm",onClick:d,className:"text-muted-foreground",children:"Decline"}),n.jsx(oe,{"data-loc":"client/src/components/CookieConsent.tsx:78",size:"sm",onClick:c,className:"bg-primary text-primary-foreground hover:bg-primary/90",children:"Accept all"}),n.jsx("button",{"data-loc":"client/src/components/CookieConsent.tsx:85",onClick:d,className:"ml-1 p-1.5 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors","aria-label":"Dismiss",children:n.jsx(_s,{"data-loc":"client/src/components/CookieConsent.tsx:90",className:"h-4 w-4"})})]})]})})}function HB(){const[e]=Ls();return v.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"instant"})},[e]),null}function IB(){const{user:e,loading:t}=ea(),[,r]=Ls();return v.useEffect(()=>{!t&&e?.role!=="admin"&&r("/")},[e,t,r]),t||e?.role!=="admin"?null:n.jsx($L,{"data-loc":"client/src/App.tsx:53"})}function VB(){return n.jsxs(n.Fragment,{children:[n.jsx(HB,{"data-loc":"client/src/App.tsx:59"}),n.jsxs(DR,{"data-loc":"client/src/App.tsx:60",children:[n.jsx(St,{"data-loc":"client/src/App.tsx:61",path:"/",component:I9}),n.jsx(St,{"data-loc":"client/src/App.tsx:62",path:"/documents/success",component:Y9}),n.jsx(St,{"data-loc":"client/src/App.tsx:63",path:"/documents",component:Q9}),n.jsx(St,{"data-loc":"client/src/App.tsx:64",path:"/order/success",component:K9}),n.jsx(St,{"data-loc":"client/src/App.tsx:65",path:"/dashboard",component:X9}),n.jsx(St,{"data-loc":"client/src/App.tsx:66",path:"/payment/success",component:tL}),n.jsx(St,{"data-loc":"client/src/App.tsx:67",path:"/track/:id",component:UB}),n.jsx(St,{"data-loc":"client/src/App.tsx:68",path:"/track",children:n.jsx(MR,{"data-loc":"client/src/App.tsx:68",to:"/dashboard"})}),n.jsx(St,{"data-loc":"client/src/App.tsx:69",path:"/payment-terms",component:BB}),n.jsx(St,{"data-loc":"client/src/App.tsx:70",path:"/privacy",component:XL}),n.jsx(St,{"data-loc":"client/src/App.tsx:71",path:"/terms",component:WL}),n.jsx(St,{"data-loc":"client/src/App.tsx:72",path:"/cookies",component:ZL}),n.jsx(St,{"data-loc":"client/src/App.tsx:73",path:"/faq",component:kB}),n.jsx(St,{"data-loc":"client/src/App.tsx:74",path:"/hmrc-guide",component:PB}),n.jsx(St,{"data-loc":"client/src/App.tsx:75",path:"/border-2026",component:_B}),n.jsx(St,{"data-loc":"client/src/App.tsx:76",path:"/admin",component:IB}),n.jsx(St,{"data-loc":"client/src/App.tsx:77",path:"/login",component:Fk}),n.jsx(St,{"data-loc":"client/src/App.tsx:78",path:"/reset-password",component:$k}),n.jsx(St,{"data-loc":"client/src/App.tsx:79",path:"/verify-email",component:Xk}),n.jsx(St,{"data-loc":"client/src/App.tsx:80",path:"/join-company",component:Wk}),n.jsx(St,{"data-loc":"client/src/App.tsx:81",path:"/404",component:G1}),n.jsx(St,{"data-loc":"client/src/App.tsx:82",component:G1})]})]})}function qB(){return n.jsx(Zk,{"data-loc":"client/src/App.tsx:90",children:n.jsx(eP,{"data-loc":"client/src/App.tsx:91",defaultTheme:"light",children:n.jsxs(EM,{"data-loc":"client/src/App.tsx:92",children:[n.jsx(BE,{"data-loc":"client/src/App.tsx:93",position:"top-right"}),n.jsxs("div",{"data-loc":"client/src/App.tsx:94",className:"min-h-screen bg-background text-foreground",children:[n.jsx(nm,{"data-loc":"client/src/App.tsx:95"}),n.jsx(VB,{"data-loc":"client/src/App.tsx:96"}),n.jsx(zB,{"data-loc":"client/src/App.tsx:97"})]})]})})})}var ZA=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(ZA||{}),ch={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]}
462,meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}};Object.values(ZA);var Fg={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"};Object.entries(Fg).reduce((e,[t,r])=>(e[r]=t,e),{});var Xc="data-rh",FB=e=>Array.isArray(e)?e.join(""):e,GB=(e,t)=>{const r=Object.keys(e);for(let i=0;i<r.length;i+=1)if(t[r[i]]&&t[r[i]].includes(e[r[i]]))return!0;return!1},lh=(e,t)=>Array.isArray(e)?e.reduce((r,i)=>(GB(i,t)?r.priority.push(i):r.default.push(i),r),{priority:[],default:[]}):{default:e,priority:[]},QB=["noscript","script","style"],vx=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),JA=e=>Object.keys(e).reduce((t,r)=>{const i=typeof e[r]<"u"?`${r}="${e[r]}"`:`${r}`;return t?`${t} ${i}`:i},""),KB=(e,t,r,i)=>{const c=JA(r),d=FB(t);return c?`<${e} ${Xc}="true" ${c}>${vx(d,i)}</${e}>`:`<${e} ${Xc}="true">${vx(d,i)}</${e}>`},YB=(e,t,r=!0)=>t.reduce((i,c)=>{const d=c,u=Object.keys(d).filter(h=>!(h==="innerHTML"||h==="cssText")).reduce((h,y)=>{const g=typeof d[y]>"u"?y:`${y}="${vx(d[y],r)}"`;return h?`${h} ${g}`:g},""),m=d.innerHTML||d.cssText||"",f=QB.indexOf(e)===-1;return`${i}<${e} ${Xc}="true" ${u}${f?"/>":`>${m}</${e}>`}`},""),e4=(e,t={})=>Object.keys(e).reduce((r,i)=>{const c=Fg[i];return r[c||i]=e[i],r},t),$B=(e,t,r)=>{const i={key:t,[Xc]:!0},c=e4(r,i);return[me.createElement("title",c,t)]},ru=(e,t)=>t.map((r,i)=>{const c={key:i,[Xc]:!0};return Object.keys(r).forEach(d=>{const m=Fg[d]||d;if(m==="innerHTML"||m==="cssText"){const f=r.innerHTML||r.cssText;c.dangerouslySetInnerHTML={__html:f}}else c[m]=r[d]}),me.createElement(e,c)}),$s=(e,t,r=!0)=>{switch(e){case"title":return{toComponent:()=>$B(e,t.title,t.titleAttributes),toString:()=>KB(e,t.title,t.titleAttributes,r)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>e4(t),toString:()=>JA(t)};default:return{toComponent:()=>ru(e,t),toString:()=>YB(e,t,r)}}},XB=({metaTags:e,linkTags:t,scriptTags:r,encode:i})=>{const c=lh(e,ch.meta),d=lh(t,ch.link),u=lh(r,ch.script);return{priorityMethods:{toComponent:()=>[...ru("meta",c.priority),...ru("link",d.priority),...ru("script",u.priority)],toString:()=>`${$s("meta",c.priority,i)} ${$s("link",d.priority,i)} ${$s("script",u.priority,i)}`},metaTags:c.default,linkTags:d.default,scriptTags:u.default}},WB=e=>{const{baseTag:t,bodyAttributes:r,encode:i=!0,htmlAttributes:c,noscriptTags:d,styleTags:u,title:m="",titleAttributes:f,prioritizeSeoTags:h}=e;let{linkTags:y,metaTags:g,scriptTags:b}=e,w={toComponent:()=>[],toString:()=>""};return h&&({priorityMethods:w,linkTags:y,metaTags:g,scriptTags:b}=XB(e)),{priority:w,base:$s("base",t,i),bodyAttributes:$s("bodyAttributes",r,i),htmlAttributes:$s("htmlAttributes",c,i),link:$s("link",y,i),meta:$s("meta",g,i),noscript:$s("noscript",d,i),script:$s("script",b,i),style:$s("style",u,i),title:$s("title",{title:m,titleAttributes:f},i)}},ZB=WB,Qd=[],t4=!!(typeof window<"u"&&window.document&&window.document.createElement),JB=class{instances=[];canUseDOM=t4;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Qd:this.instances,add:e=>{(this.canUseDOM?Qd:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Qd:this.instances).indexOf(e);(this.canUseDOM?Qd:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=ZB({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ez=parseInt(me.version.split(".")[0],10),wj=ez>=19,tz={},sz=me.createContext(tz),az=class s4 extends v.Component{static canUseDOM=t4;helmetData;constructor(t){super(t),wj?this.helmetData=null:this.helmetData=new JB(this.props.context||{},s4.canUseDOM)}render(){return wj?me.createElement(me.Fragment,null,this.props.children):me.createElement(sz.Provider,{value:this.helmetData.value},this.props.children)}};const Au=new I3;Au.getQueryCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.query.state.error;(!(t instanceof Hr)||t.message!==dw)&&console.error("[API Query Error]",t)}});Au.getMutationCache().subscribe(e=>{if(e.type==="updated"&&e.action.type==="error"){const t=e.mutation.state.error;(!(t instanceof Hr)||t.message!==dw)&&console.error("[API Mutation Error]",t)}});const nz=Ae.createClient({links:[$5({url:"/api/trpc",transformer:ln,fetch(e,t){return globalThis.fetch(e,{...t??{},credentials:"include"})}})]});TO.createRoot(document.getElementById("root")).render(n.jsx(Ae.Provider,{"data-loc":"client/src/main.tsx:51",client:nz,queryClient:Au,children:n.jsx(q3,{"data-loc":"client/src/main.tsx:52",client:Au,children:n.jsx(az,{"data-loc":"client/src/main.tsx:53",children:n.jsx(V9,{"data-loc":"client/src/main.tsx:54",children:n.jsx(qB,{"data-loc":"client/src/main.tsx:55"})})})})}));
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.