vendor: 28,203 bytes, lines 1-9
1function qj(n,a){for(var r=0;r<a.length;r++){const l=a[r];if(typeof l!="string"&&!Array.isArray(l)){for(const o in l)if(o!=="default"&&!(o in n)){const c=Object.getOwnPropertyDescriptor(l,o);c&&Object.defineProperty(n,o,c.get?c:{enumerable:!0,get:()=>l[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&l(d)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function Gp(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pf={exports:{}},ci={};/** 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 Ox;function Vj(){if(Ox)return ci;Ox=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(l,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:l,key:d,ref:o!==void 0?o:null,props:c}}return ci.Fragment=a,ci.jsx=r,ci.jsxs=r,ci}var Dx;function Qj(){return Dx||(Dx=1,pf.exports=Vj()),pf.exports}var u=Qj(),Xs=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ij=class extends Xs{#t;#e;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Yp=new Ij,Fj={setTimeout:(n,a)=>setTimeout(n,a),clearTimeout:n=>clearTimeout(n),setInterval:(n,a)=>setInterval(n,a),clearInterval:n=>clearInterval(n)},Gj=class{#t=Fj;#e=!1;setTimeoutProvider(n){this.#t=n}setTimeout(n,a){return this.#t.setTimeout(n,a)}clearTimeout(n){this.#t.clearTimeout(n)}setInterval(n,a){return this.#t.setInterval(n,a)}clearInterval(n){this.#t.clearInterval(n)}},Ls=new Gj;function Yj(n){setTimeout(n,0)}var Xj=typeof window>"u"||"Deno"in globalThis;function Ut(){}function Zj(n,a){return typeof n=="function"?n(a):n}function cp(n){return typeof n=="number"&&n>=0&&n!==1/0}function O0(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ls(n,a){return typeof n=="function"?n(a):n}function fn(n,a){return typeof n=="function"?n(a):n}function _x(n,a){const{type:r="all",exact:l,fetchStatus:o,predicate:c,queryKey:d,stale:m}=n;if(d){if(l){if(a.queryHash!==Xp(d,a.options))return!1}else if(!vi(a.queryKey,d))return!1}if(r!=="all"){const h=a.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||c&&!c(a))}function Rx(n,a){const{exact:r,status:l,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(os(a.options.mutationKey)!==os(c))return!1}else if(!vi(a.options.mutationKey,c))return!1}return!(l&&a.state.status!==l||o&&!o(a))}function Xp(n,a){return(a?.queryKeyHashFn||os)(n)}function os(n){return JSON.stringify(n,(a,r)=>up(r)?Object.keys(r).sort().reduce((l,o)=>(l[o]=r[o],l),{}):r)}function vi(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>vi(n[r],a[r])):!1}var $j=Object.prototype.hasOwnProperty;function Zp(n,a,r=0){if(n===a)return n;if(r>500)return a;const l=Mx(n)&&Mx(a);if(!l&&!(up(n)&&up(a)))return a;const c=(l?n:Object.keys(n)).length,d=l?a:Object.keys(a),m=d.length,h=l?new Array(m):{};let g=0;for(let x=0;x<m;x++){const v=l?x:d[x],w=n[v],j=a[v];if(w===j){h[v]=w,(l?x<c:$j.call(n,v))&&g++;continue}if(w===null||j===null||typeof w!="object"||typeof j!="object"){h[v]=j;continue}const C=Zp(w,j,r+1);h[v]=C,C===w&&g++}return c===m&&g===c?n:h}function xi(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function Mx(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function up(n){if(!zx(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!zx(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function zx(n){return Object.prototype.toString.call(n)==="[object Object]"}function Wj(n){return new Promise(a=>{Ls.setTimeout(a,n)})}function dp(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?Zp(n,a):a}function Jj(n,a,r=0){const l=[...n,a];return r&&l.length>r?l.slice(1):l}function eN(n,a,r=0){const l=[a,...n];return r&&l.length>r?l.slice(0,-1):l}var mn=Symbol();function D0(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===mn?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function $p(n,a){return typeof n=="function"?n(...a):!!n}function tN(n,a,r){let l=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??=a(),l||(l=!0,o.aborted?r():o.addEventListener("abort",r,{once:!0})),o)}),n}var yi=(()=>{let n=()=>Xj;return{isServer(){return n()},setIsServer(a){n=a}}})();function fp(){let n,a;const r=new Promise((o,c)=>{n=o,a=c});r.status="pending",r.catch(()=>{});function l(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{l({status:"fulfilled",value:o}),n(o)},r.reject=o=>{l({status:"rejected",reason:o}),a(o)},r}var nN=Yj;function aN(){let n=[],a=0,r=m=>{m()},l=m=>{m()},o=nN;const c=m=>{a?n.push(m):o(()=>{r(m)})},d=()=>{const m=n;n=[],m.length&&o(()=>{l(()=>{m.forEach(h=>{r(h)})})})};return{batch:m=>{let h;a++;try{h=m()}finally{a--,a||d()}return h},batchCalls:m=>(...h)=>{c(()=>{m(...h)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{l=m},setScheduler:m=>{o=m}}}var ht=aN(),sN=class extends Xs{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(typeof window<"u"&&window.addEventListener){const a=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(r=>{r(n)}))}isOnline(){return this.#t}},bc=new sN;function rN(n){return Math.min(1e3*2**n,3e4)}function _0(n){return(n??"online")==="online"?bc.isOnline():!0}var pp=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function R0(n){let a=!1,r=0,l;const o=fp(),c=()=>o.status!=="pending",d=S=>{if(!c()){const T=new pp(S);w(T),n.onCancel?.(T)}},m=()=>{a=!0},h=()=>{a=!1},g=()=>Yp.isFocused()&&(n.networkMode==="always"||bc.isOnline())&&n.canRun(),x=()=>_0(n.networkMode)&&n.canRun(),v=S=>{c()||(l?.(),o.resolve(S))},w=S=>{c()||(l?.(),o.reject(S))},j=()=>new Promise(S=>{l=T=>{(c()||g())&&S(T)},n.onPause?.()}).then(()=>{l=void 0,c()||n.onContinue?.()}),C=()=>{if(c())return;let S;const T=r===0?n.initialPromise:void 0;try{S=T??n.fn()}catch(E){S=Promise.reject(E)}Promise.resolve(S).then(v).catch(E=>{if(c())return;const _=n.retry??(yi.isServer()?0:3),O=n.retryDelay??rN,B=typeof O=="function"?O(r,E):O,P=_===!0||typeof _=="number"&&r<_||typeof _=="function"&&_(r,E);if(a||!P){w(E);return}r++,n.onFail?.(r,E),Wj(B).then(()=>g()?void 0:j()).then(()=>{a?w(E):C()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(l?.(),o),cancelRetry:m,continueRetry:h,canStart:x,start:()=>(x()?C():j().then(C),o)}}var M0=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cp(this.gcTime)&&(this.#t=Ls.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(yi.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#t!==void 0&&(Ls.clearTimeout(this.#t),this.#t=void 0)}};function lN(n){return{onFetch:(a,r)=>{const l=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let m={pages:[],pageParams:[]},h=0;const g=async()=>{let x=!1;const v=C=>{tN(C,()=>a.signal,()=>x=!0)},w=D0(a.options,a.fetchOptions),j=async(C,S,T)=>{if(x)return Promise.reject(a.signal.reason);if(S==null&&C.pages.length)return Promise.resolve(C);const _=(()=>{const R={client:a.client,queryKey:a.queryKey,pageParam:S,direction:T?"backward":"forward",meta:a.options.meta};return v(R),R})(),O=await w(_),{maxPages:B}=a.options,P=T?eN:Jj;return{pages:P(C.pages,O,B),pageParams:P(C.pageParams,S,B)}};if(o&&c.length){const C=o==="backward",S=C?z0:mp,T={pages:c,pageParams:d},E=S(l,T);m=await j(T,E,C)}else{const C=n??c.length;do{const S=h===0?d[0]??l.initialPageParam:mp(l,m);if(h>0&&S==null)break;m=await j(m,S),h++}while(h<C)}return m};a.options.persister?a.fetchFn=()=>a.options.persister?.(g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r):a.fetchFn=g}}}function mp(n,{pages:a,pageParams:r}){const l=a.length-1;return a.length>0?n.getNextPageParam(a[l],a,r[l],r):void 0}function z0(n,{pages:a,pageParams:r}){return a.length>0?n.getPreviousPageParam?.(a[0],a,r[0],r):void 0}function iN(n,a){return a?mp(n,a)!=null:!1}function oN(n,a){return!a||!n.getPreviousPageParam?!1:z0(n,a)!=null}var cN=class extends M0{#t;#e;#n;#a;#s;#r;#i;#l;constructor(n){super(),this.#l=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#s=n.client,this.#a=this.#s.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Bx(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#t}get promise(){return this.#r?.promise}setOptions(n){if(this.options={...this.#i,...n},n?._type&&(this.#t=n._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const a=Bx(this.options);a.data!==void 0&&(this.setState(Kx(a.data,a.dataUpdatedAt)),this.#e=a)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,a){const r=dp(this.state.data,n,this.options);return this.#o({data:r,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),r}setState(n){this.#o({type:"setState",state:n})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Ut).catch(Ut):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(n=>fn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mn||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ls(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!O0(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#r&&(this.#l||this.#u()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#o({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(g=>g.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,l=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#l=!0,r.signal)})},o=()=>{const h=D0(this.options,a),x=(()=>{const v={client:this.#s,queryKey:this.queryKey,meta:this.meta};return l(v),v})();return this.#l=!1,this.options.persister?this.options.persister(h,x,this):h(x)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return l(h),h})();(this.#t==="infinite"?lN(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#o({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=R0({initialPromise:a?.initialPromise,fn:d.fetchFn,onCancel:h=>{h instanceof pp&&h.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(h,g)=>{this.#o({type:"failed",failureCount:h,error:g})},onPause:()=>{this.#o({type:"pause"})},onContinue:()=>{this.#o({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#a.config.onSuccess?.(h,this),this.#a.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof pp){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#o({type:"error",error:h}),this.#a.config.onError?.(h,this),this.#a.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#o(n){const a=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...K0(r.data,this.options),fetchMeta:n.meta??null};case"success":const l={...r,...Kx(n.data,n.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=n.manual?l:void 0,l;case"error":const o=n.error;return{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=a(this.state),ht.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function K0(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_0(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Kx(n,a){return{data:n,dataUpdatedAt:a??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Bx(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,r=a!==void 0,l=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?l??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Di=class extends Xs{constructor(n,a){super(),this.options=a,this.#t=n,this.#l=null,this.#i=fp(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#s;#r;#i;#l;#u;#o;#p;#d;#m;#c;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Px(this.#e,this.options)?this.#f():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hp(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hp(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,r=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof fn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#e.setOptions(this.options),a._defaulted&&!xi(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const l=this.hasListeners();l&&Lx(this.#e,r,this.options,a)&&this.#f(),this.updateResult(),l&&(this.#e!==r||fn(this.options.enabled,this.#e)!==fn(a.enabled,this.#e)||ls(this.options.staleTime,this.#e)!==ls(a.staleTime,this.#e))&&this.#g();const o=this.#v();l&&(this.#e!==r||fn(this.options.enabled,this.#e)!==fn(a.enabled,this.#e)||o!==this.#c)&&this.#x(o)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),r=this.createResult(a,n);return dN(this,r)&&(this.#a=r,this.#r=this.options,this.#s=this.#e.state),r}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(r,l)=>(this.trackProp(l),a?.(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,l))})}trackProp(n){this.#h.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),r=this.#t.getQueryCache().build(this.#t,a);return r.fetch().then(()=>this.createResult(r,a))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#S();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Ut)),a}#g(){this.#b();const n=ls(this.options.staleTime,this.#e);if(yi.isServer()||this.#a.isStale||!cp(n))return;const r=O0(this.#a.dataUpdatedAt,n)+1;this.#d=Ls.setTimeout(()=>{this.#a.isStale||this.updateResult()},r)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#x(n){this.#w(),this.#c=n,!(yi.isServer()||fn(this.options.enabled,this.#e)===!1||!cp(this.#c)||this.#c===0)&&(this.#m=Ls.setInterval(()=>{(this.options.refetchIntervalInBackground||Yp.isFocused())&&this.#f()},this.#c))}#y(){this.#g(),this.#x(this.#v())}#b(){this.#d!==void 0&&(Ls.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#m!==void 0&&(Ls.clearInterval(this.#m),this.#m=void 0)}createResult(n,a){const r=this.#e,l=this.options,o=this.#a,c=this.#s,d=this.#r,h=n!==r?n.state:this.#n,{state:g}=n;let x={...g},v=!1,w;if(a._optimisticResults){const M=this.hasListeners(),q=!M&&Px(n,a),$=M&&Lx(n,r,a,l);(q||$)&&(x={...x,...K0(g.data,n.options)}),a._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:j,errorUpdatedAt:C,status:S}=x;w=x.data;let T=!1;if(a.placeholderData!==void 0&&w===void 0&&S==="pending"){let M;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(M=o.data,T=!0):M=typeof a.placeholderData=="function"?a.placeholderData(this.#p?.state.data,this.#p):a.placeholderData,M!==void 0&&(S="success",w=dp(o?.data,M,a),v=!0)}if(a.select&&w!==void 0&&!T)if(o&&w===c?.data&&a.select===this.#u)w=this.#o;else try{this.#u=a.select,w=a.select(w),w=dp(o?.data,w,a),this.#o=w,this.#l=null}catch(M){this.#l=M}this.#l&&(j=this.#l,w=this.#o,C=Date.now(),S="error");const E=x.fetchStatus==="fetching",_=S==="pending",O=S==="error",B=_&&E,P=w!==void 0,A={status:S,fetchStatus:x.fetchStatus,isPending:_,isSuccess:S==="success",isError:O,isInitialLoading:B,isLoading:B,data:w,dataUpdatedAt:x.dataUpdatedAt,error:j,errorUpdatedAt:C,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:n.isFetched(),isFetchedAfterMount:x.dataUpdateCount>h.dataUpdateCount||x.errorUpdateCount>h.errorUpdateCount,isFetching:E,isRefetching:E&&!_,isLoadingError:O&&!P,isPaused:x.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:O&&P,isStale:Wp(n,a),refetch:this.refetch,promise:this.#i,isEnabled:fn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const M=A.data!==void 0,q=A.status==="error"&&!M,$=J=>{q?J.reject(A.error):M&&J.resolve(A.data)},W=()=>{const J=this.#i=A.promise=fp();$(J)},Y=this.#i;switch(Y.status){case"pending":n.queryHash===r.queryHash&&$(Y);break;case"fulfilled":(q||A.data!==Y.value)&&W();break;case"rejected":(!q||A.error!==Y.reason)&&W();break}}return A}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#s=this.#e.state,this.#r=this.options,this.#s.data!==void 0&&(this.#p=this.#e),xi(a,n))return;this.#a=a;const r=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,o=typeof l=="function"?l():l;if(o==="all"||!o&&!this.#h.size)return!0;const c=new Set(o??this.#h);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const m=d;return this.#a[m]!==n[m]&&c.has(m)})};this.#j({listeners:r()})}#S(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#j(n){ht.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function uN(n,a){return fn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&fn(a.retryOnMount,n)===!1)}function Px(n,a){return uN(n,a)||n.state.data!==void 0&&hp(n,a,a.refetchOnMount)}function hp(n,a,r){if(fn(a.enabled,n)!==!1&&ls(a.staleTime,n)!=="static"){const l=typeof r=="function"?r(n):r;return l==="always"||l!==!1&&Wp(n,a)}return!1}function Lx(n,a,r,l){return(n!==a||fn(l.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Wp(n,r)}function Wp(n,a){return fn(a.enabled,n)!==!1&&n.isStaleByTime(ls(a.staleTime,n))}function dN(n,a){return!xi(n.getCurrentResult(),a)}var B0=class extends Di{constructor(n,a){super(n,a)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){n._type="infinite",super.setOptions(n)}getOptimisticResult(n){return n._type="infinite",super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,a){const{state:r}=n,l=super.createResult(n,a),{isFetching:o,isRefetching:c,isError:d,isRefetchError:m}=l,h=r.fetchMeta?.fetchMore?.direction,g=d&&h==="forward",x=o&&h==="forward",v=d&&h==="backward",w=o&&h==="backward";return{...l,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:iN(a,r.data),hasPreviousPage:oN(a,r.data),isFetchNextPageError:g,isFetchingNextPage:x,isFetchPreviousPageError:v,isFetchingPreviousPage:w,isRefetchError:m&&!g&&!v,isRefetching:c&&!x&&!w}}},fN=class extends M0{#t;#e;#n;#a;constructor(n){super(),this.#t=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#e=[],this.state=n.state||P0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(a=>a!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#s({type:"continue"})},r={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=R0({fn:()=>this.options.mutationFn?this.options.mutationFn(n,r):Promise.reject(new Error("No mutationFn found")),onFail:(c,d)=>{this.#s({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const l=this.state.status==="pending",o=!this.#a.canStart();try{if(l)a();else{this.#s({type:"pending",variables:n,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(n,this,r);const d=await this.options.onMutate?.(n,r);d!==this.state.context&&this.#s({type:"pending",context:d,variables:n,isPaused:o})}const c=await this.#a.start();return await this.#n.config.onSuccess?.(c,n,this.state.context,this,r),await this.options.onSuccess?.(c,n,this.state.context,r),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(c,null,n,this.state.context,r),this.#s({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,n,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onError?.(c,n,this.state.context,r)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,c,n,this.state.context,r)}catch(d){Promise.reject(d)}throw this.#s({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#s(n){const a=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),ht.batch(()=>{this.#e.forEach(r=>{r.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function P0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var pN=class extends Xs{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,r){const l=new fN({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:r});return this.add(l),l}add(n){this.#t.add(n);const a=Wo(n);
9if(typeof a=="string"){const r=this.#e.get(a);r?r.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=Wo(n);if(typeof a=="string"){const r=this.#e.get(a);if(r)if(r.length>1){const l=r.indexOf(n);l!==-1&&r.splice(l,1)}else r[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Wo(n);if(typeof a=="string"){const l=this.#e.get(a)?.find(o=>o.state.status==="pending");return!l||l===n}else return!0}runNext(n){const a=Wo(n);return typeof a=="string"?this.#e.get(a)?.find(l=>l!==n&&l.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ht.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(r=>Rx(a,r))}findAll(n={}){return this.getAll().filter(a=>Rx(n,a))}notify(n){ht.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return ht.batch(()=>Promise.all(n.map(a=>a.continue().catch(Ut))))}};function Wo(n){return n.options.scope?.id}var mN=class extends Xs{#t;#e=void 0;#n;#a;constructor(a,r){super(),this.#t=a,this.setOptions(r),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){const r=this.options;this.options=this.#t.defaultMutationOptions(a),xi(this.options,r)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&os(r.mutationKey)!==os(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(a){this.#s(),this.#r(a)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#r()}mutate(a,r){return this.#a=r,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(a)}#s(){const a=this.#n?.state??P0();this.#e={...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset}}#r(a){ht.batch(()=>{if(this.#a&&this.hasListeners()){const r=this.#e.variables,l=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(a?.type==="success"){try{this.#a.onSuccess?.(a.data,r,l,o)}catch(c){Promise.reject(c)}try{this.#a.onSettled?.(a.data,null,r,l,o)}catch(c){Promise.reject(c)}}else if(a?.type==="error"){try{this.#a.onError?.(a.error,r,l,o)}catch(c){Promise.reject(c)}try{this.#a.onSettled?.(void 0,a.error,r,l,o)}catch(c){Promise.reject(c)}}}this.listeners.forEach(r=>{r(this.#e)})})}};function Ux(n,a){const r=new Set(a);return n.filter(l=>!r.has(l))}function hN(n,a,r){const l=n.slice(0);return l[a]=r,l}var gN=class extends Xs{#t;#e;#n;#a;#s;#r;#i;#l;#u;#o=[];constructor(n,a,r){super(),this.#t=n,this.#a=r,this.#n=[],this.#s=[],this.#e=[],this.setQueries(a)}onSubscribe(){this.listeners.size===1&&this.#s.forEach(n=>{n.subscribe(a=>{this.#h(n,a)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#s.forEach(n=>{n.destroy()})}setQueries(n,a){this.#n=n,this.#a=a,ht.batch(()=>{const r=this.#s,l=this.#c(this.#n);l.forEach(x=>x.observer.setOptions(x.defaultedQueryOptions));const o=l.map(x=>x.observer),c=o.map(x=>x.getCurrentResult()),d=r.length!==o.length,m=o.some((x,v)=>x!==r[v]),h=d||m,g=h?!0:c.some((x,v)=>{const w=this.#e[v];return!w||!xi(x,w)});!h&&!g||(h&&(this.#o=l,this.#s=o),this.#e=c,this.hasListeners()&&(h&&(Ux(r,o).forEach(x=>{x.destroy()}),Ux(o,r).forEach(x=>{x.subscribe(v=>{this.#h(x,v)})})),this.#f()))})}getCurrentResult(){return this.#e}getQueries(){return this.#s.map(n=>n.getCurrentQuery())}getObservers(){return this.#s}getOptimisticResult(n,a){const r=this.#c(n),l=r.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions)),o=r.map(c=>c.defaultedQueryOptions.queryHash);return[l,c=>this.#d(c??l,a,o),()=>this.#p(l,r)]}#p(n,a){return a.map((r,l)=>{const o=n[l];return r.defaultedQueryOptions.notifyOnChangeProps?o:r.observer.trackResult(o,c=>{a.forEach(d=>{d.observer.trackProp(c)})})})}#d(n,a,r){if(a){const l=this.#u,o=r!==void 0&&l!==void 0&&(l.length!==r.length||r.some((c,d)=>c!==l[d]));return(!this.#r||this.#e!==this.#l||o||a!==this.#i)&&(this.#i=a,this.#l=this.#e,r!==void 0&&(this.#u=r),this.#r=Zp(this.#r,a(n))
9),this.#r}return n}#m(){return this.#a?.combine!==void 0&&this.#s.some((n,a)=>n.options.suspense&&this.#e[a]?.data===void 0)}#c(n){const a=new Map;this.#s.forEach(l=>{const o=l.options.queryHash;if(!o)return;const c=a.get(o);c?c.push(l):a.set(o,[l])});const r=[];return n.forEach(l=>{const o=this.#t.defaultQueryOptions(l),d=a.get(o.queryHash)?.shift()??new Di(this.#t,o);r.push({defaultedQueryOptions:o,observer:d})}),r}#h(n,a){const r=this.#s.indexOf(n);r!==-1&&(this.#e=hN(this.#e,r,a),this.#f())}#f(){if(this.hasListeners()){const n=this.#p(this.#e,this.#o),a=this.#m(),r=this.#r,l=a?r:this.#d(n,this.#a?.combine);(a||r!==l)&&ht.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},vN=class extends Xs{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,r){const l=a.queryKey,o=a.queryHash??Xp(l,a);let c=this.get(o);return c||(c=new cN({client:n,queryKey:l,queryHash:o,options:n.defaultQueryOptions(a),state:r,defaultOptions:n.getQueryDefaults(l)}),this.add(c)),c}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ht.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(r=>_x(a,r))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(r=>_x(n,r)):a}notify(n){ht.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){ht.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ht.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},xN=class{#t;#e;#n;#a;#s;#r;#i;#l;constructor(n={}){this.#t=n.queryCache||new vN,this.#e=n.mutationCache||new pN,this.#n=n.defaultOptions||{},this.#a=new Map,this.#s=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#i=Yp.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#l=bc.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#i?.(),this.#i=void 0,this.#l?.(),this.#l=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=this.#t.build(this,a),l=r.state.data;return l===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(ls(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(l))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:r})=>{const l=r.data;return[a,l]})}setQueryData(n,a,r){const l=this.defaultQueryOptions({queryKey:n}),c=this.#t.get(l.queryHash)?.state.data,d=Zj(a,c);if(d!==void 0)return this.#t.build(this,l).setData(d,{...r,manual:!0})}setQueriesData(n,a,r){return ht.batch(()=>this.#t.findAll(n).map(({queryKey:l})=>[l,this.setQueryData(l,a,r)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;ht.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=this.#t;return ht.batch(()=>(r.findAll(n).forEach(l=>{l.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},l=ht.batch(()=>this.#t.findAll(n).map(o=>o.cancel(r)));return Promise.all(l).then(Ut).catch(Ut)}invalidateQueries(n,a={}){return ht.batch(()=>(this.#t.findAll(n).forEach(r=>{r.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},l=ht.batch(()=>this.#t.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,r);return r.throwOnError||(c=c.catch(Ut)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(l).then(Ut)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=this.#t.build(this,a);return r.isStaleByTime(ls(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}
vendor: 4,456 bytes, lines 9-17
9prefetchQuery(n){return this.fetchQuery(n).then(Ut).catch(Ut)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Ut).catch(Ut)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return bc.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(os(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],r={};return a.forEach(l=>{vi(n,l.queryKey)&&Object.assign(r,l.defaultOptions)}),r}setMutationDefaults(n,a){this.#s.set(os(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#s.values()],r={};return a.forEach(l=>{vi(n,l.mutationKey)&&Object.assign(r,l.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Xp(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===mn&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},mf={exports:{}},_e={};/** 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 Hx;function yN(){if(Hx)return _e;Hx=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function j(k){return k===null||typeof k!="object"?null:(k=w&&k[w]||k["@@iterator"],typeof k=="function"?k:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,T={};function E(k,Q,H){this.props=k,this.context=Q,this.refs=T,this.updater=H||C}E.prototype.isReactComponent={},E.prototype.setState=function(k,Q){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,Q,"setState")},E.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function _(){}_.prototype=E.prototype;function O(k,Q,H){this.props=k,this.context=Q,this.refs=T,this.updater=H||C}var B=O.prototype=new _;B.constructor=O,S(B,E.prototype),B.isPureReactComponent=!0;var P=Array.isArray;function R(){}var A={H:null,A:null,T:null,S:null},M=Object.prototype.hasOwnProperty;function q(k,Q,H){var Z=H.ref;return{$$typeof:n,type:k,key:Q,ref:Z!==void 0?Z:null,props:H}}function $(k,Q){return q(k.type,Q,k.props)}function W(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function Y(k){var Q={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(H){return Q[H]})}var J=/\/+/g;function te(k,Q){return typeof k=="object"&&k!==null&&k.key!=null?Y(""+k.key):Q.toString(36)}function ce(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(R,R):(k.status="pending",k.then(function(Q){k.status==="pending"&&(k.status="fulfilled",k.value=Q)},function(Q){k.status==="pending"&&(k.status="rejected",k.reason=Q)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function D(k,Q,H,Z,re){var fe=typeof k;(fe==="undefined"||fe==="boolean")&&(k=null);var F=!1;if(k===null)F=!0;else switch(fe){case"bigint":case"string":case"number":F=!0;break;case"object":switch(k.$$typeof){case n:case a:F=!0;break;case x:return F=k._init,D(F(k._payload),Q,H,Z,re)}}if(F)return re=re(k),F=Z===""?"."+te(k,0):Z,P(re)?(H="",F!=null&&(H=F.replace(J,"$&/")+"/"),D(re,Q,H,"",function(Ee){return Ee}
vendor: 4,953 bytes, line 17
17)):re!=null&&(W(re)&&(re=$(re,H+(re.key==null||k&&k.key===re.key?"":(""+re.key).replace(J,"$&/")+"/")+F)),Q.push(re)),1;F=0;var le=Z===""?".":Z+":";if(P(k))for(var pe=0;pe<k.length;pe++)Z=k[pe],fe=le+te(Z,pe),F+=D(Z,Q,H,fe,re);else if(pe=j(k),typeof pe=="function")for(k=pe.call(k),pe=0;!(Z=k.next()).done;)Z=Z.value,fe=le+te(Z,pe++),F+=D(Z,Q,H,fe,re);else if(fe==="object"){if(typeof k.then=="function")return D(ce(k),Q,H,Z,re);throw Q=String(k),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return F}function V(k,Q,H){if(k==null)return k;var Z=[],re=0;return D(k,Z,"","",function(fe){return Q.call(H,fe,re++)}),Z}function L(k){if(k._status===-1){var Q=k._result;Q=Q(),Q.then(function(H){(k._status===0||k._status===-1)&&(k._status=1,k._result=H)},function(H){(k._status===0||k._status===-1)&&(k._status=2,k._result=H)}),k._status===-1&&(k._status=0,k._result=Q)}if(k._status===1)return k._result.default;throw k._result}var oe=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},de={map:V,forEach:function(k,Q,H){V(k,function(){Q.apply(this,arguments)},H)},count:function(k){var Q=0;return V(k,function(){Q++}),Q},toArray:function(k){return V(k,function(Q){return Q})||[]},only:function(k){if(!W(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return _e.Activity=v,_e.Children=de,_e.Component=E,_e.Fragment=r,_e.Profiler=o,_e.PureComponent=O,_e.StrictMode=l,_e.Suspense=h,_e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=A,_e.__COMPILER_RUNTIME={__proto__:null,c:function(k){return A.H.useMemoCache(k)}},_e.cache=function(k){return function(){return k.apply(null,arguments)}},_e.cacheSignal=function(){return null},_e.cloneElement=function(k,Q,H){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var Z=S({},k.props),re=k.key;if(Q!=null)for(fe in Q.key!==void 0&&(re=""+Q.key),Q)!M.call(Q,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&Q.ref===void 0||(Z[fe]=Q[fe]);var fe=arguments.length-2;if(fe===1)Z.children=H;else if(1<fe){for(var F=Array(fe),le=0;le<fe;le++)F[le]=arguments[le+2];Z.children=F}return q(k.type,re,Z)},_e.createContext=function(k){return k={$$typeof:d,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:c,_context:k},k},_e.createElement=function(k,Q,H){var Z,re={},fe=null;if(Q!=null)for(Z in Q.key!==void 0&&(fe=""+Q.key),Q)M.call(Q,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(re[Z]=Q[Z]);var F=arguments.length-2;if(F===1)re.children=H;else if(1<F){for(var le=Array(F),pe=0;pe<F;pe++)le[pe]=arguments[pe+2];re.children=le}if(k&&k.defaultProps)for(Z in F=k.defaultProps,F)re[Z]===void 0&&(re[Z]=F[Z]);return q(k,fe,re)},_e.createRef=function(){return{current:null}},_e.forwardRef=function(k){return{$$typeof:m,render:k}},_e.isValidElement=W,_e.lazy=function(k){return{$$typeof:x,_payload:{_status:-1,_result:k},_init:L}},_e.memo=function(k,Q){return{$$typeof:g,type:k,compare:Q===void 0?null:Q}},_e.startTransition=function(k){var Q=A.T,H={};A.T=H;try{var Z=k(),re=A.S;re!==null&&re(H,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(R,oe)}catch(fe){oe(fe)}finally{Q!==null&&H.types!==null&&(Q.types=H.types),A.T=Q}},_e.unstable_useCacheRefresh=function(){return A.H.useCacheRefresh()},_e.use=function(k){return A.H.use(k)},_e.useActionState=function(k,Q,H){return A.H.useActionState(k,Q,H)},_e.useCallback=function(k,Q){return A.H.useCallback(k,Q)},_e.useContext=function(k){return A.H.useContext(k)},_e.useDebugValue=function(){},_e.useDeferredValue=function(k,Q){return A.H.useDeferredValue(k,Q)},_e.useEffect=function(k,Q){return A.H.useEffect(k,Q)},_e.useEffectEvent=function(k){return A.H.useEffectEvent(k)},_e.useId=function(){return A.H.useId()},_e.useImperativeHandle=function(k,Q,H){return A.H.useImperativeHandle(k,Q,H)},_e.useInsertionEffect=function(k,Q){return A.H.useInsertionEffect(k,Q)},_e.useLayoutEffect=function(k,Q){return A.H.useLayoutEffect(k,Q)},_e.useMemo=function(k,Q){return A.H.useMemo(k,Q)},_e.useOptimistic=function(k,Q){return A.H.useOptimistic(k,Q)},_e.useReducer=function(k,Q,H){return A.H.useReducer(k,Q,H)},_e.useRef=function(k){return A.H.useRef(k)},_e.useState=function(k){return A.H.useState(k)},_e.useSyncExternalStore=function(k,Q,H){return A.H.useSyncExternalStore(k,Q,H)},_e.useTransition=function(){return A.H.useTransition()}
17,_e.version="19.2.1",_e}var qx;function Dc(){return qx||(qx=1,mf.exports=yN()),mf.exports}var b=Dc();const ue=Gp(b),_c=qj({__proto__:null,default:ue},[b]);var L0=b.createContext(void 0),_i=n=>{const a=b.useContext(L0);if(n)return n;if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},bN=({client:n,children:a})=>(b.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(L0.Provider,{value:n,children:a})),U0=b.createContext(!1),H0=()=>b.useContext(U0);U0.Provider;function wN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var SN=b.createContext(wN()),q0=()=>b.useContext(SN),V0=(n,a,r)=>{const l=r?.state.error&&typeof n.throwOnError=="function"?$p(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||l)&&(a.isReset()||(n.retryOnMount=!1))},Q0=n=>{b.useEffect(()=>{n.clearReset()},[n])},I0=({result:n,errorResetBoundary:a,throwOnError:r,query:l,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&l&&(o&&n.data===void 0||$p(r,[n.error,l])),Jp=(n,a)=>a.state.data===void 0,F0=n=>{if(n.suspense){const r=o=>o==="static"?o:Math.max(o??1e3,1e3),l=n.staleTime;n.staleTime=typeof l=="function"?(...o)=>r(l(...o)):r(l),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},jN=(n,a)=>n.isLoading&&n.isFetching&&!a,gp=(n,a)=>n?.suspense&&a.isPending,vp=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function G0({queries:n,...a},r){const l=_i(r),o=H0(),c=q0(),d=b.useMemo(()=>n.map(S=>{const T=l.defaultQueryOptions(S);return T._optimisticResults=o?"isRestoring":"optimistic",T}),[n,l,o]);d.forEach(S=>{F0(S);const T=l.getQueryCache().get(S.queryHash);V0(S,c,T)}),Q0(c);const[m]=b.useState(()=>new gN(l,d,a)),[h,g,x]=m.getOptimisticResult(d,a.combine),v=!o&&a.subscribed!==!1;b.useSyncExternalStore(b.useCallback(S=>v?m.subscribe(ht.batchCalls(S)):Ut,[m,v]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),b.useEffect(()=>{m.setQueries(d,a)},[d,a,m]);const j=h.some((S,T)=>gp(d[T],S))?h.flatMap((S,T)=>{const E=d[T];if(E&&gp(E,S)){const _=new Di(l,E);return vp(E,_,c)}return[]}):[];if(j.length>0)throw Promise.all(j);const C=h.find((S,T)=>{const E=d[T];return E&&I0({result:S,errorResetBoundary:c,throwOnError:E.throwOnError,query:l.getQueryCache().get(E.queryHash),suspense:E.suspense})});if(C?.error)throw C.error;return g(x())}function Rc(n,a,r){const l=H0(),o=q0(),c=_i(r),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const m=c.getQueryCache().get(d.queryHash),h=n.subscribed!==!1;d._optimisticResults=l?"isRestoring":h?"optimistic":void 0,F0(d),V0(d,o,m),Q0(o);const g=!c.getQueryCache().get(d.queryHash),[x]=b.useState(()=>new a(c,d)),v=x.getOptimisticResult(d),w=!l&&h;if(b.useSyncExternalStore(b.useCallback(j=>{const C=w?x.subscribe(ht.batchCalls(j)):Ut;return x.updateResult(),C},[x,w]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),b.useEffect(()=>{x.setOptions(d)},[d,x]),gp(d,v))throw vp(d,x,o);if(I0({result:v,errorResetBoundary:o,throwOnError:d.throwOnError,query:m,suspense:d.suspense}))throw v.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,v),d.experimental_prefetchInRender&&!yi.isServer()&&jN(v,l)&&(g?vp(d,x,o):m?.promise)?.catch(Ut).finally(()=>{x.updateResult()}),d.notifyOnChangeProps?v:x.trackResult(v)}function NN(n,a){return Rc(n,Di,a)}function EN(n,a){return Rc({...n,enabled:!0,suspense:!0,throwOnError:Jp,placeholderData:void 0},Di,a)}function CN(n,a){return Rc({...n,enabled:!0,suspense:!0,throwOnError:Jp},B0,a)}function kN(n,a){return G0({...n,queries:n.queries.map(r=>({...r,suspense:!0,throwOnError:Jp,enabled:!0,placeholderData:void 0}))},a)}function AN(n,a){const r=_i(a);r.getQueryState(n.queryKey)||r.prefetchQuery(n)}function TN(n,a){const r=_i(a);r.getQueryState(n.queryKey)||r.prefetchInfiniteQuery(n)}function ON(n,a){const r=_i(a),[l]=b.useState(()=>new mN(r,n));b.useEffect(()=>{l.setOptions(n)},[l,n]);const o=b.useSyncExternalStore(b.useCallback(d=>l.subscribe(ht.batchCalls(d)),[l]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c=b.useCallback((d,m)=>
17{l.mutate(d,m).catch(Ut)},[l]);if(o.error&&$p(l.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}function DN(n,a){return Rc(n,B0,a)}function Hs(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}function _N(){return Object.create(null)}const RN=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Y0(n){return RN&&Hs(n)&&Symbol.asyncIterator in n}var MN=Object.create,X0=Object.defineProperty,zN=Object.getOwnPropertyDescriptor,Z0=Object.getOwnPropertyNames,KN=Object.getPrototypeOf,BN=Object.prototype.hasOwnProperty,Ri=(n,a)=>function(){return a||(0,n[Z0(n)[0]])((a={exports:{}}).exports,a),a.exports},PN=(n,a,r,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var o=Z0(a),c=0,d=o.length,m;c<d;c++)m=o[c],!BN.call(n,m)&&m!==r&&X0(n,m,{get:(h=>a[h]).bind(null,m),enumerable:!(l=zN(a,m))||l.enumerable});return n},Mc=(n,a,r)=>(r=n!=null?MN(KN(n)):{},PN(X0(r,"default",{value:n,enumerable:!0}),n));const $0=()=>{},Vx=n=>{Object.freeze&&Object.freeze(n)};function W0(n,a,r){var l;const o=a.join(".");return(l=r[o])!==null&&l!==void 0||(r[o]=new Proxy($0,{get(c,d){if(!(typeof d!="string"||d==="then"))return W0(n,[...a,d],r)},apply(c,d,m){const h=a[a.length-1];if(h==="valueOf"||h==="toString"||h==="toJSON")return`tRPC.proxy(${a.slice(0,-1).join(".")})`;let g={args:m,path:a};
17return h==="call"?g={args:m.length>=2?[m[1]]:[],path:a.slice(0,-1)}:h==="apply"&&(g={args:m.length>=2?m[1]:[],path:a.slice(0,-1)}),Vx(g.args),Vx(g.path),n(g)}})),r[o]}const zc=n=>W0(n,[],_N()),em=n=>new Proxy($0,{get(a,r){if(r!=="then")return n(r)}});var J0=Ri({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function r(l){"@babel/helpers - typeof";return a.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.__esModule=!0,a.exports.default=a.exports,r(l)}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}}),LN=Ri({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var r=J0().default;function l(o,c){if(r(o)!="object"||!o)return o;var d=o[Symbol.toPrimitive];if(d!==void 0){var m=d.call(o,c||"default");if(r(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),UN=Ri({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var r=J0().default,l=LN();function o(c){var d=l(c,"string");return r(d)=="symbol"?d:d+""}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),eb=Ri({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var r=UN();function l(o,c,d){return(c=r(c))in o?Object.defineProperty(o,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):o[c]=d,o}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),tm=Ri({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var r=eb();function l(c,d){var m=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);d&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(c,g).enumerable})),m.push.apply(m,h)}return m}function o(c){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?l(Object(m),!0).forEach(function(h){r(c,h,m[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(m,h))})}return c}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}});Mc(tm());Mc(eb());var Jo=Mc(tm());function HN(n,a){if("error"in n){const l=a.deserialize(n.error);return{ok:!1,error:(0,Jo.default)((0,Jo.default)({},n),{},{error:l})}}return{ok:!0,result:(0,Jo.default)((0,Jo.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:a.deserialize(n.result.data)})}}var hf=class extends Error{constructor(){super("Unable to transform response from server")}};function qN(n,a){let r;try{r=HN(n,a)}catch{throw new hf}if(!r.ok&&(!Hs(r.error.error)||typeof r.error.error.code!="number"))throw new hf;if(r.ok&&!Hs(r.result))throw new hf;return r}Mc(tm());function Kc(n){const a={subscribe(r){let l=null,o=!1,c=!1,d=!1;function m(){if(l===null){d=!0;return}c||(c=!0,typeof l=="function"?l():l&&l.unsubscribe())}return l=n({next(h){var g;o||(g=r.next)===null||g===void 0||g.call(r,h)},error(h){var g;o||(o=!0,(g=r.error)===null||g===void 0||g.call(r,h),m())},complete(){var h;o||(o=!0,(h=r.complete)===null||h===void 0||h.call(r),m())}}),d&&m(),{unsubscribe:m}},pipe(...r){return r.reduce(VN,a)}};return a}function VN(n,a){return a(n)}function QN(n){const a=new AbortController;return new Promise((l,o)=>{let c=!1;function d(){c||(c=!0,m.unsubscribe())}a.signal.addEventListener("abort",()=>{o(a.signal.reason)});const m=n.subscribe({next(h){c=!0,l(h),d()},error(h){o(h)},complete(){a.abort(),d()}})})}var IN=Object.create,tb=Object.defineProperty,FN=Object.getOwnPropertyDescriptor,nb=Object.getOwnPropertyNames,GN=Object.getPrototypeOf,YN=Object.prototype.hasOwnProperty,ps=(n,a)=>function(){return a||(0,n[nb(n)[0]])((a={exports:{}}).exports,a),a.exports},XN=(n,a,r,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var o=nb(a),c=0,d=o.length,m;c<d;c++)m=o[c],!YN.call(n,m)&&m!==r&&tb(n,m,{get:(h=>a[h]).bind(null,m),enumerable:!(l=FN(a,m))||l.enumerable});return n},Zs=(n,a,r)=>(r=n!=null?IN(GN(n)):{},XN(a||!n||!n.__esModule?tb(r,"default",{value:n,enumerable:!0}):r,n)),ZN=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,a){function r(l,o){if(l==null)return{};var c={};for(var d in l)if({}.hasOwnProperty.call(l,d)){if(o.includes(d))continue;c[d]=l[d]}return c}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}}),$N=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,a){var r=ZN();function l(o,c){if(o==null)return{};var d,m,h=r(o,c);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(m=0;m<g.length;m++)d=g[m],c.includes(d)||{}.propertyIsEnumerable.call(o,d)&&(h[d]=o[d])}return h}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),ab=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function r(l){"@babel/helpers - typeof";return a.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.__esModule=!0,a.exports.default=a.exports,r(l)}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}}),WN=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var r=ab().default;function l(o,c){if(r(o)!="object"||!o)return o;var d=o[Symbol.toPrimitive];if(d!==void 0){var m=d.call(o,c||"default");if(r(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),JN=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var r=ab().default,l=WN();function o(c){var d=l(c,"string");return r(d)=="symbol"?d:d+""}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),eE=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/
17defineProperty.js"(n,a){var r=JN();function l(o,c,d){return(c=r(c))in o?Object.defineProperty(o,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):o[c]=d,o}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Mi=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var r=eE();function l(c,d){var m=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);d&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(c,g).enumerable})),m.push.apply(m,h)}return m}function o(c){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?l(Object(m),!0).forEach(function(h){r(c,h,m[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEach(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(m,h))})}return c}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),tE=Zs($N(),1),Qx=Zs(Mi(),1);const nE=["cursor","direction"];function Zn(n,a,r){const l=n.flatMap(o=>o.split("."));if(!a&&(!r||r==="any"))return l.length?[l]:[];if(r==="infinite"&&Hs(a)&&("direction"in a||"cursor"in a)){const{cursor:o,direction:c}=a,d=(0,tE.default)(a,nE);return[l,{input:d,type:"infinite"}]}return[l,(0,Qx.default)((0,Qx.default)({},typeof a<"u"&&a!==mn&&{input:a}),r&&r!=="any"&&{type:r})]}function mc(n){return Zn(n,void 0,"any")}var aE=Object.create,sb=Object.defineProperty,sE=Object.getOwnPropertyDescriptor,rb=Object.getOwnPropertyNames,rE=Object.getPrototypeOf,lE=Object.prototype.hasOwnProperty,ta=(n,a)=>function(){return a||(0,n[rb(n)[0]])((a={exports:{}}).exports,a),a.exports},iE=(n,a,r,l)=>{if(a&&typeof a=="object"||typeof a=="function")for(var o=rb(a),c=0,d=o.length,m;c<d;c++)m=o[c],!lE.call(n,m)&&m!==r&&sb(n,m,{get:(h=>a[h]).bind(null,m),enumerable:!(l=sE(a,m))||l.enumerable});return n},xt=(n,a,r)=>(r=n!=null?aE(rE(n)):{},iE(sb(r,"default",{value:n,enumerable:!0}),n)),lb=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,a){function r(l){"@babel/helpers - typeof";return a.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a.exports.__esModule=!0,a.exports.default=a.exports,r(l)}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}}),oE=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,a){var r=lb().default;function l(o,c){if(r(o)!="object"||!o)return o;var d=o[Symbol.toPrimitive];if(d!==void 0){var m=d.call(o,c||"default");if(r(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(c==="string"?String:Number)(o)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),cE=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,a){var r=lb().default,l=oE();function o(c){var d=l(c,"string");return r(d)=="symbol"?d:d+""}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}}),$s=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,a){var r=cE();function l(o,c,d){return(c=r(c))in o?Object.defineProperty(o,c,{value:d,enumerable:!0,configurable:!0,writable:!0}):o[c]=d,o}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),Bn=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,a){var r=$s();function l(c,d){var m=Object.keys(c);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(c);d&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(c,g).enumerable})),m.push.apply(m,h)}return m}function o(c){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?l(Object(m),!0).forEach(function(h){r(c,h,m[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(m)):l(Object(m)).forEac
17h(function(h){Object.defineProperty(c,h,Object.getOwnPropertyDescriptor(m,h))})}return c}a.exports=o,a.exports.__esModule=!0,a.exports.default=a.exports}});function uE(n){return a=>{let r=0,l=null;const o=[];function c(){l||(l=a.subscribe({next(m){for(const g of o){var h;(h=g.next)===null||h===void 0||h.call(g,m)}},error(m){for(const g of o){var h;(h=g.error)===null||h===void 0||h.call(g,m)}},complete(){for(const h of o){var m;(m=h.complete)===null||m===void 0||m.call(h)}}}))}function d(){if(r===0&&l){const m=l;l=null,m.unsubscribe()}}return Kc(m=>(r++,o.push(m),c(),{unsubscribe(){r--,d();const h=o.findIndex(g=>g===m);h>-1&&o.splice(h,1)}}))}}function dE(n){let a=n;const r=[],l=d=>{a!==void 0&&d.next(a),r.push(d)},o=d=>{r.splice(r.indexOf(d),1)},c=Kc(d=>(l(d),()=>{o(d)}));return c.next=d=>{if(a!==d){a=d;for(const m of r)m.next(d)}},c.get=()=>a,c}function fE(n){return Kc(a=>{function r(o=0,c=n.op){const d=n.links[o];if(!d)throw new Error("No more links to execute - did you forget to add an ending link?");return d({op:c,next(h){return r(o+1,h)}})}return r().subscribe(a)})}var ec=xt($s()),Fr=xt(Bn());function pE(n){return n instanceof sl}function mE(n){return Hs(n)&&Hs(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function hE(n,a){return typeof n=="string"?n:Hs(n)&&typeof n.message=="string"?n.message:a}
17var sl=class hc extends Error{constructor(a,r){var l,o;const c=r?.cause;super(a,{cause:c}),(0,ec.default)(this,"cause",void 0),(0,ec.default)(this,"shape",void 0),(0,ec.default)(this,"data",void 0),(0,ec.default)(this,"meta",void 0),this.meta=r?.meta,this.cause=c,this.shape=r==null||(l=r.result)===null||l===void 0?void 0:l.error,this.data=r==null||(o=r.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,hc.prototype)}static from(a,r={}){const l=a;return pE(l)?(r.meta&&(l.meta=(0,Fr.default)((0,Fr.default)({},l.meta),r.meta)),l):mE(l)?new hc(l.error.message,(0,Fr.default)((0,Fr.default)({},r),{},{result:l,cause:r.cause})):new hc(hE(l,"Unknown error"),(0,Fr.default)((0,Fr.default)({},r),{},{cause:l}))}};function gE(n){const a=n;return a?"input"in a?a:{input:a,output:a}:{input:{serialize:r=>r,deserialize:r=>r},output:{serialize:r=>r,deserialize:r=>r}}}const Ix=n=>typeof n=="function";function vE(n){if(n)return n;if(typeof window<"u"&&Ix(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Ix(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var hi=xt(Bn());function xE(n){return{url:n.url.toString(),fetch:n.fetch,transformer:gE(n.transformer),methodOverride:n.methodOverride}}function yE(n){const a={};for(let r=0;r<n.length;r++){const l=n[r];a[r]=l}return a}const bE={query:"GET",mutation:"POST",subscription:"PATCH"};function ib(n){return"input"in n?n.transformer.input.serialize(n.input):yE(n.inputs.map(a=>n.transformer.input.serialize(a)))}const ob=n=>{const a=n.url.split("?");let l=a[0].replace(/\/$/,"")+"/"+n.path;const o=[];if(a[1]&&o.push(a[1]),"inputs"in n&&o.push("batch=1"),n.type==="query"||n.type==="subscription"){const c=ib(n);c!==void 0&&n.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(c))}`)}return o.length&&(l+="?"+o.join("&")),l},wE=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const a=ib(n);return a!==void 0?JSON.stringify(a):void 0},SE=n=>CE((0,hi.default)((0,hi.default)({},n),{},{contentTypeHeader:"application/json",getUrl:ob,getBody:wE}));var jE=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const NE=n=>{var a;if(n?.aborted)throw(a=n.throwIfAborted)===null||a===void 0||a.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new jE};async function EE(n){var a,r;NE(n.signal);const l=n.getUrl(n),o=n.getBody(n),c=(a=n.methodOverride)!==null&&a!==void 0?a:bE[n.type],d=await(async()=>{const h=await n.headers();return Symbol.iterator in h?Object.fromEntries(h):h})(),m=(0,hi.default)((0,hi.default)((0,hi.default)({},n.contentTypeHeader&&c!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{[(r=n.trpcAcceptHeaderKey)!==null&&r!==void 0?r:"trpc-accept"]:n.trpcAcceptHeader}:void 0),d);return vE(n.fetch)(l,{method:c,signal:n.signal,body:o,headers:m})}async function CE(n){const a={},r=await EE(n);a.response=r;const l=await r.json();return a.responseJSON=l,{json:l,meta:a}}xt(Bn());const Fx=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Gx(n){let a=null,r=null;const l=()=>{clearTimeout(r),r=null,a=null};function o(m){const h=[[]];let g=0;for(;;){const w=m[g];if(!w)break;const j=h[h.length-1];if(w.aborted){var x;(x=w.reject)===null||x===void 0||x.call(w,new Error("Aborted")),g++;continue}if(n.validate(j.concat(w).map(S=>S.key))){j.push(w),g++;continue}if(j.length===0){var v;(v=w.reject)===null||v===void 0||v.call(w,new Error("Input is too big for a single dispatch")),g++;continue}h.push([])}return h}function c(){const m=o(a);l();for(const h of m){if(!h.length)continue;const g={items:h};for(const v of h)v.batch=g;n.fetch(g.items.map(v=>v.key)).then(async v=>{await Promise.all(v.map(async(j,C)=>{const S=g.items[C];try{var T;const _=await Promise.resolve(j);(T=S.resolve)===null||T===void 0||T.call(S,_)}catch(_){var E;(E=S.reject)===null||E===void 0||E.call(S,_)}S.batch=null,S.reject=null,S.resolve=null}));for(const j of g.items){var w;(w=j.reject)===null||w===void 0||w.call(j,new Error("Missing result")),j.batch=null}}).catch(v=>{for(const j of g.items){var w;(w=j.reject)===null||w===void 0||w.call(j,v),j.batch=null}})}}function d(m){var h;const g={aborted:!1,key:m,batch:null,resolve:Fx,reject:Fx},x=new Promise((v,w)=>{var j;g.reject=w,g.resolve=v,(j=a)!==null&&j!==void 0||(a=[]),a.push(g)});
17return(h=r)!==null&&h!==void 0||(r=setTimeout(c)),x}return{load:d}}function kE(...n){const a=new AbortController,r=n.length;let l=0;const o=()=>{++l===r&&a.abort()};for(const c of n)c?.aborted?o():c?.addEventListener("abort",o,{once:!0});return a.signal}var tc=xt(Bn());function AE(n){var a,r;const l=xE(n),o=(a=n.maxURLLength)!==null&&a!==void 0?a:1/0,c=(r=n.maxItems)!==null&&r!==void 0?r:1/0;return()=>{const d=x=>({validate(v){if(o===1/0&&c===1/0)return!0;if(v.length>c)return!1;const w=v.map(S=>S.path).join(","),j=v.map(S=>S.input);return ob((0,tc.default)((0,tc.default)({},l),{},{type:x,path:w,inputs:j,signal:null})).length<=o},async fetch(v){const w=v.map(_=>_.path).join(","),j=v.map(_=>_.input),C=kE(...v.map(_=>_.signal)),S=await SE((0,tc.default)((0,tc.default)({},l),{},{path:w,inputs:j,type:x,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:v}):n.headers:{}},signal:C}));return(Array.isArray(S.json)?S.json:v.map(()=>S.json)).map(_=>({meta:S.meta,json:_}))}}),m=Gx(d("query")),h=Gx(d("mutation")),g={query:m,mutation:h};return({op:x})=>Kc(v=>{/* istanbul ignore if -- @preserve */if(x.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const j=g[x.type].load(x);let C;return j.then(S=>{C=S;const T=qN(S.json,l.transformer.output);if(!T.ok){v.error(sl.from(T.error,{meta:S.meta}));return}v.next({context:S.meta,result:T.result}),v.complete()}).catch(S=>{v.error(sl.from(S,{meta:C?.meta}))}),()=>{}})}}xt(Bn());const cb=(n,...a)=>typeof n=="function"?n(...a):n;xt($s());function TE(){let n,a;return{promise:new Promise((l,o)=>{n=l,a=o}),resolve:n,reject:a}}async function OE(n){const a=await cb(n.url);if(!n.connectionParams)return a;const l=`${a.includes("?")?"&":"?"}connectionParams=1`;return a+l}async function DE(n,a){const r={method:"connectionParams",data:await cb(n)};return a.encode(r)}xt($s());var as=xt($s());function _E(n){const{promise:a,resolve:r,reject:l}=TE();return n.addEventListener("open",()=>{n.removeEventListener("error",l),r()}),n.addEventListener("error",l),a}function RE(n,{intervalMs:a,pongTimeoutMs:r}){let l,o;function c(){l=setTimeout(()=>{n.send("PING"),o=setTimeout(()=>{n.close()},r)},a)}function d(){clearTimeout(l),c()}function m(){clearTimeout(o),d()}n.addEventListener("open",c),n.addEventListener("message",({data:h})=>{clearTimeout(l),c(),h==="PONG"&&m()}),n.addEventListener("close",()=>{clearTimeout(l),clearTimeout(o)})}var ME=class xp{constructor(a){var r;if((0,as.default)(this,"id",++xp.connectCount),(0,as.default)(this,"WebSocketPonyfill",void 0),(0,as.default)(this,"urlOptions",void 0),(0,as.default)(this,"keepAliveOpts",void 0),(0,as.default)(this,"encoder",void 0),(0,as.default)(this,"wsObservable",dE(null)),(0,as.default)(this,"openPromise",null),this.WebSocketPonyfill=(r=a.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=a.urlOptions,this.keepAliveOpts=a.keepAlive,this.encoder=a.encoder}get ws(){return this.wsObservable.get()}set ws(a){this.wsObservable.next(a)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var a=this;if(a.openPromise)return a.openPromise;a.id=++xp.connectCount;const r=OE(a.urlOptions).then(l=>new a.WebSocketPonyfill(l));a.openPromise=r.then(async l=>{a.ws=l,l.binaryType="arraybuffer",l.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),a.keepAliveOpts.enabled&&RE(l,a.keepAliveOpts),l.addEventListener("close",()=>{a.ws===l&&(a.ws=null)}),await _E(l),a.urlOptions.connectionParams&&l.send(await DE(a.urlOptions.connectionParams,a.encoder))});try{await a.openPromise}finally{a.openPromise=null}}async close(){var a=this;try{await a.openPromise}finally{var r;(r=a.ws)===null||r===void 0||r.close()}}};(0,as.default)(ME,"connectCount",0);xt($s());xt(Bn());var gf=xt($s()),Yx=xt(Bn()),Bc=class{constructor(n){(0,gf.default)(this,"links",void 0),(0,gf.default)(this,"runtime",void 0),(0,gf.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(a=>a(this.runtime))}$request(n){var a;return fE({links:this.links,op:(0,Yx.default)((0,Yx.default)({},n),{},{context:(a=n.context)!==null&&a!==void 0?a:{},id:++this.requestId})}).pipe(uE())}async requestAsPromise(n){var a=this;try{const r=a.$request(n);return(await QN(r)).result.data}catch(r){throw sl.from(r)}}query(n,a,r){return this.requestAsPromise({type:"query",path:n,input:a,context:r?.context,signal:r?.signal})}mutation(n,a,r){return this.requestAsPromise({type:"mutation",path:n,input:a,context:r?.context,signal:r?.signal})}subscription(n,a,r){return this.$request({type:"subscription",path:n,input:a,context:r.context,signal:r.signal}).subscribe({next(o){switch(o.result.type){case"state":{var c;
17(c=r.onConnectionStateChange)===null||c===void 0||c.call(r,o.result);break}case"started":{var d;(d=r.onStarted)===null||d===void 0||d.call(r,{context:o.context});break}case"stopped":{var m;(m=r.onStopped)===null||m===void 0||m.call(r);break}case"data":case void 0:{var h;(h=r.onData)===null||h===void 0||h.call(r,o.result.data);break}}},error(o){var c;(c=r.onError)===null||c===void 0||c.call(r,o)},complete(){var o;(o=r.onComplete)===null||o===void 0||o.call(r)}})}};const ub=Symbol.for("trpc_untypedClient"),zE={query:"query",mutate:"mutation",subscribe:"subscription"},KE=n=>zE[n];function db(n){const a=zc(({path:r,args:l})=>{const o=[...r],c=KE(o.pop()),d=o.join(".");return n[c](d,...l)});return em(r=>r===ub?n:a[r])}function BE(n){const a=new Bc(n);return db(a)}function nm(n){return n[ub]}xt(Bn());xt(Bn());var PE=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function r(o){var c,d,m,h=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,m=Symbol.iterator);h--;){if(d&&(c=o[d])!=null)return c.call(o);if(m&&(c=o[m])!=null)return new l(c.call(o));d="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function l(o){function c(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var m=d.done;return Promise.resolve(d.value).then(function(h){return{value:h,done:m}})}return l=function(m){this.s=m,this.n=m.next},l.prototype={s:null,n:null,next:function(){return c(this.n.apply(this.s,arguments))},return:function(m){var h=this.s.return;return h===void 0?Promise.resolve({value:m,done:!0}):c(h.apply(this.s,arguments))},throw:function(m){var h=this.s.return;return h===void 0?Promise.reject(m):c(h.apply(this.s,arguments))}},new l(o)}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}});xt(PE());xt(Bn());var LE=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,a){function r(){var l=typeof SuppressedError=="function"?SuppressedError:function(m,h){var g=Error();return g.name="SuppressedError",g.error=m,g.suppressed=h,g},o={},c=[];function d(m,h){if(h!=null){if(Object(h)!==h)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(m)var g=h[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(g===void 0&&(g=h[Symbol.dispose||Symbol.for("Symbol.dispose")],m))var x=g;if(typeof g!="function")throw new TypeError("Object is not disposable.");x&&(g=function(){try{x.call(h)}catch(w){return Promise.reject(w)}}),c.push({v:h,d:g,a:m})}else m&&c.push({d:h,a:m});return h}return{e:o,u:d.bind(null,!1),a:d.bind(null,!0),d:function(){var h,g=this.e,x=0;function v(){for(;h=c.pop();)try{if(!h.a&&x===1)return x=0,c.push(h),Promise.resolve().then(v);if(h.d){var j=h.d.call(h.v);if(h.a)return x|=2,Promise.resolve(j).then(v,w)}else x|=1}catch(C){return w(C)}if(x===1)return g!==o?Promise.reject(g):Promise.resolve();if(g!==o)throw g}function w(j){return g=g!==o?new l(j,g):j,v()}return v()}}}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}}),fb=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,a){function r(l,o){this.v=l,this.k=o}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}}),UE=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,a){var r=fb();function l(o){return new r(o,0)}a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}}),HE=ta({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,a){var r=fb();function l(c){return function(){return new o(c.apply(this,arguments))}}function o(c){var d,m;function h(x,v){try{var w=c[x](v),j=w.value,C=j instanceof r;Promise.resolve(C?j.v:j).then(function(S){if(C){var T=x==="return"?"return":"next";if(!j.k||S.done)return h(T,S);S=c[T](S).value}g(w.done?"return":"normal",S)},function(S){h("throw",S)})}
17catch(S){g("throw",S)}}function g(x,v){switch(x){case"return":d.resolve({value:v,done:!0});break;case"throw":d.reject(v);break;default:d.resolve({value:v,done:!1})}(d=d.next)?h(d.key,d.arg):m=null}this._invoke=function(x,v){return new Promise(function(w,j){var C={key:x,arg:v,resolve:w,reject:j,next:null};m?m=m.next=C:(d=m=C,h(x,v))})},typeof c.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(c){return this._invoke("next",c)},o.prototype.throw=function(c){return this._invoke("throw",c)},o.prototype.return=function(c){return this._invoke("return",c)},a.exports=l,a.exports.__esModule=!0,a.exports.default=a.exports}});xt(LE());xt(UE());xt(HE());xt(Bn());function qE(n){return zc(({path:a,args:r})=>{var l;const o=[...a],c=o.pop();if(c==="useMutation")return n[c](o,...r);if(c==="_def")return{path:o};const[d,...m]=r,h=(l=m[0])!==null&&l!==void 0?l:{};return n[c](o,d,h)})}var vf;const VE=["client","ssrContext","ssrState","abortOnUnmount"],QE=(vf=b.createContext)===null||vf===void 0?void 0:vf.call(_c,null),IE=n=>{switch(n){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function FE(n){return zc(a=>{const r=[...a.path],l=r.pop(),o=[...a.args],c=o.shift(),d=IE(l),m=Zn(r,c,d);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(r,m,o[0]),queryOptions:()=>n.queryOptions(r,m,...o),fetch:()=>n.fetchQuery(m,...o),fetchInfinite:()=>n.fetchInfiniteQuery(m,o[0]),prefetch:()=>n.prefetchQuery(m,...o),prefetchInfinite:()=>n.prefetchInfiniteQuery(m,o[0]),ensureData:()=>n.ensureQueryData(m,...o),invalidate:()=>n.invalidateQueries(m,...o),reset:()=>n.resetQueries(m,...o),refetch:()=>n.refetchQueries(m,...o),cancel:()=>n.cancelQuery(m,...o),setData:()=>{n.setQueryData(m,o[0],o[1])},setQueriesData:()=>n.setQueriesData(m,o[0],o[1],o[2]),setInfiniteData:()=>{n.setInfiniteQueryData(m,o[0],o[1])},getData:()=>n.getQueryData(m),getInfiniteData:()=>n.getInfiniteQueryData(m),setMutationDefaults:()=>n.setMutationDefaults(mc(r),c),getMutationDefaults:()=>n.getMutationDefaults(mc(r)),isMutating:()=>n.isMutating({mutationKey:mc(r)})}[l]()})}function GE(n){const a=db(n.client),r=FE(n);return em(l=>{const o=l;return o==="client"?a:VE.includes(o)?n[o]:r[l]})}var YE=Zs(Mi(),1);function Xx(n){const a=n instanceof Bc?n:nm(n);return zc(r=>{const l=r.path,o=l.join("."),[c,d]=r.args;return(0,YE.default)({queryKey:Zn(l,c,"query"),queryFn:()=>a.query(o,c,d?.trpc)},d)})}var xf=Zs(Mi(),1);function It(n,a,r){var l;const o=n[0];let c=(l=n[1])===null||l===void 0?void 0:l.input;if(r){var d;c=(0,xf.default)((0,xf.default)((0,xf.default)({},(d=c)!==null&&d!==void 0?d:{}),r.pageParam?{cursor:r.pageParam}:{}),{},{direction:r.direction})}return[o.join("."),c,a?.trpc]}var XE=ps({"../../node_modules/.pnpm/@[email protected]/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,a){function r(o){var c,d,m,h=2;for(typeof Symbol<"u"&&(d=Symbol.asyncIterator,m=Symbol.iterator);h--;){if(d&&(c=o[d])!=null)return c.call(o);if(m&&(c=o[m])!=null)return new l(c.call(o));d="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function l(o){function c(d){if(Object(d)!==d)return Promise.reject(new TypeError(d+" is not an object."));var m=d.done;return Promise.resolve(d.value).then(function(h){return{value:h,done:m}})}return l=function(m){this.s=m,this.n=m.next},l.prototype={s:null,n:null,next:function(){return c(this.n.apply(this.s,arguments))},return:function(m){var h=this.s.return;return h===void 0?Promise.resolve({value:m,done:!0}):c(h.apply(this.s,arguments))},throw:function(m){var h=this.s.return;return h===void 0?Promise.reject(m):c(h.apply(this.s,arguments))}},new l(o)}a.exports=r,a.exports.__esModule=!0,a.exports.default=a.exports}}
17),ZE=Zs(XE(),1);function yp(n){return{path:n.path.join(".")}}function ui(n){const a=yp(n);return b.useMemo(()=>a,[a])}async function pb(n,a,r){const o=a.getQueryCache().build(a,{queryKey:r});o.setState({data:[],status:"success"});const c=[];var d=!1,m=!1,h;try{for(var g=(0,ZE.default)(n),x;d=!(x=await g.next()).done;d=!1){const v=x.value;c.push(v),o.setState({data:[...c]})}}catch(v){m=!0,h=v}finally{try{d&&g.return!=null&&await g.return()}finally{if(m)throw h}}return c}var Xe=Zs(Mi(),1);function $E(n){const{client:a,queryClient:r}=n,l=a instanceof Bc?a:nm(a);return{infiniteQueryOptions:(o,c,d)=>{var m,h;const g=((m=c[1])===null||m===void 0?void 0:m.input)===mn,x=async v=>{var w;const j=(0,Xe.default)((0,Xe.default)({},d),{},{trpc:(0,Xe.default)((0,Xe.default)({},d?.trpc),!(d==null||(w=d.trpc)===null||w===void 0)&&w.abortOnUnmount?{signal:v.signal}:{signal:null})});return await l.query(...It(c,j,{direction:v.direction,pageParam:v.pageParam}))};return Object.assign((0,Xe.default)((0,Xe.default)({},d),{},{initialData:d?.initialData,queryKey:c,queryFn:g?mn:x,initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}),{trpc:yp({path:o})})},queryOptions:(o,c,d)=>{var m;const h=((m=c[1])===null||m===void 0?void 0:m.input)===mn,g=async x=>{var v;const w=(0,Xe.default)((0,Xe.default)({},d),{},{trpc:(0,Xe.default)((0,Xe.default)({},d?.trpc),!(d==null||(v=d.trpc)===null||v===void 0)&&v.abortOnUnmount?{signal:x.signal}:{signal:null})}),j=await l.query(...It(c,w));return Y0(j)?pb(j,r,c):j};return Object.assign((0,Xe.default)((0,Xe.default)({},d),{},{initialData:d?.initialData,queryKey:c,queryFn:h?mn:g}),{trpc:yp({path:o})})},fetchQuery:(o,c)=>r.fetchQuery((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o,queryFn:()=>l.query(...It(o,c))})),fetchInfiniteQuery:(o,c)=>{var d;return r.fetchInfiniteQuery((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o,queryFn:({pageParam:m,direction:h})=>l.query(...It(o,c,{pageParam:m,direction:h})),initialPageParam:(d=c?.initialCursor)!==null&&d!==void 0?d:null}))},prefetchQuery:(o,c)=>r.prefetchQuery((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o,queryFn:()=>l.query(...It(o,c))})),prefetchInfiniteQuery:(o,c)=>{var d;return r.prefetchInfiniteQuery((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o,queryFn:({pageParam:m,direction:h})=>l.query(...It(o,c,{pageParam:m,direction:h})),initialPageParam:(d=c?.initialCursor)!==null&&d!==void 0?d:null}))},ensureQueryData:(o,c)=>r.ensureQueryData((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o,queryFn:()=>l.query(...It(o,c))})),invalidateQueries:(o,c,d)=>r.invalidateQueries((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o}),d),resetQueries:(o,c,d)=>r.resetQueries((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o}),d),refetchQueries:(o,c,d)=>r.refetchQueries((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o}),d),cancelQuery:(o,c)=>r.cancelQueries({queryKey:o},c),setQueryData:(o,c,d)=>r.setQueryData(o,c,d),setQueriesData:(o,c,d,m)=>r.setQueriesData((0,Xe.default)((0,Xe.default)({},c),{},{queryKey:o}),d,m),getQueryData:o=>r.getQueryData(o),setInfiniteQueryData:(o,c,d)=>r.setQueryData(o,c,d),getInfiniteQueryData:o=>r.getQueryData(o),setMutationDefaults:(o,c)=>{const d=o[0],m=h=>l.mutation(...It([d,{input:h}],n));return r.setMutationDefaults(o,typeof c=="function"?c({canonicalMutationFn:m}):c)},getMutationDefaults:o=>r.getMutationDefaults(o),isMutating:o=>r.isMutating((0,Xe.default)((0,Xe.default)({},o),{},{exact:!0}))}}var he=Zs(Mi());const Zx=(n,a)=>new Proxy(n,{get(l,o){return a(o),l[o]}});function WE(n){var a,r;const l=(a=void 0)!==null&&a!==void 0?a:P=>P.originalFn(),o=(r=void 0)!==null&&r!==void 0?r:QE,c=BE,d=P=>{var R;const{abortOnUnmount:A=!1,queryClient:M,ssrContext:q}=P,[$,W]=b.useState((R=P.ssrState)!==null&&R!==void 0?R:!1),Y=P.client instanceof Bc?P.client:nm(P.client),J=b.useMemo(()=>$E({client:Y,queryClient:M}),[Y,M]),te=b.useMemo(()=>(0,he.default)({abortOnUnmount:A,queryClient:M,client:Y,ssrContext:q??null,ssrState:$},J),[A,Y,J,M,q,$]);return b.useEffect(()=>{W(ce=>ce?"mounted":!1)},[]),u.jsx(o.Provider,{value:te,children:P.children})};function m(){const P=b.useContext(o);if(!P)throw new Error("Unable to find tRPC Context. Did you forget to wrap your Ap
17p inside `withTRPC` HoC?");return P}function h(P,R){var A;const{queryClient:M,ssrState:q}=m();return q&&q!=="mounted"&&((A=M.getQueryCache().find({queryKey:P}))===null||A===void 0?void 0:A.state.status)==="error"?(0,he.default)({retryOnMount:!1},R):R}function g(P,R,A){var M,q,$,W,Y;const J=m(),{abortOnUnmount:te,client:ce,ssrState:D,queryClient:V,prefetchQuery:L}=J,oe=Zn(P,R,"query"),de=V.getQueryDefaults(oe),k=R===mn;typeof window>"u"&&D==="prepass"&&(A==null||(M=A.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((q=A?.enabled)!==null&&q!==void 0?q:de?.enabled)!==!1&&!k&&!V.getQueryCache().find({queryKey:oe})&&L(oe,A);const Q=h(oe,(0,he.default)((0,he.default)({},de),A)),H=($=(W=A==null||(Y=A.trpc)===null||Y===void 0?void 0:Y.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&$!==void 0?$:te,Z=NN((0,he.default)((0,he.default)({},Q),{},{queryKey:oe,queryFn:k?R:async re=>{const fe=(0,he.default)((0,he.default)({},Q),{},{trpc:(0,he.default)((0,he.default)({},Q?.trpc),H?{signal:re.signal}:{signal:null})}),F=await ce.query(...It(oe,fe));return Y0(F)?pb(F,V,oe):F}}),V);return Z.trpc=ui({path:P}),Z}function x(P,R,A){var M,q,$;const W=m(),Y=Zn(P,R,"query"),J=R===mn,te=(M=(q=A==null||($=A.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&q!==void 0?q:void 0)!==null&&M!==void 0?M:W.abortOnUnmount;AN((0,he.default)((0,he.default)({},A),{},{queryKey:Y,queryFn:J?R:ce=>{const D={trpc:(0,he.default)((0,he.default)({},A?.trpc),te?{signal:ce.signal}:{})};return W.client.query(...It(Y,D))}}))}function v(P,R,A){var M,q,$;const W=m(),Y=Zn(P,R,"query"),J=(M=(q=A==null||($=A.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&q!==void 0?q:void 0)!==null&&M!==void 0?M:W.abortOnUnmount,te=EN((0,he.default)((0,he.default)({},A),{},{queryKey:Y,queryFn:ce=>{const D=(0,he.default)((0,he.default)({},A),{},{trpc:(0,he.default)((0,he.default)({},A?.trpc),J?{signal:ce.signal}:{signal:null})});return W.client.query(...It(Y,D))}}),W.queryClient);return te.trpc=ui({path:P}),[te.data,te]}function w(P,R){const{client:A,queryClient:M}=m(),q=mc(P),$=M.defaultMutationOptions(M.getMutationDefaults(q)),W=ON((0,he.default)((0,he.default)({},R),{},{mutationKey:q,mutationFn:Y=>A.mutation(...It([P,{input:Y}],R)),onSuccess(...Y){var J,te;return l({originalFn:()=>{var D,V,L;return(D=R==null||(V=R.onSuccess)===null||V===void 0?void 0:V.call(R,...Y))!==null&&D!==void 0?D:$==null||(L=$.onSuccess)===null||L===void 0?void 0:L.call($,...Y)},queryClient:M,meta:(J=(te=R?.meta)!==null&&te!==void 0?te:$?.meta)!==null&&J!==void 0?J:{}})}}),M);return W.trpc=ui({path:P}),W}const j={data:void 0,error:null,status:"idle"},C={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function S(P,R,A){var M;const q=(M=A?.enabled)!==null&&M!==void 0?M:R!==mn,$=os(Zn(P,R,"any")),{client:W}=m(),Y=b.useRef(A);b.useEffect(()=>{Y.current=A});const[J]=b.useState(new Set([])),te=b.useCallback(k=>{J.add(k)},[J]),ce=b.useRef(null),D=b.useCallback(k=>{const Q=L.current,H=L.current=k(Q);let Z=!1;for(const re of J)if(Q[re]!==H[re]){Z=!0;break}Z&&de(Zx(H,te))},[te,J]),V=b.useCallback(()=>{var k;if((k=ce.current)===null||k===void 0||k.unsubscribe(),!q){D(()=>(0,he.default)((0,he.default)({},j),{},{reset:V}));return}D(()=>(0,he.default)((0,he.default)({},C),{},{reset:V}));const Q=W.subscription(P.join("."),R??void 0,{onStarted:()=>{var H,Z;(H=(Z=Y.current).onStarted)===null||H===void 0||H.call(Z),D(re=>(0,he.default)((0,he.default)({},re),{},{status:"pending",error:null}))},onData:H=>{var Z,re;(Z=(re=Y.current).onData)===null||Z===void 0||Z.call(re,H),D(fe=>(0,he.default)((0,he.default)({},fe),{},{status:"pending",data:H,error:null}))},onError:H=>{var Z,re;(Z=(re=Y.current).onError)===null||Z===void 0||Z.call(re,H),D(fe=>(0,he.default)((0,he.default)({},fe),{},{status:"error",error:H}))},onConnectionStateChange:H=>{D(Z=>{switch(H.state){case"idle":return(0,he.default)((0,he.default)({},Z),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,he.default)((0,he.default)({},Z),{},{error:H.error,status:H.state});case"pending":return Z}})},onComplete:()=>{var H,Z;(H=(Z=Y.current).onComplete)===null||H===void 0||H.call(Z),D(re=>(0,he.default)((0,he.default)({},re),{},{status:"idle",error:null,data:void 0}))}});ce.current=Q},[W,$,q,D]);b.useEffect(()=>(V(),()=>{var k;(k=ce.current)===null||k===void 0||k.unsubscribe()}),[V]);const L=b.useRef(q?(0,he.default)((0,he.default)({},C),{},{reset:V}):(0,he.default)((0,he.default)({},j),{},{reset:V})),[oe,de]=b.useState(Zx(L.current,te));return oe}function T(P,R,A){var M,q,$,W,Y;const{client:J,ssrState:te,prefetchInfiniteQuery:ce,queryClient:D,abortOnUnmount:V}=m(),L=Zn(P,R,"infinite"),oe=D.getQueryDefaults(L),de=R===mn;typeof window>"u"&&te==="prepass"&&(A==null||(M=A.trpc)===null||M===void 0?void 0:M.ssr)!==!1&&((q=A?.enabled)!==null&&q!==void 0?q:oe?.enabled)!==!1&&!de&&!D.getQueryCache().find({queryKey:L})&&ce(L,(0,he.default)((0,he.default)({},oe),A));const k=h(L,(0,he.default)((0,he.default)({},oe),A)),Q=($=A==null||(W=A.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&$!==void 0?$:V,H=DN((0,he.default)((0,he.default)({},k),{},{initialPageParam:(Y=A.initialCursor)!==null&&Y!==void 0?Y:null,persister:A.persister,queryKey:L,queryFn:de?R:Z=>{var re;const fe=(0,he.default)((0,he.default)({},k),{},{trpc:(0,he.default)((0,he.default)({},k?.trpc),Q?{signal:Z.signal}:{signal:null})});return J.query(...It(L,fe,{pageParam:(re=Z.pageParam)!==null&&re!==void 0?re:A.initialCursor,direction:Z.direction}))}}),D);
17return H.trpc=ui({path:P}),H}function E(P,R,A){var M,q,$;const W=m(),Y=Zn(P,R,"infinite"),J=W.queryClient.getQueryDefaults(Y),te=R===mn,ce=h(Y,(0,he.default)((0,he.default)({},J),A)),D=(M=A==null||(q=A.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&M!==void 0?M:W.abortOnUnmount;TN((0,he.default)((0,he.default)({},A),{},{initialPageParam:($=A.initialCursor)!==null&&$!==void 0?$:null,queryKey:Y,queryFn:te?R:V=>{var L;const oe=(0,he.default)((0,he.default)({},ce),{},{trpc:(0,he.default)((0,he.default)({},ce?.trpc),D?{signal:V.signal}:{})});return W.client.query(...It(Y,oe,{pageParam:(L=V.pageParam)!==null&&L!==void 0?L:A.initialCursor,direction:V.direction}))}}))}function _(P,R,A){var M,q,$;const W=m(),Y=Zn(P,R,"infinite"),J=W.queryClient.getQueryDefaults(Y),te=h(Y,(0,he.default)((0,he.default)({},J),A)),ce=(M=A==null||(q=A.trpc)===null||q===void 0?void 0:q.abortOnUnmount)!==null&&M!==void 0?M:W.abortOnUnmount,D=CN((0,he.default)((0,he.default)({},A),{},{initialPageParam:($=A.initialCursor)!==null&&$!==void 0?$:null,queryKey:Y,queryFn:V=>{var L;const oe=(0,he.default)((0,he.default)({},te),{},{trpc:(0,he.default)((0,he.default)({},te?.trpc),ce?{signal:V.signal}:{})});return W.client.query(...It(Y,oe,{pageParam:(L=V.pageParam)!==null&&L!==void 0?L:A.initialCursor,direction:V.direction}))}}),W.queryClient);return D.trpc=ui({path:P}),[D.data,D]}return{Provider:d,createClient:c,useContext:m,useUtils:m,useQuery:g,usePrefetchQuery:x,useSuspenseQuery:v,useQueries:(P,R)=>{const{ssrState:A,queryClient:M,prefetchQuery:q,client:$}=m(),W=Xx($),Y=P(W);if(typeof window>"u"&&A==="prepass")for(const te of Y){var J;const ce=te;((J=ce.trpc)===null||J===void 0?void 0:J.ssr)!==!1&&!M.getQueryCache().find({queryKey:ce.queryKey})&&q(ce.queryKey,ce)}return G0({queries:Y.map(te=>(0,he.default)((0,he.default)({},te),{},{queryKey:te.queryKey})),combine:R?.combine},M)},useSuspenseQueries:P=>{const{queryClient:R,client:A}=m(),M=Xx(A),q=P(M),$=kN({queries:q.map(W=>(0,he.default)((0,he.default)({},W),{},{queryFn:W.queryFn,queryKey:W.queryKey}))},R);return[$.map(W=>W.data),$]},useMutation:w,useSubscription:S,useInfiniteQuery:T,usePrefetchInfiniteQuery:E,useSuspenseInfiniteQuery:_}}function JE(n){const a=qE(n);return em(r=>r==="useContext"||r==="useUtils"?()=>{const l=n.useUtils();return b.useMemo(()=>GE(l),[l])}:n.hasOwnProperty(r)?n[r]:a[r])}function eC(n){const a=WE();return JE(a)}const be=eC(),tC="Please login (10001)";var yf={exports:{}},di={},bf={exports:{}},wf={};/** 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 $x;function nC(){return $x||($x=1,(function(n){function a(D,V){var L=D.length;D.push(V);e:for(;0<L;){var oe=L-1>>>1,de=D[oe];if(0<o(de,V))D[oe]=V,D[L]=de,L=oe;else break e}}function r(D){return D.length===0?null:D[0]}function l(D){if(D.length===0)return null;var V=D[0],L=D.pop();if(L!==V){D[0]=L;e:for(var oe=0,de=D.length,k=de>>>1;oe<k;){var Q=2*(oe+1)-1,H=D[Q],Z=Q+1,re=D[Z];if(0>o(H,L))Z<de&&0>o(re,H)?(D[oe]=re,D[Z]=L,oe=Z):(D[oe]=H,D[Q]=L,oe=Q);else if(Z<de&&0>o(re,L))D[oe]=re,D[Z]=L,oe=Z;else break e}}return V}function o(D,V){var L=D.sortIndex-V.sortIndex;return L!==0?L:D.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var h=[],g=[],x=1,v=null,w=3,j=!1,C=!1,S=!1,T=!1,E=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function B(D){for(var V=r(g);V!==null;){if(V.callback===null)l(g);else if(V.startTime<=D)l(g),V.sortIndex=V.expirationTime,a(h,V);else break;V=r(g)}}function P(D){if(S=!1,B(D),!C)if(r(h)!==null)C=!0,R||(R=!0,Y());else{var V=r(g);V!==null&&ce(P,V.startTime-D)}}var R=!1,A=-1,M=5,q=-1;function $(){return T?!0:!(n.unstable_now()-q<M)}function W(){if(T=!1,R){var D=n.unstable_now();q=D;var V=!0;try{e:{C=!1,S&&(S=!1,_(A),A=-1),j=!0;var L=w;try{t:{for(B(D),v=r(h);v!==null&&!(v.expirationTime>D&&$());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,w=v.priorityLevel;var de=oe(v.expirationTime<=D);if(D=n.unstable_now(),typeof de=="function"){v.callback=de,B(D),V=!0;break t}v===r(h)&&l(h),B(D)}else l(h);v=r(h)}if(v!==null)V=!0;else{var k=r(g);k!==null&&ce(P,k.startTime-D),V=!1}}break e}finally{v=null,w=L,j=!1}V=void 0}}finally{V?Y():R=!1}}}var Y;if(typeof O=="function")Y=function(){O(W)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,te=J.port2;J.port1.onmessage=W,Y=function(){te.postMessage(null)}}else Y=function(){E(W,0)};function ce(D,V){A=E(function(){D(n.unstable_now())},V)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(D){switch(w){case 1:case 2:case 3:var V=3;break;default:V=w}var L=w;w=V;try{return D()}finally{w=L}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var L=w;w=D;try{return V()}finally{w=L}},n.unstable_scheduleCallback=function(D,V,L){var oe=n.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?oe+L:oe):L=oe,D){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=L+de,D={id:x++,callback:V,priorityLevel:D,startTime:L,expirationTime:de,s
vendor: 8,235 bytes, lines 25-41
25ortIndex:-1},L>oe?(D.sortIndex=L,a(g,D),r(h)===null&&D===r(g)&&(S?(_(A),A=-1):S=!0,ce(P,L-oe))):(D.sortIndex=de,a(h,D),C||j||(C=!0,R||(R=!0,Y()))),D},n.unstable_shouldYield=$,n.unstable_wrapCallback=function(D){var V=w;return function(){var L=w;w=V;try{return D.apply(this,arguments)}finally{w=L}}}})(wf)),wf}var Wx;function aC(){return Wx||(Wx=1,bf.exports=nC()),bf.exports}var Sf={exports:{}},Lt={};/** 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 Jx;function sC(){if(Jx)return Lt;Jx=1;var n=Dc();function a(h){var g="https://react.dev/errors/"+h;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+h+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var l={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,g,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:g,implementation:x}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,g){if(h==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Lt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,Lt.createPortal=function(h,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(h,g,null,x)},Lt.flushSync=function(h){var g=d.T,x=l.p;try{if(d.T=null,l.p=2,h)return h()}finally{d.T=g,l.p=x,l.d.f()}},Lt.preconnect=function(h,g){typeof h=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,l.d.C(h,g))},Lt.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},Lt.preinit=function(h,g){if(typeof h=="string"&&g&&typeof g.as=="string"){var x=g.as,v=m(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?l.d.S(h,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:w,fetchPriority:j}):x==="script"&&l.d.X(h,{crossOrigin:v,integrity:w,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Lt.preinitModule=function(h,g){if(typeof h=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);l.d.M(h,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&l.d.M(h)},Lt.preload=function(h,g){if(typeof h=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,v=m(x,g.crossOrigin);l.d.L(h,x,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Lt.preloadModule=function(h,g){if(typeof h=="string")if(g){var x=m(g.as,g.crossOrigin);l.d.m(h,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else l.d.m(h)},Lt.requestFormReset=function(h){l.d.r(h)},Lt.unstable_batchedUpdates=function(h,g){return h(g)},Lt.useFormState=function(h,g,x){return d.H.useFormState(h,g,x)},Lt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Lt.version="19.2.1",Lt}var ey;function mb(){if(ey)return Sf.exports;ey=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),Sf.exports=sC(),Sf.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 ty;function rC(){if(ty)return di;ty=1;var n=aC(),a=Dc(),r=mb();function l(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(l(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(l(188));return t!==e?null:e}for(var s=e,i=t;;){var f=s.return;if(f===null)break;var p=f.alternate;if(p===null){if(i=f.return,i!==null){s=i;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===s)return h(f),e;if(p===i)return h(f),t;p=p.sibling}throw Error(l(188))}if(s.return!==i.return)s=f,i=p;else{for(var y=!1,N=f.child;N;){if(N===s){y=!0,s=f,i=p;break}if(N===i){y=!0,i=f,s=p;break}N=N.sibling}if(!y){for(N=p.child;N;){if(N===s){y=!0,s=p,i=f;break}if(N===i){y=!0,i=p,s=f;break}N=N.sibling}if(!y)throw Error(l(189))}}if(s.alternate!==i)throw Error(l(190))}if(s.tag!==3)throw Error(l(188));return s.stateNode.current===s?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),O=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function Y(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var J=Symbol.for("react.client.reference");function te(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===J?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case E:return"Profiler";case T:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList";case q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case C:return"Portal";case O:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case A:return t=e.displayName||null,t!==null?t:te(e.type)||"Memo";case M:t=e._payload,e=e._init;try{return te(e(t))}catch{}}return null}var ce=Array.isArray,D=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L={pending:!1,data:null,method:null,action:null},oe=[],de=-1;function k(e){return{current:e}}function Q(e){0>de||(e.current=oe[de],oe[de]=null,de--)}function H(e,t){de++,oe[de]=e.current,e.current=t}var Z=k(null),re=k(null),fe=k(null),F=k(null);function le(e,t){switch(H(fe,t),H(re,e),H(Z,null),t.nodeType){case 9:case 11:e=(e
vendor: 10,063 bytes, lines 41-48
41=t.documentElement)&&(e=e.namespaceURI)?Jv(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jv(t),e=ex(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Q(Z),H(Z,e)}function pe(){Q(Z),Q(re),Q(fe)}function Ee(e){e.memoizedState!==null&&H(F,e);var t=Z.current,s=ex(t,e.type);t!==s&&(H(re,e),H(Z,s))}function Ne(e){re.current===e&&(Q(Z),Q(re)),F.current===e&&(Q(F),ri._currentValue=L)}var ke,Ke;function Fe(e){if(ke===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);ke=t&&t[1]||"",Ke=-1<s.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+ke+e+Ke}var An=!1;function gn(e,t){if(!e||An)return"";An=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var se=function(){throw Error()};if(Object.defineProperty(se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(se,[])}catch(ee){var X=ee}Reflect.construct(e,[],se)}else{try{se.call()}catch(ee){X=ee}e.call(se.prototype)}}else{try{throw Error()}catch(ee){X=ee}(se=e())&&typeof se.catch=="function"&&se.catch(function(){})}}catch(ee){if(ee&&X&&typeof ee.stack=="string")return[ee.stack,X.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=i.DetermineComponentFrameRoot(),y=p[0],N=p[1];if(y&&N){var z=y.split(` 44`),G=N.split(` 45`);for(f=i=0;i<z.length&&!z[i].includes("DetermineComponentFrameRoot");)i++;for(;f<G.length&&!G[f].includes("DetermineComponentFrameRoot");)f++;if(i===z.length||f===G.length)for(i=z.length-1,f=G.length-1;1<=i&&0<=f&&z[i]!==G[f];)f--;for(;1<=i&&0<=f;i--,f--)if(z[i]!==G[f]){if(i!==1||f!==1)do if(i--,f--,0>f||z[i]!==G[f]){var ne=` 46`+z[i].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),ne}while(1<=i&&0<=f);break}}}finally{An=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?Fe(s):""}function Tt(e,t){switch(e.tag){case 26:case 27:case 5:return Fe(e.type);case 16:return Fe("Lazy");case 13:return e.child!==t&&t!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return gn(e.type,!1);case 11:return gn(e.type.render,!1);case 1:return gn(e.type,!0);case 31:return Fe("Activity");default:return""}}function vn(e){try{var t="",s=null;do t+=Tt(e,s),s=e,e=e.return;while(e);return t}catch(i){return` 47Error generating stack: `+i.message+` 48`+i.stack}}var Ot=Object.prototype.hasOwnProperty,Ta=n.unstable_scheduleCallback,gs=n.unstable_cancelCallback,Dt=n.unstable_shouldYield,Ln=n.unstable_requestPaint,_t=n.unstable_now,xl=n.unstable_getCurrentPriorityLevel,aa=n.unstable_ImmediatePriority,ar=n.unstable_UserBlockingPriority,an=n.unstable_NormalPriority,vs=n.unstable_LowPriority,Tn=n.unstable_IdlePriority,sr=n.log,Un=n.unstable_setDisableYieldValue,ie=null,ge=null;function me(e){if(typeof sr=="function"&&Un(e),ge&&typeof ge.setStrictMode=="function")try{ge.setStrictMode(ie,e)}catch{}}var Re=Math.clz32?Math.clz32:Hn,yt=Math.log,yl=Math.LN2;function Hn(e){return e>>>=0,e===0?32:31-(yt(e)/yl|0)|0}var rr=256,lr=262144,xs=4194304;function qn(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Oe(e,t,s){var i=e.pendingLanes;if(i===0)return 0;var f=0,p=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var N=i&134217727;return N!==0?(i=N&~p,i!==0?f=qn(i):(y&=N,y!==0?f=qn(y):s||(s=N&~e,s!==0&&(f=qn(s))))):(N=i&~p,N!==0?f=qn(N):y!==0?f=qn(y):s||(s=i&~e,s!==0&&(f=qn(s)))),f===0?0:t!==0&&t!==f&&(t&p)===0&&(p=f&-f,s=t&-t,p>=s||p===32&&(s&4194048)!==0)?t:f}function ct(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ct(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pt(){var e=xs;return xs<<=1,(xs&62914560)===0&&(xs=4194304),e}function Oa(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function dt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ft(e,t,s,i,f,p){var y=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var N=e.entanglements,z=e.expirationTimes,G=e.hiddenUpdates;for(s=y&~s;0<s;){var ne=31-Re(s),se=1<<ne;N[ne]=0,z[ne]=-1;var X=G[ne];if(X!==null)for(G[ne]=null,ne=0;ne<X.length;ne++){var ee=X[ne];ee!==null&&(ee.lane&=-536870913)}s&=~se}i!==0&&ys(e,i,0),p!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=p&~(y&~t))}function ys(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Re(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|s&261930}function Gt(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var i=31-Re(s),f=1<<i;f&t|e[i]&t&&(e[i]|=t),s&=~f}}function Yt(e,t){var s=t&-t;return s=(s&42)!==0?1:ir(s),(s&(e.suspendedLanes|t))!==0?0:s}function ir(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function On(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function nu(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:jx(e.type))}function Lm(e,t){var s=V.p;try{return V.p=e,t()}finally{V.p=s}}var Da=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Da,Xt="__reactProps$"+Da,or="__reactContainer$"+Da,au="__reactEvents$"+Da,D2="__reactListeners$"+Da,_2="__reactHandles$"+Da,Um="__reactResources$"+Da,bl="__reactMarker$"+Da;function su(e){delete e[Rt],delete e[Xt],delete e[au],delete e[D2],delete e[_2]}function cr(e){var t=e[Rt];if(t)return t;for(var s=e.parentNode;s;){if(t=s[or]||s[Rt]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=ix(e);e!==null;){if(s=e[Rt])return s;e=ix(e)}return t}e=s,s=e.parentNode}return null}function ur(e){if(e=e[Rt]||e[or]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function wl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(l(33))}function dr(e){var t=e[Um];return t||(t=e[Um]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[bl]=!0}var Hm=new Set,qm={};function bs(e,t){fr(e,t),fr(e+"Capture",t)}function fr(e,t){for(qm[e]=t,e=0;e<t.length;e++)Hm.add(t[e])}var R2=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]*$"),Vm={},Qm={};function M2(e){return Ot.call(Qm,e)?!0:Ot.call(Vm,e)?!1:R2.test(e)?Qm[e]=!0:(Vm[e]=!0,!1)}function Li(e,t,s){if(M2(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function Ui(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function sa(e,t,s,i){if(i===null)e.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+i)}}function xn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Im(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function z2(e,t,s){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,p=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return f.call(this)},set:function(y){s=""+y,p.call(this,y)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(y){s=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ru(e){if(!e._valueTracker){var t=Im(e)?"checked":"value";e._valueTracker=z2(e,t,""+e[t])}}function Fm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),i="";return e&&(i=Im(e)?e.checked?"true":"false":e.value),e=i,e!==s?(t.setValue(e),!0):!1}function Hi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var K2=/[\n"\\]/g;function yn(e){return e.replace(K2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}
vendor: 4,391 bytes, line 48
48function lu(e,t,s,i,f,p,y,N){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+xn(t)):e.value!==""+xn(t)&&(e.value=""+xn(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?iu(e,y,xn(t)):s!=null?iu(e,y,xn(s)):i!=null&&e.removeAttribute("value"),f==null&&p!=null&&(e.defaultChecked=!!p),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+xn(N):e.removeAttribute("name")}function Gm(e,t,s,i,f,p,y,N){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(e.type=p),t!=null||s!=null){if(!(p!=="submit"&&p!=="reset"||t!=null)){ru(e);return}s=s!=null?""+xn(s):"",t=t!=null?""+xn(t):s,N||t===e.value||(e.value=t),e.defaultValue=t}i=i??f,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=N?e.checked:!!i,e.defaultChecked=!!i,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),ru(e)}function iu(e,t,s){t==="number"&&Hi(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function pr(e,t,s,i){if(e=e.options,t){t={};for(var f=0;f<s.length;f++)t["$"+s[f]]=!0;for(s=0;s<e.length;s++)f=t.hasOwnProperty("$"+e[s].value),e[s].selected!==f&&(e[s].selected=f),f&&i&&(e[s].defaultSelected=!0)}else{for(s=""+xn(s),t=null,f=0;f<e.length;f++){if(e[f].value===s){e[f].selected=!0,i&&(e[f].defaultSelected=!0);return}t!==null||e[f].disabled||(t=e[f])}t!==null&&(t.selected=!0)}}function Ym(e,t,s){if(t!=null&&(t=""+xn(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+xn(s):""}function Xm(e,t,s,i){if(t==null){if(i!=null){if(s!=null)throw Error(l(92));if(ce(i)){if(1<i.length)throw Error(l(93));i=i[0]}s=i}s==null&&(s=""),t=s}s=xn(t),e.defaultValue=s,i=e.textContent,i===s&&i!==""&&i!==null&&(e.value=i),ru(e)}function mr(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var B2=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 Zm(e,t,s){var i=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,s):typeof s!="number"||s===0||B2.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function $m(e,t,s){if(t!=null&&typeof t!="object")throw Error(l(62));if(e=e.style,s!=null){for(var i in s)!s.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var f in t)i=t[f],t.hasOwnProperty(f)&&s[f]!==i&&Zm(e,f,i)}else for(var p in t)t.hasOwnProperty(p)&&Zm(e,p,t[p])}function ou(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var P2=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"]]),L2=/^[\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 qi(e){return L2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ra(){}var cu=null;function uu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hr=null,gr=null;function Wm(e){var t=ur(e);if(t&&(e=t.stateNode)){var s=e[Xt]||null;e:switch(e=t.stateNode,t.type){case"input":if(lu(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+yn(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var i=s[t];if(i!==e&&i.form===e.form){var f=i[Xt]||null;if(!f)throw Error(l(90));lu(i,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(t=0;t<s.length;t++)i=s[t],i.form===e.form&&Fm(i)}break e;case"textarea":Ym(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&pr(e,!!s.multiple,t,!1)}}}var du=!1;function Jm(e,t,s){if(du)return e(t,s);du=!0;try{var i=e(t);return i}finally{if(du=!1,(hr!==null||gr!==null)&&(Oo(),hr&&(t=hr,e=gr,gr=hr=null,Wm(t),e)))for(t=0;t<e.length;t++)Wm(e[t])}}function Sl(e,t){var s=e.stateNode;if(s===null)return null;var i=s[Xt]||null;if(i===null)return null;s=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(l(231,t,typeof s));return s}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=!1;if(la)try{var jl={};Object.defineProperty(jl,"passive",{get:function(){fu=!0}}),window.addEventListener("test",jl,jl),window.removeEventListener("test",jl,jl)}catch{fu=!1}var _a=null,pu=null,Vi=null;function eh(){if(Vi)return Vi;var e,t=pu,s=t.length,i,f="value"in _a?_a.value:_a.textContent,p=f.length;for(e=0;e<s&&t[e]===f[e];e++);var y=s-e;for(i=1;i<=y&&t[s-i]===f[p-i];i++);return Vi=f.slice(e,1<i?1-i:void 0)}function Qi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ii(){return!0}function th(){return!1}function Zt(e){function t(s,i,f,p,y){this._reactName=s,this._targetInst=f,this.type=i,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(s=e[N],this[N]=s?s(p):p[N]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ii:th,this.isPropagationStopped=th,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Ii)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ii)},persist:function(){},isPersistent:Ii}),t}var ws={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=Zt(ws),Nl=v({},ws,{view:0,detail:0}),U2=Zt(Nl),mu,hu,El,Gi=v({},Nl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==El&&(El&&e.type==="mousemove"?(mu=e.screenX-El.screenX,hu=e.screenY-El.screenY):hu=mu=0,El=e),mu)},movementY:function(e){return"movementY"in e?e.movementY:hu}}),nh=Zt(Gi),H2=v({},Gi,{dataTransfer:0}),q2=Zt(H2),V2=v({},Nl,{relatedTarget:0}),gu=Zt(V2),Q2=v({},ws,{animationName:0,elapsedTime:0,pseudoElement:0}),I2=Zt(Q2),F2=v({},ws,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}
vendor: 4,495 bytes, line 48
48),G2=Zt(F2),Y2=v({},ws,{data:0}),ah=Zt(Y2),X2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z2={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"},$2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=$2[e])?!!t[e]:!1}function vu(){return W2}var J2=v({},Nl,{key:function(e){if(e.key){var t=X2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vu,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),eS=Zt(J2),tS=v({},Gi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sh=Zt(tS),nS=v({},Nl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vu}),aS=Zt(nS),sS=v({},ws,{propertyName:0,elapsedTime:0,pseudoElement:0}),rS=Zt(sS),lS=v({},Gi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iS=Zt(lS),oS=v({},ws,{newState:0,oldState:0}),cS=Zt(oS),uS=[9,13,27,32],xu=la&&"CompositionEvent"in window,Cl=null;la&&"documentMode"in document&&(Cl=document.documentMode);var dS=la&&"TextEvent"in window&&!Cl,rh=la&&(!xu||Cl&&8<Cl&&11>=Cl),lh=" ",ih=!1;function oh(e,t){switch(e){case"keyup":return uS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ch(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var vr=!1;function fS(e,t){switch(e){case"compositionend":return ch(t);case"keypress":return t.which!==32?null:(ih=!0,lh);case"textInput":return e=t.data,e===lh&&ih?null:e;default:return null}}function pS(e,t){if(vr)return e==="compositionend"||!xu&&oh(e,t)?(e=eh(),Vi=pu=_a=null,vr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return rh&&t.locale!=="ko"?null:t.data;default:return null}}var mS={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 uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!mS[e.type]:t==="textarea"}function dh(e,t,s,i){hr?gr?gr.push(i):gr=[i]:hr=i,t=Bo(t,"onChange"),0<t.length&&(s=new Fi("onChange","change",null,s,i),e.push({event:s,listeners:t}))}var kl=null,Al=null;function hS(e){Gv(e,0)}function Yi(e){var t=wl(e);if(Fm(t))return e}function fh(e,t){if(e==="change")return t}var ph=!1;if(la){var yu;if(la){var bu="oninput"in document;if(!bu){var mh=document.createElement("div");mh.setAttribute("oninput","return;"),bu=typeof mh.oninput=="function"}yu=bu}else yu=!1;ph=yu&&(!document.documentMode||9<document.documentMode)}function hh(){kl&&(kl.detachEvent("onpropertychange",gh),Al=kl=null)}function gh(e){if(e.propertyName==="value"&&Yi(Al)){var t=[];dh(t,Al,e,uu(e)),Jm(hS,t)}}function gS(e,t,s){e==="focusin"?(hh(),kl=t,Al=s,kl.attachEvent("onpropertychange",gh)):e==="focusout"&&hh()}function vS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yi(Al)}function xS(e,t){if(e==="click")return Yi(t)}function yS(e,t){if(e==="input"||e==="change")return Yi(t)}function bS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var sn=typeof Object.is=="function"?Object.is:bS;function Tl(e,t){if(sn(e,t))return!0;
vendor: 20,532 bytes, line 48
48if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),i=Object.keys(t);if(s.length!==i.length)return!1;for(i=0;i<s.length;i++){var f=s[i];if(!Ot.call(t,f)||!sn(e[f],t[f]))return!1}return!0}function vh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xh(e,t){var s=vh(e);e=0;for(var i;s;){if(s.nodeType===3){if(i=e+s.textContent.length,e<=t&&i>=t)return{node:s,offset:t-e};e=i}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=vh(s)}}function yh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?yh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function bh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Hi(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=Hi(e.document)}return t}function wu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var wS=la&&"documentMode"in document&&11>=document.documentMode,xr=null,Su=null,Ol=null,ju=!1;function wh(e,t,s){var i=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ju||xr==null||xr!==Hi(i)||(i=xr,"selectionStart"in i&&wu(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Ol&&Tl(Ol,i)||(Ol=i,i=Bo(Su,"onSelect"),0<i.length&&(t=new Fi("onSelect","select",null,t,s),e.push({event:t,listeners:i}),t.target=xr)))}function Ss(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var yr={animationend:Ss("Animation","AnimationEnd"),animationiteration:Ss("Animation","AnimationIteration"),animationstart:Ss("Animation","AnimationStart"),transitionrun:Ss("Transition","TransitionRun"),transitionstart:Ss("Transition","TransitionStart"),transitioncancel:Ss("Transition","TransitionCancel"),transitionend:Ss("Transition","TransitionEnd")},Nu={},Sh={};la&&(Sh=document.createElement("div").style,"AnimationEvent"in window||(delete yr.animationend.animation,delete yr.animationiteration.animation,delete yr.animationstart.animation),"TransitionEvent"in window||delete yr.transitionend.transition);function js(e){if(Nu[e])return Nu[e];if(!yr[e])return e;var t=yr[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Sh)return Nu[e]=t[s];return e}var jh=js("animationend"),Nh=js("animationiteration"),Eh=js("animationstart"),SS=js("transitionrun"),jS=js("transitionstart"),NS=js("transitioncancel"),Ch=js("transitionend"),kh=new Map,Eu="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(" ");Eu.push("scrollEnd");function Dn(e,t){kh.set(e,t),bs(t,[e])}var Xi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},bn=[],br=0,Cu=0;function Zi(){for(var e=br,t=Cu=br=0;t<e;){var s=bn[t];bn[t++]=null;var i=bn[t];bn[t++]=null;var f=bn[t];bn[t++]=null;var p=bn[t];if(bn[t++]=null,i!==null&&f!==null){var y=i.pending;y===null?f.next=f:(f.next=y.next,y.next=f),i.pending=f}p!==0&&Ah(s,f,p)}}function $i(e,t,s,i){bn[br++]=e,bn[br++]=t,bn[br++]=s,bn[br++]=i,Cu|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function ku(e,t,s,i){return $i(e,t,s,i),Wi(e)}function Ns(e,t){return $i(e,null,null,t),Wi(e)}function Ah(e,t,s){e.lanes|=s;var i=e.alternate;i!==null&&(i.lanes|=s);for(var f=!1,p=e.return;p!==null;)p.childLanes|=s,i=p.alternate,i!==null&&(i.childLanes|=s),p.tag===22&&(e=p.stateNode,e===null||e._visibility&1||(f=!0)),e=p,p=p.return;return e.tag===3?(p=e.stateNode,f&&t!==null&&(f=31-Re(s),e=p.hiddenUpdates,i=e[f],i===null?e[f]=[t]:i.push(t),t.lane=s|536870912),p):null}function Wi(e){if(50<Wl)throw Wl=0,Kd=null,Error(l(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var wr={};function ES(e,t,s,i){this.tag=e,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,t,s,i){return new ES(e,t,s,i)}function Au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var s=e.alternate;return s===null?(s=rn(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Th(e,t){e.flags&=65011714;var s=e.alternate;return s===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ji(e,t,s,i,f,p){var y=0;if(i=e,typeof e=="function")Au(e)&&(y=1);else if(typeof e=="string")y=Oj(e,s,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case q:return e=rn(31,s,t,f),e.elementType=q,e.lanes=p,e;case S:return Es(s.children,f,p,t);case T:y=8,f|=24;break;case E:return e=rn(12,s,t,f|2),e.elementType=E,e.lanes=p,e;case P:return e=rn(13,s,t,f),e.elementType=P,e.lanes=p,e;case R:return e=rn(19,s,t,f),e.elementType=R,e.lanes=p,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:y=10;break e;case _:y=9;break e;case B:y=11;break e;case A:y=14;break e;case M:y=16,i=null;break e}y=29,s=Error(l(130,e===null?"null":typeof e,"")),i=null}return t=rn(y,s,t,f),t.elementType=e,t.type=i,t.lanes=p,t}function Es(e,t,s,i){return e=rn(7,e,i,t),e.lanes=s,e}function Tu(e,t,s){return e=rn(6,e,null,t),e.lanes=s,e}function Oh(e){var t=rn(18,null,null,0);return t.stateNode=e,t}function Ou(e,t,s){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dh=new WeakMap;function wn(e,t){if(typeof e=="object"&&e!==null){var s=Dh.get(e);return s!==void 0?s:(t={value:e,source:t,stack:vn(t)},Dh.set(e,t),t)}return{value:e,source:t,stack:vn(t)}}var Sr=[],jr=0,eo=null,Dl=0,Sn=[],jn=0,Ra=null,Vn=1,Qn="";function oa(e,t){Sr[jr++]=Dl,Sr[jr++]=eo,eo=e,Dl=t}function _h(e,t,s){Sn[jn++]=Vn,Sn[jn++]=Qn,Sn[jn++]=Ra,Ra=e;var i=Vn;e=Qn;var f=32-Re(i)-1;i&=~(1<<f),s+=1;var p=32-Re(t)+f;if(30<p){var y=f-f%5;p=(i&(1<<y)-1).toString(32),i>>=y,f-=y,Vn=1<<32-Re(t)+f|s<<f|i,Qn=p+e}else Vn=1<<p|s<<f|i,Qn=e}function Du(e){e.return!==null&&(oa(e,1),_h(e,1,0))}function _u(e){for(;e===eo;)eo=Sr[--jr],Sr[jr]=null,Dl=Sr[--jr],Sr[jr]=null;for(;e===Ra;)Ra=Sn[--jn],Sn[jn]=null,Qn=Sn[--jn],Sn[jn]=null,Vn=Sn[--jn],Sn[jn]=null}function Rh(e,t){Sn[jn++]=Vn,Sn[jn++]=Qn,Sn[jn++]=Ra,Vn=t.id,Qn=t.overflow,Ra=e}var Mt=null,it=null,Ve=!1,Ma=null,Nn=!1,Ru=Error(l(519));function za(e){var t=Error(l(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(wn(t,e)),Ru}function Mh(e){var t=e.stateNode,s=e.type,i=e.memoizedProps;switch(t[Rt]=e,t[Xt]=i,s){case"dialog":Ue("cancel",t),Ue("close",t);break;case"iframe":case"object":case"embed":Ue("load",t);break;case"video":case"audio":for(s=0;s<ei.length;s++)Ue(ei[s],t);break;case"source":Ue("error",t);break;case"img":case"image":case"link":Ue("error",t),Ue("load",t);break;case"details":Ue("toggle",t);break;case"input":Ue("invalid",t),Gm(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":Ue("invalid",t);break;case"textarea":Ue("invalid",t),Xm(t,i.value,i.defaultValue,i.children)}s=i.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||i.suppressHydrationWarning===!0||$v(t.textContent,s)?(i.popover!=null&&(Ue("beforetoggle",t),Ue("toggle",t)),i.onScroll!=null&&Ue("scroll",t),i.onScrollEnd!=null&&Ue("scrollend",t),i.onClick!=null&&(t.onclick=ra),t=!0):t=!1,t||za(e,!0)}function zh(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:Nn=!1;return;case 27:case 3:Nn=!0;return;default:Mt=Mt.return}}function Nr(e){if(e!==Mt)return!1;if(!Ve)return zh(e),Ve=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||$d(e.type,e.memoizedProps)),s=!s),s&&it&&za(e),zh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));it=lx(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));it=lx(e)}else t===27?(t=it,Xa(e.type)?(e=nf,nf=null,it=e):it=t):it=Mt?Cn(e.stateNode.nextSibling):null;return!0}function Cs(){it=Mt=null,Ve=!1}function Mu(){var e=Ma;return e!==null&&(en===null?en=e:en.push.apply(en,e),Ma=null),e}function _l(e){Ma===null?Ma=[e]:Ma.push(e)}var zu=k(null),ks=null,ca=null;function Ka(e,t,s){H(zu,t._currentValue),t._currentValue=s}function ua(e){e._currentValue=zu.current,Q(zu)}function Ku(e,t,s){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===s)break;e=e.return}}function Bu(e,t,s,i){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var p=f.dependencies;if(p!==null){var y=f.child;p=p.firstContext;e:for(;p!==null;){var N=p;p=f;for(var z=0;z<t.length;z++)if(N.context===t[z]){p.lanes|=s,N=p.alternate,N!==null&&(N.lanes|=s),Ku(p.return,s,e),i||(y=null);break e}p=N.next}}else if(f.tag===18){if(y=f.return,y===null)throw Error(l(341));y.lanes|=s,p=y.alternate,p!==null&&(p.lanes|=s),Ku(y,s,e),y=null}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===e){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}}function Er(e,t,s,i){e=null;for(var f=t,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var y=f.alternate;if(y===null)throw Error(l(387));if(y=y.memoizedProps,y!==null){var N=f.type;sn(f.pendingProps.value,y.value)||(e!==null?e.push(N):e=[N])}}else if(f===F.current){if(y=f.alternate,y===null)throw Error(l(387));y.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(ri):e=[ri])}f=f.return}e!==null&&Bu(t,e,s,i),t.flags|=262144}function to(e){for(e=e.firstContext;e!==null;){if(!sn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function As(e){ks=e,ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function zt(e){return Kh(ks,e)}function no(e,t){return ks===null&&As(e),Kh(e,t)}function Kh(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},ca===null){if(e===null)throw Error(l(308));ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ca=ca.next=t;return s}var CS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},kS=n.unstable_scheduleCallback,AS=n.unstable_NormalPriority,bt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pu(){return{controller:new CS,data:new Map,refCount:0}}function Rl(e){e.refCount--,e.refCount===0&&kS(AS,function(){e.controller.abort()})}var Ml=null,Lu=0,Cr=0,kr=null;function TS(e,t){if(Ml===null){var s=Ml=[];Lu=0,Cr=qd(),kr={status:"pending",value:void 0,then:function(i){s.push(i)}}}return Lu++,t.then(Bh,Bh),t}function Bh(){if(--Lu===0&&Ml!==null){kr!==null&&(kr.status="fulfilled");var e=Ml;Ml=null,Cr=0,kr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function OS(e,t){var s=[],i={status:"pending",value:null,reason:null,then:function(f){s.push(f)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var f=0;f<s.length;f++)(0,s[f])(t)},function(f){for(i.status="rejected",i.reason=f,f=0;f<s.length;f++)(0,s[f])(void 0)}),i}var Ph=D.S;D.S=function(e,t){wv=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&TS(e,t),Ph!==null&&Ph(e,t)};var Ts=k(null);function Uu(){var e=Ts.current;return e!==null?e:rt.pooledCache}function ao(e,t){t===null?H(Ts,Ts.current):H(Ts,t.pool)}function Lh(){var e=Uu();return e===null?null:{parent:bt._currentValue,pool:e}}var Ar=Error(l(460)),Hu=Error(l(474)),so=Error(l(542)),ro={then:function(){}};function Uh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Hh(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(ra,ra),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vh(e),e;default:if(typeof t.status=="string")t.then(ra,ra);else{if(e=rt,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var f=t;f.status="fulfilled",f.value=i}},function(i){if(t.status==="pending"){var f=t;f.status="rejected",f.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Vh(e),e}throw Ds=t,Ar}}function Os(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ds=s,Ar):s}}var Ds=null;function qh(){if(Ds===null)throw Error(l(459));var e=Ds;return Ds=null,e}function Vh(e){if(e===Ar||e===so)throw Error(l(483))}var Tr=null,zl=0;function lo(e){var t=zl;return zl+=1,Tr===null&&(Tr=[]),Hh(Tr,e,t)}function Kl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function io(e,t){throw t.$$typeof===w?Error(l(525)):(e=Object.prototype.toString.call(t),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Qh(e){function t(U,K){if(e){var I=U.deletions;I===null?(U.deletions=[K],U.flags|=16):I.push(K)}}function s(U,K){if(!e)return null;for(;K!==null;)t(U,K),K=K.sibling;return null}function i(U){for(var K=new Map;U!==null;)U.key!==null?K.set(U.key,U):K.set(U.index,U),U=U.sibling;return K}function f(U,K){return U=ia(U,K),U.index=0,U.sibling=null,U}function p(U,K,I){return U.index=I,e?(I=U.alternate,I!==null?(I=I.index,I<K?(U.flags|=67108866,K):I):(U.flags|=67108866,K)):(U.flags|=1048576,K)}function y(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function N(U,K,I,ae){return K===null||K.tag!==6?(K=Tu(I,U.mode,ae),K.return=U,K):(K=f(K,I),K.return=U,K)}function z(U,K,I,ae){var Ce=I.type;return Ce===S?ne(U,K,I.props.children,ae,I.key):K!==null&&(K.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===M&&Os(Ce)===K.type)?(K=f(K,I.props),Kl(K,I),K.return=U,K):(K=Ji(I.type,I.key,I.props,null,U.mode,ae),Kl(K,I),K.return=U,K)}function G(U,K,I,ae){return K===null||K.tag!==4||K.stateNode.containerInfo!==I.containerInfo||K.stateNode.implementation!==I.implementation?(K=Ou(I,U.mode,ae),K.return=U,K):(K=f(K,I.children||[]),K.return=U,K)}function ne(U,K,I,ae,Ce){return K===null||K.tag!==7?(K=Es(I,U.mode,ae,Ce),K.return=U,K):(K=f(K,I),K.return=U,K)}function se(U,K,I){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return K=Tu(""+K,U.mode,I),K.return=U,K;if(typeof K=="object"&&K!==null){switch(K.$$typeof){case j:return I=Ji(K.type,K.key,K.props,null,U.mode,I),Kl(I,K),I.return=U,I;case C:return K=Ou(K,U.mode,I),K.return=U,K;case M:return K=Os(K),se(U,K,I)}if(ce(K)||Y(K))return K=Es(K,U.mode,I,null),K.return=U,K;if(typeof K.then=="function")return se(U,lo(K),I);if(K.$$typeof===O)return se(U,no(U,K),I);io(U,K)}return null}function X(U,K,I,ae){var Ce=K!==null?K.key:null;if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return Ce!==null?null:N(U,K,""+I,ae);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case j:return I.key===Ce?z(U,K,I,ae):null;case C:return I.key===Ce?G(U,K,I,ae):null;case M:return I=Os(I),X(U,K,I,ae)}if(ce(I)||Y(I))return Ce!==null?null:ne(U,K,I,ae,null);if(typeof I.then=="function")return X(U,K,lo(I),ae);if(I.$$typeof===O)return X(U,K,no(U,I),ae);io(U,I)}return null}function ee(U,K,I,ae,Ce){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return U=U.get(I)||null,N(K,U,""+ae,Ce);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case j:return U=U.get(ae.key===null?I:ae.key)||null,z(K,U,ae,Ce);case C:return U=U.get(ae.key===null?I:ae.key)||null,G(K,U,ae,Ce);case M:return ae=Os(ae),ee(U,K,I,ae,Ce)}if(ce(ae)||Y(ae))return U=U.get(I)||null,ne(K,U,ae,Ce,null);if(typeof ae.then=="function")return ee(U,K,I,lo(ae),Ce);if(ae.$$typeof===O)return ee(U,K,I,no(K,ae),Ce);io(K,ae)}return null}function ve(U,K,I,ae){for(var Ce=null,Ge=null,we=K,ze=K=0,qe=null;we!==null&&ze<I.length;ze++){we.index>ze?(qe=we,we=null):qe=we.sibling;var Ye=X(U,we,I[ze],ae);if(Ye===null){we===null&&(we=qe);break}e&&we&&Ye.alternate===null&&t(U,we),K=p(Ye,K,ze),Ge===null?Ce=Ye:Ge.sibling=Ye,Ge=Ye,we=qe}if(ze===I.length)return s(U,we),Ve&&oa(U,ze),Ce;if(we===null){for(;ze<I.length;ze++)we=se(U,I[ze],ae),we!==null&&(K=p(we,K,ze),Ge===null?Ce=we:Ge.sibling=we,Ge=we);return Ve&&oa(U,ze),Ce}for(we=i(we);ze<I.length;ze++)qe=ee(we,U,ze,I[ze],ae),qe!==null&&(e&&qe.alternate!==null&&we.delete(qe.key===null?ze:qe.key),K=p(qe,K,ze),Ge===null?Ce=qe:Ge.sibling=qe,Ge=qe);return e&&we.forEach(function(es){return t(U,es)}),Ve&&oa(U,ze),Ce}function Ae(U,K,I,ae){if(I==null)throw Error(l(151));for(var Ce=null,Ge=null,we=K,ze=K=0,qe=null,Ye=I.next();we!==null&&!Ye.done;ze++,Ye=I.next()){we.index>ze?(qe=we,we=null):qe=we.sibling;var es=X(U,we,Ye.value,ae);if(es===null){we===null&&(we=qe);break}e&&we&&es.alternate===null&&t(U,we),K=p(es,K,ze),Ge===null?Ce=es:Ge.sibling=es,Ge=es,we=qe}if(Ye.done)return s(U,we),Ve&&oa(U,ze),Ce;if(we===null){for(;!Ye.done;ze++,Ye=I.next())Ye=se(U,Ye.value,ae),Ye!==null&&(K=p(Ye,K,ze),Ge===null?Ce=Ye:Ge.sibling=Ye,Ge=Ye);return Ve&&oa(U,ze),Ce}for(we=i(we);!Ye.done;ze++,Ye=I.next())Ye=ee(we,U,ze,Ye.value,ae),Ye!==null&&(e&&Ye.alternate!==null&&we.delete(Ye.key===null?ze:Ye.key),K=p(Ye,K,ze),Ge===null?Ce=Ye:Ge.sibling=Ye,Ge=Ye);return e&&we.forEach(function(Hj){return t(U,Hj)}),Ve&&oa(U,ze),Ce}function st(U,K,I,ae){if(typeof I=="object"&&I!==null&&I.type===S&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case j:e:{for(var Ce=I.key;K!==null;){if(K.key===Ce){if(Ce=I.type,Ce===S){if(K.tag===7){s(U,K.sibling),ae=f(K,I.props.children),ae.return=U,U=ae;break e}}else if(K.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===M&&Os(Ce)===K.type){s(U,K.sibling),ae=f(K,I.props),Kl(ae,I),ae.return=U,U=ae;break e}s(U,K);break}else t(U,K);K=K.sibling}I.type===S?(ae=Es(I.props.children,U.mode,ae,I.key),ae.return=U,U=ae):(ae=Ji(I.type,I.key,I.props,null,U.mode,ae),Kl(ae,I),ae.return=U,U=ae)}return y(U);case C:e:{for(Ce=I.key;K!==null;){if(K.key===Ce)if(K.tag===4&&K.stateNode.containerInfo===I.containerInfo&&K.stateNode.implementation===I.implementation){s(U,K.sibling),ae=f(K,I.children||[]),ae.return=U,U=ae;break e}else{s(U,K);break}else t(U,K);K=K.sibling}ae=Ou(I,U.mode,ae),ae.return=U,U=ae}return y(U);case M:return I=Os(I),st(U,K,I,ae)}if(ce(I))return ve(U,K,I,ae);
vendor: 5,150 bytes, line 48
48if(Y(I)){if(Ce=Y(I),typeof Ce!="function")throw Error(l(150));return I=Ce.call(I),Ae(U,K,I,ae)}if(typeof I.then=="function")return st(U,K,lo(I),ae);if(I.$$typeof===O)return st(U,K,no(U,I),ae);io(U,I)}return typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint"?(I=""+I,K!==null&&K.tag===6?(s(U,K.sibling),ae=f(K,I),ae.return=U,U=ae):(s(U,K),ae=Tu(I,U.mode,ae),ae.return=U,U=ae),y(U)):s(U,K)}return function(U,K,I,ae){try{zl=0;var Ce=st(U,K,I,ae);return Tr=null,Ce}catch(we){if(we===Ar||we===so)throw we;var Ge=rn(29,we,null,U.mode);return Ge.lanes=ae,Ge.return=U,Ge}finally{}}}var _s=Qh(!0),Ih=Qh(!1),Ba=!1;function qu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vu(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Pa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,s){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ze&2)!==0){var f=i.pending;return f===null?t.next=t:(t.next=f.next,f.next=t),i.pending=t,t=Wi(e),Ah(e,null,s),t}return $i(e,i,t,s),Wi(e)}function Bl(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Gt(e,s)}}function Qu(e,t){var s=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,s===i)){var f=null,p=null;if(s=s.firstBaseUpdate,s!==null){do{var y={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};p===null?f=p=y:p=p.next=y,s=s.next}while(s!==null);p===null?f=p=t:p=p.next=t}else f=p=t;s={baseState:i.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:i.shared,callbacks:i.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var Iu=!1;function Pl(){if(Iu){var e=kr;if(e!==null)throw e}}function Ll(e,t,s,i){Iu=!1;var f=e.updateQueue;Ba=!1;var p=f.firstBaseUpdate,y=f.lastBaseUpdate,N=f.shared.pending;if(N!==null){f.shared.pending=null;var z=N,G=z.next;z.next=null,y===null?p=G:y.next=G,y=z;var ne=e.alternate;ne!==null&&(ne=ne.updateQueue,N=ne.lastBaseUpdate,N!==y&&(N===null?ne.firstBaseUpdate=G:N.next=G,ne.lastBaseUpdate=z))}if(p!==null){var se=f.baseState;y=0,ne=G=z=null,N=p;do{var X=N.lane&-536870913,ee=X!==N.lane;if(ee?(He&X)===X:(i&X)===X){X!==0&&X===Cr&&(Iu=!0),ne!==null&&(ne=ne.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var ve=e,Ae=N;X=t;var st=s;switch(Ae.tag){case 1:if(ve=Ae.payload,typeof ve=="function"){se=ve.call(st,se,X);break e}se=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ae.payload,X=typeof ve=="function"?ve.call(st,se,X):ve,X==null)break e;se=v({},se,X);break e;case 2:Ba=!0}}X=N.callback,X!==null&&(e.flags|=64,ee&&(e.flags|=8192),ee=f.callbacks,ee===null?f.callbacks=[X]:ee.push(X))}else ee={lane:X,tag:N.tag,payload:N.payload,callback:N.callback,next:null},ne===null?(G=ne=ee,z=se):ne=ne.next=ee,y|=X;if(N=N.next,N===null){if(N=f.shared.pending,N===null)break;ee=N,N=ee.next,ee.next=null,f.lastBaseUpdate=ee,f.shared.pending=null}}while(!0);ne===null&&(z=se),f.baseState=z,f.firstBaseUpdate=G,f.lastBaseUpdate=ne,p===null&&(f.shared.lanes=0),Qa|=y,e.lanes=y,e.memoizedState=se}}function Fh(e,t){if(typeof e!="function")throw Error(l(191,e));e.call(t)}function Gh(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)Fh(s[e],t)}var Or=k(null),oo=k(0);function Yh(e,t){e=ya,H(oo,e),H(Or,t),ya=e|t.baseLanes}function Fu(){H(oo,ya),H(Or,Or.current)}function Gu(){ya=oo.current,Q(Or),Q(oo)}var ln=k(null),En=null;function Ua(e){var t=e.alternate;H(gt,gt.current&1),H(ln,e),En===null&&(t===null||Or.current!==null||t.memoizedState!==null)&&(En=e)}function Yu(e){H(gt,gt.current),H(ln,e),En===null&&(En=e)}function Xh(e){e.tag===22?(H(gt,gt.current),H(ln,e),En===null&&(En=e)):Ha()}function Ha(){H(gt,gt.current),H(ln,ln.current)}function on(e){Q(ln),En===e&&(En=null),Q(gt)}var gt=k(0);function co(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||ef(s)||tf(s)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var da=0,Me=null,nt=null,wt=null,uo=!1,Dr=!1,Rs=!1,fo=0,Ul=0,_r=null,DS=0;function pt(){throw Error(l(321))}function Xu(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!sn(e[s],t[s]))return!1;return!0}function Zu(e,t,s,i,f,p){return da=p,Me=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,D.H=e===null||e.memoizedState===null?_g:dd,Rs=!1,p=s(i,f),Rs=!1,Dr&&(p=$h(t,s,i,f)),Zh(e),p}function Zh(e){D.H=Vl;var t=nt!==null&&nt.next!==null;if(da=0,wt=nt=Me=null,uo=!1,Ul=0,_r=null,t)throw Error(l(300));
vendor: 18,742 bytes, line 48
48e===null||St||(e=e.dependencies,e!==null&&to(e)&&(St=!0))}function $h(e,t,s,i){Me=e;var f=0;do{if(Dr&&(_r=null),Ul=0,Dr=!1,25<=f)throw Error(l(301));if(f+=1,wt=nt=null,e.updateQueue!=null){var p=e.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=Rg,p=t(s,i)}while(Dr);return p}function _S(){var e=D.H,t=e.useState()[0];return t=typeof t.then=="function"?Hl(t):t,e=e.useState()[0],(nt!==null?nt.memoizedState:null)!==e&&(Me.flags|=1024),t}function $u(){var e=fo!==0;return fo=0,e}function Wu(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function Ju(e){if(uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uo=!1}da=0,wt=nt=Me=null,Dr=!1,Ul=fo=0,_r=null}function Vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?Me.memoizedState=wt=e:wt=wt.next=e,wt}function vt(){if(nt===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=nt.next;var t=wt===null?Me.memoizedState:wt.next;if(t!==null)wt=t,nt=e;else{if(e===null)throw Me.alternate===null?Error(l(467)):Error(l(310));nt=e,e={memoizedState:nt.memoizedState,baseState:nt.baseState,baseQueue:nt.baseQueue,queue:nt.queue,next:null},wt===null?Me.memoizedState=wt=e:wt=wt.next=e}return wt}function po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hl(e){var t=Ul;return Ul+=1,_r===null&&(_r=[]),e=Hh(_r,e,t),t=Me,(wt===null?t.memoizedState:wt.next)===null&&(t=t.alternate,D.H=t===null||t.memoizedState===null?_g:dd),e}function mo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hl(e);if(e.$$typeof===O)return zt(e)}throw Error(l(438,String(e)))}function ed(e){var t=null,s=Me.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var i=Me.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(f){return f.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=po(),Me.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),i=0;i<e;i++)s[i]=$;return t.index++,s}function fa(e,t){return typeof t=="function"?t(e):t}function ho(e){var t=vt();return td(t,nt,e)}function td(e,t,s){var i=e.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=s;var f=e.baseQueue,p=i.pending;if(p!==null){if(f!==null){var y=f.next;f.next=p.next,p.next=y}t.baseQueue=f=p,i.pending=null}if(p=e.baseState,f===null)e.memoizedState=p;else{t=f.next;var N=y=null,z=null,G=t,ne=!1;do{var se=G.lane&-536870913;if(se!==G.lane?(He&se)===se:(da&se)===se){var X=G.revertLane;if(X===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),se===Cr&&(ne=!0);else if((da&X)===X){G=G.next,X===Cr&&(ne=!0);continue}else se={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},z===null?(N=z=se,y=p):z=z.next=se,Me.lanes|=X,Qa|=X;se=G.action,Rs&&s(p,se),p=G.hasEagerState?G.eagerState:s(p,se)}else X={lane:se,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},z===null?(N=z=X,y=p):z=z.next=X,Me.lanes|=se,Qa|=se;G=G.next}while(G!==null&&G!==t);if(z===null?y=p:z.next=N,!sn(p,e.memoizedState)&&(St=!0,ne&&(s=kr,s!==null)))throw s;e.memoizedState=p,e.baseState=y,e.baseQueue=z,i.lastRenderedState=p}return f===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function nd(e){var t=vt(),s=t.queue;if(s===null)throw Error(l(311));s.lastRenderedReducer=e;var i=s.dispatch,f=s.pending,p=t.memoizedState;if(f!==null){s.pending=null;var y=f=f.next;do p=e(p,y.action),y=y.next;while(y!==f);sn(p,t.memoizedState)||(St=!0),t.memoizedState=p,t.baseQueue===null&&(t.baseState=p),s.lastRenderedState=p}return[p,i]}function Wh(e,t,s){var i=Me,f=vt(),p=Ve;if(p){if(s===void 0)throw Error(l(407));s=s()}else s=t();var y=!sn((nt||f).memoizedState,s);if(y&&(f.memoizedState=s,St=!0),f=f.queue,rd(tg.bind(null,i,f,e),[e]),f.getSnapshot!==t||y||wt!==null&&wt.memoizedState.tag&1){if(i.flags|=2048,Rr(9,{destroy:void 0},eg.bind(null,i,f,s,t),null),rt===null)throw Error(l(349));p||(da&127)!==0||Jh(i,t,s)}return s}function Jh(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=Me.updateQueue,t===null?(t=po(),Me.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function eg(e,t,s,i){t.value=s,t.getSnapshot=i,ng(t)&&ag(e)}function tg(e,t,s){return s(function(){ng(t)&&ag(e)})}function ng(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!sn(e,s)}catch{return!0}}function ag(e){var t=Ns(e,2);t!==null&&tn(t,e,2)}function ad(e){var t=Vt();if(typeof e=="function"){var s=e;if(e=s(),Rs){me(!0);try{s()}finally{me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t}function sg(e,t,s,i){return e.baseState=s,td(e,nt,typeof i=="function"?i:fa)}function RS(e,t,s,i,f){if(xo(e))throw Error(l(485));if(e=t.action,e!==null){var p={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};D.T!==null?s(!0):p.isTransition=!1,i(p),s=t.pending,s===null?(p.next=t.pending=p,rg(t,p)):(p.next=s.next,t.pending=s.next=p)}}function rg(e,t){var s=t.action,i=t.payload,f=e.state;if(t.isTransition){var p=D.T,y={};D.T=y;try{var N=s(f,i),z=D.S;z!==null&&z(y,N),lg(e,t,N)}catch(G){sd(e,t,G)}finally{p!==null&&y.types!==null&&(p.types=y.types),D.T=p}}else try{p=s(f,i),lg(e,t,p)}catch(G){sd(e,t,G)}}function lg(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(i){ig(e,t,i)},function(i){return sd(e,t,i)}):ig(e,t,s)}function ig(e,t,s){t.status="fulfilled",t.value=s,og(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,rg(e,s)))}function sd(e,t,s){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=s,og(t),t=t.next;while(t!==i)}e.action=null}function og(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cg(e,t){return t}function ug(e,t){if(Ve){var s=rt.formState;if(s!==null){e:{var i=Me;if(Ve){if(it){t:{for(var f=it,p=Nn;f.nodeType!==8;){if(!p){f=null;break t}if(f=Cn(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){it=Cn(f.nextSibling),i=f.data==="F!";break e}}za(i)}i=!1}i&&(t=s[0])}}return s=Vt(),s.memoizedState=s.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cg,lastRenderedState:t},s.queue=i,s=Tg.bind(null,Me,i),i.dispatch=s,i=ad(!1),p=ud.bind(null,Me,!1,i.queue),i=Vt(),f={state:t,dispatch:null,action:e,pending:null},i.queue=f,s=RS.bind(null,Me,f,p,s),f.dispatch=s,i.memoizedState=e,[t,s,!1]}function dg(e){var t=vt();return fg(t,nt,e)}function fg(e,t,s){if(t=td(e,t,cg)[0],e=ho(fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=Hl(t)}catch(y){throw y===Ar?so:y}else i=t;t=vt();var f=t.queue,p=f.dispatch;return s!==t.memoizedState&&(Me.flags|=2048,Rr(9,{destroy:void 0},MS.bind(null,f,s),null)),[i,p,e]}function MS(e,t){e.action=t}function pg(e){var t=vt(),s=nt;if(s!==null)return fg(t,s,e);vt(),t=t.memoizedState,s=vt();var i=s.queue.dispatch;return s.memoizedState=e,[t,i,!1]}function Rr(e,t,s,i){return e={tag:e,create:s,deps:i,inst:t,next:null},t=Me.updateQueue,t===null&&(t=po(),Me.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(i=s.next,s.next=e,e.next=i,t.lastEffect=e),e}function mg(){return vt().memoizedState}function go(e,t,s,i){var f=Vt();Me.flags|=e,f.memoizedState=Rr(1|t,{destroy:void 0},s,i===void 0?null:i)}function vo(e,t,s,i){var f=vt();i=i===void 0?null:i;var p=f.memoizedState.inst;nt!==null&&i!==null&&Xu(i,nt.memoizedState.deps)?f.memoizedState=Rr(t,p,s,i):(Me.flags|=e,f.memoizedState=Rr(1|t,p,s,i))}function hg(e,t){go(8390656,8,e,t)}function rd(e,t){vo(2048,8,e,t)}function zS(e){Me.flags|=4;var t=Me.updateQueue;if(t===null)t=po(),Me.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function gg(e){var t=vt().memoizedState;return zS({ref:t,nextImpl:e}),function(){if((Ze&2)!==0)throw Error(l(440));return t.impl.apply(void 0,arguments)}}function vg(e,t){return vo(4,2,e,t)}function xg(e,t){return vo(4,4,e,t)}function yg(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function bg(e,t,s){s=s!=null?s.concat([e]):null,vo(4,4,yg.bind(null,t,e),s)}function ld(){}function wg(e,t){var s=vt();t=t===void 0?null:t;var i=s.memoizedState;return t!==null&&Xu(t,i[1])?i[0]:(s.memoizedState=[e,t],e)}function Sg(e,t){var s=vt();t=t===void 0?null:t;var i=s.memoizedState;if(t!==null&&Xu(t,i[1]))return i[0];if(i=e(),Rs){me(!0);try{e()}finally{me(!1)}}return s.memoizedState=[i,t],i}function id(e,t,s){return s===void 0||(da&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=jv(),Me.lanes|=e,Qa|=e,s)}function jg(e,t,s,i){return sn(s,t)?s:Or.current!==null?(e=id(e,s,i),sn(e,t)||(St=!0),e):(da&42)===0||(da&1073741824)!==0&&(He&261930)===0?(St=!0,e.memoizedState=s):(e=jv(),Me.lanes|=e,Qa|=e,t)}function Ng(e,t,s,i,f){var p=V.p;V.p=p!==0&&8>p?p:8;var y=D.T,N={};D.T=N,ud(e,!1,t,s);try{var z=f(),G=D.S;if(G!==null&&G(N,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ne=OS(z,i);ql(e,t,ne,dn(e))}else ql(e,t,i,dn(e))}catch(se){ql(e,t,{then:function(){},status:"rejected",reason:se},dn())}finally{V.p=p,y!==null&&N.types!==null&&(y.types=N.types),D.T=y}}function KS(){}function od(e,t,s,i){if(e.tag!==5)throw Error(l(476));var f=Eg(e).queue;Ng(e,f,t,L,s===null?KS:function(){return Cg(e),s(i)})}function Eg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:L,baseState:L,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:L},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cg(e){var t=Eg(e);t.next===null&&(t=e.alternate.memoizedState),ql(e,t.next.queue,{},dn())}function cd(){return zt(ri)}function kg(){return vt().memoizedState}function Ag(){return vt().memoizedState}function BS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=dn();e=Pa(s);var i=La(t,e,s);i!==null&&(tn(i,t,s),Bl(i,t,s)),t={cache:Pu()},e.payload=t;return}t=t.return}}function PS(e,t,s){var i=dn();s={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},xo(e)?Og(t,s):(s=ku(e,t,s,i),s!==null&&(tn(s,e,i),Dg(s,t,i)))}function Tg(e,t,s){var i=dn();ql(e,t,s,i)}function ql(e,t,s,i){var f={lane:i,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(xo(e))Og(t,f);else{var p=e.alternate;if(e.lanes===0&&(p===null||p.lanes===0)&&(p=t.lastRenderedReducer,p!==null))try{var y=t.lastRenderedState,N=p(y,s);if(f.hasEagerState=!0,f.eagerState=N,sn(N,y))return $i(e,t,f,0),rt===null&&Zi(),!1}catch{}finally{}if(s=ku(e,t,f,i),s!==null)return tn(s,e,i),Dg(s,t,i),!0}return!1}function ud(e,t,s,i){if(i={lane:2,revertLane:qd(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},xo(e)){if(t)throw Error(l(479))}else t=ku(e,s,i,2),t!==null&&tn(t,e,2)}function xo(e){var t=e.alternate;return e===Me||t!==null&&t===Me}function Og(e,t){Dr=uo=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Dg(e,t,s){if((s&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,s|=i,t.lanes=s,Gt(e,s)}}var Vl={readContext:zt,use:mo,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt};Vl.useEffectEvent=pt;var _g={readContext:zt,use:mo,useCallback:function(e,t){return Vt().memoizedState=[e,t===void 0?null:t],e},useContext:zt,useEffect:hg,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,go(4194308,4,yg.bind(null,t,e),s)},useLayoutEffect:function(e,t){return go(4194308,4,e,t)},useInsertionEffect:function(e,t){go(4,2,e,t)},useMemo:function(e,t){var s=Vt();t=t===void 0?null:t;var i=e();if(Rs){me(!0);try{e()}finally{me(!1)}}return s.memoizedState=[i,t],i},useReducer:function(e,t,s){var i=Vt();if(s!==void 0){var f=s(t);if(Rs){me(!0);try{s(t)}finally{me(!1)}}}else f=t;return i.memoizedState=i.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},i.queue=e,e=e.dispatch=PS.bind(null,Me,e),[i.memoizedState,e]},useRef:function(e){var t=Vt();return e={current:e},t.memoizedState=e},useState:function(e){e=ad(e);var t=e.queue,s=Tg.bind(null,Me,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:ld,useDeferredValue:function(e,t){var s=Vt();return id(s,e,t)},useTransition:function(){var e=ad(!1);return e=Ng.bind(null,Me,e.queue,!0,!1),Vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var i=Me,f=Vt();if(Ve){if(s===void 0)throw Error(l(407));s=s()}else{if(s=t(),rt===null)throw Error(l(349));(He&127)!==0||Jh(i,t,s)}f.memoizedState=s;var p={value:s,getSnapshot:t};return f.queue=p,hg(tg.bind(null,i,p,e),[e]),i.flags|=2048,Rr(9,{destroy:void 0},eg.bind(null,i,p,s,t),null),s},useId:function(){var e=Vt(),t=rt.identifierPrefix;if(Ve){var s=Qn,i=Vn;s=(i&~(1<<32-Re(i)-1)).toString(32)+s,t="_"+t+"R_"+s,s=fo++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=DS++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:cd,useFormState:ug,useActionState:ug,useOptimistic:function(e){var t=Vt();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=ud.bind(null,Me,!0,s),s.dispatch=t,[e,t]},useMemoCache:ed,useCacheRefresh:function(){return Vt().memoizedState=BS.bind(null,Me)},useEffectEvent:function(e){var t=Vt(),s={impl:e};return t.memoizedState=s,function(){if((Ze&2)!==0)throw Error(l(440));return s.impl.apply(void 0,arguments)}}},dd={readContext:zt,use:mo,useCallback:wg,useContext:zt,useEffect:rd,useImperativeHandle:bg,useInsertionEffect:vg,useLayoutEffect:xg,useMemo:Sg,useReducer:ho,useRef:mg,useState:function(){return ho(fa)},useDebugValue:ld,useDeferredValue:function(e,t){var s=vt();return jg(s,nt.memoizedState,e,t)},useTransition:function(){var e=ho(fa)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:Hl(e),t]},useSyncExternalStore:Wh,useId:kg,useHostTransitionStatus:cd,useFormState:dg,useActionState:dg,useOptimistic:function(e,t){var s=vt();return sg(s,nt,e,t)},useMemoCache:ed,useCacheRefresh:Ag};dd.useEffectEvent=gg;var Rg={readContext:zt,use:mo,useCallback:wg,useContext:zt,useEffect:rd,useImperativeHandle:bg,useInsertionEffect:vg,useLayoutEffect:xg,useMemo:Sg,useReducer:nd,useRef:mg,useState:function(){return nd(fa)},useDebugValue:ld,useDeferredValue:function(e,t){var s=vt();return nt===null?id(s,e,t):jg(s,nt.memoizedState,e,t)},useTransition:function(){var e=nd(fa)[0],t=vt().memoizedState;return[typeof e=="boolean"?e:Hl(e),t]},useSyncExternalStore:Wh,useId:kg,useHostTransitionStatus:cd,useFormState:pg,useActionState:pg,useOptimistic:function(e,t){var s=vt();return nt!==null?sg(s,nt,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:ed,useCacheRefresh:Ag};Rg.useEffectEvent=gg;function fd(e,t,s,i){t=e.memoizedState,s=s(i,t),s=s==null?t:v({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var pd={enqueueSetState:function(e,t,s){e=e._reactInternals;var i=dn(),f=Pa(i);f.payload=t,s!=null&&(f.callback=s),t=La(e,f,i),t!==null&&(tn(t,e,i),Bl(t,e,i))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var i=dn(),f=Pa(i);f.tag=1,f.payload=t,s!=null&&(f.callback=s),t=La(e,f,i),t!==null&&(tn(t,e,i),Bl(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=dn(),i=Pa(s);i.tag=2,t!=null&&(i.callback=t),t=La(e,i,s),t!==null&&(tn(t,e,s),Bl(t,e,s))}};function Mg(e,t,s,i,f,p,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,p,y):t.prototype&&t.prototype.isPureReactComponent?!Tl(s,i)||!Tl(f,p):!0}function zg(e,t,s,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,i),t.state!==e&&pd.enqueueReplaceState(t,t.state,null)}function Ms(e,t){var s=t;if("ref"in t){s={};for(var i in t)i!=="ref"&&(s[i]=t[i])}if(e=e.defaultProps){s===t&&(s=v({},s));for(var f in e)s[f]===void 0&&(s[f]=e[f])}return s}function Kg(e){Xi(e)}function Bg(e){console.error(e)}function Pg(e){Xi(e)}function yo(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Lg(e,t,s){try{var i=e.onCaughtError;i(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function md(e,t,s){return s=Pa(s),s.tag=3,s.payload={element:null},s.callback=function(){yo(e,t)},s}function Ug(e){return e=Pa(e),e.tag=3,e}function Hg(e,t,s,i){var f=s.type.getDerivedStateFromError;if(typeof f=="function"){var p=i.value;e.payload=function(){return f(p)},e.callback=function(){Lg(t,s,i)}}var y=s.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){Lg(t,s,i),typeof f!="function"&&(Ia===null?Ia=new Set([this]):Ia.add(this));var N=i.stack;this.componentDidCatch(i.value,{componentStack:N!==null?N:""})})}function LS(e,t,s,i,f){if(s.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=s.alternate,t!==null&&Er(t,s,f,!0),s=ln.current,s!==null){switch(s.tag){case 31:case 13:return En===null?Do():s.alternate===null&&mt===0&&(mt=3),s.flags&=-257,s.flags|=65536,s.lanes=f,i===ro?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([i]):t.add(i),Ld(e,i,f)),!1;case 22:return s.flags|=65536,i===ro?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([i]):s.add(i)),Ld(e,i,f)),!1}throw Error(l(435,s.tag))}return Ld(e,i,f),Do(),!1}if(Ve)return t=ln.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=f,i!==Ru&&(e=Error(l(422),{cause:i}),_l(wn(e,s)))):(i!==Ru&&(t=Error(l(423),{cause:i}),_l(wn(t,s))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,i=wn(i,s),f=md(e.stateNode,i,f),Qu(e,f),mt!==4&&(mt=2)),!1;var p=Error(l(520),{cause:i});if(p=wn(p,s),$l===null?$l=[p]:$l.push(p),mt!==4&&(mt=2),t===null)return!0;
vendor: 13,697 bytes, line 48
48i=wn(i,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=f&-f,s.lanes|=e,e=md(s.stateNode,i,e),Qu(s,e),!1;case 1:if(t=s.type,p=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ia===null||!Ia.has(p))))return s.flags|=65536,f&=-f,s.lanes|=f,f=Ug(f),Hg(f,e,s,i),Qu(s,f),!1}s=s.return}while(s!==null);return!1}var hd=Error(l(461)),St=!1;function Kt(e,t,s,i){t.child=e===null?Ih(t,null,s,i):_s(t,e.child,s,i)}function qg(e,t,s,i,f){s=s.render;var p=t.ref;if("ref"in i){var y={};for(var N in i)N!=="ref"&&(y[N]=i[N])}else y=i;return As(t),i=Zu(e,t,s,y,p,f),N=$u(),e!==null&&!St?(Wu(e,t,f),pa(e,t,f)):(Ve&&N&&Du(t),t.flags|=1,Kt(e,t,i,f),t.child)}function Vg(e,t,s,i,f){if(e===null){var p=s.type;return typeof p=="function"&&!Au(p)&&p.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=p,Qg(e,t,p,i,f)):(e=Ji(s.type,null,i,t,t.mode,f),e.ref=t.ref,e.return=t,t.child=e)}if(p=e.child,!jd(e,f)){var y=p.memoizedProps;if(s=s.compare,s=s!==null?s:Tl,s(y,i)&&e.ref===t.ref)return pa(e,t,f)}return t.flags|=1,e=ia(p,i),e.ref=t.ref,e.return=t,t.child=e}function Qg(e,t,s,i,f){if(e!==null){var p=e.memoizedProps;if(Tl(p,i)&&e.ref===t.ref)if(St=!1,t.pendingProps=i=p,jd(e,f))(e.flags&131072)!==0&&(St=!0);else return t.lanes=e.lanes,pa(e,t,f)}return gd(e,t,s,i,f)}function Ig(e,t,s,i){var f=i.children,p=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(p=p!==null?p.baseLanes|s:s,e!==null){for(i=t.child=e.child,f=0;i!==null;)f=f|i.lanes|i.childLanes,i=i.sibling;i=f&~p}else i=0,t.child=null;return Fg(e,t,p,s,i)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ao(t,p!==null?p.cachePool:null),p!==null?Yh(t,p):Fu(),Xh(t);else return i=t.lanes=536870912,Fg(e,t,p!==null?p.baseLanes|s:s,s,i)}else p!==null?(ao(t,p.cachePool),Yh(t,p),Ha(),t.memoizedState=null):(e!==null&&ao(t,null),Fu(),Ha());return Kt(e,t,f,s),t.child}function Ql(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Fg(e,t,s,i,f){var p=Uu();return p=p===null?null:{parent:bt._currentValue,pool:p},t.memoizedState={baseLanes:s,cachePool:p},e!==null&&ao(t,null),Fu(),Xh(t),e!==null&&Er(e,t,i,!0),t.childLanes=f,null}function bo(e,t){return t=So({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Gg(e,t,s){return _s(t,e.child,null,s),e=bo(t,t.pendingProps),e.flags|=2,on(t),t.memoizedState=null,e}function US(e,t,s){var i=t.pendingProps,f=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ve){if(i.mode==="hidden")return e=bo(t,i),t.lanes=536870912,Ql(null,e);if(Yu(t),(e=it)?(e=rx(e,Nn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:Vn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},s=Oh(e),s.return=t,t.child=s,Mt=t,it=null)):e=null,e===null)throw za(t);return t.lanes=536870912,null}return bo(t,i)}var p=e.memoizedState;if(p!==null){var y=p.dehydrated;if(Yu(t),f)if(t.flags&256)t.flags&=-257,t=Gg(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(l(558));else if(St||Er(e,t,s,!1),f=(s&e.childLanes)!==0,St||f){if(i=rt,i!==null&&(y=Yt(i,s),y!==0&&y!==p.retryLane))throw p.retryLane=y,Ns(e,y),tn(i,e,y),hd;Do(),t=Gg(e,t,s)}else e=p.treeContext,it=Cn(y.nextSibling),Mt=t,Ve=!0,Ma=null,Nn=!1,e!==null&&Rh(t,e),t=bo(t,i),t.flags|=4096;return t}return e=ia(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function wo(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(l(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function gd(e,t,s,i,f){return As(t),s=Zu(e,t,s,i,void 0,f),i=$u(),e!==null&&!St?(Wu(e,t,f),pa(e,t,f)):(Ve&&i&&Du(t),t.flags|=1,Kt(e,t,s,f),t.child)}function Yg(e,t,s,i,f,p){return As(t),t.updateQueue=null,s=$h(t,i,s,f),Zh(e),i=$u(),e!==null&&!St?(Wu(e,t,p),pa(e,t,p)):(Ve&&i&&Du(t),t.flags|=1,Kt(e,t,s,p),t.child)}function Xg(e,t,s,i,f){if(As(t),t.stateNode===null){var p=wr,y=s.contextType;typeof y=="object"&&y!==null&&(p=zt(y)),p=new s(i,p),t.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=pd,t.stateNode=p,p._reactInternals=t,p=t.stateNode,p.props=i,p.state=t.memoizedState,p.refs={},qu(t),y=s.contextType,p.context=typeof y=="object"&&y!==null?zt(y):wr,p.state=t.memoizedState,y=s.getDerivedStateFromProps,typeof y=="function"&&(fd(t,s,y,i),p.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&pd.enqueueReplaceState(p,p.state,null),Ll(t,i,p,f),Pl(),p.state=t.memoizedState),typeof p.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){p=t.stateNode;var N=t.memoizedProps,z=Ms(s,N);p.props=z;var G=p.context,ne=s.contextType;y=wr,typeof ne=="object"&&ne!==null&&(y=zt(ne));var se=s.getDerivedStateFromProps;ne=typeof se=="function"||typeof p.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,ne||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(N||G!==y)&&zg(t,p,i,y),Ba=!1;var X=t.memoizedState;p.state=X,Ll(t,i,p,f),Pl(),G=t.memoizedState,N||X!==G||Ba?(typeof se=="function"&&(fd(t,s,se,i),G=t.memoizedState),(z=Ba||Mg(t,s,z,i,X,G,y))?(ne||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(t.flags|=4194308)):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=G),p.props=i,p.state=G,p.context=y,i=z):(typeof p.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{p=t.stateNode,Vu(e,t),y=t.memoizedProps,ne=Ms(s,y),p.props=ne,se=t.pendingProps,X=p.context,G=s.contextType,z=wr,typeof G=="object"&&G!==null&&(z=zt(G)),N=s.getDerivedStateFromProps,(G=typeof N=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==se||X!==z)&&zg(t,p,i,z),Ba=!1,X=t.memoizedState,p.state=X,Ll(t,i,p,f),Pl();var ee=t.memoizedState;y!==se||X!==ee||Ba||e!==null&&e.dependencies!==null&&to(e.dependencies)?(typeof N=="function"&&(fd(t,s,N,i),ee=t.memoizedState),(ne=Ba||Mg(t,s,ne,i,X,ee,z)||e!==null&&e.dependencies!==null&&to(e.dependencies))?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(i,ee,z),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(i,ee,z)),typeof p.componentDidUpdate=="function"&&(t.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=ee),p.props=i,p.state=ee,p.context=z,i=ne):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&X===e.memoizedState||(t.flags|=1024),i=!1)}return p=i,wo(e,t),i=(t.flags&128)!==0,p||i?(p=t.stateNode,s=i&&typeof s.getDerivedStateFromError!="function"?null:p.render(),t.flags|=1,e!==null&&i?(t.child=_s(t,e.child,null,f),t.child=_s(t,null,s,f)):Kt(e,t,s,f),t.memoizedState=p.state,e=t.child):e=pa(e,t,f),e}function Zg(e,t,s,i){return Cs(),t.flags|=256,Kt(e,t,s,i),t.child}var vd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xd(e){return{baseLanes:e,cachePool:Lh()}}function yd(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=un),e}function $g(e,t,s){var i=t.pendingProps,f=!1,p=(t.flags&128)!==0,y;if((y=p)||(y=e!==null&&e.memoizedState===null?!1:(gt.current&2)!==0),y&&(f=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ve){if(f?Ua(t):Ha(),(e=it)?(e=rx(e,Nn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ra!==null?{id:Vn,overflow:Qn}:null,retryLane:536870912,hydrationErrors:null},s=Oh(e),s.return=t,t.child=s,Mt=t,it=null)):e=null,e===null)throw za(t);return tf(e)?t.lanes=32:t.lanes=536870912,null}var N=i.children;return i=i.fallback,f?(Ha(),f=t.mode,N=So({mode:"hidden",children:N},f),i=Es(i,f,s,null),N.return=t,i.return=t,N.sibling=i,t.child=N,i=t.child,i.memoizedState=xd(s),i.childLanes=yd(e,y,s),t.memoizedState=vd,Ql(null,i)):(Ua(t),bd(t,N))}var z=e.memoizedState;if(z!==null&&(N=z.dehydrated,N!==null)){if(p)t.flags&256?(Ua(t),t.flags&=-257,t=wd(e,t,s)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),N=i.fallback,f=t.mode,i=So({mode:"visible",children:i.children},f),N=Es(N,f,s,null),N.flags|=2,i.return=t,N.return=t,i.sibling=N,t.child=i,_s(t,e.child,null,s),i=t.child,i.memoizedState=xd(s),i.childLanes=yd(e,y,s),t.memoizedState=vd,t=Ql(null,i));else if(Ua(t),tf(N)){if(y=N.nextSibling&&N.nextSibling.dataset,y)var G=y.dgst;y=G,i=Error(l(419)),i.stack="",i.digest=y,_l({value:i,source:null,stack:null}),t=wd(e,t,s)}else if(St||Er(e,t,s,!1),y=(s&e.childLanes)!==0,St||y){if(y=rt,y!==null&&(i=Yt(y,s),i!==0&&i!==z.retryLane))throw z.retryLane=i,Ns(e,i),tn(y,e,i),hd;ef(N)||Do(),t=wd(e,t,s)}else ef(N)?(t.flags|=192,t.child=e.child,t=null):(e=z.treeContext,it=Cn(N.nextSibling),Mt=t,Ve=!0,Ma=null,Nn=!1,e!==null&&Rh(t,e),t=bd(t,i.children),t.flags|=4096);return t}return f?(Ha(),N=i.fallback,f=t.mode,z=e.child,G=z.sibling,i=ia(z,{mode:"hidden",children:i.children}),i.subtreeFlags=z.subtreeFlags&65011712,G!==null?N=ia(G,N):(N=Es(N,f,s,null),N.flags|=2),N.return=t,i.return=t,i.sibling=N,t.child=i,Ql(null,i),i=t.child,N=e.child.memoizedState,N===null?N=xd(s):(f=N.cachePool,f!==null?(z=bt._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=Lh(),N={baseLanes:N.baseLanes|s,cachePool:f}),i.memoizedState=N,i.childLanes=yd(e,y,s),t.memoizedState=vd,Ql(e.child,i)):(Ua(t),s=e.child,e=s.sibling,s=ia(s,{mode:"visible",children:i.children}),s.return=t,s.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=s,t.memoizedState=null,s)}function bd(e,t){return t=So({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function So(e,t){return e=rn(22,e,null,t),e.lanes=0,e}function wd(e,t,s){return _s(t,e.child,null,s),e=bd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Wg(e,t,s){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Ku(e.return,t,s)}function Sd(e,t,s,i,f,p){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:s,tailMode:f,treeForkCount:p}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=i,y.tail=s,y.tailMode=f,y.treeForkCount=p)}function Jg(e,t,s){var i=t.pendingProps,f=i.revealOrder,p=i.tail;i=i.children;var y=gt.current,N=(y&2)!==0;if(N?(y=y&1|2,t.flags|=128):y&=1,H(gt,y),Kt(e,t,i,s),i=Ve?Dl:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Wg(e,s,t);else if(e.tag===19)Wg(e,s,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(s=t.child,f=null;s!==null;)e=s.alternate,e!==null&&co(e)===null&&(f=s),s=s.sibling;s=f,s===null?(f=t.child,t.child=null):(f=s.sibling,s.sibling=null),Sd(t,!1,f,s,p,i);break;case"backwards":case"unstable_legacy-backwards":for(s=null,f=t.child,t.child=null;f!==null;){if(e=f.alternate,e!==null&&co(e)===null){t.child=f;break}e=f.sibling,f.sibling=s,s=f,f=e}Sd(t,!0,s,null,p,i);break;case"together":Sd(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function pa(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),Qa|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(Er(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(l(153));if(t.child!==null){for(e=t.child,s=ia(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=ia(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function jd(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&to(e)))}function HS(e,t,s){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Ka(t,bt,e.memoizedState.cache),Cs();break;case 27:case 5:Ee(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Ka(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yu(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Ua(t),t.flags|=128,null):(s&t.child.childLanes)!==0?$g(e,t,s):(Ua(t),e=pa(e,t,s),e!==null?e.sibling:null);Ua(t);break;case 19:var f=(e.flags&128)!==0;if(i=(s&t.childLanes)!==0,i||(Er(e,t,s,!1),i=(s&t.childLanes)!==0),f){if(i)return Jg(e,t,s);t.flags|=128}if(f=t.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),H(gt,gt.current),i)break;return null;case 22:return t.lanes=0,Ig(e,t,s,t.pendingProps);case 24:Ka(t,bt,e.memoizedState.cache)}return pa(e,t,s)}
vendor: 3,880 bytes, line 48
48function ev(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)St=!0;else{if(!jd(e,s)&&(t.flags&128)===0)return St=!1,HS(e,t,s);St=(e.flags&131072)!==0}else St=!1,Ve&&(t.flags&1048576)!==0&&_h(t,Dl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Os(t.elementType),t.type=e,typeof e=="function")Au(e)?(i=Ms(e,i),t.tag=1,t=Xg(null,t,e,i,s)):(t.tag=0,t=gd(null,t,e,i,s));else{if(e!=null){var f=e.$$typeof;if(f===B){t.tag=11,t=qg(null,t,e,i,s);break e}else if(f===A){t.tag=14,t=Vg(null,t,e,i,s);break e}}throw t=te(e)||e,Error(l(306,t,""))}}return t;case 0:return gd(e,t,t.type,t.pendingProps,s);case 1:return i=t.type,f=Ms(i,t.pendingProps),Xg(e,t,i,f,s);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(l(387));i=t.pendingProps;var p=t.memoizedState;f=p.element,Vu(e,t),Ll(t,i,null,s);var y=t.memoizedState;if(i=y.cache,Ka(t,bt,i),i!==p.cache&&Bu(t,[bt],s,!0),Pl(),i=y.element,p.isDehydrated)if(p={element:i,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=p,t.memoizedState=p,t.flags&256){t=Zg(e,t,i,s);break e}else if(i!==f){f=wn(Error(l(424)),t),_l(f),t=Zg(e,t,i,s);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(it=Cn(e.firstChild),Mt=t,Ve=!0,Ma=null,Nn=!0,s=Ih(t,null,i,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Cs(),i===f){t=pa(e,t,s);break e}Kt(e,t,i,s)}t=t.child}return t;case 26:return wo(e,t),e===null?(s=dx(t.type,null,t.pendingProps,null))?t.memoizedState=s:Ve||(s=t.type,e=t.pendingProps,i=Po(fe.current).createElement(s),i[Rt]=t,i[Xt]=e,Bt(i,s,e),kt(i),t.stateNode=i):t.memoizedState=dx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ee(t),e===null&&Ve&&(i=t.stateNode=ox(t.type,t.pendingProps,fe.current),Mt=t,Nn=!0,f=it,Xa(t.type)?(nf=f,it=Cn(i.firstChild)):it=f),Kt(e,t,t.pendingProps.children,s),wo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ve&&((f=i=it)&&(i=vj(i,t.type,t.pendingProps,Nn),i!==null?(t.stateNode=i,Mt=t,it=Cn(i.firstChild),Nn=!1,f=!0):f=!1),f||za(t)),Ee(t),f=t.type,p=t.pendingProps,y=e!==null?e.memoizedProps:null,i=p.children,$d(f,p)?i=null:y!==null&&$d(f,y)&&(t.flags|=32),t.memoizedState!==null&&(f=Zu(e,t,_S,null,null,s),ri._currentValue=f),wo(e,t),Kt(e,t,i,s),t.child;case 6:return e===null&&Ve&&((e=s=it)&&(s=xj(s,t.pendingProps,Nn),s!==null?(t.stateNode=s,Mt=t,it=null,e=!0):e=!1),e||za(t)),null;case 13:return $g(e,t,s);case 4:return le(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=_s(t,null,i,s):Kt(e,t,i,s),t.child;case 11:return qg(e,t,t.type,t.pendingProps,s);case 7:return Kt(e,t,t.pendingProps,s),t.child;case 8:return Kt(e,t,t.pendingProps.children,s),t.child;case 12:return Kt(e,t,t.pendingProps.children,s),t.child;case 10:return i=t.pendingProps,Ka(t,t.type,i.value),Kt(e,t,i.children,s),t.child;case 9:return f=t.type._context,i=t.pendingProps.children,As(t),f=zt(f),i=i(f),t.flags|=1,Kt(e,t,i,s),t.child;case 14:return Vg(e,t,t.type,t.pendingProps,s);case 15:return Qg(e,t,t.type,t.pendingProps,s);case 19:return Jg(e,t,s);case 31:return US(e,t,s);case 22:return Ig(e,t,s,t.pendingProps);case 24:return As(t),i=zt(bt),e===null?(f=Uu(),f===null&&(f=rt,p=Pu(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=s),f=p),t.memoizedState={parent:i,cache:f},qu(t),Ka(t,bt,f)):((e.lanes&s)!==0&&(Vu(e,t),Ll(t,null,null,s),Pl()),f=e.memoizedState,p=t.memoizedState,f.parent!==i?(f={parent:i,cache:i},t.memoizedState=f,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=f),Ka(t,bt,i)):(i=p.cache,Ka(t,bt,i),i!==f.cache&&Bu(t,[bt],s,!0))),Kt(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(l(156,t.tag))}function ma(e){e.flags|=4}function Nd(e,t,s,i,f){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;
vendor: 8,815 bytes, line 48
48else if(kv())e.flags|=8192;else throw Ds=ro,Hu}else e.flags&=-16777217}function tv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!gx(t))if(kv())e.flags|=8192;else throw Ds=ro,Hu}function jo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Pt():536870912,e.lanes|=t,Br|=t)}function Il(e,t){if(!Ve)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function ot(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,i=0;if(t)for(var f=e.child;f!==null;)s|=f.lanes|f.childLanes,i|=f.subtreeFlags&65011712,i|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)s|=f.lanes|f.childLanes,i|=f.subtreeFlags,i|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=i,e.childLanes=s,t}function qS(e,t,s){var i=t.pendingProps;switch(_u(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(t),null;case 1:return ot(t),null;case 3:return s=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),ua(bt),pe(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Nr(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Mu())),ot(t),null;case 26:var f=t.type,p=t.memoizedState;return e===null?(ma(t),p!==null?(ot(t),tv(t,p)):(ot(t),Nd(t,f,null,i,s))):p?p!==e.memoizedState?(ma(t),ot(t),tv(t,p)):(ot(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&ma(t),ot(t),Nd(t,f,e,i,s)),null;case 27:if(Ne(t),s=fe.current,f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ma(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return ot(t),null}e=Z.current,Nr(t)?Mh(t):(e=ox(f,i,s),t.stateNode=e,ma(t))}return ot(t),null;case 5:if(Ne(t),f=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&ma(t);else{if(!i){if(t.stateNode===null)throw Error(l(166));return ot(t),null}if(p=Z.current,Nr(t))Mh(t);else{var y=Po(fe.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof i.is=="string"?y.createElement("select",{is:i.is}):y.createElement("select"),i.multiple?p.multiple=!0:i.size&&(p.size=i.size);break;default:p=typeof i.is=="string"?y.createElement(f,{is:i.is}):y.createElement(f)}}p[Rt]=t,p[Xt]=i;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=p;e:switch(Bt(p,f,i),f){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&ma(t)}}return ot(t),Nd(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&ma(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(l(166));if(e=fe.current,Nr(t)){if(e=t.stateNode,s=t.memoizedProps,i=null,f=Mt,f!==null)switch(f.tag){case 27:case 5:i=f.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===s||i!==null&&i.suppressHydrationWarning===!0||$v(e.nodeValue,s)),e||za(t,!0)}else e=Po(e).createTextNode(i),e[Rt]=t,t.stateNode=e}return ot(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(i=Nr(t),s!==null){if(e===null){if(!i)throw Error(l(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(557));e[Rt]=t}else Cs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),e=!1}else s=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(on(t),t):(on(t),null);if((t.flags&128)!==0)throw Error(l(558))}return ot(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=Nr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!f)throw Error(l(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(l(317));f[Rt]=t}else Cs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ot(t),f=!1}else f=Mu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return t.flags&256?(on(t),t):(on(t),null)}return on(t),(t.flags&128)!==0?(t.lanes=s,t):(s=i!==null,e=e!==null&&e.memoizedState!==null,s&&(i=t.child,f=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(f=i.alternate.memoizedState.cachePool.pool),p=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(p=i.memoizedState.cachePool.pool),p!==f&&(i.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),jo(t,t.updateQueue),ot(t),null);case 4:return pe(),e===null&&Fd(t.stateNode.containerInfo),ot(t),null;case 10:return ua(t.type),ot(t),null;case 19:if(Q(gt),i=t.memoizedState,i===null)return ot(t),null;if(f=(t.flags&128)!==0,p=i.rendering,p===null)if(f)Il(i,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(p=co(e),p!==null){for(t.flags|=128,Il(i,!1),e=p.updateQueue,t.updateQueue=e,jo(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Th(s,e),s=s.sibling;return H(gt,gt.current&1|2),Ve&&oa(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&_t()>Ao&&(t.flags|=128,f=!0,Il(i,!1),t.lanes=4194304)}else{if(!f)if(e=co(p),e!==null){if(t.flags|=128,f=!0,e=e.updateQueue,t.updateQueue=e,jo(t,e),Il(i,!0),i.tail===null&&i.tailMode==="hidden"&&!p.alternate&&!Ve)return ot(t),null}else 2*_t()-i.renderingStartTime>Ao&&s!==536870912&&(t.flags|=128,f=!0,Il(i,!1),t.lanes=4194304);i.isBackwards?(p.sibling=t.child,t.child=p):(e=i.last,e!==null?e.sibling=p:t.child=p,i.last=p)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=_t(),e.sibling=null,s=gt.current,H(gt,f?s&1|2:s&1),Ve&&oa(t,i.treeForkCount),e):(ot(t),null);case 22:case 23:return on(t),Gu(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(s&536870912)!==0&&(t.flags&128)===0&&(ot(t),t.subtreeFlags&6&&(t.flags|=8192)):ot(t),s=t.updateQueue,s!==null&&jo(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==s&&(t.flags|=2048),e!==null&&Q(Ts),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ua(bt),ot(t),null;case 25:return null;case 30:return null}throw Error(l(156,t.tag))}function VS(e,t){switch(_u(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ua(bt),pe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ne(t),null;case 31:if(t.memoizedState!==null){if(on(t),t.alternate===null)throw Error(l(340));Cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(on(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(l(340));Cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Q(gt),null;case 4:return pe(),null;case 10:return ua(t.type),null;case 22:case 23:return on(t),Gu(),e!==null&&Q(Ts),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ua(bt),null;case 25:return null;default:return null}}function nv(e,t){switch(_u(t),t.tag){case 3:ua(bt),pe();break;case 26:case 27:case 5:Ne(t);break;case 4:pe();break;case 31:t.memoizedState!==null&&on(t);break;case 13:on(t);break;case 19:Q(gt);break;case 10:ua(t.type);break;case 22:case 23:on(t),Gu(),e!==null&&Q(Ts);break;case 24:ua(bt)}}function Fl(e,t){try{var s=t.updateQueue,i=s!==null?s.lastEffect:null;if(i!==null){var f=i.next;s=f;do{if((s.tag&e)===e){i=void 0;var p=s.create,y=s.inst;i=p(),y.destroy=i}s=s.next}while(s!==f)}}catch(N){et(t,t.return,N)}}function qa(e,t,s){try{var i=t.updateQueue,f=i!==null?i.lastEffect:null;if(f!==null){var p=f.next;i=p;do{if((i.tag&e)===e){var y=i.inst,N=y.destroy;if(N!==void 0){y.destroy=void 0,f=t;var z=s,G=N;try{G()}catch(ne){et(f,z,ne)}}}i=i.next}while(i!==p)}}catch(ne){et(t,t.return,ne)}}function av(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{Gh(t,s)}catch(i){et(e,e.return,i)}}}function sv(e,t,s){s.props=Ms(e.type,e.memoizedProps),s.state=e.memoizedState;
vendor: 16,301 bytes, line 48
48try{s.componentWillUnmount()}catch(i){et(e,t,i)}}function Gl(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof s=="function"?e.refCleanup=s(i):s.current=i}}catch(f){et(e,t,f)}}function In(e,t){var s=e.ref,i=e.refCleanup;if(s!==null)if(typeof i=="function")try{i()}catch(f){et(e,t,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(f){et(e,t,f)}else s.current=null}function rv(e){var t=e.type,s=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&i.focus();break e;case"img":s.src?i.src=s.src:s.srcSet&&(i.srcset=s.srcSet)}}catch(f){et(e,e.return,f)}}function Ed(e,t,s){try{var i=e.stateNode;dj(i,e.type,s,t),i[Xt]=t}catch(f){et(e,e.return,f)}}function lv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Cd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||lv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function kd(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=ra));else if(i!==4&&(i===27&&Xa(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(kd(e,t,s),e=e.sibling;e!==null;)kd(e,t,s),e=e.sibling}function No(e,t,s){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(i!==4&&(i===27&&Xa(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(No(e,t,s),e=e.sibling;e!==null;)No(e,t,s),e=e.sibling}function iv(e){var t=e.stateNode,s=e.memoizedProps;try{for(var i=e.type,f=t.attributes;f.length;)t.removeAttributeNode(f[0]);Bt(t,i,s),t[Rt]=e,t[Xt]=s}catch(p){et(e,e.return,p)}}var ha=!1,jt=!1,Ad=!1,ov=typeof WeakSet=="function"?WeakSet:Set,At=null;function QS(e,t){if(e=e.containerInfo,Xd=Io,e=bh(e),wu(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var i=s.getSelection&&s.getSelection();if(i&&i.rangeCount!==0){s=i.anchorNode;var f=i.anchorOffset,p=i.focusNode;i=i.focusOffset;try{s.nodeType,p.nodeType}catch{s=null;break e}var y=0,N=-1,z=-1,G=0,ne=0,se=e,X=null;t:for(;;){for(var ee;se!==s||f!==0&&se.nodeType!==3||(N=y+f),se!==p||i!==0&&se.nodeType!==3||(z=y+i),se.nodeType===3&&(y+=se.nodeValue.length),(ee=se.firstChild)!==null;)X=se,se=ee;for(;;){if(se===e)break t;if(X===s&&++G===f&&(N=y),X===p&&++ne===i&&(z=y),(ee=se.nextSibling)!==null)break;se=X,X=se.parentNode}se=ee}s=N===-1||z===-1?null:{start:N,end:z}}else s=null}s=s||{start:0,end:0}}else s=null;for(Zd={focusedElem:e,selectionRange:s},Io=!1,At=t;At!==null;)if(t=At,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,At=e;else for(;At!==null;){switch(t=At,p=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(s=0;s<e.length;s++)f=e[s],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&p!==null){e=void 0,s=t,f=p.memoizedProps,p=p.memoizedState,i=s.stateNode;try{var ve=Ms(s.type,f);e=i.getSnapshotBeforeUpdate(ve,p),i.__reactInternalSnapshotBeforeUpdate=e}catch(Ae){et(s,s.return,Ae)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)Jd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jd(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=t.sibling,e!==null){e.return=t.return,At=e;break}At=t.return}}function cv(e,t,s){var i=s.flags;switch(s.tag){case 0:case 11:case 15:va(e,s),i&4&&Fl(5,s);break;case 1:if(va(e,s),i&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(y){et(s,s.return,y)}else{var f=Ms(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(f,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){et(s,s.return,y)}}i&64&&av(s),i&512&&Gl(s,s.return);break;case 3:if(va(e,s),i&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{Gh(e,t)}catch(y){et(s,s.return,y)}}break;case 27:t===null&&i&4&&iv(s);case 26:case 5:va(e,s),t===null&&i&4&&rv(s),i&512&&Gl(s,s.return);break;case 12:va(e,s);break;case 31:va(e,s),i&4&&fv(e,s);break;case 13:va(e,s),i&4&&pv(e,s),i&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=JS.bind(null,s),yj(e,s))));break;case 22:if(i=s.memoizedState!==null||ha,!i){t=t!==null&&t.memoizedState!==null||jt,f=ha;var p=jt;ha=i,(jt=t)&&!p?xa(e,s,(s.subtreeFlags&8772)!==0):va(e,s),ha=f,jt=p}break;case 30:break;default:va(e,s)}}function uv(e){var t=e.alternate;t!==null&&(e.alternate=null,uv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&su(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ut=null,$t=!1;function ga(e,t,s){for(s=s.child;s!==null;)dv(e,t,s),s=s.sibling}function dv(e,t,s){if(ge&&typeof ge.onCommitFiberUnmount=="function")try{ge.onCommitFiberUnmount(ie,s)}catch{}switch(s.tag){case 26:jt||In(s,t),ga(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:jt||In(s,t);var i=ut,f=$t;Xa(s.type)&&(ut=s.stateNode,$t=!1),ga(e,t,s),ni(s.stateNode),ut=i,$t=f;break;case 5:jt||In(s,t);case 6:if(i=ut,f=$t,ut=null,ga(e,t,s),ut=i,$t=f,ut!==null)if($t)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(s.stateNode)}catch(p){et(s,t,p)}else try{ut.removeChild(s.stateNode)}catch(p){et(s,t,p)}break;case 18:ut!==null&&($t?(e=ut,ax(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),Ir(e)):ax(ut,s.stateNode));break;case 4:i=ut,f=$t,ut=s.stateNode.containerInfo,$t=!0,ga(e,t,s),ut=i,$t=f;break;case 0:case 11:case 14:case 15:qa(2,s,t),jt||qa(4,s,t),ga(e,t,s);break;case 1:jt||(In(s,t),i=s.stateNode,typeof i.componentWillUnmount=="function"&&sv(s,t,i)),ga(e,t,s);break;case 21:ga(e,t,s);break;case 22:jt=(i=jt)||s.memoizedState!==null,ga(e,t,s),jt=i;break;default:ga(e,t,s)}}function fv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ir(e)}catch(s){et(t,t.return,s)}}}function pv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ir(e)}catch(s){et(t,t.return,s)}}function IS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ov),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ov),t;default:throw Error(l(435,e.tag))}}function Eo(e,t){var s=IS(e);t.forEach(function(i){if(!s.has(i)){s.add(i);var f=ej.bind(null,e,i);i.then(f,f)}})}function Wt(e,t){var s=t.deletions;if(s!==null)for(var i=0;i<s.length;i++){var f=s[i],p=e,y=t,N=y;e:for(;N!==null;){switch(N.tag){case 27:if(Xa(N.type)){ut=N.stateNode,$t=!1;break e}break;case 5:ut=N.stateNode,$t=!1;break e;case 3:case 4:ut=N.stateNode.containerInfo,$t=!0;break e}N=N.return}if(ut===null)throw Error(l(160));dv(p,y,f),ut=null,$t=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)mv(t,e),t=t.sibling}var _n=null;function mv(e,t){var s=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Wt(t,e),Jt(e),i&4&&(qa(3,e,e.return),Fl(3,e),qa(5,e,e.return));break;case 1:Wt(t,e),Jt(e),i&512&&(jt||s===null||In(s,s.return)),i&64&&ha&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?i:s.concat(i))));break;case 26:var f=_n;if(Wt(t,e),Jt(e),i&512&&(jt||s===null||In(s,s.return)),i&4){var p=s!==null?s.memoizedState:null;if(i=e.memoizedState,s===null)if(i===null)if(e.stateNode===null){e:{i=e.type,s=e.memoizedProps,f=f.ownerDocument||f;t:switch(i){case"title":p=f.getElementsByTagName("title")[0],(!p||p[bl]||p[Rt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(i),f.head.insertBefore(p,f.querySelector("head > title"))),Bt(p,i,s),p[Rt]=e,kt(p),i=p;break e;case"link":var y=mx("link","href",f).get(i+(s.href||""));if(y){for(var N=0;N<y.length;N++)if(p=y[N],p.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&p.getAttribute("rel")===(s.rel==null?null:s.rel)&&p.getAttribute("title")===(s.title==null?null:s.title)&&p.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){y.splice(N,1);break t}}p=f.createElement(i),Bt(p,i,s),f.head.appendChild(p);break;case"meta":if(y=mx("meta","content",f).get(i+(s.content||""))){for(N=0;N<y.length;N++)if(p=y[N],p.getAttribute("content")===(s.content==null?null:""+s.content)&&p.getAttribute("name")===(s.name==null?null:s.name)&&p.getAttribute("property")===(s.property==null?null:s.property)&&p.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&p.getAttribute("charset")===(s.charSet==null?null:s.charSet)){y.splice(N,1);break t}}p=f.createElement(i),Bt(p,i,s),f.head.appendChild(p);break;default:throw Error(l(468,i))}p[Rt]=e,kt(p),i=p}e.stateNode=i}else hx(f,e.type,e.stateNode);else e.stateNode=px(f,i,e.memoizedProps);else p!==i?(p===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):p.count--,i===null?hx(f,e.type,e.stateNode):px(f,i,e.memoizedProps)):i===null&&e.stateNode!==null&&Ed(e,e.memoizedProps,s.memoizedProps)}break;case 27:Wt(t,e),Jt(e),i&512&&(jt||s===null||In(s,s.return)),s!==null&&i&4&&Ed(e,e.memoizedProps,s.memoizedProps);break;case 5:if(Wt(t,e),Jt(e),i&512&&(jt||s===null||In(s,s.return)),e.flags&32){f=e.stateNode;try{mr(f,"")}catch(ve){et(e,e.return,ve)}}i&4&&e.stateNode!=null&&(f=e.memoizedProps,Ed(e,f,s!==null?s.memoizedProps:f)),i&1024&&(Ad=!0);break;case 6:if(Wt(t,e),Jt(e),i&4){if(e.stateNode===null)throw Error(l(162));i=e.memoizedProps,s=e.stateNode;try{s.nodeValue=i}catch(ve){et(e,e.return,ve)}}break;case 3:if(Ho=null,f=_n,_n=Lo(t.containerInfo),Wt(t,e),_n=f,Jt(e),i&4&&s!==null&&s.memoizedState.isDehydrated)try{Ir(t.containerInfo)}catch(ve){et(e,e.return,ve)}Ad&&(Ad=!1,hv(e));break;case 4:i=_n,_n=Lo(e.stateNode.containerInfo),Wt(t,e),Jt(e),_n=i;break;case 12:Wt(t,e),Jt(e);break;case 31:Wt(t,e),Jt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eo(e,i)));break;case 13:Wt(t,e),Jt(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(ko=_t()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eo(e,i)));break;case 22:f=e.memoizedState!==null;var z=s!==null&&s.memoizedState!==null,G=ha,ne=jt;if(ha=G||f,jt=ne||z,Wt(t,e),jt=ne,ha=G,Jt(e),i&8192)e:for(t=e.stateNode,t._visibility=f?t._visibility&-2:t._visibility|1,f&&(s===null||z||ha||jt||zs(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){z=s=t;try{if(p=z.stateNode,f)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{N=z.stateNode;var se=z.memoizedProps.style,X=se!=null&&se.hasOwnProperty("display")?se.display:null;N.style.display=X==null||typeof X=="boolean"?"":(""+X).trim()}}catch(ve){et(z,z.return,ve)}}}else if(t.tag===6){if(s===null){z=t;try{z.stateNode.nodeValue=f?"":z.memoizedProps}catch(ve){et(z,z.return,ve)}}}else if(t.tag===18){if(s===null){z=t;try{var ee=z.stateNode;f?sx(ee,!0):sx(z.stateNode,!1)}catch(ve){et(z,z.return,ve)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(s=i.retryQueue,s!==null&&(i.retryQueue=null,Eo(e,s))));break;case 19:Wt(t,e),Jt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Eo(e,i)));break;case 30:break;case 21:break;default:Wt(t,e),Jt(e)}}function Jt(e){var t=e.flags;if(t&2){try{for(var s,i=e.return;i!==null;){if(lv(i)){s=i;break}i=i.return}if(s==null)throw Error(l(160));switch(s.tag){case 27:var f=s.stateNode,p=Cd(e);No(e,p,f);break;case 5:var y=s.stateNode;s.flags&32&&(mr(y,""),s.flags&=-33);var N=Cd(e);No(e,N,y);break;case 3:case 4:var z=s.stateNode.containerInfo,G=Cd(e);kd(e,G,z);break;default:throw Error(l(161))}}catch(ne){et(e,e.return,ne)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function va(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cv(e,t.alternate,t),t=t.sibling}function zs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qa(4,t,t.return),zs(t);break;case 1:In(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&sv(t,t.return,s),zs(t);break;case 27:ni(t.stateNode);case 26:case 5:In(t,t.return),zs(t);break;case 22:t.memoizedState===null&&zs(t);break;case 30:zs(t);break;default:zs(t)}e=e.sibling}}function xa(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,f=e,p=t,y=p.flags;switch(p.tag){case 0:case 11:case 15:xa(f,p,s),Fl(4,p);break;case 1:if(xa(f,p,s),i=p,f=i.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(G){et(i,i.return,G)}if(i=p,f=i.updateQueue,f!==null){var N=i.stateNode;try{var z=f.shared.hiddenCallbacks;if(z!==null)for(f.shared.hiddenCallbacks=null,f=0;f<z.length;f++)Fh(z[f],N)}catch(G){et(i,i.return,G)}}s&&y&64&&av(p),Gl(p,p.return);break;case 27:iv(p);case 26:case 5:xa(f,p,s),s&&i===null&&y&4&&rv(p),Gl(p,p.return);break;case 12:xa(f,p,s);break;case 31:xa(f,p,s),s&&y&4&&fv(f,p);break;case 13:xa(f,p,s),s&&y&4&&pv(f,p);break;case 22:p.memoizedState===null&&xa(f,p,s),Gl(p,p.return);break;case 30:break;default:xa(f,p,s)}t=t.sibling}}function Td(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Rl(s))}function Od(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Rl(e))}function Rn(e,t,s,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gv(e,t,s,i),t=t.sibling}function gv(e,t,s,i){var f=t.flags;switch(t.tag){case 0:case 11:case 15:Rn(e,t,s,i),f&2048&&Fl(9,t);break;case 1:Rn(e,t,s,i);break;case 3:Rn(e,t,s,i),f&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Rl(e)));break;case 12:if(f&2048){Rn(e,t,s,i),e=t.stateNode;try{var p=t.memoizedProps,y=p.id,N=p.onPostCommit;typeof N=="function"&&N(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){et(t,t.return,z)}}else Rn(e,t,s,i);break;case 31:Rn(e,t,s,i);break;case 13:Rn(e,t,s,i);break;case 23:break;case 22:p=t.stateNode,y=t.alternate,t.memoizedState!==null?p._visibility&2?Rn(e,t,s,i):Yl(e,t):p._visibility&2?Rn(e,t,s,i):(p._visibility|=2,Mr(e,t,s,i,(t.subtreeFlags&10256)!==0||!1)),f&2048&&Td(y,t);break;case 24:Rn(e,t,s,i),f&2048&&Od(t.alternate,t);break;default:Rn(e,t,s,i)}}function Mr(e,t,s,i,f){for(f=f&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var p=e,y=t,N=s,z=i,G=y.flags;switch(y.tag){case 0:case 11:case 15:Mr(p,y,N,z,f),Fl(8,y);break;case 23:break;case 22:var ne=y.stateNode;y.memoizedState!==null?ne._visibility&2?Mr(p,y,N,z,f):Yl(p,y):(ne._visibility|=2,Mr(p,y,N,z,f)),f&&G&2048&&Td(y.alternate,y);break;case 24:Mr(p,y,N,z,f),f&&G&2048&&Od(y.alternate,y);break;default:Mr(p,y,N,z,f)}t=t.sibling}}function Yl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,i=t,f=i.flags;switch(i.tag){case 22:Yl(s,i),f&2048&&Td(i.alternate,i);break;case 24:Yl(s,i),f&2048&&Od(i.alternate,i);break;default:Yl(s,i)}t=t.sibling}}var Xl=8192;function zr(e,t,s){if(e.subtreeFlags&Xl)for(e=e.child;e!==null;)vv(e,t,s),e=e.sibling}
vendor: 16,814 bytes, line 48
48function vv(e,t,s){switch(e.tag){case 26:zr(e,t,s),e.flags&Xl&&e.memoizedState!==null&&Dj(s,_n,e.memoizedState,e.memoizedProps);break;case 5:zr(e,t,s);break;case 3:case 4:var i=_n;_n=Lo(e.stateNode.containerInfo),zr(e,t,s),_n=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=Xl,Xl=16777216,zr(e,t,s),Xl=i):zr(e,t,s));break;default:zr(e,t,s)}}function xv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Zl(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];At=i,bv(i,e)}xv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yv(e),e=e.sibling}function yv(e){switch(e.tag){case 0:case 11:case 15:Zl(e),e.flags&2048&&qa(9,e,e.return);break;case 3:Zl(e);break;case 12:Zl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Co(e)):Zl(e);break;default:Zl(e)}}function Co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var i=t[s];At=i,bv(i,e)}xv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qa(8,t,t.return),Co(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,Co(t));break;default:Co(t)}e=e.sibling}}function bv(e,t){for(;At!==null;){var s=At;switch(s.tag){case 0:case 11:case 15:qa(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var i=s.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Rl(s.memoizedState.cache)}if(i=s.child,i!==null)i.return=s,At=i;else e:for(s=e;At!==null;){i=At;var f=i.sibling,p=i.return;if(uv(i),i===s){At=null;break e}if(f!==null){f.return=p,At=f;break e}At=p}}}var FS={getCacheForType:function(e){var t=zt(bt),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return zt(bt).controller.signal}},GS=typeof WeakMap=="function"?WeakMap:Map,Ze=0,rt=null,Le=null,He=0,Je=0,cn=null,Va=!1,Kr=!1,Dd=!1,ya=0,mt=0,Qa=0,Ks=0,_d=0,un=0,Br=0,$l=null,en=null,Rd=!1,ko=0,wv=0,Ao=1/0,To=null,Ia=null,Nt=0,Fa=null,Pr=null,ba=0,Md=0,zd=null,Sv=null,Wl=0,Kd=null;function dn(){return(Ze&2)!==0&&He!==0?He&-He:D.T!==null?qd():nu()}function jv(){if(un===0)if((He&536870912)===0||Ve){var e=lr;lr<<=1,(lr&3932160)===0&&(lr=262144),un=e}else un=536870912;return e=ln.current,e!==null&&(e.flags|=32),un}function tn(e,t,s){(e===rt&&(Je===2||Je===9)||e.cancelPendingCommit!==null)&&(Lr(e,0),Ga(e,He,un,!1)),dt(e,s),((Ze&2)===0||e!==rt)&&(e===rt&&((Ze&2)===0&&(Ks|=s),mt===4&&Ga(e,He,un,!1)),Fn(e))}function Nv(e,t,s){if((Ze&6)!==0)throw Error(l(327));var i=!s&&(t&127)===0&&(t&e.expiredLanes)===0||ct(e,t),f=i?ZS(e,t):Pd(e,t,!0),p=i;do{if(f===0){Kr&&!i&&Ga(e,t,0,!1);break}else{if(s=e.current.alternate,p&&!YS(s)){f=Pd(e,t,!1),p=!1;continue}if(f===2){if(p=t,e.errorRecoveryDisabledLanes&p)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var N=e;f=$l;var z=N.current.memoizedState.isDehydrated;if(z&&(Lr(N,y).flags|=256),y=Pd(N,y,!1),y!==2){if(Dd&&!z){N.errorRecoveryDisabledLanes|=p,Ks|=p,f=4;break e}p=en,en=f,p!==null&&(en===null?en=p:en.push.apply(en,p))}f=y}if(p=!1,f!==2)continue}}if(f===1){Lr(e,0),Ga(e,t,0,!0);break}e:{switch(i=e,p=f,p){case 0:case 1:throw Error(l(345));case 4:if((t&4194048)!==t)break;case 6:Ga(i,t,un,!Va);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(l(329))}if((t&62914560)===t&&(f=ko+300-_t(),10<f)){if(Ga(i,t,un,!Va),Oe(i,0,!0)!==0)break e;ba=t,i.timeoutHandle=tx(Ev.bind(null,i,s,en,To,Rd,t,un,Ks,Br,Va,p,"Throttled",-0,0),f);break e}Ev(i,s,en,To,Rd,t,un,Ks,Br,Va,p,null,-0,0)}}break}while(!0);Fn(e)}function Ev(e,t,s,i,f,p,y,N,z,G,ne,se,X,ee){if(e.timeoutHandle=-1,se=t.subtreeFlags,se&8192||(se&16785408)===16785408){se={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ra},vv(t,p,se);var ve=(p&62914560)===p?ko-_t():(p&4194048)===p?wv-_t():0;if(ve=_j(se,ve),ve!==null){ba=p,e.cancelPendingCommit=ve(Rv.bind(null,e,t,p,s,i,f,y,N,z,ne,se,null,X,ee)),Ga(e,p,y,!G);return}}Rv(e,t,p,s,i,f,y,N,z)}function YS(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var i=0;i<s.length;i++){var f=s[i],p=f.getSnapshot;f=f.value;try{if(!sn(p(),f))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ga(e,t,s,i){t&=~_d,t&=~Ks,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var f=t;0<f;){var p=31-Re(f),y=1<<p;i[p]=-1,f&=~y}s!==0&&ys(e,s,t)}function Oo(){return(Ze&6)===0?(Jl(0),!1):!0}function Bd(){if(Le!==null){if(Je===0)var e=Le.return;else e=Le,ca=ks=null,Ju(e),Tr=null,zl=0,e=Le;for(;e!==null;)nv(e.alternate,e),e=e.return;Le=null}}function Lr(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,mj(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),ba=0,Bd(),rt=e,Le=s=ia(e.current,null),He=t,Je=0,cn=null,Va=!1,Kr=ct(e,t),Dd=!1,Br=un=_d=Ks=Qa=mt=0,en=$l=null,Rd=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var f=31-Re(i),p=1<<f;t|=e[f],i&=~p}return ya=t,Zi(),s}function Cv(e,t){Me=null,D.H=Vl,t===Ar||t===so?(t=qh(),Je=3):t===Hu?(t=qh(),Je=4):Je=t===hd?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,cn=t,Le===null&&(mt=1,yo(e,wn(t,e.current)))}function kv(){var e=ln.current;return e===null?!0:(He&4194048)===He?En===null:(He&62914560)===He||(He&536870912)!==0?e===En:!1}function Av(){var e=D.H;return D.H=Vl,e===null?Vl:e}function Tv(){var e=D.A;return D.A=FS,e}function Do(){mt=4,Va||(He&4194048)!==He&&ln.current!==null||(Kr=!0),(Qa&134217727)===0&&(Ks&134217727)===0||rt===null||Ga(rt,He,un,!1)}function Pd(e,t,s){var i=Ze;Ze|=2;var f=Av(),p=Tv();(rt!==e||He!==t)&&(To=null,Lr(e,t)),t=!1;var y=mt;e:do try{if(Je!==0&&Le!==null){var N=Le,z=cn;switch(Je){case 8:Bd(),y=6;break e;case 3:case 2:case 9:case 6:ln.current===null&&(t=!0);var G=Je;if(Je=0,cn=null,Ur(e,N,z,G),s&&Kr){y=0;break e}break;default:G=Je,Je=0,cn=null,Ur(e,N,z,G)}}XS(),y=mt;break}catch(ne){Cv(e,ne)}while(!0);return t&&e.shellSuspendCounter++,ca=ks=null,Ze=i,D.H=f,D.A=p,Le===null&&(rt=null,He=0,Zi()),y}function XS(){for(;Le!==null;)Ov(Le)}function ZS(e,t){var s=Ze;Ze|=2;var i=Av(),f=Tv();rt!==e||He!==t?(To=null,Ao=_t()+500,Lr(e,t)):Kr=ct(e,t);e:do try{if(Je!==0&&Le!==null){t=Le;var p=cn;t:switch(Je){case 1:Je=0,cn=null,Ur(e,t,p,1);break;case 2:case 9:if(Uh(p)){Je=0,cn=null,Dv(t);break}t=function(){Je!==2&&Je!==9||rt!==e||(Je=7),Fn(e)},p.then(t,t);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:Uh(p)?(Je=0,cn=null,Dv(t)):(Je=0,cn=null,Ur(e,t,p,7));break;case 5:var y=null;switch(Le.tag){case 26:y=Le.memoizedState;case 5:case 27:var N=Le;if(y?gx(y):N.stateNode.complete){Je=0,cn=null;var z=N.sibling;if(z!==null)Le=z;else{var G=N.return;G!==null?(Le=G,_o(G)):Le=null}break t}}Je=0,cn=null,Ur(e,t,p,5);break;case 6:Je=0,cn=null,Ur(e,t,p,6);break;case 8:Bd(),mt=6;break e;default:throw Error(l(462))}}$S();break}catch(ne){Cv(e,ne)}while(!0);return ca=ks=null,D.H=i,D.A=f,Ze=s,Le!==null?0:(rt=null,He=0,Zi(),mt)}function $S(){for(;Le!==null&&!Dt();)Ov(Le)}function Ov(e){var t=ev(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?_o(e):Le=t}function Dv(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=Yg(s,t,t.pendingProps,t.type,void 0,He);break;case 11:t=Yg(s,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:Ju(t);default:nv(s,t),t=Le=Th(t,ya),t=ev(s,t,ya)}e.memoizedProps=e.pendingProps,t===null?_o(e):Le=t}function Ur(e,t,s,i){ca=ks=null,Ju(t),Tr=null,zl=0;var f=t.return;try{if(LS(e,f,t,s,He)){mt=1,yo(e,wn(s,e.current)),Le=null;return}}catch(p){if(f!==null)throw Le=f,p;mt=1,yo(e,wn(s,e.current)),Le=null;return}t.flags&32768?(Ve||i===1?e=!0:Kr||(He&536870912)!==0?e=!1:(Va=e=!0,(i===2||i===9||i===3||i===6)&&(i=ln.current,i!==null&&i.tag===13&&(i.flags|=16384))),_v(t,e)):_o(t)}function _o(e){var t=e;do{if((t.flags&32768)!==0){_v(t,Va);return}e=t.return;var s=qS(t.alternate,t,ya);if(s!==null){Le=s;return}if(t=t.sibling,t!==null){Le=t;return}Le=t=e}while(t!==null);mt===0&&(mt=5)}function _v(e,t){do{var s=VS(e.alternate,e);if(s!==null){s.flags&=32767,Le=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){Le=e;return}Le=e=s}while(e!==null);mt=6,Le=null}function Rv(e,t,s,i,f,p,y,N,z){e.cancelPendingCommit=null;do Ro();while(Nt!==0);if((Ze&6)!==0)throw Error(l(327));if(t!==null){if(t===e.current)throw Error(l(177));if(p=t.lanes|t.childLanes,p|=Cu,Ft(e,s,p,y,N,z),e===rt&&(Le=rt=null,He=0),Pr=t,Fa=e,ba=s,Md=p,zd=f,Sv=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,tj(an,function(){return Pv(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=D.T,D.T=null,f=V.p,V.p=2,y=Ze,Ze|=4;try{QS(e,t,s)}finally{Ze=y,V.p=f,D.T=i}}Nt=1,Mv(),zv(),Kv()}}function Mv(){if(Nt===1){Nt=0;var e=Fa,t=Pr,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=D.T,D.T=null;var i=V.p;V.p=2;var f=Ze;Ze|=4;try{mv(t,e);var p=Zd,y=bh(e.containerInfo),N=p.focusedElem,z=p.selectionRange;if(y!==N&&N&&N.ownerDocument&&yh(N.ownerDocument.documentElement,N)){if(z!==null&&wu(N)){var G=z.start,ne=z.end;if(ne===void 0&&(ne=G),"selectionStart"in N)N.selectionStart=G,N.selectionEnd=Math.min(ne,N.value.length);else{var se=N.ownerDocument||document,X=se&&se.defaultView||window;if(X.getSelection){var ee=X.getSelection(),ve=N.textContent.length,Ae=Math.min(z.start,ve),st=z.end===void 0?Ae:Math.min(z.end,ve);!ee.extend&&Ae>st&&(y=st,st=Ae,Ae=y);var U=xh(N,Ae),K=xh(N,st);if(U&&K&&(ee.rangeCount!==1||ee.anchorNode!==U.node||ee.anchorOffset!==U.offset||ee.focusNode!==K.node||ee.focusOffset!==K.offset)){var I=se.createRange();I.setStart(U.node,U.offset),ee.removeAllRanges(),Ae>st?(ee.addRange(I),ee.extend(K.node,K.offset)):(I.setEnd(K.node,K.offset),ee.addRange(I))}}}}for(se=[],ee=N;ee=ee.parentNode;)ee.nodeType===1&&se.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<se.length;N++){var ae=se[N];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}Io=!!Xd,Zd=Xd=null}finally{Ze=f,V.p=i,D.T=s}}e.current=t,Nt=2}}function zv(){if(Nt===2){Nt=0;var e=Fa,t=Pr,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=D.T,D.T=null;var i=V.p;V.p=2;var f=Ze;Ze|=4;try{cv(e,t.alternate,t)}finally{Ze=f,V.p=i,D.T=s}}Nt=3}}function Kv(){if(Nt===4||Nt===3){Nt=0,Ln();var e=Fa,t=Pr,s=ba,i=Sv;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Nt=5:(Nt=0,Pr=Fa=null,Bv(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(Ia=null),On(s),t=t.stateNode,ge&&typeof ge.onCommitFiberRoot=="function")try{ge.onCommitFiberRoot(ie,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=D.T,f=V.p,V.p=2,D.T=null;try{for(var p=e.onRecoverableError,y=0;y<i.length;y++){var N=i[y];p(N.value,{componentStack:N.stack})}}finally{D.T=t,V.p=f}}(ba&3)!==0&&Ro(),Fn(e),f=e.pendingLanes,(s&261930)!==0&&(f&42)!==0?e===Kd?Wl++:(Wl=0,Kd=e):Wl=0,Jl(0)}}function Bv(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Rl(t)))}function Ro(){return Mv(),zv(),Kv(),Pv()}function Pv(){if(Nt!==5)return!1;var e=Fa,t=Md;Md=0;var s=On(ba),i=D.T,f=V.p;try{V.p=32>s?32:s,D.T=null,s=zd,zd=null;var p=Fa,y=ba;if(Nt=0,Pr=Fa=null,ba=0,(Ze&6)!==0)throw Error(l(331));var N=Ze;if(Ze|=4,yv(p.current),gv(p,p.current,y,s),Ze=N,Jl(0,!1),ge&&typeof ge.onPostCommitFiberRoot=="function")try{ge.onPostCommitFiberRoot(ie,p)}catch{}return!0}finally{V.p=f,D.T=i,Bv(e,t)}}function Lv(e,t,s){t=wn(s,t),t=md(e.stateNode,t,2),e=La(e,t,2),e!==null&&(dt(e,2),Fn(e))}function et(e,t,s){if(e.tag===3)Lv(e,e,s);else for(;t!==null;){if(t.tag===3){Lv(t,e,s);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ia===null||!Ia.has(i))){e=wn(s,e),s=Ug(2),i=La(t,s,2),i!==null&&(Hg(s,i,t,e),dt(i,2),Fn(i));break}}t=t.return}}function Ld(e,t,s){var i=e.pingCache;if(i===null){i=e.pingCache=new GS;var f=new Set;i.set(t,f)}else f=i.get(t),f===void 0&&(f=new Set,i.set(t,f));f.has(s)||(Dd=!0,f.add(s),e=WS.bind(null,e,t,s),t.then(e,e))}function WS(e,t,s){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,rt===e&&(He&s)===s&&(mt===4||mt===3&&(He&62914560)===He&&300>_t()-ko?(Ze&2)===0&&Lr(e,0):_d|=s,Br===He&&(Br=0)),Fn(e)}function Uv(e,t){t===0&&(t=Pt()),e=Ns(e,t),e!==null&&(dt(e,t),Fn(e))}function JS(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),Uv(e,s)}function ej(e,t){var s=0;switch(e.tag){case 31:case 13:var i=e.stateNode,f=e.memoizedState;f!==null&&(s=f.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(l(314))}i!==null&&i.delete(t),Uv(e,s)}function tj(e,t){return Ta(e,t)}var Mo=null,Hr=null,Ud=!1,zo=!1,Hd=!1,Ya=0;function Fn(e){e!==Hr&&e.next===null&&(Hr===null?Mo=Hr=e:Hr=Hr.next=e),zo=!0,Ud||(Ud=!0,aj())}function Jl(e,t){if(!Hd&&zo){Hd=!0;do for(var s=!1,i=Mo;i!==null;){if(e!==0){var f=i.pendingLanes;if(f===0)var p=0;else{var y=i.suspendedLanes,N=i.pingedLanes;p=(1<<31-Re(42|e)+1)-1,p&=f&~(y&~N),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(s=!0,Qv(i,p))}else p=He,p=Oe(i,i===rt?p:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(p&3)===0||ct(i,p)||(s=!0,Qv(i,p));i=i.next}while(s);Hd=!1}}function nj(){Hv()}function Hv(){zo=Ud=!1;var e=0;Ya!==0&&pj()&&(e=Ya);for(var t=_t(),s=null,i=Mo;i!==null;){var f=i.next,p=qv(i,t);p===0?(i.next=null,s===null?Mo=f:s.next=f,f===null&&(Hr=s)):(s=i,(e!==0||(p&3)!==0)&&(zo=!0)),i=f}Nt!==0&&Nt!==5||Jl(e),Ya!==0&&(Ya=0)}function qv(e,t){for(var s=e.suspendedLanes,i=e.pingedLanes,f=e.expirationTimes,p=e.pendingLanes&-62914561;0<p;){var y=31-Re(p),N=1<<y,z=f[y];z===-1?((N&s)===0||(N&i)!==0)&&(f[y]=Ct(N,t)):z<=t&&(e.expiredLanes|=N),p&=~N}if(t=rt,s=He,s=Oe(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,s===0||e===t&&(Je===2||Je===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&gs(i),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||ct(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(i!==null&&gs(i),On(s)){case 2:case 8:s=ar;break;case 32:s=an;break;case 268435456:s=Tn;break;default:s=an}return i=Vv.bind(null,e),s=Ta(s,i),e.callbackPriority=t,e.callbackNode=s,t}return i!==null&&i!==null&&gs(i),e.callbackPriority=2,e.callbackNode=null,2}function Vv(e,t){if(Nt!==0&&Nt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(Ro()&&e.callbackNode!==s)return null;var i=He;return i=Oe(e,e===rt?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Nv(e,i,t),qv(e,_t()),e.callbackNode!=null&&e.callbackNode===s?Vv.bind(null,e):null)}function Qv(e,t){if(Ro())return null;Nv(e,t,!0)}function aj(){hj(function(){(Ze&6)!==0?Ta(aa,nj):Hv()})}function qd(){if(Ya===0){var e=Cr;e===0&&(e=rr,rr<<=1,(rr&261888)===0&&(rr=256)),Ya=e}return Ya}function Iv(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qi(""+e)}function Fv(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function sj(e,t,s,i,f){if(t==="submit"&&s&&s.stateNode===f){var p=Iv((f[Xt]||null).action),y=i.submitter;y&&(t=(t=y[Xt]||null)?Iv(t.formAction):y.getAttribute("formAction"),t!==null&&(p=t,y=null));var N=new Fi("action","action",null,i,f);e.push({event:N,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Ya!==0){var z=y?Fv(f,y):new FormData(f);od(s,{pending:!0,data:z,method:f.method,action:p},null,z)}}else typeof p=="function"&&(N.preventDefault(),z=y?Fv(f,y):new FormData(f),od(s,{pending:!0,data:z,method:f.method,action:p},p,z))},currentTarget:f}]})}}for(var Vd=0;Vd<Eu.length;Vd++){var Qd=Eu[Vd],rj=Qd.toLowerCase(),lj=Qd[0].toUpperCase()+Qd.slice(1);Dn(rj,"on"+lj)}Dn(jh,"onAnimationEnd"),Dn(Nh,"onAnimationIteration"),Dn(Eh,"onAnimationStart"),Dn("dblclick","onDoubleClick"),Dn("focusin","onFocus"),Dn("focusout","onBlur"),Dn(SS,"onTransitionRun"),Dn(jS,"onTransitionStart"),Dn(NS,"onTransitionCancel"),Dn(Ch,"onTransitionEnd"),fr("onMouseEnter",["mouseout","mouseover"]),fr("onMouseLeave",["mouseout","mouseover"]),fr("onPointerEnter",["pointerout","pointerover"]),fr("onPointerLeave",["pointerout","pointerover"]),bs("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),bs("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),bs("onBeforeInput",["compositionend","keypress","textInput","paste"]),bs("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),bs("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),bs("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="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(" "),ij=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ei));function Gv(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var i=e[s],f=i.event;i=i.listeners;e:{var p=void 0;if(t)for(var y=i.length-1;0<=y;y--){var N=i[y],z=N.instance,G=N.currentTarget;if(N=N.listener,z!==p&&f.isPropagationStopped())break e;p=N,f.currentTarget=G;try{p(f)}catch(ne){Xi(ne)}f.currentTarget=null,p=z}else for(y=0;y<i.length;y++){if(N=i[y],z=N.instance,G=N.currentTarget,N=N.listener,z!==p&&f.isPropagationStopped())break e;p=N,f.currentTarget=G;try{p(f)}catch(ne){Xi(ne)}f.currentTarget=null,p=z}}}}function Ue(e,t){var s=t[au];s===void 0&&(s=t[au]=new Set);var i=e+"__bubble";s.has(i)||(Yv(t,e,2,!1),s.add(i))}function Id(e,t,s){var i=0;t&&(i|=4),Yv(s,e,i,t)}var Ko="_reactListening"+Math.random().toString(36).slice(2);function Fd(e){if(!e[Ko]){e[Ko]=!0,Hm.forEach(function(s){s!=="selectionchange"&&(ij.has(s)||Id(s,!1,e),Id(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ko]||(t[Ko]=!0,Id("selectionchange",!1,t))}}function Yv(e,t,s,i){switch(jx(t)){case 2:var f=zj;break;case 8:f=Kj;break;default:f=of}s=f.bind(null,t,s,e),f=void 0,!fu||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(f=!0),i?f!==void 0?e.addEventListener(t,s,{capture:!0,passive:f}):e.addEventListener(t,s,!0):f!==void 0?e.addEventListener(t,s,{passive:f}):e.addEventListener(t,s,!1)}function Gd(e,t,s,i,f){var p=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var y=i.tag;if(y===3||y===4){var N=i.stateNode.containerInfo;if(N===f)break;if(y===4)for(y=i.return;y!==null;){var z=y.tag;if((z===3||z===4)&&y.stateNode.containerInfo===f)return;y=y.return}for(;N!==null;){if(y=cr(N),y===null)return;if(z=y.tag,z===5||z===6||z===26||z===27){i=p=y;continue e}N=N.parentNode}}i=i.return}Jm(function(){var G=p,ne=uu(s),se=[];e:{var X=kh.get(e);if(X!==void 0){var ee=Fi,ve=e;switch(e){case"keypress":if(Qi(s)===0)break e;case"keydown":case"keyup":ee=eS;break;case"focusin":ve="focus",ee=gu;break;case"focusout":ve="blur",ee=gu;break;case"beforeblur":case"afterblur":ee=gu;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=q2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=aS;break;case jh:case Nh:case Eh:ee=I2;break;case Ch:ee=rS;break;case"scroll":case"scrollend":ee=U2;break;case"wheel":ee=iS;break;case"copy":case"cut":case"paste":ee=G2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=sh;break;case"toggle":case"beforetoggle":ee=cS}var Ae=(t&4)!==0,st=!Ae&&(e==="scroll"||e==="scrollend"),U=Ae?X!==null?X+"Capture":null:X;Ae=[];for(var K=G,I;K!==null;){var ae=K;if(I=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||I===null||U===null||(ae=Sl(K,U),ae!=null&&Ae.push(ti(K,ae,I))),st)break;K=K.return}0<Ae.length&&(X=new ee(X,ve,null,s,ne),se.push({event:X,listeners:Ae}))}}if((t&7)===0){e:{if(X=e==="mouseover"||e==="pointerover",ee=e==="mouseout"||e==="pointerout",X&&s!==cu&&(ve=s.relatedTarget||s.fromElement)&&(cr(ve)||ve[or]))break e;if((ee||X)&&(X=ne.window===ne?ne:(X=ne.ownerDocument)?X.defaultView||X.parentWindow:window,ee?(ve=s.relatedTarget||s.toElement,ee=G,ve=ve?cr(ve):null,ve!==null&&(st=c(ve),Ae=ve.tag,ve!==st||Ae!==5&&Ae!==27&&Ae!==6)&&(ve=null)):(ee=null,ve=G),ee!==ve)){if(Ae=nh,ae="onMouseLeave",U="onMouseEnter",K="mouse",(e==="pointerout"||e==="pointerover")&&(Ae=sh,ae="onPointerLeave",U="onPointerEnter",K="pointer"),st=ee==null?X:wl(ee),I=ve==null?X:wl(ve),X=new Ae(ae,K+"leave",ee,s,ne),X.target=st,X.relatedTarget=I,ae=null,cr(ne)===G&&(Ae=new Ae(U,K+"enter",ve,s,ne),Ae.target=I,Ae.relatedTarget=st,ae=Ae),st=ae,ee&&ve)t:{for(Ae=oj,U=ee,K=ve,I=0,ae=U;ae;ae=Ae(ae))I++;ae=0;for(var Ce=K;Ce;Ce=Ae(Ce))ae++;for(;0<I-ae;)U=Ae(U),I--;for(;0<ae-I;)K=Ae(K),ae--;for(;I--;){if(U===K||K!==null&&U===K.alternate){Ae=U;break t}U=Ae(U),K=Ae(K)}Ae=null}else Ae=null;ee!==null&&Xv(se,X,ee,Ae,!1),ve!==null&&st!==null&&Xv(se,st,ve,Ae,!0)}}
vendor: 5,209 bytes, lines 48-49
48e:{if(X=G?wl(G):window,ee=X.nodeName&&X.nodeName.toLowerCase(),ee==="select"||ee==="input"&&X.type==="file")var Ge=fh;else if(uh(X))if(ph)Ge=yS;else{Ge=vS;var we=gS}else ee=X.nodeName,!ee||ee.toLowerCase()!=="input"||X.type!=="checkbox"&&X.type!=="radio"?G&&ou(G.elementType)&&(Ge=fh):Ge=xS;if(Ge&&(Ge=Ge(e,G))){dh(se,Ge,s,ne);break e}we&&we(e,X,G),e==="focusout"&&G&&X.type==="number"&&G.memoizedProps.value!=null&&iu(X,"number",X.value)}switch(we=G?wl(G):window,e){case"focusin":(uh(we)||we.contentEditable==="true")&&(xr=we,Su=G,Ol=null);break;case"focusout":Ol=Su=xr=null;break;case"mousedown":ju=!0;break;case"contextmenu":case"mouseup":case"dragend":ju=!1,wh(se,s,ne);break;case"selectionchange":if(wS)break;case"keydown":case"keyup":wh(se,s,ne)}var ze;if(xu)e:{switch(e){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else vr?oh(e,s)&&(qe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(qe="onCompositionStart");qe&&(rh&&s.locale!=="ko"&&(vr||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&vr&&(ze=eh()):(_a=ne,pu="value"in _a?_a.value:_a.textContent,vr=!0)),we=Bo(G,qe),0<we.length&&(qe=new ah(qe,e,null,s,ne),se.push({event:qe,listeners:we}),ze?qe.data=ze:(ze=ch(s),ze!==null&&(qe.data=ze)))),(ze=dS?fS(e,s):pS(e,s))&&(qe=Bo(G,"onBeforeInput"),0<qe.length&&(we=new ah("onBeforeInput","beforeinput",null,s,ne),se.push({event:we,listeners:qe}),we.data=ze)),sj(se,e,G,s,ne)}Gv(se,t)})}function ti(e,t,s){return{instance:e,listener:t,currentTarget:s}}function Bo(e,t){for(var s=t+"Capture",i=[];e!==null;){var f=e,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=Sl(e,s),f!=null&&i.unshift(ti(e,f,p)),f=Sl(e,t),f!=null&&i.push(ti(e,f,p))),e.tag===3)return i;e=e.return}return[]}function oj(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xv(e,t,s,i,f){for(var p=t._reactName,y=[];s!==null&&s!==i;){var N=s,z=N.alternate,G=N.stateNode;if(N=N.tag,z!==null&&z===i)break;N!==5&&N!==26&&N!==27||G===null||(z=G,f?(G=Sl(s,p),G!=null&&y.unshift(ti(s,G,z))):f||(G=Sl(s,p),G!=null&&y.push(ti(s,G,z)))),s=s.return}y.length!==0&&e.push({event:t,listeners:y})}var cj=/\r\n?/g,uj=/\u0000|\uFFFD/g;function Zv(e){return(typeof e=="string"?e:""+e).replace(cj,` 49`).replace(uj,"")}function $v(e,t){return t=Zv(t),Zv(e)===t}function at(e,t,s,i,f,p){switch(s){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||mr(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&mr(e,""+i);break;case"className":Ui(e,"class",i);break;case"tabIndex":Ui(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Ui(e,s,i);break;case"style":$m(e,i,p);break;case"data":if(t!=="object"){Ui(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=qi(""+i),e.setAttribute(s,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(s,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof p=="function"&&(s==="formAction"?(t!=="input"&&at(e,t,"name",f.name,f,null),at(e,t,"formEncType",f.formEncType,f,null),at(e,t,"formMethod",f.formMethod,f,null),at(e,t,"formTarget",f.formTarget,f,null)):(at(e,t,"encType",f.encType,f,null),at(e,t,"method",f.method,f,null),at(e,t,"target",f.target,f,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(s);break}i=qi(""+i),e.setAttribute(s,i);break;case"onClick":i!=null&&(e.onclick=ra);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(s=i.__html,s!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}s=qi(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""+i):e.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":i===!0?e.setAttribute(s,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(s,i):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(s,i):e.removeAttribute(s);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(s):e.setAttribute(s,i);break;case"popover":Ue("beforetoggle",e),Ue("toggle",e),Li(e,"popover",i);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Li(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=P2.get(s)||s,Li(e,s,i))}}function Yd(e,t,s,i,f,p){switch(s){case"style":$m(e,i,p);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(l(61));if(s=i.__html,s!=null){if(f.children!=null)throw Error(l(60));e.innerHTML=s}}break;case"children":typeof i=="string"?mr(e,i):(typeof i=="number"||typeof i=="bigint")&&mr(e,""+i);break;case"onScroll":i!=null&&Ue("scroll",e);break;case"onScrollEnd":i!=null&&Ue("scrollend",e);break;case"onClick":i!=null&&(e.onclick=ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qm.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(f=s.endsWith("Capture"),t=s.slice(2,f?s.length-7:void 0),p=e[Xt]||null,p=p!=null?p[s]:null,typeof p=="function"&&e.removeEventListener(t,p,f),typeof i=="function")){typeof p!="function"&&p!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,i,f);break e}s in e?e[s]=i:i===!0?e.setAttribute(s,""):Li(e,s,i)}}}function Bt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ue("error",e),Ue("load",e);var i=!1,f=!1,p;for(p in s)if(s.hasOwnProperty(p)){var y=s[p];if(y!=null)switch(p){case"src":i=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:at(e,t,p,y,s,null)}}f&&at(e,t,"srcSet",s.srcSet,s,null),i&&at(e,t,"src",s.src,s,null);return;case"input":Ue("invalid",e);var N=p=y=f=null,z=null,G=null;for(i in s)if(s.hasOwnProperty(i)){var ne=s[i];if(ne!=null)switch(i){case"name":f=ne;break;case"type":y=ne;break;case"checked":z=ne;break;case"defaultChecked":G=ne;break;case"value":p=ne;break;case"defaultValue":N=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(l(137,t));break;default:at(e,t,i,ne,s,null)}}Gm(e,p,N,z,G,y,f,!1);return;case"select":Ue("invalid",e),i=y=p=null;for(f in s)if(s.hasOwnProperty(f)&&(N=s[f],N!=null))switch(f){case"value":p=N;break;case"defaultValue":y=N;break;case"multiple":i=N;default:at(e,t,f,N,s,null)}t=p,s=y,e.multiple=!!i,t!=null?pr(e,!!i,t,!1):s!=null&&pr(e,!!i,s,!0);return;case"textarea":Ue("invalid",e),p=f=i=null;for(y in s)if(s.hasOwnProperty(y)&&(N=s[y],N!=null))switch(y){case"value":i=N;break;case"defaultValue":f=N;break;case"children":p=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(l(91));break;default:at(e,t,y,N,s,null)}Xm(e,i,f,p);return;case"option":for(z in s)if(s.hasOwnProperty(z)&&(i=s[z],i!=null))switch(z){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:at(e,t,z,i,s,null)}return;case"dialog":Ue("beforetoggle",e),Ue("toggle",e),Ue("cancel",e),Ue("close",e);break;case"iframe":case"object":Ue("load",e);break;case"video":case"audio":for(i=0;i<ei.length;i++)Ue(ei[i],e);break;case"image":Ue("error",e),Ue("load",e);break;case"details":Ue("toggle",e);break;case"embed":case"source":case"link":Ue("error",e),Ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in s)if(s.hasOwnProperty(G)&&(i=s[G],i!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,t));default:at(e,t,G,i,s,null)}return;default:if(ou(t)){for(ne in s)s.hasOwnProperty(ne)&&(i=s[ne],i!==void 0&&Yd(e,t,ne,i,s,void 0));return}}for(N in s)s.hasOwnProperty(N)&&(i=s[N],i!=null&&at(e,t,N,i,s,null))}function dj(e,t,s,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,y=null,N=null,z=null,G=null,ne=null;for(ee in s){var se=s[ee];if(s.hasOwnProperty(ee)&&se!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":z=se;default:i.hasOwnProperty(ee)||at(e,t,ee,null,i,se)}}for(var X in i){var ee=i[X];if(se=s[X],i.hasOwnProperty(X)&&(ee!=null||se!=null))switch(X){case"type":p=ee;break;case"name":f=ee;break;case"checked":G=ee;break;case"defaultChecked":ne=ee;break;case"value":y=ee;break;case"defaultValue":N=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(l(137,t));break;default:ee!==se&&at(e,t,X,ee,i,se)}}lu(e,y,N,z,G,ne,p,f);return;case"select":ee=y=N=X=null;for(p in s)if(z=s[p],s.hasOwnProperty(p)&&z!=null)switch(p){case"value":break;case"multiple":ee=z;default:i.hasOwnProperty(p)||at(e,t,p,null,i,z)}for(f in i)if(p=i[f],z=s[f],i.hasOwnProperty(f)&&(p!=null||z!=null))switch(f){case"value":X=p;break;case"defaultValue":N=p;break;case"multiple":y=p;default:p!==z&&at(e,t,f,p,i,z)}t=N,s=y,i=ee,X!=null?pr(e,!!s,X,!1):!!i!=!!s&&(t!=null?pr(e,!!s,t,!0):pr(e,!!s,s?[]:"",!1));return;case"textarea":ee=X=null;for(N in s)if(f=s[N],s.hasOwnProperty(N)&&f!=null&&!i.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:at(e,t,N,null,i,f)}for(y in i)if(f=i[y],p=s[y],i.hasOwnProperty(y)&&(f!=null||p!=null))switch(y){case"value":X=f;break;case"defaultValue":ee=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(l(91));break;default:f!==p&&at(e,t,y,f,i,p)}Ym(e,X,ee);return;case"option":for(var ve in s)if(X=s[ve],s.hasOwnProperty(ve)&&X!=null&&!i.hasOwnProperty(ve))switch(ve){case"selected":e.selected=!1;break;default:at(e,t,ve,null,i,X)}for(z in i)if(X=i[z],ee=s[z],i.hasOwnProperty(z)&&X!==ee&&(X!=null||ee!=null))switch(z){case"selected":e.selected=X&&typeof X!="function"&&typeof X!="symbol";break;default:at(e,t,z,X,i,ee)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ae in s)X=s[Ae],s.hasOwnProperty(Ae)&&X!=null&&!i.hasOwnProperty(Ae)&&at(e,t,Ae,null,i,X);for(G in i)if(X=i[G],ee=s[G],i.hasOwnProperty(G)&&X!==ee&&(X!=null||ee!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(l(137,t));break;default:at(e,t,G,X,i,ee)}return;default:if(ou(t)){for(var st in s)X=s[st],s.hasOwnProperty(st)&&X!==void 0&&!i.hasOwnProperty(st)&&Yd(e,t,st,void 0,i,X);for(ne in i)X=i[ne],ee=s[ne],!i.hasOwnProperty(ne)||X===ee||X===void 0&&ee===void 0||Yd(e,t,ne,X,i,ee);return}}for(var U in s)X=s[U],s.hasOwnProperty(U)&&X!=null&&!i.hasOwnProperty(U)&&at(e,t,U,null,i,X);for(se in i)X=i[se],ee=s[se],!i.hasOwnProperty(se)||X===ee||X==null&&ee==null||at(e,t,se,X,i,ee)}function Wv(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function fj(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),i=0;i<s.length;i++){var f=s[i],p=f.transferSize,y=f.initiatorType,N=f.duration;if(p&&N&&Wv(y)){for(y=0,N=f.responseEnd,i+=1;i<s.length;i++){var z=s[i],G=z.startTime;if(G>N)break;var ne=z.transferSize,se=z.initiatorType;ne&&Wv(se)&&(z=z.responseEnd,y+=ne*(z<N?1:(N-G)/(z-G)))}if(--i,t+=8*(p+y)/(f.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Xd=null,Zd=null;
vendor: 13,696 bytes, line 49
49function Po(e){return e.nodeType===9?e:e.ownerDocument}function Jv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ex(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function $d(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function pj(){var e=window.event;return e&&e.type==="popstate"?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var tx=typeof setTimeout=="function"?setTimeout:void 0,mj=typeof clearTimeout=="function"?clearTimeout:void 0,nx=typeof Promise=="function"?Promise:void 0,hj=typeof queueMicrotask=="function"?queueMicrotask:typeof nx<"u"?function(e){return nx.resolve(null).then(e).catch(gj)}:tx;function gj(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function ax(e,t){var s=t,i=0;do{var f=s.nextSibling;if(e.removeChild(s),f&&f.nodeType===8)if(s=f.data,s==="/$"||s==="/&"){if(i===0){e.removeChild(f),Ir(t);return}i--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")i++;else if(s==="html")ni(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,ni(s);for(var p=s.firstChild;p;){var y=p.nextSibling,N=p.nodeName;p[bl]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&p.rel.toLowerCase()==="stylesheet"||s.removeChild(p),p=y}}else s==="body"&&ni(e.ownerDocument.body);s=f}while(s);Ir(t)}function sx(e,t){var s=e;e=0;do{var i=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),i&&i.nodeType===8)if(s=i.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=i}while(s)}function Jd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Jd(s),su(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function vj(e,t,s,i){for(;e.nodeType===1;){var f=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[bl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(p=e.getAttribute("rel"),p==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(p!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(p=e.getAttribute("src"),(p!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===p)return e}else return e;if(e=Cn(e.nextSibling),e===null)break}return null}function xj(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=Cn(e.nextSibling),e===null))return null;return e}function rx(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Cn(e.nextSibling),e===null))return null;return e}function ef(e){return e.data==="$?"||e.data==="$~"}function tf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function yj(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var i=function(){t(),s.removeEventListener("DOMContentLoaded",i)};s.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function Cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var nf=null;function lx(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return Cn(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function ix(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function ox(e,t,s){switch(t=Po(s),e){case"html":if(e=t.documentElement,!e)throw Error(l(452));return e;case"head":if(e=t.head,!e)throw Error(l(453));return e;case"body":if(e=t.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function ni(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);su(e)}var kn=new Map,cx=new Set;function Lo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wa=V.d;V.d={f:bj,r:wj,D:Sj,C:jj,L:Nj,m:Ej,X:kj,S:Cj,M:Aj};function bj(){var e=wa.f(),t=Oo();return e||t}function wj(e){var t=ur(e);t!==null&&t.tag===5&&t.type==="form"?Cg(t):wa.r(e)}var qr=typeof document>"u"?null:document;function ux(e,t,s){var i=qr;if(i&&typeof t=="string"&&t){var f=yn(t);f='link[rel="'+e+'"][href="'+f+'"]',typeof s=="string"&&(f+='[crossorigin="'+s+'"]'),cx.has(f)||(cx.add(f),e={rel:e,crossOrigin:s,href:t},i.querySelector(f)===null&&(t=i.createElement("link"),Bt(t,"link",e),kt(t),i.head.appendChild(t)))}}function Sj(e){wa.D(e),ux("dns-prefetch",e,null)}function jj(e,t){wa.C(e,t),ux("preconnect",e,t)}function Nj(e,t,s){wa.L(e,t,s);var i=qr;if(i&&e&&t){var f='link[rel="preload"][as="'+yn(t)+'"]';t==="image"&&s&&s.imageSrcSet?(f+='[imagesrcset="'+yn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(f+='[imagesizes="'+yn(s.imageSizes)+'"]')):f+='[href="'+yn(e)+'"]';var p=f;switch(t){case"style":p=Vr(e);break;case"script":p=Qr(e)}kn.has(p)||(e=v({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),kn.set(p,e),i.querySelector(f)!==null||t==="style"&&i.querySelector(ai(p))||t==="script"&&i.querySelector(si(p))||(t=i.createElement("link"),Bt(t,"link",e),kt(t),i.head.appendChild(t)))}}function Ej(e,t){wa.m(e,t);var s=qr;if(s&&e){var i=t&&typeof t.as=="string"?t.as:"script",f='link[rel="modulepreload"][as="'+yn(i)+'"][href="'+yn(e)+'"]',p=f;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Qr(e)}if(!kn.has(p)&&(e=v({rel:"modulepreload",href:e},t),kn.set(p,e),s.querySelector(f)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(si(p)))return}i=s.createElement("link"),Bt(i,"link",e),kt(i),s.head.appendChild(i)}}}function Cj(e,t,s){wa.S(e,t,s);var i=qr;if(i&&e){var f=dr(i).hoistableStyles,p=Vr(e);t=t||"default";var y=f.get(p);if(!y){var N={loading:0,preload:null};if(y=i.querySelector(ai(p)))N.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},s),(s=kn.get(p))&&af(e,s);var z=y=i.createElement("link");kt(z),Bt(z,"link",e),z._p=new Promise(function(G,ne){z.onload=G,z.onerror=ne}),z.addEventListener("load",function(){N.loading|=1}),z.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Uo(y,t,i)}y={type:"stylesheet",instance:y,count:1,state:N},f.set(p,y)}}}function kj(e,t){wa.X(e,t);var s=qr;if(s&&e){var i=dr(s).hoistableScripts,f=Qr(e),p=i.get(f);p||(p=s.querySelector(si(f)),p||(e=v({src:e,async:!0},t),(t=kn.get(f))&&sf(e,t),p=s.createElement("script"),kt(p),Bt(p,"link",e),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(f,p))}}function Aj(e,t){wa.M(e,t);var s=qr;if(s&&e){var i=dr(s).hoistableScripts,f=Qr(e),p=i.get(f);p||(p=s.querySelector(si(f)),p||(e=v({src:e,async:!0,type:"module"},t),(t=kn.get(f))&&sf(e,t),p=s.createElement("script"),kt(p),Bt(p,"link",e),s.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},i.set(f,p))}}function dx(e,t,s,i){var f=(f=fe.current)?Lo(f):null;if(!f)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=Vr(s.href),s=dr(f).hoistableStyles,i=s.get(t),i||(i={type:"style",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=Vr(s.href);var p=dr(f).hoistableStyles,y=p.get(e);if(y||(f=f.ownerDocument||f,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(e,y),(p=f.querySelector(ai(e)))&&!p._p&&(y.instance=p,y.state.loading=5),kn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},kn.set(e,s),p||Tj(f,e,s,y.state))),t&&i===null)throw Error(l(528,""));return y}if(t&&i!==null)throw Error(l(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Qr(s),s=dr(f).hoistableScripts,i=s.get(t),i||(i={type:"script",instance:null,count:0,state:null},s.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function Vr(e){return'href="'+yn(e)+'"'}function ai(e){return'link[rel="stylesheet"]['+e+"]"}function fx(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function Tj(e,t,s,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),Bt(t,"link",s),kt(t),e.head.appendChild(t))}function Qr(e){return'[src="'+yn(e)+'"]'}function si(e){return"script[async]"+e}function px(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+yn(s.href)+'"]');if(i)return t.instance=i,kt(i),i;var f=v({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),kt(i),Bt(i,"style",f),Uo(i,s.precedence,e),t.instance=i;case"stylesheet":f=Vr(s.href);var p=e.querySelector(ai(f));if(p)return t.state.loading|=4,t.instance=p,kt(p),p;i=fx(s),(f=kn.get(f))&&af(i,f),p=(e.ownerDocument||e).createElement("link"),kt(p);var y=p;return y._p=new Promise(function(N,z){y.onload=N,y.onerror=z}),Bt(p,"link",i),t.state.loading|=4,Uo(p,s.precedence,e),t.instance=p;case"script":return p=Qr(s.src),(f=e.querySelector(si(p)))?(t.instance=f,kt(f),f):(i=s,(f=kn.get(p))&&(i=v({},s),sf(i,f)),e=e.ownerDocument||e,f=e.createElement("script"),kt(f),Bt(f,"link",i),e.head.appendChild(f),t.instance=f);case"void":return null;default:throw Error(l(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Uo(i,s.precedence,e));return t.instance}function Uo(e,t,s){for(var i=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=i.length?i[i.length-1]:null,p=f,y=0;y<i.length;y++){var N=i[y];if(N.dataset.precedence===t)p=N;else if(p!==f)break}p?p.parentNode.insertBefore(e,p.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function af(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function sf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ho=null;function mx(e,t,s){if(Ho===null){var i=new Map,f=Ho=new Map;f.set(s,i)}else f=Ho,i=f.get(s),i||(i=new Map,f.set(s,i));if(i.has(e))return i;for(i.set(e,null),s=s.getElementsByTagName(e),f=0;f<s.length;f++){var p=s[f];if(!(p[bl]||p[Rt]||e==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(t)||"";y=e+y;var N=i.get(y);N?N.push(p):i.set(y,[p])}}return i}function hx(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function Oj(e,t,s){if(s===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function gx(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Dj(e,t,s,i){if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var f=Vr(i.href),p=t.querySelector(ai(f));if(p){t=p._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=qo.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=p,kt(p);return}p=t.ownerDocument||t,i=fx(i),(f=kn.get(f))&&af(i,f),p=p.createElement("link"),kt(p);var y=p;y._p=new Promise(function(N,z){y.onload=N,y.onerror=z}),Bt(p,"link",i),s.instance=p}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),
vendor: 13,067 bytes, line 49
49(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=qo.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var rf=0;function _j(e,t){return e.stylesheets&&e.count===0&&Qo(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var i=setTimeout(function(){if(e.stylesheets&&Qo(e,e.stylesheets),e.unsuspend){var p=e.unsuspend;e.unsuspend=null,p()}},6e4+t);0<e.imgBytes&&rf===0&&(rf=62500*fj());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qo(e,e.stylesheets),e.unsuspend)){var p=e.unsuspend;e.unsuspend=null,p()}},(e.imgBytes>rf?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(f)}}:null}function qo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Vo=null;function Qo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vo=new Map,t.forEach(Rj,e),Vo=null,qo.call(e))}function Rj(e,t){if(!(t.state.loading&4)){var s=Vo.get(e);if(s)var i=s.get(null);else{s=new Map,Vo.set(e,s);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var y=f[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(s.set(y.dataset.precedence,y),i=y)}i&&s.set(null,i)}f=t.instance,y=f.getAttribute("data-precedence"),p=s.get(y)||i,p===i&&s.set(null,f),s.set(y,f),this.count++,i=qo.bind(this),f.addEventListener("load",i),f.addEventListener("error",i),p?p.parentNode.insertBefore(f,p.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),t.state.loading|=4}}var ri={$$typeof:O,Provider:null,Consumer:null,_currentValue:L,_currentValue2:L,_threadCount:0};function Mj(e,t,s,i,f,p,y,N,z){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Oa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oa(0),this.hiddenUpdates=Oa(null),this.identifierPrefix=i,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function vx(e,t,s,i,f,p,y,N,z,G,ne,se){return e=new Mj(e,t,s,y,z,G,ne,se,N),t=1,p===!0&&(t|=24),p=rn(3,null,null,t),e.current=p,p.stateNode=e,t=Pu(),t.refCount++,e.pooledCache=t,t.refCount++,p.memoizedState={element:i,isDehydrated:s,cache:t},qu(p),e}function xx(e){return e?(e=wr,e):wr}function yx(e,t,s,i,f,p){f=xx(f),i.context===null?i.context=f:i.pendingContext=f,i=Pa(t),i.payload={element:s},p=p===void 0?null:p,p!==null&&(i.callback=p),s=La(e,i,t),s!==null&&(tn(s,e,t),Bl(s,e,t))}function bx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function lf(e,t){bx(e,t),(e=e.alternate)&&bx(e,t)}function wx(e){if(e.tag===13||e.tag===31){var t=Ns(e,67108864);t!==null&&tn(t,e,67108864),lf(e,67108864)}}function Sx(e){if(e.tag===13||e.tag===31){var t=dn();t=ir(t);var s=Ns(e,t);s!==null&&tn(s,e,t),lf(e,t)}}var Io=!0;function zj(e,t,s,i){var f=D.T;D.T=null;var p=V.p;try{V.p=2,of(e,t,s,i)}finally{V.p=p,D.T=f}}function Kj(e,t,s,i){var f=D.T;D.T=null;var p=V.p;try{V.p=8,of(e,t,s,i)}finally{V.p=p,D.T=f}}function of(e,t,s,i){if(Io){var f=cf(i);if(f===null)Gd(e,t,i,Fo,s),Nx(e,i);else if(Pj(f,e,t,s,i))i.stopPropagation();else if(Nx(e,i),t&4&&-1<Bj.indexOf(e)){for(;f!==null;){var p=ur(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=qn(p.pendingLanes);if(y!==0){var N=p;for(N.pendingLanes|=2,N.entangledLanes|=2;y;){var z=1<<31-Re(y);N.entanglements[1]|=z,y&=~z}Fn(p),(Ze&6)===0&&(Ao=_t()+500,Jl(0))}}break;case 31:case 13:N=Ns(p,2),N!==null&&tn(N,p,2),Oo(),lf(p,2)}if(p=cf(i),p===null&&Gd(e,t,i,Fo,s),p===f)break;f=p}f!==null&&i.stopPropagation()}else Gd(e,t,i,null,s)}}function cf(e){return e=uu(e),uf(e)}var Fo=null;function uf(e){if(Fo=null,e=cr(e),e!==null){var t=c(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=d(t),e!==null)return e;e=null}else if(s===31){if(e=m(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Fo=e,null}function jx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xl()){case aa:return 2;case ar:return 8;case an:case vs:return 32;case Tn:return 268435456;default:return 32}default:return 32}}var df=!1,Za=null,$a=null,Wa=null,li=new Map,ii=new Map,Ja=[],Bj="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 Nx(e,t){switch(e){case"focusin":case"focusout":Za=null;break;case"dragenter":case"dragleave":$a=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":li.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function oi(e,t,s,i,f,p){return e===null||e.nativeEvent!==p?(e={blockedOn:t,domEventName:s,eventSystemFlags:i,nativeEvent:p,targetContainers:[f]},t!==null&&(t=ur(t),t!==null&&wx(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,f!==null&&t.indexOf(f)===-1&&t.push(f),e)}function Pj(e,t,s,i,f){switch(t){case"focusin":return Za=oi(Za,e,t,s,i,f),!0;case"dragenter":return $a=oi($a,e,t,s,i,f),!0;case"mouseover":return Wa=oi(Wa,e,t,s,i,f),!0;case"pointerover":var p=f.pointerId;return li.set(p,oi(li.get(p)||null,e,t,s,i,f)),!0;case"gotpointercapture":return p=f.pointerId,ii.set(p,oi(ii.get(p)||null,e,t,s,i,f)),!0}return!1}function Ex(e){var t=cr(e.target);if(t!==null){var s=c(t);if(s!==null){if(t=s.tag,t===13){if(t=d(s),t!==null){e.blockedOn=t,Lm(e.priority,function(){Sx(s)});return}}else if(t===31){if(t=m(s),t!==null){e.blockedOn=t,Lm(e.priority,function(){Sx(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Go(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=cf(e.nativeEvent);if(s===null){s=e.nativeEvent;var i=new s.constructor(s.type,s);cu=i,s.target.dispatchEvent(i),cu=null}else return t=ur(s),t!==null&&wx(t),e.blockedOn=s,!1;t.shift()}return!0}function Cx(e,t,s){Go(e)&&s.delete(t)}function Lj(){df=!1,Za!==null&&Go(Za)&&(Za=null),$a!==null&&Go($a)&&($a=null),Wa!==null&&Go(Wa)&&(Wa=null),li.forEach(Cx),ii.forEach(Cx)}function Yo(e,t){e.blockedOn===t&&(e.blockedOn=null,df||(df=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Lj)))}var Xo=null;function kx(e){Xo!==e&&(Xo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Xo===e&&(Xo=null);for(var t=0;t<e.length;t+=3){var s=e[t],i=e[t+1],f=e[t+2];if(typeof i!="function"){if(uf(i||s)===null)continue;break}var p=ur(s);p!==null&&(e.splice(t,3),t-=3,od(p,{pending:!0,data:f,method:s.method,action:i},i,f))}}))}function Ir(e){function t(z){return Yo(z,e)}Za!==null&&Yo(Za,e),$a!==null&&Yo($a,e),Wa!==null&&Yo(Wa,e),li.forEach(t),ii.forEach(t);for(var s=0;s<Ja.length;s++){var i=Ja[s];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Ja.length&&(s=Ja[0],s.blockedOn===null);)Ex(s),s.blockedOn===null&&Ja.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(i=0;i<s.length;i+=3){var f=s[i],p=s[i+1],y=f[Xt]||null;if(typeof p=="function")y||kx(s);else if(y){var N=null;if(p&&p.hasAttribute("formAction")){if(f=p,y=p[Xt]||null)N=y.formAction;else if(uf(f)!==null)continue}else N=y.action;typeof N=="function"?s[i+1]=N:(s.splice(i,3),i-=3),kx(s)}}}function Ax(){function e(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return f=y})},focusReset:"manual",scroll:"manual"})}function t(){f!==null&&(f(),f=null),i||setTimeout(s,20)}function s(){if(!i&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),f!==null&&(f(),f=null)}}}function ff(e){this._internalRoot=e}Zo.prototype.render=ff.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(l(409));var s=t.current,i=dn();yx(s,i,e,t,null,null)},Zo.prototype.unmount=ff.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;yx(e.current,2,null,e,null,null),Oo(),t[or]=null}};function Zo(e){this._internalRoot=e}Zo.prototype.unstable_scheduleHydration=function(e){if(e){var t=nu();e={blockedOn:null,target:e,priority:t};for(var s=0;s<Ja.length&&t!==0&&t<Ja[s].priority;s++);Ja.splice(s,0,e),s===0&&Ex(e)}};var Tx=a.version;if(Tx!=="19.2.1")throw Error(l(527,Tx,"19.2.1"));V.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Uj={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$o.isDisabled&&$o.supportsFiber)try{ie=$o.inject(Uj),ge=$o}catch{}}return di.createRoot=function(e,t){if(!o(e))throw Error(l(299));var s=!1,i="",f=Kg,p=Bg,y=Pg;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(f=t.onUncaughtError),t.onCaughtError!==void 0&&(p=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=vx(e,1,!1,null,null,s,i,null,f,p,y,Ax),e[or]=t.current,Fd(e),new ff(t)},di.hydrateRoot=function(e,t,s){if(!o(e))throw Error(l(299));var i=!1,f="",p=Kg,y=Bg,N=Pg,z=null;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(f=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(y=s.onCaughtError),s.onRecoverableError!==void 0&&(N=s.onRecoverableError),s.formState!==void 0&&(z=s.formState)),t=vx(e,1,!0,t,s??null,i,f,z,p,y,N,Ax),t.context=xx(null),s=t.current,i=dn(),i=ir(i),f=Pa(i),f.callback=null,La(s,f,i),s=i,t.current.lanes=s,dt(t,s),Fn(t),e[or]=t.current,Fd(e),new Zo(t)},di.version="19.2.1",di}var ny;function lC(){if(ny)return yf.exports;ny=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),yf.exports=rC(),yf.exports}var iC=lC(),oC=(function(){function n(){this.keyToValue=new Map,this.valueToKey=new Map}return n.prototype.set=function(a,r){this.keyToValue.set(a,r),this.valueToKey.set(r,a)},n.prototype.getByKey=function(a){return this.keyToValue.get(a)},n.prototype.getByValue=function(a){return this.valueToKey.get(a)},n.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},n})(),hb=(function(){function n(a){this.generateIdentifier=a,this.kv=new oC}return n.prototype.register=function(a,r){this.kv.getByValue(a)||(r||(r=this.generateIdentifier(a)),this.kv.set(r,a))},n.prototype.clear=function(){this.kv.clear()},n.prototype.getIdentifier=function(a){return this.kv.getByValue(a)},n.prototype.getValue=function(a){return this.kv.getByKey(a)},n}
49)(),cC=(function(){var n=function(a,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,o){l.__proto__=o}||function(l,o){for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(l[c]=o[c])},n(a,r)};return function(a,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");n(a,r);function l(){this.constructor=a}a.prototype=r===null?Object.create(r):(l.prototype=r.prototype,new l)}})(),uC=(function(n){cC(a,n);function a(){var r=n.call(this,function(l){return l.name})||this;return r.classToAllowedProps=new Map,r}return a.prototype.register=function(r,l){typeof l=="object"?(l.allowProps&&this.classToAllowedProps.set(r,l.allowProps),n.prototype.register.call(this,r,l.identifier)):n.prototype.register.call(this,r,l)},a.prototype.getAllowedProps=function(r){return this.classToAllowedProps.get(r)},a})(hb),dC=function(n,a){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var l=r.call(n),o,c=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)c.push(o.value)}catch(m){d={error:m}}finally{try{o&&!o.done&&(r=l.return)&&r.call(l)}finally{if(d)throw d.error}}return c};function fC(n){if("values"in Object)return Object.values(n);var a=[];for(var r in n)n.hasOwnProperty(r)&&a.push(n[r]);return a}function pC(n,a){var r=fC(n);if("find"in r)return r.find(a);for(var l=r,o=0;o<l.length;o++){var c=l[o];if(a(c))return c}}function rl(n,a){Object.entries(n).forEach(function(r){var l=dC(r,2),o=l[0],c=l[1];return a(c,o)})}function gc(n,a){return n.indexOf(a)!==-1}function ay(n,a){for(var r=0;r<n.length;r++){var l=n[r];if(a(l))return l}}var mC=(function(){function n(){this.transfomers={}}return n.prototype.register=function(a){this.transfomers[a.name]=a},n.prototype.findApplicable=function(a){return pC(this.transfomers,function(r){return r.isApplicable(a)})},n.prototype.findByName=function(a){return this.transfomers[a]},n})(),hC=function(n){return Object.prototype.toString.call(n).slice(8,-1)},gb=function(n){return typeof n>"u"},gC=function(n){return n===null},bi=function(n){return typeof n!="object"||n===null||n===Object.prototype?!1:Object.getPrototypeOf(n)===null?!0:Object.getPrototypeOf(n)===Object.prototype},bp=function(n){return bi(n)&&Object.keys(n).length===0},cs=function(n){return Array.isArray(n)},vC=function(n){return typeof n=="string"},xC=function(n){return typeof n=="number"&&!isNaN(n)},yC=function(n){return typeof n=="boolean"},bC=function(n){return n instanceof RegExp},wi=function(n){return n instanceof Map},Si=function(n){return n instanceof Set},vb=function(n){return hC(n)==="Symbol"},wC=function(n){return n instanceof Date&&!isNaN(n.valueOf())},SC=function(n){return n instanceof Error},sy=function(n){return typeof n=="number"&&isNaN(n)},jC=function(n){return yC(n)||gC(n)||gb(n)||xC(n)||vC(n)||vb(n)},NC=function(n){return typeof n=="bigint"},EC=function(n){return n===1/0||n===-1/0},CC=function(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)},kC=function(n){return n instanceof URL},xb=function(n){return n.replace(/\./g,"\\.")},jf=function(n){return n.map(String).map(xb).join(".")},gi=function(n){for(var a=[],r="",l=0;l<n.length;l++){var o=n.charAt(l),c=o==="\\"&&n.charAt(l+1)===".";if(c){r+=".",l++;continue}var d=o===".";if(d){a.push(r),r="";
49continue}r+=o}var m=r;return a.push(m),a},wp=function(){return wp=Object.assign||function(n){for(var a,r=1,l=arguments.length;r<l;r++){a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},wp.apply(this,arguments)},Sp=function(n,a){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var l=r.call(n),o,c=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)c.push(o.value)}catch(m){d={error:m}}finally{try{o&&!o.done&&(r=l.return)&&r.call(l)}finally{if(d)throw d.error}}return c},jp=function(n,a){for(var r=0,l=a.length,o=n.length;r<l;r++,o++)n[o]=a[r];return n};function Gn(n,a,r,l){return{isApplicable:n,annotation:a,transform:r,untransform:l}}var yb=[Gn(gb,"undefined",function(){return null},function(){}),Gn(NC,"bigint",function(n){return n.toString()},function(n){return typeof BigInt<"u"?BigInt(n):(console.error("Please add a BigInt polyfill."),n)}),Gn(wC,"Date",function(n){return n.toISOString()},function(n){return new Date(n)}),Gn(SC,"Error",function(n,a){var r={name:n.name,message:n.message};return a.allowedErrorProps.forEach(function(l){r[l]=n[l]}),r},function(n,a){var r=new Error(n.message);return r.name=n.name,r.stack=n.stack,a.allowedErrorProps.forEach(function(l){r[l]=n[l]}),r}),Gn(bC,"regexp",function(n){return""+n},function(n){var a=n.slice(1,n.lastIndexOf("/")),r=n.slice(n.lastIndexOf("/")+1);return new RegExp(a,r)}),Gn(Si,"set",function(n){return jp([],Sp(n.values()))},function(n){return new Set(n)}),Gn(wi,"map",function(n){return jp([],Sp(n.entries()))},function(n){return new Map(n)}),Gn(function(n){return sy(n)||EC(n)},"number",function(n){return sy(n)?"NaN":n>0?"Infinity":"-Infinity"},Number),Gn(function(n){return n===0&&1/n===-1/0},"number",function(){return"-0"},Number),Gn(kC,"URL",function(n){return n.toString()},function(n){return new URL(n)})];function Pc(n,a,r,l){return{isApplicable:n,annotation:a,transform:r,untransform:l}}var bb=Pc(function(n,a){if(vb(n)){var r=!!a.symbolRegistry.getIdentifier(n);return r}return!1},function(n,a){var r=a.symbolRegistry.getIdentifier(n);return["symbol",r]},function(n){return n.description},function(n,a,r){var l=r.symbolRegistry.getValue(a[1]);if(!l)throw new Error("Trying to deserialize unknown symbol");return l}),AC=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(n,a){return n[a.name]=a,n},{}),wb=Pc(CC,function(n){return["typed-array",n.constructor.name]},function(n){return jp([],Sp(n))},function(n,a){var r=AC[a[1]];if(!r)throw new Error("Trying to deserialize unknown typed array");return new r(n)});function Sb(n,a){if(n?.constructor){var r=!!a.classRegistry.getIdentifier(n.constructor);return r}return!1}var jb=Pc(Sb,function(n,a){var r=a.classRegistry.getIdentifier(n.constructor);return["class",r]},function(n,a){var r=a.classRegistry.getAllowedProps(n.constructor);if(!r)return wp({},n);var l={};return r.forEach(function(o){l[o]=n[o]}),l},function(n,a,r){var l=r.classRegistry.getValue(a[1]);if(!l)throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(l.prototype),n)}),Nb=Pc(function(n,a){return!!a.customTransformerRegistry.findApplicable(n)},function(n,a){var r=a.customTransformerRegistry.findApplicable(n);return["custom",r.name]},function(n,a){var r=a.customTransformerRegistry.findApplicable(n);return r.serialize(n)},function(n,a,r){var l=r.customTransformerRegistry.findByName(a[1]);if(!l)throw new Error("Trying to deserialize unknown custom value");return l.deserialize(n)}),TC=[jb,bb,Nb,wb],ry=function(n,a){var r=ay(TC,function(o){return o.isApplicable(n,a)});if(r)return{value:r.transform(n,a),type:r.annotation(n,a)};var l=ay(yb,function(o){return o.isApplicable(n,a)});if(l)return{value:l.transform(n,a),type:l.annotation}},Eb={};yb.forEach(function(n){Eb[n.annotation]=n});var OC=function(n,a,r){if(cs(a))switch(a[0]){case"symbol":return bb.untransform(n,a,r);case"class":return jb.untransform(n,a,r);case"custom":return Nb.untransform(n,a,r);case"typed-array":return wb.untransform(n,a,r);default:throw new Error("Unknown transformation: "+a)}else{var l=Eb[a];if(!l)throw new Error("Unknown transformation: "+a);return l.untransform(n,r)}},Wr=function(n,a){for(var r=n.keys();a>0;)r.next(),a--;return r.next().value};function Cb(n){if(gc(n,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(gc(n,"prototype"))throw new Error("prototype is not allowed as a property");if(gc(n,"constructor"))throw new Error("constructor is not allowed as a property")}var DC=function(n,a){Cb(a);for(var r=0;r<a.length;r++){var l=a[r];if(Si(n))n=Wr(n,+l);else if(wi(n)){var o=+l,c=+a[++r]==0?"key":"value",d=Wr(n,o);switch(c){case"key":n=d;break;case"value":n=n.get(d);break}}else n=n[l]}return n},Np=function(n,a,r){if(Cb(a),a.length===0)return r(n);for(var l=n,o=0;o<a.length-1;o++){var c=a[o];if(cs(l)){var d=+c;l=l[d]}else if(bi(l))l=l[c];else if(Si(l)){var m=+c;l=Wr(l,m)}else if(wi(l)){var h=o===a.length-2;if(h)break;var m=+c,g=+a[++o]==0?"key":"value",x=Wr(l,m);switch(g){case"key":l=x;break;case"value":l=l.get(x);break}}}var v=a[a.length-1];if(cs(l)?l[+v]=r(l[+v]):bi(l)&&(l[v]=r(l[v])),Si(l)){var w=Wr(l,+v),j=r(w);w!==j&&(l.delete(w),l.add(j))}if(wi(l)){var m=+a[a.length-2],C=Wr(l,m),g=+v==0?"key":"value";switch(g){case"key":{var S=r(C);l.set(S,l.get(C)),S!==C&&l.delete(C);break}case"value":{l.set(C,r(l.get(C)));break}}}return n},ja=function(n,a){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var l=r.call(n),o,c=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)c.push(o.value)}catch(m){d={error:m}}finally{try{o&&!o.done&&(r=l.return)&&r.call(l)}finally{if(d)throw d.error}}return c},rs=function(n,a){for(var r=0,l=a.length,o=n.length;r<l;r++,o++)n[o]=a[r];return n};function Ep(n,a,r){if(r===void 0&&(r=[]),!!n){if(!cs(n)){rl(n,function(d,m){return Ep(d,a,rs(rs([],ja(r)),ja(gi(m))))});return}var l=ja(n,2),o=l[0],c=l[1];c&&rl(c,function(d,m){Ep(d,a,rs(rs([],ja(r)),ja(gi(m))))}),a(o,r)}}function _C(n,a,r){return Ep(a,function(l,o){n=Np(n,o,function(c){return OC(c,l,r)})}),n}function RC(n,a){function r(d,m){var h=DC(n,gi(m));
49d.map(gi).forEach(function(g){n=Np(n,g,function(){return h})})}if(cs(a)){var l=ja(a,2),o=l[0],c=l[1];o.forEach(function(d){n=Np(n,gi(d),function(){return n})}),c&&rl(c,r)}else rl(a,r);return n}var MC=function(n,a){return bi(n)||cs(n)||wi(n)||Si(n)||Sb(n,a)};function zC(n,a,r){var l=r.get(n);l?l.push(a):r.set(n,[a])}function KC(n,a){var r={},l=void 0;return n.forEach(function(o){if(!(o.length<=1)){a||(o=o.map(function(h){return h.map(String)}).sort(function(h,g){return h.length-g.length}));var c=ja(o),d=c[0],m=c.slice(1);d.length===0?l=m.map(jf):r[jf(d)]=m.map(jf)}}),l?bp(r)?[l]:[l,r]:bp(r)?void 0:r}var kb=function(n,a,r,l,o,c,d){var m;o===void 0&&(o=[]),c===void 0&&(c=[]),d===void 0&&(d=new Map);var h=jC(n);if(!h){zC(n,o,a);var g=d.get(n);if(g)return l?{transformedValue:null}:g}if(!MC(n,r)){var x=ry(n,r),v=x?{transformedValue:x.value,annotations:[x.type]}:{transformedValue:n};return h||d.set(n,v),v}if(gc(c,n))return{transformedValue:null};var w=ry(n,r),j=(m=w?.value)!==null&&m!==void 0?m:n,C=cs(j)?[]:{},S={};rl(j,function(E,_){var O=kb(E,a,r,l,rs(rs([],ja(o)),[_]),rs(rs([],ja(c)),[n]),d);C[_]=O.transformedValue,cs(O.annotations)?S[_]=O.annotations:bi(O.annotations)&&rl(O.annotations,function(B,P){S[xb(_)+"."+P]=B})});var T=bp(S)?{transformedValue:C,annotations:w?[w.type]:void 0}:{transformedValue:C,annotations:w?[w.type,S]:S};return h||d.set(n,T),T};function Ab(n){return Object.prototype.toString.call(n).slice(8,-1)}function ly(n){return Ab(n)==="Array"}function BC(n){if(Ab(n)!=="Object")return!1;const a=Object.getPrototypeOf(n);return!!a&&a.constructor===Object&&a===Object.prototype}function PC(n,a,r,l,o){const c={}.propertyIsEnumerable.call(l,a)?"enumerable":"nonenumerable";c==="enumerable"&&(n[a]=r),o&&c==="nonenumerable"&&Object.defineProperty(n,a,{value:r,enumerable:!1,writable:!0,configurable:!0})}function Cp(n,a={}){if(ly(n))return n.map(o=>Cp(o,a));if(!BC(n))return n;const r=Object.getOwnPropertyNames(n),l=Object.getOwnPropertySymbols(n);return[...r,...l].reduce((o,c)=>{if(ly(a.props)&&!a.props.includes(c))return o;const d=n[c],m=Cp(d,a);return PC(o,c,m,n,a.nonenumerable),o},{})}var Ps=function(){return Ps=Object.assign||function(n){for(var a,r=1,l=arguments.length;r<l;r++){a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Ps.apply(this,arguments)},LC=function(n,a){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var l=r.call(n),o,c=[],d;try{for(;(a===void 0||a-- >0)&&!(o=l.next()).done;)c.push(o.value)}catch(m){d={error:m}}finally{try{o&&!o.done&&(r=l.return)&&r.call(l)}finally{if(d)throw d.error}}return c},UC=function(n,a){for(var r=0,l=a.length,o=n.length;r<l;r++,o++)n[o]=a[r];return n},ka=(function(){function n(a){var r=a===void 0?{}:a,l=r.dedupe,o=l===void 0?!1:l;this.classRegistry=new uC,this.symbolRegistry=new hb(function(c){var d;return(d=c.description)!==null&&d!==void 0?d:""}),this.customTransformerRegistry=new mC,this.allowedErrorProps=[],this.dedupe=o}return n.prototype.serialize=function(a){var r=new Map,l=kb(a,r,this,this.dedupe),o={json:l.transformedValue};l.annotations&&(o.meta=Ps(Ps({},o.meta),{values:l.annotations}));var c=KC(r,this.dedupe);return c&&(o.meta=Ps(Ps({},o.meta),{referentialEqualities:c})),o},n.prototype.deserialize=function(a){var r=a.json,l=a.meta,o=Cp(r);return l?.values&&(o=_C(o,l.values,this)),l?.referentialEqualities&&(o=RC(o,l.referentialEqualities)),o},n.prototype.stringify=function(a){return JSON.stringify(this.serialize(a))},n.prototype.parse=function(a){return this.deserialize(JSON.parse(a))},n.prototype.registerClass=function(a,r){this.classRegistry.register(a,r)},n.prototype.registerSymbol=function(a,r){this.symbolRegistry.register(a,r)},n.prototype.registerCustom=function(a,r){this.customTransformerRegistry.register(Ps({name:r},a))},n.prototype.allowErrorProps=function(){for(var a,r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];(a=this.allowedErrorProps).push.apply(a,UC([],LC(r)))},n.defaultInstance=new n,n.serialize=n.defaultInstance.serialize.bind(n.defaultInstance),n.deserialize=n.defaultInstance.deserialize.bind(n.defaultInstance),n.stringify=n.defaultInstance.stringify.bind(n.defaultInstance),n.parse=n.defaultInstance.parse.bind(n.defaultInstance),n.registerClass=n.defaultInstance.registerClass.bind(n.defaultInstance),n.registerSymbol=n.defaultInstance.registerSymbol.bind(n.defaultInstance),n.registerCustom=n.defaultInstance.registerCustom.bind(n.defaultInstance),n.allowErrorProps=n.defaultInstance.allowErrorProps.bind(n.defaultInstance),n})();ka.serialize;ka.deserialize;ka.stringify;ka.parse;ka.registerClass;ka.registerCustom;ka.registerSymbol;ka.allowErrorProps;var HC=(n,a,r,l,o,c,d,m)=>{let h=document.documentElement,g=["light","dark"];
vendor: 7,464 bytes, line 49
49function x(j){(Array.isArray(n)?n:[n]).forEach(C=>{let S=C==="class",T=S&&c?o.map(E=>c[E]||E):o;S?(h.classList.remove(...T),h.classList.add(c&&c[j]?c[j]:j)):h.setAttribute(C,j)}),v(j)}function v(j){m&&g.includes(j)&&(h.style.colorScheme=j)}function w(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(l)x(l);else try{let j=localStorage.getItem(a)||r,C=d&&j==="system"?w():j;x(C)}catch{}},qC=b.createContext(void 0),VC={setTheme:n=>{},themes:[]},QC=()=>{var n;return(n=b.useContext(qC))!=null?n:VC};b.memo(({forcedTheme:n,storageKey:a,attribute:r,enableSystem:l,enableColorScheme:o,defaultTheme:c,value:d,themes:m,nonce:h,scriptProps:g})=>{let x=JSON.stringify([r,a,c,n,m,d,l,o]).slice(1,-1);return b.createElement("script",{...g,suppressHydrationWarning:!0,nonce:typeof window>"u"?h:"",dangerouslySetInnerHTML:{__html:`(${HC.toString()})(${x})`}})});var zi=mb();const Tb=Gp(zi);function IC(n){if(typeof document>"u")return;let a=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",a.appendChild(r),r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n))}const FC=n=>{switch(n){case"success":return XC;case"info":return $C;case"warning":return ZC;case"error":return WC;default:return null}},GC=Array(12).fill(0),YC=({visible:n,className:a})=>ue.createElement("div",{className:["sonner-loading-wrapper",a].filter(Boolean).join(" "),"data-visible":n},ue.createElement("div",{className:"sonner-spinner"},GC.map((r,l)=>ue.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${l}`})))),XC=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ue.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"})),ZC=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ue.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"})),$C=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ue.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"})),WC=ue.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ue.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"})),JC=ue.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"},ue.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ue.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),e4=()=>{const[n,a]=ue.useState(document.hidden);return ue.useEffect(()=>{const r=()=>{a(document.hidden)};return document.addEventListener("visibilitychange",r),()=>window.removeEventListener("visibilitychange",r)},[]),n};let kp=1;class t4{constructor(){this.subscribe=a=>(this.subscribers.push(a),()=>{const r=this.subscribers.indexOf(a);this.subscribers.splice(r,1)}),this.publish=a=>{this.subscribers.forEach(r=>r(a))},this.addToast=a=>{this.publish(a),this.toasts=[...this.toasts,a]},this.create=a=>{var r;const{message:l,...o}=a,c=typeof a?.id=="number"||((r=a.id)==null?void 0:r.length)>0?a.id:kp++,d=this.toasts.find(h=>h.id===c),m=a.dismissible===void 0?!0:a.dismissible;return this.dismissedToasts.has(c)&&this.dismissedToasts.delete(c),d?this.toasts=this.toasts.map(h=>h.id===c?(this.publish({...h,...a,id:c,title:l}),{...h,...a,id:c,dismissible:m,title:l}):h):this.addToast({title:l,...o,dismissible:m,id:c}),c},this.dismiss=a=>(a?(this.dismissedToasts.add(a),requestAnimationFrame(()=>this.subscribers.forEach(r=>r({id:a,dismiss:!0})))):this.toasts.forEach(r=>{this.subscribers.forEach(l=>l({id:r.id,dismiss:!0}))}),a),this.message=(a,r)=>this.create({...r,message:a}),this.error=(a,r)=>this.create({...r,message:a,type:"error"}),this.success=(a,r)=>this.create({...r,type:"success",message:a}),this.info=(a,r)=>this.create({...r,type:"info",message:a}),this.warning=(a,r)=>this.create({...r,type:"warning",message:a}),this.loading=(a,r)=>this.create({...r,type:"loading",message:a}),this.promise=(a,r)=>{if(!r)return;let l;r.loading!==void 0&&(l=this.create({...r,promise:a,type:"loading",message:r.loading,description:typeof r.description!="function"?r.description:void 0}));const o=Promise.resolve(a instanceof Function?a():a);let c=l!==void 0,d;const m=o.then(async g=>{if(d=["resolve",g],ue.isValidElement(g))c=!1,this.create({id:l,type:"default",message:g});else if(a4(g)&&!g.ok){c=!1;const v=typeof r.error=="function"?await r.error(`HTTP error! status: ${g.status}`):r.error,w=typeof r.description=="function"?await r.description(`HTTP error! status: ${g.status}`):r.description,C=typeof v=="object"&&!ue.isValidElement(v)?v:{message:v};this.create({id:l,type:"error",description:w,...C})}else if(g instanceof Error){c=!1;const v=typeof r.error=="function"?await r.error(g):r.error,w=typeof r.description=="function"?await r.description(g):r.description,C=typeof v=="object"&&!ue.isValidElement(v)?v:{message:v};this.create({id:l,type:"error",description:w,...C})}else if(r.success!==void 0){c=!1;const v=typeof r.success=="function"?await r.success(g):r.success,w=typeof r.description=="function"?await r.description(g):r.description,C=typeof v=="object"&&!ue.isValidElement(v)?v:{message:v};this.create({id:l,type:"success",description:w,...C})}}).catch(async g=>{if(d=["reject",g],r.error!==void 0){c=!1;const x=typeof r.error=="function"?await r.error(g):r.error,v=typeof r.description=="function"?await r.description(g):r.description,j=typeof x=="object"&&!ue.isValidElement(x)?x:{message:x};this.create({id:l,type:"error",description:v,...j})}}).finally(()=>{c&&(this.dismiss(l),l=void 0),r.finally==null||r.finally.call(r)}),h=()=>new Promise((g,x)=>m.then(()=>d[0]==="reject"?x(d[1]):g(d[1])).catch(x));return typeof l!="string"&&typeof l!="number"?{unwrap:h}:Object.assign(l,{unwrap:h})},this.custom=(a,r)=>{const l=r?.id||kp++;return this.create({jsx:a(l),id:l,...r}),l},this.getActiveToasts=()=>this.toasts.filter(a=>!this.dismissedToasts.has(a.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const nn=new t4,n4=(n,a)=>{const r=a?.id||kp++;return nn.addToast({title:n,...a,id:r}),r},a4=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",s4=n4,r4=()=>nn.toasts,l4=()=>nn.getActiveToasts(),Se=Object.assign(s4,{success:nn.success,info:nn.info,warning:nn.warning,error:nn.error,custom:nn.custom,message:nn.message,promise:nn.promise,dismiss:nn.dismiss,loading:nn.loading},{getHistory:r4,getToasts:l4});IC
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: 582 bytes, line 49
49nc(n){return n.label!==void 0}const i4=3,o4="24px",c4="16px",iy=4e3,u4=356,d4=14,f4=45,p4=200;function Yn(...n){return n.filter(Boolean).join(" ")}function m4(n){const[a,r]=n.split("-"),l=[];return a&&l.push(a),r&&l.push(r),l}const h4=n=>{var a,r,l,o,c,d,m,h,g;const{invert:x,toast:v,unstyled:w,interacting:j,setHeights:C,visibleToasts:S,heights:T,index:E,toasts:_,expanded:O,removeToast:B,defaultRichColors:P,closeButton:R,style:A,cancelButtonStyle:M,actionButtonStyle:q,className:$="",descriptionClassName:W="",duration:Y,position:J,gap:te,expandByDefault:ce,classNames:D,icons:V,
vendor: 21,621 bytes, line 49
49closeButtonAriaLabel:L="Close toast"}=n,[oe,de]=ue.useState(null),[k,Q]=ue.useState(null),[H,Z]=ue.useState(!1),[re,fe]=ue.useState(!1),[F,le]=ue.useState(!1),[pe,Ee]=ue.useState(!1),[Ne,ke]=ue.useState(!1),[Ke,Fe]=ue.useState(0),[An,gn]=ue.useState(0),Tt=ue.useRef(v.duration||Y||iy),vn=ue.useRef(null),Ot=ue.useRef(null),Ta=E===0,gs=E+1<=S,Dt=v.type,Ln=v.dismissible!==!1,_t=v.className||"",xl=v.descriptionClassName||"",aa=ue.useMemo(()=>T.findIndex(Oe=>Oe.toastId===v.id)||0,[T,v.id]),ar=ue.useMemo(()=>{var Oe;return(Oe=v.closeButton)!=null?Oe:R},[v.closeButton,R]),an=ue.useMemo(()=>v.duration||Y||iy,[v.duration,Y]),vs=ue.useRef(0),Tn=ue.useRef(0),sr=ue.useRef(0),Un=ue.useRef(null),[ie,ge]=J.split("-"),me=ue.useMemo(()=>T.reduce((Oe,ct,Ct)=>Ct>=aa?Oe:Oe+ct.height,0),[T,aa]),Re=e4(),yt=v.invert||x,yl=Dt==="loading";Tn.current=ue.useMemo(()=>aa*te+me,[aa,me]),ue.useEffect(()=>{Tt.current=an},[an]),ue.useEffect(()=>{Z(!0)},[]),ue.useEffect(()=>{const Oe=Ot.current;if(Oe){const ct=Oe.getBoundingClientRect().height;return gn(ct),C(Ct=>[{toastId:v.id,height:ct,position:v.position},...Ct]),()=>C(Ct=>Ct.filter(Pt=>Pt.toastId!==v.id))}},[C,v.id]),ue.useLayoutEffect(()=>{if(!H)return;const Oe=Ot.current,ct=Oe.style.height;Oe.style.height="auto";const Ct=Oe.getBoundingClientRect().height;Oe.style.height=ct,gn(Ct),C(Pt=>Pt.find(dt=>dt.toastId===v.id)?Pt.map(dt=>dt.toastId===v.id?{...dt,height:Ct}:dt):[{toastId:v.id,height:Ct,position:v.position},...Pt])},[H,v.title,v.description,C,v.id,v.jsx,v.action,v.cancel]);const Hn=ue.useCallback(()=>{fe(!0),Fe(Tn.current),C(Oe=>Oe.filter(ct=>ct.toastId!==v.id)),setTimeout(()=>{B(v)},p4)},[v,B,C,Tn]);ue.useEffect(()=>{if(v.promise&&Dt==="loading"||v.duration===1/0||v.type==="loading")return;let Oe;return O||j||Re?(()=>{if(sr.current<vs.current){const Pt=new Date().getTime()-vs.current;Tt.current=Tt.current-Pt}sr.current=new Date().getTime()})():(()=>{Tt.current!==1/0&&(vs.current=new Date().getTime(),Oe=setTimeout(()=>{v.onAutoClose==null||v.onAutoClose.call(v,v),Hn()},Tt.current))})(),()=>clearTimeout(Oe)},[O,j,v,Dt,Re,Hn]),ue.useEffect(()=>{v.delete&&(Hn(),v.onDismiss==null||v.onDismiss.call(v,v))},[Hn,v.delete]);function rr(){var Oe;if(V?.loading){var ct;return ue.createElement("div",{className:Yn(D?.loader,v==null||(ct=v.classNames)==null?void 0:ct.loader,"sonner-loader"),"data-visible":Dt==="loading"},V.loading)}return ue.createElement(YC,{className:Yn(D?.loader,v==null||(Oe=v.classNames)==null?void 0:Oe.loader),visible:Dt==="loading"})}const lr=v.icon||V?.[Dt]||FC(Dt);var xs,qn;return ue.createElement("li",{tabIndex:0,ref:Ot,className:Yn($,_t,D?.toast,v==null||(a=v.classNames)==null?void 0:a.toast,D?.default,D?.[Dt],v==null||(r=v.classNames)==null?void 0:r[Dt]),"data-sonner-toast":"","data-rich-colors":(xs=v.richColors)!=null?xs:P,"data-styled":!(v.jsx||v.unstyled||w),"data-mounted":H,"data-promise":!!v.promise,"data-swiped":Ne,"data-removed":re,"data-visible":gs,"data-y-position":ie,"data-x-position":ge,"data-index":E,"data-front":Ta,"data-swiping":F,"data-dismissible":Ln,"data-type":Dt,"data-invert":yt,"data-swipe-out":pe,"data-swipe-direction":k,"data-expanded":!!(O||ce&&H),"data-testid":v.testId,style:{"--index":E,"--toasts-before":E,"--z-index":_.length-E,"--offset":`${re?Ke:Tn.current}px`,"--initial-height":ce?"auto":`${An}px`,...A,...v.style},onDragEnd:()=>{le(!1),de(null),Un.current=null},onPointerDown:Oe=>{Oe.button!==2&&(yl||!Ln||(vn.current=new Date,Fe(Tn.current),Oe.target.setPointerCapture(Oe.pointerId),Oe.target.tagName!=="BUTTON"&&(le(!0),Un.current={x:Oe.clientX,y:Oe.clientY})))},onPointerUp:()=>{var Oe,ct,Ct;if(pe||!Ln)return;Un.current=null;const Pt=Number(((Oe=Ot.current)==null?void 0:Oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Oa=Number(((ct=Ot.current)==null?void 0:ct.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),dt=new Date().getTime()-((Ct=vn.current)==null?void 0:Ct.getTime()),Ft=oe==="x"?Pt:Oa,ys=Math.abs(Ft)/dt;if(Math.abs(Ft)>=f4||ys>.11){Fe(Tn.current),v.onDismiss==null||v.onDismiss.call(v,v),Q(oe==="x"?Pt>0?"right":"left":Oa>0?"down":"up"),Hn(),Ee(!0);return}else{var Gt,Yt;(Gt=Ot.current)==null||Gt.style.setProperty("--swipe-amount-x","0px"),(Yt=Ot.current)==null||Yt.style.setProperty("--swipe-amount-y","0px")}ke(!1),le(!1),de(null)},onPointerMove:Oe=>{var ct,Ct,Pt;if(!Un.current||!Ln||((ct=window.getSelection())==null?void 0:ct.toString().length)>0)return;const dt=Oe.clientY-Un.current.y,Ft=Oe.clientX-Un.current.x;var ys;const Gt=(ys=n.swipeDirections)!=null?ys:m4(J);!oe&&(Math.abs(Ft)>1||Math.abs(dt)>1)&&de(Math.abs(Ft)>Math.abs(dt)?"x":"y");let Yt={x:0,y:0};const ir=On=>1/(1.5+Math.abs(On)/20);if(oe==="y"){if(Gt.includes("top")||Gt.includes("bottom"))if(Gt.includes("top")&&dt<0||Gt.includes("bottom")&&dt>0)Yt.y=dt;else{const On=dt*ir(dt);Yt.y=Math.abs(On)<Math.abs(dt)?On:dt}}else if(oe==="x"&&(Gt.includes("left")||Gt.includes("right")))if(Gt.includes("left")&&Ft<0||Gt.includes("right")&&Ft>0)Yt.x=Ft;else{const On=Ft*ir(Ft);Yt.x=Math.abs(On)<Math.abs(Ft)?On:Ft}(Math.abs(Yt.x)>0||Math.abs(Yt.y)>0)&&ke(!0),(Ct=Ot.current)==null||Ct.style.setProperty("--swipe-amount-x",`${Yt.x}px`),(Pt=Ot.current)==null||Pt.style.setProperty("--swipe-amount-y",`${Yt.y}px`)}},ar&&!v.jsx&&Dt!=="loading"?ue.createElement("button",{"aria-label":L,"data-disabled":yl,"data-close-button":!0,onClick:yl||!Ln?()=>{}:()=>{Hn(),v.onDismiss==null||v.onDismiss.call(v,v)},className:Yn(D?.closeButton,v==null||(l=v.classNames)==null?void 0:l.closeButton)},(qn=V?.close)!=null?qn:JC):null,(Dt||v.icon||v.promise)&&v.icon!==null&&(V?.[Dt]!==null||v.icon)?ue.createElement("div",{"data-icon":"",className:Yn(D?.icon,v==null||(o=v.classNames)==null?void 0:o.icon)},v.promise||v.type==="loading"&&!v.icon?v.icon||rr():null,v.type!=="loading"?lr:null):null,ue.createElement("div",{"data-content":"",className:Yn(D?.content,v==null||(c=v.classNames)==null?void 0:c.content)},ue.createElement("div",{"data-title":"",className:Yn(D?.title,v==null||(d=v.classNames)==null?void 0:d.title)},v.jsx?v.jsx:typeof v.title=="function"?v.title():v.title),v.description?ue.createElement("div",{"data-description":"",className:Yn(W,xl,D?.description,v==null||(m=v.classNames)==null?void 0:m.description)},typeof v.description=="function"?v.description():v.description):null),ue.isValidElement(v.cancel)?v.cancel:v.cancel&&nc(v.cancel)?ue.createElement("button",{"data-button":!0,"data-cancel":!0,style:v.cancelButtonStyle||M,onClick:Oe=>{nc(v.cancel)&&Ln&&(v.cancel.onClick==null||v.cancel.onClick.call(v.cancel,Oe),Hn())},className:Yn(D?.cancelButton,v==null||(h=v.classNames)==null?void 0:h.cancelButton)},v.cancel.label):null,ue.isValidElement(v.action)?v.action:v.action&&nc(v.action)?ue.createElement("button",{"data-button":!0,"data-action":!0,style:v.actionButtonStyle||q,onClick:Oe=>{nc(v.action)&&(v.action.onClick==null||v.action.onClick.call(v.action,Oe),!Oe.defaultPrevented&&Hn())},className:Yn(D?.actionButton,v==null||(g=v.classNames)==null?void 0:g.actionButton)},v.action.label):null)};function oy(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function g4(n,a){const r={};return[n,a].forEach((l,o)=>{const c=o===1,d=c?"--mobile-offset":"--offset",m=c?c4:o4;function h(g){["top","right","bottom","left"].forEach(x=>{r[`${d}-${x}`]=typeof g=="number"?`${g}px`:g})}typeof l=="number"||typeof l=="string"?h(l):typeof l=="object"?["top","right","bottom","left"].forEach(g=>{l[g]===void 0?r[`${d}-${g}`]=m:r[`${d}-${g}`]=typeof l[g]=="number"?`${l[g]}px`:l[g]}):h(m)}),r}const v4=ue.forwardRef(function(a,r){const{id:l,invert:o,position:c="bottom-right",hotkey:d=["altKey","KeyT"],expand:m,closeButton:h,className:g,offset:x,mobileOffset:v,theme:w="light",richColors:j,duration:C,style:S,visibleToasts:T=i4,toastOptions:E,dir:_=oy(),gap:O=d4,icons:B,containerAriaLabel:P="Notifications"}=a,[R,A]=ue.useState([]),M=ue.useMemo(()=>l?R.filter(H=>H.toasterId===l):R.filter(H=>!H.toasterId),[R,l]),q=ue.useMemo(()=>Array.from(new Set([c].concat(M.filter(H=>H.position).map(H=>H.position)))),[M,c]),[$,W]=ue.useState([]),[Y,J]=ue.useState(!1),[te,ce]=ue.useState(!1),[D,V]=ue.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),L=ue.useRef(null),oe=d.join("+").replace(/Key/g,"").replace(/Digit/g,""),de=ue.useRef(null),k=ue.useRef(!1),Q=ue.useCallback(H=>{A(Z=>{var re;return(re=Z.find(fe=>fe.id===H.id))!=null&&re.delete||nn.dismiss(H.id),Z.filter(({id:fe})=>fe!==H.id)})},[]);return ue.useEffect(()=>nn.subscribe(H=>{if(H.dismiss){requestAnimationFrame(()=>{A(Z=>Z.map(re=>re.id===H.id?{...re,delete:!0}:re))});return}setTimeout(()=>{Tb.flushSync(()=>{A(Z=>{const re=Z.findIndex(fe=>fe.id===H.id);return re!==-1?[...Z.slice(0,re),{...Z[re],...H},...Z.slice(re+1)]:[H,...Z]})})})}),[R]),ue.useEffect(()=>{if(w!=="system"){V(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const H=window.matchMedia("(prefers-color-scheme: dark)");try{H.addEventListener("change",({matches:Z})=>{V(Z?"dark":"light")})}catch{H.addListener(({matches:re})=>{try{V(re?"dark":"light")}catch(fe){console.error(fe)}})}},[w]),ue.useEffect(()=>{R.length<=1&&J(!1)},[R]),ue.useEffect(()=>{const H=Z=>{var re;if(d.every(le=>Z[le]||Z.code===le)){var F;J(!0),(F=L.current)==null||F.focus()}Z.code==="Escape"&&(document.activeElement===L.current||(re=L.current)!=null&&re.contains(document.activeElement))&&J(!1)};return document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)},[d]),ue.useEffect(()=>{if(L.current)return()=>{de.current&&(de.current.focus({preventScroll:!0}),de.current=null,k.current=!1)}},[L.current]),ue.createElement("section",{ref:r,"aria-label":`${P} ${oe}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},q.map((H,Z)=>{var re;const[fe,F]=H.split("-");return M.length?ue.createElement("ol",{key:H,dir:_==="auto"?oy():_,tabIndex:-1,ref:L,className:g,"data-sonner-toaster":!0,"data-sonner-theme":D,"data-y-position":fe,"data-x-position":F,style:{"--front-toast-height":`${((re=$[0])==null?void 0:re.height)||0}px`,"--width":`${u4}px`,"--gap":`${O}px`,...S,...g4(x,v)},onBlur:le=>{k.current&&!le.currentTarget.contains(le.relatedTarget)&&(k.current=!1,de.current&&(de.current.focus({preventScroll:!0}),de.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||k.current||(k.current=!0,de.current=le.relatedTarget)},onMouseEnter:()=>J(!0),onMouseMove:()=>J(!0),onMouseLeave:()=>{te||J(!1)},onDragEnd:()=>J(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},M.filter(le=>!le.position&&Z===0||le.position===H).map((le,pe)=>{var Ee,Ne;return ue.createElement(h4,{key:le.id,icons:B,index:pe,toast:le,defaultRichColors:j,duration:(Ee=E?.duration)!=null?Ee:C,className:E?.className,descriptionClassName:E?.descriptionClassName,invert:o,visibleToasts:T,closeButton:(Ne=E?.closeButton)!=null?Ne:h,interacting:te,position:H,style:E?.style,unstyled:E?.unstyled,classNames:E?.classNames,cancelButtonStyle:E?.cancelButtonStyle,actionButtonStyle:E?.actionButtonStyle,closeButtonAriaLabel:E?.closeButtonAriaLabel,removeToast:Q,toasts:M.filter(ke=>ke.position==le.position),heights:$.filter(ke=>ke.position==le.position),setHeights:W,expandByDefault:m,gap:O,expanded:Y,swipeDirections:a.swipeDirections})})):null}))}),x4=({...n})=>{const{theme:a="system"}=QC();return u.jsx(v4,{"data-loc":"client/src/components/ui/sonner.tsx:8",theme:a,className:"toaster group",style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)"},...n})};function Ie(n,a,{checkForDefaultPrevented:r=!0}={}){return function(o){if(n?.(o),r===!1||!o.defaultPrevented)return a?.(o)}}function cy(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Ob(...n){return a=>{let r=!1;const l=n.map(o=>{const c=cy(o,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let o=0;o<l.length;o++){const c=l[o];typeof c=="function"?c():cy(n[o],null)}}}}function lt(...n){return b.useCallback(Ob(...n),n)}function y4(n,a){const r=b.createContext(a),l=c=>{const{children:d,...m}=c,h=b.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:h,children:d})};l.displayName=n+"Provider";function o(c){const d=b.useContext(r);if(d)return d;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[l,o]}function Ws(n,a=[]){let r=[];function l(c,d){const m=b.createContext(d),h=r.length;r=[...r,d];const g=v=>{const{scope:w,children:j,...C}=v,S=w?.[n]?.[h]||m,T=b.useMemo(()=>C,Object.values(C));return u.jsx(S.Provider,{value:T,children:j})};g.displayName=c+"Provider";function x(v,w){const j=w?.[n]?.[h]||m,C=b.useContext(j);if(C)return C;if(d!==void 0)return d;throw new Error(`\`${v}\` must be used within \`${c}\``)}return[g,x]}const o=()=>{const c=r.map(d=>b.createContext(d));return function(m){const h=m?.[n]||c;return b.useMemo(()=>({[`__scope${n}`]:{...m,[n]:h}}),[m,h])}};return o.scopeName=n,[l,b4(o,...a)]}function b4(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const l=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const d=l.reduce((m,{useScope:h,scopeName:g})=>{const v=h(c)[`__scope${g}`];return{...m,...v}},{});return b.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return r.scopeName=a.scopeName,r}function ll(n){const a=S4(n),r=b.forwardRef((l,o)=>{const{children:c,...d}=l,m=b.Children.toArray(c),h=m.find(j4);if(h){const g=h.props.children,x=m.map(v=>v===h?b.Children.count(g)>1?b.Children.only(null):b.isValidElement(g)?g.props.children:null:v);return u.jsx(a,{...d,ref:o,children:b.isValidElement(g)?b.cloneElement(g,void 0,x):null})}return u.jsx(a,{...d,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}var w4=ll("Slot");function S4(n){const a=b.forwardRef((r,l)=>{const{children:o,...c}=r;if(b.isValidElement(o)){const d=E4(o),m=N4(c,o.props);return o.type!==b.Fragment&&(m.ref=l?Ob(l,d):d),b.cloneElement(o,m)}return b.Children.count(o)>1?b.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var Db=Symbol("radix.slottable");function _b(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=Db,a}function j4(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===Db}function N4(n,a){const r={...a};for(const l in a){const o=n[l],c=a[l];/^on[A-Z]/.test(l)?o&&c?r[l]=(...m)=>{const h=c(...m);return o(...m),h}:o&&(r[l]=o):l==="style"?r[l]={...o,...c}:l==="className"&&(r[l]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function E4(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var C4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=C4.reduce((n,a)=>{const r=ll(`Primitive.${a}`),l=b.forwardRef((o,c)=>{const{asChild:d,...m}=o,h=d?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(h,{...m,ref:c})});return l.displayName=`Primitive.${a}`,{...n,[a]:l}},{});function k4(n,a){n&&zi.flushSync(()=>n.dispatchEvent(a))}function qs(n){const a=b.useRef(n);return b.useEffect(()=>{a.current=n}),b.useMemo(()=>(...r)=>a.current?.(...r),[])}function A4(n,a=globalThis?.document){const r=qs(n);b.useEffect(()=>{const l=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",l,{capture:!0}),()=>a.removeEventListener("keydown",l,{capture:!0})},[r,a])}var T4="DismissableLayer",Ap="dismissableLayer.update",O4="dismissableLayer.pointerDownOutside",D4="dismissableLayer.focusOutside",uy,Rb=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Lc=b.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:l,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:d,onDismiss:m,...h}=n,g=b.useContext(Rb),[x,v]=b.useState(null),w=x?.ownerDocument??globalThis?.document,[,j]=b.useState({}),C=lt(a,A=>v(A)),S=Array.from(g.layers),[T]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),E=S.indexOf(T),_=x?S.indexOf(x):-1,O=g.layersWithOutsidePointerEventsDisabled.size>0,B=_>=E,P=M4(A=>{const M=A.target,q=[...g.branches].some($=>$.contains(M));!B||q||(o?.(A),d?.(A),A.defaultPrevented||m?.())},w),R=z4(A=>{const M=A.target;[...g.branches].some($=>$.contains(M))||(c?.(A),d?.(A),A.defaultPrevented||m?.())},w);return A4(A=>{_===g.layers.size-1&&(l?.(A),!A.defaultPrevented&&m&&(A.preventDefault(),m()))},w),b.useEffect(()=>{if(x)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(uy=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),dy(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=uy)}},[x,w,r,g]),b.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),dy())},[x,g]),b.useEffect(()=>{const A=()=>j({});return document.addEventListener(Ap,A),()=>document.removeEventListener(Ap,A)},[]),u.jsx(We.div,{...h,ref:C,style:{pointerEvents:O?B?"auto":"none":void 0,...n.style},onFocusCapture:Ie(n.onFocusCapture,R.onFocusCapture),onBlurCapture:Ie(n.onBlurCapture,R.onBlurCapture),onPointerDownCapture:Ie(n.onPointerDownCapture,P.onPointerDownCapture)})});Lc.displayName=T4;var _4="DismissableLayerBranch",R4=b.forwardRef((n,a)=>{const r=b.useContext(Rb),l=b.useRef(null),o=lt(a,l);return b.useEffect(()=>{const c=l.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),u.jsx(We.div,{...n,ref:o})});R4.displayName=_4;function M4(n,a=globalThis?.document){const r=qs(n),l=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const c=m=>{if(m.target&&!l.current){let h=function(){Mb(O4,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=h,a.addEventListener("click",o.current,{once:!0})):h()}else a.removeEventListener("click",o.current);l.current=!1},d=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(d),a.removeEventListener("pointerdown",c),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>l.current=!0}}function z4(n,a=globalThis?.document){const r=qs(n),l=b.useRef(!1);return b.useEffect(()=>{const o=c=>{c.target&&!l.current&&Mb(D4,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}function dy(){const n=new CustomEvent(Ap);document.dispatchEvent(n)}function Mb(n,a,r,{discrete:l}){const o=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(n,a,{once:!0}),l?k4(o,c):o.dispatchEvent(c)}var Ht=globalThis?.document?b.useLayoutEffect:()=>{},K4=_c[" useId ".trim().toString()]||(()=>{}),B4=0;function Jr(n){const[a,r]=b.useState(K4());return Ht(()=>{r(l=>l??String(B4++))},[n]),n||(a?`radix-${a}`:"")}const P4=["top","right","bottom","left"],us=Math.min,pn=Math.max,wc=Math.round,ac=Math.floor,Jn=n=>({x:n,y:n}),L4={left:"right",right:"left",bottom:"top",top:"bottom"},U4={start:"end",end:"start"};function Tp(n,a,r){return pn(n,us(a,r))}function Ea(n,a){return typeof n=="function"?n(a):n}function Ca(n){return n.split("-")[0]}function dl(n){return n.split("-")[1]}function am(n){return n==="x"?"y":"x"}function sm(n){return n==="y"?"height":"width"}const H4=new Set(["top","bottom"]);function Wn(n){return H4.has(Ca(n))?"y":"x"}function rm(n){return am(Wn(n))}function q4(n,a,r){r===void 0&&(r=!1);const l=dl(n),o=rm(n),c=sm(o);let d=o==="x"?l===(r?"end":"start")?"right":"left":l==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(d=Sc(d)),[d,Sc(d)]}function V4(n){const a=Sc(n);return[Op(n),a,Op(a)]}function Op(n){return n.replace(/start|end/g,a=>U4[a])}const fy=["left","right"],py=["right","left"],Q4=["top","bottom"],I4=["bottom","top"];function F4(n,a,r){switch(n){case"top":case"bottom":return r?a?py:fy:a?fy:py;case"left":case"right":return a?Q4:I4;default:return[]}}function G4(n,a,r,l){const o=dl(n);let c=F4(Ca(n),r==="start",l);return o&&(c=c.map(d=>d+"-"+o),a&&(c=c.concat(c.map(Op)))),c}function Sc(n){return n.replace(/left|right|bottom|top/g,a=>L4[a])}function Y4(n){return{top:0,right:0,bottom:0,left:0,...n}}function zb(n){return typeof n!="number"?Y4(n):{top:n,right:n,bottom:n,left:n}}function jc(n){const{x:a,y:r,width:l,height:o}=n;return{width:l,height:o,top:r,left:a,right:a+l,bottom:r+o,x:a,y:r}}function my(n,a,r){let{reference:l,floating:o}=n;const c=Wn(a),d=rm(a),m=sm(d),h=Ca(a),g=c==="y",x=l.x+l.width/2-o.width/2,v=l.y+l.height/2-o.height/2,w=l[m]/2-o[m]/2;let j;switch(h){case"top":j={x,y:l.y-o.height};break;case"bottom":j={x,y:l.y+l.height};break;case"right":j={x:l.x+l.width,y:v};break;case"left":j={x:l.x-o.width,y:v};break;default:j={x:l.x,y:l.y}}switch(dl(a)){case"start":j[d]-=w*(r&&g?-1:1);break;case"end":j[d]+=w*(r&&g?-1:1);break}return j}const X4=async(n,a,r)=>{const{placement:l="bottom",strategy:o="absolute",middleware:c=[],platform:d}
vendor: 14,447 bytes, line 49
49=r,m=c.filter(Boolean),h=await(d.isRTL==null?void 0:d.isRTL(a));let g=await d.getElementRects({reference:n,floating:a,strategy:o}),{x,y:v}=my(g,l,h),w=l,j={},C=0;for(let S=0;S<m.length;S++){const{name:T,fn:E}=m[S],{x:_,y:O,data:B,reset:P}=await E({x,y:v,initialPlacement:l,placement:w,strategy:o,middlewareData:j,rects:g,platform:d,elements:{reference:n,floating:a}});x=_??x,v=O??v,j={...j,[T]:{...j[T],...B}},P&&C<=50&&(C++,typeof P=="object"&&(P.placement&&(w=P.placement),P.rects&&(g=P.rects===!0?await d.getElementRects({reference:n,floating:a,strategy:o}):P.rects),{x,y:v}=my(g,w,h)),S=-1)}return{x,y:v,placement:w,strategy:o,middlewareData:j}};async function ji(n,a){var r;a===void 0&&(a={});const{x:l,y:o,platform:c,rects:d,elements:m,strategy:h}=n,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:v="floating",altBoundary:w=!1,padding:j=0}=Ea(a,n),C=zb(j),T=m[w?v==="floating"?"reference":"floating":v],E=jc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(T)))==null||r?T:T.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:g,rootBoundary:x,strategy:h})),_=v==="floating"?{x:l,y:o,width:d.floating.width,height:d.floating.height}:d.reference,O=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),B=await(c.isElement==null?void 0:c.isElement(O))?await(c.getScale==null?void 0:c.getScale(O))||{x:1,y:1}:{x:1,y:1},P=jc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:O,strategy:h}):_);return{top:(E.top-P.top+C.top)/B.y,bottom:(P.bottom-E.bottom+C.bottom)/B.y,left:(E.left-P.left+C.left)/B.x,right:(P.right-E.right+C.right)/B.x}}const Z4=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:l,placement:o,rects:c,platform:d,elements:m,middlewareData:h}=a,{element:g,padding:x=0}=Ea(n,a)||{};if(g==null)return{};const v=zb(x),w={x:r,y:l},j=rm(o),C=sm(j),S=await d.getDimensions(g),T=j==="y",E=T?"top":"left",_=T?"bottom":"right",O=T?"clientHeight":"clientWidth",B=c.reference[C]+c.reference[j]-w[j]-c.floating[C],P=w[j]-c.reference[j],R=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let A=R?R[O]:0;(!A||!await(d.isElement==null?void 0:d.isElement(R)))&&(A=m.floating[O]||c.floating[C]);const M=B/2-P/2,q=A/2-S[C]/2-1,$=us(v[E],q),W=us(v[_],q),Y=$,J=A-S[C]-W,te=A/2-S[C]/2+M,ce=Tp(Y,te,J),D=!h.arrow&&dl(o)!=null&&te!==ce&&c.reference[C]/2-(te<Y?$:W)-S[C]/2<0,V=D?te<Y?te-Y:te-J:0;return{[j]:w[j]+V,data:{[j]:ce,centerOffset:te-ce-V,...D&&{alignmentOffset:V}},reset:D}}}),$4=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,l;const{placement:o,middlewareData:c,rects:d,initialPlacement:m,platform:h,elements:g}=a,{mainAxis:x=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:S=!0,...T}=Ea(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const E=Ca(o),_=Wn(m),O=Ca(m)===m,B=await(h.isRTL==null?void 0:h.isRTL(g.floating)),P=w||(O||!S?[Sc(m)]:V4(m)),R=C!=="none";!w&&R&&P.push(...G4(m,S,C,B));const A=[m,...P],M=await ji(a,T),q=[];let $=((l=c.flip)==null?void 0:l.overflows)||[];if(x&&q.push(M[E]),v){const te=q4(o,d,B);q.push(M[te[0]],M[te[1]])}if($=[...$,{placement:o,overflows:q}],!q.every(te=>te<=0)){var W,Y;const te=(((W=c.flip)==null?void 0:W.index)||0)+1,ce=A[te];if(ce&&(!(v==="alignment"?_!==Wn(ce):!1)||$.every(L=>Wn(L.placement)===_?L.overflows[0]>0:!0)))return{data:{index:te,overflows:$},reset:{placement:ce}};let D=(Y=$.filter(V=>V.overflows[0]<=0).sort((V,L)=>V.overflows[1]-L.overflows[1])[0])==null?void 0:Y.placement;if(!D)switch(j){case"bestFit":{var J;const V=(J=$.filter(L=>{if(R){const oe=Wn(L.placement);return oe===_||oe==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(oe=>oe>0).reduce((oe,de)=>oe+de,0)]).sort((L,oe)=>L[1]-oe[1])[0])==null?void 0:J[0];V&&(D=V);break}case"initialPlacement":D=m;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function hy(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function gy(n){return P4.some(a=>n[a]>=0)}const W4=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:l="referenceHidden",...o}=Ea(n,a);switch(l){case"referenceHidden":{const c=await ji(a,{...o,elementContext:"reference"}),d=hy(c,r.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:gy(d)}}}case"escaped":{const c=await ji(a,{...o,altBoundary:!0}),d=hy(c,r.floating);return{data:{escapedOffsets:d,escaped:gy(d)}}}default:return{}}}}},Kb=new Set(["left","top"]);async function J4(n,a){const{placement:r,platform:l,elements:o}=n,c=await(l.isRTL==null?void 0:l.isRTL(o.floating)),d=Ca(r),m=dl(r),h=Wn(r)==="y",g=Kb.has(d)?-1:1,x=c&&h?-1:1,v=Ea(a,n);let{mainAxis:w,crossAxis:j,alignmentAxis:C}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return m&&typeof C=="number"&&(j=m==="end"?C*-1:C),h?{x:j*x,y:w*g}:{x:w*g,y:j*x}}const ek=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,l;const{x:o,y:c,placement:d,middlewareData:m}=a,h=await J4(a,n);return d===((r=m.offset)==null?void 0:r.placement)&&(l=m.arrow)!=null&&l.alignmentOffset?{}:{x:o+h.x,y:c+h.y,data:{...h,placement:d}}}}},tk=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:l,placement:o}=a,{mainAxis:c=!0,crossAxis:d=!1,limiter:m={fn:T=>{let{x:E,y:_}=T;return{x:E,y:_}}},...h}=Ea(n,a),g={x:r,y:l},x=await ji(a,h),v=Wn(Ca(o)),w=am(v);let j=g[w],C=g[v];if(c){const T=w==="y"?"top":"left",E=w==="y"?"bottom":"right",_=j+x[T],O=j-x[E];j=Tp(_,j,O)}if(d){const T=v==="y"?"top":"left",E=v==="y"?"bottom":"right",_=C+x[T],O=C-x[E];C=Tp(_,C,O)}const S=m.fn({...a,[w]:j,[v]:C});return{...S,data:{x:S.x-r,y:S.y-l,enabled:{[w]:c,[v]:d}}}}}},nk=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:l,placement:o,rects:c,middlewareData:d}=a,{offset:m=0,mainAxis:h=!0,crossAxis:g=!0}=Ea(n,a),x={x:r,y:l},v=Wn(o),w=am(v);let j=x[w],C=x[v];const S=Ea(m,a),T=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(h){const O=w==="y"?"height":"width",B=c.reference[w]-c.floating[O]+T.mainAxis,P=c.reference[w]+c.reference[O]-T.mainAxis;j<B?j=B:j>P&&(j=P)}if(g){var E,_;const O=w==="y"?"width":"height",B=Kb.has(Ca(o)),P=c.reference[v]-c.floating[O]+(B&&((E=d.offset)==null?void 0:E[v])||0)+(B?0:T.crossAxis),R=c.reference[v]+c.reference[O]+(B?0:((_=d.offset)==null?void 0:_[v])||0)-(B?T.crossAxis:0);C<P?C=P:C>R&&(C=R)}return{[w]:j,[v]:C}}}},ak=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,l;const{placement:o,rects:c,platform:d,elements:m}=a,{apply:h=()=>{},...g}=Ea(n,a),x=await ji(a,g),v=Ca(o),w=dl(o),j=Wn(o)==="y",{width:C,height:S}=c.floating;let T,E;v==="top"||v==="bottom"?(T=v,E=w===(await(d.isRTL==null?void 0:d.isRTL(m.floating))?"start":"end")?"left":"right"):(E=v,T=w==="end"?"top":"bottom");const _=S-x.top-x.bottom,O=C-x.left-x.right,B=us(S-x[T],_),P=us(C-x[E],O),R=!a.middlewareData.shift;let A=B,M=P;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(M=O),(l=a.middlewareData.shift)!=null&&l.enabled.y&&(A=_),R&&!w){const $=pn(x.left,0),W=pn(x.right,0),Y=pn(x.top,0),J=pn(x.bottom,0);j?M=C-2*($!==0||W!==0?$+W:pn(x.left,x.right)):A=S-2*(Y!==0||J!==0?Y+J:pn(x.top,x.bottom))}await h({...a,availableWidth:M,availableHeight:A});const q=await d.getDimensions(m.floating);return C!==q.width||S!==q.height?{reset:{rects:!0}}:{}}}};function Uc(){return typeof window<"u"}function fl(n){return Bb(n)?(n.nodeName||"").toLowerCase():"#document"}function hn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function na(n){var a;return(a=(Bb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Bb(n){return Uc()?n instanceof Node||n instanceof hn(n).Node:!1}function zn(n){return Uc()?n instanceof Element||n instanceof hn(n).Element:!1}function ea(n){return Uc()?n instanceof HTMLElement||n instanceof hn(n).HTMLElement:!1}function vy(n){return!Uc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof hn(n).ShadowRoot}const sk=new Set(["inline","contents"]);function Ki(n){const{overflow:a,overflowX:r,overflowY:l,display:o}=Kn(n);return/auto|scroll|overlay|hidden|clip/.test(a+l+r)&&!sk.has(o)}const rk=new Set(["table","td","th"]);function lk(n){return rk.has(fl(n))}const ik=[":popover-open",":modal"];function Hc(n){return ik.some(a=>{try{return n.matches(a)}catch{return!1}})}const ok=["transform","translate","scale","rotate","perspective"],ck=["transform","translate","scale","rotate","perspective","filter"],uk=["paint","layout","strict","content"];function lm(n){const a=im(),r=zn(n)?Kn(n):n;return ok.some(l=>r[l]?r[l]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||ck.some(l=>(r.willChange||"").includes(l))||uk.some(l=>(r.contain||"").includes(l))}function dk(n){let a=ds(n);for(;ea(a)&&!il(a);){if(lm(a))return a;if(Hc(a))return null;a=ds(a)}return null}function im(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const fk=new Set(["html","body","#document"]);function il(n){return fk.has(fl(n))}function Kn(n){return hn(n).getComputedStyle(n)}function qc(n){return zn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ds(n){if(fl(n)==="html")return n;const a=n.assignedSlot||n.parentNode||vy(n)&&n.host||na(n);return vy(a)?a.host:a}function Pb(n){const a=ds(n);return il(a)?n.ownerDocument?n.ownerDocument.body:n.body:ea(a)&&Ki(a)?a:Pb(a)}function Ni(n,a,r){var l;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=Pb(n),c=o===((l=n.ownerDocument)==null?void 0:l.body),d=hn(o);if(c){const m=Dp(d);return a.concat(d,d.visualViewport||[],Ki(o)?o:[],m&&r?Ni(m):[])}return a.concat(o,Ni(o,[],r))}function Dp(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Lb(n){const a=Kn(n);let r=parseFloat(a.width)||0,l=parseFloat(a.height)||0;const o=ea(n),c=o?n.offsetWidth:r,d=o?n.offsetHeight:l,m=wc(r)!==c||wc(l)!==d;return m&&(r=c,l=d),{width:r,height:l,$:m}}function om(n){return zn(n)?n:n.contextElement}function el(n){const a=om(n);if(!ea(a))return Jn(1);const r=a.getBoundingClientRect(),{width:l,height:o,$:c}=Lb(a);let d=(c?wc(r.width):r.width)/l,m=(c?wc(r.height):r.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const pk=Jn(0);function Ub(n){const a=hn(n);return!im()||!a.visualViewport?pk:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function mk(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==hn(n)?!1:a}function Vs(n,a,r,l){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=n.getBoundingClientRect(),c=om(n);let d=Jn(1);a&&(l?zn(l)&&(d=el(l)):d=el(n));const m=mk(c,r,l)?Ub(c):Jn(0);let h=(o.left+m.x)/d.x,g=(o.top+m.y)/d.y,x=o.width/d.x,v=o.height/d.y;if(c){const w=hn(c),j=l&&zn(l)?hn(l):l;let C=w,S=Dp(C);for(;S&&l&&j!==C;){const T=el(S),E=S.getBoundingClientRect(),_=Kn(S),O=E.left+(S.clientLeft+parseFloat(_.paddingLeft))*T.x,B=E.top+(S.clientTop+parseFloat(_.paddingTop))*T.y;h*=T.x,g*=T.y,x*=T.x,v*=T.y,h+=O,g+=B,C=hn(S),S=Dp(C)}}return jc({width:x,height:v,x:h,y:g})}function Vc(n,a){const r=qc(n).scrollLeft;return a?a.left+r:Vs(na(n)).left+r}function Hb(n,a){const r=n.getBoundingClientRect(),l=r.left+a.scrollLeft-Vc(n,r),o=r.top+a.scrollTop;return{x:l,y:o}}function hk(n){let{elements:a,rect:r,offsetParent:l,strategy:o}=n;const c=o==="fixed",d=na(l),m=a?Hc(a.floating):!1;if(l===d||m&&c)return r;let h={scrollLeft:0,scrollTop:0},g=Jn(1);const x=Jn(0),v=ea(l);if((v||!v&&!c)&&((fl(l)!=="body"||Ki(d))&&(h=qc(l)),ea(l))){const j=Vs(l);g=el(l),x.x=j.x+l.clientLeft,x.y=j.y+l.clientTop}const w=d&&!v&&!c?Hb(d,h):Jn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-h.scrollLeft*g.x+x.x+w.x,y:r.y*g.y-h.scrollTop*g.y+x.y+w.y}}function gk(n){return Array.from(n.getClientRects())}function vk(n){const a=na(n),r=qc(n),l=n.ownerDocument.body,o=pn(a.scrollWidth,a.clientWidth,l.scrollWidth,l.clientWidth),c=pn(a.scrollHeight,a.clientHeight,l.scrollHeight,l.clientHeight);let d=-r.scrollLeft+Vc(n);const m=-r.scrollTop;return Kn(l).direction==="rtl"&&(d+=pn(a.clientWidth,l.clientWidth)-o),{width:o,height:c,x:d,y:m}}const xy=25;function xk(n,a){const r=hn(n),l=na(n),o=r.visualViewport;let c=l.clientWidth,d=l.clientHeight,m=0,h=0;if(o){c=o.width,d=o.height;const x=im();(!x||x&&a==="fixed")&&(m=o.offsetLeft,h=o.offsetTop)}const g=Vc(l);if(g<=0){const x=l.ownerDocument,v=x.body,w=getComputedStyle(v),j=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,C=Math.abs(l.clientWidth-v.clientWidth-j);C<=xy&&(c-=C)}else g<=xy&&(c+=g);return{width:c,height:d,x:m,y:h}}const yk=new Set(["absolute","fixed"]);function bk(n,a){const r=Vs(n,!0,a==="fixed"),l=r.top+n.clientTop,o=r.left+n.clientLeft,c=ea(n)?el(n):Jn(1),d=n.clientWidth*c.x,m=n.clientHeight*c.y,h=o*c.x,g=l*c.y;return{width:d,height:m,x:h,y:g}}function yy(n,a,r){let l;if(a==="viewport")l=xk(n,r);else if(a==="document")l=vk(na(n));else if(zn(a))l=bk(a,r);else{const o=Ub(n);l={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return jc(l)}function qb(n,a){const r=ds(n);return r===a||!zn(r)||il(r)?!1:Kn(r).position==="fixed"||qb(r,a)}function wk(n,a){const r=a.get(n);if(r)return r;let l=Ni(n,[],!1).filter(m=>zn(m)&&fl(m)!=="body"),o=null;const c=Kn(n).position==="fixed";let d=c?ds(n):n;for(;zn(d)&&!il(d);){const m=Kn(d),h=lm(d);!h&&m.position==="fixed"&&(o=null),(c?!h&&!o:!h&&m.position==="static"&&!!o&&yk.has(o.position)||Ki(d)&&!h&&qb(n,d))?l=l.filter(x=>x!==d):o=m,d=ds(d)}return a.set(n,l),l}function Sk(n){let{element:a,boundary:r,rootBoundary:l,strategy:o}=n;const d=[...r==="clippingAncestors"?Hc(a)?[]:wk(a,this._c):[].concat(r),l],m=d[0],h=d.reduce((g,x)=>{const v=yy(a,x,o);return g.top=pn(v.top,g.top),g.right=us(v.right,g.right),g.bottom=us(v.bottom,g.bottom),g.left=pn(v.left,g.left),g},yy(a,m,o));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function jk(n){const{width:a,height:r}=Lb(n);return{width:a,height:r}}function Nk(n,a,r){const l=ea(a),o=na(a),c=r==="fixed",d=Vs(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const h=Jn(0);function g(){h.x=Vc(o)}
vendor: 9,529 bytes, line 49
49if(l||!l&&!c)if((fl(a)!=="body"||Ki(o))&&(m=qc(a)),l){const j=Vs(a,!0,c,a);h.x=j.x+a.clientLeft,h.y=j.y+a.clientTop}else o&&g();c&&!l&&o&&g();const x=o&&!l&&!c?Hb(o,m):Jn(0),v=d.left+m.scrollLeft-h.x-x.x,w=d.top+m.scrollTop-h.y-x.y;return{x:v,y:w,width:d.width,height:d.height}}function Nf(n){return Kn(n).position==="static"}function by(n,a){if(!ea(n)||Kn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return na(n)===r&&(r=r.ownerDocument.body),r}function Vb(n,a){const r=hn(n);if(Hc(n))return r;if(!ea(n)){let o=ds(n);for(;o&&!il(o);){if(zn(o)&&!Nf(o))return o;o=ds(o)}return r}let l=by(n,a);for(;l&&lk(l)&&Nf(l);)l=by(l,a);return l&&il(l)&&Nf(l)&&!lm(l)?r:l||dk(n)||r}const Ek=async function(n){const a=this.getOffsetParent||Vb,r=this.getDimensions,l=await r(n.floating);return{reference:Nk(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function Ck(n){return Kn(n).direction==="rtl"}const kk={convertOffsetParentRelativeRectToViewportRelativeRect:hk,getDocumentElement:na,getClippingRect:Sk,getOffsetParent:Vb,getElementRects:Ek,getClientRects:gk,getDimensions:jk,getScale:el,isElement:zn,isRTL:Ck};function Qb(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function Ak(n,a){let r=null,l;const o=na(n);function c(){var m;clearTimeout(l),(m=r)==null||m.disconnect(),r=null}function d(m,h){m===void 0&&(m=!1),h===void 0&&(h=1),c();const g=n.getBoundingClientRect(),{left:x,top:v,width:w,height:j}=g;if(m||a(),!w||!j)return;const C=ac(v),S=ac(o.clientWidth-(x+w)),T=ac(o.clientHeight-(v+j)),E=ac(x),O={rootMargin:-C+"px "+-S+"px "+-T+"px "+-E+"px",threshold:pn(0,us(1,h))||1};let B=!0;function P(R){const A=R[0].intersectionRatio;if(A!==h){if(!B)return d();A?d(!1,A):l=setTimeout(()=>{d(!1,1e-7)},1e3)}A===1&&!Qb(g,n.getBoundingClientRect())&&d(),B=!1}try{r=new IntersectionObserver(P,{...O,root:o.ownerDocument})}catch{r=new IntersectionObserver(P,O)}r.observe(n)}return d(!0),c}function Tk(n,a,r,l){l===void 0&&(l={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,g=om(n),x=o||c?[...g?Ni(g):[],...Ni(a)]:[];x.forEach(E=>{o&&E.addEventListener("scroll",r,{passive:!0}),c&&E.addEventListener("resize",r)});const v=g&&m?Ak(g,r):null;let w=-1,j=null;d&&(j=new ResizeObserver(E=>{let[_]=E;_&&_.target===g&&j&&(j.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=j)==null||O.observe(a)})),r()}),g&&!h&&j.observe(g),j.observe(a));let C,S=h?Vs(n):null;h&&T();function T(){const E=Vs(n);S&&!Qb(S,E)&&r(),S=E,C=requestAnimationFrame(T)}return r(),()=>{var E;x.forEach(_=>{o&&_.removeEventListener("scroll",r),c&&_.removeEventListener("resize",r)}),v?.(),(E=j)==null||E.disconnect(),j=null,h&&cancelAnimationFrame(C)}}const Ok=ek,Dk=tk,_k=$4,Rk=ak,Mk=W4,wy=Z4,zk=nk,Kk=(n,a,r)=>{const l=new Map,o={platform:kk,...r},c={...o.platform,_c:l};return X4(n,a,{...o,platform:c})};var Bk=typeof document<"u",Pk=function(){},vc=Bk?b.useLayoutEffect:Pk;function Nc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,l,o;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(l=r;l--!==0;)if(!Nc(n[l],a[l]))return!1;return!0}if(o=Object.keys(n),r=o.length,r!==Object.keys(a).length)return!1;for(l=r;l--!==0;)if(!{}.hasOwnProperty.call(a,o[l]))return!1;for(l=r;l--!==0;){const c=o[l];if(!(c==="_owner"&&n.$$typeof)&&!Nc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function Ib(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Sy(n,a){const r=Ib(n);return Math.round(a*r)/r}function Ef(n){const a=b.useRef(n);return vc(()=>{a.current=n}),a}function Lk(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:l=[],platform:o,elements:{reference:c,floating:d}={},transform:m=!0,whileElementsMounted:h,open:g}=n,[x,v]=b.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,j]=b.useState(l);Nc(w,l)||j(l);const[C,S]=b.useState(null),[T,E]=b.useState(null),_=b.useCallback(L=>{L!==R.current&&(R.current=L,S(L))},[]),O=b.useCallback(L=>{L!==A.current&&(A.current=L,E(L))},[]),B=c||C,P=d||T,R=b.useRef(null),A=b.useRef(null),M=b.useRef(x),q=h!=null,$=Ef(h),W=Ef(o),Y=Ef(g),J=b.useCallback(()=>{if(!R.current||!A.current)return;const L={placement:a,strategy:r,middleware:w};W.current&&(L.platform=W.current),Kk(R.current,A.current,L).then(oe=>{const de={...oe,isPositioned:Y.current!==!1};te.current&&!Nc(M.current,de)&&(M.current=de,zi.flushSync(()=>{v(de)}))})},[w,a,r,W,Y]);vc(()=>{g===!1&&M.current.isPositioned&&(M.current.isPositioned=!1,v(L=>({...L,isPositioned:!1})))},[g]);const te=b.useRef(!1);vc(()=>(te.current=!0,()=>{te.current=!1}),[]),vc(()=>{if(B&&(R.current=B),P&&(A.current=P),B&&P){if($.current)return $.current(B,P,J);J()}},[B,P,J,$,q]);const ce=b.useMemo(()=>({reference:R,floating:A,setReference:_,setFloating:O}),[_,O]),D=b.useMemo(()=>({reference:B,floating:P}),[B,P]),V=b.useMemo(()=>{const L={position:r,left:0,top:0};if(!D.floating)return L;const oe=Sy(D.floating,x.x),de=Sy(D.floating,x.y);return m?{...L,transform:"translate("+oe+"px, "+de+"px)",...Ib(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:oe,top:de}},[r,m,D.floating,x.x,x.y]);return b.useMemo(()=>({...x,update:J,refs:ce,elements:D,floatingStyles:V}),[x,J,ce,D,V])}const Uk=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:l,padding:o}=typeof n=="function"?n(r):n;return l&&a(l)?l.current!=null?wy({element:l.current,padding:o}).fn(r):{}:l?wy({element:l,padding:o}).fn(r):{}}}},Hk=(n,a)=>({...Ok(n),options:[n,a]}),qk=(n,a)=>({...Dk(n),options:[n,a]}),Vk=(n,a)=>({...zk(n),options:[n,a]}),Qk=(n,a)=>({..._k(n),options:[n,a]}),Ik=(n,a)=>({...Rk(n),options:[n,a]}),Fk=(n,a)=>({...Mk(n),options:[n,a]}),Gk=(n,a)=>({...Uk(n),options:[n,a]});var Yk="Arrow",Fb=b.forwardRef((n,a)=>{const{children:r,width:l=10,height:o=5,...c}=n;return u.jsx(We.svg,{...c,ref:a,width:l,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Fb.displayName=Yk;var Xk=Fb;function Gb(n){const[a,r]=b.useState(void 0);return Ht(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const l=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let d,m;if("borderBoxSize"in c){const h=c.borderBoxSize,g=Array.isArray(h)?h[0]:h;d=g.inlineSize,m=g.blockSize}else d=n.offsetWidth,m=n.offsetHeight;r({width:d,height:m})});return l.observe(n,{box:"border-box"}),()=>l.unobserve(n)}else r(void 0)},[n]),a}var cm="Popper",[Yb,Qc]=Ws(cm),[Zk,Xb]=Yb(cm),Zb=n=>{const{__scopePopper:a,children:r}=n,[l,o]=b.useState(null);return u.jsx(Zk,{scope:a,anchor:l,onAnchorChange:o,children:r})};Zb.displayName=cm;var $b="PopperAnchor",Wb=b.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:l,...o}=n,c=Xb($b,r),d=b.useRef(null),m=lt(a,d),h=b.useRef(null);return b.useEffect(()=>{const g=h.current;h.current=l?.current||d.current,g!==h.current&&c.onAnchorChange(h.current)}),l?null:u.jsx(We.div,{...o,ref:m})});Wb.displayName=$b;var um="PopperContent",[$k,Wk]=Yb(um),Jb=b.forwardRef((n,a)=>{const{__scopePopper:r,side:l="bottom",sideOffset:o=0,align:c="center",alignOffset:d=0,arrowPadding:m=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:v="partial",hideWhenDetached:w=!1,updatePositionStrategy:j="optimized",onPlaced:C,...S}=n,T=Xb(um,r),[E,_]=b.useState(null),O=lt(a,F=>_(F)),[B,P]=b.useState(null),R=Gb(B),A=R?.width??0,M=R?.height??0,q=l+(c!=="center"?"-"+c:""),$=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},W=Array.isArray(g)?g:[g],Y=W.length>0,J={padding:$,boundary:W.filter(eA),altBoundary:Y},{refs:te,floatingStyles:ce,placement:D,isPositioned:V,middlewareData:L}=Lk({strategy:"fixed",placement:q,whileElementsMounted:(...F)=>Tk(...F,{animationFrame:j==="always"}),elements:{reference:T.anchor},middleware:[Hk({mainAxis:o+M,alignmentAxis:d}),h&&qk({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?Vk():void 0,...J}),h&&Qk({...J}),Ik({...J,apply:({elements:F,rects:le,availableWidth:pe,availableHeight:Ee})=>{const{width:Ne,height:ke}=le.reference,Ke=F.floating.style;Ke.setProperty("--radix-popper-available-width",`${pe}px`),Ke.setProperty("--radix-popper-available-height",`${Ee}px`),Ke.setProperty("--radix-popper-anchor-width",`${Ne}px`),Ke.setProperty("--radix-popper-anchor-height",`${ke}px`)}}),B&&Gk({element:B,padding:m}),tA({arrowWidth:A,arrowHeight:M}),w&&Fk({strategy:"referenceHidden",...J})]}),[oe,de]=n1(D),k=qs(C);Ht(()=>{V&&k?.()},[V,k]);const Q=L.arrow?.x,H=L.arrow?.y,Z=L.arrow?.centerOffset!==0,[re,fe]=b.useState();return Ht(()=>{E&&fe(window.getComputedStyle(E).zIndex)},[E]),u.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:V?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:re,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:u.jsx($k,{scope:r,placedSide:oe,onArrowChange:P,arrowX:Q,arrowY:H,shouldHideArrow:Z,children:u.jsx(We.div,{"data-side":oe,"data-align":de,...S,ref:O,style:{...S.style,animation:V?void 0:"none"}})})})});Jb.displayName=um;var e1="PopperArrow",Jk={top:"bottom",right:"left",bottom:"top",left:"r
49ight"},t1=b.forwardRef(function(a,r){const{__scopePopper:l,...o}=a,c=Wk(e1,l),d=Jk[c.placedSide];return u.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:u.jsx(Xk,{...o,ref:r,style:{...o.style,display:"block"}})})});t1.displayName=e1;function eA(n){return n!==null}var tA=n=>({name:"transformOrigin",options:n,fn(a){const{placement:r,rects:l,middlewareData:o}=a,d=o.arrow?.centerOffset!==0,m=d?0:n.arrowWidth,h=d?0:n.arrowHeight,[g,x]=n1(r),v={start:"0%",center:"50%",end:"100%"}[x],w=(o.arrow?.x??0)+m/2,j=(o.arrow?.y??0)+h/2;let C="",S="";return g==="bottom"?(C=d?v:`${w}px`,S=`${-h}px`):g==="top"?(C=d?v:`${w}px`,S=`${l.floating.height+h}px`):g==="right"?(C=`${-h}px`,S=d?v:`${j}px`):g==="left"&&(C=`${l.floating.width+h}px`,S=d?v:`${j}px`),{data:{x:C,y:S}}}});function n1(n){const[a,r="center"]=n.split("-");return[a,r]}var nA=Zb,a1=Wb,s1=Jb,r1=t1,aA="Portal",dm=b.forwardRef((n,a)=>{const{container:r,...l}=n,[o,c]=b.useState(!1);Ht(()=>c(!0),[]);const d=r||o&&globalThis?.document?.body;return d?Tb.createPortal(u.jsx(We.div,{...l,ref:a}),d):null});dm.displayName=aA;function sA(n,a){return b.useReducer((r,l)=>a[r][l]??r,n)}var Bi=n=>{const{present:a,children:r}=n,l=rA(a),o=typeof r=="function"?r({present:l.isPresent}):b.Children.only(r),c=lt(l.ref,lA(o));return typeof r=="function"||l.isPresent?b.cloneElement(o,{ref:c}):null};Bi.displayName="Presence";function rA(n){const[a,r]=b.useState(),l=b.useRef(null),o=b.useRef(n),c=b.useRef("none"),d=n?"mounted":"unmounted",[m,h]=sA(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const g=sc(l.current);c.current=m==="mounted"?g:"none"},[m]),Ht(()=>{const g=l.current,x=o.current;if(x!==n){const w=c.current,j=sc(g);n?h("MOUNT"):j==="none"||g?.display==="none"?h("UNMOUNT"):h(x&&w!==j?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,h]),Ht(()=>{if(a){let g;const x=a.ownerDocument.defaultView??window,v=j=>{const S=sc(l.current).includes(CSS.escape(j.animationName));if(j.target===a&&S&&(h("ANIMATION_END"),!o.current)){const T=a.style.animationFillMode;a.style.animationFillMode="forwards",g=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=T)})}},w=j=>{j.target===a&&(c.current=sc(l.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",v),a.addEventListener("animationend",v),()=>{x.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",v),a.removeEventListener("animationend",v)}}else h("ANIMATION_END")},[a,h]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:b.useCallback(g=>{l.current=g?getComputedStyle(g):null,r(g)},[])}}function sc(n){return n?.animationName||"none"}function lA(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,r=a&&"isReactWarning"in a&&a.isReactWarning;return r?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r?n.props.ref:n.props.ref||n.ref)}var iA=_c[" useInsertionEffect ".trim().toString()]||Ht;function Ec({prop:n,defaultProp:a,onChange:r=()=>{},caller:l}){const[o,c,d]=oA({defaultProp:a,onChange:r}),m=n!==void 0,h=m?n:o;{const x=b.useRef(n!==void 0);b.useEffect(()=>{const v=x.current;v!==m&&console.warn(`${l} is changing from ${v?"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.`),x.current=m},[m,l])}const g=b.useCallback(x=>{if(m){const v=cA(x)?x(n):x;v!==n&&d.current?.(v)}else c(x)},[m,n,c,d]);return[h,g]}function oA({defaultProp:n,onChange:a}){const[r,l]=b.useState(n),o=b.useRef(r),c=b.useRef(a);return iA(()=>{c.current=a},[a]),b.useEffect(()=>{o.current!==r&&(c.current?.(r),o.current=r)},[r,o]),[r,l,c]}function cA(n){return typeof n=="function"}var l1=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"}),uA="VisuallyHidden",i1=b.forwardRef((n,a)=>u.jsx(We.span,{...n,ref:a,style:{...l1,...n.style}}));i1.displayName=uA;var dA=i1,[Ic]=Ws("Tooltip",[Qc]),fm=Qc(),o1="TooltipProvider",fA=700,jy="tooltip.open",[pA,c1]=Ic(o1),u1=n=>{const{__scopeTooltip:a,delayDuration:r=fA,skipDelayDuration:l=300,disableHoverableContent:o=!1,children:c}=n,d=b.useRef(!0),m=b.useRef(!1),h=b.useRef(0);return b.useEffect(()=>{const g=h.current;return()=>window.clearTimeout(g)},[]),u.jsx(pA,{scope:a,isOpenDelayedRef:d,delayDuration:r,onOpen:b.useCallback(()=>{window.clearTimeout(h.current),d.current=!1},[]),onClose:b.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>d.current=!0,l)},[l]),isPointerInTransitRef:m,onPointerInTransitChange:b.useCallback(g=>{m.current=g},[]),disableHoverableContent:o,children:c})};u1.displayName=o1;var d1="Tooltip",[fD,Fc]=Ic(d1),_p="TooltipTrigger",mA=b.forwardRef((n,a)=>{const{__scopeTooltip:r,...l}=n,o=Fc(_p,r),c=c1(_p,r),d=fm(r),m=b.useRef(null),h=lt(a,m,o.onTriggerChange),g=b.useRef(!1),x=b.useRef(!1),v=b.useCallback(()=>g.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),u.jsx(a1,{asChild:!0,...d,children:u.jsx(We.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...l,ref:h,onPointerMove:Ie(n.onPointerMove,w=>{w.pointerType!=="touch"&&!x.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:Ie(n.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:Ie(n.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:Ie(n.onFocus,()=>{g.current||o.onOpen()}),onBlur:Ie(n.onBlur,o.onClose),onClick:Ie(n.onClick,o.onClose)})})});mA.displayName=_p;var hA="TooltipPortal",[pD,gA]=Ic(hA,{forceMount:void 0}),ol="TooltipContent",vA=b.forwardRef((n,a)=>{const r=gA(ol,n.__scopeTooltip),{forceMount:l=r.forceMount,side:o="top",...c}=n,d=Fc(ol,n.__scopeTooltip);return u.jsx(Bi,{present:l||d.open,children:d.disableHoverableContent?u.jsx(f1,{side:o,...c,ref:a}):u.jsx(xA,{side:o,...c,ref:a})})}),xA=b.forwardRef((n,a)=>{const r=Fc(ol,n.__scopeTooltip),l=c1(ol,n.__scopeTooltip),o=b.useRef(null),c=lt(a,o),[d,m]=b.useState(null),{trigger:h,onClose:g}=r,x=o.current,{onPointerInTransitChange:v}=l,w=b.useCallback(()=>{m(null),v(!1)},[v]),j=b.useCallback((C,S)=>{const T=C.currentTarget,E={x:C.clientX,y:C.clientY},_=jA(E,T.getBoundingClientRect()),O=NA(E,_),B=EA(S.getBoundingClientRect()),P=kA([...O,...B]);m(P),v(!0)},[v]);return b.useEffect(()=>()=>w(),[w]),b.useEffect(()=>{if(h&&x){const C=T=>j(T,x),S=T=>j(T,h);return h.addEventListener("pointerleave",C),x.addEventListener("pointerleave",S),()=>{h.removeEventListener("pointerleave",C),x.removeEventListener("pointerleave",S)}}},[h,x,j,w]),b.useEffect(()=>{if(d){const C=S=>{const T=S.target,E={x:S.clientX,y:S.clientY},_=h?.contains(T)||x?.contains(T),O=!CA(E,d);_?w():O&&(w(),g())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[h,x,d,g,w]),u.jsx(f1,{...n,ref:c})}),[yA,bA]=Ic(d1,{isInside:!1}),wA=_b("TooltipContent"),f1=b.forwardRef((n,a)=>{const{__scopeTooltip:r,children:l,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:d,...m}=n,h=Fc(ol,r),g=fm(r),{onClose:x}=h;return b.useEffect(()=>(document.addEventListener(jy,x),()=>document.removeEventListener(jy,x)),[x]),b.useEffect(()=>{if(h.trigger){const v=w=>{w.target?.contains(h.trigger)&&x()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[h.trigger,x]),u.jsx(Lc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:v=>v.preventDefault(),onDismiss:x,children:u.jsxs(s1,{"data-state":h.stateAttribute,...g,...m,ref:a,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:[u.jsx(wA,{children:l}),u.jsx(yA,{scope:r,isInside:!0,children:u.jsx(dA,{id:h.contentId,role:"tooltip",children:o||l})})]})})});vA.displayName=ol;var p1="TooltipArrow",SA=b.forwardRef((n,a)=>{const{__scopeTooltip:r,...l}=n,o=fm(r);return bA(p1,r).isInside?null:u.jsx(r1,{...o,...l,ref:a})});SA.displayName=p1;function jA(n,a){const r=Math.abs(a.top-n.y),l=Math.abs(a.bottom-n.y),o=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,l,o,c)){case c:return"left";case o:return"right";case r:return"top";case l:return"bottom";default:throw new Error("unreachable")}}function NA(n,a,r=5){const l=[];switch(a){case"top":l.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":l.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":l.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":l.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return l}function EA(n){const{top:a,right:r,bottom:l,left:o}=n;return[{x:o,y:a},{x:r,y:a},{x:r,y:l},{x:o,y:l}]}function CA(n,a){const{x:r,y:l}=n;let o=!1;for(let c=0,d=a.length-1;c<a.length;d=c++){const m=a[c],h=a[d],g=m.x,x=m.y,v=h.x,w=h.y;x>l!=w>l&&r<(v-g)*(l-x)/(w-x)+g&&(o=!o)}return o}function kA(n){const a=n.slice();return a.sort((r,l)=>r.x<l.x?-1:r.x>l.x?1:r.y<l.y?-1:r.y>l.y?1:0),AA(a)}function AA(n){if(n.length<=1)return n.slice();const a=[];for(let l=0;l<n.length;l++){const o=n[l];for(;a.length>=2;){const c=a[a.length-1],d=a[a.length-2];if((c.x-d.x)*(o.y-d.y)>=(c.y-d.y)*(o.x-d.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let l=n.length-1;l>=0;l--){const o=n[l];for(;r.length>=2;){const c=r[r.length-1],d=r[r.length-2];if((c.x-d.x)*(o.y-d.y)>=(c.y-d.y)*(o.x-d.x))r.pop();else break}r.push(o)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var TA=u1;function m1(n){var a,r,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;
vendor: 4,727 bytes, line 49
49a++)n[a]&&(r=m1(n[a]))&&(l&&(l+=" "),l+=r)}else for(r in n)n[r]&&(l&&(l+=" "),l+=r);return l}function h1(){for(var n,a,r=0,l="",o=arguments.length;r<o;r++)(n=arguments[r])&&(a=m1(n))&&(l&&(l+=" "),l+=a);return l}const pm="-",OA=n=>{const a=_A(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:l}=n;return{getClassGroupId:d=>{const m=d.split(pm);return m[0]===""&&m.length!==1&&m.shift(),g1(m,a)||DA(d)},getConflictingClassGroupIds:(d,m)=>{const h=r[d]||[];return m&&l[d]?[...h,...l[d]]:h}}},g1=(n,a)=>{if(n.length===0)return a.classGroupId;const r=n[0],l=a.nextPart.get(r),o=l?g1(n.slice(1),l):void 0;if(o)return o;if(a.validators.length===0)return;const c=n.join(pm);return a.validators.find(({validator:d})=>d(c))?.classGroupId},Ny=/^\[(.+)\]$/,DA=n=>{if(Ny.test(n)){const a=Ny.exec(n)[1],r=a?.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},_A=n=>{const{theme:a,classGroups:r}=n,l={nextPart:new Map,validators:[]};for(const o in r)Rp(r[o],l,o,a);return l},Rp=(n,a,r,l)=>{n.forEach(o=>{if(typeof o=="string"){const c=o===""?a:Ey(a,o);c.classGroupId=r;return}if(typeof o=="function"){if(RA(o)){Rp(o(l),a,r,l);return}a.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([c,d])=>{Rp(d,Ey(a,c),r,l)})})},Ey=(n,a)=>{let r=n;return a.split(pm).forEach(l=>{r.nextPart.has(l)||r.nextPart.set(l,{nextPart:new Map,validators:[]}),r=r.nextPart.get(l)}),r},RA=n=>n.isThemeGetter,MA=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,l=new Map;const o=(c,d)=>{r.set(c,d),a++,a>n&&(a=0,l=r,r=new Map)};return{get(c){let d=r.get(c);if(d!==void 0)return d;if((d=l.get(c))!==void 0)return o(c,d),d},set(c,d){r.has(c)?r.set(c,d):o(c,d)}}},Mp="!",zp=":",zA=zp.length,KA=n=>{const{prefix:a,experimentalParseClassName:r}=n;let l=o=>{const c=[];let d=0,m=0,h=0,g;for(let C=0;C<o.length;C++){let S=o[C];if(d===0&&m===0){if(S===zp){c.push(o.slice(h,C)),h=C+zA;continue}if(S==="/"){g=C;continue}}S==="["?d++:S==="]"?d--:S==="("?m++:S===")"&&m--}const x=c.length===0?o:o.substring(h),v=BA(x),w=v!==x,j=g&&g>h?g-h:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:v,maybePostfixModifierPosition:j}};if(a){const o=a+zp,c=l;l=d=>d.startsWith(o)?c(d.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(r){const o=l;l=c=>r({className:c,parseClassName:o})}return l},BA=n=>n.endsWith(Mp)?n.substring(0,n.length-1):n.startsWith(Mp)?n.substring(1):n,PA=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(l=>[l,!0]));return l=>{if(l.length<=1)return l;const o=[];let c=[];return l.forEach(d=>{d[0]==="["||a[d]?(o.push(...c.sort(),d),c=[]):c.push(d)}),o.push(...c.sort()),o}},LA=n=>({cache:MA(n.cacheSize),parseClassName:KA(n),sortModifiers:PA(n),...OA(n)}),UA=/\s+/,HA=(n,a)=>{const{parseClassName:r,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:c}=a,d=[],m=n.trim().split(UA);let h="";for(let g=m.length-1;g>=0;g-=1){const x=m[g],{isExternal:v,modifiers:w,hasImportantModifier:j,baseClassName:C,maybePostfixModifierPosition:S}=r(x);if(v){h=x+(h.length>0?" "+h:h);continue}let T=!!S,E=l(T?C.substring(0,S):C);if(!E){if(!T){h=x+(h.length>0?" "+h:h);continue}if(E=l(C),!E){h=x+(h.length>0?" "+h:h);continue}T=!1}const _=c(w).join(":"),O=j?_+Mp:_,B=O+E;if(d.includes(B))continue;d.push(B);const P=o(E,T);for(let R=0;R<P.length;++R){const A=P[R];d.push(O+A)}h=x+(h.length>0?" "+h:h)}return h};function qA(){let n=0,a,r,l="";for(;n<arguments.length;)(a=arguments[n++])&&(r=v1(a))&&(l&&(l+=" "),l+=r);return l}const v1=n=>{if(typeof n=="string")return n;let a,r="";for(let l=0;l<n.length;l++)n[l]&&(a=v1(n[l]))&&(r&&(r+=" "),r+=a);return r};function VA(n,...a){let r,l,o,c=d;function d(h){const g=a.reduce((x,v)=>v(x),n());return r=LA(g),l=r.cache.get,o=r.cache.set,c=m,m(h)}function m(h){const g=l(h);if(g)return g;const x=HA(h,r);return o(h,x),x}return function(){return c(qA.apply(null,arguments))}}const Et=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},x1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QA=/^\d+\/\d+$/,IA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,FA=/\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$/,GA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XA=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Gr=n=>QA.test(n),Pe=n=>!!n&&!Number.isNaN(Number(n)),ts=n=>!!n&&Number.isInteger(Number(n)),Cf=n=>n.endsWith("%")&&Pe(n.slice(0,-1)),Sa=n=>IA.test(n),ZA=()=>!0,$A=n=>FA.test(n)&&!GA.test(n),b1=()=>!1,WA=n=>YA.test(n),JA=n=>XA.test(n),e5=n=>!xe(n)&&!ye(n),t5=n=>
vendor: 4,187 bytes, line 49
49pl(n,j1,b1),xe=n=>x1.test(n),Bs=n=>pl(n,N1,$A),kf=n=>pl(n,l5,Pe),Cy=n=>pl(n,w1,b1),n5=n=>pl(n,S1,JA),rc=n=>pl(n,E1,WA),ye=n=>y1.test(n),fi=n=>ml(n,N1),a5=n=>ml(n,i5),ky=n=>ml(n,w1),s5=n=>ml(n,j1),r5=n=>ml(n,S1),lc=n=>ml(n,E1,!0),pl=(n,a,r)=>{const l=x1.exec(n);return l?l[1]?a(l[1]):r(l[2]):!1},ml=(n,a,r=!1)=>{const l=y1.exec(n);return l?l[1]?a(l[1]):r:!1},w1=n=>n==="position"||n==="percentage",S1=n=>n==="image"||n==="url",j1=n=>n==="length"||n==="size"||n==="bg-size",N1=n=>n==="length",l5=n=>n==="number",i5=n=>n==="family-name",E1=n=>n==="shadow",o5=()=>{const n=Et("color"),a=Et("font"),r=Et("text"),l=Et("font-weight"),o=Et("tracking"),c=Et("leading"),d=Et("breakpoint"),m=Et("container"),h=Et("spacing"),g=Et("radius"),x=Et("shadow"),v=Et("inset-shadow"),w=Et("text-shadow"),j=Et("drop-shadow"),C=Et("blur"),S=Et("perspective"),T=Et("aspect"),E=Et("ease"),_=Et("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],B=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...B(),ye,xe],R=()=>["auto","hidden","clip","visible","scroll"],A=()=>["auto","contain","none"],M=()=>[ye,xe,h],q=()=>[Gr,"full","auto",...M()],$=()=>[ts,"none","subgrid",ye,xe],W=()=>["auto",{span:["full",ts,ye,xe]},ts,ye,xe],Y=()=>[ts,"auto",ye,xe],J=()=>["auto","min","max","fr",ye,xe],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...M()],V=()=>[Gr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],L=()=>[n,ye,xe],oe=()=>[...B(),ky,Cy,{position:[ye,xe]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",s5,t5,{size:[ye,xe]}],Q=()=>[Cf,fi,Bs],H=()=>["","none","full",g,ye,xe],Z=()=>["",Pe,fi,Bs],re=()=>["solid","dashed","dotted","double"],fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],F=()=>[Pe,Cf,ky,Cy],le=()=>["","none",C,ye,xe],pe=()=>["none",Pe,ye,xe],Ee=()=>["none",Pe,ye,xe],Ne=()=>[Pe,ye,xe],ke=()=>[Gr,"full",...M()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sa],breakpoint:[Sa],color:[ZA],container:[Sa],"drop-shadow":[Sa],ease:["in","out","in-out"],font:[e5],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sa],shadow:[Sa],spacing:["px",Pe],text:[Sa],"text-shadow":[Sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Gr,xe,ye,T]}],container:["container"],columns:[{columns:[Pe,xe,ye,m]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:A()}],"overscroll-x":[{"overscroll-x":A()}],"overscroll-y":[{"overscroll-y":A()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:q()}],"inset-x":[{"inset-x":q()}],"inset-y":[{"inset-y":q()}],start:[{start:q()}],end:[{end:q()}],top:[{top:q()}
vendor: 11,578 bytes, line 49
49],right:[{right:q()}],bottom:[{bottom:q()}],left:[{left:q()}],visibility:["visible","invisible","collapse"],z:[{z:[ts,"auto",ye,xe]}],basis:[{basis:[Gr,"full","auto",m,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Pe,Gr,"auto","initial","none",xe]}],grow:[{grow:["",Pe,ye,xe]}],shrink:[{shrink:["",Pe,ye,xe]}],order:[{order:[ts,"first","last","none",ye,xe]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:V()}],w:[{w:[m,"screen",...V()]}],"min-w":[{"min-w":[m,"screen","none",...V()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",r,fi,Bs]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ye,kf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cf,xe]}],"font-family":[{font:[a5,xe,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ye,xe]}],"line-clamp":[{"line-clamp":[Pe,"none",ye,kf]}],leading:[{leading:[c,...M()]}],"list-image":[{"list-image":["none",ye,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Pe,"from-font","auto",ye,Bs]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[Pe,"auto",ye,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,xe]}],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",ye,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:oe()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ts,ye,xe],radial:["",ye,xe],conic:[ts,ye,xe]},r5,n5]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:Q()}],"gradient-via-pos":[{via:Q()}],"gradient-to-pos":[{to:Q()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:H()}],"rounded-s":[{"rounded-s":H()}],"rounded-e":[{"rounded-e":H()}],"rounded-t":[{"rounded-t":H()}],"rounded-r":[{"rounded-r":H()}],"rounded-b":[{"rounded-b":H()}],"rounded-l":[{"rounded-l":H()}],"rounded-ss":[{"rounded-ss":H()}],"rounded-se":[{"rounded-se":H()}],"rounded-ee":[{"rounded-ee":H()}],"rounded-es":[{"rounded-es":H()}],"rounded-tl":[{"rounded-tl":H()}],"rounded-tr":[{"rounded-tr":H()}],"rounded-br":[{"rounded-br":H()}],"rounded-bl":[{"rounded-bl":H()}],"border-w":[{border:Z()}],"border-w-x":[{"border-x":Z()}],"border-w-y":[{"border-y":Z()}],"border-w-s":[{"border-s":Z()}],"border-w-e":[{"border-e":Z()}],"border-w-t":[{"border-t":Z()}],"border-w-r":[{"border-r":Z()}],"border-w-b":[{"border-b":Z()}],"border-w-l":[{"border-l":Z()}],"divide-x":[{"divide-x":Z()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Z()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Pe,ye,xe]}],"outline-w":[{outline:["",Pe,fi,Bs]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",x,lc,rc]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",v,lc,rc]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:Z()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[Pe,Bs]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":Z()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",w,lc,rc]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[Pe,ye,xe]}],"mix-blend":[{"mix-blend":[...fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Pe]}],"mask-image-linear-from-pos":[{"mask-linear-from":F()}],"mask-image-linear-to-pos":[{"mask-linear-to":F()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":F()}],"mask-image-t-to-pos":[{"mask-t-to":F()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":F()}],"mask-image-r-to-pos":[{"mask-r-to":F()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":F()}],"mask-image-b-to-pos":[{"mask-b-to":F()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":F()}],"mask-image-l-to-pos":[{"mask-l-to":F()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":F()}],"mask-image-x-to-pos":[{"mask-x-to":F()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":F()}],"mask-image-y-to-pos":[{"mask-y-to":F()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[ye,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":F()}],"mask-image-radial-to-pos":[{"mask-radial-to":F()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":B()}],"mask-image-conic-pos":[{"mask-conic":[Pe]}],"mask-image-conic-from-pos":[{"mask-conic-from":F()}],"mask-image-conic-to-pos":[{"mask-conic-to":F()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:oe()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,xe]}],filter:[{filter:["","none",ye,xe]}],blur:[{blur:le()}],brightness:[{brightness:[Pe,ye,xe]}],contrast:[{contrast:[Pe,ye,xe]}],"drop-shadow":[{"drop-shadow":["","none",j,lc,rc]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",Pe,ye,xe]}],"hue-rotate":[{"hue-rotate":[Pe,ye,xe]}],invert:[{invert:["",Pe,ye,xe]}],saturate:[{saturate:[Pe,ye,xe]}],sepia:[{sepia:["",Pe,ye,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,xe]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Pe,ye,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Pe,ye,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Pe,ye,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Pe,ye,xe]}],"backdrop-invert":[{"backdrop-invert":["",Pe,ye,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Pe,ye,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Pe,ye,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Pe,ye,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Pe,"initial",ye,xe]}],ease:[{ease:["linear","initial",E,ye,xe]}],delay:[{delay:[Pe,ye,xe]}],animate:[{animate:["none",_,ye,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,ye,xe]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:Ee()}],"scale-x":[{"scale-x":Ee()}],"scale-y":[{"scale-y":Ee()}],"scale-z":[{"scale-z":Ee()}],"scale-3d":["scale-3d"],skew:[{skew:Ne()}],"skew-x":[{"skew-x":Ne()}],"skew-y":[{"skew-y":Ne()}],transform:[{transform:[ye,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}
vendor: 6,970 bytes, line 49
49],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],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",ye,xe]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[Pe,fi,Bs,kf]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},c5=VA(o5);function tt(...n){return c5(h1(n))}function u5({delayDuration:n=0,...a}){return u.jsx(TA,{"data-loc":"client/src/components/ui/tooltip.tsx:11","data-slot":"tooltip-provider",delayDuration:n,...a})}const Ay=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Ty=h1,d5=(n,a)=>r=>{var l;if(a?.variants==null)return Ty(n,r?.class,r?.className);const{variants:o,defaultVariants:c}=a,d=Object.keys(o).map(g=>{const x=r?.[g],v=c?.[g];if(x===null)return null;const w=Ay(x)||Ay(v);return o[g][w]}),m=r&&Object.entries(r).reduce((g,x)=>{let[v,w]=x;return w===void 0||(g[v]=w),g},{}),h=a==null||(l=a.compoundVariants)===null||l===void 0?void 0:l.reduce((g,x)=>{let{class:v,className:w,...j}=x;return Object.entries(j).every(C=>{let[S,T]=C;return Array.isArray(T)?T.includes({...c,...m}[S]):{...c,...m}[S]===T})?[...g,v,w]:g},[]);return Ty(n,d,h,r?.class,r?.className)},mm=d5("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 je({className:n,variant:a,size:r,asChild:l=!1,...o}){const c=l?w4:"button";return u.jsx(c,{"data-loc":"client/src/components/ui/button.tsx:52","data-slot":"button",className:tt(mm({variant:a,size:r,className:n})),...o})}function f5({className:n,...a}){return u.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:7","data-slot":"card",className:tt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n
vendor: 5,654 bytes, lines 49-133
49),...a})}function p5({className:n,...a}){return u.jsx("div",{"data-loc":"client/src/components/ui/card.tsx:66","data-slot":"card-content",className:tt("px-6",n),...a})}/** 50 * @license lucide-react v0.453.0 - ISC 51 * 52 * This source code is licensed under the ISC license. 53 * See the LICENSE file in the root directory of this source tree. 54 */const m5=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),C1=(...n)=>n.filter((a,r,l)=>!!a&&l.indexOf(a)===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 h5={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 g5=b.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:l,className:o="",children:c,iconNode:d,...m},h)=>b.createElement("svg",{ref:h,...h5,width:a,height:a,stroke:n,strokeWidth:l?Number(r)*24/Number(a):r,className:C1("lucide",o),...m},[...d.map(([g,x])=>b.createElement(g,x)),...Array.isArray(c)?c:[c]]));/** 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 Te=(n,a)=>{const r=b.forwardRef(({className:l,...o},c)=>b.createElement(g5,{ref:c,iconNode:a,className:C1(`lucide-${m5(n)}`,l),...o}));return r.displayName=`${n}`,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 Js=Te("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 Af=Te("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 v5=Te("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"}]]);/** 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 Oy=Te("Calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]);/** 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 Ei=Te("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/** 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 Na=Te("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** 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 k1=Te("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** 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 x5=Te("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 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 y5=Te("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** 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 hm=Te("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"}]]);/** 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 Dy=Te("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 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 _y=Te("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/** 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 b5=Te("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"}]]);/** 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 w5=Te("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"}]]);/** 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 Ry=Te("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/** 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 S5=Te("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/** 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 Qs=Te("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"}]]);/** 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 fs=Te("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]]);/** 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 j5=Te("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"}]]);/** 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 N5=Te("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"}]]);/** 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 E5=Te("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** 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 Qe=Te("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** 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 C5=Te("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"}]]);/** 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 A1=Te("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"}]]);/** 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 T1=Te("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"}]]);/** 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 Us=Te("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/** 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 O1=Te("PaintRoller",[["rect",{width:"16",height:"6",x:"2",y:"2",rx:"2",key:"jcyz7m"}],["path",{d:"M10 16v-2a2 2 0 0 1 2-2h8a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2",key:"1b9h7c"}],["rect",{width:"4",height:"6",x:"8",y:"16",rx:"1",key:"d6e7yl"}]]);/** 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 k5=Te("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/** 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 A5=Te("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** 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 D1=Te("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/** 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 cl=Te("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** 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 T5=Te("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"}]]);/** 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 _1=Te("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"}]]);/** 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 R1=Te("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/** 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 Tf=Te("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/** 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 O5=Te("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 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 D5=Te("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/** 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 _5=Te("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 7,480 bytes, lines 259-317
259y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** 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 Kp=Te("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/** 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 M1=Te("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 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 Pi=Te("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"}]]);/** 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 R5=Te("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"}]]);/** 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 z1=Te("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"}]]);/** 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 M5=Te("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/** 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 Cc=Te("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"}]]);/** 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 z5=Te("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"}]]);/** 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 K1=Te("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"}]]);/** 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 gm=Te("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function K5(n,a){if(n instanceof RegExp)return{keys:!1,pattern:n};var r,l,o,c,d=[],m="",h=n.split("/");for(h[0]||h.shift();o=h.shift();)r=o[0],r==="*"?(d.push(r),m+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(l=o.indexOf("?",1),c=o.indexOf(".",1),d.push(o.substring(1,~l?l:~c?c:o.length)),m+=~l&&!~c?"(?:/([^/]+?))?":"/([^/]+?)",~c&&(m+=(~l?"?":"")+"\\"+o.substring(c))):m+="/"+o;return{keys:d,pattern:new RegExp("^"+m+(a?"(?=$|/)":"/?$"),"i")}}var Of={exports:{}},Df={};/** 310 * @license React 311 * use-sync-external-store-shim.production.js 312 * 313 * Copyright (c) Meta Platforms, Inc. and affiliates. 314 * 315 * This source code is licensed under the MIT license found in the 316 * LICENSE file in the root directory of this source tree. 317 */var My;function B5(){if(My)return Df;My=1;var n=Dc();function a(v,w){return v===w&&(v!==0||1/v===1/w)||v!==v&&w!==w}var r=typeof Object.is=="function"?Object.is:a,l=n.useState,o=n.useEffect,c=n.useLayoutEffect,d=n.useDebugValue;function m(v,w){var j=w(),C=l({inst:{value:j,getSnapshot:w}}),S=C[0].inst,T=C[1];return c(function(){S.value=j,S.getSnapshot=w,h(S)&&T({inst:S})},[v,j,w]),o(function(){return h(S)&&T({inst:S}),v(function(){h(S)&&T({inst:S})})},[v]),d(j),j}function h(v){var w=v.getSnapshot;v=v.value;try{var j=w();return!r(v,j)}catch{return!0}}function g(v,w){return w()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Df.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,Df}var zy;function P5(){return zy||(zy=1,Of.exports=B5()),Of.exports}var L5=P5();const U5=_c.useInsertionEffect,H5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q5=H5?b.useLayoutEffect:b.useEffect,V5=U5||q5,B1=n=>{const a=b.useRef([n,(...r)=>a[0](...r)]).current;return V5(()=>{a[0]=n}),a[1]},Q5="popstate",vm="pushState",xm="replaceState",I5="hashchange",Ky=[Q5,vm,xm,I5],F5=n=>{for(const a of Ky)addEventListener(a,n);return()=>{for(const a of Ky)removeEventListener(a,n)}},P1=(n,a)=>L5.useSyncExternalStore(F5,n,a),G5=()=>location.search,Y5=({ssrSearch:n=""}={})=>P1(G5,()=>n),By=()=>location.pathname,X5=({ssrPath:n}={})=>P1(By,n?()=>n:By),Z5=(n,{replace:a=!1,state:r=null}={})=>history[a?xm:vm](r,"",n),$5=(n={})=>[X5(n),Z5],Py=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Py]>"u"){for(const n of[vm,xm]){const a=history[n];history[n]=function(){const r=a.apply(this,arguments),l=new Event(n);return l.arguments=arguments,dispatchEvent(l),r}}Object.defineProperty(window,Py,{value:!0})}const W5=(n,a)=>a.toLowerCase().indexOf(n.toLowerCase())?"~"+a:a.slice(n.length)||"/",L1=(n="")=>n==="/"?"":n,J5=(n,a)=>n[0]==="~"?n.slice(1):L1(a)+n,e3=(n="",a)=>W5(Ly(L1(n)),Ly(a)),Ly=n=>{try{return decodeURI(n)}catch{return n}},U1={hook:$5,searchHook:Y5,parser:K5,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n},H1=b.createContext(U1),hl=()=>b.useContext(H1),q1={},V1=b.createContext(q1),t3=()=>b.useContext(V1),Gc=n=>{const[a,r]=n.hook(n);return[e3(n.base,a),B1((l,o)=>r(J5(l,n.base),o))]},er=()=>Gc(hl()),ym=(n,a,r,l)=>{const{pattern:o,keys:c}=a instanceof RegExp?{keys:!1,pattern:a}:n(a||"*",l),d=o.exec(r)||[],[m,...h]=d;return m!==void 0?[!0,(()=>{const g=c!==!1?Object.fromEntries(c.map((v,w)=>[v,h[w]])):d.groups;let x={...h};return g&&Object.assign(x,g),x})(),...l?[m]:[]]:[!1,null]},Yc=n=>ym(hl().parser,n,er()[0]),n3=({children:n,...a})=>{const r=hl(),l=a.hook?U1:r;let o=l;const[c,d]=a.ssrPath?.split("?")??[];d&&(a.ssrSearch=d,a.ssrPath=c),a.hrefs=a.hrefs??a.hook?.hrefs;let m=b.useRef({}),h=m.current,g=h;
317for(let x in l){const v=x==="base"?l[x]+(a[x]||""):a[x]||l[x];h===g&&v!==g[x]&&(m.current=g={...g}),g[x]=v,(v!==l[x]||v!==o[x])&&(o=g)}return b.createElement(H1.Provider,{value:o,children:n})},Uy=({children:n,component:a},r)=>a?b.createElement(a,{params:r}):typeof n=="function"?n(r):n,a3=n=>{let a=b.useRef(q1);const r=a.current;return a.current=Object.keys(n).length!==Object.keys(r).length||Object.entries(n).some(([l,o])=>o!==r[l])?n:r},Qt=({path:n,nest:a,match:r,...l})=>{const o=hl(),[c]=Gc(o),[d,m,h]=r??ym(o.parser,n,c,a),g=a3({...t3(),...m});if(!d)return null;const x=h?b.createElement(n3,{base:h},Uy(l,g)):Uy(l,g);return b.createElement(V1.Provider,{value:g,children:x})},ft=b.forwardRef((n,a)=>{const r=hl(),[l,o]=Gc(r),{to:c="",href:d=c,onClick:m,asChild:h,children:g,className:x,replace:v,state:w,...j}=n,C=B1(T=>{T.ctrlKey||T.metaKey||T.altKey||T.shiftKey||T.button!==0||(m?.(T),T.defaultPrevented||(T.preventDefault(),o(d,n)))}),S=r.hrefs(d[0]==="~"?d.slice(1):r.base+d,r);return h&&b.isValidElement(g)?b.cloneElement(g,{onClick:C,href:S}):b.createElement("a",{...j,onClick:C,href:S,className:x?.call?x(l===d):x,children:g,ref:a})}),Bp=n=>Array.isArray(n)?n.flatMap(a=>Bp(a&&a.type===b.Fragment?a.props.children:a)):[n],s3=({children:n,location:a})=>{const r=hl(),[l]=Gc(r);typeof window<"u"&&(window.__WOUTER_ROUTES__||(window.__WOUTER_ROUTES__=[]),Bp(n).forEach(c=>{if(b.isValidElement(c)&&c.props.path){const d=c.props.path;window.__WOUTER_ROUTES__.includes(d)||window.__WOUTER_ROUTES__.push(d)}}));for(const o of Bp(n)){let c=0;if(b.isValidElement(o)&&(c=ym(r.parser,o.props.path,a||l,o.props.nest))[0])return b.cloneElement(o,{match:c})}return null};function Hy(){const[,n]=er(),a=()=>{n("/")};return u.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:u.jsx(f5,{"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:u.jsxs(p5,{"data-loc":"client/src/pages/NotFound.tsx:16",className:"pt-8 pb-8 text-center",children:[u.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:17",className:"flex justify-center mb-6",children:u.jsxs("div",{"data-loc":"client/src/pages/NotFound.tsx:18",className:"relative",children:[u.jsx("div",{"data-loc":"client/src/pages/NotFound.tsx:19",className:"absolute inset-0 bg-red-100 rounded-full animate-pulse"}),u.jsx(hm,{"data-loc":"client/src/pages/NotFound.tsx:20",className:"relative h-16 w-16 text-red-500"})]})}),u.jsx("h1",{"data-loc":"client/src/pages/NotFound.tsx:24",className:"text-4xl font-bold text-slate-900 mb-2",children:"404"}),u.jsx("h2",{"data-loc":"client/src/pages/NotFound.tsx:26",className:"text-xl font-semibold text-slate-700 mb-4",children:"Page Not Found"}),u.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.",u.jsx("br",{"data-loc":"client/src/pages/NotFound.tsx:32"}),"It may have been moved or deleted."]}),u.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:u.jsxs(je,{"data-loc":"client/src/pages/NotFound.tsx:40",onClick:a,className:"bg-blue-600 hover:bg-blue-700 text-white px-6 py-2.5 rounded-lg transition-all duration-200 shadow-md hover:shadow-lg",children:[u.jsx(j5,{"data-loc":"client/src/pages/NotFound.tsx:44",className:"w-4 h-4 mr-2"}),"Go Home"]})})]})})})}class r3 extends b.Component{constructor(a){super(a),this.state={hasError:!1,error:null}}static getDerivedStateFromError(a){return{hasError:!0,error:a}}render(){return this.state.hasError?u.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:u.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[u.jsx(z1,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),u.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),u.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:u.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),u.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:tt("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[u.jsx(T5,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const l3=b.createContext(void 0);function i3({children:n,defaultTheme:a="light",switchable:r=!1}){const[l,o]=b.useState(()=>r&&localStorage.getItem("theme")||a);b.useEffect(()=>{const d=document.documentElement;l==="dark"?d.classList.add("dark"):d.classList.remove("dark"),r&&localStorage.setItem("theme",l)},[l,r]);const c=r?()=>{o(d=>d==="light"?"dark":"light")}:void 0;return u.jsx(l3.Provider,{"data-loc":"client/src/contexts/ThemeContext.tsx:52",value:{theme:l,toggleTheme:c,switchable:r},children:n})}const tl=()=>{const n="https://manus.im",a="ikXaB6DkzW5Z64V94qpmvL",r=`${window.location.origin}/api/oauth/callback`,l=btoa(r),o=new URL(`${n}/app-auth`);return o.searchParams.set("appId",a),o.searchParams.set("redirectUri",r),o.searchParams.set("state",l),o.searchParams.set("type","signIn"),o.toString()};function bm(n){const{redirectOnUnauthenticated:a=!1,redirectPath:r=tl()}={},l=be.useUtils(),o=be.auth.me.useQuery(void 0,{retry:!1,refetchOnWindowFocus:!1}),c=be.auth.logout.useMutation({onSuccess:()=>{l.auth.me.setData(void 0,null)}}),d=b.useCallback(async()=>{try{await c.mutateAsync()}catch(h){if(h instanceof sl&&h.data?.code==="UNAUTHORIZED")return;throw h}
317finally{l.auth.me.setData(void 0,null),await l.auth.me.invalidate()}},[c,l]),m=b.useMemo(()=>(localStorage.setItem("manus-runtime-user-info",JSON.stringify(o.data)),{user:o.data??null,loading:o.isLoading||c.isPending,error:o.error??c.error??null,isAuthenticated:!!o.data}),[o.data,o.error,o.isLoading,c.error,c.isPending]);return b.useEffect(()=>{a&&(o.isLoading||c.isPending||m.user||typeof window>"u"||window.location.pathname!==r&&(window.location.href=r))},[a,r,c.isPending,o.isLoading,m.user]),{...m,refresh:()=>o.refetch(),logout:d}}function o3(){const{isAuthenticated:n}=bm(),a=[{icon:Us,titel:"Spreek je klus in",tekst:"Vertel wat je gedaan hebt â AI maakt direct een nette offerte of factuur. Geen getyp meer in de bus."},{icon:Ei,titel:"Digitale werkbon",tekst:"Foto's, materialen en handtekening van de klant op locatie. Meerwerk vastgelegd met bewijs."},{icon:w5,titel:"Sneller betaald",tekst:"iDEAL-betaalverzoek op elke factuur en automatische herinneringen. Geen achterstallige betalingen."},{icon:_5,titel:"Veilig & e-factuur-klaar",tekst:"Alles veilig in de cloud bewaard en UBL-export (Peppol-stijl) voor de aankomende e-factureringsplicht."}];return u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:18",className:"min-h-screen bg-background",children:[u.jsx("header",{"data-loc":"client/src/pages/Home.tsx:20",className:"border-b border-border",children:u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:21",className:"max-w-6xl mx-auto px-4 h-16 flex items-center justify-between",children:[u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:22",className:"flex items-center gap-2 font-bold text-lg text-primary",children:[u.jsx("div",{"data-loc":"client/src/pages/Home.tsx:23",className:"w-9 h-9 rounded-lg bg-primary flex items-center justify-center",children:u.jsx(fs,{"data-loc":"client/src/pages/Home.tsx:24",className:"h-5 w-5 text-primary-foreground"})}),"KlusApp"]}),n?u.jsx(ft,{"data-loc":"client/src/pages/Home.tsx:29",href:"/app",children:u.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:29",children:["Naar mijn app ",u.jsx(Af,{"data-loc":"client/src/pages/Home.tsx:29",className:"h-4 w-4 ml-1"})]})}):u.jsx(je,{"data-loc":"client/src/pages/Home.tsx:31",variant:"outline",className:"bg-card",onClick:()=>window.location.href=tl(),children:"Inloggen"})]})}),u.jsx("section",{"data-loc":"client/src/pages/Home.tsx:39",className:"relative overflow-hidden",children:u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:40",className:"max-w-6xl mx-auto px-4 py-16 md:py-24 grid md:grid-cols-2 gap-12 items-center",children:[u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:41",children:[u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:42",className:"inline-flex items-center gap-2 px-3 py-1 rounded-full bg-accent/15 text-accent-foreground text-sm font-medium mb-5",children:[u.jsx(Us,{"data-loc":"client/src/pages/Home.tsx:43",className:"h-4 w-4"})," Van klus naar geld â zonder typen"]}),u.jsxs("h1",{"data-loc":"client/src/pages/Home.tsx:45",className:"text-4xl md:text-5xl font-extrabold leading-tight text-foreground mb-5",children:["De hele administratie van je klusbedrijf in ",u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:46",className:"text-primary",children:"één app"})]}),u.jsx("p",{"data-loc":"client/src/pages/Home.tsx:48",className:"text-lg text-muted-foreground mb-8",children:"Werkbon, offerte, factuur en betaling â gewoon door je klus in te spreken. Speciaal voor de Nederlandse ZZP-vakman die geen tijd heeft voor administratie."}),u.jsx("div",{"data-loc":"client/src/pages/Home.tsx:51",className:"flex flex-col sm:flex-row gap-3",children:u.jsxs(je,{"data-loc":"client/src/pages/Home.tsx:52",size:"lg",onClick:()=>window.location.href=n?"/app":tl(),children:["Gratis 30 dagen proberen ",u.jsx(Af,{"data-loc":"client/src/pages/Home.tsx:53",className:"h-4 w-4 ml-1"})]})}),u.jsxs("p",{"data-loc":"client/src/pages/Home.tsx:56",className:"text-sm text-muted-foreground mt-4 flex items-center gap-2",children:[u.jsx(Na,{"data-loc":"client/src/pages/Home.tsx:57",className:"h-4 w-4 text-emerald-600"})," Geen creditcard nodig · â¬14,99/mnd daarna"]})]}),u.jsx("div",{"data-loc":"client/src/pages/Home.tsx:60",className:"relative",children:u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:61",className:"aspect-[4/5] rounded-2xl bg-gradient-to-br from-primary to-primary/70 p-8 flex flex-col justify-center shadow-2xl",children:[u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:62",className:"bg-card rounded-xl p-5 shadow-lg mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:63",className:"flex items-center gap-2 text-sm text-muted-foreground mb-3",children:[u.jsx(Us,{"data-loc":"client/src/pages/Home.tsx:64",className:"h-4 w-4 text-accent"})," Ingesproken"]}),u.jsx("p",{"data-loc":"client/src/pages/Home.tsx:66",className:"text-sm italic text-foreground",children:'"Badkamer betegeld, 12 vierkante meter, plus 4 uur arbeid en een nieuwe kraan gemonteerd."'})]}),u.jsx("div",{"data-loc":"client/src/pages/Home.tsx:68",className:"flex justify-center my-1",children:u.jsx(Af,{"data-loc":"client/src/pages/Home.tsx:68",className:"h-5 w-5 text-primary-foreground rotate-90"})}),u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:69",className:"bg-card rounded-xl p-5 shadow-lg",children:[u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:70",className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(Qs,{"data-loc":"client/src/pages/Home.tsx:70",className:"h-4 w-4 text-primary"})," Factuur klaar"]}),u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:71",className:"space-y-2 text-sm",children:[u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:72",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:72",children:"Tegelwerk 12 m²"}),u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:72",className:"font-medium",children:"⬠540,00"})]}),u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:73",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:73",children:"Arbeid 4 uur"}),u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:73",className:"font-medium",children:"⬠220,00"})]}),u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:74",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:74",children:"Kraan monteren"}),u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:74",className:"font-medium",children:"⬠95,00"})]}),u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:75",className:"flex justify-between border-t border-border pt-2 font-bold",children:[u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:75",children:"Totaal incl. btw"}),u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:75",className:"text-primary",children:"⬠1.034,15"})]})]})]})]})})]})}),u.jsx("section",{"data-loc":"client/src/pages/Home.tsx:84",className:"bg-secondary/40 py-16",children:u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:85",className:"max-w-6xl mx-auto px-4",children:[u.jsx("h2",{"data-loc":"client/src/pages/Home.tsx:86",className:"text-3xl font-bold text-center mb-3",children:"Alles wat je echt nodig hebt"}),u.jsx("p",{"data-loc":"client/src/pages/Home.tsx:87",className:"text-muted-foreground text-center mb-12 max-w-2xl mx-auto",children:"Geen losse werkbon-app én boekhoudprogramma meer. KlusApp doet het allebei â en bespaart je elke week uren."}),u.jsx("div",{"data-loc":"client/src/pages/Home.tsx:90",className:"grid sm:grid-cols-2 gap-6",children:a.map(r=>{const l=r.icon;return u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:94",className:"bg-card rounded-xl p-6 border border-border",children:[u.jsx("div",{"data-loc":"client/src/pages/Home.tsx:95",className:"w-11 h-11 rounded-lg bg-primary/10 flex items-center justify-center mb-4",children:u.jsx(l,{"data-loc":"client/src/pages/Home.tsx:96",className:"h-6 w-6 text-primary"})}),u.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:98",className:"font-semibold text-lg mb-1",children:r.titel}),u.jsx("p",{"data-loc":"client/src/pages/Home.tsx:99",className:"text-muted-foreground text-sm",children:r.tekst})]},r.titel)})})]})}),u.jsx("section",{"data-loc":"client/src/pages/Home.tsx:108",className:"py-16",children:u.jsx("div",{"data-loc":"client/src/pages/Home.tsx:109",className:"max-w-md mx-auto px-4",children:u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:110",className:"bg-card rounded-2xl border-2 border-primary p-8 text-center shadow-lg",children:[u.jsx("h3",{"data-loc":"client/src/pages/Home.tsx:111",className:"text-xl font-bold mb-1",children:"KlusApp Pro"}),u.jsx("p",{"data-loc":"client/src/pages/Home.tsx:112",className:"text-muted-foreground text-sm mb-4",children:"Alles inbegrepen"}),u.jsxs("div",{"data-loc":"client/src/pages/Home.tsx:113",className:"mb-4",children:[u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:113",className:"text-4xl font-extrabold",children:"â¬14,99"}),u.jsx("span",{"data-loc":"client/src/pages/Home.tsx:113",className:"text-muted-foreground",children:"/maand"})]}),u.jsx("ul",{"data-loc":"client/src/pages/Home.tsx:114",className:"text-left space-y-2 text-sm mb-6",children:["Onbeperkt klussen, werkbonnen & facturen","AI-spraak naar factuur","iDEAL-betaalverzoeken","Foto + handtekening op locatie","Automatische herinneringen","Cloud-opslag (7 jaar)"].map(r=>u.jsxs("li",{"data-loc":"client/src/pages/Home.tsx:116",className:"flex items-center gap-2",children:[u.jsx(Na,{"data-loc":"client/src/pages/Home.tsx:116",className:"h-4 w-4 text-emerald-600 shrink-0"})," ",r]},r))}),u.jsx(je,{"data-loc":"client/src/pages/Home.tsx:119",className:"w-full",size:"lg",onClick:()=>window.location.href=n?"/app":tl(),children:"Start gratis proefperiode"}),u.jsx("p",{"data-loc":"client/src/pages/Home.tsx:122",className:"text-xs text-muted-foreground mt-3",children:"30 dagen gratis · daarna â¬14,99/mnd · maandelijks opzegbaar"})]})})}),u.jsx("footer",{"data-loc":"client/src/pages/Home.tsx:127",className:"border-t border-border py-8 text-center text-sm text-muted-foreground",children:"KlusApp â gemaakt voor de Nederlandse vakman"})]})}const c3=[{href:"/app",label:"Start",icon:N5,exact:!0},{href:"/app/klussen",label:"Klussen",icon:fs},{href:"/app/facturen",label:"Facturen",icon:Qs},{href:"/app/klanten",label:"Klanten",icon:K1},{href:"/app/instellingen",label:"Profiel",icon:O5}];function qt({children:n,title:a}){const{user:r,loading:l,isAuthenticated:o}=bm(),[c]=er(),{data:d}=be.klusapp.profiel.status.useQuery(void 0,{enabled:o});if(l)return u.jsx("div",{"data-loc":"client/src/components/AppLayout.t
317sx:26",className:"min-h-screen flex items-center justify-center bg-background",children:u.jsx(Qe,{"data-loc":"client/src/components/AppLayout.tsx:27",className:"h-8 w-8 animate-spin text-primary"})});if(!o)return u.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:34",className:"min-h-screen flex flex-col items-center justify-center bg-background px-6 text-center",children:[u.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:35",className:"w-16 h-16 rounded-2xl bg-primary flex items-center justify-center mb-6",children:u.jsx(fs,{"data-loc":"client/src/components/AppLayout.tsx:36",className:"h-8 w-8 text-primary-foreground"})}),u.jsx("h1",{"data-loc":"client/src/components/AppLayout.tsx:38",className:"text-2xl font-bold mb-2",children:"Inloggen bij KlusApp"}),u.jsx("p",{"data-loc":"client/src/components/AppLayout.tsx:39",className:"text-muted-foreground mb-6 max-w-sm",children:"Log in om je klussen, werkbonnen en facturen veilig in de cloud te beheren."}),u.jsx(je,{"data-loc":"client/src/components/AppLayout.tsx:42",size:"lg",onClick:()=>window.location.href=tl(),children:"Inloggen / Account aanmaken"}),u.jsx(ft,{"data-loc":"client/src/components/AppLayout.tsx:45",href:"/",className:"text-sm text-muted-foreground mt-4 hover:text-foreground",children:"Terug naar home"})]});const m=h=>h.exact?c===h.href:c.startsWith(h.href);return u.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:56",className:"min-h-screen bg-background pb-20",children:[u.jsx("header",{"data-loc":"client/src/components/AppLayout.tsx:57",className:"sticky top-0 z-30 bg-card/95 backdrop-blur border-b border-border",children:u.jsxs("div",{"data-loc":"client/src/components/AppLayout.tsx:58",className:"max-w-3xl mx-auto px-4 h-14 flex items-center justify-between",children:[u.jsxs(ft,{"data-loc":"client/src/components/AppLayout.tsx:59",href:"/app",className:"flex items-center gap-2 font-bold text-primary",children:[u.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:60",className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center",children:u.jsx(fs,{"data-loc":"client/src/components/AppLayout.tsx:61",className:"h-4 w-4 text-primary-foreground"})}),a||"KlusApp"]}),u.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:65",className:"text-sm text-muted-foreground truncate max-w-[140px]",children:r?.name})]})}),d&&!d.isPro&&u.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:70",className:"max-w-3xl mx-auto px-4 pt-3",children:d.trialVerlopen?u.jsxs(ft,{"data-loc":"client/src/components/AppLayout.tsx:72",href:"/app/instellingen",className:"flex items-center justify-between gap-2 rounded-xl bg-red-50 border border-red-200 px-4 py-3 text-sm",children:[u.jsxs("span",{"data-loc":"client/src/components/AppLayout.tsx:76",className:"flex items-center gap-2 text-red-700 font-medium",children:[u.jsx(_y,{"data-loc":"client/src/components/AppLayout.tsx:77",className:"h-4 w-4"})," Je proefperiode is verlopen"]}),u.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:79",className:"font-semibold text-red-700",children:"Upgrade naar Pro â"})]}):u.jsxs(ft,{"data-loc":"client/src/components/AppLayout.tsx:82",href:"/app/instellingen",className:"flex items-center justify-between gap-2 rounded-xl bg-amber-50 border border-amber-200 px-4 py-3 text-sm",children:[u.jsxs("span",{"data-loc":"client/src/components/AppLayout.tsx:86",className:"flex items-center gap-2 text-amber-800 font-medium",children:[u.jsx(_y,{"data-loc":"client/src/components/AppLayout.tsx:87",className:"h-4 w-4"})," Nog ",d.dagenResterend," dagen gratis proberen"]}),u.jsx("span",{"data-loc":"client/src/components/AppLayout.tsx:89",className:"font-semibold text-amber-800",children:"Upgrade â"})]})}),u.jsx("main",{"data-loc":"client/src/components/AppLayout.tsx:95",className:"max-w-3xl mx-auto px-4 py-5",children:n}),u.jsx("nav",{"data-loc":"client/src/components/AppLayout.tsx:97",className:"fixed bottom-0 inset-x-0 z-30 bg-card border-t border-border",children:u.jsx("div",{"data-loc":"client/src/components/AppLayout.tsx:98",className:"max-w-3xl mx-auto grid grid-cols-5",children:c3.map(h=>{const g=h.icon,x=m(h);
317return u.jsxs(ft,{"data-loc":"client/src/components/AppLayout.tsx:103",href:h.href,className:`flex flex-col items-center gap-1 py-2.5 text-xs transition-colors ${x?"text-primary font-semibold":"text-muted-foreground"}`,children:[u.jsx(g,{"data-loc":"client/src/components/AppLayout.tsx:110",className:`h-5 w-5 ${x?"scale-110":""} transition-transform`}),h.label]},h.href)})})})]})}function u3(n){const a=n.aantal*n.prijs,r=a*(n.btw/100);return{exclBtw:a,btw:r,inclBtw:a+r}}function ul(n){return n.reduce((a,r)=>{const l=u3(r);return{exclBtw:a.exclBtw+l.exclBtw,btw:a.btw+l.btw,inclBtw:a.inclBtw+l.inclBtw}},{exclBtw:0,btw:0,inclBtw:0})}function $e(n){return new Intl.NumberFormat("nl-NL",{style:"currency",currency:"EUR"}).format(n||0)}function Is(n){return n?new Intl.DateTimeFormat("nl-NL",{day:"numeric",month:"short",year:"numeric"}).format(new Date(n)):"â"}const Ci={offerte:"Offerte",bezig:"Bezig",klaar:"Klaar",gefactureerd:"Gefactureerd",betaald:"Betaald"},Q1={concept:"Concept",verzonden:"Verzonden",betaald:"Betaald",verlopen:"Verlopen"};function gl(n){return{offerte:"bg-blue-100 text-blue-700",bezig:"bg-amber-100 text-amber-700",klaar:"bg-emerald-100 text-emerald-700",gefactureerd:"bg-violet-100 text-violet-700",betaald:"bg-emerald-100 text-emerald-700",concept:"bg-slate-100 text-slate-700",verzonden:"bg-amber-100 text-amber-700",verlopen:"bg-red-100 text-red-700"}[n]||"bg-slate-100 text-slate-700"}function d3(){const{data:n,isLoading:a}=be.klusapp.dashboard.stats.useQuery(),{data:r}=be.klusapp.klussen.list.useQuery(),l=(r||[]).slice(0,4);return u.jsxs(qt,{"data-loc":"client/src/pages/Dashboard.tsx:15",title:"KlusApp",children:[u.jsx(ft,{"data-loc":"client/src/pages/Dashboard.tsx:16",href:"/app/klussen/nieuw",children:u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:17",className:"rounded-2xl bg-gradient-to-br from-primary to-primary/80 p-5 text-primary-foreground mb-5 active:scale-[0.99] transition-transform",children:u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:18",className:"flex items-center gap-3 mb-2",children:[u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:19",className:"w-11 h-11 rounded-full bg-accent flex items-center justify-center",children:u.jsx(Us,{"data-loc":"client/src/pages/Dashboard.tsx:20",className:"h-6 w-6 text-accent-foreground"})}),u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:22",children:[u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:23",className:"font-bold text-lg",children:"Nieuwe klus inspreken"}),u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:24",className:"text-sm opacity-90",children:"Spreek in, AI maakt de offerte"})]})]})})}),a?u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:31",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/Dashboard.tsx:31",className:"h-6 w-6 animate-spin text-primary"})}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:34",className:"grid grid-cols-2 gap-3 mb-5",children:[u.jsx(ic,{"data-loc":"client/src/pages/Dashboard.tsx:35",icon:R5,label:"Omzet betaald",value:$e(n?.omzetBetaald||0),accent:!0}),u.jsx(ic,{"data-loc":"client/src/pages/Dashboard.tsx:36",icon:hm,label:"Openstaand",value:$e(n?.openstaand||0)}),u.jsx(ic,{"data-loc":"client/src/pages/Dashboard.tsx:37",icon:fs,label:"Klussen bezig",value:String(n?.klussenBezig??0)}),u.jsx(ic,{"data-loc":"client/src/pages/Dashboard.tsx:38",icon:Qs,label:"Open facturen",value:String(n?.aantalOpenstaand??0)})]}),u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:41",className:"flex items-center justify-between mb-3",children:[u.jsx("h2",{"data-loc":"client/src/pages/Dashboard.tsx:42",className:"font-semibold text-lg",children:"Recente klussen"}),u.jsx(ft,{"data-loc":"client/src/pages/Dashboard.tsx:43",href:"/app/klussen",className:"text-sm text-primary font-medium",children:"Alles"})]}),l.length===0?u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:46",className:"bg-card rounded-xl border border-border p-8 text-center text-muted-foreground",children:[u.jsx(fs,{"data-loc":"client/src/pages/Dashboard.tsx:47",className:"h-8 w-8 mx-auto mb-2 opacity-40"}),"Nog geen klussen. Spreek je eerste klus in!"]}):u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:51",className:"space-y-2",children:l.map(o=>u.jsx(ft,{"data-loc":"client/src/pages/Dashboard.tsx:53",href:`/app/klussen/${o.id}`,children:u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:54",className:"bg-card rounded-xl border border-border p-4 flex items-center justify-between active:bg-secondary/50 transition-colors",children:[u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:55",className:"min-w-0",children:[u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:56",className:"font-medium truncate",children:o.titel}),u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:57",className:"text-sm text-muted-foreground",children:[o.nummer," · ",Is(o.createdAt)]})]}),u.jsx("span",{"data-loc":"client/src/pages/Dashboard.tsx:59",className:`text-xs px-2 py-1 rounded-full font-medium shrink-0 ${gl(o.status)}`,children:Ci[o.status]})]})},o.id))}),u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:68",className:"grid grid-cols-2 gap-3 mt-5",children:[u.jsx(ft,{"data-loc":"client/src/pages/Dashboard.tsx:69",href:"/app/klussen/nieuw",children:u.jsxs(je,{"data-loc":"client/src/pages/Dashboard.tsx:69",variant:"outline",className:"w-full bg-card",children:[u.jsx(cl,{"data-loc":"client/src/pages/Dashboard.tsx:69",className:"h-4 w-4 mr-1"})," Klus"]})}),u.jsx(ft,{"data-loc":"client/src/pages/Dashboard.tsx:70",href:"/app/werkbon",children:u.jsxs(je,{"data-loc":"client/src/pages/Dashboard.tsx:70",variant:"outline",className:"w-full bg-card",children:[u.jsx(Qs,{"data-loc":"client/src/pages/Dashboard.tsx:70",className:"h-4 w-4 mr-1"})," Werkbon"]})})]})]})]})}function ic({icon:n,label:a,value:r,accent:l}){return u.jsxs("div",{"data-loc":"client/src/pages/Dashboard.tsx:80",className:`rounded-xl border p-4 ${l?"bg-primary text-primary-foreground border-primary":"bg-card border-border"}`,children:[u.jsx(n,{"data-loc":"client/src/pages/Dashboard.tsx:81",className:`h-5 w-5 mb-2 ${l?"text-accent":"text-primary"}`}),u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:82",className:`text-xs ${l?"opacity-90":"text-muted-foreground"}`,children:a}),u.jsx("div",{"data-loc":"client/src/pages/Dashboard.tsx:83",className:"text-xl font-bold",children:r})]})}var _f="focusScope.autoFocusOnMount",Rf="focusScope.autoFocusOnUnmount",qy={bubbles:!1,cancelable:!0},f3="FocusScope",wm=b.forwardRef((n,a)=>
vendor: 4,097 bytes, line 317
317{const{loop:r=!1,trapped:l=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...d}=n,[m,h]=b.useState(null),g=qs(o),x=qs(c),v=b.useRef(null),w=lt(a,S=>h(S)),j=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(l){let S=function(O){if(j.paused||!m)return;const B=O.target;m.contains(B)?v.current=B:ss(v.current,{select:!0})},T=function(O){if(j.paused||!m)return;const B=O.relatedTarget;B!==null&&(m.contains(B)||ss(v.current,{select:!0}))},E=function(O){if(document.activeElement===document.body)for(const P of O)P.removedNodes.length>0&&ss(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",T);const _=new MutationObserver(E);return m&&_.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",T),_.disconnect()}}},[l,m,j.paused]),b.useEffect(()=>{if(m){Qy.add(j);const S=document.activeElement;if(!m.contains(S)){const E=new CustomEvent(_f,qy);m.addEventListener(_f,g),m.dispatchEvent(E),E.defaultPrevented||(p3(x3(I1(m)),{select:!0}),document.activeElement===S&&ss(m))}return()=>{m.removeEventListener(_f,g),setTimeout(()=>{const E=new CustomEvent(Rf,qy);m.addEventListener(Rf,x),m.dispatchEvent(E),E.defaultPrevented||ss(S??document.body,{select:!0}),m.removeEventListener(Rf,x),Qy.remove(j)},0)}}},[m,g,x,j]);const C=b.useCallback(S=>{if(!r&&!l||j.paused)return;const T=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,E=document.activeElement;if(T&&E){const _=S.currentTarget,[O,B]=m3(_);O&&B?!S.shiftKey&&E===B?(S.preventDefault(),r&&ss(O,{select:!0})):S.shiftKey&&E===O&&(S.preventDefault(),r&&ss(B,{select:!0})):E===_&&S.preventDefault()}},[r,l,j.paused]);return u.jsx(We.div,{tabIndex:-1,...d,ref:w,onKeyDown:C})});wm.displayName=f3;function p3(n,{select:a=!1}={}){const r=document.activeElement;for(const l of n)if(ss(l,{select:a}),document.activeElement!==r)return}function m3(n){const a=I1(n),r=Vy(a,n),l=Vy(a.reverse(),n);return[r,l]}function I1(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:l=>{const o=l.tagName==="INPUT"&&l.type==="hidden";return l.disabled||l.hidden||o?NodeFilter.FILTER_SKIP:l.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Vy(n,a){for(const r of n)if(!h3(r,{upTo:a}))return r}function h3(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function g3(n){return n instanceof HTMLInputElement&&"select"in n}function ss(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&g3(n)&&a&&n.select()}}var Qy=v3();function v3(){let n=[];return{add(a){const r=n[0];a!==r&&r?.pause(),n=Iy(n,a),n.unshift(a)},remove(a){n=Iy(n,a),n[0]?.resume()}}}function Iy(n,a){const r=[...n],l=r.indexOf(a);return l!==-1&&r.splice(l,1),r}function x3(n){return n.filter(a=>a.tagName!=="A")}var Mf=0;function F1(){b.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Fy()),document.body.insertAdjacentElement("beforeend",n[1]??Fy()),Mf++,()=>{Mf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Mf--}},[])}function Fy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var $n=function(){return $n=Object.assign||function(a){for(var r,l=1,o=arguments.length;l<o;l++){r=arguments[l];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(a[c]=r[c])}return a},$n.apply(this,arguments)};function G1(n,a){var r={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&a.indexOf(l)<0&&(r[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,l=Object.getOwnPropertySymbols(n);o<l.length;o++)a.indexOf(l[o])<0&&Object.prototype.propertyIsEnumerable.call(n,l[o])&&
vendor: 5,075 bytes, lines 317-332
317(r[l[o]]=n[l[o]]);return r}function y3(n,a,r){if(r||arguments.length===2)for(var l=0,o=a.length,c;l<o;l++)(c||!(l in a))&&(c||(c=Array.prototype.slice.call(a,0,l)),c[l]=a[l]);return n.concat(c||Array.prototype.slice.call(a))}var xc="right-scroll-bar-position",yc="width-before-scroll-bar",b3="with-scroll-bars-hidden",w3="--removed-body-scroll-bar-size";function zf(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function S3(n,a){var r=b.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(l){var o=r.value;o!==l&&(r.value=l,r.callback(l,o))}}}})[0];return r.callback=a,r.facade}var j3=typeof window<"u"?b.useLayoutEffect:b.useEffect,Gy=new WeakMap;function N3(n,a){var r=S3(null,function(l){return n.forEach(function(o){return zf(o,l)})});return j3(function(){var l=Gy.get(r);if(l){var o=new Set(l),c=new Set(n),d=r.current;o.forEach(function(m){c.has(m)||zf(m,null)}),c.forEach(function(m){o.has(m)||zf(m,d)})}Gy.set(r,n)},[n]),r}function E3(n){return n}function C3(n,a){a===void 0&&(a=E3);var r=[],l=!1,o={read:function(){if(l)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(c){var d=a(c,l);return r.push(d),function(){r=r.filter(function(m){return m!==d})}},assignSyncMedium:function(c){for(l=!0;r.length;){var d=r;r=[],d.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){l=!0;var d=[];if(r.length){var m=r;r=[],m.forEach(c),d=r}var h=function(){var x=d;d=[],x.forEach(c)},g=function(){return Promise.resolve().then(h)};g(),r={push:function(x){d.push(x),g()},filter:function(x){return d=d.filter(x),r}}}};return o}function k3(n){n===void 0&&(n={});var a=C3(null);return a.options=$n({async:!0,ssr:!1},n),a}var Y1=function(n){var a=n.sideCar,r=G1(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var l=a.read();if(!l)throw new Error("Sidecar medium not found");return b.createElement(l,$n({},r))};Y1.isSideCarExport=!0;function A3(n,a){return n.useMedium(a),Y1}var X1=k3(),Kf=function(){},Xc=b.forwardRef(function(n,a){var r=b.useRef(null),l=b.useState({onScrollCapture:Kf,onWheelCapture:Kf,onTouchMoveCapture:Kf}),o=l[0],c=l[1],d=n.forwardProps,m=n.children,h=n.className,g=n.removeScrollBar,x=n.enabled,v=n.shards,w=n.sideCar,j=n.noRelative,C=n.noIsolation,S=n.inert,T=n.allowPinchZoom,E=n.as,_=E===void 0?"div":E,O=n.gapMode,B=G1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=w,R=N3([r,a]),A=$n($n({},B),o);return b.createElement(b.Fragment,null,x&&b.createElement(P,{sideCar:X1,removeScrollBar:g,shards:v,noRelative:j,noIsolation:C,inert:S,setCallbacks:c,allowPinchZoom:!!T,lockRef:r,gapMode:O}),d?b.cloneElement(b.Children.only(m),$n($n({},A),{ref:R})):b.createElement(_,$n({},A,{className:h,ref:R}),m))});Xc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Xc.classNames={fullWidth:yc,zeroRight:xc};var T3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function O3(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=T3();return a&&n.setAttribute("nonce",a),n}function D3(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function _3(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var R3=function(){var n=0,a=null;return{add:function(r){n==0&&(a=O3())&&(D3(a,r),_3(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},M3=function(){var n=R3();return function(a,r){b.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},Z1=function(){var n=M3(),a=function(r){var l=r.styles,o=r.dynamic;return n(l,o),null};return a},z3={left:0,top:0,right:0,gap:0},Bf=function(n){return parseInt(n||"",10)||0},K3=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],l=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[Bf(r),Bf(l),Bf(o)]},B3=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return z3;var a=K3(n),r=document.documentElement.clientWidth,l=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,l-r+a[2]-a[0])}},P3=Z1(),nl="data-scroll-locked",L3=function(n,a,r,l){var o=n.left,c=n.top,d=n.right,m=n.gap;return r===void 0&&(r="margin"),` 318 .`.concat(b3,` { 319 overflow: hidden `).concat(l,`; 320 padding-right: `).concat(m,"px ").concat(l,`; 321 } 322 body[`).concat(nl,`] { 323 overflow: hidden `).concat(l,`; 324 overscroll-behavior: contain; 325 `).concat([a&&"position: relative ".concat(l,";"),r==="margin"&&` 326 padding-left: `.concat(o,`px; 327 padding-top: `).concat(c,`px; 328 padding-right: `).concat(d,`px; 329 margin-left:0; 330 margin-top:0; 331 margin-right: `).concat(m,"px ").concat(l,`; 332 `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(l,";
332")].filter(Boolean).join(""),` 333 } 334 335 .`).concat(xc,` { 336 right: `).concat(m,"px ").concat(l,`; 337 } 338 339 .`).concat(yc,` { 340 margin-right: `).concat(m,"px ").concat(l,`; 341 } 342 343 .`).concat(xc," .").concat(xc,` { 344 right: 0 `).concat(l,`; 345 } 346 347 .`).concat(yc," .").concat(yc,` { 348 margin-right: 0 `).concat(l,`; 349 } 350 351 body[`).concat(nl,`] { 352 `).concat(w3,": ").concat(m,`px; 353 } 354`)},Yy=function(){var n=parseInt(document.body.getAttribute(nl)||"0",10);return isFinite(n)?n:0},U3=function(){b.useEffect(function(){return document.body.setAttribute(nl,(Yy()+1).toString()),function(){var n=Yy()-1;n<=0?document.body.removeAttribute(nl):document.body.setAttribute(nl,n.toString())}},[])},H3=function(n){var a=n.noRelative,r=n.noImportant,l=n.gapMode,o=l===void 0?"margin":l;U3();var c=b.useMemo(function(){return B3(o)},[o]);return b.createElement(P3,{styles:L3(c,!a,o,r?"":"!important")})},Pp=!1;if(typeof window<"u")try{var oc=Object.defineProperty({},"passive",{get:function(){return Pp=!0,!0}});window.addEventListener("test",oc,oc),window.removeEventListener("test",oc,oc)}catch{Pp=!1}var Yr=Pp?{passive:!1}:!1,q3=function(n){return n.tagName==="TEXTAREA"},$1=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!q3(n)&&r[a]==="visible")},V3=function(n){return $1(n,"overflowY")},Q3=function(n){return $1(n,"overflowX")},Xy=function(n,a){var r=a.ownerDocument,l=a;do{typeof ShadowRoot<"u"&&l instanceof ShadowRoot&&(l=l.host);var o=W1(n,l);if(o){var c=J1(n,l),d=c[1],m=c[2];if(d>m)return!0}l=l.parentNode}while(l&&l!==r.body);return!1},I3=function(n){var a=n.scrollTop,r=n.scrollHeight,l=n.clientHeight;return[a,r,l]},F3=function(n){var a=n.scrollLeft,r=n.scrollWidth,l=n.clientWidth;return[a,r,l]},W1=function(n,a){return n==="v"?V3(a):Q3(a)},J1=function(n,a){return n==="v"?I3(a):F3(a)},G3=function(n,a){return n==="h"&&a==="rtl"?-1:1},Y3=function(n,a,r,l,o){var c=G3(n,window.getComputedStyle(a).direction),d=c*l,m=r.target,h=a.contains(m),g=!1,x=d>0,v=0,w=0;do{if(!m)break;var j=J1(n,m),C=j[0],S=j[1],T=j[2],E=S-T-c*C;(C||E)&&W1(n,m)&&(v+=E,w+=C);var _=m.parentNode;m=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!h&&m!==document.body||h&&(a.contains(m)||a===m));return(x&&Math.abs(v)<1||!x&&Math.abs(w)<1)&&(g=!0),g},cc=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Zy=function(n){return[n.deltaX,n.deltaY]},$y=function(n){return n&&"current"in n?n.current:n},X3=function(n,a){return n[0]===a[0]&&n[1]===a[1]},Z3=function(n){return` 355 .block-interactivity-`.concat(n,` {pointer-events: none;} 356 .allow-interactivity-`).concat(n,` {pointer-events: all;} 357`)},$3=0,Xr=[];function W3(n){var a=b.useRef([]),r=b.useRef([0,0]),l=b.useRef(),o=b.useState($3++)[0],c=b.useState(Z1)[0],d=b.useRef(n);b.useEffect(function(){d.current=n},[n]),b.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(o));var S=y3([n.lockRef.current],(n.shards||[]).map($y),!0).filter(Boolean);return S.forEach(function(T){return T.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var m=b.useCallback(function(S,T){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!d.current.allowPinchZoom;var E=cc(S),_=r.current,O="deltaX"in S?S.deltaX:_[0]-E[0],B="deltaY"in S?S.deltaY:_[1]-E[1],P,R=S.target,A=Math.abs(O)>Math.abs(B)?"h":"v";if("touches"in S&&A==="h"&&R.type==="range")return!1;var M=Xy(A,R);if(!M)return!0;if(M?P=A:(P=A==="v"?"h":"v",M=Xy(A,R)),!M)return!1;if(!l.current&&"changedTouches"in S&&(O||B)&&(l.current=P),!P)return!0;var q=l.current||P;return Y3(q,T,S,q==="h"?O:B)},[]),h=b.useCallback(function(S){var T=S;if(!(!Xr.length||Xr[Xr.length-1]!==c)){var E="deltaY"in T?Zy(T):cc(T),_=a.current.filter(function(P){return P.name===T.type&&(P.target===T.target||T.target===P.shadowParent)&&X3(P.delta,E)})[0];if(_&&_.should){T.cancelable&&T.preventDefault();return}
vendor: 5,678 bytes, line 357
357if(!_){var O=(d.current.shards||[]).map($y).filter(Boolean).filter(function(P){return P.contains(T.target)}),B=O.length>0?m(T,O[0]):!d.current.noIsolation;B&&T.cancelable&&T.preventDefault()}}},[]),g=b.useCallback(function(S,T,E,_){var O={name:S,delta:T,target:E,should:_,shadowParent:J3(E)};a.current.push(O),setTimeout(function(){a.current=a.current.filter(function(B){return B!==O})},1)},[]),x=b.useCallback(function(S){r.current=cc(S),l.current=void 0},[]),v=b.useCallback(function(S){g(S.type,Zy(S),S.target,m(S,n.lockRef.current))},[]),w=b.useCallback(function(S){g(S.type,cc(S),S.target,m(S,n.lockRef.current))},[]);b.useEffect(function(){return Xr.push(c),n.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:w}),document.addEventListener("wheel",h,Yr),document.addEventListener("touchmove",h,Yr),document.addEventListener("touchstart",x,Yr),function(){Xr=Xr.filter(function(S){return S!==c}),document.removeEventListener("wheel",h,Yr),document.removeEventListener("touchmove",h,Yr),document.removeEventListener("touchstart",x,Yr)}},[]);var j=n.removeScrollBar,C=n.inert;return b.createElement(b.Fragment,null,C?b.createElement(c,{styles:Z3(o)}):null,j?b.createElement(H3,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function J3(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const eT=A3(X1,W3);var Sm=b.forwardRef(function(n,a){return b.createElement(Xc,$n({},n,{ref:a,sideCar:eT}))});Sm.classNames=Xc.classNames;var tT=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},Zr=new WeakMap,uc=new WeakMap,dc={},Pf=0,ew=function(n){return n&&(n.host||ew(n.parentNode))},nT=function(n,a){return a.map(function(r){if(n.contains(r))return r;var l=ew(r);return l&&n.contains(l)?l:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},aT=function(n,a,r,l){var o=nT(a,Array.isArray(n)?n:[n]);dc[r]||(dc[r]=new WeakMap);var c=dc[r],d=[],m=new Set,h=new Set(o),g=function(v){!v||m.has(v)||(m.add(v),g(v.parentNode))};o.forEach(g);var x=function(v){!v||h.has(v)||Array.prototype.forEach.call(v.children,function(w){if(m.has(w))x(w);else try{var j=w.getAttribute(l),C=j!==null&&j!=="false",S=(Zr.get(w)||0)+1,T=(c.get(w)||0)+1;Zr.set(w,S),c.set(w,T),d.push(w),S===1&&C&&uc.set(w,!0),T===1&&w.setAttribute(r,"true"),C||w.setAttribute(l,"true")}catch(E){console.error("aria-hidden: cannot operate on ",w,E)}})};return x(a),m.clear(),Pf++,function(){d.forEach(function(v){var w=Zr.get(v)-1,j=c.get(v)-1;Zr.set(v,w),c.set(v,j),w||(uc.has(v)||v.removeAttribute(l),uc.delete(v)),j||v.removeAttribute(r)}),Pf--,Pf||(Zr=new WeakMap,Zr=new WeakMap,uc=new WeakMap,dc={})}},tw=function(n,a,r){r===void 0&&(r="data-aria-hidden");var l=Array.from(Array.isArray(n)?n:[n]),o=tT(n);return o?(l.push.apply(l,Array.from(o.querySelectorAll("[aria-live], script"))),aT(l,o,r,"aria-hidden")):function(){return null}},Zc="Dialog",[nw,aw]=Ws(Zc),[sT,Pn]=nw(Zc),sw=n=>{const{__scopeDialog:a,children:r,open:l,defaultOpen:o,onOpenChange:c,modal:d=!0}=n,m=b.useRef(null),h=b.useRef(null),[g,x]=Ec({prop:l,defaultProp:o??!1,onChange:c,caller:Zc});return u.jsx(sT,{scope:a,triggerRef:m,contentRef:h,contentId:Jr(),titleId:Jr(),descriptionId:Jr(),open:g,onOpenChange:x,onOpenToggle:b.useCallback(()=>x(v=>!v),[x]),modal:d,children:r})};sw.displayName=Zc;var rw="DialogTrigger",lw=b.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Pn(rw,r),c=lt(a,o.triggerRef);return u.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Em(o.open),...l,ref:c,onClick:Ie(n.onClick,o.onOpenToggle)})});lw.displayName=rw;var jm="DialogPortal",[rT,iw]=nw(jm,{forceMount:void 0}),ow=n=>{const{__scopeDialog:a,forceMount:r,children:l,container:o}=n,c=Pn(jm,a);return u.jsx(rT,{scope:a,forceMount:r,children:b.Children.map(l,d=>u.jsx(Bi,{present:r||c.open,children:u.jsx(dm,{asChild:!0,container:o,children:d})}))})};ow.displayName=jm;var kc="DialogOverlay",cw=b.forwardRef((n,a)=>{const r=iw(kc,n.__scopeDialog),{forceMount:l=r.forceMount,...o}=n,c=Pn(kc,n.__scopeDialog);return c.modal?u.jsx(Bi,{present:l||c.open,children:u.jsx(iT,{...o,ref:a})}):null});cw.displayName=kc;var lT=ll("DialogOverlay.RemoveScroll"),iT=b.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Pn(kc,r);return u.jsx(Sm,{as:lT,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(We.div,{"data-state":Em(o.open),...l,ref:a,style:{pointerEvents:"auto",...l.style}})})}),Fs="DialogContent",uw=b.forwardRef((n,a)=>{const r=iw(Fs,n.__scopeDialog),{forceMount:l=r.forceMount,...o}=n,c=Pn(Fs,n.__scopeDialog);return u.jsx(Bi,{present:l||c.open,children:c.modal?u.jsx(oT,{...o,ref:a}):u.jsx(cT,{...o,ref:a})})});uw.displayName=Fs;var oT=b.forwardRef((n,a)=>{const r=Pn(Fs,n.__scopeDialog),l=b.useRef(null),o=lt(a,r.contentRef,l);return b.useEffect(()=>{const c=l.current;if(c)return tw(c)},[]),u.jsx(dw,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ie(n.onCloseAutoFocus,c=>{c.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Ie(n.onPointerDownOutside,c=>{const d=c.detail.originalEvent,m=d.button===0&&d.ctrlKey===!0;(d.button===2||m)&&c.preventDefault()}),onFocusOutside:Ie(n.onFocusOutside,c=>c.preventDefault())})}),cT=b.forwardRef((n,a)=>{const r=Pn(Fs,n.__scopeDialog),l=b.useRef(!1),o=b.useRef(!1);return u.jsx(dw,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{n.onCloseAutoFocus?.(c),c.defaultPrevented||(l.current||r.triggerRef.current?.focus(),c.preventDefault()),l.current=!1,o.current=!1},onInteractOutside:c=>
357{n.onInteractOutside?.(c),c.defaultPrevented||(l.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=c.target;r.triggerRef.current?.contains(d)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),dw=b.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:l,onOpenAutoFocus:o,onCloseAutoFocus:c,...d}=n,m=Pn(Fs,r),h=b.useRef(null),g=lt(a,h);return F1(),u.jsxs(u.Fragment,{children:[u.jsx(wm,{asChild:!0,loop:!0,trapped:l,onMountAutoFocus:o,onUnmountAutoFocus:c,children:u.jsx(Lc,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":Em(m.open),...d,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(dT,{titleId:m.titleId}),u.jsx(pT,{contentRef:h,descriptionId:m.descriptionId})]})]})}),Nm="DialogTitle",fw=b.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Pn(Nm,r);return u.jsx(We.h2,{id:o.titleId,...l,ref:a})});fw.displayName=Nm;var pw="DialogDescription",mw=b.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Pn(pw,r);return u.jsx(We.p,{id:o.descriptionId,...l,ref:a})});mw.displayName=pw;var hw="DialogClose",gw=b.forwardRef((n,a)=>{const{__scopeDialog:r,...l}=n,o=Pn(hw,r);return u.jsx(We.button,{type:"button",...l,ref:a,onClick:Ie(n.onClick,()=>o.onOpenChange(!1))})});gw.displayName=hw;function Em(n){return n?"open":"closed"}var vw="DialogTitleWarning",[uT,xw]=y4(vw,{contentName:Fs,titleName:Nm,docsSlug:"dialog"}),dT=({titleId:n})=>{const a=xw(vw),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users. 358 359If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component. 360 361For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return b.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},fT="DialogDescriptionWarning",pT=({contentRef:n,descriptionId:a})=>{const l=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${xw(fT).contentName}}.`;return b.useEffect(()=>{const o=n.current?.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(l))},[l,n,a]),null},yw=sw,bw=lw,ww=ow,Sw=cw,jw=uw,Nw=fw,Ew=mw,Cm=gw;const Cw=b.createContext({isComposing:()=>!1,setComposing:()=>{},justEndedComposing:()=>!1,markCompositionEnd:()=>{}}),km=()=>b.useContext(Cw);function ki({...n}){const a=b.useRef(!1),r=b.useRef(!1),l=b.useRef(null),o=b.useMemo(()=>({isComposing:()=>a.current,setComposing:c=>{a.current=c},justEndedComposing:()=>r.current,markCompositionEnd:()=>{r.current=!0,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{r.current=!1},150)}}),[]);return u.jsx(Cw.Provider,{"data-loc":"client/src/components/ui/dialog.tsx:50",value:o,children:u.jsx(yw,{"data-loc":"client/src/components/ui/dialog.tsx:51","data-slot":"dialog",...n})})}function Lp({...n}){return u.jsx(bw,{"data-loc":"client/src/components/ui/dialog.tsx:59","data-slot":"dialog-trigger",...n})}function mT({...n}){return u.jsx(ww,{"data-loc":"client/src/components/ui/dialog.tsx:65","data-slot":"dialog-portal",...n})}function kw({className:n,...a}){return u.jsx(Sw,{"data-loc":"client/src/components/ui/dialog.tsx:79","data-slot":"dialog-overlay",className:tt("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",n),...a})}kw.displayName="DialogOverlay";function Ai({className:n,children:a,showCloseButton:r=!0,onEscapeKeyDown:l,...o}){const{isComposing:c}=km(),d=b.useCallback(m=>{if(m.isComposing||c()){m.preventDefault();return}l?.(m)},[c,l]);return u.jsxs(mT,{"data-loc":"client/src/components/ui/dialog.tsx:122","data-slot":"dialog-portal",children:[u.jsx(kw,{"data-loc":"client/src/components/ui/dialog.tsx:123"}),u.jsxs(jw,{"data-loc":"client/src/components/ui/dialog.tsx:124","data-slot":"dialog-content",className:tt("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
361ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",n),onEscapeKeyDown:d,...o,children:[a,r&&u.jsxs(Cm,{"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:[u.jsx(gm,{"data-loc":"client/src/components/ui/dialog.tsx:139"}),u.jsx("span",{"data-loc":"client/src/components/ui/dialog.tsx:140",className:"sr-only",children:"Close"})]})]})]})}function Ti({className:n,...a}){return u.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:150","data-slot":"dialog-header",className:tt("flex flex-col gap-2 text-center sm:text-left",n),...a})}function $c({className:n,...a}){return u.jsx("div",{"data-loc":"client/src/components/ui/dialog.tsx:160","data-slot":"dialog-footer",className:tt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",n),...a})}function Oi({className:n,...a}){return u.jsx(Nw,{"data-loc":"client/src/components/ui/dialog.tsx:176","data-slot":"dialog-title",className:tt("text-lg leading-none font-semibold",n),...a})}function Ac({className:n,...a}){return u.jsx(Ew,{"data-loc":"client/src/components/ui/dialog.tsx:189","data-slot":"dialog-description",className:tt("text-muted-foreground text-sm",n),...a}
361)}function fc(n){const a=b.useRef(n);a.current=n;const r=b.useRef(null);return r.current||(r.current=function(...l){return a.current.apply(this,l)}),r.current}function Aw(n={}){const{onKeyDown:a,onCompositionStart:r,onCompositionEnd:l}=n,o=b.useRef(!1),c=b.useRef(null),d=b.useRef(null),m=fc(v=>{c.current&&(clearTimeout(c.current),c.current=null),d.current&&(clearTimeout(d.current),d.current=null),o.current=!0,r?.(v)}),h=fc(v=>{c.current=setTimeout(()=>{d.current=setTimeout(()=>{o.current=!1})}),l?.(v)}),g=fc(v=>{if(o.current&&(v.key==="Escape"||v.key==="Enter"&&!v.shiftKey)){v.stopPropagation();return}a?.(v)}),x=fc(()=>o.current);return{onCompositionStart:m,onCompositionEnd:h,onKeyDown:g,isComposing:x}}function De({className:n,type:a,onKeyDown:r,onCompositionStart:l,onCompositionEnd:o,...c}){const d=km(),{onCompositionStart:m,onCompositionEnd:h,onKeyDown:g}=Aw({onKeyDown:x=>{const v=x.nativeEvent.isComposing||d.justEndedComposing();x.key==="Enter"&&v||r?.(x)},onCompositionStart:x=>{d.setComposing(!0),l?.(x)},onCompositionEnd:x=>{d.markCompositionEnd(),setTimeout(()=>{d.setComposing(!1)},100),o?.(x)}});return u.jsx("input",{"data-loc":"client/src/components/ui/input.tsx:53",type:a,"data-slot":"input",className:tt("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n),onCompositionStart:m,onCompositionEnd:h,onKeyDown:g,...c})}function hT(){const{data:n,isLoading:a}=be.klusapp.klussen.list.useQuery(),[r,l]=b.useState(""),o=(n||[]).filter(c=>c.titel.toLowerCase().includes(r.toLowerCase())||c.nummer.toLowerCase().includes(r.toLowerCase()));return u.jsxs(qt,{"data-loc":"client/src/pages/Klussen.tsx:19",title:"Klussen",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klussen.tsx:20",className:"flex gap-2 mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klussen.tsx:21",className:"relative flex-1",children:[u.jsx(R1,{"data-loc":"client/src/pages/Klussen.tsx:22",className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),u.jsx(De,{"data-loc":"client/src/pages/Klussen.tsx:23",className:"pl-9",placeholder:"Zoek klus...",value:r,onChange:c=>l(c.target.value)})]}),u.jsx(ft,{"data-loc":"client/src/pages/Klussen.tsx:25",href:"/app/klussen/nieuw",children:u.jsx(je,{"data-loc":"client/src/pages/Klussen.tsx:25",children:u.jsx(cl,{"data-loc":"client/src/pages/Klussen.tsx:25",className:"h-4 w-4"})})})]}),a?u.jsx("div",{"data-loc":"client/src/pages/Klussen.tsx:29",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/Klussen.tsx:29",className:"h-6 w-6 animate-spin text-primary"})}):o.length===0?u.jsxs("div",{"data-loc":"client/src/pages/Klussen.tsx:31",className:"bg-card rounded-xl border border-border p-10 text-center text-muted-foreground",children:[u.jsx(fs,{"data-loc":"client/src/pages/Klussen.tsx:32",className:"h-8 w-8 mx-auto mb-2 opacity-40"}),"Geen klussen gevonden"]}):u.jsx("div",{"data-loc":"client/src/pages/Klussen.tsx:36",className:"space-y-2",children:o.map(c=>{const d=ul(c.regels||[]);return u.jsx(ft,{"data-loc":"client/src/pages/Klussen.tsx:40",href:`/app/klussen/${c.id}`,children:u.jsxs("div",{"data-loc":"client/src/pages/Klussen.tsx:41",className:"bg-card rounded-xl border border-border p-4 active:bg-secondary/50 transition-colors",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klussen.tsx:42",className:"flex items-start justify-between mb-1",children:[u.jsx("div",{"data-loc":"client/src/pages/Klussen.tsx:43",className:"font-medium",children:c.titel}),u.jsx("span",{"data-loc":"client/src/pages/Klussen.tsx:44",className:`text-xs px-2 py-0.5 rounded-full font-medium shrink-0 ${gl(c.status)}`,children:Ci[c.status]})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klussen.tsx:46",className:"flex items-center justify-between text-sm text-muted-foreground",children:[u.jsxs("span",{"data-loc":"client/src/pages/Klussen.tsx:47",children:[c.nummer," · ",Is(c.createdAt)]}),u.jsx("span",{"data-loc":"client/src/pages/Klussen.tsx:48",className:"font-semibold text-foreground",children:$e(d.inclBtw)})]})]})},c.id)})})]})}function Wy(n,[a,r]){return Math.min(r,Math.max(a,n))}function gT(n){const a=n+"CollectionProvider",[r,l]=Ws(a),[o,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),d=S=>{const{scope:T,children:E}=S,_=ue.useRef(null),O=ue.useRef(new Map).current;return u.jsx(o,{scope:T,itemMap:O,collectionRef:_,children:E})};d.displayName=a;
vendor: 14,274 bytes, line 361
361const m=n+"CollectionSlot",h=ll(m),g=ue.forwardRef((S,T)=>{const{scope:E,children:_}=S,O=c(m,E),B=lt(T,O.collectionRef);return u.jsx(h,{ref:B,children:_})});g.displayName=m;const x=n+"CollectionItemSlot",v="data-radix-collection-item",w=ll(x),j=ue.forwardRef((S,T)=>{const{scope:E,children:_,...O}=S,B=ue.useRef(null),P=lt(T,B),R=c(x,E);return ue.useEffect(()=>(R.itemMap.set(B,{ref:B,...O}),()=>void R.itemMap.delete(B))),u.jsx(w,{[v]:"",ref:P,children:_})});j.displayName=x;function C(S){const T=c(n+"CollectionConsumer",S);return ue.useCallback(()=>{const _=T.collectionRef.current;if(!_)return[];const O=Array.from(_.querySelectorAll(`[${v}]`));return Array.from(T.itemMap.values()).sort((R,A)=>O.indexOf(R.ref.current)-O.indexOf(A.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:d,Slot:g,ItemSlot:j},C,l]}var vT=b.createContext(void 0);function xT(n){const a=b.useContext(vT);return n||a||"ltr"}function Tw(n){const a=b.useRef({value:n,previous:n});return b.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}var yT=[" ","Enter","ArrowUp","ArrowDown"],bT=[" ","Enter"],Gs="Select",[Wc,Jc,wT]=gT(Gs),[vl]=Ws(Gs,[wT,Qc]),eu=Qc(),[ST,ms]=vl(Gs),[jT,NT]=vl(Gs),Ow=n=>{const{__scopeSelect:a,children:r,open:l,defaultOpen:o,onOpenChange:c,value:d,defaultValue:m,onValueChange:h,dir:g,name:x,autoComplete:v,disabled:w,required:j,form:C}=n,S=eu(a),[T,E]=b.useState(null),[_,O]=b.useState(null),[B,P]=b.useState(!1),R=xT(g),[A,M]=Ec({prop:l,defaultProp:o??!1,onChange:c,caller:Gs}),[q,$]=Ec({prop:d,defaultProp:m,onChange:h,caller:Gs}),W=b.useRef(null),Y=T?C||!!T.closest("form"):!0,[J,te]=b.useState(new Set),ce=Array.from(J).map(D=>D.props.value).join(";");return u.jsx(nA,{...S,children:u.jsxs(ST,{required:j,scope:a,trigger:T,onTriggerChange:E,valueNode:_,onValueNodeChange:O,valueNodeHasChildren:B,onValueNodeHasChildrenChange:P,contentId:Jr(),value:q,onValueChange:$,open:A,onOpenChange:M,dir:R,triggerPointerDownPosRef:W,disabled:w,children:[u.jsx(Wc.Provider,{scope:a,children:u.jsx(jT,{scope:n.__scopeSelect,onNativeOptionAdd:b.useCallback(D=>{te(V=>new Set(V).add(D))},[]),onNativeOptionRemove:b.useCallback(D=>{te(V=>{const L=new Set(V);return L.delete(D),L})},[]),children:r})}),Y?u.jsxs(Ww,{"aria-hidden":!0,required:j,tabIndex:-1,name:x,autoComplete:v,value:q,onChange:D=>$(D.target.value),disabled:w,form:C,children:[q===void 0?u.jsx("option",{value:""}):null,Array.from(J)]},ce):null]})})};Ow.displayName=Gs;var Dw="SelectTrigger",_w=b.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:l=!1,...o}=n,c=eu(r),d=ms(Dw,r),m=d.disabled||l,h=lt(a,d.onTriggerChange),g=Jc(r),x=b.useRef("touch"),[v,w,j]=e2(S=>{const T=g().filter(O=>!O.disabled),E=T.find(O=>O.value===d.value),_=t2(T,S,E);_!==void 0&&d.onValueChange(_.value)}),C=S=>{m||(d.onOpenChange(!0),j()),S&&(d.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return u.jsx(a1,{asChild:!0,...c,children:u.jsx(We.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":Jw(d.value)?"":void 0,...o,ref:h,onClick:Ie(o.onClick,S=>{S.currentTarget.focus(),x.current!=="mouse"&&C(S)}),onPointerDown:Ie(o.onPointerDown,S=>{x.current=S.pointerType;const T=S.target;T.hasPointerCapture(S.pointerId)&&T.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(C(S),S.preventDefault())}),onKeyDown:Ie(o.onKeyDown,S=>{const T=v.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(T&&S.key===" ")&&yT.includes(S.key)&&(C(),S.preventDefault())})})})});_w.displayName=Dw;var Rw="SelectValue",Mw=b.forwardRef((n,a)=>{const{__scopeSelect:r,className:l,style:o,children:c,placeholder:d="",...m}=n,h=ms(Rw,r),{onValueNodeHasChildrenChange:g}=h,x=c!==void 0,v=lt(a,h.onValueNodeChange);return Ht(()=>{g(x)},[g,x]),u.jsx(We.span,{...m,ref:v,style:{pointerEvents:"none"},children:Jw(h.value)?u.jsx(u.Fragment,{children:d}):c})});Mw.displayName=Rw;var ET="SelectIcon",zw=b.forwardRef((n,a)=>{const{__scopeSelect:r,children:l,...o}=n;return u.jsx(We.span,{"aria-hidden":!0,...o,ref:a,children:l||"â¼"})});zw.displayName=ET;var CT="SelectPortal",Kw=n=>u.jsx(dm,{asChild:!0,...n});Kw.displayName=CT;var Ys="SelectContent",Bw=b.forwardRef((n,a)=>{const r=ms(Ys,n.__scopeSelect),[l,o]=b.useState();if(Ht(()=>{o(new DocumentFragment)},[]),!r.open){const c=l;return c?zi.createPortal(u.jsx(Pw,{scope:n.__scopeSelect,children:u.jsx(Wc.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(Lw,{...n,ref:a})});Bw.displayName=Ys;var Mn=10,[Pw,hs]=vl(Ys),kT="SelectContentImpl",AT=ll("SelectContent.RemoveScroll"),Lw=b.forwardRef((n,a)=>{const{__scopeSelect:r,position:l="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:d,side:m,sideOffset:h,align:g,alignOffset:x,arrowPadding:v,collisionBoundary:w,collisionPadding:j,sticky:C,hideWhenDetached:S,avoidCollisions:T,...E}=n,_=ms(Ys,r),[O,B]=b.useState(null),[P,R]=b.useState(null),A=lt(a,F=>B(F)),[M,q]=b.useState(null),[$,W]=b.useState(null),Y=Jc(r),[J,te]=b.useState(!1),ce=b.useRef(!1);b.useEffect(()=>{if(O)return tw(O)},[O]),F1();const D=b.useCallback(F=>{const[le,...pe]=Y().map(ke=>ke.ref.current),[Ee]=pe.slice(-1),Ne=document.activeElement;for(const ke of F)if(ke===Ne||(ke?.scrollIntoView({block:"nearest"}),ke===le&&P&&(P.scrollTop=0),ke===Ee&&P&&(P.scrollTop=P.scrollHeight),ke?.focus(),document.activeElement!==Ne))return},[Y,P]),V=b.useCallback(()=>D([M,O]),[D,M,O]);b.useEffect(()=>{J&&V()},[J,V]);const{onOpenChange:L,triggerPointerDownPosRef:oe}=_;b.useEffect(()=>{if(O){let F={x:0,y:0};const le=Ee=>{F={x:Math.abs(Math.round(Ee.pageX)-(oe.current?.x??0)),y:Math.abs(Math.round(Ee.pageY)-(oe.current?.y??0))}},pe=Ee=>{F.x<=10&&F.y<=10?Ee.preventDefault():O.contains(Ee.target)||L(!1),document.removeEventListener("pointermove",le),oe.current=null};return oe.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",pe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",pe,{capture:!0})}}},[O,L,oe]),b.useEffect(()=>{const F=()=>L(!1);return window.addEventListener("blur",F),window.addEventListener("resize",F),()=>{window.removeEventListener("blur",F),window.removeEventListener("resize",F)}},[L]);const[de,k]=e2(F=>{const le=Y().filter(Ne=>!Ne.disabled),pe=le.find(Ne=>Ne.ref.current===document.activeElement),Ee=t2(le,F,pe);Ee&&setTimeout(()=>Ee.ref.current.focus())}),Q=b.useCallback((F,le,pe)=>{const Ee=!ce.current&&!pe;(_.value!==void 0&&_.value===le||Ee)&&(q(F),Ee&&(ce.current=!0))},[_.value]),H=b.useCallback(()=>O?.focus(),[O]),Z=b.useCallback((F,le,pe)=>{const Ee=!ce.current&&!pe;(_.value!==void 0&&_.value===le||Ee)&&W(F)},[_.value]),re=l==="popper"?Up:Uw,fe=re===Up?{side:m,sideOffset:h,align:g,alignOffset:x,arrowPadding:v,collisionBoundary:w,collisionPadding:j,sticky:C,hideWhenDetached:S,avoidCollisions:T}:{};return u.jsx(Pw,{scope:r,content:O,viewport:P,onViewportChange:R,itemRefCallback:Q,selectedItem:M,onItemLeave:H,itemTextRefCallback:Z,focusSelectedItem:V,selectedItemText:$,position:l,isPositioned:J,searchRef:de,children:u.jsx(Sm,{as:AT,allowPinchZoom:!0,children:u.jsx(wm,{asChild:!0,trapped:_.open,onMountAutoFocus:F=>{F.preventDefault()},onUnmountAutoFocus:Ie(o,F=>{_.trigger?.focus({preventScroll:!0}),F.preventDefault()}),children:u.jsx(Lc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:F=>F.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:u.jsx(re,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:F=>F.preventDefault(),...E,...fe,onPlaced:()=>te(!0),ref:A,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:Ie(E.onKeyDown,F=>{const le=F.ctrlKey||F.altKey||F.metaKey;if(F.key==="Tab"&&F.preventDefault(),!le&&F.key.length===1&&k(F.key),["ArrowUp","ArrowDown","Home","End"].includes(F.key)){let Ee=Y().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(F.key)&&(Ee=Ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(F.key)){const Ne=F.target,ke=Ee.indexOf(Ne);Ee=Ee.slice(ke+1)}setTimeout(()=>D(Ee)),F.preventDefault()}})})})})})})});Lw.displayName=kT;var TT="SelectItemAlignedPosition",Uw=b.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:l,...o}=n,c=ms(Ys,r),d=hs(Ys,r),[m,h]=b.useState(null),[g,x]=b.useState(null),v=lt(a,A=>x(A)),w=Jc(r),j=b.useRef(!1),C=b.useRef(!0),{viewport:S,selectedItem:T,selectedItemText:E,focusSelectedItem:_}=d,O=b.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&S&&T&&E){const A=c.trigger.getBoundingClientRect(),M=g.getBoundingClientRect(),q=c.valueNode.getBoundingClientRect(),$=E.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=$.left-M.left,ke=q.left-Ne,Ke=A.left-ke,Fe=A.width+Ke,An=Math.max(Fe,M.width),gn=window.innerWidth-Mn,Tt=Wy(ke,[Mn,Math.max(Mn,gn-An)]);m.style.minWidth=Fe+"px",m.style.left=Tt+"px"}else{const Ne=M.right-$.right,ke=window.innerWidth-q.right-Ne,Ke=window.innerWidth-A.right-ke,Fe=A.width+Ke,An=Math.max(Fe,M.width),gn=window.innerWidth-Mn,Tt=Wy(ke,[Mn,Math.max(Mn,gn-An)]);m.style.minWidth=Fe+"px",m.style.right=Tt+"px"}const W=w(),Y=window.innerHeight-Mn*2,J=S.scrollHeight,te=window.getComputedStyle(g),ce=parseInt(te.borderTopWidth,10),D=parseInt(te.paddingTop,10),V=parseInt(te.borderBottomWidth,10),L=parseInt(te.paddingBottom,10),oe=ce+D+J+L+V,de=Math.min(T.offsetHeight*5,oe),k=window.getComputedStyle(S),Q=parseInt(k.paddingTop,10),H=parseInt(k.paddingBottom,10),Z=A.top+A.height/2-Mn,re=Y-Z,fe=T.offsetHeight/2,F=T.offsetTop+fe,le=ce+D+F,pe=oe-le;if(le<=Z){const Ne=W.length>0&&T===W[W.length-1].ref.current;m.style.bottom="0px";const ke=g.clientHeight-S.offsetTop-S.offsetHeight,Ke=Math.max(re,fe+(Ne?H:0)+ke+V),Fe=le+Ke;m.style.height=Fe+"px"}else{const Ne=W.length>0&&T===W[0].ref.current;m.style.top="0px";const Ke=Math.max(Z,ce+S.offsetTop+(Ne?Q:0)+fe)+pe;m.style.height=Ke+"px",S.scrollTop=le-Z+S.offsetTop}m.style.margin=`${Mn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=Y+"px",l?.(),requestAnimationFrame(()=>j.current=!0)}},[w,c.trigger,c.valueNode,m,g,S,T,E,c.dir,l]);Ht(()=>O(),[O]);const[B,P]=b.useState();Ht(()=>{g&&P(window.getComputedStyle(g).zIndex)},[g]);const R=b.useCallback(A=>{A&&C.current===!0&&(O(),_?.(),C.current=!1)},[O,_]);return u.jsx(DT,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:R,children:u.jsx("div",{ref:h,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:B},children:u.jsx(We.div,{...o,ref:v,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Uw.displayName=TT;var OT="SelectPopperPosition",Up=b.forwardRef((n,a)=>{const{__scopeSelect:r,align:l="start",collisionPadding:o=Mn,...c}=n,d=eu(r);return u.jsx(s1,{...d,...c,ref:a,align:l,collisionPadding:o,style:{boxSizing:"border-box",...c.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)"}})});Up.displayName=OT;var[DT,Am]=vl(Ys,{}),Hp="SelectViewport",Hw=b.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:l,...o}=n,c=hs(Hp,r),d=Am(Hp,r),m=lt(a,c.onViewportChange),h=b.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),u.jsx(Wc.Slot,{scope:r,children:u.jsx(We.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ie(o.onScroll,g=>{const x=g.currentTarget,{contentWrapper:v,shouldExpandOnScrollRef:w}=d;if(w?.current&&v){const j=Math.abs(h.current-x.scrollTop);if(j>0){const C=window.innerHeight-Mn*2,S=parseFloat(v.style.minHeight),T=parseFloat(v.style.height),E=Math.max(S,T);if(E<C){const _=E+j,O=Math.min(C,_),B=_-O;v.style.height=O+"px",v.style.bottom==="0px"&&(x.scrollTop=B>0?B:0,v.style.justifyContent="flex-end")}}}h.current=x.scrollTop})})})]})});Hw.displayName=Hp;var qw="SelectGroup",[_T,RT]=vl(qw),MT=b.forwardRef((n,a)=>{const{__scopeSelect:r,...l}=n,o=Jr();return u.jsx(_T,{scope:r,id:o,children:u.jsx(We.div,{role:"group","aria-labelledby":o,...l,ref:a})})});MT.displayName=qw;var Vw="SelectLabel",zT=b.forwardRef((n,a)=>{const{__scopeSelect:r,...l}=n,o=RT(Vw,r);return u.jsx(We.div,{id:o.id,...l,ref:a})});zT.displayName=Vw;var Tc="SelectItem",[KT,Qw]=vl(Tc),Iw=b.forwardRef((n,a)=>{const{__scopeSelect:r,value:l,disabled:o=!1,textValue:c,...d}=n,m=ms(Tc,r),h=hs(Tc,r),g=m.value===l,[x,v]=b.useState(c??""),[w,j]=b.useState(!1),C=lt(a,_=>h.itemRefCallback?.(_,l,o)),S=Jr(),T=b.useRef("touch"),E=()=>{o||(m.onValueChange(l),m.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(KT,{scope:r,value:l,disabled:o,textId:S,isSelected:g,onItemTextChange:b.useCallback(_=>{v(O=>O||(_?.textContent??"").trim())},[]),children:u.jsx(Wc.ItemSlot,{scope:r,value:l,disabled:o,textValue:x,children:u.jsx(We.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...d,ref:C,onFocus:Ie(d.onFocus,()=>j(!0)),onBlur:Ie(d.onBlur,()=>j(!1)),onClick:Ie(d.onClick,()=>{T.current!=="mouse"&&E()}),onPointerUp:Ie(d.onPointerUp,()=>{T.current==="mouse"&&E()}),onPointerDown:Ie(d.onPointerDown,_=>{T.current=_.pointerType}),onPointerMove:Ie(d.onPointerMove,_=>{T.current=_.pointerType,o?h.onItemLeave?.():T.current==="mouse"&&_.currentTarget.focu
vendor: 6,535 bytes, line 361
361s({preventScroll:!0})}),onPointerLeave:Ie(d.onPointerLeave,_=>{_.currentTarget===document.activeElement&&h.onItemLeave?.()}),onKeyDown:Ie(d.onKeyDown,_=>{h.searchRef?.current!==""&&_.key===" "||(bT.includes(_.key)&&E(),_.key===" "&&_.preventDefault())})})})})});Iw.displayName=Tc;var mi="SelectItemText",Fw=b.forwardRef((n,a)=>{const{__scopeSelect:r,className:l,style:o,...c}=n,d=ms(mi,r),m=hs(mi,r),h=Qw(mi,r),g=NT(mi,r),[x,v]=b.useState(null),w=lt(a,E=>v(E),h.onItemTextChange,E=>m.itemTextRefCallback?.(E,h.value,h.disabled)),j=x?.textContent,C=b.useMemo(()=>u.jsx("option",{value:h.value,disabled:h.disabled,children:j},h.value),[h.disabled,h.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:T}=g;return Ht(()=>(S(C),()=>T(C)),[S,T,C]),u.jsxs(u.Fragment,{children:[u.jsx(We.span,{id:h.textId,...c,ref:w}),h.isSelected&&d.valueNode&&!d.valueNodeHasChildren?zi.createPortal(c.children,d.valueNode):null]})});Fw.displayName=mi;var Gw="SelectItemIndicator",Yw=b.forwardRef((n,a)=>{const{__scopeSelect:r,...l}=n;return Qw(Gw,r).isSelected?u.jsx(We.span,{"aria-hidden":!0,...l,ref:a}):null});Yw.displayName=Gw;var qp="SelectScrollUpButton",Xw=b.forwardRef((n,a)=>{const r=hs(qp,n.__scopeSelect),l=Am(qp,n.__scopeSelect),[o,c]=b.useState(!1),d=lt(a,l.onScrollButtonChange);return Ht(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=h.scrollTop>0;c(g)};const h=r.viewport;return m(),h.addEventListener("scroll",m),()=>h.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?u.jsx($w,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:h}=r;m&&h&&(m.scrollTop=m.scrollTop-h.offsetHeight)}}):null});Xw.displayName=qp;var Vp="SelectScrollDownButton",Zw=b.forwardRef((n,a)=>{const r=hs(Vp,n.__scopeSelect),l=Am(Vp,n.__scopeSelect),[o,c]=b.useState(!1),d=lt(a,l.onScrollButtonChange);return Ht(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=h.scrollHeight-h.clientHeight,x=Math.ceil(h.scrollTop)<g;c(x)};const h=r.viewport;return m(),h.addEventListener("scroll",m),()=>h.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?u.jsx($w,{...n,ref:d,onAutoScroll:()=>{const{viewport:m,selectedItem:h}=r;m&&h&&(m.scrollTop=m.scrollTop+h.offsetHeight)}}):null});Zw.displayName=Vp;var $w=b.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:l,...o}=n,c=hs("SelectScrollButton",r),d=b.useRef(null),m=Jc(r),h=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>h(),[h]),Ht(()=>{m().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),u.jsx(We.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:Ie(o.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(l,50))}),onPointerMove:Ie(o.onPointerMove,()=>{c.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(l,50))}),onPointerLeave:Ie(o.onPointerLeave,()=>{h()})})}),BT="SelectSeparator",PT=b.forwardRef((n,a)=>{const{__scopeSelect:r,...l}=n;return u.jsx(We.div,{"aria-hidden":!0,...l,ref:a})});PT.displayName=BT;var Qp="SelectArrow",LT=b.forwardRef((n,a)=>{const{__scopeSelect:r,...l}=n,o=eu(r),c=ms(Qp,r),d=hs(Qp,r);return c.open&&d.position==="popper"?u.jsx(r1,{...o,...l,ref:a}):null});LT.displayName=Qp;var UT="SelectBubbleInput",Ww=b.forwardRef(({__scopeSelect:n,value:a,...r},l)=>{const o=b.useRef(null),c=lt(l,o),d=Tw(a);return b.useEffect(()=>{const m=o.current;if(!m)return;const h=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(h,"value").set;if(d!==a&&x){const v=new Event("change",{bubbles:!0});x.call(m,a),m.dispatchEvent(v)}},[d,a]),u.jsx(We.select,{...r,style:{...l1,...r.style},ref:c,defaultValue:a})});Ww.displayName=UT;function Jw(n){return n===""||n===void 0}function e2(n){const a=qs(n),r=b.useRef(""),l=b.useRef(0),o=b.useCallback(d=>{const m=r.current+d;a(m),(function h(g){r.current=g,window.clearTimeout(l.current),g!==""&&(l.current=window.setTimeout(()=>h(""),1e3))})(m)},[a]),c=b.useCallback(()=>{r.current="",window.clearTimeout(l.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(l.current),[]),[r,o,c]}function t2(n,a,r){const o=a.length>1&&Array.from(a).every(g=>g===a[0])?a[0]:a,c=r?n.indexOf(r):-1;let d=HT(n,Math.max(c,0));o.length===1&&(d=d.filter(g=>g!==r));const h=d.find(g=>g.textValue.toLowerCase().startsWith(o.toLowerCase()));return h!==r?h:void 0}function HT(n,a){return n.map((r,l)=>n[(a+l)%n.length])}var qT=Ow,VT=_w,QT=Mw,IT=zw,FT=Kw,GT=Bw,YT=Hw,XT=Iw,ZT=Fw,$T=Yw,WT=Xw,JT=Zw;function n2({...n}){return u.jsx(qT,{"data-loc":"client/src/components/ui/select.tsx:10","data-slot":"select",...n})}function a2({...n}){return u.jsx(QT,{"data-loc":"client/src/components/ui/select.tsx:22","data-slot":"select-value",...n})}function s2({className:n,size:a="default",children:r,...l}){return u.jsxs(VT,{"data-loc":"client/src/components/ui/select.tsx:34","data-slot":"select-trigger","data-size":a,className:tt("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...l,children:[r,u.jsx(IT,{"data-loc":"client/src/components/ui/select.tsx:44",asChild:!0,children:u.jsx(k1,{"data-loc":"client/src/components/ui/select.tsx:45",className:"size-4 opacity-50"})})]})}function r2({className:n,children:a,position:r="popper",align:l="center",...o}){return u.jsx(FT,{"data-loc":"client/src/components/ui/select.tsx:59",children:u.jsxs(GT,{"data-loc":"client/src/components/ui/select.tsx:60","data-slot":"select-content",className:tt("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
361de-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",n),position:r,align:l,...o,children:[u.jsx(eO,{"data-loc":"client/src/components/ui/select.tsx:72"}),u.jsx(YT,{"data-loc":"client/src/components/ui/select.tsx:73",className:tt("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:a}),u.jsx(tO,{"data-loc":"client/src/components/ui/select.tsx:82"})]})})}function Ip({className:n,children:a,...r}){return u.jsxs(XT,{"data-loc":"client/src/components/ui/select.tsx:107","data-slot":"select-item",className:tt("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",n),...r,children:[u.jsx("span",{"data-loc":"client/src/components/ui/select.tsx:115",className:"absolute right-2 flex size-3.5 items-center justify-center",children:u.jsx($T,{"data-loc":"client/src/components/ui/select.tsx:116",children:u.jsx(Na,{"data-loc":"client/src/components/ui/select.tsx:117",className:"size-4"})})}),u.jsx(ZT,{"data-loc":"client/src/components/ui/select.tsx:120",children:a})]})}function eO({className:n,...a}){return u.jsx(WT,{"data-loc":"client/src/components/ui/select.tsx:143","data-slot":"select-scroll-up-button",className:tt("flex cursor-default items-center justify-center py-1",n),...a,children:u.jsx(y5,{"data-loc":"client/src/components/ui/select.tsx:151",className:"size-4"})})}function tO({className:n,...a}){return u.jsx(JT,{"data-loc":"client/src/components/ui/select.tsx:161","data-slot":"select-scroll-down-button",className:tt("flex cursor-default items-center justify-center py-1",n),...a,children:u.jsx(k1,{"data-loc":"client/src/components/ui/select.tsx:169",className:"size-4"})})}var nO="Label",l2=b.forwardRef((n,a)=>u.jsx(We.label,{...n,ref:a,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(n.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));l2.displayName=nO;var aO=l2;function Be({className:n,...a}){return u.jsx(aO,{"data-loc":"client/src/components/ui/label.tsx:11","data-slot":"label",className:tt("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",n),...a})}var tu="Switch",[sO]=Ws(tu),[rO,lO]=sO(tu),i2=b.forwardRef((n,a)=>{const{__scopeSwitch:r,name:l,checked:o,defaultChecked:c,required:d,disabled:m,value:h="on",onCheckedChange:g,form:x,...v}=n,[w,j]=b.useState(null),C=lt(a,O=>j(O)),S=b.useRef(!1),T=w?x||!!w.closest("form"):!0,[E,_]=Ec({prop:o,defaultProp:c??!1,onChange:g,caller:tu});return u.jsxs(rO,{scope:r,checked:E,disabled:m,children:[u.jsx(We.button,{type:"button",role:"switch","aria-checked":E,"aria-required":d,"data-state":d2(E),"data-disabled":m?"":void 0,disabled:m,value:h,...v,ref:C,onClick:Ie(n.onClick,O=>{_(B=>!B),T&&(S.current=O.isPropagationStopped(),S.current||O.stopPropagation())})}),T&&u.jsx(u2,{control:w,bubbles:!S.current,name:l,value:h,checked:E,required:d,disabled:m,form:x,style:{transform:"translateX(-100%)"}})]})});i2.displayName=tu;var o2="SwitchThumb",c2=b.forwardRef((n,a)=>{const{__scopeSwitch:r,...l}=n,o=lO(o2,r);return u.jsx(We.span,{"data-state":d2(o.checked),"data-disabled":o.disabled?"":void 0,...l,ref:a})});c2.displayName=o2;var iO="SwitchBubbleInput",u2=b.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:l=!0,...o},c)=>{const d=b.useRef(null),m=lt(d,c),h=Tw(r),g=Gb(a);return b.useEffect(()=>{const x=d.current;if(!x)return;const v=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(v,"checked").set;if(h!==r&&j){const C=new Event("click",{bubbles:l});j.call(x,r),x.dispatchEvent(C)}},[h,r,l]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});u2.displayName=iO;function d2(n){return n?"checked":"unchecked"}var oO=i2,cO=c2;function is({className:n,...a}){return u.jsx(oO,{"data-loc":"client/src/components/ui/switch.tsx:11","data-slot":"switch",className:tt("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:u.jsx(cO,{"data-loc":"client/src/components/ui/switch.tsx:19","data-slot":"switch-thumb",className:tt("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}function f2({open:n,onOpenChange:a,onKies:r,bezig:l}){const{data:o,isLoading:c}=be.klusapp.klanten.list.useQuery(void 0,{enabled:n}),d=be.useUtils(),m=be.klusapp.klanten.create.useMutation(),[h,g]=b.useState(""),[x,v]=b.useState(!1),[w,j]=b.useState({naam:"",telefoon:"",email:"",adres:"",postcode:"",stad:"",isZakelijk:!1,btwNummer:"",kvkNummer:""});function C(){g(""),v(!1),j({naam:"",telefoon:"",email:"",adres:"",postcode:"",stad:"",isZakelijk:!1,btwNummer:"",kvkNummer:""})}function S(O){O||C(),a(O)}const T=(o||[]).filter(O=>O.naam.toLowerCase().includes(h.trim().toLowerCase()));
361async function E(){if(!w.naam.trim())return Se.error("Naam is verplicht");try{const O=await m.mutateAsync(w);await d.klusapp.klanten.list.invalidate(),await r({id:O.id,naam:O.naam}),Se.success(`Klant "${O.naam}" aangemaakt en gekoppeld`),S(!1)}catch(O){Se.error("Klant aanmaken mislukt: "+O.message)}}async function _(O){await r(O),S(!1)}return u.jsx(ki,{"data-loc":"client/src/components/KlantKiezer.tsx:78",open:n,onOpenChange:S,children:u.jsxs(Ai,{"data-loc":"client/src/components/KlantKiezer.tsx:79",className:"max-h-[85vh] overflow-y-auto",children:[u.jsxs(Ti,{"data-loc":"client/src/components/KlantKiezer.tsx:80",children:[u.jsx(Oi,{"data-loc":"client/src/components/KlantKiezer.tsx:81",children:x?"Nieuwe klant":"Klant koppelen"}),u.jsx(Ac,{"data-loc":"client/src/components/KlantKiezer.tsx:82",children:x?"Alleen de naam is verplicht. De rest kun je later aanvullen.":"Kies een bestaande klant of maak er snel een nieuwe aan."})]}),x?u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:134",className:"space-y-3",children:[u.jsxs("button",{"data-loc":"client/src/components/KlantKiezer.tsx:135",onClick:()=>v(!1),className:"inline-flex items-center gap-1 text-sm text-muted-foreground",children:[u.jsx(Js,{"data-loc":"client/src/components/KlantKiezer.tsx:136",className:"h-4 w-4"})," Terug naar lijst"]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:138",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:139",className:"mb-1.5 block",children:"Naam *"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:140",value:w.naam,onChange:O=>j({...w,naam:O.target.value}),placeholder:"Bijv. Jan Jansen / Jansen B.V.",autoFocus:!0})]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:142",className:"grid grid-cols-2 gap-2",children:[u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:143",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:143",className:"mb-1.5 block",children:"Telefoon"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:143",value:w.telefoon,onChange:O=>j({...w,telefoon:O.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:144",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:144",className:"mb-1.5 block",children:"E-mail"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:144",value:w.email,onChange:O=>j({...w,email:O.target.value})})]})]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:146",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:146",className:"mb-1.5 block",children:"Adres"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:146",value:w.adres,onChange:O=>j({...w,adres:O.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:147",className:"grid grid-cols-2 gap-2",children:[u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:148",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:148",className:"mb-1.5 block",children:"Postcode"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:148",value:w.postcode,onChange:O=>j({...w,postcode:O.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:149",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:149",className:"mb-1.5 block",children:"Plaats"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:149",value:w.stad,onChange:O=>j({...w,stad:O.target.value})})]})]}),u.jsxs("label",{"data-loc":"client/src/components/KlantKiezer.tsx:151",className:"flex items-center justify-between text-sm",children:[u.jsx("span",{"data-loc":"client/src/components/KlantKiezer.tsx:152",children:"Zakelijke klant (btw verleggen mogelijk)"}),u.jsx(is,{"data-loc":"client/src/components/KlantKiezer.tsx:153",checked:w.isZakelijk,onCheckedChange:O=>j({...w,isZakelijk:O})})]}),w.isZakelijk&&u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:156",className:"grid grid-cols-2 gap-2",children:[u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:157",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:157",className:"mb-1.5 block",children:"Btw-nummer"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:157",value:w.btwNummer,onChange:O=>j({...w,btwNummer:O.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:158",children:[u.jsx(Be,{"data-loc":"client/src/components/KlantKiezer.tsx:158",className:"mb-1.5 block",children:"KvK-nummer"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:158",value:w.kvkNummer,onChange:O=>j({...w,kvkNummer:O.target.value})})]})]}),u.jsxs($c,{"data-loc":"client/src/components/KlantKiezer.tsx:161",className:"gap-2 sm:gap-0",children:[u.jsx(je,{"data-loc":"client/src/components/KlantKiezer.tsx:162",variant:"outline",className:"bg-card",onClick:()=>v(!1),children:"Annuleren"}),u.jsxs(je,{"data-loc":"client/src/components/KlantKiezer.tsx:163",onClick:E,disabled:m.isPending||l||!w.naam.trim(),children:[m.isPending||l?u.jsx(Qe,{"data-loc":"client/src/components/KlantKiezer.tsx:164",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Cc,{"data-loc":"client/src/components/KlantKiezer.tsx:164",className:"h-4 w-4 mr-1"}),"Aanmaken & koppelen"]})]})]}):u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:90",className:"space-y-3",children:[u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:91",className:"relative",children:[u.jsx(R1,{"data-loc":"client/src/components/KlantKiezer.tsx:92",className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),u.jsx(De,{"data-loc":"client/src/components/KlantKiezer.tsx:93",className:"pl-9",placeholder:"Zoek op naam...",value:h,onChange:O=>g(O.target.value),autoFocus:!0})]}),u.jsxs(je,{"data-loc":"client/src/components/KlantKiezer.tsx:102",variant:"outline",className:"w-full bg-card justify-start",onClick:()=>v(!0),children:[u.jsx(Cc,{"data-loc":"client/src/components/KlantKiezer.tsx:103",className:"h-4 w-4 mr-2"})," Nieuwe klant aanmaken"]}),u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:106",className:"space-y-1.5 max-h-64 overflow-y-auto",children:[c&&u.jsx("div",{"data-loc":"client/src/components/KlantKiezer.tsx:108",className:"flex justify-center py-6",children:u.jsx(Qe,{"data-loc":"client/src/components/KlantKiezer.tsx:108",className:"h-5 w-5 animate-spin text-primary"})}),!c&&T.length===0&&u.jsx("p",{"data-loc":"client/src/components/KlantKiezer.tsx:111",className:"text-sm text-muted-foreground text-center py-4",children:h?"Geen klant gevonden. Maak een nieuwe aan.":"Nog geen klanten. Maak je eerste klant aan."}),T.map(O=>u.jsxs("button",{"data-loc":"client/src/components/KlantKiezer.tsx:116",onClick:()=>_({id:O.id,naam:O.naam}),disabled:l,className:"w-full text-left rounded-lg border border-border bg-card p-3 active:scale-[0.99] transition-transform disabled:opacity-50 flex items-center justify-between",children:[u.jsxs("div",{"data-loc":"client/src/components/KlantKiezer.tsx:122",children:[u.jsx("div",{"data-loc":"client/src/components/KlantKiezer.tsx:123",className:"font-medium text-sm",children:O.naam}),(O.telefoon||O.stad)&&u.jsx("div",{"data-loc":"client/src/components/KlantKiezer.tsx:125",className:"text-xs text-muted-foreground",children:[O.telefoon,O.stad].filter(
361Boolean).join(" · ")})]}),l?u.jsx(Qe,{"data-loc":"client/src/components/KlantKiezer.tsx:128",className:"h-4 w-4 animate-spin"}):u.jsx(Na,{"data-loc":"client/src/components/KlantKiezer.tsx:128",className:"h-4 w-4 text-muted-foreground"})]},O.id))]})]})]})})}var p2="AlertDialog",[uO]=Ws(p2,[aw]),Aa=aw(),m2=n=>{const{__scopeAlertDialog:a,...r}=n,l=Aa(a);return u.jsx(yw,{...l,...r,modal:!0})};m2.displayName=p2;var dO="AlertDialogTrigger",h2=b.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...l}=n,o=Aa(r);return u.jsx(bw,{...o,...l,ref:a})});h2.displayName=dO;var fO="AlertDialogPortal",g2=n=>{const{__scopeAlertDialog:a,...r}=n,l=Aa(a);return u.jsx(ww,{...l,...r})};g2.displayName=fO;var pO="AlertDialogOverlay",v2=b.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...l}=n,o=Aa(r);return u.jsx(Sw,{...o,...l,ref:a})});v2.displayName=pO;var al="AlertDialogContent",[mO,hO]=uO(al),gO=_b("AlertDialogContent"),x2=b.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:l,...o}=n,c=Aa(r),d=b.useRef(null),m=lt(a,d),h=b.useRef(null);return u.jsx(uT,{contentName:al,titleName:y2,docsSlug:"alert-dialog",children:u.jsx(mO,{scope:r,cancelRef:h,children:u.jsxs(jw,{role:"alertdialog",...c,...o,ref:m,onOpenAutoFocus:Ie(o.onOpenAutoFocus,g=>{g.preventDefault(),h.current?.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[u.jsx(gO,{children:l}),u.jsx(xO,{contentRef:d})]})})})});x2.displayName=al;var y2="AlertDialogTitle",b2=b.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...l}=n,o=Aa(r);return u.jsx(Nw,{...o,...l,ref:a})});b2.displayName=y2;var w2="AlertDialogDescription",S2=b.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...l}=n,o=Aa(r);return u.jsx(Ew,{...o,...l,ref:a})});S2.displayName=w2;var vO="AlertDialogAction",j2=b.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...l}=n,o=Aa(r);return u.jsx(Cm,{...o,...l,ref:a})});j2.displayName=vO;var N2="AlertDialogCancel",E2=b.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...l}=n,{cancelRef:o}=hO(N2,r),c=Aa(r),d=lt(a,o);return u.jsx(Cm,{...c,...l,ref:d})});E2.displayName=N2;var xO=({contentRef:n})=>{const a=`\`${al}\` requires a description for the component to be accessible for screen reader users. 362 363You can add a description to the \`${al}\` by passing a \`${w2}\` component as a child, which also benefits sighted users by adding visible context to the dialog. 364 365Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${al}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component. 366 367For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return b.useEffect(()=>{document.getElementById(n.current?.getAttribute("aria-describedby"))||console.warn(a)},[a,n]),null},yO=m2,bO=h2,wO=g2,SO=v2,jO=x2,NO=j2,EO=E2,CO=b2,kO=S2;function Tm({...n}){return u.jsx(yO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:10","data-slot":"alert-dialog",...n})}function Om({...n}){return u.jsx(bO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:17","data-slot":"alert-dialog-trigger",...n})}function AO({...n}){return u.jsx(wO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:25","data-slot":"alert-dialog-portal",...n})}function TO({className:n,...a}){return u.jsx(SO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:34","data-slot":"alert-dialog-overlay",className:tt("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",n),...a})}function Dm({className:n,...a}){return u.jsxs(AO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:50",children:[u.jsx(TO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:51"}),u.jsx(jO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:52","data-slot":"alert-dialog-content",className:tt("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
367ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",n),...a})]})}function _m({className:n,...a}){return u.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:69","data-slot":"alert-dialog-header",className:tt("flex flex-col gap-2 text-center sm:text-left",n),...a})}function Rm({className:n,...a}){return u.jsx("div",{"data-loc":"client/src/components/ui/alert-dialog.tsx:82","data-slot":"alert-dialog-footer",className:tt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",n),...a})}function Mm({className:n,...a}){return u.jsx(CO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:98","data-slot":"alert-dialog-title",className:tt("text-lg font-semibold",n),...a})}function zm({className:n,...a}){return u.jsx(kO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:111","data-slot":"alert-dialog-description",className:tt("text-muted-foreground text-sm",n),...a})}function Km({className:n,...a}){return u.jsx(NO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:124",className:tt(mm(),n),...a})}function Bm({className:n,...a}){return u.jsx(EO,{"data-loc":"client/src/components/ui/alert-dialog.tsx:136",className:tt(mm({variant:"outline"}),n),...a})}function OO(){const[,n]=Yc("/app/klussen/:id"),[,a]=er(),r=Number(n?.id),l=be.useUtils(),{data:o,isLoading:c}=be.klusapp.klussen.get.useQuery({id:r},{enabled:!!r}),{data:d,isLoading:m}=be.klusapp.klanten.get.useQuery({id:o?.klantId},{enabled:!!o?.klantId}),h=be.klusapp.klussen.update.useMutation(),g=be.klusapp.klussen.update.useMutation(),[x,v]=b.useState(!1),w=be.klusapp.facturen.create.useMutation(),j=be.klusapp.klussen.naarWerkbon.useMutation(),C=be.klusapp.klussen.delete.useMutation();if(c||!o)return u.jsx(qt,{"data-loc":"client/src/pages/KlusDetail.tsx:32",title:"Klus",children:u.jsx("div",{"data-loc":"client/src/pages/KlusDetail.tsx:32",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/KlusDetail.tsx:32",className:"h-6 w-6 animate-spin text-primary"})})});const S=o.regels||[],T=ul(S);async function E(R){await h.mutateAsync({id:r,status:R}),await l.klusapp.klussen.get.invalidate({id:r}),await l.klusapp.klussen.list.invalidate(),await l.klusapp.dashboard.stats.invalidate(),Se.success("Status bijgewerkt")}async function _(){if(!o.klantId)return Se.error("Koppel eerst een klant aan deze klus");try{const R=await w.mutateAsync({klusId:r,klantId:o.klantId,regels:S});await h.mutateAsync({id:r,status:"gefactureerd"}),await l.klusapp.facturen.list.invalidate(),await l.klusapp.klussen.list.invalidate(),Se.success("Factuur aangemaakt"),a(`/app/facturen/${R.id}`)}catch(R){Se.error("Mislukt: "+R.message)}}async function O(){try{const R=await j.mutateAsync({klusId:r});await l.klusapp.werkbonnen.list.invalidate(),await l.klusapp.klussen.get.invalidate({id:r}),await l.klusapp.klussen.list.invalidate(),Se.success("Werkbon aangemaakt vanuit deze klus"),a(`/app/werkbon/${r}?wb=${R.id}`)}catch(R){Se.error("Mislukt: "+R.message)}}async function B(R){try{await g.mutateAsync({id:r,klantId:R.id}),await l.klusapp.klussen.get.invalidate({id:r}),await l.klusapp.klussen.list.invalidate(),R.id&&await l.klusapp.klanten.get.invalidate({id:R.id}),Se.success(`Klant "${R.naam}" gekoppeld aan deze klus`)}catch(A){throw Se.error("Klant koppelen mislukt: "+A.message),A}}async function P(){await C.mutateAsync({id:r}),await l.klusapp.klussen.list.invalidate(),Se.success("Klus verwijderd"),a("/app/klussen")}return u.jsxs(qt,{"data-loc":"client/src/pages/KlusDetail.tsx:94",title:"Klusdetail",children:[u.jsxs(ft,{"data-loc":"client/src/pages/KlusDetail.tsx:95",href:"/app/klussen",className:"inline-flex items-center gap-1 text-sm text-muted-foreground mb-4",children:[u.jsx(Js,{"data-loc":"client/src/pages/KlusDetail.tsx:96",className:"h-4 w-4"})," Terug"]}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:99",className:"flex items-start justify-between mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:100",children:[u.jsx("h1",{"data-loc":"client/src/pages/KlusDetail.tsx:101",className:"text-xl font-bold",children:o.titel}),u.jsxs("p",{"data-loc":"client/src/pages/KlusDetail.tsx:102",className:"text-sm text-muted-foreground",children:[o.nummer," · ",Is(o.createdAt)]})]}),u.jsx("span",{"data-loc":"client/src/pages/KlusDetail.tsx:104",className:`text-xs px-2 py-1 rounded-full font-medium ${gl(o.status)}`,children:Ci[o.status]})]}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:107",className:"bg-card rounded-xl border border-border p-4 mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:108",className:"flex items-center justify-between mb-1",children:[u.jsx("div",{"data-loc":"client/src/pages/KlusDetail.tsx:109",className:"text-xs text-muted-foreground",children:"Klant"}),o.klantId?u.jsx(je,{"data-loc":"client/src/pages/KlusDetail.tsx:111",variant:"ghost",size:"sm",className:"h-7 px-2 text-xs",onClick:()=>v(!0),disabled:g.isPending,children:g.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/KlusDetail.tsx:112",className:"h-3.5 w-3.5 animate-spin"}):u.jsxs(u.Fragment,{children:[u.jsx(A5,{"data-loc":"client/src/pages/KlusDetail.tsx:112",className:"h-3.5 w-3.5 mr-1"})," Wijzigen"]})}):null]}),o.klantId&&m?u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:117",className:"flex items-center gap-2 text-sm text-muted-foreground py-0.5",children:[u.jsx(Qe,{"data-loc":"client/src/pages/KlusDetail.tsx:118",className:"h-4 w-4 animate-spin"})," Klant laden..."]}):o.klantId&&d?u.jsxs(ft,{"data-loc":"client/src/pages/KlusDetail.tsx:121",href:`/app/klanten/${d.id}`,className:"block",children:[u.jsx("div",{"data-loc":"client/src/pages/KlusDetail.tsx:122",className:"font-medium",children:d.naam}),d.adres&&u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:123",className:"text-sm text-muted-foreground",children:[d.adres,", ",d.stad]})]}):u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:126",className:"flex items-center justify-between gap-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:127",className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(z5,{"data-loc":"client/src/pages/KlusDetail.tsx:128",className:"h-4 w-4"})," Nog geen klant gekoppeld"]}),u.jsxs(je,{"data-loc":"client/src/pages/KlusDetail.tsx:130",size:"sm",onClick:()=>v(!0),disabled:g.isPending,children:[g.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/KlusDetail.tsx:131",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Cc,{"data-loc":"client/src/pages/KlusDetail.tsx:131",className:"h-4 w-4 mr-1"}),"Klant koppelen"]})]})]}),u.jsx(f2,{"data-loc":"client/src/pages/KlusDetail.tsx:138",open:x,onOpenChange:v,onKie
367s:B,bezig:g.isPending}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:140",className:"bg-card rounded-xl border border-border p-4 mb-4",children:[u.jsx("div",{"data-loc":"client/src/pages/KlusDetail.tsx:141",className:"text-xs text-muted-foreground mb-2",children:"Status wijzigen"}),u.jsxs(n2,{"data-loc":"client/src/pages/KlusDetail.tsx:142",value:o.status,onValueChange:E,children:[u.jsx(s2,{"data-loc":"client/src/pages/KlusDetail.tsx:143",children:u.jsx(a2,{"data-loc":"client/src/pages/KlusDetail.tsx:143"})}),u.jsx(r2,{"data-loc":"client/src/pages/KlusDetail.tsx:144",children:Object.entries(Ci).map(([R,A])=>u.jsx(Ip,{"data-loc":"client/src/pages/KlusDetail.tsx:145",value:R,children:A},R))})]})]}),u.jsx("h2",{"data-loc":"client/src/pages/KlusDetail.tsx:150",className:"font-semibold mb-2",children:"Regels"}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:151",className:"bg-card rounded-xl border border-border divide-y divide-border mb-4",children:[S.map((R,A)=>u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:153",className:"p-3 flex justify-between",children:[u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:154",children:[u.jsx("div",{"data-loc":"client/src/pages/KlusDetail.tsx:155",className:"font-medium text-sm",children:R.omschrijving}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:156",className:"text-xs text-muted-foreground",children:[R.aantal," ",R.eenheid," à ",$e(R.prijs)," · ",R.btw,"% btw"]})]}),u.jsx("div",{"data-loc":"client/src/pages/KlusDetail.tsx:158",className:"font-medium text-sm",children:$e(R.aantal*R.prijs)})]},A)),S.length===0&&u.jsx("div",{"data-loc":"client/src/pages/KlusDetail.tsx:161",className:"p-4 text-sm text-muted-foreground text-center",children:"Geen regels"})]}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:164",className:"bg-secondary/50 rounded-xl p-4 mb-5 space-y-1 text-sm",children:[u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:165",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/KlusDetail.tsx:165",children:"Subtotaal"}),u.jsx("span",{"data-loc":"client/src/pages/KlusDetail.tsx:165",children:$e(T.exclBtw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:166",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/KlusDetail.tsx:166",children:"BTW"}),u.jsx("span",{"data-loc":"client/src/pages/KlusDetail.tsx:166",children:$e(T.btw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:167",className:"flex justify-between font-bold text-base",children:[u.jsx("span",{"data-loc":"client/src/pages/KlusDetail.tsx:167",children:"Totaal"}),u.jsx("span",{"data-loc":"client/src/pages/KlusDetail.tsx:167",className:"text-primary",children:$e(T.inclBtw)})]})]}),u.jsxs("div",{"data-loc":"client/src/pages/KlusDetail.tsx:170",className:"space-y-2",children:[u.jsxs(je,{"data-loc":"client/src/pages/KlusDetail.tsx:171",className:"w-full",onClick:_,disabled:w.isPending,children:[w.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/KlusDetail.tsx:172",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Qs,{"data-loc":"client/src/pages/KlusDetail.tsx:172",className:"h-4 w-4 mr-1"}),"Maak factuur van deze klus"]}),u.jsxs(je,{"data-loc":"client/src/pages/KlusDetail.tsx:175",variant:"outline",className:"w-full bg-card",onClick:O,disabled:j.isPending,children:[j.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/KlusDetail.tsx:176",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Ei,{"data-loc":"client/src/pages/KlusDetail.tsx:176",className:"h-4 w-4 mr-1"})," Werkbon maken (één tik)"]}),u.jsxs(Tm,{"data-loc":"client/src/pages/KlusDetail.tsx:178",children:[u.jsx(Om,{"data-loc":"client/src/pages/KlusDetail.tsx:179",asChild:!0,children:u.jsxs(je,{"data-loc":"client/src/pages/KlusDetail.tsx:180",variant:"ghost",className:"w-full text-destructive",children:[u.jsx(Pi,{"data-loc":"client/src/pages/KlusDetail.tsx:180",className:"h-4 w-4 mr-1"})," Klus verwijderen"]})}),u.jsxs(Dm,{"data-loc":"client/src/pages/KlusDetail.tsx:182",children:[u.jsxs(_m,{"data-loc":"client/src/pages/KlusDetail.tsx:183",children:[u.jsx(Mm,{"data-loc":"client/src/pages/KlusDetail.tsx:184",children:"Klus verwijderen?"}),u.jsx(zm,{"data-loc":"client/src/pages/KlusDetail.tsx:185",children:"Dit kan niet ongedaan gemaakt worden."})]}),u.jsxs(Rm,{"data-loc":"client/src/pages/KlusDetail.tsx:187",children:[u.jsx(Bm,{"data-loc":"client/src/pages/KlusDetail.tsx:188",children:"Annuleren"}),u.jsx(Km,{"data-loc":"client/src/pages/KlusDetail.tsx:189",onClick:P,className:"bg-destructive text-destructive-foreground",children:"Verwijderen"})]})]})]})]})]})}function Fp({className:n,onKeyDown:a,onCompositionStart:r,onCompositionEnd:l,...o}){const c=km(),{onCompositionStart:d,onCompositionEnd:m,onKeyDown:h}=Aw({onKeyDown:g=>{const x=g.nativeEvent.isComposing||c.justEndedComposing();g.key==="Enter"&&!g.shiftKey&&x||a?.(g)},onCompositionStart:g=>{c.setComposing(!0),r?.(g)}
367,onCompositionEnd:g=>{c.markCompositionEnd(),setTimeout(()=>{c.setComposing(!1)},100),l?.(g)}});return u.jsx("textarea",{"data-loc":"client/src/components/ui/textarea.tsx:53","data-slot":"textarea",className:tt("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),onCompositionStart:d,onCompositionEnd:m,onKeyDown:h,...o})}const Jy=[{key:"kozijn",label:"Kozijnen"},{key:"raam",label:"Ramen"},{key:"deur",label:"Deuren"},{key:"m2 muur",label:"Muur (m²)"}];function DO(){const[,n]=er(),a=be.useUtils(),{data:r}=be.klusapp.klanten.list.useQuery(),{data:l}=be.klusapp.profiel.get.useQuery(),[o,c]=b.useState(""),[d,m]=b.useState("geen"),[h,g]=b.useState([]),[x,v]=b.useState(""),[w,j]=b.useState("spraak"),[C,S]=b.useState(!1),[T,E]=b.useState(!1),[_,O]=b.useState(!1),[B,P]=b.useState(!1),R=b.useRef(null),A=b.useRef([]),[M,q]=b.useState({}),[$,W]=b.useState(0),[Y,J]=b.useState({}),[te,ce]=b.useState(!0),[D,V]=b.useState(!1),L=be.klusapp.vakprofiel.calculeer.useMutation(),oe=[{naam:"Slechte ondergrond",factor:.2},{naam:"Winter/seizoen",factor:.15},{naam:"Hoogwerker/steiger nodig",factor:.1}],[de,k]=b.useState([]),[Q,H]=b.useState(""),[Z,re]=b.useState("auto"),[fe,F]=b.useState(""),[le,pe]=b.useState(""),[Ee,Ne]=b.useState(null),[ke,Ke]=b.useState(null),Fe=be.klusapp.ai.structureerTekst.useMutation(),An=be.klusapp.ai.structureerSpraak.useMutation(),gn=be.klusapp.ai.structureerFoto.useMutation(),Tt=be.klusapp.klussen.create.useMutation(),vn=ul(h),Ot=h.filter(ie=>ie.bron==="ai"&&(typeof ie.vertrouwen!="number"||ie.vertrouwen<.5)),Ta=h.filter(ie=>ie.regie);async function gs(){try{const ie=await navigator.mediaDevices.getUserMedia({audio:!0}),ge=new MediaRecorder(ie);A.current=[],ge.ondataavailable=me=>me.data.size>0&&A.current.push(me.data),ge.onstop=async()=>{ie.getTracks().forEach(Re=>Re.stop());const me=new Blob(A.current,{type:"audio/webm"});if(me.size<1e3){Se.error("Geen opname gemaakt. Houd de knop ingedrukt en spreek even in.");return}await Ln(me)},ge.start(),R.current=ge,S(!0)}catch{Se.error("Geen toegang tot microfoon. Gebruik de tekst-modus."),j("tekst")}}function Dt(){R.current?.stop(),S(!1)}async function Ln(ie){E(!0);try{const ge=await e0(ie),me=await An.mutateAsync({audioBase64:ge,mimeType:"audio/webm"});!o&&me.titel&&c(me.titel),g(Re=>[...Re,...me.regels.map(yt=>({...yt,bron:"ai"}))]),Ke({type:"spraak",transcript:me.transcriptie,tijdstip:new Date().toISOString()}),Se.success("Klus herkend! Controleer de regels voor je verstuurt.",{description:me.transcriptie})}catch(ge){Se.error("Kon spraak niet verwerken: "+ge.message)}finally{E(!1)}}async function _t(){if(x.trim()){E(!0);try{const ie=await Fe.mutateAsync({tekst:x});!o&&ie.titel&&c(ie.titel),g(ge=>[...ge,...ie.regels.map(me=>({...me,bron:"ai"}))]),Ke({type:"tekst",transcript:x,tijdstip:new Date().toISOString()}),v(""),Se.success("Klus omgezet naar regels! Controleer ze voor je verstuurt.")}catch(ie){Se.error("Kon tekst niet verwerken: "+ie.message)}finally{E(!1)}}}async function xl(ie){if(!ie)return;const ge=Array.from(ie).slice(0,6-de.length),me=[];for(const Re of ge){const yt=await e0(Re);me.push({base64:yt,mimeType:Re.type||"image/jpeg"})}k(Re=>[...Re,...me].slice(0,6))}async function aa(){if(de.length===0)return Se.error("Voeg eerst minstens één foto toe.");let ie={type:"auto"};if(Z==="maat"||Z==="eigen"){const ge=parseFloat(le.replace(",","."));if(!fe.trim())return Se.error("Beschrijf waar de referentie naar verwijst (bv. 'muur' of 'krat').");if(!ge||ge<=0)return Se.error("Vul een geldige maat in centimeters in.");ie={type:Z,omschrijving:fe.trim(),meters:ge/100}}E(!0);try{const ge=await gn.mutateAsync({fotos:de,context:Q,referentie:ie});!o&&ge.titel&&c(ge.titel),Ne({schaalUitleg:ge.schaalUitleg,ruimtes:ge.ruimtes}),g(me=>[...me,...ge.regels.map(Re=>({omschrijving:Re.omschrijving,aantal:Re.aantal,eenheid:Re.eenheid,prijs:Re.prijs,btw:Re.btw,regie:Re.regie,vertrouwen:Re.vertrouwen,bron:"ai"}))]),Ke({type:"foto",context:Q,fotoUrls:ge.fotoUrls,tijdstip:new Date().toISOString()}),Se.success("Meetstaat en concept-offerte voorgesteld. Controleer de afmetingen en elke regel voor je verstuurt.")}catch(ge){Se.error("Foto-analyse mislukt: "+ge.message)}finally{E(!1)}}async function ar(){const ie=Jy.filter(me=>(M[me.key]??0)>0).map(me=>({element:me.key,aantal:M[me.key]}));if(ie.length===0&&$<=0)return Se.error("Vul minstens één element of aantal m² in.");const ge=oe.filter(me=>Y[me.naam]).map(me=>me.factor);E(!0);try{const me=await L.mutateAsync({elementen:ie,m2:$>0?$:void 0,correctieFactoren:ge,inclMargelek:te,gebruikM2Richtprijs:D,uurtarief:l?.uurtarief?Number(l.uurtarief):void 0}),Re=me.regels.map(yt=>({omschrijving:yt.omschrijving,aantal:yt.aantal,eenheid:yt.eenheid,prijs:yt.prijs,btw:yt.btw,regie:yt.regie,bron:"c
367alculator"}));g(yt=>[...yt,...Re]),Ke({type:"calculator",context:`${me.uren} uur arbeid berekend`,tijdstip:new Date().toISOString()}),o||c("Schilderwerk (calculatie)"),Se.success(`Calculatie klaar: ${me.uren} uur arbeid. Pas regels gerust aan.`)}catch(me){Se.error("Calculatie mislukt: "+me.message)}finally{E(!1)}}function an(ie,ge){g(me=>me.map((Re,yt)=>yt===ie?{...Re,...ge}:Re))}function vs(ie){g(ge=>ge.filter((me,Re)=>Re!==ie))}function Tn(){g(ie=>[...ie,{omschrijving:"",aantal:1,eenheid:"stuk",prijs:0,btw:21,bron:"handmatig"}])}function sr(){if(!o.trim())return Se.error("Geef de klus een titel");if(h.length===0)return Se.error("Voeg minstens één regel toe");O(!0)}async function Un(){if(!o.trim())return Se.error("Geef de klus een titel");O(!1);try{const ie=await Tt.mutateAsync({titel:o,klantId:d==="geen"?null:Number(d),regels:h,status:"offerte",vakprofiel:h.some(ge=>ge.bron==="calculator")?"schilder":void 0,aiBron:ke??void 0});await a.klusapp.klussen.list.invalidate(),await a.klusapp.dashboard.stats.invalidate(),Se.success("Klus opgeslagen"),n(`/app/klussen/${ie.id}`)}catch(ie){Se.error("Opslaan mislukt: "+ie.message)}}return u.jsxs(qt,{"data-loc":"client/src/pages/NieuweKlus.tsx:268",title:"Nieuwe klus",children:[u.jsxs(ft,{"data-loc":"client/src/pages/NieuweKlus.tsx:269",href:"/app/klussen",className:"inline-flex items-center gap-1 text-sm text-muted-foreground mb-4",children:[u.jsx(Js,{"data-loc":"client/src/pages/NieuweKlus.tsx:270",className:"h-4 w-4"})," Terug"]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:273",className:"grid grid-cols-3 gap-2 mb-4",children:[u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:274",variant:w==="spraak"?"default":"outline",className:w!=="spraak"?"bg-card":"",onClick:()=>j("spraak"),children:[u.jsx(Us,{"data-loc":"client/src/pages/NieuweKlus.tsx:275",className:"h-4 w-4 mr-1"})," Inspreken"]}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:277",variant:w==="tekst"?"default":"outline",className:w!=="tekst"?"bg-card":"",onClick:()=>j("tekst"),children:[u.jsx(M5,{"data-loc":"client/src/pages/NieuweKlus.tsx:278",className:"h-4 w-4 mr-1"})," Typen"]}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:280",variant:w==="calculator"?"default":"outline",className:w!=="calculator"?"bg-card":"",onClick:()=>j("calculator"),children:[u.jsx(Oy,{"data-loc":"client/src/pages/NieuweKlus.tsx:281",className:"h-4 w-4 mr-1"})," Calc"]})]}),u.jsx("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:284",className:"mb-4",children:u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:285",variant:w==="foto"?"default":"outline",className:`w-full ${w!=="foto"?"bg-card":""}`,onClick:()=>j("foto"),children:[u.jsx(Ei,{"data-loc":"client/src/pages/NieuweKlus.tsx:286",className:"h-4 w-4 mr-1"})," Foto's â concept-offerte"]})}),w==="spraak"&&u.jsx("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:291",className:"bg-card rounded-xl border border-border p-6 mb-5 text-center",children:T?u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:293",className:"py-4",children:[u.jsx(Qe,{"data-loc":"client/src/pages/NieuweKlus.tsx:294",className:"h-10 w-10 animate-spin text-primary mx-auto mb-3"}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:295",className:"text-sm text-muted-foreground",children:"AI verwerkt je klus..."})]}):u.jsxs(u.Fragment,{children:[u.jsx("button",{"data-loc":"client/src/pages/NieuweKlus.tsx:299",onClick:C?Dt:gs,className:`w-20 h-20 rounded-full flex items-center justify-center mx-auto mb-3 transition-all ${C?"bg-destructive animate-pulse":"bg-primary active:scale-95"}`,children:C?u.jsx(M1,{"data-loc":"client/src/pages/NieuweKlus.tsx:305",className:"h-8 w-8 text-white"}):u.jsx(Us,{"data-loc":"client/src/pages/NieuweKlus.tsx:305",className:"h-9 w-9 text-primary-foreground"})}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:307",className:"text-sm font-medium",children:C?"Tik om te stoppen":"Tik en spreek je klus in"}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:308",className:"text-xs text-muted-foreground mt-1",children:'Bijv. "Badkamer betegeld, 12 m², 4 uur arbeid, nieuwe kraan"'})]})}),w==="tekst"&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:315",className:"bg-card rounded-xl border border-border p-4 mb-5",children:[u.jsx(Fp,{"data-loc":"client/src/pages/NieuweKlus.tsx:316",placeholder:'Beschrijf de klus, bijv. "Badkamer betegeld 12 m², 4 uur arbeid à 55 euro, nieuwe kraan gemonteerd 95 euro"',value:x,onChange:ie=>v(ie.target.value),rows:3,className:"mb-3"}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:323",onClick:_t,disabled:T||!x.trim(),className:"w-full",children:[T?u.jsx(Qe,{"data-loc":"client/src/pages/NieuweKlus.tsx:324",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Kp,{"data-loc":"client/src/pages/NieuweKlus.tsx:324",className:"h-4 w-4 mr-1"}),"Omzetten naar regels"]})]}),w==="foto"&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:331",className:"bg-card rounded-xl border border-border p-4 mb-5 space-y-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:332",children:[u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:333",className:"text-sm font-medium mb-1",children:"Foto's â ruimte opmeten â concept-offerte"}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:334",className:"text-xs text-muted-foreground",children:"Maak foto's van de ruimte. De AI schat de afmetingen op basis van een referentie en maakt een meetstaat + concept-offerte. Houtrot/onbekende schade komt op regie. Tip: zorg dat een deur of ander herkenbaar object in beeld staat."})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:336",className:"grid grid-cols-3 gap-2",children:[de.map((ie,ge)=>u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:338",className:"relative aspect-square rounded-lg overflow-hidden border border-border",children:[u.jsx("img",{"data-loc":"client/src/pages/NieuweKlus.tsx:339",src:ie.base64,alt:`foto ${ge+1}`,className:"w-full h-full object-cover"}),u.jsx("button",{"data-loc":"client/src/pages/NieuweKlus.tsx:340",onClick:()=>k(me=>me.filter((Re,yt)=>yt!==ge)),className:"absolute top-1 right-1 bg-black/60 rounded-full p-0.5",children:u.jsx(gm,{"data-loc":"client/src/pages/NieuweKlus.tsx:341",className:"h-3.5 w-3.5 text-white"})})]},ge)),de.length<6&&u.jsxs("label",{"data-loc":"client/src/pages/NieuweKlus.tsx:346",className:"aspect-square rounded-lg border-2 border-dashed border-border flex flex-col items-center justify-center cursor-pointer text-muted-foreground active:scale-95 transition-transform",children:[u.jsx(Ei,{"data-loc":"client/src/pages/NieuweKlus.tsx:347",className:"h-6 w-6 mb-1"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:348",className:"text-[11px]",children:"Foto"}),u.jsx("input",{"data-loc":"client/src/pages/NieuweKlus.tsx:349",type:"file",accept:"image/*",capture:"environment",multiple:!0,className:"hidden",onChange:ie=>xl(ie.target.files)})]})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:354",className:"space-y-2",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:355",className:"text-sm",children:"Hoe meten we de ruimte op?"}),u.jsx("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:356",className:"grid grid-cols-3 gap-2",children:[{k:"auto",t:"Automatisch",d:"AI gebruikt deur, A4 of stopcontact als maat"},{k:"maat",t:"Bekende maat",d:"Jij geeft 1 echte maat op"},{k:"eigen",t:"Eigen referentie",d:"Een object in beeld met bekende maat"}].map(ie=>u.jsxs("button",{"data-loc":"client/src/pages/NieuweKlus.tsx:362",type:"button",onClick:()=>re(ie.k),className:`rounded-lg border p-2 text-left transition-colors active:scale-[0.98] ${Z===ie.k?"border-primary bg-primary/5":"border-border bg-background"}`,children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:368",className:"block text-xs font-medium",children:ie.t}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:369",className:"block text-[10px] text-muted-foreground leading-tight mt-0.5",children:ie.d})]},ie.k))}),(Z==="maat"||Z==="eigen")&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:374",className:"grid grid-cols-3 gap-2",children:[u.jsx("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:375",className:"col-span-2",children:u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:376",placeholder:Z==="maat"?"Waar verwijst de maat naar? bv. 'breedte muur'":"Welk object? bv. 'blauw krat'",value:fe,onChange:ie=>F(ie.target.value)})}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:382",className:"relative",children:[u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:383",type:"number",inputMode:"decimal",placeholder:"cm",value:le,onChange:ie=>pe(ie.target.value),className:"pr-9"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:391",className:"absolute right-3 top-1/2 -translate-y-1/2 text-xs text-muted-foreground",children:"cm"})]})]})]}),u.jsx(Fp,{"data-loc":"client/src/pages/NieuweKlus.tsx:396",placeholder:"Optioneel: extra uitleg, bijv. 'alleen buitenkant, 3 kozijnen en de voordeur'",value:Q,onChange:ie=>H(ie.target.value),rows:2}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:397",onClick:aa,disabled:T||de.length===0,className:"w-full",children:[T?u.jsx(Qe,{"data-loc":"client/src/pages/NieuweKlus.tsx:398",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Kp,{"data-loc":"client/src/pages/NieuweKlus.tsx:398",className:"h-4 w-4 mr-1"}
367),T?"Ruimte opmetenâ¦":"Meet op & maak concept-offerte"]}),Ee&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:404",className:"rounded-lg border border-border bg-background p-3 space-y-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:405",className:"flex items-start gap-2",children:[u.jsx(Dy,{"data-loc":"client/src/pages/NieuweKlus.tsx:406",className:"h-4 w-4 text-primary mt-0.5 shrink-0"}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:407",children:[u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:408",className:"text-xs font-medium",children:"Meetstaat (schatting uit foto's)"}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:409",className:"text-[11px] text-muted-foreground leading-tight mt-0.5",children:Ee.schaalUitleg})]})]}),Ee.ruimtes.map((ie,ge)=>u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:413",className:"space-y-1",children:[u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:414",className:"text-xs font-semibold",children:ie.naam}),u.jsx("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:415",className:"space-y-0.5",children:ie.metingen.map((me,Re)=>u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:417",className:"flex items-center justify-between text-[11px] gap-2",children:[u.jsxs("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:418",className:"text-muted-foreground truncate",children:[me.onderdeel,me.toelichting?` · ${me.toelichting}`:""]}),u.jsxs("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:419",className:"flex items-center gap-1.5 shrink-0",children:[u.jsxs("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:420",className:"font-medium",children:[me.waarde.toLocaleString("nl-NL",{maximumFractionDigits:2})," ",me.eenheid]}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:421",className:`inline-block h-1.5 w-1.5 rounded-full ${me.vertrouwen>=.7?"bg-green-500":me.vertrouwen>=.4?"bg-amber-500":"bg-red-500"}`,title:`Betrouwbaarheid ${Math.round(me.vertrouwen*100)}%`})]})]},Re))})]},ge)),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:431",className:"text-[10px] text-muted-foreground italic",children:"Schatting uit foto's â controleer de afmetingen voordat je de offerte verstuurt."})]})]}),w==="calculator"&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:438",className:"bg-card rounded-xl border border-border p-4 mb-5 space-y-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:439",children:[u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:440",className:"text-sm font-medium mb-1",children:"Schilder-calculatie"}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:441",className:"text-xs text-muted-foreground",children:"Vul aantallen in; de app rekent uren en prijs uit met je normtijden en uurtarief."})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:443",className:"grid grid-cols-2 gap-3",children:[Jy.filter(ie=>ie.key!=="m2 muur").map(ie=>u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:445",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:446",className:"text-xs",children:ie.label}),u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:447",type:"number",min:0,value:M[ie.key]??"",onChange:ge=>q(me=>({...me,[ie.key]:Number(ge.target.value)})),placeholder:"0"})]},ie.key)),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:456",className:"col-span-2",children:[u.jsxs(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:457",className:"text-xs",children:["Muuroppervlak (m²)",D?" â afgerekend op m²-richtprijs":" â voor verfverbruik"]}),u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:458",type:"number",min:0,value:$||"",onChange:ie=>W(Number(ie.target.value)),placeholder:"0"})]})]}),u.jsxs("label",{"data-loc":"client/src/pages/NieuweKlus.tsx:462",className:"flex items-center justify-between text-sm",children:[u.jsxs("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:463",children:["Reken muur af op m²-richtprijs ",u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:463",className:"text-muted-foreground",children:"(i.p.v. arbeidsuren)"})]}),u.jsx(is,{"data-loc":"client/src/pages/NieuweKlus.tsx:464",checked:D,onCheckedChange:V})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:467",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:468",className:"text-xs mb-1.5 block",children:"Toeslagen"}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:469",className:"space-y-2",children:[oe.map(ie=>u.jsxs("label",{"data-loc":"client/src/pages/NieuweKlus.tsx:471",className:"flex items-center justify-between text-sm",children:[u.jsxs("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:472",children:[ie.naam," ",u.jsxs("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:472",className:"text-muted-foreground",children:["(+",Math.round(ie.factor*100),"%)"]})]}),u.jsx(is,{"data-loc":"client/src/pages/NieuweKlus.tsx:473",checked:!!Y[ie.naam],onCheckedChange:ge=>J(me=>
367({...me,[ie.naam]:ge}))})]},ie.naam)),u.jsxs("label",{"data-loc":"client/src/pages/NieuweKlus.tsx:476",className:"flex items-center justify-between text-sm",children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:477",children:"Houtrot/voorbereiding als regie toevoegen"}),u.jsx(is,{"data-loc":"client/src/pages/NieuweKlus.tsx:478",checked:te,onCheckedChange:ce})]})]})]}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:483",onClick:ar,disabled:T,className:"w-full",children:[T?u.jsx(Qe,{"data-loc":"client/src/pages/NieuweKlus.tsx:484",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Oy,{"data-loc":"client/src/pages/NieuweKlus.tsx:484",className:"h-4 w-4 mr-1"}),"Bereken offerteregels"]})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:490",className:"space-y-3 mb-5",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:491",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:492",className:"mb-1.5 block",children:"Titel"}),u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:493",value:o,onChange:ie=>c(ie.target.value),placeholder:"Bijv. Badkamer renovatie"})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:495",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:496",className:"mb-1.5 block",children:"Klant"}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:497",className:"flex gap-2",children:[u.jsxs(n2,{"data-loc":"client/src/pages/NieuweKlus.tsx:498",value:d,onValueChange:m,children:[u.jsx(s2,{"data-loc":"client/src/pages/NieuweKlus.tsx:499",className:"flex-1",children:u.jsx(a2,{"data-loc":"client/src/pages/NieuweKlus.tsx:499",placeholder:"Kies klant"})}),u.jsxs(r2,{"data-loc":"client/src/pages/NieuweKlus.tsx:500",children:[u.jsx(Ip,{"data-loc":"client/src/pages/NieuweKlus.tsx:501",value:"geen",children:"Geen klant (later koppelen)"}),(r||[]).map(ie=>u.jsx(Ip,{"data-loc":"client/src/pages/NieuweKlus.tsx:502",value:String(ie.id),children:ie.naam},ie.id))]})]}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:505",type:"button",variant:"outline",className:"bg-card shrink-0",onClick:()=>P(!0),children:[u.jsx(Cc,{"data-loc":"client/src/pages/NieuweKlus.tsx:506",className:"h-4 w-4 mr-1"})," Nieuw"]})]}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:509",className:"text-xs text-muted-foreground mt-1",children:"Geen klant? Geen probleem â je kunt later op het klusdetail alsnog koppelen."})]}),u.jsx(f2,{"data-loc":"client/src/pages/NieuweKlus.tsx:511",open:B,onOpenChange:P,onKies:ie=>m(String(ie.id))})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:518",className:"flex items-center justify-between mb-2",children:[u.jsx("h2",{"data-loc":"client/src/pages/NieuweKlus.tsx:519",className:"font-semibold",children:"Regels"}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:520",variant:"ghost",size:"sm",onClick:Tn,children:[u.jsx(cl,{"data-loc":"client/src/pages/NieuweKlus.tsx:520",className:"h-4 w-4 mr-1"})," Regel"]})]}),h.some(ie=>ie.bron==="ai")&&u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:523",className:"text-xs text-muted-foreground mb-2",children:"AI-regels zijn een voorstel. Controleer en pas aan waar nodig â jij verstuurt pas na akkoord."}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:527",className:"space-y-3 mb-5",children:[h.length===0&&u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:528",className:"text-sm text-muted-foreground text-center py-4",children:"Nog geen regels. Spreek in, typ of gebruik de calculator."}),h.map((ie,ge)=>u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:530",className:"bg-card rounded-xl border border-border p-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:531",className:"flex gap-2 mb-2 items-center",children:[u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:532",className:"flex-1",placeholder:"Omschrijving",value:ie.omschrijving,onChange:me=>an(ge,{omschrijving:me.target.value})}),u.jsx(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:533",variant:"ghost",size:"icon",onClick:()=>vs(ge),children:u.jsx(Pi,{"data-loc":"client/src/pages/NieuweKlus.tsx:533",className:"h-4 w-4 text-destructive"})})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:535",className:"flex flex-wrap gap-1.5 mb-2",children:[ie.bron==="ai"&&u.jsxs("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:537",className:`text-[11px] px-2 py-0.5 rounded-full ${_O(ie.vertrouwen)}`,children:["AI",typeof ie.vertrouwen=="number"?` · ${Math.round(ie.vertrouwen*100)}% zeker`:" · controleer"]}),ie.bron==="calculator"&&u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:542",className:"text-[11px] px-2 py-0.5 rounded-full bg-primary/10 text-primary",children:"Berekend"}),ie.regie&&u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:545",className:"text-[11px] px-2 py-0.5 rounded-full bg-amber-100 text-amber-800",children:"Regie / nacalculatie"})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:548",className:"grid grid-cols-4 gap-2",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:549",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:549",className:"text-xs",children:"Aantal"}),u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:549",type:"number",value:ie.aantal,onChange:me=>an(ge,{aantal:Number(me.target.value)})})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:550",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:550",className:"text-xs",children:"Eenheid"}),u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:550",value:ie.eenheid,onChange:me=>an(ge,{eenheid:me.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:551",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:551",className:"text-xs",children:"Prijs â¬"}),u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:551",type:"number",value:ie.prijs,onChange:me=>an(ge,{prijs:Number(me.target.value)})})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:552",children:[u.jsx(Be,{"data-loc":"client/src/pages/NieuweKlus.tsx:552",className:"text-xs",children:"BTW %"}),u.jsx(De,{"data-loc":"client/src/pages/NieuweKlus.tsx:552",type:"number",value:ie.btw,onChange:me=>an(ge,{btw:Number(me.target.value)})})]})]})]},ge))]}),h.length>0&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:559",className:"bg-secondary/50 rounded-xl p-4 mb-5 space-y-1 text-sm",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:560",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:560",children:"Subtotaal"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:560",children:$e(vn.exclBtw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:561",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:561",children:"BTW"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:561",children:$e(vn.btw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:562",className:"flex justify-between font-bold text-base",children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:562",children:"Totaal"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:562",className:"text-primary",children:$e(vn.inclBtw)})]})]}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:566",className:"w-full",size:"lg",onClick:sr,disabled:Tt.isPending,children:[Tt.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/NieuweKlus.tsx:567",className:"h-4 w-4 mr-1 animate-spin"}):null,"Controleren & opslaan"]}),u.jsx(ki,{"data-loc":"client/src/pages/NieuweKlus.tsx:571",open:_,onOpenChange:O,children:u.jsxs(Ai,{"data-loc":"client/src/pages/NieuweKlus.tsx:572",children:[u.jsxs(Ti,{"data-loc":"client/src/pages/NieuweKlus.tsx:573",children:[u.jsx(Oi,{"data-loc":"client/src/pages/NieuweKlus.tsx:574",children:"Controleer de offerte"}),u.jsx(Ac,{"data-loc":"client/src/pages/NieuweKlus.tsx:575",children:"Jij bent verantwoordelijk voor de prijs. Controleer onderstaande punten voordat je opslaat en verstuurt."})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:579",className:"space-y-3 text-sm",children:[Ot.length>0&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:581",className:"flex gap-2 rounded-lg bg-amber-50 border border-amber-200 p-3 text-amber-800",children:[u.jsx(z1,{"data-loc":"client/src/pages/NieuweKlus.tsx:582",className:"h-4 w-4 mt-0.5 shrink-0"}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:583",children:[u.jsxs("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:584",className:"font-medium",children:[Ot.length," regel(s) met lage AI-zekerheid"]}),u.jsxs("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:585",className:"text-xs mt-0.5",children:[Ot.map(ie=>ie.omschrijving||"(zonder omschrijving)").join(", "),". Controleer prijs en aantal extra goed."]})]})]}),Ta.length>0&&u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:590",className:"flex gap-2 rounded-lg bg-secondary/60 p-3",children:[u.jsx(Dy,{"data-loc":"client/src/pages/NieuweKlus.tsx:591",className:"h-4 w-4 mt-0.5 shrink-0 text-primary"}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:592",children:[u.jsxs("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:593",className:"font-medium",children:[Ta.length," regie-/nacalculatieregel(s)"]}),u.jsx("p",{"data-loc":"client/src/pages/NieuweKlus.tsx:594",className:"text-xs text-muted-foreground mt-0.5",children:"Deze worden op nacalculatie gefactureerd (bijv. houtrot). Bespreek dit met de klant."})]})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:598",className:"rounded-lg bg-secondary/50 p-3 space-y-1",children:[u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:599",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:599",children:"Subtotaal"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:599",children:$e(vn.exclBtw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:600",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:600",children:"BTW"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:600",children:$e(vn.btw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/NieuweKlus.tsx:601",className:"flex justify-between font-bold",children:[u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:601",children:"Totaal"}),u.jsx("span",{"data-loc":"client/src/pages/NieuweKlus.tsx:601",className:"text-primary",children:$e(vn.inclBtw)})]})]})]}),u.jsxs($c,{"data-loc":"client/src/pages/NieuweKlus.tsx:604",className:"gap-2 sm:gap-0",children:[u.jsx(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:605",variant:"outline",className:"bg-card",onClick:()=>O(!1),children:"Terug, nog aanpassen"}),u.jsxs(je,{"data-loc":"client/src/pages/NieuweKlus.tsx:606",onClick:Un,disabled:Tt.isPending,children:[Tt.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/NieuweKlus.tsx:607",className:"h-4 w-4 mr-1 animate-spin"}):null,"Akkoord & opslaan"]})]})]})})]})}function _O(n){return typeof n!="number"?"bg-secondary text-muted-foreground":n>=.8?"bg-green-100 text-green-800":n>=.5?"bg-amber-100 text-amber-800":"bg-red-100 text-red-800"}function e0(n){return new Promise((a,r)=>{const l=new FileReader;l.onloadend=()=>
367a(l.result),l.onerror=r,l.readAsDataURL(n)})}function RO(){const{data:n,isLoading:a}=be.klusapp.klanten.list.useQuery(),r=be.useUtils(),l=be.klusapp.klanten.create.useMutation(),[o,c]=b.useState(!1),[d,m]=b.useState({naam:"",telefoon:"",email:"",adres:"",postcode:"",stad:"",isZakelijk:!1,btwNummer:"",kvkNummer:""});async function h(){if(!d.naam.trim())return Se.error("Naam is verplicht");await l.mutateAsync(d),await r.klusapp.klanten.list.invalidate(),m({naam:"",telefoon:"",email:"",adres:"",postcode:"",stad:"",isZakelijk:!1,btwNummer:"",kvkNummer:""}),c(!1),Se.success("Klant toegevoegd")}return u.jsxs(qt,{"data-loc":"client/src/pages/Klanten.tsx:30",title:"Klanten",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:31",className:"flex justify-between items-center mb-4",children:[u.jsx("h1",{"data-loc":"client/src/pages/Klanten.tsx:32",className:"text-lg font-semibold",children:"Klanten"}),u.jsxs(ki,{"data-loc":"client/src/pages/Klanten.tsx:33",open:o,onOpenChange:c,children:[u.jsx(Lp,{"data-loc":"client/src/pages/Klanten.tsx:34",asChild:!0,children:u.jsxs(je,{"data-loc":"client/src/pages/Klanten.tsx:34",children:[u.jsx(cl,{"data-loc":"client/src/pages/Klanten.tsx:34",className:"h-4 w-4 mr-1"})," Nieuw"]})}),u.jsxs(Ai,{"data-loc":"client/src/pages/Klanten.tsx:35",children:[u.jsx(Ti,{"data-loc":"client/src/pages/Klanten.tsx:36",children:u.jsx(Oi,{"data-loc":"client/src/pages/Klanten.tsx:36",children:"Nieuwe klant"})}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:37",className:"space-y-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:38",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:38",className:"mb-1.5 block",children:"Naam *"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:38",value:d.naam,onChange:g=>m({...d,naam:g.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:39",className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:40",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:40",className:"mb-1.5 block",children:"Telefoon"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:40",value:d.telefoon,onChange:g=>m({...d,telefoon:g.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:41",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:41",className:"mb-1.5 block",children:"E-mail"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:41",value:d.email,onChange:g=>m({...d,email:g.target.value})})]})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:43",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:43",className:"mb-1.5 block",children:"Adres"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:43",value:d.adres,onChange:g=>m({...d,adres:g.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:44",className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:45",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:45",className:"mb-1.5 block",children:"Postcode"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:45",value:d.postcode,onChange:g=>m({...d,postcode:g.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:46",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:46",className:"mb-1.5 block",children:"Plaats"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:46",value:d.stad,onChange:g=>m({...d,stad:g.target.value})})]})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:48",className:"flex items-center justify-between rounded-lg border border-border p-3",children:[u.jsx("div",{"data-loc":"client/src/pages/Klanten.tsx:49",className:"text-sm font-medium",children:"Zakelijke klant"}),u.jsx(is,{"data-loc":"client/src/pages/Klanten.tsx:50",checked:d.isZakelijk,onCheckedChange:g=>m({...d,isZakelijk:g})})]}),d.isZakelijk&&u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:53",className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:54",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:54",className:"mb-1.5 block",children:"KvK-nummer"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:54",value:d.kvkNummer,onChange:g=>m({...d,kvkNummer:g.target.value})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:55",children:[u.jsx(Be,{"data-loc":"client/src/pages/Klanten.tsx:55",className:"mb-1.5 block",children:"BTW-nummer"}),u.jsx(De,{"data-loc":"client/src/pages/Klanten.tsx:55",value:d.btwNummer,onChange:g=>m({...d,btwNummer:g.target.value}),placeholder:"NL...B01"})]})]})]}),u.jsx($c,{"data-loc":"client/src/pages/Klanten.tsx:59",children:u.jsxs(je,{"data-loc":"client/src/pages/Klanten.tsx:60",onClick:h,disabled:l.isPending,children:[l.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/Klanten.tsx:61",className:"h-4 w-4 mr-1 animate-spin"}):null," Opslaan"]})})]})]})]}),a?u.jsx("div",{"data-loc":"client/src/pages/Klanten.tsx:69",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/Klanten.tsx:69",className:"h-6 w-6 animate-spin text-primary"})}):(n||[]).length===0?u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:71",className:"bg-card rounded-xl border border-border p-10 text-center text-muted-foreground",children:[u.jsx(K1,{"data-loc":"client/src/pages/Klanten.tsx:72",className:"h-8 w-8 mx-auto mb-2 opacity-40"})," Nog geen klanten"]}):u.jsx("div",{"data-loc":"client/src/pages/Klanten.tsx:75",className:"space-y-2",children:(n||[]).map(g=>u.jsx(ft,{"data-loc":"client/src/pages/Klanten.tsx:77",href:`/app/klanten/${g.id}`,children:u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:78",className:"bg-card rounded-xl border border-border p-4 active:bg-secondary/50 transition-colors",children:[u.jsx("div",{"data-loc":"client/src/pages/Klanten.tsx:79",className:"font-medium",children:g.naam}),u.jsxs("div",{"data-loc":"client/src/pages/Klanten.tsx:80",className:"flex gap-4 text-sm text-muted-foreground mt-0.5",children:[g.telefoon&&u.jsxs("span",{"data-loc":"client/src/pages/Klanten.tsx:81",className:"flex items-center gap-1",children:[u.jsx(D1,{"data-loc":"client/src/pages/Klanten.tsx:81",className:"h-3 w-3"})," ",g.telefoon]}),g.email&&u.jsxs("span",{"data-loc":"client/src/pages/Klanten.tsx:82",className:"flex items-center gap-1",children:[u.jsx(A1,{"data-loc":"client/src/pages/Klanten.tsx:82",className:"h-3 w-3"})," ",g.email]})]})]})},g.id))})]})}function MO(){const[,n]=Yc("/app/klanten/:id"),[,a]=er(),r=Number(n?.id),l=be.useUtils(),{data:o,isLoading:c}=be.klusapp.klanten.get.useQuery({id:r},{enabled:!!r}),{data:d}=be.klusapp.klussen.list.useQuery(),m=be.klusapp.klanten.delete.useMutation();if(c||!o)return u.jsx(qt,{"data-loc":"client/src/pages/KlantDetail.tsx:24",title:"Klant",children:u.jsx("div",{"data-loc":"client/src/pages/KlantDetail.tsx:24",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/KlantDetail.tsx:24",className:"h-6 w-6 animate-spin text-primary"})})});const h=(d||[]).filter(x=>x.klantId===r);async function g(){await m.mutateAsync({id:r}
367),await l.klusapp.klanten.list.invalidate(),Se.success("Klant verwijderd"),a("/app/klanten")}return u.jsxs(qt,{"data-loc":"client/src/pages/KlantDetail.tsx:37",title:"Klant",children:[u.jsxs(ft,{"data-loc":"client/src/pages/KlantDetail.tsx:38",href:"/app/klanten",className:"inline-flex items-center gap-1 text-sm text-muted-foreground mb-4",children:[u.jsx(Js,{"data-loc":"client/src/pages/KlantDetail.tsx:39",className:"h-4 w-4"})," Terug"]}),u.jsx("h1",{"data-loc":"client/src/pages/KlantDetail.tsx:42",className:"text-xl font-bold mb-3",children:o.naam}),u.jsxs("div",{"data-loc":"client/src/pages/KlantDetail.tsx:44",className:"bg-card rounded-xl border border-border p-4 mb-4 space-y-2 text-sm",children:[o.telefoon&&u.jsxs("a",{"data-loc":"client/src/pages/KlantDetail.tsx:45",href:`tel:${o.telefoon}`,className:"flex items-center gap-2 text-primary",children:[u.jsx(D1,{"data-loc":"client/src/pages/KlantDetail.tsx:45",className:"h-4 w-4"})," ",o.telefoon]}),o.email&&u.jsxs("a",{"data-loc":"client/src/pages/KlantDetail.tsx:46",href:`mailto:${o.email}`,className:"flex items-center gap-2 text-primary",children:[u.jsx(A1,{"data-loc":"client/src/pages/KlantDetail.tsx:46",className:"h-4 w-4"})," ",o.email]}),o.adres&&u.jsxs("div",{"data-loc":"client/src/pages/KlantDetail.tsx:47",className:"flex items-center gap-2 text-muted-foreground",children:[u.jsx(T1,{"data-loc":"client/src/pages/KlantDetail.tsx:47",className:"h-4 w-4"})," ",o.adres,", ",o.postcode," ",o.stad]}),o.notities&&u.jsx("div",{"data-loc":"client/src/pages/KlantDetail.tsx:48",className:"text-muted-foreground pt-1 border-t border-border mt-2",children:o.notities})]}),u.jsxs("h2",{"data-loc":"client/src/pages/KlantDetail.tsx:51",className:"font-semibold mb-2",children:["Klussen (",h.length,")"]}),u.jsx("div",{"data-loc":"client/src/pages/KlantDetail.tsx:52",className:"space-y-2 mb-5",children:h.length===0?u.jsxs("div",{"data-loc":"client/src/pages/KlantDetail.tsx:54",className:"bg-card rounded-xl border border-border p-6 text-center text-muted-foreground text-sm",children:[u.jsx(fs,{"data-loc":"client/src/pages/KlantDetail.tsx:55",className:"h-6 w-6 mx-auto mb-1 opacity-40"})," Nog geen klussen"]}):h.map(x=>u.jsx(ft,{"data-loc":"client/src/pages/KlantDetail.tsx:58",href:`/app/klussen/${x.id}`,children:u.jsxs("div",{"data-loc":"client/src/pages/KlantDetail.tsx:59",className:"bg-card rounded-xl border border-border p-3 flex justify-between items-center active:bg-secondary/50",children:[u.jsxs("div",{"data-loc":"client/src/pages/KlantDetail.tsx:60",children:[u.jsx("div",{"data-loc":"client/src/pages/KlantDetail.tsx:61",className:"font-medium text-sm",children:x.titel}),u.jsxs("div",{"data-loc":"client/src/pages/KlantDetail.tsx:62",className:"text-xs text-muted-foreground",children:[x.nummer," · ",Is(x.createdAt)]})]}),u.jsx("span",{"data-loc":"client/src/pages/KlantDetail.tsx:64",className:`text-xs px-2 py-0.5 rounded-full font-medium ${gl(x.status)}`,children:Ci[x.status]})]})},x.id))}),u.jsxs(Tm,{"data-loc":"client/src/pages/KlantDetail.tsx:70",children:[u.jsx(Om,{"data-loc":"client/src/pages/KlantDetail.tsx:71",asChild:!0,children:u.jsxs(je,{"data-loc":"client/src/pages/KlantDetail.tsx:72",variant:"ghost",className:"w-full text-destructive",children:[u.jsx(Pi,{"data-loc":"client/src/pages/KlantDetail.tsx:72",className:"h-4 w-4 mr-1"})," Klant verwijderen"]})}),u.jsxs(Dm,{"data-loc":"client/src/pages/KlantDetail.tsx:74",children:[u.jsxs(_m,{"data-loc":"client/src/pages/KlantDetail.tsx:75",children:[u.jsx(Mm,{"data-loc":"client/src/pages/KlantDetail.tsx:76",children:"Klant verwijderen?"}),u.jsx(zm,{"data-loc":"client/src/pages/KlantDetail.tsx:77",children:"Dit kan niet ongedaan gemaakt worden."})]}),u.jsxs(Rm,{"data-loc":"client/src/pages/KlantDetail.tsx:79",children:[u.jsx(Bm,{"data-loc":"client/src/pages/KlantDetail.tsx:80",children:"Annuleren"}),u.jsx(Km,{"data-loc":"client/src/pages/KlantDetail.tsx:81",onClick:g,className:"bg-destructive text-destructive-foreground",children:"Verwijderen"})]})]})]})]})}function zO(){const{data:n,isLoading:a}=be.klusapp.facturen.list.useQuery(),r=n||[],l=r.filter(c=>c.status==="verzonden"||c.status==="verlopen"),o=l.reduce((c,d)=>c+ul(d.regels||[]).inclBtw,0);return u.jsxs(qt,{"data-loc":"client/src/pages/Facturen.tsx:15",title:"Facturen",children:[l.length>0&&u.jsxs("div",{"data-loc":"client/src/pages/Facturen.tsx:17",className:"bg-amber-50 border border-amber-200 rounded-xl p-4 mb-4 flex items-center gap-3",children:[u.jsx(hm,{"data-loc":"client/src/pages/Facturen.tsx:18",className:"h-5 w-5 text-amber-600 shrink-0"}),u.jsxs("div",{"data-loc":"client/src/pages/Facturen.tsx:19",className:"text-sm",children:[u.jsx("span",{"data-loc":"client/src/pages/Facturen.tsx:20",className:"font-semibold text-amber-800",children:$e(o)}),u.jsxs("span",{"data-loc":"client/src/pages/Facturen.tsx:21",className:"text-amber-700",children:[" openstaand · ",l.length," ",l.length===1?"factuur":"facturen"]})]})]}),a?u.jsx("div",{"data-loc":"client/src/pages/Facturen.tsx:27",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/Facturen.tsx:27",className:"h-6 w-6 animate-spin text-primary"})}):r.length===0?u.jsxs("div",{"data-loc":"client/src/pages/Facturen.tsx:29",className:"bg-card rounded-xl border border-border p-10 text-center text-muted-foreground",children:[u.jsx(Qs,{"data-loc":"client/src/pages/Facturen.tsx:30",className:"h-8 w-8 mx-auto mb-2 opacity-40"})," Nog geen facturen"]}):u.jsx("div",{"data-loc":"client/src/pages/Facturen.tsx:33",className:"space-y-2",children:r.map(c=>{const d=ul(c.regels||[]);return u.jsx(ft,{"data-loc":"client/src/pages/Facturen.tsx:37",href:`/app/facturen/${c.id}`,children:u.jsxs("div",{"data-loc":"client/src/pages/Facturen.tsx:38",className:"bg-card rounded-xl border border-border p-4 active:bg-secondary/50 transition-colors",children:[u.jsxs("div",{"data-loc":"client/src/pages/Facturen.tsx:39",className:"flex items-start justify-between mb-1",children:[u.jsx("div",{"data-loc":"client/src/pages/Facturen.tsx:40",className:"font-medium",children:c.nummer}),u.jsx("span",{"data-loc":"client/src/pages/Facturen.tsx:41",className:`text-xs px-2 py-0.5 rounded-full font-medium ${gl(c.status)}`,children:Q1[c.status]})]}),u.jsxs("div",{"data-loc":"client/src/pages/Facturen.tsx:43",className:"flex items-center justify-between text-sm text-muted-foreground",children:[u.jsxs("span",{"data-loc":"client/src/pages/Facturen.tsx:44",children:["Vervalt ",Is(c.vervaldatum)]}),u.jsx("span",{"data-loc":"client/src/pages/Facturen.tsx:45",className:"font-semibold text-foreground",children:$e(d.inclBtw)})]})]})},c.id)})})]})}var $r={},Lf,t0;function KO(){return t0||(t0=1,Lf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Lf}var Uf={},ns={},n0;function tr(){if(n0)return ns;n0=1;let n;const a=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return ns.getSymbolSize=function(l){if(!l)throw new Error('"version" cannot be null or undefined');if(l<1||l>40)throw new Error('"version" should be in range from 1 to 40');return l*4+17},ns.getSymbolTotalCodewords=function(l){return a[l]},ns.getBCHDigit=function(r){let l=0;for(;r!==0;)l++,r>>>=1;return l},ns.setToSJISFunction=function(l){if(typeof l!="function")throw new Error('"toSJISFunc" is not a valid function.');n=l},ns.isKanjiModeEnabled=function(){return typeof n<"u"},ns.toSJIS=function(l){return n(l)},ns}var Hf={},a0;function Pm(){return a0||(a0=1,(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function a(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+r)}}
vendor: 16,273 bytes, lines 367-370
367n.isValid=function(l){return l&&typeof l.bit<"u"&&l.bit>=0&&l.bit<4},n.from=function(l,o){if(n.isValid(l))return l;try{return a(l)}catch{return o}}})(Hf)),Hf}var qf,s0;function BO(){if(s0)return qf;s0=1;function n(){this.buffer=[],this.length=0}return n.prototype={get:function(a){const r=Math.floor(a/8);return(this.buffer[r]>>>7-a%8&1)===1},put:function(a,r){for(let l=0;l<r;l++)this.putBit((a>>>r-l-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(a){const r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),a&&(this.buffer[r]|=128>>>this.length%8),this.length++}},qf=n,qf}var Vf,r0;function PO(){if(r0)return Vf;r0=1;function n(a){if(!a||a<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=a,this.data=new Uint8Array(a*a),this.reservedBit=new Uint8Array(a*a)}return n.prototype.set=function(a,r,l,o){const c=a*this.size+r;this.data[c]=l,o&&(this.reservedBit[c]=!0)},n.prototype.get=function(a,r){return this.data[a*this.size+r]},n.prototype.xor=function(a,r,l){this.data[a*this.size+r]^=l},n.prototype.isReserved=function(a,r){return this.reservedBit[a*this.size+r]},Vf=n,Vf}var Qf={},l0;function LO(){return l0||(l0=1,(function(n){const a=tr().getSymbolSize;n.getRowColCoords=function(l){if(l===1)return[];const o=Math.floor(l/7)+2,c=a(l),d=c===145?26:Math.ceil((c-13)/(2*o-2))*2,m=[c-7];for(let h=1;h<o-1;h++)m[h]=m[h-1]-d;return m.push(6),m.reverse()},n.getPositions=function(l){const o=[],c=n.getRowColCoords(l),d=c.length;for(let m=0;m<d;m++)for(let h=0;h<d;h++)m===0&&h===0||m===0&&h===d-1||m===d-1&&h===0||o.push([c[m],c[h]]);return o}})(Qf)),Qf}var If={},i0;function UO(){if(i0)return If;i0=1;const n=tr().getSymbolSize,a=7;return If.getPositions=function(l){const o=n(l);return[[0,0],[o-a,0],[0,o-a]]},If}var Ff={},o0;function HO(){return o0||(o0=1,(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const a={N1:3,N2:3,N3:40,N4:10};n.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},n.from=function(o){return n.isValid(o)?parseInt(o,10):void 0},n.getPenaltyN1=function(o){const c=o.size;let d=0,m=0,h=0,g=null,x=null;for(let v=0;v<c;v++){m=h=0,g=x=null;for(let w=0;w<c;w++){let j=o.get(v,w);j===g?m++:(m>=5&&(d+=a.N1+(m-5)),g=j,m=1),j=o.get(w,v),j===x?h++:(h>=5&&(d+=a.N1+(h-5)),x=j,h=1)}m>=5&&(d+=a.N1+(m-5)),h>=5&&(d+=a.N1+(h-5))}return d},n.getPenaltyN2=function(o){const c=o.size;let d=0;for(let m=0;m<c-1;m++)for(let h=0;h<c-1;h++){const g=o.get(m,h)+o.get(m,h+1)+o.get(m+1,h)+o.get(m+1,h+1);(g===4||g===0)&&d++}return d*a.N2},n.getPenaltyN3=function(o){const c=o.size;let d=0,m=0,h=0;for(let g=0;g<c;g++){m=h=0;for(let x=0;x<c;x++)m=m<<1&2047|o.get(g,x),x>=10&&(m===1488||m===93)&&d++,h=h<<1&2047|o.get(x,g),x>=10&&(h===1488||h===93)&&d++}return d*a.N3},n.getPenaltyN4=function(o){let c=0;const d=o.data.length;for(let h=0;h<d;h++)c+=o.data[h];return Math.abs(Math.ceil(c*100/d/5)-10)*a.N4};function r(l,o,c){switch(l){case n.Patterns.PATTERN000:return(o+c)%2===0;case n.Patterns.PATTERN001:return o%2===0;case n.Patterns.PATTERN010:return c%3===0;case n.Patterns.PATTERN011:return(o+c)%3===0;case n.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(c/3))%2===0;case n.Patterns.PATTERN101:return o*c%2+o*c%3===0;case n.Patterns.PATTERN110:return(o*c%2+o*c%3)%2===0;case n.Patterns.PATTERN111:return(o*c%3+(o+c)%2)%2===0;default:throw new Error("bad maskPattern:"+l)}}n.applyMask=function(o,c){const d=c.size;for(let m=0;m<d;m++)for(let h=0;h<d;h++)c.isReserved(h,m)||c.xor(h,m,r(o,h,m))},n.getBestMask=function(o,c){const d=Object.keys(n.Patterns).length;let m=0,h=1/0;for(let g=0;g<d;g++){c(g),n.applyMask(g,o);const x=n.getPenaltyN1(o)+n.getPenaltyN2(o)+n.getPenaltyN3(o)+n.getPenaltyN4(o);n.applyMask(g,o),x<h&&(h=x,m=g)}return m}})(Ff)),Ff}var pc={},c0;function C2(){if(c0)return pc;c0=1;const n=Pm(),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],r=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return pc.getBlocksCount=function(o,c){switch(c){case n.L:return a[(o-1)*4+0];case n.M:return a[(o-1)*4+1];case n.Q:return a[(o-1)*4+2];case n.H:return a[(o-1)*4+3];default:return}},pc.getTotalCodewordsCount=function(o,c){switch(c){case n.L:return r[(o-1)*4+0];case n.M:return r[(o-1)*4+1];case n.Q:return r[(o-1)*4+2];case n.H:return r[(o-1)*4+3];default:return}},pc}var Gf={},pi={},u0;function qO(){if(u0)return pi;u0=1;const n=new Uint8Array(512),a=new Uint8Array(256);return(function(){let l=1;for(let o=0;o<255;o++)n[o]=l,a[l]=o,l<<=1,l&256&&(l^=285);for(let o=255;o<512;o++)n[o]=n[o-255]})(),pi.log=function(l){if(l<1)throw new Error("log("+l+")");return a[l]},pi.exp=function(l){return n[l]},pi.mul=function(l,o){return l===0||o===0?0:n[a[l]+a[o]]},pi}var d0;function VO(){return d0||(d0=1,(function(n){const a=qO();n.mul=function(l,o){const c=new Uint8Array(l.length+o.length-1);for(let d=0;d<l.length;d++)for(let m=0;m<o.length;m++)c[d+m]^=a.mul(l[d],o[m]);return c},n.mod=function(l,o){let c=new Uint8Array(l);for(;c.length-o.length>=0;){const d=c[0];for(let h=0;h<o.length;h++)c[h]^=a.mul(o[h],d);let m=0;for(;m<c.length&&c[m]===0;)m++;c=c.slice(m)}return c},n.generateECPolynomial=function(l){let o=new Uint8Array([1]);for(let c=0;c<l;c++)o=n.mul(o,new Uint8Array([1,a.exp(c)]));return o}})(Gf)),Gf}var Yf,f0;function QO(){if(f0)return Yf;f0=1;const n=VO();function a(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}return a.prototype.initialize=function(l){this.degree=l,this.genPoly=n.generateECPolynomial(this.degree)},a.prototype.encode=function(l){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(l.length+this.degree);o.set(l);const c=n.mod(o,this.genPoly),d=this.degree-c.length;if(d>0){const m=new Uint8Array(this.degree);return m.set(c,d),m}return c},Yf=a,Yf}var Xf={},Zf={},$f={},p0;function k2(){return p0||(p0=1,$f.isValid=function(a){return!isNaN(a)&&a>=1&&a<=40}),$f}var Xn={},m0;function A2(){if(m0)return Xn;m0=1;const n="[0-9]+",a="[A-Z $%*+\\-./:]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const l="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+`)(?:.|[\r 368]))+`;Xn.KANJI=new RegExp(r,"g"),Xn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Xn.BYTE=new RegExp(l,"g"),Xn.NUMERIC=new RegExp(n,"g"),Xn.ALPHANUMERIC=new RegExp(a,"g");const o=new RegExp("^"+r+"$"),c=new RegExp("^"+n+"$"),d=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return Xn.testKanji=function(h){return o.test(h)},Xn.testNumeric=function(h){return c.test(h)},Xn.testAlphanumeric=function(h){return d.test(h)},Xn}var h0;function nr(){return h0||(h0=1,(function(n){const a=k2(),r=A2();n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(c,d){if(!c.ccBits)throw new Error("Invalid mode: "+c);if(!a.isValid(d))throw new Error("Invalid version: "+d);return d>=1&&d<10?c.ccBits[0]:d<27?c.ccBits[1]:c.ccBits[2]},n.getBestModeForData=function(c){return r.testNumeric(c)?n.NUMERIC:r.testAlphanumeric(c)?n.ALPHANUMERIC:r.testKanji(c)?n.KANJI:n.BYTE},n.toString=function(c){if(c&&c.id)return c.id;throw new Error("Invalid mode")},n.isValid=function(c){return c&&c.bit&&c.ccBits};function l(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+o)}}n.from=function(c,d){if(n.isValid(c))return c;try{return l(c)}catch{return d}}})(Zf)),Zf}var g0;function IO(){return g0||(g0=1,(function(n){const a=tr(),r=C2(),l=Pm(),o=nr(),c=k2(),d=7973,m=a.getBCHDigit(d);function h(w,j,C){for(let S=1;S<=40;S++)if(j<=n.getCapacity(S,C,w))return S}function g(w,j){return o.getCharCountIndicator(w,j)+4}function x(w,j){let C=0;return w.forEach(function(S){const T=g(S.mode,j);C+=T+S.getBitsLength()}),C}function v(w,j){for(let C=1;C<=40;C++)if(x(w,C)<=n.getCapacity(C,j,o.MIXED))return C}n.from=function(j,C){return c.isValid(j)?parseInt(j,10):C},n.getCapacity=function(j,C,S){if(!c.isValid(j))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=o.BYTE);const T=a.getSymbolTotalCodewords(j),E=r.getTotalCodewordsCount(j,C),_=(T-E)*8;if(S===o.MIXED)return _;const O=_-g(S,j);switch(S){case o.NUMERIC:return Math.floor(O/10*3);case o.ALPHANUMERIC:return Math.floor(O/11*2);case o.KANJI:return Math.floor(O/13);case o.BYTE:default:return Math.floor(O/8)}},n.getBestVersionForData=function(j,C){let S;const T=l.from(C,l.M);if(Array.isArray(j)){if(j.length>1)return v(j,T);if(j.length===0)return 1;S=j[0]}else S=j;return h(S.mode,S.getLength(),T)},n.getEncodedBits=function(j){if(!c.isValid(j)||j<7)throw new Error("Invalid QR Code version");let C=j<<12;for(;a.getBCHDigit(C)-m>=0;)C^=d<<a.getBCHDigit(C)-m;return j<<12|C}})(Xf)),Xf}var Wf={},v0;function FO(){if(v0)return Wf;v0=1;const n=tr(),a=1335,r=21522,l=n.getBCHDigit(a);return Wf.getEncodedBits=function(c,d){const m=c.bit<<3|d;let h=m<<10;for(;n.getBCHDigit(h)-l>=0;)h^=a<<n.getBCHDigit(h)-l;return(m<<10|h)^r},Wf}var Jf={},ep,x0;function GO(){if(x0)return ep;x0=1;const n=nr();function a(r){this.mode=n.NUMERIC,this.data=r.toString()}return a.getBitsLength=function(l){return 10*Math.floor(l/3)+(l%3?l%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(l){let o,c,d;for(o=0;o+3<=this.data.length;o+=3)c=this.data.substr(o,3),d=parseInt(c,10),l.put(d,10);const m=this.data.length-o;m>0&&(c=this.data.substr(o),d=parseInt(c,10),l.put(d,m*3+1))},ep=a,ep}var tp,y0;function YO(){if(y0)return tp;y0=1;const n=nr(),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function r(l){this.mode=n.ALPHANUMERIC,this.data=l}return r.getBitsLength=function(o){return 11*Math.floor(o/2)+6*(o%2)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(o){let c;for(c=0;c+2<=this.data.length;c+=2){let d=a.indexOf(this.data[c])*45;d+=a.indexOf(this.data[c+1]),o.put(d,11)}this.data.length%2&&o.put(a.indexOf(this.data[c]),6)},tp=r,tp}var np,b0;function XO(){if(b0)return np;b0=1;const n=nr();function a(r){this.mode=n.BYTE,typeof r=="string"?this.data=new TextEncoder().encode(r):this.data=new Uint8Array(r)}return a.getBitsLength=function(l){return l*8},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(r){for(let l=0,o=this.data.length;l<o;l++)r.put(this.data[l],8)},np=a,np}var ap,w0;function ZO(){if(w0)return ap;w0=1;const n=nr(),a=tr();function r(l){this.mode=n.KANJI,this.data=l}return r.getBitsLength=function(o){return o*13},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(l){let o;for(o=0;o<this.data.length;o++){let c=a.toSJIS(this.data[o]);if(c>=33088&&c<=40956)c-=33088;else if(c>=57408&&c<=60351)c-=49472;else throw new Error("Invalid SJIS character: "+this.data[o]+` 369Make sure your charset is UTF-8`);c=(c>>>8&255)*192+(c&255),l.put(c,13)}},ap=r,ap}var sp={exports:{}},S0;function $O(){return S0||(S0=1,(function(n){var a={single_source_shortest_paths:function(r,l,o){var c={},d={};d[l]=0;var m=a.PriorityQueue.make();m.push(l,0);for(var h,g,x,v,w,j,C,S,T;!m.empty();){h=m.pop(),g=h.value,v=h.cost,w=r[g]||{};for(x in w)w.hasOwnProperty(x)&&(j=w[x],C=v+j,S=d[x],T=typeof d[x]>"u",(T||S>C)&&(d[x]=C,m.push(x,C),c[x]=g))}if(typeof o<"u"&&typeof d[o]>"u"){var E=["Could not find a path from ",l," to ",o,"."].join("");throw new Error(E)}return c},extract_shortest_path_from_predecessor_list:function(r,l){for(var o=[],c=l;c;)o.push(c),r[c],c=r[c];return o.reverse(),o},find_path:function(r,l,o){var c=a.single_source_shortest_paths(r,l,o);return a.extract_shortest_path_from_predecessor_list(c,o)},PriorityQueue:{make:function(r){var l=a.PriorityQueue,o={},c;r=r||{};for(c in l)l.hasOwnProperty(c)&&(o[c]=l[c]);return o.queue=[],o.sorter=r.sorter||l.default_sorter,o},default_sorter:function(r,l){return r.cost-l.cost},push:function(r,l){var o={value:r,cost:l};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=a})(sp)),sp.exports}var j0;function WO(){return j0||(j0=1,(function(n){const a=nr(),r=GO(),l=YO(),o=XO(),c=ZO(),d=A2(),m=tr(),h=$O();function g(E){return unescape(encodeURIComponent(E)).length}function x(E,_,O){const B=[];let P;for(;(P=E.exec(O))!==null;)B.push({data:P[0],index:P.index,mode:_,length:P[0].length});return B}function v(E){const _=x(d.NUMERIC,a.NUMERIC,E),O=x(d.ALPHANUMERIC,a.ALPHANUMERIC,E);let B,P;return m.isKanjiModeEnabled()?(B=x(d.BYTE,a.BYTE,E),P=x(d.KANJI,a.KANJI,E)):(B=x(d.BYTE_KANJI,a.BYTE,E),P=[]),_.concat(O,B,P).sort(function(A,M){return A.index-M.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function w(E,_){switch(_){case a.NUMERIC:return r.getBitsLength(E);case a.ALPHANUMERIC:return l.getBitsLength(E);case a.KANJI:return c.getBitsLength(E);case a.BYTE:return o.getBitsLength(E)}}function j(E){return E.reduce(function(_,O){const B=_.length-1>=0?_[_.length-1]:null;return B&&B.mode===O.mode?(_[_.length-1].data+=O.data,_):(_.push(O),_)},[])}function C(E){const _=[];for(let O=0;O<E.length;O++){const B=E[O];switch(B.mode){case a.NUMERIC:_.push([B,{data:B.data,mode:a.ALPHANUMERIC,length:B.length},{data:B.data,mode:a.BYTE,length:B.length}]);break;case a.ALPHANUMERIC:_.push([B,{data:B.data,mode:a.BYTE,length:B.length}]);break;case a.KANJI:_.push([B,{data:B.data,mode:a.BYTE,length:g(B.data)}]);break;case a.BYTE:_.push([{data:B.data,mode:a.BYTE,length:g(B.data)}])}}return _}function S(E,_){const O={},B={start:{}};let P=["start"];for(let R=0;R<E.length;R++){const A=E[R],M=[];for(let q=0;q<A.length;q++){const $=A[q],W=""+R+q;M.push(W),O[W]={node:$,lastCount:0},B[W]={};for(let Y=0;Y<P.length;Y++){const J=P[Y];O[J]&&O[J].node.mode===$.mode?(B[J][W]=w(O[J].lastCount+$.length,$.mode)-w(O[J].lastCount,$.mode),O[J].lastCount+=$.length):(O[J]&&(O[J].lastCount=$.length),B[J][W]=w($.length,$.mode)+4+a.getCharCountIndicator($.mode,_))}}P=M}for(let R=0;R<P.length;R++)B[P[R]].end=0;return{map:B,table:O}}function T(E,_){let O;const B=a.getBestModeForData(E);if(O=a.from(_,B),O!==a.BYTE&&O.bit<B.bit)throw new Error('"'+E+'" cannot be encoded with mode '+a.toString(O)+`. 370 Suggested mode is: `+a.toString(B));switch(O===a.KANJI&&!m.isKanjiModeEnabled()&&(O=a.BYTE),O){case a.NUMERIC:return new r(E);case a.ALPHANUMERIC:return new l(E);case a.KANJI:return new c(E);case a.BYTE:return new o(E)}}n.fromArray=function(_){return _.reduce(function(O,B){return typeof B=="str
370ing"?O.push(T(B,null)):B.data&&O.push(T(B.data,B.mode)),O},[])},n.fromString=function(_,O){const B=v(_,m.isKanjiModeEnabled()),P=C(B),R=S(P,O),A=h.find_path(R.map,"start","end"),M=[];for(let q=1;q<A.length-1;q++)M.push(R.table[A[q]].node);return n.fromArray(j(M))},n.rawSplit=function(_){return n.fromArray(v(_,m.isKanjiModeEnabled()))}})(Jf)),Jf}var N0;function JO(){if(N0)return Uf;N0=1;const n=tr(),a=Pm(),r=BO(),l=PO(),o=LO(),c=UO(),d=HO(),m=C2(),h=QO(),g=IO(),x=FO(),v=nr(),w=WO();function j(R,A){const M=R.size,q=c.getPositions(A);for(let $=0;$<q.length;$++){const W=q[$][0],Y=q[$][1];for(let J=-1;J<=7;J++)if(!(W+J<=-1||M<=W+J))for(let te=-1;te<=7;te++)Y+te<=-1||M<=Y+te||(J>=0&&J<=6&&(te===0||te===6)||te>=0&&te<=6&&(J===0||J===6)||J>=2&&J<=4&&te>=2&&te<=4?R.set(W+J,Y+te,!0,!0):R.set(W+J,Y+te,!1,!0))}}function C(R){const A=R.size;for(let M=8;M<A-8;M++){const q=M%2===0;R.set(M,6,q,!0),R.set(6,M,q,!0)}}function S(R,A){const M=o.getPositions(A);for(let q=0;q<M.length;q++){const $=M[q][0],W=M[q][1];for(let Y=-2;Y<=2;Y++)for(let J=-2;J<=2;J++)Y===-2||Y===2||J===-2||J===2||Y===0&&J===0?R.set($+Y,W+J,!0,!0):R.set($+Y,W+J,!1,!0)}}function T(R,A){const M=R.size,q=g.getEncodedBits(A);let $,W,Y;for(let J=0;J<18;J++)$=Math.floor(J/3),W=J%3+M-8-3,Y=(q>>J&1)===1,R.set($,W,Y,!0),R.set(W,$,Y,!0)}function E(R,A,M){const q=R.size,$=x.getEncodedBits(A,M);let W,Y;for(W=0;W<15;W++)Y=($>>W&1)===1,W<6?R.set(W,8,Y,!0):W<8?R.set(W+1,8,Y,!0):R.set(q-15+W,8,Y,!0),W<8?R.set(8,q-W-1,Y,!0):W<9?R.set(8,15-W-1+1,Y,!0):R.set(8,15-W-1,Y,!0);R.set(q-8,8,1,!0)}function _(R,A){const M=R.size;let q=-1,$=M-1,W=7,Y=0;for(let J=M-1;J>0;J-=2)for(J===6&&J--;;){for(let te=0;te<2;te++)if(!R.isReserved($,J-te)){let ce=!1;Y<A.length&&(ce=(A[Y]>>>W&1)===1),R.set($,J-te,ce),W--,W===-1&&(Y++,W=7)}if($+=q,$<0||M<=$){$-=q,q=-q;break}}}function O(R,A,M){const q=new r;M.forEach(function(te){q.put(te.mode.bit,4),q.put(te.getLength(),v.getCharCountIndicator(te.mode,R)),te.write(q)});const $=n.getSymbolTotalCodewords(R),W=m.getTotalCodewordsCount(R,A),Y=($-W)*8;for(q.getLengthInBits()+4<=Y&&q.put(0,4);q.getLengthInBits()%8!==0;)q.putBit(0);const J=(Y-q.getLengthInBits())/8;for(let te=0;te<J;te++)q.put(te%2?17:236,8);return B(q,R,A)}function B(R,A,M){const q=n.getSymbolTotalCodewords(A),$=m.getTotalCodewordsCount(A,M),W=q-$,Y=m.getBlocksCount(A,M),J=q%Y,te=Y-J,ce=Math.floor(q/Y),D=Math.floor(W/Y),V=D+1,L=ce-D,oe=new h(L);let de=0;const k=new Array(Y),Q=new Array(Y);let H=0;const Z=new Uint8Array(R.buffer);for(let pe=0;pe<Y;pe++){const Ee=pe<te?D:V;k[pe]=Z.slice(de,de+Ee),Q[pe]=oe.encode(k[pe]),de+=Ee,H=Math.max(H,Ee)}const re=new Uint8Array(q);let fe=0,F,le;for(F=0;F<H;F++)for(le=0;le<Y;le++)F<k[le].length&&(re[fe++]=k[le][F]);for(F=0;F<L;F++)for(le=0;le<Y;le++)re[fe++]=Q[le][F];return re}function P(R,A,M,q){let $;if(Array.isArray(R))$=w.fromArray(R);else if(typeof R=="string"){let ce=A;if(!ce){const D=w.rawSplit(R);ce=g.getBestVersionForData(D,M)}$=w.fromString(R,ce||40)}else throw new Error("Invalid data");const W=g.getBestVersionForData($,M);if(!W)throw new Error("The amount of data is too big to be stored in a QR Code");if(!A)A=W;else if(A<W)throw new Error(` 371The chosen QR Code version cannot contain this amount of data. 372Minimum version required to store current data is: `+W+`. 373`);const Y=O(A,M,$),J=n.getSymbolSize(A),te=new l(J);return j(te,A),C(te),S(te,A),E(te,M,0),A>=7&&T(te,A),_(te,Y),isNaN(q)&&(q=d.getBestMask(te,E.bind(null,te,M))),d.applyMask(q,te),E(te,M,q),{modules:te,version:A,errorCorrectionLevel:M,maskPattern:q,segments:$}}return Uf.create=function(A,M){if(typeof A>"u"||A==="")throw new Error("No input text");let q=a.M,$,W;return typeof M<"u"&&(q=a.from(M.errorCorrectionLevel,a.M),$=g.from(M.version),W=d.from(M.maskPattern),M.toSJISFunc&&n.setToSJISFunction(M.toSJISFunc)),P(A,$,q,W)},Uf}var rp={},lp={},E0;function T2(){return E0||(E0=1,(function(n){function a(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let l=r.slice().replace("#","").split("");if(l.length<3||l.length===5||l.length>8)throw new Error("Invalid hex color: "+r);(l.length===3||l.length===4)&&(l=Array.prototype.concat.apply([],l.map(function(c){return[c,c]}))),l.length===6&&l.push("F","F");const o=parseInt(l.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+l.slice(0,6).join("")}}n.getOptions=function(l){l||(l={}),l.color||(l.color={});const o=typeof l.margin>"u"||l.margin===null||l.margin<0?4:l.margin,c=l.width&&l.width>=21?l.width:void 0,d=l.scale||4;
vendor: 4,416 bytes, lines 373-374
373return{width:c,scale:c?4:d,margin:o,color:{dark:a(l.color.dark||"#000000ff"),light:a(l.color.light||"#ffffffff")},type:l.type,rendererOpts:l.rendererOpts||{}}},n.getScale=function(l,o){return o.width&&o.width>=l+o.margin*2?o.width/(l+o.margin*2):o.scale},n.getImageWidth=function(l,o){const c=n.getScale(l,o);return Math.floor((l+o.margin*2)*c)},n.qrToImageData=function(l,o,c){const d=o.modules.size,m=o.modules.data,h=n.getScale(d,c),g=Math.floor((d+c.margin*2)*h),x=c.margin*h,v=[c.color.light,c.color.dark];for(let w=0;w<g;w++)for(let j=0;j<g;j++){let C=(w*g+j)*4,S=c.color.light;if(w>=x&&j>=x&&w<g-x&&j<g-x){const T=Math.floor((w-x)/h),E=Math.floor((j-x)/h);S=v[m[T*d+E]?1:0]}l[C++]=S.r,l[C++]=S.g,l[C++]=S.b,l[C]=S.a}}})(lp)),lp}var C0;function eD(){return C0||(C0=1,(function(n){const a=T2();function r(o,c,d){o.clearRect(0,0,c.width,c.height),c.style||(c.style={}),c.height=d,c.width=d,c.style.height=d+"px",c.style.width=d+"px"}function l(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(c,d,m){let h=m,g=d;typeof h>"u"&&(!d||!d.getContext)&&(h=d,d=void 0),d||(g=l()),h=a.getOptions(h);const x=a.getImageWidth(c.modules.size,h),v=g.getContext("2d"),w=v.createImageData(x,x);return a.qrToImageData(w.data,c,h),r(v,g,x),v.putImageData(w,0,0),g},n.renderToDataURL=function(c,d,m){let h=m;typeof h>"u"&&(!d||!d.getContext)&&(h=d,d=void 0),h||(h={});const g=n.render(c,d,h),x=h.type||"image/png",v=h.rendererOpts||{};return g.toDataURL(x,v.quality)}})(rp)),rp}var ip={},k0;function tD(){if(k0)return ip;k0=1;const n=T2();function a(o,c){const d=o.a/255,m=c+'="'+o.hex+'"';return d<1?m+" "+c+'-opacity="'+d.toFixed(2).slice(1)+'"':m}function r(o,c,d){let m=o+c;return typeof d<"u"&&(m+=" "+d),m}function l(o,c,d){let m="",h=0,g=!1,x=0;for(let v=0;v<o.length;v++){const w=Math.floor(v%c),j=Math.floor(v/c);!w&&!g&&(g=!0),o[v]?(x++,v>0&&w>0&&o[v-1]||(m+=g?r("M",w+d,.5+j+d):r("m",h,0),h=0,g=!1),w+1<c&&o[v+1]||(m+=r("h",x),x=0)):h++}return m}return ip.render=function(c,d,m){const h=n.getOptions(d),g=c.modules.size,x=c.modules.data,v=g+h.margin*2,w=h.color.light.a?"<path "+a(h.color.light,"fill")+' d="M0 0h'+v+"v"+v+'H0z"/>':"",j="<path "+a(h.color.dark,"stroke")+' d="'+l(x,g,h.margin)+'"/>',C='viewBox="0 0 '+v+" "+v+'"',T='<svg xmlns="http://www.w3.org/2000/svg" '+(h.width?'width="'+h.width+'" height="'+h.width+'" ':"")+C+' shape-rendering="crispEdges">'+w+j+`</svg> 374`;return typeof m=="function"&&m(null,T),T},ip}var A0;function nD(){if(A0)return $r;A0=1;const n=KO(),a=JO(),r=eD(),l=tD();function o(c,d,m,h,g){const x=[].slice.call(arguments,1),v=x.length,w=typeof x[v-1]=="function";if(!w&&!n())throw new Error("Callback required as last argument");if(w){if(v<2)throw new Error("Too few arguments provided");v===2?(g=m,m=d,d=h=void 0):v===3&&(d.getContext&&typeof g>"u"?(g=h,h=void 0):(g=h,h=m,m=d,d=void 0))}else{if(v<1)throw new Error("Too few arguments provided");return v===1?(m=d,d=h=void 0):v===2&&!d.getContext&&(h=m,m=d,d=void 0),new Promise(function(j,C){try{const S=a.create(m,h);j(c(S,d,h))}catch(S){C(S)}})}try{const j=a.create(m,h);g(null,c(j,d,h))}catch(j){g(j)}}return $r.create=a.create,$r.toCanvas=o.bind(null,r.render),$r.toDataURL=o.bind(null,r.renderToDataURL),$r.toString=o.bind(null,function(c,d,m){return l.render(c,m)}),$r}var aD=nD();const sD=Gp(aD);function rD(){const[,n]=Yc("/app/facturen/:id"),a=Number(n?.id),r=be.useUtils(),{data:l,isLoading:o}=be.klusapp.facturen.get.useQuery({id:a},{enabled:!!a}),{data:c}=be.klusapp.klanten.get.useQuery({id:l?.klantId},{enabled:!!l?.klantId}),{data:d}=be.klusapp.profiel.get.useQuery(),m=be.klusapp.facturen.update.useMutation(),h=be.klusapp.facturen.delete.useMutation(),[g,x]=b.useState(null),v=be.klusapp.facturen.exportPDF.useMutation(),[w,j]=b.useState(!1),[C,S]=b.useState(""),[T,E]=b.useState(""),[_,O]=b.useState(!1),{data:B,isFetching:P}=be.klusapp.facturen.herinneringTekst.useQuery({id:a},{enabled:!!a&&_}),R=l?.betaallink||"";if(b.useEffect(()=>{R?sD.toDataURL(R,{width:240,margin:1}).then(E).catch(()=>E("")):E("")},[R]),o||!l)return u.jsx(qt,{"data-loc":"client/src/pages/FactuurDetail.tsx:55",title:"Factuur",children:u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:55",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/FactuurDetail.tsx:55",className:"h-6 w-6 animate-spin text-primary"})})});
374const A=l.regels||[],M=ul(A),q=l.btwVerlegd??!1;async function $(k){await m.mutateAsync({id:a,status:k}),await r.klusapp.facturen.get.invalidate({id:a}),await r.klusapp.facturen.list.invalidate(),await r.klusapp.dashboard.stats.invalidate(),Se.success("Status bijgewerkt")}async function W(){await m.mutateAsync({id:a,betaallink:C}),await r.klusapp.facturen.get.invalidate({id:a}),j(!1),Se.success("Betaallink opgeslagen")}async function Y(k){await m.mutateAsync({id:a,btwVerlegd:k,regels:A}),await r.klusapp.facturen.get.invalidate({id:a}),await r.klusapp.facturen.list.invalidate(),Se.success(k?"BTW verlegd ingesteld":"BTW-verlegging uitgezet")}function J(){const k=d?.bedrijfsnaam||"Mijn bedrijf",Q=A.map(H=>`- ${H.omschrijving}: ${H.aantal} ${H.eenheid} x ${$e(H.prijs)} = ${$e(H.aantal*H.prijs)}`).join(` 375`);return`Factuur ${l.nummer} van ${k} 376 377Klant: ${c?.naam||""} 378Vervaldatum: ${Is(l.vervaldatum)} 379 380${Q} 381 382Subtotaal: ${$e(M.exclBtw)} 383BTW: ${$e(M.btw)} 384Totaal: ${$e(M.inclBtw)}${R?` 385 386Betaal direct via iDEAL: ${R}`:` 387 388IBAN: ${d?.iban||""}`}`}async function te(){const k=J();if(navigator.share)try{await navigator.share({title:`Factuur ${l.nummer}`,text:k})}catch{}else await navigator.clipboard.writeText(k),Se.success("Factuurtekst gekopieerd")}function ce(){const k=encodeURIComponent(J());window.open(`https://wa.me/?text=${k}`,"_blank")}async function D(){x("pdf");try{const k=await v.mutateAsync({id:a}),Q=document.createElement("a");Q.href=k.url,Q.download=`factuur-${k.nummer}.pdf`,Q.target="_blank",Q.rel="noopener noreferrer",Q.click(),Se.success("PDF gegenereerd")}catch{Se.error("PDF genereren mislukt")}finally{x(null)}}async function V(){x("ubl");try{const k=await r.klusapp.facturen.export.fetch({id:a,formaat:"ubl"}),Q=new Blob([k.inhoud],{type:"application/xml"}),H=URL.createObjectURL(Q),Z=document.createElement("a");Z.href=H,Z.download=`${k.nummer}.xml`,Z.click(),URL.revokeObjectURL(H),Se.success("UBL (Peppol-stijl) bestand gedownload")}catch{Se.error("Export mislukt")}finally{x(null)}}async function L(){B&&(await navigator.clipboard.writeText(B.tekst),Se.success("Herinnering gekopieerd"))}function oe(){B&&window.open(`https://wa.me/?text=${encodeURIComponent(B.tekst)}`,"_blank")}function de(){if(!B)return;const k=c?.email||"";window.location.href=`mailto:${k}?subject=${encodeURIComponent(B.onderwerp)}&body=${encodeURIComponent(B.tekst)}`}return u.jsxs(qt,{"data-loc":"client/src/pages/FactuurDetail.tsx:161",title:"Factuur",children:[u.jsxs(ft,{"data-loc":"client/src/pages/FactuurDetail.tsx:162",href:"/app/facturen",className:"inline-flex items-center gap-1 text-sm text-muted-foreground mb-4",children:[u.jsx(Js,{"data-loc":"client/src/pages/FactuurDetail.tsx:163",className:"h-4 w-4"})," Terug"]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:166",className:"flex items-start justify-between mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:167",children:[u.jsx("h1",{"data-loc":"client/src/pages/FactuurDetail.tsx:168",className:"text-xl font-bold",children:l.nummer}),u.jsxs("p",{"data-loc":"client/src/pages/FactuurDetail.tsx:169",className:"text-sm text-muted-foreground",children:["Vervalt ",Is(l.vervaldatum)]})]}),u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:171",className:`text-xs px-2 py-1 rounded-full font-medium ${gl(l.status)}`,children:Q1[l.status]})]}),c&&u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:175",className:"bg-card rounded-xl border border-border p-4 mb-4",children:[u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:176",className:"text-xs text-muted-foreground mb-0.5",children:"Klant"}),u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:177",className:"font-medium",children:c.naam}),c.adres&&u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:178",className:"text-sm text-muted-foreground",children:[c.adres,", ",c.postcode," ",c.stad]})]}),u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:182",className:"bg-card rounded-xl border border-border divide-y divide-border mb-4",children:A.map((k,Q)=>u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:184",className:"p-3 flex justify-between",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:185",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:186",className:"font-medium text-sm",children:[k.omschrijving," ",k.meerwerk&&u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:186",className:"text-xs text-amber-600",children:"(meerwerk)"})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:187",className:"text-xs text-muted-foreground",children:[k.aantal," ",k.eenheid," à ",$e(k.prijs)," · ",k.btw,"% btw"]}
388)]}),u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:189",className:"font-medium text-sm",children:$e(k.aantal*k.prijs)})]},Q))}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:194",className:"bg-secondary/50 rounded-xl p-4 mb-4 space-y-1 text-sm",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:195",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:195",children:"Subtotaal"}),u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:195",children:$e(M.exclBtw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:196",className:"flex justify-between",children:[u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:196",children:"BTW"}),u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:196",children:q?"BTW verlegd":$e(M.btw)})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:197",className:"flex justify-between font-bold text-base",children:[u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:197",children:"Totaal"}),u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:197",className:"text-primary",children:$e(q?M.exclBtw:M.inclBtw)})]})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:201",className:"bg-card rounded-xl border border-border p-4 mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:202",className:"flex items-center justify-between",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:203",children:[u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:204",className:"font-medium text-sm",children:"BTW verleggen"}),u.jsx("p",{"data-loc":"client/src/pages/FactuurDetail.tsx:205",className:"text-xs text-muted-foreground mt-0.5",children:"Voor onderaanneming aan een bouwbedrijf. Btw wordt 0% en âbtw verlegdâ komt op de factuur."})]}),u.jsx(is,{"data-loc":"client/src/pages/FactuurDetail.tsx:207",checked:q,onCheckedChange:Y,disabled:m.isPending})]}),q&&u.jsx("p",{"data-loc":"client/src/pages/FactuurDetail.tsx:210",className:"text-xs text-amber-700 mt-2",children:"De btw is verlegd naar de afnemer. Vermeld het btw-nummer van de afnemer in de klantgegevens."})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:215",className:"bg-card rounded-xl border border-border p-4 mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:216",className:"flex items-center justify-between mb-1",children:[u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:217",className:"font-medium text-sm",children:"iDEAL-betaallink"}),u.jsxs(ki,{"data-loc":"client/src/pages/FactuurDetail.tsx:218",open:w,onOpenChange:k=>{j(k),S(R)},children:[u.jsx(Lp,{"data-loc":"client/src/pages/FactuurDetail.tsx:219",asChild:!0,children:u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:219",size:"sm",variant:"outline",className:"bg-card",children:[u.jsx(E5,{"data-loc":"client/src/pages/FactuurDetail.tsx:219",className:"h-3.5 w-3.5 mr-1"})," ",R?"Wijzig":"Toevoegen"]})}),u.jsxs(Ai,{"data-loc":"client/src/pages/FactuurDetail.tsx:220",children:[u.jsxs(Ti,{"data-loc":"client/src/pages/FactuurDetail.tsx:221",children:[u.jsx(Oi,{"data-loc":"client/src/pages/FactuurDetail.tsx:222",children:"Betaallink toevoegen"}),u.jsx(Ac,{"data-loc":"client/src/pages/FactuurDetail.tsx:223",children:"Plak hier je Tikkie- of iDEAL-betaalverzoek. Deze wordt meegestuurd met de factuur zodat de klant met één tik betaalt."})]}),u.jsx(De,{"data-loc":"client/src/pages/FactuurDetail.tsx:225",placeholder:"https://tikkie.me/pay/...",value:C,onChange:k=>S(k.target.value)}),u.jsx($c,{"data-loc":"client/src/pages/FactuurDetail.tsx:226",children:u.jsx(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:226",onClick:W,children:"Opslaan"})})]})]})]}),R?u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:231",className:"space-y-3",children:[u.jsx("a",{"data-loc":"client/src/pages/FactuurDetail.tsx:232",href:R,target:"_blank",rel:"noopener noreferrer",className:"text-sm text-primary break-all block",children:R}),T&&u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:234",className:"flex flex-col items-center gap-1 pt-1",children:[u.jsx("img",{"data-loc":"client/src/pages/FactuurDetail.tsx:235",src:T,alt:"Betaal-QR",className:"w-40 h-40 rounded-lg border border-border bg-white p-1"}),u.jsx("span",{"data-loc":"client/src/pages/FactuurDetail.tsx:236",className:"text-xs text-muted-foreground",children:"Laat de klant scannen om te betalen"})]})]}):u.jsx("p",{"data-loc":"client/src/pages/FactuurDetail.tsx:241",className:"text-sm text-muted-foreground",children:"Nog geen betaallink. Voeg een Tikkie/iDEAL-link toe zodat klanten direct betalen."})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:245",className:"space-y-2",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:246",className:"grid grid-cols-2 gap-2",children:[u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:247",variant:"outline",className:"bg-card",onClick:te,children:[u.jsx(D5,{"data-loc":"client/src/pages/FactuurDetail.tsx:247",className:"h-4 w-4 mr-1"})," Delen"]}),u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:248",variant:"outline",className:"bg-card",onClick:ce,children:[u.jsx(Tf,{"data-loc":"client/src/pages/FactuurDetail.tsx:248",className:"h-4 w-4 mr-1"})," WhatsApp"]})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:250",className:"grid grid-cols-2 gap-2",children:[u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:251",variant:"outline",className:"bg-card",onClick:D,disabled:g!==null,children:[g==="pdf"?u.jsx(Qe,{"data-loc":"client/src/pages/FactuurDetail.tsx:252",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Qs,{"data-loc":"client/src/pages/FactuurDetail.tsx:252",className:"h-4 w-4 mr-1"})," PDF downloaden"]}),u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:254",variant:"outline",className:"bg-card",onClick:V,disabled:g!==null,children:[g==="ubl"?u.jsx(Qe,{"data-loc":"client/src/pages/FactuurDetail.tsx:255",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(S5,{"data-loc":"client/src/pages/FactuurDetail.tsx:255",className:"h-4 w-4 mr-1"})," UBL (Peppol)"]})]}),l.status!=="betaald"&&l.status!=="concept"&&u.jsxs(ki,{"data-loc":"client/src/pages/FactuurDetail.tsx:259",open:_,onOpenChange:O,children:[u.jsx(Lp,{"data-loc":"client/src/pages/FactuurDetail.tsx:260",asChild:!0,children:u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:261",variant:"outline",className:"w-full bg-card",children:[u.jsx(v5,{"data-loc":"client/src/pages/FactuurDetail.tsx:261",className:"h-4 w-4 mr-1"})," Stuur herinnering"]})}),u.jsxs(Ai,{"data-loc":"client/src/pages/FactuurDetail.tsx:263",children:[u.jsxs(Ti,{"data-loc":"client/src/pages/FactuurDetail.tsx:264",children:[u.jsx(Oi,{"data-loc":"client/src/pages/FactuurDetail.tsx:265",children:"Betalingsherinnering"}),u.jsx(Ac,{"data-loc":"client/src/pages/FactuurDetail.tsx:266",children:l.herinneringAantal>0?`Eerder verstuurde herinneringen: ${l.herinneringAantal}. De toon van deze tekst loopt automatisch op.`:"Klaar om te versturen. De toon past zich aan o
388p het aantal eerdere herinneringen."})]}),P||!B?u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:273",className:"flex justify-center py-6",children:u.jsx(Qe,{"data-loc":"client/src/pages/FactuurDetail.tsx:273",className:"h-5 w-5 animate-spin text-primary"})}):u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:275",className:"space-y-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:276",children:[u.jsx(Be,{"data-loc":"client/src/pages/FactuurDetail.tsx:277",className:"text-xs text-muted-foreground",children:"Onderwerp"}),u.jsx("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:278",className:"text-sm font-medium",children:B.onderwerp})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:280",children:[u.jsx(Be,{"data-loc":"client/src/pages/FactuurDetail.tsx:281",className:"text-xs text-muted-foreground",children:"Bericht"}),u.jsx("pre",{"data-loc":"client/src/pages/FactuurDetail.tsx:282",className:"text-sm whitespace-pre-wrap bg-secondary/50 rounded-lg p-3 mt-1 font-sans",children:B.tekst})]}),u.jsxs("div",{"data-loc":"client/src/pages/FactuurDetail.tsx:284",className:"grid grid-cols-3 gap-2",children:[u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:285",variant:"outline",className:"bg-card",onClick:L,children:[u.jsx(b5,{"data-loc":"client/src/pages/FactuurDetail.tsx:285",className:"h-4 w-4 mr-1"})," Kopieer"]}),u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:286",variant:"outline",className:"bg-card",onClick:oe,children:[u.jsx(Tf,{"data-loc":"client/src/pages/FactuurDetail.tsx:286",className:"h-4 w-4 mr-1"})," WhatsApp"]}),u.jsx(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:287",variant:"outline",className:"bg-card",onClick:de,children:"E-mail"})]})]})]})]}),l.status==="concept"&&u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:295",className:"w-full",onClick:()=>$("verzonden"),children:[u.jsx(Tf,{"data-loc":"client/src/pages/FactuurDetail.tsx:295",className:"h-4 w-4 mr-1"})," Markeer als verzonden"]}),l.status!=="betaald"&&u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:298",className:"w-full bg-emerald-600 hover:bg-emerald-700",onClick:()=>$("betaald"),children:[u.jsx(Na,{"data-loc":"client/src/pages/FactuurDetail.tsx:298",className:"h-4 w-4 mr-1"})," Markeer als betaald"]}),u.jsxs(Tm,{"data-loc":"client/src/pages/FactuurDetail.tsx:300",children:[u.jsx(Om,{"data-loc":"client/src/pages/FactuurDetail.tsx:301",asChild:!0,children:u.jsxs(je,{"data-loc":"client/src/pages/FactuurDetail.tsx:302",variant:"ghost",className:"w-full text-destructive",children:[u.jsx(Pi,{"data-loc":"client/src/pages/FactuurDetail.tsx:302",className:"h-4 w-4 mr-1"})," Verwijderen"]})}),u.jsxs(Dm,{"data-loc":"client/src/pages/FactuurDetail.tsx:304",children:[u.jsxs(_m,{"data-loc":"client/src/pages/FactuurDetail.tsx:305",children:[u.jsx(Mm,{"data-loc":"client/src/pages/FactuurDetail.tsx:306",children:"Factuur verwijderen?"}),u.jsx(zm,{"data-loc":"client/src/pages/FactuurDetail.tsx:307",children:"Dit kan niet ongedaan gemaakt worden."})]}),u.jsxs(Rm,{"data-loc":"client/src/pages/FactuurDetail.tsx:309",children:[u.jsx(Bm,{"data-loc":"client/src/pages/FactuurDetail.tsx:310",children:"Annuleren"}),u.jsx(Km,{"data-loc":"client/src/pages/FactuurDetail.tsx:311",onClick:async()=>{await h.mutateAsync({id:a}),await r.klusapp.facturen.list.invalidate(),Se.success("Verwijderd"),history.back()},className:"bg-destructive text-destructive-foreground",children:"Verwijderen"})]})]})]})]})]})}function T0(){const[,n]=Yc("/app/werkbon/:klusId"),[,a]=er(),r=n?.klusId?Number(n.klusId):null,l=be.useUtils(),o=typeof window<"u"&&Number(new URLSearchParams(window.location.search).get("wb"))||null,{data:c}=be.klusapp.klussen.get.useQuery({id:r},{enabled:!!r}),{data:d}=be.klusapp.werkbonnen.get.useQuery({id:o},{enabled:!!o}),m=be.upload.image.useMutation(),h=be.klusapp.werkbonnen.create.useMutation(),g=be.klusapp.werkbonnen.update.useMutation(),x=be.klusapp.ai.structureerWerkbonSpraak.useMutation(),[v,w]=b.useState(!1),[j,C]=b.useState(!1),S=b.useRef(null),T=b.useRef([]);
388async function E(){if(!navigator.mediaDevices?.getUserMedia)return Se.error("Microfoon niet beschikbaar");try{const F=await navigator.mediaDevices.getUserMedia({audio:!0}),le=new MediaRecorder(F);T.current=[],le.ondataavailable=pe=>{pe.data.size>0&&T.current.push(pe.data)},le.onstop=async()=>{F.getTracks().forEach(Ne=>Ne.stop());const pe=new Blob(T.current,{type:"audio/webm"}),Ee=await new Promise(Ne=>{const ke=new FileReader;ke.onload=()=>Ne(ke.result),ke.readAsDataURL(pe)});C(!0);try{const Ne=await x.mutateAsync({audioBase64:Ee,mimeType:"audio/webm"});Ne.uren>0&&M(String(Ne.uren));const ke=[];Ne.samenvatting&&ke.push(Ne.samenvatting),Ne.materialen?.length&&ke.push("Materiaal: "+Ne.materialen.map(Ke=>`${Ke.aantal} ${Ke.eenheid} ${Ke.omschrijving}`).join(", ")),ke.length&&B(Ke=>(Ke?Ke+` 389`:"")+ke.join(` 390`)),Se.success("Ingesproken werkbon verwerkt")}catch{Se.error("Verwerken mislukt, probeer opnieuw")}finally{C(!1)}},le.start(),S.current=le,w(!0)}catch{Se.error("Microfoon-toegang geweigerd")}}function _(){S.current?.stop(),w(!1)}const[O,B]=b.useState(""),[P,R]=b.useState(!1);b.useEffect(()=>{if(d&&!P)B(d.omschrijving||""),M(d.uren?String(Number(d.uren)):""),$(!!d.isMeerwerk),te(d.fotos||[]),R(!0);else if(c&&!P&&O===""){const F=c.titel+(c.omschrijving?` â ${c.omschrijving}`:"");B(F),R(!0)}},[c,d,P,O]);const[A,M]=b.useState(""),[q,$]=b.useState(!1),[W,Y]=b.useState(""),[J,te]=b.useState([]),[ce,D]=b.useState(!1),[V,L]=b.useState(null),oe=b.useRef(null),de=b.useRef(!1),k=b.useRef(!1),Q=b.useRef(null);b.useEffect(()=>{const F=oe.current;if(!F)return;const le=F.getContext("2d");if(!le)return;le.strokeStyle="#1e293b",le.lineWidth=2,le.lineCap="round";const pe=Ke=>{const Fe=F.getBoundingClientRect();return{x:(Ke.clientX-Fe.left)*(F.width/Fe.width),y:(Ke.clientY-Fe.top)*(F.height/Fe.height)}},Ee=Ke=>{de.current=!0,k.current=!0;const Fe=pe(Ke);le.beginPath(),le.moveTo(Fe.x,Fe.y)},Ne=Ke=>{if(!de.current)return;const Fe=pe(Ke);le.lineTo(Fe.x,Fe.y),le.stroke()},ke=()=>{de.current=!1};return F.addEventListener("pointerdown",Ee),F.addEventListener("pointermove",Ne),window.addEventListener("pointerup",ke),()=>{F.removeEventListener("pointerdown",Ee),F.removeEventListener("pointermove",Ne),window.removeEventListener("pointerup",ke)}},[]);function H(){const F=oe.current,le=F?.getContext("2d");F&&le&&(le.clearRect(0,0,F.width,F.height),k.current=!1)}function Z(){if(!navigator.geolocation)return Se.error("Locatie niet beschikbaar");navigator.geolocation.getCurrentPosition(F=>{L({lat:F.coords.latitude,lng:F.coords.longitude}),Se.success("Locatie vastgelegd")},()=>Se.error("Locatie ophalen mislukt"))}async function re(F){const le=Array.from(F.target.files||[]);if(le.length!==0){D(!0);try{for(const pe of le){const Ee=await new Promise(ke=>{const Ke=new FileReader;Ke.onload=()=>ke(Ke.result),Ke.readAsDataURL(pe)}),{url:Ne}=await m.mutateAsync({base64:Ee,mimeType:pe.type,naam:"werkbon"});te(ke=>[...ke,Ne])}Se.success("Foto's toegevoegd")}catch{Se.error("Upload mislukt")}finally{D(!1),Q.current&&(Q.current.value="")}}}async function fe(){let F="";if(k.current&&oe.current){const le=oe.current.toDataURL("image/png");try{const{url:pe}=await m.mutateAsync({base64:le,mimeType:"image/png",naam:"handtekening"});F=pe}catch{}}o?await g.mutateAsync({id:o,omschrijving:O,uren:A?Number(A):0,fotos:J,...F?{handtekeningUrl:F}:{},ondertekendDoor:W,isMeerwerk:q,locatieLat:V?.lat??null,locatieLng:V?.lng??null}):await h.mutateAsync({klusId:r,klantId:c?.klantId??null,omschrijving:O,uren:A?Number(A):0,fotos:J,handtekeningUrl:F,ondertekendDoor:W,isMeerwerk:q,locatieLat:V?.lat??null,locatieLng:V?.lng??null}),await l.klusapp.werkbonnen.list.invalidate(),Se.success("Werkbon opgeslagen"),a(r?`/app/klussen/${r}`:"/app")}return u.jsxs(qt,{"data-loc":"client/src/pages/Werkbon.tsx:196",title:"Werkbon",children:[u.jsxs("button",{"data-loc":"client/src/pages/Werkbon.tsx:197",onClick:()=>history.back(),className:"inline-flex items-center gap-1 text-sm text-muted-foreground mb-4",children:[u.jsx(Js,{"data-loc":"client/src/pages/Werkbon.tsx:198",className:"h-4 w-4"})," Terug"]}),c&&u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:201",className:"text-sm text-muted-foreground mb-3",children:["Voor klus: ",u.jsx("span",{"data-loc":"client/src/pages/Werkbon.tsx:201",className:"font-medium text-foreground",children:c.titel})]}),u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:203",className:"space-y-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:205",className:"bg-secondary/40 rounded-xl border border-border p-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:206",className:"flex items-center justify-between",children:[u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:207",className:"min-w-0",children:[u.jsx("p",{"data-loc":"client/src/pages/Werkbon.tsx:208",className:"text-sm font-medium",children:"Werkbon inspreken"}),u.jsx("p",{"data-loc":"client/src/pages/Werkbon.tsx:209",className:"text-xs text-muted-foreground",children:"Bijv. âtwee uur gewerkt, vijf liter verf gebruiktâ"})]}),v?u.jsxs(je,{"data-loc":"client/src/pages/Werkbon.tsx:217",type:"button",size:"sm",variant:"destructive",onClick:_,children:[u.jsx(M1,{"data-loc":"client/src/pages/Werkbon.tsx:218",className:"h-4 w-4 mr-1"})," Stop"]}):u.jsxs(je,{"data-loc":"client/src/pages/Werkbon.tsx:212",type:"button",size:"sm",onClick:E,disabled:j,children:[j?u.
390jsx(Qe,{"data-loc":"client/src/pages/Werkbon.tsx:213",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Us,{"data-loc":"client/src/pages/Werkbon.tsx:213",className:"h-4 w-4 mr-1"}),j?"Verwerken":"Inspreken"]})]}),v&&u.jsx("p",{"data-loc":"client/src/pages/Werkbon.tsx:222",className:"text-xs text-primary mt-2 animate-pulse",children:"Opname loopt⦠spreek nu in en tik daarna op Stop."})]}),u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:225",children:[u.jsx(Be,{"data-loc":"client/src/pages/Werkbon.tsx:226",className:"mb-1.5 block",children:"Wat is er gedaan?"}),u.jsx(Fp,{"data-loc":"client/src/pages/Werkbon.tsx:227",rows:3,value:O,onChange:F=>B(F.target.value),placeholder:"Beschrijf het uitgevoerde werk..."})]}),u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:230",className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:231",children:[u.jsx(Be,{"data-loc":"client/src/pages/Werkbon.tsx:231",className:"mb-1.5 block",children:"Gewerkte uren"}),u.jsx(De,{"data-loc":"client/src/pages/Werkbon.tsx:231",type:"number",inputMode:"decimal",value:A,onChange:F=>M(F.target.value),placeholder:"0"})]}),u.jsx("div",{"data-loc":"client/src/pages/Werkbon.tsx:232",className:"flex items-end pb-2",children:u.jsxs("label",{"data-loc":"client/src/pages/Werkbon.tsx:233",className:"flex items-center gap-2 text-sm",children:[u.jsx(is,{"data-loc":"client/src/pages/Werkbon.tsx:234",checked:q,onCheckedChange:$})," Meerwerk"]})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:240",children:[u.jsx(Be,{"data-loc":"client/src/pages/Werkbon.tsx:241",className:"mb-1.5 block",children:"Foto's van het werk"}),u.jsx("input",{"data-loc":"client/src/pages/Werkbon.tsx:242",ref:Q,type:"file",accept:"image/*",capture:"environment",multiple:!0,className:"hidden",onChange:re}),u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:243",className:"grid grid-cols-3 gap-2",children:[J.map((F,le)=>u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:245",className:"relative aspect-square rounded-lg overflow-hidden border border-border",children:[u.jsx("img",{"data-loc":"client/src/pages/Werkbon.tsx:246",src:F,alt:"",className:"w-full h-full object-cover"}),u.jsx("button",{"data-loc":"client/src/pages/Werkbon.tsx:247",onClick:()=>te(pe=>pe.filter((Ee,Ne)=>Ne!==le)),className:"absolute top-1 right-1 bg-black/60 rounded-full p-0.5",children:u.jsx(gm,{"data-loc":"client/src/pages/Werkbon.tsx:247",className:"h-3 w-3 text-white"})})]},le)),u.jsx("button",{"data-loc":"client/src/pages/Werkbon.tsx:250",onClick:()=>Q.current?.click(),disabled:ce,className:"aspect-square rounded-lg border-2 border-dashed border-border flex items-center justify-center text-muted-foreground active:bg-secondary/50",children:ce?u.jsx(Qe,{"data-loc":"client/src/pages/Werkbon.tsx:251",className:"h-5 w-5 animate-spin"}):u.jsx(Ei,{"data-loc":"client/src/pages/Werkbon.tsx:251",className:"h-5 w-5"})})]})]}),u.jsxs(je,{"data-loc":"client/src/pages/Werkbon.tsx:257",variant:"outline",className:"w-full bg-card",onClick:Z,children:[u.jsx(T1,{"data-loc":"client/src/pages/Werkbon.tsx:258",className:"h-4 w-4 mr-1"})," ",V?`Locatie vastgelegd (${V.lat.toFixed(4)}, ${V.lng.toFixed(4)})`:"Locatie vastleggen"]}),u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:262",children:[u.jsxs(Be,{"data-loc":"client/src/pages/Werkbon.tsx:263",className:"mb-1.5 flex items-center gap-1",children:[u.jsx(k5,{"data-loc":"client/src/pages/Werkbon.tsx:263",className:"h-3.5 w-3.5"})," Handtekening klant"]}),u.jsx("canvas",{"data-loc":"client/src/pages/Werkbon.tsx:264",ref:oe,width:600,height:200,className:"w-full h-40 bg-white border border-border rounded-lg touch-none"}),u.jsxs("div",{"data-loc":"client/src/pages/Werkbon.tsx:265",className:"flex justify-between items-center mt-1",children:[u.jsx(De,{"data-loc":"client/src/pages/Werkbon.tsx:266",className:"max-w-[60%]",placeholder:"Naam ondertekenaar",value:W,onChange:F=>Y(F.target.value)}),u.jsx(je,{"data-loc":"client/src/pages/Werkbon.tsx:267",variant:"ghost",size:"sm",onClick:H,children:"Wissen"})]})]}),u.jsxs(je,{"data-loc":"client/src/pages/Werkbon.tsx:271",className:"w-full",onClick:fe,disabled:h.isPending||g.isPending,children:[h.isPending||g.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/Werkbon.tsx:272",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Na,{"data-loc":"client/src/pages/Werkbon.tsx:272",className:"h-4 w-4 mr-1"})," Werkbon opslaan"]})]})]})}function lD(){const{data:n,isLoading:a}=be.klusapp.profiel.get.useQuery(),{data:r}=be.klusapp.profiel.status.useQuery(),l=be.useUtils(),o=be.klusapp.profiel.update.useMutation(),{logout:c}=bm(),[d,m]=b.useState({bedrijfsnaam:"",contactNaam:"",email:"",telefoon:"",adres:"",postcode:"",stad:"",kvkNummer:"",btwNummer:"",iban:"",tikkieLink:"",betalingstermijn:14,factuurPrefix:"",uurtarief:0,standaardBtwVerlegd:!1});b.useEffect(()=>{n&&m({bedrijfsnaam:n.bedrijfsnaam||"",contactNaam:n.contactNaam||"",email:n.email||"",telefoon:n.telefoon||"",adres:n.adres||"",postcode:n.postcode||"",stad:n.stad||"",kvkNummer:n.kvkNummer||"",btwNummer:n.btwNummer||"",iban:n.iban||"",tikkieLink:n.tikkieLink||"",betalingstermijn:n.betalingstermijn||14,factuurPrefix:n.factuurPrefix||"",uurtarief:Number(n.uurtarief??0),standaardBtwVerlegd:n.standaardBtwVerlegd??!1})},[n]);async function h(){await o.mutateAsync({...d,betalingstermijn:Number(d.betalingstermijn),uurtarief:Number(d.uurtarief)}),await l.klusapp.profiel.get.invalidate(),Se.success("Opgeslagen")}if(a)return u.jsx(qt,{"data-loc":"client/src/pages/Instellingen.tsx:49",title:"Instellingen",children:u.jsx("div",{"data-loc":"client/src/pages/Instellingen.tsx:49",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/Instellingen.tsx:49",className:"h-6 w-6 animate-spin text-primary"})})});const g=(x,v,w={})=>u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:53",children:[u.jsx(Be,{"data-loc":"client/src/pages/Instellingen.tsx:53",className:"mb-1.5 block",children:v}),u.jsx(De,{"data-loc":"client/src/pages/Instellingen.tsx:53",value:d[x],onChange:j=>m({...d,[x]:j.target.value}),...w})]});return u.jsxs(qt,{"data-loc":"client/src/pages/Instellingen.tsx:57",title:"Instellingen",children:[u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:59",className:"rounded-xl border p-5 mb-5 bg-gradient-to-br from-primary/5 to-amber-50 border-primary/20",children:[u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:60",className:"flex items-center gap-2 mb-1",children:[u.jsx(Ry,{"data-loc":"client/src/pages/Instellingen.tsx:61",className:"h-5 w-5 text-amber-500"}),u.jsx("span",{"data-loc":"client/src/pages/Instellingen.tsx:62",className:"font-bold",children:r?.isPro?"KlusApp Pro":"Proefperiode"})]}),r?.isPro?u.jsx("p",{"data-loc":"client/src/pages/Instellingen.tsx:65",className:"text-sm text-muted-foreground",children:"Je hebt volledige toegang tot alle functies. Bedankt voor je vertrouwen."}):r?.trialVerlopen?u.jsx("p",{"data-loc":"client/src/pages/Instellingen.tsx:67",className:"text-sm text-red-600",children:"Je proefperiode is verlopen. Upgrade naar Pro om door te gaan met facturen en werkbonnen."}):u.jsxs("p",{"data-loc":"client/src/pages/Instellingen.tsx:69",className:"text-sm text-muted-foreground",children:["Je hebt nog ",u.jsxs("span",{"data-loc":"client/src/pages/Instellingen.tsx:69",className:"font-semibold text-foreground",children:[r?.dagenResterend," dagen"]})," gratis. Daarna â¬14,99/maand voor onbeperkt gebruik."]}),!r?.isPro&&u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:72",className:"mt-3",children:[u.jsxs("ul",{"data-loc":"client/src/pages/Instellingen.tsx:73",className:"text-sm space-y-1 mb-3",children:[u.jsxs("li",{"data-loc":"client/src/pages/Instellingen.tsx:74",className:"flex items-center gap-2",children:[u.jsx(Na,{"data-loc":"client/src/pages/Instellingen.tsx:74",className:"h-4 w-4 text-primary"})," Onbeperkt klussen, facturen & werkbonnen"]}
390),u.jsxs("li",{"data-loc":"client/src/pages/Instellingen.tsx:75",className:"flex items-center gap-2",children:[u.jsx(Na,{"data-loc":"client/src/pages/Instellingen.tsx:75",className:"h-4 w-4 text-primary"})," AI-spraak naar factuur"]}),u.jsxs("li",{"data-loc":"client/src/pages/Instellingen.tsx:76",className:"flex items-center gap-2",children:[u.jsx(Na,{"data-loc":"client/src/pages/Instellingen.tsx:76",className:"h-4 w-4 text-primary"})," iDEAL-betaallinks & herinneringen"]})]}),u.jsxs(je,{"data-loc":"client/src/pages/Instellingen.tsx:78",className:"w-full",onClick:()=>Se.info("Betaling via Stripe wordt binnenkort geactiveerd. Neem contact op om Pro te activeren."),children:[u.jsx(Ry,{"data-loc":"client/src/pages/Instellingen.tsx:79",className:"h-4 w-4 mr-1"})," Upgrade naar Pro · â¬14,99/mnd"]})]})]}),u.jsx("h2",{"data-loc":"client/src/pages/Instellingen.tsx:85",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Bedrijfsgegevens"}),u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:86",className:"bg-card rounded-xl border border-border p-4 space-y-3 mb-4",children:[g("bedrijfsnaam","Bedrijfsnaam"),g("contactNaam","Contactpersoon"),u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:89",className:"grid grid-cols-2 gap-3",children:[g("telefoon","Telefoon"),g("email","E-mail")]}),g("adres","Adres"),u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:91",className:"grid grid-cols-2 gap-3",children:[g("postcode","Postcode"),g("stad","Plaats")]})]}),u.jsx("h2",{"data-loc":"client/src/pages/Instellingen.tsx:94",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Fiscaal & betaling"}),u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:95",className:"bg-card rounded-xl border border-border p-4 space-y-3 mb-4",children:[u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:96",className:"grid grid-cols-2 gap-3",children:[g("kvkNummer","KvK-nummer"),g("btwNummer","BTW-nummer")]}),g("iban","IBAN"),g("tikkieLink","Standaard Tikkie/iDEAL-link",{placeholder:"https://tikkie.me/pay/..."}),u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:99",className:"grid grid-cols-2 gap-3",children:[g("betalingstermijn","Betalingstermijn (dagen)",{type:"number"}),g("factuurPrefix","Factuur-prefix",{placeholder:"2026-"})]}),g("uurtarief","Standaard uurtarief (â¬)",{type:"number",inputMode:"decimal",placeholder:"50"}),u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:104",className:"flex items-center justify-between pt-1",children:[u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:105",children:[u.jsx("div",{"data-loc":"client/src/pages/Instellingen.tsx:106",className:"text-sm font-medium",children:"BTW standaard verleggen"}),u.jsx("p",{"data-loc":"client/src/pages/Instellingen.tsx:107",className:"text-xs text-muted-foreground mt-0.5",children:"Aan als je vooral als onderaannemer voor bouwbedrijven werkt."})]}),u.jsx(is,{"data-loc":"client/src/pages/Instellingen.tsx:109",checked:d.standaardBtwVerlegd,onCheckedChange:x=>m({...d,standaardBtwVerlegd:x})})]})]}),u.jsxs(je,{"data-loc":"client/src/pages/Instellingen.tsx:113",className:"w-full mb-4",onClick:h,disabled:o.isPending,children:[o.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/Instellingen.tsx:114",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(_1,{"data-loc":"client/src/pages/Instellingen.tsx:114",className:"h-4 w-4 mr-1"})," Opslaan"]}),u.jsx("h2",{"data-loc":"client/src/pages/Instellingen.tsx:117",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Vakprofiel"}),u.jsxs(ft,{"data-loc":"client/src/pages/Instellingen.tsx:118",href:"/app/vakprofiel",className:"bg-card rounded-xl border border-border p-4 mb-4 flex items-center justify-between active:scale-[0.99] transition-transform",children:[u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:119",className:"flex items-center gap-3",children:[u.jsx(O1,{"data-loc":"client/src/pages/Instellingen.tsx:120",className:"h-5 w-5 text-primary"}),u.jsxs("div",{"data-loc":"client/src/pages/Instellingen.tsx:121",children:[u.jsx("div",{"data-loc":"client/src/pages/Instellingen.tsx:122",className:"text-sm font-medium",children:"Schilderprofiel & prijslijst"}),u.jsx("p",{"data-loc":"client/src/pages/Instellingen.tsx:123",className:"text-xs text-muted-foreground",children:"Normtijden, correctiefactoren en materialen met marge"})]})]}),u.jsx(x5,{"data-loc":"client/src/pages/Instellingen.tsx:126",className:"h-5 w-5 text-muted-foreground"})]}),u.jsxs(je,{"data-loc":"client/src/pages/Instellingen.tsx:129",variant:"ghost",className:"w-full text-muted-foreground",onClick:()=>c(),children:[u.jsx(C5,{"data-loc":"client/src/pages/Instellingen.tsx:130",className:"h-4 w-4 mr-1"})," Uitloggen"]})]})}function op(n,a,r){const l=n*(1-a/100),o=l*(1+r/100),c=o-l;return{netto:l,verkoop:o,marge:c}}function iD(){const n=be.useUtils(),{data:a,isLoading:r}=be.klusapp.vakprofiel.list.useQuery(),{data:l}=be.klusapp.artikelen.list.useQuery(),o=be.klusapp.vakprofiel.seedSchilder.useMutation(),c=be.klusapp.vakprofiel.update.useMutation(),d=be.klusapp.artikelen.create.useMutation();be.klusapp.artikelen.update.useMutation();const m=be.klusapp.artikelen.delete.useMutation(),h=(a||[]).find(E=>E.sleutel==="schilder"),[g,x]=b.useState(null);b.useEffect(()=>{h&&x(h.config)},[h]);async function v(){await o.mutateAsync(),await n.klusapp.vakprofiel.list.invali
390date(),Se.success("Schildersprofiel aangemaakt met standaard normtijden.")}async function w(){!h||!g||(await c.mutateAsync({id:h.id,config:g}),await n.klusapp.vakprofiel.list.invalidate(),Se.success("Schilderprofiel opgeslagen."))}const[j,C]=b.useState({naam:"",groep:"",eenheid:"stuk",brutoPrijs:0,kortingPct:0,markupPct:0,btw:21});async function S(){if(!j.naam.trim())return Se.error("Geef het artikel een naam.");await d.mutateAsync({naam:j.naam,groep:j.groep,eenheid:j.eenheid,brutoPrijs:Number(j.brutoPrijs),kortingPct:Number(j.kortingPct),markupPct:Number(j.markupPct),btw:Number(j.btw)}),await n.klusapp.artikelen.list.invalidate(),C({naam:"",groep:"",eenheid:"stuk",brutoPrijs:0,kortingPct:0,markupPct:0,btw:21}),Se.success("Artikel toegevoegd.")}async function T(E){await m.mutateAsync({id:E}),await n.klusapp.artikelen.list.invalidate()}return r?u.jsx(qt,{"data-loc":"client/src/pages/Vakprofiel.tsx:80",title:"Schilderprofiel",children:u.jsx("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:80",className:"flex justify-center py-10",children:u.jsx(Qe,{"data-loc":"client/src/pages/Vakprofiel.tsx:80",className:"h-6 w-6 animate-spin text-primary"})})}):u.jsxs(qt,{"data-loc":"client/src/pages/Vakprofiel.tsx:84",title:"Schilderprofiel & prijslijst",children:[u.jsxs(ft,{"data-loc":"client/src/pages/Vakprofiel.tsx:85",href:"/app/instellingen",className:"inline-flex items-center gap-1 text-sm text-muted-foreground mb-4",children:[u.jsx(Js,{"data-loc":"client/src/pages/Vakprofiel.tsx:86",className:"h-4 w-4"})," Terug naar instellingen"]}),!h&&u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:90",className:"bg-card rounded-xl border border-border p-6 mb-5 text-center",children:[u.jsx(O1,{"data-loc":"client/src/pages/Vakprofiel.tsx:91",className:"h-10 w-10 text-primary mx-auto mb-3"}),u.jsx("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:92",className:"font-medium mb-1",children:"Nog geen schilderprofiel"}),u.jsx("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:93",className:"text-sm text-muted-foreground mb-4",children:"Maak een schilderprofiel aan met standaard normtijden (schuren/gronden/aflakken), correctiefactoren en btw 9%. Je past alles daarna naar je eigen tarieven aan."}),u.jsxs(je,{"data-loc":"client/src/pages/Vakprofiel.tsx:96",onClick:v,disabled:o.isPending,children:[o.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/Vakprofiel.tsx:97",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(Kp,{"data-loc":"client/src/pages/Vakprofiel.tsx:97",className:"h-4 w-4 mr-1"}),"Standaard schilderprofiel aanmaken"]})]}),h&&g&&u.jsxs(u.Fragment,{children:[u.jsx("h2",{"data-loc":"client/src/pages/Vakprofiel.tsx:105",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Normtijden (minuten per eenheid)"}),u.jsx("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:106",className:"bg-card rounded-xl border border-border p-3 mb-4 space-y-2",children:g.normtijden.map((E,_)=>u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:108",className:"grid grid-cols-[1fr_1fr_70px] gap-2 items-center",children:[u.jsx("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:109",className:"text-sm",children:E.element}),u.jsx("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:110",className:"text-xs text-muted-foreground",children:E.handeling}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:111",type:"number",value:E.minutenPerEenheid,onChange:O=>{const B=Number(O.target.value);x({...g,normtijden:g.normtijden.map((P,R)=>R===_?{...P,minutenPerEenheid:B}:P)})}})]},_))}),u.jsx("h2",{"data-loc":"client/src/pages/Vakprofiel.tsx:123",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Correctiefactoren"}),u.jsx("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:124",className:"bg-card rounded-xl border border-border p-3 mb-4 space-y-2",children:g.correctiefactoren.map((E,_)=>u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:126",className:"grid grid-cols-[1fr_90px] gap-2 items-center",children:[u.jsx("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:127",className:"text-sm",children:E.naam}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:128",className:"flex items-center gap-1",children:[u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:129",type:"number",value:Math.round(E.factor*100),onChange:O=>{const B=Number(O.target.value)/100;x({...g,correctiefactoren:g.correctiefactoren.map((P,R)=>R===_?{...P,factor:B}:P)})}}),u.jsx("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:137",className:"text-xs text-muted-foreground",children:"%"})]})]},_))}),u.jsx("h2",{"data-loc":"client/src/pages/Vakprofiel.tsx:143",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Standaardposten & richtprijzen"}),u.jsx("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:144",className:"text-xs text-muted-foreground mb-2",children:"Bijv. richtprijs binnenschilderwerk per m² en voorrijkosten. Pas aan naar je eigen tarieven."}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:145",className:"bg-card rounded-xl border border-border p-3 mb-4 space-y-2",children:[g.standaardPosten.map((E,_)=>u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:147",className:"grid grid-cols-[1fr_80px_60px] gap-2 items-center",children:[u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:148",className:"text-sm",value:E.omschrijving,onChange:O=>x({...g,standaardPosten:g.standaardPosten.map((B,P)=>
390P===_?{...B,omschrijving:O.target.value}:B)})}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:153",className:"flex items-center gap-1",children:[u.jsx("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:154",className:"text-xs text-muted-foreground",children:"â¬"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:155",type:"number",value:E.standaardPrijs,onChange:O=>x({...g,standaardPosten:g.standaardPosten.map((B,P)=>P===_?{...B,standaardPrijs:Number(O.target.value)}:B)})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:161",className:"flex items-center gap-1",children:[u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:162",type:"number",value:E.btw,onChange:O=>x({...g,standaardPosten:g.standaardPosten.map((B,P)=>P===_?{...B,btw:Number(O.target.value)}:B)})}),u.jsx("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:167",className:"text-xs text-muted-foreground",children:"%"})]})]},_)),u.jsxs(je,{"data-loc":"client/src/pages/Vakprofiel.tsx:171",variant:"outline",size:"sm",className:"bg-card w-full",onClick:()=>x({...g,standaardPosten:[...g.standaardPosten,{omschrijving:"Nieuwe post",eenheid:"stuk",standaardPrijs:0,btw:g.standaardBtw}]}),children:[u.jsx(cl,{"data-loc":"client/src/pages/Vakprofiel.tsx:177",className:"h-4 w-4 mr-1"})," Post toevoegen"]})]}),u.jsx("h2",{"data-loc":"client/src/pages/Vakprofiel.tsx:181",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Regie- / margelek-posten"}),u.jsx("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:182",className:"text-xs text-muted-foreground mb-2",children:"Houtrot en extra voorbereiding gaan op nacalculatie (regie), zodat ze niet in een vaste prijs verdwijnen."}),u.jsx("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:183",className:"bg-card rounded-xl border border-border p-3 mb-4 space-y-2",children:g.margelekPosten.map((E,_)=>u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:185",className:"grid grid-cols-[1fr_80px] gap-2 items-center",children:[u.jsxs("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:186",className:"text-sm truncate",children:[E.omschrijving,E.regie?" (regie)":""]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:187",className:"flex items-center gap-1",children:[u.jsx("span",{"data-loc":"client/src/pages/Vakprofiel.tsx:188",className:"text-xs text-muted-foreground",children:"â¬"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:189",type:"number",value:E.standaardPrijs,onChange:O=>x({...g,margelekPosten:g.margelekPosten.map((B,P)=>P===_?{...B,standaardPrijs:Number(O.target.value)}:B)})})]})]},_))}),u.jsx("h2",{"data-loc":"client/src/pages/Vakprofiel.tsx:199",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Verf & btw"}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:200",className:"bg-card rounded-xl border border-border p-4 mb-4 grid grid-cols-2 gap-3",children:[u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:201",children:[u.jsx(Be,{"data-loc":"client/src/pages/Vakprofiel.tsx:202",className:"text-xs",children:"Verfverbruik (l/m²)"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:203",type:"number",step:"0.01",value:g.verfVerbruikPerM2,onChange:E=>x({...g,verfVerbruikPerM2:Number(E.target.value)})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:205",children:[u.jsx(Be,{"data-loc":"client/src/pages/Vakprofiel.tsx:206",className:"text-xs",children:"Standaard btw (%)"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:207",type:"number",value:g.standaardBtw,onChange:E=>x({...g,standaardBtw:Number(E.target.value)})})]})]}),u.jsxs(je,{"data-loc":"client/src/pages/Vakprofiel.tsx:211",className:"w-full mb-6",onClick:w,disabled:c.isPending,children:[c.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/Vakprofiel.tsx:212",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(_1,{"data-loc":"client/src/pages/Vakprofiel.tsx:212",className:"h-4 w-4 mr-1"})," Schilderprofiel opslaan"]})]}),u.jsx("h2",{"data-loc":"client/src/pages/Vakprofiel.tsx:218",className:"font-semibold mb-2 text-sm text-muted-foreground uppercase tracking-wide",children:"Materialen & prijslijst"}),u.jsx("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:219",className:"text-xs text-muted-foreground mb-3",children:"Inkoop met korting, verkoop met opslag. De app toont je marge per artikel."}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:221",className:"bg-card rounded-xl border border-border p-4 mb-4 space-y-3",children:[u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:222",placeholder:"Artikelnaam (bijv. Sigma S2U Allure 2,5L)",value:j.naam,onCh
390ange:E=>C({...j,naam:E.target.value})}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:223",className:"grid grid-cols-2 gap-2",children:[u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:224",children:[u.jsx(Be,{"data-loc":"client/src/pages/Vakprofiel.tsx:224",className:"text-xs",children:"Groep"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:224",value:j.groep,onChange:E=>C({...j,groep:E.target.value}),placeholder:"Verf"})]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:225",children:[u.jsx(Be,{"data-loc":"client/src/pages/Vakprofiel.tsx:225",className:"text-xs",children:"Eenheid"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:225",value:j.eenheid,onChange:E=>C({...j,eenheid:E.target.value})})]})]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:227",className:"grid grid-cols-3 gap-2",children:[u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:228",children:[u.jsx(Be,{"data-loc":"client/src/pages/Vakprofiel.tsx:228",className:"text-xs",children:"Bruto â¬"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:228",type:"number",value:j.brutoPrijs||"",onChange:E=>C({...j,brutoPrijs:Number(E.target.value)})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:229",children:[u.jsx(Be,{"data-loc":"client/src/pages/Vakprofiel.tsx:229",className:"text-xs",children:"Korting %"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:229",type:"number",value:j.kortingPct||"",onChange:E=>C({...j,kortingPct:Number(E.target.value)})})]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:230",children:[u.jsx(Be,{"data-loc":"client/src/pages/Vakprofiel.tsx:230",className:"text-xs",children:"Opslag %"}),u.jsx(De,{"data-loc":"client/src/pages/Vakprofiel.tsx:230",type:"number",value:j.markupPct||"",onChange:E=>C({...j,markupPct:Number(E.target.value)})})]})]}),j.brutoPrijs>0&&u.jsxs("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:233",className:"text-xs text-muted-foreground",children:["Verkoop ",$e(op(j.brutoPrijs,j.kortingPct,j.markupPct).verkoop)," · marge ",$e(op(j.brutoPrijs,j.kortingPct,j.markupPct).marge)]}),u.jsxs(je,{"data-loc":"client/src/pages/Vakprofiel.tsx:237",className:"w-full",onClick:S,disabled:d.isPending,children:[d.isPending?u.jsx(Qe,{"data-loc":"client/src/pages/Vakprofiel.tsx:238",className:"h-4 w-4 mr-1 animate-spin"}):u.jsx(cl,{"data-loc":"client/src/pages/Vakprofiel.tsx:238",className:"h-4 w-4 mr-1"})," Artikel toevoegen"]})]}),u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:242",className:"space-y-2 mb-4",children:[(l||[]).length===0&&u.jsx("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:243",className:"text-sm text-muted-foreground text-center py-3",children:"Nog geen artikelen in je prijslijst."}),(l||[]).map(E=>{const _=op(Number(E.brutoPrijs),Number(E.kortingPct),Number(E.markupPct));return u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:247",className:"bg-card rounded-xl border border-border p-3 flex items-center justify-between",children:[u.jsxs("div",{"data-loc":"client/src/pages/Vakprofiel.tsx:248",className:"min-w-0",children:[u.jsx("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:249",className:"text-sm font-medium truncate",children:E.naam}),u.jsxs("p",{"data-loc":"client/src/pages/Vakprofiel.tsx:250",className:"text-xs text-muted-foreground",children:[E.groep?`${E.groep} · `:"","inkoop ",$e(_.netto)," â verkoop ",$e(_.verkoop)," · marge ",$e(_.marge)]})]}),u.jsx(je,{"data-loc":"client/src/pages/Vakprofiel.tsx:254",variant:"ghost",size:"icon",onClick:()=>T(E.id),children:u.jsx(Pi,{"data-loc":"client/src/pages/Vakprofiel.tsx:254",className:"h-4 w-4 text-destructive"})})]},E.id)})]})]})}function oD(){return u.jsxs(s3,{"data-loc":"client/src/App.tsx:22",children:[u.jsx(Qt,{"data-loc":"client/src/App.tsx:23",path:"/",component:o3}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:24",path:"/app",component:d3}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:25",path:"/app/klussen",component:hT}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:26",path:"/app/klussen/nieuw",component:DO}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:27",path:"/app/klussen/:id",component:OO}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:28",path:"/app/klanten",component:RO}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:29",path:"/app/klanten/:id",component:MO}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:30",path:"/app/facturen",component:zO}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:31",path:"/app/facturen/:id",component:rD}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:32",path:"/app/werkbon",component:T0}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:33",path:"/app/werkbon/:klusId",component:T0}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:34",path:"/app/instellingen",component:lD}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:35",path:"/app/vakprofiel",component:iD}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:36",path:"/404",component:Hy}),u.jsx(Qt,{"data-loc":"client/src/App.tsx:37",component:Hy})]})}function cD(){return u.jsx(r3,{"data-loc":"client/src/App.tsx:44",children:u.jsx(i3,{"data-loc":"client/src/App.tsx:45",defaultTheme:"light",children:u.jsxs(u5,{"data-loc":"client/src/App.tsx:46",children:[u.jsx(x4,{"data-loc":"client/src/App.tsx:47",richColors:!0,position:"top-center"}),u.jsx(oD,{"data-loc":"client/src/App.tsx:48"})]})})})}const Oc=new xN,O2=n=>{!(n instanceof sl)||typeof window>"u"||!(n.message===tC)||(window.location.href=tl())};Oc.getQueryCache().subscribe(n=>{if(n.type==="updated"&&n.action.type==="error"){const a=n.query.state.error;O2(a),console.error("[API Query Error]",a)}});Oc.getMutationCache().subscribe(n=>{if(n.type==="updated"&&n.action.type==="error"){const a=n.mutation.state.error;O2(a),console.error("[API Mutation Error]",a)}});const uD=be.createClient({links:[AE({url:"/api/trpc",transformer:ka,fetch(n,a){return globalThis.fetch(n,{...a??{},credentials:"include"})}})]});iC.createRoot(document.getElementById("root")).render(u.jsx(be.Provider,{"data-loc":"client/src/main.tsx:56",client:uD,queryClient:Oc,children:u.jsx(bN,{"data-loc":"client/src/main.tsx:57",client:Oc,children:u.jsx(cD,{"data-loc":"client/src/main.tsx:58"})})}));
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.