@vizzly-testing/cli 0.23.2 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.js +5 -0
- package/dist/plugin-loader.js +10 -5
- package/dist/reporter/reporter-bundle.css +1 -1
- package/dist/reporter/reporter-bundle.iife.js +71 -63
- package/dist/server/handlers/api-handler.js +24 -4
- package/dist/server/handlers/tdd-handler.js +12 -9
- package/dist/tdd/core/region-coverage.js +115 -0
- package/dist/tdd/core/signature.js +3 -1
- package/dist/tdd/metadata/region-metadata.js +93 -0
- package/dist/tdd/services/comparison-service.js +40 -8
- package/dist/tdd/services/region-service.js +75 -0
- package/dist/tdd/tdd-service.js +70 -8
- package/package.json +3 -3
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
(function(){"use strict";function _m(n,s){for(var c=0;c<s.length;c++){const o=s[c];if(typeof o!="string"&&!Array.isArray(o)){for(const d in o)if(d!=="default"&&!(d in n)){const m=Object.getOwnPropertyDescriptor(o,d);m&&Object.defineProperty(n,d,m.get?m:{enumerable:!0,get:()=>o[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function ao(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var cr={exports:{}},bn={};var lo;function Lm(){if(lo)return bn;lo=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var x in d)x!=="key"&&(m[x]=d[x])}else m=d;return d=m.ref,{$$typeof:n,type:o,key:v,ref:d!==void 0?d:null,props:m}}return bn.Fragment=s,bn.jsx=c,bn.jsxs=c,bn}var no;function Um(){return no||(no=1,cr.exports=Lm()),cr.exports}var r=Um(),Cl=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(){}},km={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},Bm=class{#e=km;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,s){return this.#e.setTimeout(n,s)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,s){return this.#e.setInterval(n,s)}clearInterval(n){this.#e.clearInterval(n)}},Ja=new Bm;function Hm(n){setTimeout(n,0)}var Fa=typeof window>"u"||"Deno"in globalThis;function ft(){}function qm(n,s){return typeof n=="function"?n(s):n}function or(n){return typeof n=="number"&&n>=0&&n!==1/0}function so(n,s){return Math.max(n+(s||0)-Date.now(),0)}function ja(n,s){return typeof n=="function"?n(s):n}function Dt(n,s){return typeof n=="function"?n(s):n}function io(n,s){const{type:c="all",exact:o,fetchStatus:d,predicate:m,queryKey:v,stale:x}=n;if(v){if(o){if(s.queryHash!==fr(v,s.options))return!1}else if(!yn(s.queryKey,v))return!1}if(c!=="all"){const b=s.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof x=="boolean"&&s.isStale()!==x||d&&d!==s.state.fetchStatus||m&&!m(s))}function ro(n,s){const{exact:c,status:o,predicate:d,mutationKey:m}=n;if(m){if(!s.options.mutationKey)return!1;if(c){if(Wa(s.options.mutationKey)!==Wa(m))return!1}else if(!yn(s.options.mutationKey,m))return!1}return!(o&&s.state.status!==o||d&&!d(s))}function fr(n,s){return(s?.queryKeyHashFn||Wa)(n)}function Wa(n){return JSON.stringify(n,(s,c)=>dr(c)?Object.keys(c).sort().reduce((o,d)=>(o[d]=c[d],o),{}):c)}function yn(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(c=>yn(n[c],s[c])):!1}var Qm=Object.prototype.hasOwnProperty;function uo(n,s,c=0){if(n===s)return n;if(c>500)return s;const o=co(n)&&co(s);if(!o&&!(dr(n)&&dr(s)))return s;const m=(o?n:Object.keys(n)).length,v=o?s:Object.keys(s),x=v.length,b=o?new Array(x):{};let g=0;for(let y=0;y<x;y++){const N=o?y:v[y],E=n[N],_=s[N];if(E===_){b[N]=E,(o?y<m:Qm.call(n,N))&&g++;continue}if(E===null||_===null||typeof E!="object"||typeof _!="object"){b[N]=_;continue}const M=uo(E,_,c+1);b[N]=M,M===E&&g++}return m===x&&g===m?n:b}function Ns(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const c in n)if(n[c]!==s[c])return!1;return!0}function co(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function dr(n){if(!oo(n))return!1;const s=n.constructor;if(s===void 0)return!0;const c=s.prototype;return!(!oo(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function oo(n){return Object.prototype.toString.call(n)==="[object Object]"}function Vm(n){return new Promise(s=>{Ja.setTimeout(s,n)})}function hr(n,s,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,s):c.structuralSharing!==!1?uo(n,s):s}function Ym(n,s,c=0){const o=[...n,s];return c&&o.length>c?o.slice(1):o}function Gm(n,s,c=0){const o=[s,...n];return c&&o.length>c?o.slice(0,-1):o}var mr=Symbol();function fo(n,s){return!n.queryFn&&s?.initialPromise?()=>s.initialPromise:!n.queryFn||n.queryFn===mr?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function vr(n,s){return typeof n=="function"?n(...s):!!n}function Zm(n,s,c){let o=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??=s(),o||(o=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),n}var Xm=class extends Cl{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!Fa&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},pr=new Xm;function gr(){let n,s;const c=new Promise((d,m)=>{n=d,s=m});c.status="pending",c.catch(()=>{});function o(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{o({status:"fulfilled",value:d}),n(d)},c.reject=d=>{o({status:"rejected",reason:d}),s(d)},c}var Km=Hm;function $m(){let n=[],s=0,c=x=>{x()},o=x=>{x()},d=Km;const m=x=>{s?n.push(x):d(()=>{c(x)})},v=()=>{const x=n;n=[],x.length&&d(()=>{o(()=>{x.forEach(b=>{c(b)})})})};return{batch:x=>{let b;s++;try{b=x()}finally{s--,s||v()}return b},batchCalls:x=>(...b)=>{m(()=>{x(...b)})},schedule:m,setNotifyFunction:x=>{c=x},setBatchNotifyFunction:x=>{o=x},setScheduler:x=>{d=x}}}var Ie=$m(),Jm=class extends Cl{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!Fa&&window.addEventListener){const s=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},Es=new Jm;function Fm(n){return Math.min(1e3*2**n,3e4)}function ho(n){return(n??"online")==="online"?Es.isOnline():!0}var xr=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function mo(n){let s=!1,c=0,o;const d=gr(),m=()=>d.status!=="pending",v=L=>{if(!m()){const Q=new xr(L);E(Q),n.onCancel?.(Q)}},x=()=>{s=!0},b=()=>{s=!1},g=()=>pr.isFocused()&&(n.networkMode==="always"||Es.isOnline())&&n.canRun(),y=()=>ho(n.networkMode)&&n.canRun(),N=L=>{m()||(o?.(),d.resolve(L))},E=L=>{m()||(o?.(),d.reject(L))},_=()=>new Promise(L=>{o=Q=>{(m()||g())&&L(Q)},n.onPause?.()}).then(()=>{o=void 0,m()||n.onContinue?.()}),M=()=>{if(m())return;let L;const Q=c===0?n.initialPromise:void 0;try{L=Q??n.fn()}catch(B){L=Promise.reject(B)}Promise.resolve(L).then(N).catch(B=>{if(m())return;const F=n.retry??(Fa?0:3),X=n.retryDelay??Fm,I=typeof X=="function"?X(c,B):X,pe=F===!0||typeof F=="number"&&c<F||typeof F=="function"&&F(c,B);if(s||!pe){E(B);return}c++,n.onFail?.(c,B),Vm(I).then(()=>g()?void 0:_()).then(()=>{s?E(B):M()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(o?.(),d),cancelRetry:x,continueRetry:b,canStart:y,start:()=>(y()?M():_().then(M),d)}}var vo=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),or(this.gcTime)&&(this.#e=Ja.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Fa?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Ja.clearTimeout(this.#e),this.#e=void 0)}},Wm=class extends vo{#e;#t;#a;#n;#l;#i;#r;constructor(n){super(),this.#r=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#a=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=xo(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=xo(this.options);s.data!==void 0&&(this.setState(go(s.data,s.dataUpdatedAt)),this.#e=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,s){const c=hr(this.state.data,n,this.options);return this.#s({data:c,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),c}setState(n,s){this.#s({type:"setState",state:n,setStateOptions:s})}cancel(n){const s=this.#l?.promise;return this.#l?.cancel(n),s?s.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Dt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>ja(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:!so(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.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(s=>s!==n),this.observers.length||(this.#l&&(this.#r?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,s){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const x=this.observers.find(b=>b.options.queryFn);x&&this.setOptions(x.options)}const c=new AbortController,o=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},d=()=>{const x=fo(this.options,s),g=(()=>{const y={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(y),y})();return this.#r=!1,this.options.persister?this.options.persister(x,g,this):x(g)},v=(()=>{const x={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:d};return o(x),x})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#s({type:"fetch",meta:v.fetchOptions?.meta}),this.#l=mo({initialPromise:s?.initialPromise,fn:v.fetchFn,onCancel:x=>{x instanceof xr&&x.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(x,b)=>{this.#s({type:"failed",failureCount:x,error:b})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const x=await this.#l.start();if(x===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(x),this.#a.config.onSuccess?.(x,this),this.#a.config.onSettled?.(x,this.state.error,this),x}catch(x){if(x instanceof xr){if(x.silent)return this.#l.promise;if(x.revert){if(this.state.data===void 0)throw x;return this.state.data}}throw this.#s({type:"error",error:x}),this.#a.config.onError?.(x,this),this.#a.config.onSettled?.(this.state.data,x,this),x}finally{this.scheduleGc()}}#s(n){const s=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...po(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...go(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const d=n.error;return{...c,error:d,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=s(this.state),Ie.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function po(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ho(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function go(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function xo(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,c=s!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Im=class extends Cl{constructor(n,s){super(),this.options=s,this.#e=n,this.#s=null,this.#r=gr(),this.bindMethods(),this.setOptions(s)}#e;#t=void 0;#a=void 0;#n=void 0;#l;#i;#r;#s;#v;#d;#h;#c;#o;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),bo(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return br(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return br(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const s=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),s._defaulted&&!Ns(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&yo(this.#t,c,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||ja(this.options.staleTime,this.#t)!==ja(s.staleTime,this.#t))&&this.#p();const d=this.#g();o&&(this.#t!==c||Dt(this.options.enabled,this.#t)!==Dt(s.enabled,this.#t)||d!==this.#u)&&this.#x(d)}getOptimisticResult(n){const s=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(s,n);return ev(this,c)&&(this.#n=c,this.#i=this.options,this.#l=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,s){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,s);return c.fetch().then(()=>this.createResult(c,s))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#w();let s=this.#t.fetch(this.options,n);return n?.throwOnError||(s=s.catch(ft)),s}#p(){this.#y();const n=ja(this.options.staleTime,this.#t);if(Fa||this.#n.isStale||!or(n))return;const c=so(this.#n.dataUpdatedAt,n)+1;this.#c=Ja.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#x(n){this.#j(),this.#u=n,!(Fa||Dt(this.options.enabled,this.#t)===!1||!or(this.#u)||this.#u===0)&&(this.#o=Ja.setInterval(()=>{(this.options.refetchIntervalInBackground||pr.isFocused())&&this.#f()},this.#u))}#b(){this.#p(),this.#x(this.#g())}#y(){this.#c&&(Ja.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Ja.clearInterval(this.#o),this.#o=void 0)}createResult(n,s){const c=this.#t,o=this.options,d=this.#n,m=this.#l,v=this.#i,b=n!==c?n.state:this.#a,{state:g}=n;let y={...g},N=!1,E;if(s._optimisticResults){const ee=this.hasListeners(),ge=!ee&&bo(n,s),De=ee&&yo(n,c,s,o);(ge||De)&&(y={...y,...po(g.data,n.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:_,errorUpdatedAt:M,status:L}=y;E=y.data;let Q=!1;if(s.placeholderData!==void 0&&E===void 0&&L==="pending"){let ee;d?.isPlaceholderData&&s.placeholderData===v?.placeholderData?(ee=d.data,Q=!0):ee=typeof s.placeholderData=="function"?s.placeholderData(this.#h?.state.data,this.#h):s.placeholderData,ee!==void 0&&(L="success",E=hr(d?.data,ee,s),N=!0)}if(s.select&&E!==void 0&&!Q)if(d&&E===m?.data&&s.select===this.#v)E=this.#d;else try{this.#v=s.select,E=s.select(E),E=hr(d?.data,E,s),this.#d=E,this.#s=null}catch(ee){this.#s=ee}this.#s&&(_=this.#s,E=this.#d,M=Date.now(),L="error");const B=y.fetchStatus==="fetching",F=L==="pending",X=L==="error",I=F&&B,pe=E!==void 0,V={status:L,fetchStatus:y.fetchStatus,isPending:F,isSuccess:L==="success",isError:X,isInitialLoading:I,isLoading:I,data:E,dataUpdatedAt:y.dataUpdatedAt,error:_,errorUpdatedAt:M,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>b.dataUpdateCount||y.errorUpdateCount>b.errorUpdateCount,isFetching:B,isRefetching:B&&!F,isLoadingError:X&&!pe,isPaused:y.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:X&&pe,isStale:yr(n,s),refetch:this.refetch,promise:this.#r,isEnabled:Dt(s.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const ee=V.data!==void 0,ge=V.status==="error"&&!ee,De=re=>{ge?re.reject(V.error):ee&&re.resolve(V.data)},Te=()=>{const re=this.#r=V.promise=gr();De(re)},we=this.#r;switch(we.status){case"pending":n.queryHash===c.queryHash&&De(we);break;case"fulfilled":(ge||V.data!==we.value)&&Te();break;case"rejected":(!ge||V.error!==we.reason)&&Te();break}}return V}updateResult(){const n=this.#n,s=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#i=this.options,this.#l.data!==void 0&&(this.#h=this.#t),Ns(s,n))return;this.#n=s;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!this.#m.size)return!0;const m=new Set(d??this.#m);return this.options.throwOnError&&m.add("error"),Object.keys(this.#n).some(v=>{const x=v;return this.#n[x]!==n[x]&&m.has(x)})};this.#S({listeners:c()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const s=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(s?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(n){Ie.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Pm(n,s){return Dt(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function bo(n,s){return Pm(n,s)||n.state.data!==void 0&&br(n,s,s.refetchOnMount)}function br(n,s,c){if(Dt(s.enabled,n)!==!1&&ja(s.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&yr(n,s)}return!1}function yo(n,s,c,o){return(n!==s||Dt(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&yr(n,c)}function yr(n,s){return Dt(s.enabled,n)!==!1&&n.isStaleByTime(ja(s.staleTime,n))}function ev(n,s){return!Ns(n.getCurrentResult(),s)}function jo(n){return{onFetch:(s,c)=>{const o=s.options,d=s.fetchOptions?.meta?.fetchMore?.direction,m=s.state.data?.pages||[],v=s.state.data?.pageParams||[];let x={pages:[],pageParams:[]},b=0;const g=async()=>{let y=!1;const N=M=>{Zm(M,()=>s.signal,()=>y=!0)},E=fo(s.options,s.fetchOptions),_=async(M,L,Q)=>{if(y)return Promise.reject();if(L==null&&M.pages.length)return Promise.resolve(M);const F=(()=>{const he={client:s.client,queryKey:s.queryKey,pageParam:L,direction:Q?"backward":"forward",meta:s.options.meta};return N(he),he})(),X=await E(F),{maxPages:I}=s.options,pe=Q?Gm:Ym;return{pages:pe(M.pages,X,I),pageParams:pe(M.pageParams,L,I)}};if(d&&m.length){const M=d==="backward",L=M?tv:wo,Q={pages:m,pageParams:v},B=L(o,Q);x=await _(Q,B,M)}else{const M=n??m.length;do{const L=b===0?v[0]??o.initialPageParam:wo(o,x);if(b>0&&L==null)break;x=await _(x,L),b++}while(b<M)}return x};s.options.persister?s.fetchFn=()=>s.options.persister?.(g,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},c):s.fetchFn=g}}}function wo(n,{pages:s,pageParams:c}){const o=s.length-1;return s.length>0?n.getNextPageParam(s[o],s,c[o],c):void 0}function tv(n,{pages:s,pageParams:c}){return s.length>0?n.getPreviousPageParam?.(s[0],s,c[0],c):void 0}var av=class extends vo{#e;#t;#a;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#a=n.mutationCache,this.#t=[],this.state=n.state||So(),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.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(s=>s!==n),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const s=()=>{this.#l({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=mo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(m,v)=>{this.#l({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#l({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const o=this.state.status==="pending",d=!this.#n.canStart();try{if(o)s();else{this.#l({type:"pending",variables:n,isPaused:d}),await this.#a.config.onMutate?.(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#l({type:"pending",context:v,variables:n,isPaused:d})}const m=await this.#n.start();return await this.#a.config.onSuccess?.(m,n,this.state.context,this,c),await this.options.onSuccess?.(m,n,this.state.context,c),await this.#a.config.onSettled?.(m,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(m,null,n,this.state.context,c),this.#l({type:"success",data:m}),m}catch(m){try{await this.#a.config.onError?.(m,n,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onError?.(m,n,this.state.context,c)}catch(v){Promise.reject(v)}try{await this.#a.config.onSettled?.(void 0,m,this.state.variables,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onSettled?.(void 0,m,n,this.state.context,c)}catch(v){Promise.reject(v)}throw this.#l({type:"error",error:m}),m}finally{this.#a.runNext(this)}}#l(n){const s=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,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{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Ie.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#a.notify({mutation:this,type:"updated",action:n})})}};function So(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var lv=class extends Cl{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,s,c){const o=new av({client:n,mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(s),state:c});return this.add(o),o}add(n){this.#e.add(n);const s=Cs(n);if(typeof s=="string"){const c=this.#t.get(s);c?c.push(n):this.#t.set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const s=Cs(n);if(typeof s=="string"){const c=this.#t.get(s);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=Cs(n);if(typeof s=="string"){const o=this.#t.get(s)?.find(d=>d.state.status==="pending");return!o||o===n}else return!0}runNext(n){const s=Cs(n);return typeof s=="string"?this.#t.get(s)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ie.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const s={exact:!0,...n};return this.getAll().find(c=>ro(s,c))}findAll(n={}){return this.getAll().filter(s=>ro(n,s))}notify(n){Ie.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return Ie.batch(()=>Promise.all(n.map(s=>s.continue().catch(ft))))}};function Cs(n){return n.options.scope?.id}var nv=class extends Cl{#e;#t=void 0;#a;#n;constructor(n,s){super(),this.#e=n,this.setOptions(s),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const s=this.options;this.options=this.#e.defaultMutationOptions(n),Ns(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&Wa(s.mutationKey)!==Wa(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(n){this.#l(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#i()}mutate(n,s){return this.#n=s,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(n)}#l(){const n=this.#a?.state??So();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Ie.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(n?.type==="success"){try{this.#n.onSuccess?.(n.data,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(n.data,null,s,c,o)}catch(d){Promise.reject(d)}}else if(n?.type==="error"){try{this.#n.onError?.(n.error,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(void 0,n.error,s,c,o)}catch(d){Promise.reject(d)}}}this.listeners.forEach(s=>{s(this.#t)})})}},sv=class extends Cl{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,s,c){const o=s.queryKey,d=s.queryHash??fr(o,s);let m=this.get(d);return m||(m=new Wm({client:n,queryKey:o,queryHash:d,options:n.defaultQueryOptions(s),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(m)),m}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=this.#e.get(n.queryHash);s&&(n.destroy(),s===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ie.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const s={exact:!0,...n};return this.getAll().find(c=>io(s,c))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(c=>io(n,c)):s}notify(n){Ie.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},iv=class{#e;#t;#a;#n;#l;#i;#r;#s;constructor(n={}){this.#e=n.queryCache||new sv,this.#t=n.mutationCache||new lv,this.#a=n.defaultOptions||{},this.#n=new Map,this.#l=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=pr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Es.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),c=this.#e.build(this,s),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(ja(s.staleTime,c))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:s,state:c})=>{const o=c.data;return[s,o]})}setQueryData(n,s,c){const o=this.defaultQueryOptions({queryKey:n}),m=this.#e.get(o.queryHash)?.state.data,v=qm(s,m);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,s,c){return Ie.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,s,c)]))}getQueryState(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state}removeQueries(n){const s=this.#e;Ie.batch(()=>{s.findAll(n).forEach(c=>{s.remove(c)})})}resetQueries(n,s){const c=this.#e;return Ie.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const c={revert:!0,...s},o=Ie.batch(()=>this.#e.findAll(n).map(d=>d.cancel(c)));return Promise.all(o).then(ft).catch(ft)}invalidateQueries(n,s={}){return Ie.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},s)))}refetchQueries(n,s={}){const c={...s,cancelRefetch:s.cancelRefetch??!0},o=Ie.batch(()=>this.#e.findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,c);return c.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(o).then(ft)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const c=this.#e.build(this,s);return c.isStaleByTime(ja(s.staleTime,c))?c.fetch(s):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ft).catch(ft)}fetchInfiniteQuery(n){return n.behavior=jo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ft).catch(ft)}ensureInfiniteQueryData(n){return n.behavior=jo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Es.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,s){this.#n.set(Wa(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...this.#n.values()],c={};return s.forEach(o=>{yn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,s){this.#l.set(Wa(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...this.#l.values()],c={};return s.forEach(o=>{yn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const s={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=fr(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===mr&&(s.enabled=!1),s}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},jr={exports:{}},ae={};var No;function rv(){if(No)return ae;No=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),E=Symbol.iterator;function _(S){return S===null||typeof S!="object"?null:(S=E&&S[E]||S["@@iterator"],typeof S=="function"?S:null)}var M={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,Q={};function B(S,H,Y){this.props=S,this.context=H,this.refs=Q,this.updater=Y||M}B.prototype.isReactComponent={},B.prototype.setState=function(S,H){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,H,"setState")},B.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function F(){}F.prototype=B.prototype;function X(S,H,Y){this.props=S,this.context=H,this.refs=Q,this.updater=Y||M}var I=X.prototype=new F;I.constructor=X,L(I,B.prototype),I.isPureReactComponent=!0;var pe=Array.isArray;function he(){}var V={H:null,A:null,T:null,S:null},ee=Object.prototype.hasOwnProperty;function ge(S,H,Y){var $=Y.ref;return{$$typeof:n,type:S,key:H,ref:$!==void 0?$:null,props:Y}}function De(S,H){return ge(S.type,H,S.props)}function Te(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function we(S){var H={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(Y){return H[Y]})}var re=/\/+/g;function Se(S,H){return typeof S=="object"&&S!==null&&S.key!=null?we(""+S.key):H.toString(36)}function _e(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(he,he):(S.status="pending",S.then(function(H){S.status==="pending"&&(S.status="fulfilled",S.value=H)},function(H){S.status==="pending"&&(S.status="rejected",S.reason=H)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function R(S,H,Y,$,te){var le=typeof S;(le==="undefined"||le==="boolean")&&(S=null);var ie=!1;if(S===null)ie=!0;else switch(le){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(S.$$typeof){case n:case s:ie=!0;break;case y:return ie=S._init,R(ie(S._payload),H,Y,$,te)}}if(ie)return te=te(S),ie=$===""?"."+Se(S,0):$,pe(te)?(Y="",ie!=null&&(Y=ie.replace(re,"$&/")+"/"),R(te,H,Y,"",function(G){return G})):te!=null&&(Te(te)&&(te=De(te,Y+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(re,"$&/")+"/")+ie)),H.push(te)),1;ie=0;var at=$===""?".":$+":";if(pe(S))for(var Ne=0;Ne<S.length;Ne++)$=S[Ne],le=at+Se($,Ne),ie+=R($,H,Y,le,te);else if(Ne=_(S),typeof Ne=="function")for(S=Ne.call(S),Ne=0;!($=S.next()).done;)$=$.value,le=at+Se($,Ne++),ie+=R($,H,Y,le,te);else if(le==="object"){if(typeof S.then=="function")return R(_e(S),H,Y,$,te);throw H=String(S),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return ie}function q(S,H,Y){if(S==null)return S;var $=[],te=0;return R(S,$,"","",function(le){return H.call(Y,le,te++)}),$}function Z(S){if(S._status===-1){var H=S._result;H=H(),H.then(function(Y){(S._status===0||S._status===-1)&&(S._status=1,S._result=Y)},function(Y){(S._status===0||S._status===-1)&&(S._status=2,S._result=Y)}),S._status===-1&&(S._status=0,S._result=H)}if(S._status===1)return S._result.default;throw S._result}var ue=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},xe={map:q,forEach:function(S,H,Y){q(S,function(){H.apply(this,arguments)},Y)},count:function(S){var H=0;return q(S,function(){H++}),H},toArray:function(S){return q(S,function(H){return H})||[]},only:function(S){if(!Te(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=N,ae.Children=xe,ae.Component=B,ae.Fragment=c,ae.Profiler=d,ae.PureComponent=X,ae.StrictMode=o,ae.Suspense=b,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return V.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,H,Y){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var $=L({},S.props),te=S.key;if(H!=null)for(le in H.key!==void 0&&(te=""+H.key),H)!ee.call(H,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&H.ref===void 0||($[le]=H[le]);var le=arguments.length-2;if(le===1)$.children=Y;else if(1<le){for(var ie=Array(le),at=0;at<le;at++)ie[at]=arguments[at+2];$.children=ie}return ge(S.type,te,$)},ae.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ae.createElement=function(S,H,Y){var $,te={},le=null;if(H!=null)for($ in H.key!==void 0&&(le=""+H.key),H)ee.call(H,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(te[$]=H[$]);var ie=arguments.length-2;if(ie===1)te.children=Y;else if(1<ie){for(var at=Array(ie),Ne=0;Ne<ie;Ne++)at[Ne]=arguments[Ne+2];te.children=at}if(S&&S.defaultProps)for($ in ie=S.defaultProps,ie)te[$]===void 0&&(te[$]=ie[$]);return ge(S,le,te)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:x,render:S}},ae.isValidElement=Te,ae.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:Z}},ae.memo=function(S,H){return{$$typeof:g,type:S,compare:H===void 0?null:H}},ae.startTransition=function(S){var H=V.T,Y={};V.T=Y;try{var $=S(),te=V.S;te!==null&&te(Y,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(he,ue)}catch(le){ue(le)}finally{H!==null&&Y.types!==null&&(H.types=Y.types),V.T=H}},ae.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},ae.use=function(S){return V.H.use(S)},ae.useActionState=function(S,H,Y){return V.H.useActionState(S,H,Y)},ae.useCallback=function(S,H){return V.H.useCallback(S,H)},ae.useContext=function(S){return V.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,H){return V.H.useDeferredValue(S,H)},ae.useEffect=function(S,H){return V.H.useEffect(S,H)},ae.useEffectEvent=function(S){return V.H.useEffectEvent(S)},ae.useId=function(){return V.H.useId()},ae.useImperativeHandle=function(S,H,Y){return V.H.useImperativeHandle(S,H,Y)},ae.useInsertionEffect=function(S,H){return V.H.useInsertionEffect(S,H)},ae.useLayoutEffect=function(S,H){return V.H.useLayoutEffect(S,H)},ae.useMemo=function(S,H){return V.H.useMemo(S,H)},ae.useOptimistic=function(S,H){return V.H.useOptimistic(S,H)},ae.useReducer=function(S,H,Y){return V.H.useReducer(S,H,Y)},ae.useRef=function(S){return V.H.useRef(S)},ae.useState=function(S){return V.H.useState(S)},ae.useSyncExternalStore=function(S,H,Y){return V.H.useSyncExternalStore(S,H,Y)},ae.useTransition=function(){return V.H.useTransition()},ae.version="19.2.3",ae}var Eo;function As(){return Eo||(Eo=1,jr.exports=rv()),jr.exports}var h=As();const Ia=ao(h),uv=_m({__proto__:null,default:Ia},[h]);var Co=h.createContext(void 0),vt=n=>{const s=h.useContext(Co);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},cv=({client:n,children:s})=>(h.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(Co.Provider,{value:n,children:s})),Ao=h.createContext(!1),ov=()=>h.useContext(Ao);Ao.Provider;function fv(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var dv=h.createContext(fv()),hv=()=>h.useContext(dv),mv=(n,s,c)=>{const o=c?.state.error&&typeof n.throwOnError=="function"?vr(n.throwOnError,[c.state.error,c]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||o)&&(s.isReset()||(n.retryOnMount=!1))},vv=n=>{h.useEffect(()=>{n.clearReset()},[n])},pv=({result:n,errorResetBoundary:s,throwOnError:c,query:o,suspense:d})=>n.isError&&!s.isReset()&&!n.isFetching&&o&&(d&&n.data===void 0||vr(c,[n.error,o])),gv=n=>{if(n.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...d)=>c(o(...d)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},xv=(n,s)=>n.isLoading&&n.isFetching&&!s,bv=(n,s)=>n?.suspense&&s.isPending,Oo=(n,s,c)=>s.fetchOptimistic(n).catch(()=>{c.clearReset()});function yv(n,s,c){const o=ov(),d=hv(),m=vt(),v=m.defaultQueryOptions(n);m.getDefaultOptions().queries?._experimental_beforeQuery?.(v);const x=m.getQueryCache().get(v.queryHash);v._optimisticResults=o?"isRestoring":"optimistic",gv(v),mv(v,d,x),vv(d);const b=!m.getQueryCache().get(v.queryHash),[g]=h.useState(()=>new s(m,v)),y=g.getOptimisticResult(v),N=!o&&n.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(E=>{const _=N?g.subscribe(Ie.batchCalls(E)):ft;return g.updateResult(),_},[g,N]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),h.useEffect(()=>{g.setOptions(v)},[v,g]),bv(v,y))throw Oo(v,g,d);if(pv({result:y,errorResetBoundary:d,throwOnError:v.throwOnError,query:x,suspense:v.suspense}))throw y.error;return m.getDefaultOptions().queries?._experimental_afterQuery?.(v,y),v.experimental_prefetchInRender&&!Fa&&xv(y,o)&&(b?Oo(v,g,d):x?.promise)?.catch(ft).finally(()=>{g.updateResult()}),v.notifyOnChangeProps?y:g.trackResult(y)}function Al(n,s){return yv(n,Im)}function Gt(n,s){const c=vt(),[o]=h.useState(()=>new nv(c,n));h.useEffect(()=>{o.setOptions(n)},[o,n]);const d=h.useSyncExternalStore(h.useCallback(v=>o.subscribe(Ie.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m=h.useCallback((v,x)=>{o.mutate(v,x).catch(ft)},[o]);if(d.error&&vr(o.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}var wr={exports:{}},jn={},Sr={exports:{}},Nr={};var Mo;function jv(){return Mo||(Mo=1,(function(n){function s(R,q){var Z=R.length;R.push(q);e:for(;0<Z;){var ue=Z-1>>>1,xe=R[ue];if(0<d(xe,q))R[ue]=q,R[Z]=xe,Z=ue;else break e}}function c(R){return R.length===0?null:R[0]}function o(R){if(R.length===0)return null;var q=R[0],Z=R.pop();if(Z!==q){R[0]=Z;e:for(var ue=0,xe=R.length,S=xe>>>1;ue<S;){var H=2*(ue+1)-1,Y=R[H],$=H+1,te=R[$];if(0>d(Y,Z))$<xe&&0>d(te,Y)?(R[ue]=te,R[$]=Z,ue=$):(R[ue]=Y,R[H]=Z,ue=H);else if($<xe&&0>d(te,Z))R[ue]=te,R[$]=Z,ue=$;else break e}}return q}function d(R,q){var Z=R.sortIndex-q.sortIndex;return Z!==0?Z:R.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,x=v.now();n.unstable_now=function(){return v.now()-x}}var b=[],g=[],y=1,N=null,E=3,_=!1,M=!1,L=!1,Q=!1,B=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function I(R){for(var q=c(g);q!==null;){if(q.callback===null)o(g);else if(q.startTime<=R)o(g),q.sortIndex=q.expirationTime,s(b,q);else break;q=c(g)}}function pe(R){if(L=!1,I(R),!M)if(c(b)!==null)M=!0,he||(he=!0,we());else{var q=c(g);q!==null&&_e(pe,q.startTime-R)}}var he=!1,V=-1,ee=5,ge=-1;function De(){return Q?!0:!(n.unstable_now()-ge<ee)}function Te(){if(Q=!1,he){var R=n.unstable_now();ge=R;var q=!0;try{e:{M=!1,L&&(L=!1,F(V),V=-1),_=!0;var Z=E;try{t:{for(I(R),N=c(b);N!==null&&!(N.expirationTime>R&&De());){var ue=N.callback;if(typeof ue=="function"){N.callback=null,E=N.priorityLevel;var xe=ue(N.expirationTime<=R);if(R=n.unstable_now(),typeof xe=="function"){N.callback=xe,I(R),q=!0;break t}N===c(b)&&o(b),I(R)}else o(b);N=c(b)}if(N!==null)q=!0;else{var S=c(g);S!==null&&_e(pe,S.startTime-R),q=!1}}break e}finally{N=null,E=Z,_=!1}q=void 0}}finally{q?we():he=!1}}}var we;if(typeof X=="function")we=function(){X(Te)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,Se=re.port2;re.port1.onmessage=Te,we=function(){Se.postMessage(null)}}else we=function(){B(Te,0)};function _e(R,q){V=B(function(){R(n.unstable_now())},q)}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(R){R.callback=null},n.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ee=0<R?Math.floor(1e3/R):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(R){switch(E){case 1:case 2:case 3:var q=3;break;default:q=E}var Z=E;E=q;try{return R()}finally{E=Z}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(R,q){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=E;E=R;try{return q()}finally{E=Z}},n.unstable_scheduleCallback=function(R,q,Z){var ue=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ue+Z:ue):Z=ue,R){case 1:var xe=-1;break;case 2:xe=250;break;case 5:xe=1073741823;break;case 4:xe=1e4;break;default:xe=5e3}return xe=Z+xe,R={id:y++,callback:q,priorityLevel:R,startTime:Z,expirationTime:xe,sortIndex:-1},Z>ue?(R.sortIndex=Z,s(g,R),c(b)===null&&R===c(g)&&(L?(F(V),V=-1):L=!0,_e(pe,Z-ue))):(R.sortIndex=xe,s(b,R),M||_||(M=!0,he||(he=!0,we()))),R},n.unstable_shouldYield=De,n.unstable_wrapCallback=function(R){var q=E;return function(){var Z=E;E=q;try{return R.apply(this,arguments)}finally{E=Z}}}})(Nr)),Nr}var zo;function wv(){return zo||(zo=1,Sr.exports=jv()),Sr.exports}var Er={exports:{}},ot={};var To;function Sv(){if(To)return ot;To=1;var n=As();function s(b){var g="https://react.dev/errors/"+b;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+b+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,g,y){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:N==null?null:""+N,children:b,containerInfo:g,implementation:y}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function x(b,g){if(b==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ot.createPortal=function(b,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(s(299));return m(b,g,null,y)},ot.flushSync=function(b){var g=v.T,y=o.p;try{if(v.T=null,o.p=2,b)return b()}finally{v.T=g,o.p=y,o.d.f()}},ot.preconnect=function(b,g){typeof b=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(b,g))},ot.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},ot.preinit=function(b,g){if(typeof b=="string"&&g&&typeof g.as=="string"){var y=g.as,N=x(y,g.crossOrigin),E=typeof g.integrity=="string"?g.integrity:void 0,_=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?o.d.S(b,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:N,integrity:E,fetchPriority:_}):y==="script"&&o.d.X(b,{crossOrigin:N,integrity:E,fetchPriority:_,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ot.preinitModule=function(b,g){if(typeof b=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=x(g.as,g.crossOrigin);o.d.M(b,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(b)},ot.preload=function(b,g){if(typeof b=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,N=x(y,g.crossOrigin);o.d.L(b,y,{crossOrigin:N,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})}},ot.preloadModule=function(b,g){if(typeof b=="string")if(g){var y=x(g.as,g.crossOrigin);o.d.m(b,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(b)},ot.requestFormReset=function(b){o.d.r(b)},ot.unstable_batchedUpdates=function(b,g){return b(g)},ot.useFormState=function(b,g,y){return v.H.useFormState(b,g,y)},ot.useFormStatus=function(){return v.H.useHostTransitionStatus()},ot.version="19.2.3",ot}var Ro;function Do(){if(Ro)return Er.exports;Ro=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(s){console.error(s)}}return n(),Er.exports=Sv(),Er.exports}var _o;function Nv(){if(_o)return jn;_o=1;var n=wv(),s=As(),c=Do();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(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 x(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 b(e){if(m(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var u=i.alternate;if(u===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===a)return b(i),e;if(u===l)return b(i),t;u=u.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=u;else{for(var f=!1,p=i.child;p;){if(p===a){f=!0,a=i,l=u;break}if(p===l){f=!0,l=i,a=u;break}p=p.sibling}if(!f){for(p=u.child;p;){if(p===a){f=!0,a=u,l=i;break}if(p===l){f=!0,l=u,a=i;break}p=p.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,E=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),X=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),he=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),ee=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),De=Symbol.for("react.memo_cache_sentinel"),Te=Symbol.iterator;function we(e){return e===null||typeof e!="object"?null:(e=Te&&e[Te]||e["@@iterator"],typeof e=="function"?e:null)}var re=Symbol.for("react.client.reference");function Se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case B:return"Profiler";case Q:return"StrictMode";case pe:return"Suspense";case he:return"SuspenseList";case ge:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case M:return"Portal";case X:return e.displayName||"Context";case F:return(e._context.displayName||"Context")+".Consumer";case I:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:Se(e.type)||"Memo";case ee:t=e._payload,e=e._init;try{return Se(e(t))}catch{}}return null}var _e=Array.isArray,R=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ue=[],xe=-1;function S(e){return{current:e}}function H(e){0>xe||(e.current=ue[xe],ue[xe]=null,xe--)}function Y(e,t){xe++,ue[xe]=e.current,e.current=t}var $=S(null),te=S(null),le=S(null),ie=S(null);function at(e,t){switch(Y(le,t),Y(te,e),Y($,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lm(t),e=nm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H($),Y($,e)}function Ne(){H($),H(te),H(le)}function G(e){e.memoizedState!==null&&Y(ie,e);var t=$.current,a=nm(t,e.type);t!==a&&(Y(te,e),Y($,a))}function Ae(e){te.current===e&&(H($),H(te)),ie.current===e&&(H(ie),ys._currentValue=Z)}var Ke,il;function rl(e){if(Ke===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||"",il=-1<a.stack.indexOf(`
|
|
1
|
+
(function(){"use strict";function Lm(n,s){for(var c=0;c<s.length;c++){const o=s[c];if(typeof o!="string"&&!Array.isArray(o)){for(const d in o)if(d!=="default"&&!(d in n)){const m=Object.getOwnPropertyDescriptor(o,d);m&&Object.defineProperty(n,d,m.get?m:{enumerable:!0,get:()=>o[d]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function ao(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var or={exports:{}},yn={};var lo;function km(){if(lo)return yn;lo=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function c(o,d,m){var v=null;if(m!==void 0&&(v=""+m),d.key!==void 0&&(v=""+d.key),"key"in d){m={};for(var g in d)g!=="key"&&(m[g]=d[g])}else m=d;return d=m.ref,{$$typeof:n,type:o,key:v,ref:d!==void 0?d:null,props:m}}return yn.Fragment=s,yn.jsx=c,yn.jsxs=c,yn}var no;function Um(){return no||(no=1,or.exports=km()),or.exports}var r=Um(),Al=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(){}},Bm={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},Hm=class{#e=Bm;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,s){return this.#e.setTimeout(n,s)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,s){return this.#e.setInterval(n,s)}clearInterval(n){this.#e.clearInterval(n)}},Pa=new Hm;function qm(n){setTimeout(n,0)}var el=typeof window>"u"||"Deno"in globalThis;function ft(){}function Qm(n,s){return typeof n=="function"?n(s):n}function fr(n){return typeof n=="number"&&n>=0&&n!==1/0}function so(n,s){return Math.max(n+(s||0)-Date.now(),0)}function Sa(n,s){return typeof n=="function"?n(s):n}function _t(n,s){return typeof n=="function"?n(s):n}function io(n,s){const{type:c="all",exact:o,fetchStatus:d,predicate:m,queryKey:v,stale:g}=n;if(v){if(o){if(s.queryHash!==dr(v,s.options))return!1}else if(!jn(s.queryKey,v))return!1}if(c!=="all"){const b=s.isActive();if(c==="active"&&!b||c==="inactive"&&b)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||d&&d!==s.state.fetchStatus||m&&!m(s))}function ro(n,s){const{exact:c,status:o,predicate:d,mutationKey:m}=n;if(m){if(!s.options.mutationKey)return!1;if(c){if(tl(s.options.mutationKey)!==tl(m))return!1}else if(!jn(s.options.mutationKey,m))return!1}return!(o&&s.state.status!==o||d&&!d(s))}function dr(n,s){return(s?.queryKeyHashFn||tl)(n)}function tl(n){return JSON.stringify(n,(s,c)=>hr(c)?Object.keys(c).sort().reduce((o,d)=>(o[d]=c[d],o),{}):c)}function jn(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(c=>jn(n[c],s[c])):!1}var Vm=Object.prototype.hasOwnProperty;function uo(n,s,c=0){if(n===s)return n;if(c>500)return s;const o=co(n)&&co(s);if(!o&&!(hr(n)&&hr(s)))return s;const m=(o?n:Object.keys(n)).length,v=o?s:Object.keys(s),g=v.length,b=o?new Array(g):{};let x=0;for(let y=0;y<g;y++){const N=o?y:v[y],E=n[N],_=s[N];if(E===_){b[N]=E,(o?y<m:Vm.call(n,N))&&x++;continue}if(E===null||_===null||typeof E!="object"||typeof _!="object"){b[N]=_;continue}const A=uo(E,_,c+1);b[N]=A,A===E&&x++}return m===g&&x===m?n:b}function Es(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const c in n)if(n[c]!==s[c])return!1;return!0}function co(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function hr(n){if(!oo(n))return!1;const s=n.constructor;if(s===void 0)return!0;const c=s.prototype;return!(!oo(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function oo(n){return Object.prototype.toString.call(n)==="[object Object]"}function Ym(n){return new Promise(s=>{Pa.setTimeout(s,n)})}function mr(n,s,c){return typeof c.structuralSharing=="function"?c.structuralSharing(n,s):c.structuralSharing!==!1?uo(n,s):s}function Gm(n,s,c=0){const o=[...n,s];return c&&o.length>c?o.slice(1):o}function Zm(n,s,c=0){const o=[s,...n];return c&&o.length>c?o.slice(0,-1):o}var vr=Symbol();function fo(n,s){return!n.queryFn&&s?.initialPromise?()=>s.initialPromise:!n.queryFn||n.queryFn===vr?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function pr(n,s){return typeof n=="function"?n(...s):!!n}function Xm(n,s,c){let o=!1,d;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(d??=s(),o||(o=!0,d.aborted?c():d.addEventListener("abort",c,{once:!0})),d)}),n}var Km=class extends Al{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!el&&window.addEventListener){const s=()=>n();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(s=>{s(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},xr=new Km;function gr(){let n,s;const c=new Promise((d,m)=>{n=d,s=m});c.status="pending",c.catch(()=>{});function o(d){Object.assign(c,d),delete c.resolve,delete c.reject}return c.resolve=d=>{o({status:"fulfilled",value:d}),n(d)},c.reject=d=>{o({status:"rejected",reason:d}),s(d)},c}var $m=qm;function Jm(){let n=[],s=0,c=g=>{g()},o=g=>{g()},d=$m;const m=g=>{s?n.push(g):d(()=>{c(g)})},v=()=>{const g=n;n=[],g.length&&d(()=>{o(()=>{g.forEach(b=>{c(b)})})})};return{batch:g=>{let b;s++;try{b=g()}finally{s--,s||v()}return b},batchCalls:g=>(...b)=>{m(()=>{g(...b)})},schedule:m,setNotifyFunction:g=>{c=g},setBatchNotifyFunction:g=>{o=g},setScheduler:g=>{d=g}}}var Ie=Jm(),Fm=class extends Al{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!el&&window.addEventListener){const s=()=>n(!0),c=()=>n(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(c=>{c(n)}))}isOnline(){return this.#e}},Cs=new Fm;function Wm(n){return Math.min(1e3*2**n,3e4)}function ho(n){return(n??"online")==="online"?Cs.isOnline():!0}var br=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function mo(n){let s=!1,c=0,o;const d=gr(),m=()=>d.status!=="pending",v=D=>{if(!m()){const Q=new br(D);E(Q),n.onCancel?.(Q)}},g=()=>{s=!0},b=()=>{s=!1},x=()=>xr.isFocused()&&(n.networkMode==="always"||Cs.isOnline())&&n.canRun(),y=()=>ho(n.networkMode)&&n.canRun(),N=D=>{m()||(o?.(),d.resolve(D))},E=D=>{m()||(o?.(),d.reject(D))},_=()=>new Promise(D=>{o=Q=>{(m()||x())&&D(Q)},n.onPause?.()}).then(()=>{o=void 0,m()||n.onContinue?.()}),A=()=>{if(m())return;let D;const Q=c===0?n.initialPromise:void 0;try{D=Q??n.fn()}catch(H){D=Promise.reject(H)}Promise.resolve(D).then(N).catch(H=>{if(m())return;const V=n.retry??(el?0:3),$=n.retryDelay??Wm,Z=typeof $=="function"?$(c,H):$,ne=V===!0||typeof V=="number"&&c<V||typeof V=="function"&&V(c,H);if(s||!ne){E(H);return}c++,n.onFail?.(c,H),Ym(Z).then(()=>x()?void 0:_()).then(()=>{s?E(H):A()})})};return{promise:d,status:()=>d.status,cancel:v,continue:()=>(o?.(),d),cancelRetry:g,continueRetry:b,canStart:y,start:()=>(y()?A():_().then(A),d)}}var vo=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fr(this.gcTime)&&(this.#e=Pa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(el?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Pa.clearTimeout(this.#e),this.#e=void 0)}},Im=class extends vo{#e;#t;#a;#n;#l;#i;#r;constructor(n){super(),this.#r=!1,this.#i=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#n=n.client,this.#a=this.#n.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=go(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#i,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=go(this.options);s.data!==void 0&&(this.setState(xo(s.data,s.dataUpdatedAt)),this.#e=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,s){const c=mr(this.state.data,n,this.options);return this.#s({data:c,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),c}setState(n,s){this.#s({type:"setState",state:n,setStateOptions:s})}cancel(n){const s=this.#l?.promise;return this.#l?.cancel(n),s?s.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>_t(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===vr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Sa(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:!so(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.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(s=>s!==n),this.observers.length||(this.#l&&(this.#r?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(n,s){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const g=this.observers.find(b=>b.options.queryFn);g&&this.setOptions(g.options)}const c=new AbortController,o=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},d=()=>{const g=fo(this.options,s),x=(()=>{const y={client:this.#n,queryKey:this.queryKey,meta:this.meta};return o(y),y})();return this.#r=!1,this.options.persister?this.options.persister(g,x,this):g(x)},v=(()=>{const g={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:d};return o(g),g})();this.options.behavior?.onFetch(v,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==v.fetchOptions?.meta)&&this.#s({type:"fetch",meta:v.fetchOptions?.meta}),this.#l=mo({initialPromise:s?.initialPromise,fn:v.fetchFn,onCancel:g=>{g instanceof br&&g.revert&&this.setState({...this.#t,fetchStatus:"idle"}),c.abort()},onFail:(g,b)=>{this.#s({type:"failed",failureCount:g,error:b})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0});try{const g=await this.#l.start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#a.config.onSuccess?.(g,this),this.#a.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof br){if(g.silent)return this.#l.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#s({type:"error",error:g}),this.#a.config.onError?.(g,this),this.#a.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#s(n){const s=c=>{switch(n.type){case"failed":return{...c,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...po(c.data,this.options),fetchMeta:n.meta??null};case"success":const o={...c,...xo(n.data,n.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?o:void 0,o;case"error":const d=n.error;return{...c,error:d,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...n.state}}};this.state=s(this.state),Ie.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function po(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ho(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function xo(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function go(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,c=s!==void 0,o=c?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:c?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var Pm=class extends Al{constructor(n,s){super(),this.options=s,this.#e=n,this.#s=null,this.#r=gr(),this.bindMethods(),this.setOptions(s)}#e;#t=void 0;#a=void 0;#n=void 0;#l;#i;#r;#s;#v;#d;#h;#c;#o;#u;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),bo(this.#t,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yr(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yr(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#y(),this.#j(),this.#t.removeObserver(this)}setOptions(n){const s=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof _t(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#w(),this.#t.setOptions(this.options),s._defaulted&&!Es(this.options,s)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const o=this.hasListeners();o&&yo(this.#t,c,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#t!==c||_t(this.options.enabled,this.#t)!==_t(s.enabled,this.#t)||Sa(this.options.staleTime,this.#t)!==Sa(s.staleTime,this.#t))&&this.#p();const d=this.#x();o&&(this.#t!==c||_t(this.options.enabled,this.#t)!==_t(s.enabled,this.#t)||d!==this.#u)&&this.#g(d)}getOptimisticResult(n){const s=this.#e.getQueryCache().build(this.#e,n),c=this.createResult(s,n);return tv(this,c)&&(this.#n=c,this.#i=this.options,this.#l=this.#t.state),c}getCurrentResult(){return this.#n}trackResult(n,s){return new Proxy(n,{get:(c,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#r.status==="pending"&&this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,o))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const s=this.#e.defaultQueryOptions(n),c=this.#e.getQueryCache().build(this.#e,s);return c.fetch().then(()=>this.createResult(c,s))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#f(n){this.#w();let s=this.#t.fetch(this.options,n);return n?.throwOnError||(s=s.catch(ft)),s}#p(){this.#y();const n=Sa(this.options.staleTime,this.#t);if(el||this.#n.isStale||!fr(n))return;const c=so(this.#n.dataUpdatedAt,n)+1;this.#c=Pa.setTimeout(()=>{this.#n.isStale||this.updateResult()},c)}#x(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#j(),this.#u=n,!(el||_t(this.options.enabled,this.#t)===!1||!fr(this.#u)||this.#u===0)&&(this.#o=Pa.setInterval(()=>{(this.options.refetchIntervalInBackground||xr.isFocused())&&this.#f()},this.#u))}#b(){this.#p(),this.#g(this.#x())}#y(){this.#c&&(Pa.clearTimeout(this.#c),this.#c=void 0)}#j(){this.#o&&(Pa.clearInterval(this.#o),this.#o=void 0)}createResult(n,s){const c=this.#t,o=this.options,d=this.#n,m=this.#l,v=this.#i,b=n!==c?n.state:this.#a,{state:x}=n;let y={...x},N=!1,E;if(s._optimisticResults){const P=this.hasListeners(),se=!P&&bo(n,s),ze=P&&yo(n,c,s,o);(se||ze)&&(y={...y,...po(x.data,n.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:_,errorUpdatedAt:A,status:D}=y;E=y.data;let Q=!1;if(s.placeholderData!==void 0&&E===void 0&&D==="pending"){let P;d?.isPlaceholderData&&s.placeholderData===v?.placeholderData?(P=d.data,Q=!0):P=typeof s.placeholderData=="function"?s.placeholderData(this.#h?.state.data,this.#h):s.placeholderData,P!==void 0&&(D="success",E=mr(d?.data,P,s),N=!0)}if(s.select&&E!==void 0&&!Q)if(d&&E===m?.data&&s.select===this.#v)E=this.#d;else try{this.#v=s.select,E=s.select(E),E=mr(d?.data,E,s),this.#d=E,this.#s=null}catch(P){this.#s=P}this.#s&&(_=this.#s,E=this.#d,A=Date.now(),D="error");const H=y.fetchStatus==="fetching",V=D==="pending",$=D==="error",Z=V&&H,ne=E!==void 0,Y={status:D,fetchStatus:y.fetchStatus,isPending:V,isSuccess:D==="success",isError:$,isInitialLoading:Z,isLoading:Z,data:E,dataUpdatedAt:y.dataUpdatedAt,error:_,errorUpdatedAt:A,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>b.dataUpdateCount||y.errorUpdateCount>b.errorUpdateCount,isFetching:H,isRefetching:H&&!V,isLoadingError:$&&!ne,isPaused:y.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:$&&ne,isStale:jr(n,s),refetch:this.refetch,promise:this.#r,isEnabled:_t(s.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const P=Y.data!==void 0,se=Y.status==="error"&&!P,ze=_e=>{se?_e.reject(Y.error):P&&_e.resolve(Y.data)},Re=()=>{const _e=this.#r=Y.promise=gr();ze(_e)},ve=this.#r;switch(ve.status){case"pending":n.queryHash===c.queryHash&&ze(ve);break;case"fulfilled":(se||Y.data!==ve.value)&&Re();break;case"rejected":(!se||Y.error!==ve.reason)&&Re();break}}return Y}updateResult(){const n=this.#n,s=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#i=this.options,this.#l.data!==void 0&&(this.#h=this.#t),Es(s,n))return;this.#n=s;const c=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!this.#m.size)return!0;const m=new Set(d??this.#m);return this.options.throwOnError&&m.add("error"),Object.keys(this.#n).some(v=>{const g=v;return this.#n[g]!==n[g]&&m.has(g)})};this.#S({listeners:c()})}#w(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const s=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(s?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#S(n){Ie.batch(()=>{n.listeners&&this.listeners.forEach(s=>{s(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ev(n,s){return _t(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function bo(n,s){return ev(n,s)||n.state.data!==void 0&&yr(n,s,s.refetchOnMount)}function yr(n,s,c){if(_t(s.enabled,n)!==!1&&Sa(s.staleTime,n)!=="static"){const o=typeof c=="function"?c(n):c;return o==="always"||o!==!1&&jr(n,s)}return!1}function yo(n,s,c,o){return(n!==s||_t(o.enabled,n)===!1)&&(!c.suspense||n.state.status!=="error")&&jr(n,c)}function jr(n,s){return _t(s.enabled,n)!==!1&&n.isStaleByTime(Sa(s.staleTime,n))}function tv(n,s){return!Es(n.getCurrentResult(),s)}function jo(n){return{onFetch:(s,c)=>{const o=s.options,d=s.fetchOptions?.meta?.fetchMore?.direction,m=s.state.data?.pages||[],v=s.state.data?.pageParams||[];let g={pages:[],pageParams:[]},b=0;const x=async()=>{let y=!1;const N=A=>{Xm(A,()=>s.signal,()=>y=!0)},E=fo(s.options,s.fetchOptions),_=async(A,D,Q)=>{if(y)return Promise.reject();if(D==null&&A.pages.length)return Promise.resolve(A);const V=(()=>{const oe={client:s.client,queryKey:s.queryKey,pageParam:D,direction:Q?"backward":"forward",meta:s.options.meta};return N(oe),oe})(),$=await E(V),{maxPages:Z}=s.options,ne=Q?Zm:Gm;return{pages:ne(A.pages,$,Z),pageParams:ne(A.pageParams,D,Z)}};if(d&&m.length){const A=d==="backward",D=A?av:wo,Q={pages:m,pageParams:v},H=D(o,Q);g=await _(Q,H,A)}else{const A=n??m.length;do{const D=b===0?v[0]??o.initialPageParam:wo(o,g);if(b>0&&D==null)break;g=await _(g,D),b++}while(b<A)}return g};s.options.persister?s.fetchFn=()=>s.options.persister?.(x,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},c):s.fetchFn=x}}}function wo(n,{pages:s,pageParams:c}){const o=s.length-1;return s.length>0?n.getNextPageParam(s[o],s,c[o],c):void 0}function av(n,{pages:s,pageParams:c}){return s.length>0?n.getPreviousPageParam?.(s[0],s,c[0],c):void 0}var lv=class extends vo{#e;#t;#a;#n;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#a=n.mutationCache,this.#t=[],this.state=n.state||So(),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.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(s=>s!==n),this.scheduleGc(),this.#a.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#a.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const s=()=>{this.#l({type:"continue"})},c={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#n=mo({fn:()=>this.options.mutationFn?this.options.mutationFn(n,c):Promise.reject(new Error("No mutationFn found")),onFail:(m,v)=>{this.#l({type:"failed",failureCount:m,error:v})},onPause:()=>{this.#l({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#a.canRun(this)});const o=this.state.status==="pending",d=!this.#n.canStart();try{if(o)s();else{this.#l({type:"pending",variables:n,isPaused:d}),this.#a.config.onMutate&&await this.#a.config.onMutate(n,this,c);const v=await this.options.onMutate?.(n,c);v!==this.state.context&&this.#l({type:"pending",context:v,variables:n,isPaused:d})}const m=await this.#n.start();return await this.#a.config.onSuccess?.(m,n,this.state.context,this,c),await this.options.onSuccess?.(m,n,this.state.context,c),await this.#a.config.onSettled?.(m,null,this.state.variables,this.state.context,this,c),await this.options.onSettled?.(m,null,n,this.state.context,c),this.#l({type:"success",data:m}),m}catch(m){try{await this.#a.config.onError?.(m,n,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onError?.(m,n,this.state.context,c)}catch(v){Promise.reject(v)}try{await this.#a.config.onSettled?.(void 0,m,this.state.variables,this.state.context,this,c)}catch(v){Promise.reject(v)}try{await this.options.onSettled?.(void 0,m,n,this.state.context,c)}catch(v){Promise.reject(v)}throw this.#l({type:"error",error:m}),m}finally{this.#a.runNext(this)}}#l(n){const s=c=>{switch(n.type){case"failed":return{...c,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,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{...c,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:n.error,failureCount:c.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Ie.batch(()=>{this.#t.forEach(c=>{c.onMutationUpdate(n)}),this.#a.notify({mutation:this,type:"updated",action:n})})}};function So(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nv=class extends Al{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,s,c){const o=new lv({client:n,mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(s),state:c});return this.add(o),o}add(n){this.#e.add(n);const s=As(n);if(typeof s=="string"){const c=this.#t.get(s);c?c.push(n):this.#t.set(s,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const s=As(n);if(typeof s=="string"){const c=this.#t.get(s);if(c)if(c.length>1){const o=c.indexOf(n);o!==-1&&c.splice(o,1)}else c[0]===n&&this.#t.delete(s)}}this.notify({type:"removed",mutation:n})}canRun(n){const s=As(n);if(typeof s=="string"){const o=this.#t.get(s)?.find(d=>d.state.status==="pending");return!o||o===n}else return!0}runNext(n){const s=As(n);return typeof s=="string"?this.#t.get(s)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Ie.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const s={exact:!0,...n};return this.getAll().find(c=>ro(s,c))}findAll(n={}){return this.getAll().filter(s=>ro(n,s))}notify(n){Ie.batch(()=>{this.listeners.forEach(s=>{s(n)})})}resumePausedMutations(){const n=this.getAll().filter(s=>s.state.isPaused);return Ie.batch(()=>Promise.all(n.map(s=>s.continue().catch(ft))))}};function As(n){return n.options.scope?.id}var sv=class extends Al{#e;#t=void 0;#a;#n;constructor(n,s){super(),this.#e=n,this.setOptions(s),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const s=this.options;this.options=this.#e.defaultMutationOptions(n),Es(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&tl(s.mutationKey)!==tl(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(n){this.#l(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#l(),this.#i()}mutate(n,s){return this.#n=s,this.#a?.removeObserver(this),this.#a=this.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(n)}#l(){const n=this.#a?.state??So();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Ie.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(n?.type==="success"){try{this.#n.onSuccess?.(n.data,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(n.data,null,s,c,o)}catch(d){Promise.reject(d)}}else if(n?.type==="error"){try{this.#n.onError?.(n.error,s,c,o)}catch(d){Promise.reject(d)}try{this.#n.onSettled?.(void 0,n.error,s,c,o)}catch(d){Promise.reject(d)}}}this.listeners.forEach(s=>{s(this.#t)})})}},iv=class extends Al{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,s,c){const o=s.queryKey,d=s.queryHash??dr(o,s);let m=this.get(d);return m||(m=new Im({client:n,queryKey:o,queryHash:d,options:n.defaultQueryOptions(s),state:c,defaultOptions:n.getQueryDefaults(o)}),this.add(m)),m}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const s=this.#e.get(n.queryHash);s&&(n.destroy(),s===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ie.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const s={exact:!0,...n};return this.getAll().find(c=>io(s,c))}findAll(n={}){const s=this.getAll();return Object.keys(n).length>0?s.filter(c=>io(n,c)):s}notify(n){Ie.batch(()=>{this.listeners.forEach(s=>{s(n)})})}onFocus(){Ie.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ie.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},rv=class{#e;#t;#a;#n;#l;#i;#r;#s;constructor(n={}){this.#e=n.queryCache||new iv,this.#t=n.mutationCache||new nv,this.#a=n.defaultOptions||{},this.#n=new Map,this.#l=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#r=xr.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Cs.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#r?.(),this.#r=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),c=this.#e.build(this,s),o=c.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&c.isStaleByTime(Sa(s.staleTime,c))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:s,state:c})=>{const o=c.data;return[s,o]})}setQueryData(n,s,c){const o=this.defaultQueryOptions({queryKey:n}),m=this.#e.get(o.queryHash)?.state.data,v=Qm(s,m);if(v!==void 0)return this.#e.build(this,o).setData(v,{...c,manual:!0})}setQueriesData(n,s,c){return Ie.batch(()=>this.#e.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,s,c)]))}getQueryState(n){const s=this.defaultQueryOptions({queryKey:n});return this.#e.get(s.queryHash)?.state}removeQueries(n){const s=this.#e;Ie.batch(()=>{s.findAll(n).forEach(c=>{s.remove(c)})})}resetQueries(n,s){const c=this.#e;return Ie.batch(()=>(c.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const c={revert:!0,...s},o=Ie.batch(()=>this.#e.findAll(n).map(d=>d.cancel(c)));return Promise.all(o).then(ft).catch(ft)}invalidateQueries(n,s={}){return Ie.batch(()=>(this.#e.findAll(n).forEach(c=>{c.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},s)))}refetchQueries(n,s={}){const c={...s,cancelRefetch:s.cancelRefetch??!0},o=Ie.batch(()=>this.#e.findAll(n).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,c);return c.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(o).then(ft)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const c=this.#e.build(this,s);return c.isStaleByTime(Sa(s.staleTime,c))?c.fetch(s):Promise.resolve(c.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ft).catch(ft)}fetchInfiniteQuery(n){return n.behavior=jo(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ft).catch(ft)}ensureInfiniteQueryData(n){return n.behavior=jo(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Cs.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,s){this.#n.set(tl(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...this.#n.values()],c={};return s.forEach(o=>{jn(n,o.queryKey)&&Object.assign(c,o.defaultOptions)}),c}setMutationDefaults(n,s){this.#l.set(tl(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...this.#l.values()],c={};return s.forEach(o=>{jn(n,o.mutationKey)&&Object.assign(c,o.defaultOptions)}),c}defaultQueryOptions(n){if(n._defaulted)return n;const s={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=dr(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===vr&&(s.enabled=!1),s}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},wr={exports:{}},ae={};var No;function uv(){if(No)return ae;No=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),E=Symbol.iterator;function _(S){return S===null||typeof S!="object"?null:(S=E&&S[E]||S["@@iterator"],typeof S=="function"?S:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,Q={};function H(S,U,G){this.props=S,this.context=U,this.refs=Q,this.updater=G||A}H.prototype.isReactComponent={},H.prototype.setState=function(S,U){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,U,"setState")},H.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function V(){}V.prototype=H.prototype;function $(S,U,G){this.props=S,this.context=U,this.refs=Q,this.updater=G||A}var Z=$.prototype=new V;Z.constructor=$,D(Z,H.prototype),Z.isPureReactComponent=!0;var ne=Array.isArray;function oe(){}var Y={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function se(S,U,G){var J=G.ref;return{$$typeof:n,type:S,key:U,ref:J!==void 0?J:null,props:G}}function ze(S,U){return se(S.type,U,S.props)}function Re(S){return typeof S=="object"&&S!==null&&S.$$typeof===n}function ve(S){var U={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(G){return U[G]})}var _e=/\/+/g;function ot(S,U){return typeof S=="object"&&S!==null&&S.key!=null?ve(""+S.key):U.toString(36)}function ue(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(oe,oe):(S.status="pending",S.then(function(U){S.status==="pending"&&(S.status="fulfilled",S.value=U)},function(U){S.status==="pending"&&(S.status="rejected",S.reason=U)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,U,G,J,te){var re=typeof S;(re==="undefined"||re==="boolean")&&(S=null);var be=!1;if(S===null)be=!0;else switch(re){case"bigint":case"string":case"number":be=!0;break;case"object":switch(S.$$typeof){case n:case s:be=!0;break;case y:return be=S._init,T(be(S._payload),U,G,J,te)}}if(be)return te=te(S),be=J===""?"."+ot(S,0):J,ne(te)?(G="",be!=null&&(G=be.replace(_e,"$&/")+"/"),T(te,U,G,"",function(Ca){return Ca})):te!=null&&(Re(te)&&(te=ze(te,G+(te.key==null||S&&S.key===te.key?"":(""+te.key).replace(_e,"$&/")+"/")+be)),U.push(te)),1;be=0;var Ge=J===""?".":J+":";if(ne(S))for(var we=0;we<S.length;we++)J=S[we],re=Ge+ot(J,we),be+=T(J,U,G,re,te);else if(we=_(S),typeof we=="function")for(S=we.call(S),we=0;!(J=S.next()).done;)J=J.value,re=Ge+ot(J,we++),be+=T(J,U,G,re,te);else if(re==="object"){if(typeof S.then=="function")return T(ue(S),U,G,J,te);throw U=String(S),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return be}function q(S,U,G){if(S==null)return S;var J=[],te=0;return T(S,J,"","",function(re){return U.call(G,re,te++)}),J}function X(S){if(S._status===-1){var U=S._result;U=U(),U.then(function(G){(S._status===0||S._status===-1)&&(S._status=1,S._result=G)},function(G){(S._status===0||S._status===-1)&&(S._status=2,S._result=G)}),S._status===-1&&(S._status=0,S._result=U)}if(S._status===1)return S._result.default;throw S._result}var ce=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ge={map:q,forEach:function(S,U,G){q(S,function(){U.apply(this,arguments)},G)},count:function(S){var U=0;return q(S,function(){U++}),U},toArray:function(S){return q(S,function(U){return U})||[]},only:function(S){if(!Re(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return ae.Activity=N,ae.Children=ge,ae.Component=H,ae.Fragment=c,ae.Profiler=d,ae.PureComponent=$,ae.StrictMode=o,ae.Suspense=b,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ae.__COMPILER_RUNTIME={__proto__:null,c:function(S){return Y.H.useMemoCache(S)}},ae.cache=function(S){return function(){return S.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(S,U,G){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var J=D({},S.props),te=S.key;if(U!=null)for(re in U.key!==void 0&&(te=""+U.key),U)!P.call(U,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&U.ref===void 0||(J[re]=U[re]);var re=arguments.length-2;if(re===1)J.children=G;else if(1<re){for(var be=Array(re),Ge=0;Ge<re;Ge++)be[Ge]=arguments[Ge+2];J.children=be}return se(S.type,te,J)},ae.createContext=function(S){return S={$$typeof:v,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:m,_context:S},S},ae.createElement=function(S,U,G){var J,te={},re=null;if(U!=null)for(J in U.key!==void 0&&(re=""+U.key),U)P.call(U,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(te[J]=U[J]);var be=arguments.length-2;if(be===1)te.children=G;else if(1<be){for(var Ge=Array(be),we=0;we<be;we++)Ge[we]=arguments[we+2];te.children=Ge}if(S&&S.defaultProps)for(J in be=S.defaultProps,be)te[J]===void 0&&(te[J]=be[J]);return se(S,re,te)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(S){return{$$typeof:g,render:S}},ae.isValidElement=Re,ae.lazy=function(S){return{$$typeof:y,_payload:{_status:-1,_result:S},_init:X}},ae.memo=function(S,U){return{$$typeof:x,type:S,compare:U===void 0?null:U}},ae.startTransition=function(S){var U=Y.T,G={};Y.T=G;try{var J=S(),te=Y.S;te!==null&&te(G,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(oe,ce)}catch(re){ce(re)}finally{U!==null&&G.types!==null&&(U.types=G.types),Y.T=U}},ae.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ae.use=function(S){return Y.H.use(S)},ae.useActionState=function(S,U,G){return Y.H.useActionState(S,U,G)},ae.useCallback=function(S,U){return Y.H.useCallback(S,U)},ae.useContext=function(S){return Y.H.useContext(S)},ae.useDebugValue=function(){},ae.useDeferredValue=function(S,U){return Y.H.useDeferredValue(S,U)},ae.useEffect=function(S,U){return Y.H.useEffect(S,U)},ae.useEffectEvent=function(S){return Y.H.useEffectEvent(S)},ae.useId=function(){return Y.H.useId()},ae.useImperativeHandle=function(S,U,G){return Y.H.useImperativeHandle(S,U,G)},ae.useInsertionEffect=function(S,U){return Y.H.useInsertionEffect(S,U)},ae.useLayoutEffect=function(S,U){return Y.H.useLayoutEffect(S,U)},ae.useMemo=function(S,U){return Y.H.useMemo(S,U)},ae.useOptimistic=function(S,U){return Y.H.useOptimistic(S,U)},ae.useReducer=function(S,U,G){return Y.H.useReducer(S,U,G)},ae.useRef=function(S){return Y.H.useRef(S)},ae.useState=function(S){return Y.H.useState(S)},ae.useSyncExternalStore=function(S,U,G){return Y.H.useSyncExternalStore(S,U,G)},ae.useTransition=function(){return Y.H.useTransition()},ae.version="19.2.3",ae}var Eo;function Ms(){return Eo||(Eo=1,wr.exports=uv()),wr.exports}var h=Ms();const al=ao(h),cv=Lm({__proto__:null,default:al},[h]);var Co=h.createContext(void 0),vt=n=>{const s=h.useContext(Co);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},ov=({client:n,children:s})=>(h.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),r.jsx(Co.Provider,{value:n,children:s})),Ao=h.createContext(!1),fv=()=>h.useContext(Ao);Ao.Provider;function dv(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var hv=h.createContext(dv()),mv=()=>h.useContext(hv),vv=(n,s,c)=>{const o=c?.state.error&&typeof n.throwOnError=="function"?pr(n.throwOnError,[c.state.error,c]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||o)&&(s.isReset()||(n.retryOnMount=!1))},pv=n=>{h.useEffect(()=>{n.clearReset()},[n])},xv=({result:n,errorResetBoundary:s,throwOnError:c,query:o,suspense:d})=>n.isError&&!s.isReset()&&!n.isFetching&&o&&(d&&n.data===void 0||pr(c,[n.error,o])),gv=n=>{if(n.suspense){const c=d=>d==="static"?d:Math.max(d??1e3,1e3),o=n.staleTime;n.staleTime=typeof o=="function"?(...d)=>c(o(...d)):c(o),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},bv=(n,s)=>n.isLoading&&n.isFetching&&!s,yv=(n,s)=>n?.suspense&&s.isPending,Mo=(n,s,c)=>s.fetchOptimistic(n).catch(()=>{c.clearReset()});function jv(n,s,c){const o=fv(),d=mv(),m=vt(),v=m.defaultQueryOptions(n);m.getDefaultOptions().queries?._experimental_beforeQuery?.(v);const g=m.getQueryCache().get(v.queryHash);v._optimisticResults=o?"isRestoring":"optimistic",gv(v),vv(v,d,g),pv(d);const b=!m.getQueryCache().get(v.queryHash),[x]=h.useState(()=>new s(m,v)),y=x.getOptimisticResult(v),N=!o&&n.subscribed!==!1;if(h.useSyncExternalStore(h.useCallback(E=>{const _=N?x.subscribe(Ie.batchCalls(E)):ft;return x.updateResult(),_},[x,N]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),h.useEffect(()=>{x.setOptions(v)},[v,x]),yv(v,y))throw Mo(v,x,d);if(xv({result:y,errorResetBoundary:d,throwOnError:v.throwOnError,query:g,suspense:v.suspense}))throw y.error;return m.getDefaultOptions().queries?._experimental_afterQuery?.(v,y),v.experimental_prefetchInRender&&!el&&bv(y,o)&&(b?Mo(v,x,d):g?.promise)?.catch(ft).finally(()=>{x.updateResult()}),v.notifyOnChangeProps?y:x.trackResult(y)}function Ml(n,s){return jv(n,Pm)}function Zt(n,s){const c=vt(),[o]=h.useState(()=>new sv(c,n));h.useEffect(()=>{o.setOptions(n)},[o,n]);const d=h.useSyncExternalStore(h.useCallback(v=>o.subscribe(Ie.batchCalls(v)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),m=h.useCallback((v,g)=>{o.mutate(v,g).catch(ft)},[o]);if(d.error&&pr(o.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}var Sr={exports:{}},wn={},Nr={exports:{}},Er={};var Oo;function wv(){return Oo||(Oo=1,(function(n){function s(T,q){var X=T.length;T.push(q);e:for(;0<X;){var ce=X-1>>>1,ge=T[ce];if(0<d(ge,q))T[ce]=q,T[X]=ge,X=ce;else break e}}function c(T){return T.length===0?null:T[0]}function o(T){if(T.length===0)return null;var q=T[0],X=T.pop();if(X!==q){T[0]=X;e:for(var ce=0,ge=T.length,S=ge>>>1;ce<S;){var U=2*(ce+1)-1,G=T[U],J=U+1,te=T[J];if(0>d(G,X))J<ge&&0>d(te,G)?(T[ce]=te,T[J]=X,ce=J):(T[ce]=G,T[U]=X,ce=U);else if(J<ge&&0>d(te,X))T[ce]=te,T[J]=X,ce=J;else break e}}return q}function d(T,q){var X=T.sortIndex-q.sortIndex;return X!==0?X:T.id-q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;n.unstable_now=function(){return m.now()}}else{var v=Date,g=v.now();n.unstable_now=function(){return v.now()-g}}var b=[],x=[],y=1,N=null,E=3,_=!1,A=!1,D=!1,Q=!1,H=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,$=typeof setImmediate<"u"?setImmediate:null;function Z(T){for(var q=c(x);q!==null;){if(q.callback===null)o(x);else if(q.startTime<=T)o(x),q.sortIndex=q.expirationTime,s(b,q);else break;q=c(x)}}function ne(T){if(D=!1,Z(T),!A)if(c(b)!==null)A=!0,oe||(oe=!0,ve());else{var q=c(x);q!==null&&ue(ne,q.startTime-T)}}var oe=!1,Y=-1,P=5,se=-1;function ze(){return Q?!0:!(n.unstable_now()-se<P)}function Re(){if(Q=!1,oe){var T=n.unstable_now();se=T;var q=!0;try{e:{A=!1,D&&(D=!1,V(Y),Y=-1),_=!0;var X=E;try{t:{for(Z(T),N=c(b);N!==null&&!(N.expirationTime>T&&ze());){var ce=N.callback;if(typeof ce=="function"){N.callback=null,E=N.priorityLevel;var ge=ce(N.expirationTime<=T);if(T=n.unstable_now(),typeof ge=="function"){N.callback=ge,Z(T),q=!0;break t}N===c(b)&&o(b),Z(T)}else o(b);N=c(b)}if(N!==null)q=!0;else{var S=c(x);S!==null&&ue(ne,S.startTime-T),q=!1}}break e}finally{N=null,E=X,_=!1}q=void 0}}finally{q?ve():oe=!1}}}var ve;if(typeof $=="function")ve=function(){$(Re)};else if(typeof MessageChannel<"u"){var _e=new MessageChannel,ot=_e.port2;_e.port1.onmessage=Re,ve=function(){ot.postMessage(null)}}else ve=function(){H(Re,0)};function ue(T,q){Y=H(function(){T(n.unstable_now())},q)}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(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return E},n.unstable_next=function(T){switch(E){case 1:case 2:case 3:var q=3;break;default:q=E}var X=E;E=q;try{return T()}finally{E=X}},n.unstable_requestPaint=function(){Q=!0},n.unstable_runWithPriority=function(T,q){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var X=E;E=T;try{return q()}finally{E=X}},n.unstable_scheduleCallback=function(T,q,X){var ce=n.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ce+X:ce):X=ce,T){case 1:var ge=-1;break;case 2:ge=250;break;case 5:ge=1073741823;break;case 4:ge=1e4;break;default:ge=5e3}return ge=X+ge,T={id:y++,callback:q,priorityLevel:T,startTime:X,expirationTime:ge,sortIndex:-1},X>ce?(T.sortIndex=X,s(x,T),c(b)===null&&T===c(x)&&(D?(V(Y),Y=-1):D=!0,ue(ne,X-ce))):(T.sortIndex=ge,s(b,T),A||_||(A=!0,oe||(oe=!0,ve()))),T},n.unstable_shouldYield=ze,n.unstable_wrapCallback=function(T){var q=E;return function(){var X=E;E=q;try{return T.apply(this,arguments)}finally{E=X}}}})(Er)),Er}var zo;function Sv(){return zo||(zo=1,Nr.exports=wv()),Nr.exports}var Cr={exports:{}},ct={};var To;function Nv(){if(To)return ct;To=1;var n=Ms();function s(b){var x="https://react.dev/errors/"+b;if(1<arguments.length){x+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)x+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+b+"; visit "+x+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(s(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(b,x,y){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:N==null?null:""+N,children:b,containerInfo:x,implementation:y}}var v=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(b,x){if(b==="font")return"";if(typeof x=="string")return x==="use-credentials"?x:""}return ct.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ct.createPortal=function(b,x){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error(s(299));return m(b,x,null,y)},ct.flushSync=function(b){var x=v.T,y=o.p;try{if(v.T=null,o.p=2,b)return b()}finally{v.T=x,o.p=y,o.d.f()}},ct.preconnect=function(b,x){typeof b=="string"&&(x?(x=x.crossOrigin,x=typeof x=="string"?x==="use-credentials"?x:"":void 0):x=null,o.d.C(b,x))},ct.prefetchDNS=function(b){typeof b=="string"&&o.d.D(b)},ct.preinit=function(b,x){if(typeof b=="string"&&x&&typeof x.as=="string"){var y=x.as,N=g(y,x.crossOrigin),E=typeof x.integrity=="string"?x.integrity:void 0,_=typeof x.fetchPriority=="string"?x.fetchPriority:void 0;y==="style"?o.d.S(b,typeof x.precedence=="string"?x.precedence:void 0,{crossOrigin:N,integrity:E,fetchPriority:_}):y==="script"&&o.d.X(b,{crossOrigin:N,integrity:E,fetchPriority:_,nonce:typeof x.nonce=="string"?x.nonce:void 0})}},ct.preinitModule=function(b,x){if(typeof b=="string")if(typeof x=="object"&&x!==null){if(x.as==null||x.as==="script"){var y=g(x.as,x.crossOrigin);o.d.M(b,{crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0})}}else x==null&&o.d.M(b)},ct.preload=function(b,x){if(typeof b=="string"&&typeof x=="object"&&x!==null&&typeof x.as=="string"){var y=x.as,N=g(y,x.crossOrigin);o.d.L(b,y,{crossOrigin:N,integrity:typeof x.integrity=="string"?x.integrity:void 0,nonce:typeof x.nonce=="string"?x.nonce:void 0,type:typeof x.type=="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority=="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy=="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet=="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes=="string"?x.imageSizes:void 0,media:typeof x.media=="string"?x.media:void 0})}},ct.preloadModule=function(b,x){if(typeof b=="string")if(x){var y=g(x.as,x.crossOrigin);o.d.m(b,{as:typeof x.as=="string"&&x.as!=="script"?x.as:void 0,crossOrigin:y,integrity:typeof x.integrity=="string"?x.integrity:void 0})}else o.d.m(b)},ct.requestFormReset=function(b){o.d.r(b)},ct.unstable_batchedUpdates=function(b,x){return b(x)},ct.useFormState=function(b,x,y){return v.H.useFormState(b,x,y)},ct.useFormStatus=function(){return v.H.useHostTransitionStatus()},ct.version="19.2.3",ct}var Ro;function Do(){if(Ro)return Cr.exports;Ro=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(s){console.error(s)}}return n(),Cr.exports=Nv(),Cr.exports}var _o;function Ev(){if(_o)return wn;_o=1;var n=Sv(),s=Ms(),c=Do();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function v(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 g(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 b(e){if(m(e)!==e)throw Error(o(188))}function x(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var i=a.return;if(i===null)break;var u=i.alternate;if(u===null){if(l=i.return,l!==null){a=l;continue}break}if(i.child===u.child){for(u=i.child;u;){if(u===a)return b(i),e;if(u===l)return b(i),t;u=u.sibling}throw Error(o(188))}if(a.return!==l.return)a=i,l=u;else{for(var f=!1,p=i.child;p;){if(p===a){f=!0,a=i,l=u;break}if(p===l){f=!0,l=i,a=u;break}p=p.sibling}if(!f){for(p=u.child;p;){if(p===a){f=!0,a=u,l=i;break}if(p===l){f=!0,l=u,a=i;break}p=p.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var N=Object.assign,E=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),$=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),se=Symbol.for("react.activity"),ze=Symbol.for("react.memo_cache_sentinel"),Re=Symbol.iterator;function ve(e){return e===null||typeof e!="object"?null:(e=Re&&e[Re]||e["@@iterator"],typeof e=="function"?e:null)}var _e=Symbol.for("react.client.reference");function ot(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_e?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case H:return"Profiler";case Q:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList";case se:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case $:return e.displayName||"Context";case V:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:ot(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return ot(e(t))}catch{}}return null}var ue=Array.isArray,T=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},ce=[],ge=-1;function S(e){return{current:e}}function U(e){0>ge||(e.current=ce[ge],ce[ge]=null,ge--)}function G(e,t){ge++,ce[ge]=e.current,e.current=t}var J=S(null),te=S(null),re=S(null),be=S(null);function Ge(e,t){switch(G(re,t),G(te,e),G(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?nm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=nm(t),e=sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(J),G(J,e)}function we(){U(J),U(te),U(re)}function Ca(e){e.memoizedState!==null&&G(be,e);var t=J.current,a=sm(t,e.type);t!==a&&(G(te,e),G(J,a))}function St(e){te.current===e&&(U(J),U(te)),be.current===e&&(U(be),js._currentValue=X)}var K,Ne;function De(e){if(K===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);K=t&&t[1]||"",Ne=-1<a.stack.indexOf(`
|
|
2
2
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+
|
|
3
|
+
`+K+e+Ne}var Aa=!1;function qr(e,t){if(!e||Aa)return"";Aa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(R){var z=R}Reflect.construct(e,[],B)}else{try{B.call()}catch(R){z=R}e.call(B.prototype)}}else{try{throw Error()}catch(R){z=R}(B=e())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(R){if(R&&z&&typeof R.stack=="string")return[R.stack,z.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),f=u[0],p=u[1];if(f&&p){var j=f.split(`
|
|
4
4
|
`),O=p.split(`
|
|
5
|
-
`);for(i=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(l===j.length||i===O.length)for(l=j.length-1,i=O.length-1;1<=l&&0<=i&&j[l]!==O[i];)i--;for(;1<=l&&0<=i;l--,i--)if(j[l]!==O[i]){if(l!==1||i!==1)do if(l--,i--,0>i||j[l]!==O[i]){var
|
|
6
|
-
`+j[l].replace(" at new "," at ");return e.displayName&&
|
|
5
|
+
`);for(i=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;if(l===j.length||i===O.length)for(l=j.length-1,i=O.length-1;1<=l&&0<=i&&j[l]!==O[i];)i--;for(;1<=l&&0<=i;l--,i--)if(j[l]!==O[i]){if(l!==1||i!==1)do if(l--,i--,0>i||j[l]!==O[i]){var L=`
|
|
6
|
+
`+j[l].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=l&&0<=i);break}}}finally{Aa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?De(a):""}function lg(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De("Lazy");case 13:return e.child!==t&&t!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return qr(e.type,!1);case 11:return qr(e.type.render,!1);case 1:return qr(e.type,!0);case 31:return De("Activity");default:return""}}function Lf(e){try{var t="",a=null;do t+=lg(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
|
|
7
7
|
Error generating stack: `+l.message+`
|
|
8
|
-
`+l.stack}}var Qr=Object.prototype.hasOwnProperty,Vr=n.unstable_scheduleCallback,Yr=n.unstable_cancelCallback,Pg=n.unstable_shouldYield,ex=n.unstable_requestPaint,St=n.unstable_now,tx=n.unstable_getCurrentPriorityLevel,Lf=n.unstable_ImmediatePriority,Uf=n.unstable_UserBlockingPriority,Xs=n.unstable_NormalPriority,ax=n.unstable_LowPriority,kf=n.unstable_IdlePriority,lx=n.log,nx=n.unstable_setDisableYieldValue,Rn=null,Nt=null;function Na(e){if(typeof lx=="function"&&nx(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Rn,e)}catch{}}var Et=Math.clz32?Math.clz32:rx,sx=Math.log,ix=Math.LN2;function rx(e){return e>>>=0,e===0?32:31-(sx(e)/ix|0)|0}var Ks=256,$s=262144,Js=4194304;function ul(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 Fs(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~u,l!==0?i=ul(l):(f&=p,f!==0?i=ul(f):a||(a=p&~e,a!==0&&(i=ul(a))))):(p=l&~u,p!==0?i=ul(p):f!==0?i=ul(f):a||(a=l&~e,a!==0&&(i=ul(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function Dn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function ux(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 Bf(){var e=Js;return Js<<=1,(Js&62914560)===0&&(Js=4194304),e}function Gr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function _n(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function cx(e,t,a,l,i,u){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,j=e.expirationTimes,O=e.hiddenUpdates;for(a=f&~a;0<a;){var D=31-Et(a),k=1<<D;p[D]=0,j[D]=-1;var z=O[D];if(z!==null)for(O[D]=null,D=0;D<z.length;D++){var T=z[D];T!==null&&(T.lane&=-536870913)}a&=~k}l!==0&&Hf(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function Hf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Et(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function qf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Et(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function Qf(e,t){var a=t&-t;return a=(a&42)!==0?1:Zr(a),(a&(e.suspendedLanes|t))!==0?0:a}function Zr(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 Xr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vf(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Am(e.type))}function Yf(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var Ea=Math.random().toString(36).slice(2),st="__reactFiber$"+Ea,pt="__reactProps$"+Ea,_l="__reactContainer$"+Ea,Kr="__reactEvents$"+Ea,ox="__reactListeners$"+Ea,fx="__reactHandles$"+Ea,Gf="__reactResources$"+Ea,Ln="__reactMarker$"+Ea;function $r(e){delete e[st],delete e[pt],delete e[Kr],delete e[ox],delete e[fx]}function Ll(e){var t=e[st];if(t)return t;for(var a=e.parentNode;a;){if(t=a[_l]||a[st]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=fm(e);e!==null;){if(a=e[st])return a;e=fm(e)}return t}e=a,a=e.parentNode}return null}function Ul(e){if(e=e[st]||e[_l]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Un(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function kl(e){var t=e[Gf];return t||(t=e[Gf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[Ln]=!0}var Zf=new Set,Xf={};function cl(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(Xf[e]=t,e=0;e<t.length;e++)Zf.add(t[e])}var dx=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]*$"),Kf={},$f={};function hx(e){return Qr.call($f,e)?!0:Qr.call(Kf,e)?!1:dx.test(e)?$f[e]=!0:(Kf[e]=!0,!1)}function Ws(e,t,a){if(hx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Is(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function la(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Jf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function mx(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){if(!e._valueTracker){var t=Jf(e)?"checked":"value";e._valueTracker=mx(e,t,""+e[t])}}function Ff(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Jf(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function Ps(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 vx=/[\n"\\]/g;function Lt(e){return e.replace(vx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fr(e,t,a,l,i,u,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Wr(e,f,_t(t)):a!=null?Wr(e,f,_t(a)):l!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+_t(p):e.removeAttribute("name")}function Wf(e,t,a,l,i,u,f,p){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Jr(e);return}a=a!=null?""+_t(a):"",t=t!=null?""+_t(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Jr(e)}function Wr(e,t,a){t==="number"&&Ps(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Hl(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+_t(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function If(e,t,a){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+_t(a):""}function Pf(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(_e(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=_t(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Jr(e)}function ql(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var px=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 ed(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||px.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function td(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&ed(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&ed(e,u,t[u])}function Ir(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 gx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),xx=/^[\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 ei(e){return xx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var Pr=null;function eu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ql=null,Vl=null;function ad(e){var t=Ul(e);if(t&&(e=t.stateNode)){var a=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Lt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[pt]||null;if(!i)throw Error(o(90));Fr(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Ff(l)}break e;case"textarea":If(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Hl(e,!!a.multiple,t,!1)}}}var tu=!1;function ld(e,t,a){if(tu)return e(t,a);tu=!0;try{var l=e(t);return l}finally{if(tu=!1,(Ql!==null||Vl!==null)&&(Qi(),Ql&&(t=Ql,e=Vl,Vl=Ql=null,ad(t),e)))for(t=0;t<e.length;t++)ad(e[t])}}function kn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[pt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),au=!1;if(sa)try{var Bn={};Object.defineProperty(Bn,"passive",{get:function(){au=!0}}),window.addEventListener("test",Bn,Bn),window.removeEventListener("test",Bn,Bn)}catch{au=!1}var Ca=null,lu=null,ti=null;function nd(){if(ti)return ti;var e,t=lu,a=t.length,l,i="value"in Ca?Ca.value:Ca.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===i[u-l];l++);return ti=i.slice(e,1<l?1-l:void 0)}function ai(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 li(){return!0}function sd(){return!1}function gt(e){function t(a,l,i,u,f){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?li:sd,this.isPropagationStopped=sd,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ni=gt(ol),Hn=N({},ol,{view:0,detail:0}),bx=gt(Hn),nu,su,qn,si=N({},Hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ru,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!==qn&&(qn&&e.type==="mousemove"?(nu=e.screenX-qn.screenX,su=e.screenY-qn.screenY):su=nu=0,qn=e),nu)},movementY:function(e){return"movementY"in e?e.movementY:su}}),id=gt(si),yx=N({},si,{dataTransfer:0}),jx=gt(yx),wx=N({},Hn,{relatedTarget:0}),iu=gt(wx),Sx=N({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),Nx=gt(Sx),Ex=N({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cx=gt(Ex),Ax=N({},ol,{data:0}),rd=gt(Ax),Ox={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mx={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"},zx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tx(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=zx[e])?!!t[e]:!1}function ru(){return Tx}var Rx=N({},Hn,{key:function(e){if(e.key){var t=Ox[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ai(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Mx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ru,charCode:function(e){return e.type==="keypress"?ai(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ai(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Dx=gt(Rx),_x=N({},si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ud=gt(_x),Lx=N({},Hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ru}),Ux=gt(Lx),kx=N({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bx=gt(kx),Hx=N({},si,{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}),qx=gt(Hx),Qx=N({},ol,{newState:0,oldState:0}),Vx=gt(Qx),Yx=[9,13,27,32],uu=sa&&"CompositionEvent"in window,Qn=null;sa&&"documentMode"in document&&(Qn=document.documentMode);var Gx=sa&&"TextEvent"in window&&!Qn,cd=sa&&(!uu||Qn&&8<Qn&&11>=Qn),od=" ",fd=!1;function dd(e,t){switch(e){case"keyup":return Yx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function Zx(e,t){switch(e){case"compositionend":return hd(t);case"keypress":return t.which!==32?null:(fd=!0,od);case"textInput":return e=t.data,e===od&&fd?null:e;default:return null}}function Xx(e,t){if(Yl)return e==="compositionend"||!uu&&dd(e,t)?(e=nd(),ti=lu=Ca=null,Yl=!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 cd&&t.locale!=="ko"?null:t.data;default:return null}}var Kx={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 md(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Kx[e.type]:t==="textarea"}function vd(e,t,a,l){Ql?Vl?Vl.push(l):Vl=[l]:Ql=l,t=$i(t,"onChange"),0<t.length&&(a=new ni("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Vn=null,Yn=null;function $x(e){Wh(e,0)}function ii(e){var t=Un(e);if(Ff(t))return e}function pd(e,t){if(e==="change")return t}var gd=!1;if(sa){var cu;if(sa){var ou="oninput"in document;if(!ou){var xd=document.createElement("div");xd.setAttribute("oninput","return;"),ou=typeof xd.oninput=="function"}cu=ou}else cu=!1;gd=cu&&(!document.documentMode||9<document.documentMode)}function bd(){Vn&&(Vn.detachEvent("onpropertychange",yd),Yn=Vn=null)}function yd(e){if(e.propertyName==="value"&&ii(Yn)){var t=[];vd(t,Yn,e,eu(e)),ld($x,t)}}function Jx(e,t,a){e==="focusin"?(bd(),Vn=t,Yn=a,Vn.attachEvent("onpropertychange",yd)):e==="focusout"&&bd()}function Fx(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ii(Yn)}function Wx(e,t){if(e==="click")return ii(t)}function Ix(e,t){if(e==="input"||e==="change")return ii(t)}function Px(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Px;function Gn(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Qr.call(t,i)||!Ct(e[i],t[i]))return!1}return!0}function jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wd(e,t){var a=jd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=jd(a)}}function Sd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nd(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ps(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=Ps(e.document)}return t}function fu(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 eb=sa&&"documentMode"in document&&11>=document.documentMode,Gl=null,du=null,Zn=null,hu=!1;function Ed(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;hu||Gl==null||Gl!==Ps(l)||(l=Gl,"selectionStart"in l&&fu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Zn&&Gn(Zn,l)||(Zn=l,l=$i(du,"onSelect"),0<l.length&&(t=new ni("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Gl)))}function fl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Zl={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},mu={},Cd={};sa&&(Cd=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function dl(e){if(mu[e])return mu[e];if(!Zl[e])return e;var t=Zl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Cd)return mu[e]=t[a];return e}var Ad=dl("animationend"),Od=dl("animationiteration"),Md=dl("animationstart"),tb=dl("transitionrun"),ab=dl("transitionstart"),lb=dl("transitioncancel"),zd=dl("transitionend"),Td=new Map,vu="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(" ");vu.push("scrollEnd");function Zt(e,t){Td.set(e,t),cl(t,[e])}var ri=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)},Ut=[],Xl=0,pu=0;function ui(){for(var e=Xl,t=pu=Xl=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var i=Ut[t];Ut[t++]=null;var u=Ut[t];if(Ut[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}u!==0&&Rd(a,i,u)}}function ci(e,t,a,l){Ut[Xl++]=e,Ut[Xl++]=t,Ut[Xl++]=a,Ut[Xl++]=l,pu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function gu(e,t,a,l){return ci(e,t,a,l),oi(e)}function hl(e,t){return ci(e,null,null,t),oi(e)}function Rd(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Et(a),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),u):null}function oi(e){if(50<hs)throw hs=0,Cc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Kl={};function nb(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,a,l){return new nb(e,t,a,l)}function xu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ia(e,t){var a=e.alternate;return a===null?(a=At(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Dd(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,a,l,i,u){var f=0;if(l=e,typeof e=="function")xu(e)&&(f=1);else if(typeof e=="string")f=c2(e,a,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ge:return e=At(31,a,t,i),e.elementType=ge,e.lanes=u,e;case L:return ml(a.children,i,u,t);case Q:f=8,i|=24;break;case B:return e=At(12,a,t,i|2),e.elementType=B,e.lanes=u,e;case pe:return e=At(13,a,t,i),e.elementType=pe,e.lanes=u,e;case he:return e=At(19,a,t,i),e.elementType=he,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:f=10;break e;case F:f=9;break e;case I:f=11;break e;case V:f=14;break e;case ee:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=At(f,a,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function ml(e,t,a,l){return e=At(7,e,l,t),e.lanes=a,e}function bu(e,t,a){return e=At(6,e,null,t),e.lanes=a,e}function _d(e){var t=At(18,null,null,0);return t.stateNode=e,t}function yu(e,t,a){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ld=new WeakMap;function kt(e,t){if(typeof e=="object"&&e!==null){var a=Ld.get(e);return a!==void 0?a:(t={value:e,source:t,stack:_f(t)},Ld.set(e,t),t)}return{value:e,source:t,stack:_f(t)}}var $l=[],Jl=0,di=null,Xn=0,Bt=[],Ht=0,Aa=null,Ft=1,Wt="";function ra(e,t){$l[Jl++]=Xn,$l[Jl++]=di,di=e,Xn=t}function Ud(e,t,a){Bt[Ht++]=Ft,Bt[Ht++]=Wt,Bt[Ht++]=Aa,Aa=e;var l=Ft;e=Wt;var i=32-Et(l)-1;l&=~(1<<i),a+=1;var u=32-Et(t)+i;if(30<u){var f=i-i%5;u=(l&(1<<f)-1).toString(32),l>>=f,i-=f,Ft=1<<32-Et(t)+i|a<<i|l,Wt=u+e}else Ft=1<<u|a<<i|l,Wt=e}function ju(e){e.return!==null&&(ra(e,1),Ud(e,1,0))}function wu(e){for(;e===di;)di=$l[--Jl],$l[Jl]=null,Xn=$l[--Jl],$l[Jl]=null;for(;e===Aa;)Aa=Bt[--Ht],Bt[Ht]=null,Wt=Bt[--Ht],Bt[Ht]=null,Ft=Bt[--Ht],Bt[Ht]=null}function kd(e,t){Bt[Ht++]=Ft,Bt[Ht++]=Wt,Bt[Ht++]=Aa,Ft=t.id,Wt=t.overflow,Aa=e}var it=null,Le=null,me=!1,Oa=null,qt=!1,Su=Error(o(519));function Ma(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kn(kt(t,e)),Su}function Bd(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[st]=e,t[pt]=l,a){case"dialog":oe("cancel",t),oe("close",t);break;case"iframe":case"object":case"embed":oe("load",t);break;case"video":case"audio":for(a=0;a<vs.length;a++)oe(vs[a],t);break;case"source":oe("error",t);break;case"img":case"image":case"link":oe("error",t),oe("load",t);break;case"details":oe("toggle",t);break;case"input":oe("invalid",t),Wf(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":oe("invalid",t);break;case"textarea":oe("invalid",t),Pf(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||tm(t.textContent,a)?(l.popover!=null&&(oe("beforetoggle",t),oe("toggle",t)),l.onScroll!=null&&oe("scroll",t),l.onScrollEnd!=null&&oe("scrollend",t),l.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||Ma(e,!0)}function Hd(e){for(it=e.return;it;)switch(it.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:it=it.return}}function Fl(e){if(e!==it)return!1;if(!me)return Hd(e),me=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Qc(e.type,e.memoizedProps)),a=!a),a&&Le&&Ma(e),Hd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=om(e)}else t===27?(t=Le,Ya(e.type)?(e=Xc,Xc=null,Le=e):Le=t):Le=it?Vt(e.stateNode.nextSibling):null;return!0}function vl(){Le=it=null,me=!1}function Nu(){var e=Oa;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),Oa=null),e}function Kn(e){Oa===null?Oa=[e]:Oa.push(e)}var Eu=S(null),pl=null,ua=null;function za(e,t,a){Y(Eu,t._currentValue),t._currentValue=a}function ca(e){e._currentValue=Eu.current,H(Eu)}function Cu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Au(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var f=i.child;u=u.firstContext;e:for(;u!==null;){var p=u;u=i;for(var j=0;j<t.length;j++)if(p.context===t[j]){u.lanes|=a,p=u.alternate,p!==null&&(p.lanes|=a),Cu(u.return,a,e),l||(f=null);break e}u=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=a,u=f.alternate,u!==null&&(u.lanes|=a),Cu(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Wl(e,t,a,l){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=i.type;Ct(i.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(i===ie.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(ys):e=[ys])}i=i.return}e!==null&&Au(t,e,a,l),t.flags|=262144}function hi(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return qd(pl,e)}function mi(e,t){return pl===null&&gl(e),qd(e,t)}function qd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ua===null){if(e===null)throw Error(o(308));ua=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ua=ua.next=t;return a}var sb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},ib=n.unstable_scheduleCallback,rb=n.unstable_NormalPriority,$e={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ou(){return{controller:new sb,data:new Map,refCount:0}}function $n(e){e.refCount--,e.refCount===0&&ib(rb,function(){e.controller.abort()})}var Jn=null,Mu=0,Il=0,Pl=null;function ub(e,t){if(Jn===null){var a=Jn=[];Mu=0,Il=Rc(),Pl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Mu++,t.then(Qd,Qd),t}function Qd(){if(--Mu===0&&Jn!==null){Pl!==null&&(Pl.status="fulfilled");var e=Jn;Jn=null,Il=0,Pl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cb(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Vd=R.S;R.S=function(e,t){Eh=St(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&ub(e,t),Vd!==null&&Vd(e,t)};var xl=S(null);function zu(){var e=xl.current;return e!==null?e:Re.pooledCache}function vi(e,t){t===null?Y(xl,xl.current):Y(xl,t.pool)}function Yd(){var e=zu();return e===null?null:{parent:$e._currentValue,pool:e}}var en=Error(o(460)),Tu=Error(o(474)),pi=Error(o(542)),gi={then:function(){}};function Gd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Zd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kd(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Re,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kd(e),e}throw yl=t,en}}function bl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(yl=a,en):a}}var yl=null;function Xd(){if(yl===null)throw Error(o(459));var e=yl;return yl=null,e}function Kd(e){if(e===en||e===pi)throw Error(o(483))}var tn=null,Fn=0;function xi(e){var t=Fn;return Fn+=1,tn===null&&(tn=[]),Zd(tn,e,t)}function Wn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bi(e,t){throw t.$$typeof===E?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $d(e){function t(C,w){if(e){var A=C.deletions;A===null?(C.deletions=[w],C.flags|=16):A.push(w)}}function a(C,w){if(!e)return null;for(;w!==null;)t(C,w),w=w.sibling;return null}function l(C){for(var w=new Map;C!==null;)C.key!==null?w.set(C.key,C):w.set(C.index,C),C=C.sibling;return w}function i(C,w){return C=ia(C,w),C.index=0,C.sibling=null,C}function u(C,w,A){return C.index=A,e?(A=C.alternate,A!==null?(A=A.index,A<w?(C.flags|=67108866,w):A):(C.flags|=67108866,w)):(C.flags|=1048576,w)}function f(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,w,A,U){return w===null||w.tag!==6?(w=bu(A,C.mode,U),w.return=C,w):(w=i(w,A),w.return=C,w)}function j(C,w,A,U){var W=A.type;return W===L?D(C,w,A.props.children,U,A.key):w!==null&&(w.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ee&&bl(W)===w.type)?(w=i(w,A.props),Wn(w,A),w.return=C,w):(w=fi(A.type,A.key,A.props,null,C.mode,U),Wn(w,A),w.return=C,w)}function O(C,w,A,U){return w===null||w.tag!==4||w.stateNode.containerInfo!==A.containerInfo||w.stateNode.implementation!==A.implementation?(w=yu(A,C.mode,U),w.return=C,w):(w=i(w,A.children||[]),w.return=C,w)}function D(C,w,A,U,W){return w===null||w.tag!==7?(w=ml(A,C.mode,U,W),w.return=C,w):(w=i(w,A),w.return=C,w)}function k(C,w,A){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=bu(""+w,C.mode,A),w.return=C,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _:return A=fi(w.type,w.key,w.props,null,C.mode,A),Wn(A,w),A.return=C,A;case M:return w=yu(w,C.mode,A),w.return=C,w;case ee:return w=bl(w),k(C,w,A)}if(_e(w)||we(w))return w=ml(w,C.mode,A,null),w.return=C,w;if(typeof w.then=="function")return k(C,xi(w),A);if(w.$$typeof===X)return k(C,mi(C,w),A);bi(C,w)}return null}function z(C,w,A,U){var W=w!==null?w.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return W!==null?null:p(C,w,""+A,U);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===W?j(C,w,A,U):null;case M:return A.key===W?O(C,w,A,U):null;case ee:return A=bl(A),z(C,w,A,U)}if(_e(A)||we(A))return W!==null?null:D(C,w,A,U,null);if(typeof A.then=="function")return z(C,w,xi(A),U);if(A.$$typeof===X)return z(C,w,mi(C,A),U);bi(C,A)}return null}function T(C,w,A,U,W){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return C=C.get(A)||null,p(w,C,""+U,W);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case _:return C=C.get(U.key===null?A:U.key)||null,j(w,C,U,W);case M:return C=C.get(U.key===null?A:U.key)||null,O(w,C,U,W);case ee:return U=bl(U),T(C,w,A,U,W)}if(_e(U)||we(U))return C=C.get(A)||null,D(w,C,U,W,null);if(typeof U.then=="function")return T(C,w,A,xi(U),W);if(U.$$typeof===X)return T(C,w,A,mi(w,U),W);bi(w,U)}return null}function K(C,w,A,U){for(var W=null,be=null,J=w,se=w=0,de=null;J!==null&&se<A.length;se++){J.index>se?(de=J,J=null):de=J.sibling;var ye=z(C,J,A[se],U);if(ye===null){J===null&&(J=de);break}e&&J&&ye.alternate===null&&t(C,J),w=u(ye,w,se),be===null?W=ye:be.sibling=ye,be=ye,J=de}if(se===A.length)return a(C,J),me&&ra(C,se),W;if(J===null){for(;se<A.length;se++)J=k(C,A[se],U),J!==null&&(w=u(J,w,se),be===null?W=J:be.sibling=J,be=J);return me&&ra(C,se),W}for(J=l(J);se<A.length;se++)de=T(J,C,se,A[se],U),de!==null&&(e&&de.alternate!==null&&J.delete(de.key===null?se:de.key),w=u(de,w,se),be===null?W=de:be.sibling=de,be=de);return e&&J.forEach(function($a){return t(C,$a)}),me&&ra(C,se),W}function P(C,w,A,U){if(A==null)throw Error(o(151));for(var W=null,be=null,J=w,se=w=0,de=null,ye=A.next();J!==null&&!ye.done;se++,ye=A.next()){J.index>se?(de=J,J=null):de=J.sibling;var $a=z(C,J,ye.value,U);if($a===null){J===null&&(J=de);break}e&&J&&$a.alternate===null&&t(C,J),w=u($a,w,se),be===null?W=$a:be.sibling=$a,be=$a,J=de}if(ye.done)return a(C,J),me&&ra(C,se),W;if(J===null){for(;!ye.done;se++,ye=A.next())ye=k(C,ye.value,U),ye!==null&&(w=u(ye,w,se),be===null?W=ye:be.sibling=ye,be=ye);return me&&ra(C,se),W}for(J=l(J);!ye.done;se++,ye=A.next())ye=T(J,C,se,ye.value,U),ye!==null&&(e&&ye.alternate!==null&&J.delete(ye.key===null?se:ye.key),w=u(ye,w,se),be===null?W=ye:be.sibling=ye,be=ye);return e&&J.forEach(function(y2){return t(C,y2)}),me&&ra(C,se),W}function ze(C,w,A,U){if(typeof A=="object"&&A!==null&&A.type===L&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:e:{for(var W=A.key;w!==null;){if(w.key===W){if(W=A.type,W===L){if(w.tag===7){a(C,w.sibling),U=i(w,A.props.children),U.return=C,C=U;break e}}else if(w.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===ee&&bl(W)===w.type){a(C,w.sibling),U=i(w,A.props),Wn(U,A),U.return=C,C=U;break e}a(C,w);break}else t(C,w);w=w.sibling}A.type===L?(U=ml(A.props.children,C.mode,U,A.key),U.return=C,C=U):(U=fi(A.type,A.key,A.props,null,C.mode,U),Wn(U,A),U.return=C,C=U)}return f(C);case M:e:{for(W=A.key;w!==null;){if(w.key===W)if(w.tag===4&&w.stateNode.containerInfo===A.containerInfo&&w.stateNode.implementation===A.implementation){a(C,w.sibling),U=i(w,A.children||[]),U.return=C,C=U;break e}else{a(C,w);break}else t(C,w);w=w.sibling}U=yu(A,C.mode,U),U.return=C,C=U}return f(C);case ee:return A=bl(A),ze(C,w,A,U)}if(_e(A))return K(C,w,A,U);if(we(A)){if(W=we(A),typeof W!="function")throw Error(o(150));return A=W.call(A),P(C,w,A,U)}if(typeof A.then=="function")return ze(C,w,xi(A),U);if(A.$$typeof===X)return ze(C,w,mi(C,A),U);bi(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,w!==null&&w.tag===6?(a(C,w.sibling),U=i(w,A),U.return=C,C=U):(a(C,w),U=bu(A,C.mode,U),U.return=C,C=U),f(C)):a(C,w)}return function(C,w,A,U){try{Fn=0;var W=ze(C,w,A,U);return tn=null,W}catch(J){if(J===en||J===pi)throw J;var be=At(29,J,null,C.mode);return be.lanes=U,be.return=C,be}}}var jl=$d(!0),Jd=$d(!1),Ta=!1;function Ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Du(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 Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(je&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=oi(e),Rd(e,null,a),t}return ci(e,l,t,a),oi(e)}function In(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,qf(e,a)}}function _u(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=f:u=u.next=f,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Lu=!1;function Pn(){if(Lu){var e=Pl;if(e!==null)throw e}}function es(e,t,a,l){Lu=!1;var i=e.updateQueue;Ta=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var j=p,O=j.next;j.next=null,f===null?u=O:f.next=O,f=j;var D=e.alternate;D!==null&&(D=D.updateQueue,p=D.lastBaseUpdate,p!==f&&(p===null?D.firstBaseUpdate=O:p.next=O,D.lastBaseUpdate=j))}if(u!==null){var k=i.baseState;f=0,D=O=j=null,p=u;do{var z=p.lane&-536870913,T=z!==p.lane;if(T?(fe&z)===z:(l&z)===z){z!==0&&z===Il&&(Lu=!0),D!==null&&(D=D.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var K=e,P=p;z=t;var ze=a;switch(P.tag){case 1:if(K=P.payload,typeof K=="function"){k=K.call(ze,k,z);break e}k=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=P.payload,z=typeof K=="function"?K.call(ze,k,z):K,z==null)break e;k=N({},k,z);break e;case 2:Ta=!0}}z=p.callback,z!==null&&(e.flags|=64,T&&(e.flags|=8192),T=i.callbacks,T===null?i.callbacks=[z]:T.push(z))}else T={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},D===null?(O=D=T,j=k):D=D.next=T,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;T=p,p=T.next,T.next=null,i.lastBaseUpdate=T,i.shared.pending=null}}while(!0);D===null&&(j=k),i.baseState=j,i.firstBaseUpdate=O,i.lastBaseUpdate=D,u===null&&(i.shared.lanes=0),Ba|=f,e.lanes=f,e.memoizedState=k}}function Fd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Wd(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Fd(a[e],t)}var an=S(null),yi=S(0);function Id(e,t){e=xa,Y(yi,e),Y(an,t),xa=e|t.baseLanes}function Uu(){Y(yi,xa),Y(an,an.current)}function ku(){xa=yi.current,H(an),H(yi)}var Ot=S(null),Qt=null;function _a(e){var t=e.alternate;Y(Ge,Ge.current&1),Y(Ot,e),Qt===null&&(t===null||an.current!==null||t.memoizedState!==null)&&(Qt=e)}function Bu(e){Y(Ge,Ge.current),Y(Ot,e),Qt===null&&(Qt=e)}function Pd(e){e.tag===22?(Y(Ge,Ge.current),Y(Ot,e),Qt===null&&(Qt=e)):La()}function La(){Y(Ge,Ge.current),Y(Ot,Ot.current)}function Mt(e){H(Ot),Qt===e&&(Qt=null),H(Ge)}var Ge=S(0);function ji(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Gc(a)||Zc(a)))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 oa=0,ne=null,Oe=null,Je=null,wi=!1,ln=!1,wl=!1,Si=0,ts=0,nn=null,ob=0;function Qe(){throw Error(o(321))}function Hu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ct(e[a],t[a]))return!1;return!0}function qu(e,t,a,l,i,u){return oa=u,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?U0:tc,wl=!1,u=a(l,i),wl=!1,ln&&(u=t0(t,a,l,i)),e0(e),u}function e0(e){R.H=ns;var t=Oe!==null&&Oe.next!==null;if(oa=0,Je=Oe=ne=null,wi=!1,ts=0,nn=null,t)throw Error(o(300));e===null||Fe||(e=e.dependencies,e!==null&&hi(e)&&(Fe=!0))}function t0(e,t,a,l){ne=e;var i=0;do{if(ln&&(nn=null),ts=0,ln=!1,25<=i)throw Error(o(301));if(i+=1,Je=Oe=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=k0,u=t(a,l)}while(ln);return u}function fb(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?as(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(ne.flags|=1024),t}function Qu(){var e=Si!==0;return Si=0,e}function Vu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Yu(e){if(wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wi=!1}oa=0,Je=Oe=ne=null,ln=!1,ts=Si=0,nn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ne.memoizedState=Je=e:Je=Je.next=e,Je}function Ze(){if(Oe===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Je===null?ne.memoizedState:Je.next;if(t!==null)Je=t,Oe=e;else{if(e===null)throw ne.alternate===null?Error(o(467)):Error(o(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Je===null?ne.memoizedState=Je=e:Je=Je.next=e}return Je}function Ni(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function as(e){var t=ts;return ts+=1,nn===null&&(nn=[]),e=Zd(nn,e,t),t=ne,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?U0:tc),e}function Ei(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return as(e);if(e.$$typeof===X)return rt(e)}throw Error(o(438,String(e)))}function Gu(e){var t=null,a=ne.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=ne.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ni(),ne.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=De;return t.index++,a}function fa(e,t){return typeof t=="function"?t(e):t}function Ci(e){var t=Ze();return Zu(t,Oe,e)}function Zu(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,u=l.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}t.baseQueue=i=u,l.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var p=f=null,j=null,O=t,D=!1;do{var k=O.lane&-536870913;if(k!==O.lane?(fe&k)===k:(oa&k)===k){var z=O.revertLane;if(z===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),k===Il&&(D=!0);else if((oa&z)===z){O=O.next,z===Il&&(D=!0);continue}else k={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(p=j=k,f=u):j=j.next=k,ne.lanes|=z,Ba|=z;k=O.action,wl&&a(u,k),u=O.hasEagerState?O.eagerState:a(u,k)}else z={lane:k,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(p=j=z,f=u):j=j.next=z,ne.lanes|=k,Ba|=k;O=O.next}while(O!==null&&O!==t);if(j===null?f=u:j.next=p,!Ct(u,e.memoizedState)&&(Fe=!0,D&&(a=Pl,a!==null)))throw a;e.memoizedState=u,e.baseState=f,e.baseQueue=j,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Xu(e){var t=Ze(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);Ct(u,t.memoizedState)||(Fe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function a0(e,t,a){var l=ne,i=Ze(),u=me;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!Ct((Oe||i).memoizedState,a);if(f&&(i.memoizedState=a,Fe=!0),i=i.queue,Ju(s0.bind(null,l,i,e),[e]),i.getSnapshot!==t||f||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,sn(9,{destroy:void 0},n0.bind(null,l,i,a,t),null),Re===null)throw Error(o(349));u||(oa&127)!==0||l0(l,t,a)}return a}function l0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=ne.updateQueue,t===null?(t=Ni(),ne.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function n0(e,t,a,l){t.value=a,t.getSnapshot=l,i0(t)&&r0(e)}function s0(e,t,a){return a(function(){i0(t)&&r0(e)})}function i0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ct(e,a)}catch{return!0}}function r0(e){var t=hl(e,2);t!==null&&wt(t,e,2)}function Ku(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),wl){Na(!0);try{a()}finally{Na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:e},t}function u0(e,t,a,l){return e.baseState=a,Zu(e,Oe,typeof l=="function"?l:fa)}function db(e,t,a,l,i){if(Mi(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};R.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,c0(t,u)):(u.next=a.next,t.pending=a.next=u)}}function c0(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=R.T,f={};R.T=f;try{var p=a(i,l),j=R.S;j!==null&&j(f,p),o0(e,t,p)}catch(O){$u(e,t,O)}finally{u!==null&&f.types!==null&&(u.types=f.types),R.T=u}}else try{u=a(i,l),o0(e,t,u)}catch(O){$u(e,t,O)}}function o0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){f0(e,t,l)},function(l){return $u(e,t,l)}):f0(e,t,a)}function f0(e,t,a){t.status="fulfilled",t.value=a,d0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,c0(e,a)))}function $u(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,d0(t),t=t.next;while(t!==l)}e.action=null}function d0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function h0(e,t){return t}function m0(e,t){if(me){var a=Re.formState;if(a!==null){e:{var l=ne;if(me){if(Le){t:{for(var i=Le,u=qt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Vt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Le=Vt(i.nextSibling),l=i.data==="F!";break e}}Ma(l)}l=!1}l&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h0,lastRenderedState:t},a.queue=l,a=D0.bind(null,ne,l),l.dispatch=a,l=Ku(!1),u=ec.bind(null,ne,!1,l.queue),l=mt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=db.bind(null,ne,i,u,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function v0(e){var t=Ze();return p0(t,Oe,e)}function p0(e,t,a){if(t=Zu(e,t,h0)[0],e=Ci(fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=as(t)}catch(f){throw f===en?pi:f}else l=t;t=Ze();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(ne.flags|=2048,sn(9,{destroy:void 0},hb.bind(null,i,a),null)),[l,u,e]}function hb(e,t){e.action=t}function g0(e){var t=Ze(),a=Oe;if(a!==null)return p0(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function sn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=ne.updateQueue,t===null&&(t=Ni(),ne.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function x0(){return Ze().memoizedState}function Ai(e,t,a,l){var i=mt();ne.flags|=e,i.memoizedState=sn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Oi(e,t,a,l){var i=Ze();l=l===void 0?null:l;var u=i.memoizedState.inst;Oe!==null&&l!==null&&Hu(l,Oe.memoizedState.deps)?i.memoizedState=sn(t,u,a,l):(ne.flags|=e,i.memoizedState=sn(1|t,u,a,l))}function b0(e,t){Ai(8390656,8,e,t)}function Ju(e,t){Oi(2048,8,e,t)}function mb(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=Ni(),ne.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function y0(e){var t=Ze().memoizedState;return mb({ref:t,nextImpl:e}),function(){if((je&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function j0(e,t){return Oi(4,2,e,t)}function w0(e,t){return Oi(4,4,e,t)}function S0(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function N0(e,t,a){a=a!=null?a.concat([e]):null,Oi(4,4,S0.bind(null,t,e),a)}function Fu(){}function E0(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Hu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function C0(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Hu(t,l[1]))return l[0];if(l=e(),wl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l}function Wu(e,t,a){return a===void 0||(oa&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Ah(),ne.lanes|=e,Ba|=e,a)}function A0(e,t,a,l){return Ct(a,t)?a:an.current!==null?(e=Wu(e,a,l),Ct(e,t)||(Fe=!0),e):(oa&42)===0||(oa&1073741824)!==0&&(fe&261930)===0?(Fe=!0,e.memoizedState=a):(e=Ah(),ne.lanes|=e,Ba|=e,t)}function O0(e,t,a,l,i){var u=q.p;q.p=u!==0&&8>u?u:8;var f=R.T,p={};R.T=p,ec(e,!1,t,a);try{var j=i(),O=R.S;if(O!==null&&O(p,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var D=cb(j,l);ls(e,t,D,Rt(e))}else ls(e,t,l,Rt(e))}catch(k){ls(e,t,{then:function(){},status:"rejected",reason:k},Rt())}finally{q.p=u,f!==null&&p.types!==null&&(f.types=p.types),R.T=f}}function vb(){}function Iu(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=M0(e).queue;O0(e,i,t,Z,a===null?vb:function(){return z0(e),a(l)})}function M0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function z0(e){var t=M0(e);t.next===null&&(t=e.alternate.memoizedState),ls(e,t.next.queue,{},Rt())}function Pu(){return rt(ys)}function T0(){return Ze().memoizedState}function R0(){return Ze().memoizedState}function pb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Rt();e=Ra(a);var l=Da(t,e,a);l!==null&&(wt(l,t,a),In(l,t,a)),t={cache:Ou()},e.payload=t;return}t=t.return}}function gb(e,t,a){var l=Rt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Mi(e)?_0(t,a):(a=gu(e,t,a,l),a!==null&&(wt(a,e,l),L0(a,t,l)))}function D0(e,t,a){var l=Rt();ls(e,t,a,l)}function ls(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Mi(e))_0(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,p=u(f,a);if(i.hasEagerState=!0,i.eagerState=p,Ct(p,f))return ci(e,t,i,0),Re===null&&ui(),!1}catch{}if(a=gu(e,t,i,l),a!==null)return wt(a,e,l),L0(a,t,l),!0}return!1}function ec(e,t,a,l){if(l={lane:2,revertLane:Rc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Mi(e)){if(t)throw Error(o(479))}else t=gu(e,a,l,2),t!==null&&wt(t,e,2)}function Mi(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function _0(e,t){ln=wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function L0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,qf(e,a)}}var ns={readContext:rt,use:Ei,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ns.useEffectEvent=Qe;var U0={readContext:rt,use:Ei,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:b0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ai(4194308,4,S0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ai(4194308,4,e,t)},useInsertionEffect:function(e,t){Ai(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var l=e();if(wl){Na(!0);try{e()}finally{Na(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=mt();if(a!==void 0){var i=a(t);if(wl){Na(!0);try{a(t)}finally{Na(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=gb.bind(null,ne,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ku(e);var t=e.queue,a=D0.bind(null,ne,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Fu,useDeferredValue:function(e,t){var a=mt();return Wu(a,e,t)},useTransition:function(){var e=Ku(!1);return e=O0.bind(null,ne,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=ne,i=mt();if(me){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Re===null)throw Error(o(349));(fe&127)!==0||l0(l,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,b0(s0.bind(null,l,u,e),[e]),l.flags|=2048,sn(9,{destroy:void 0},n0.bind(null,l,u,a,t),null),a},useId:function(){var e=mt(),t=Re.identifierPrefix;if(me){var a=Wt,l=Ft;a=(l&~(1<<32-Et(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Si++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=ob++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Pu,useFormState:m0,useActionState:m0,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ec.bind(null,ne,!0,a),a.dispatch=t,[e,t]},useMemoCache:Gu,useCacheRefresh:function(){return mt().memoizedState=pb.bind(null,ne)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((je&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},tc={readContext:rt,use:Ei,useCallback:E0,useContext:rt,useEffect:Ju,useImperativeHandle:N0,useInsertionEffect:j0,useLayoutEffect:w0,useMemo:C0,useReducer:Ci,useRef:x0,useState:function(){return Ci(fa)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=Ze();return A0(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Ci(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:as(e),t]},useSyncExternalStore:a0,useId:T0,useHostTransitionStatus:Pu,useFormState:v0,useActionState:v0,useOptimistic:function(e,t){var a=Ze();return u0(a,Oe,e,t)},useMemoCache:Gu,useCacheRefresh:R0};tc.useEffectEvent=y0;var k0={readContext:rt,use:Ei,useCallback:E0,useContext:rt,useEffect:Ju,useImperativeHandle:N0,useInsertionEffect:j0,useLayoutEffect:w0,useMemo:C0,useReducer:Xu,useRef:x0,useState:function(){return Xu(fa)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=Ze();return Oe===null?Wu(a,e,t):A0(a,Oe.memoizedState,e,t)},useTransition:function(){var e=Xu(fa)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:as(e),t]},useSyncExternalStore:a0,useId:T0,useHostTransitionStatus:Pu,useFormState:g0,useActionState:g0,useOptimistic:function(e,t){var a=Ze();return Oe!==null?u0(a,Oe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Gu,useCacheRefresh:R0};k0.useEffectEvent=y0;function ac(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:N({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var lc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ra(l);i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,l),t!==null&&(wt(t,e,l),In(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Rt(),i=Ra(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Da(e,i,l),t!==null&&(wt(t,e,l),In(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Rt(),l=Ra(a);l.tag=2,t!=null&&(l.callback=t),t=Da(e,l,a),t!==null&&(wt(t,e,a),In(t,e,a))}};function B0(e,t,a,l,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,f):t.prototype&&t.prototype.isPureReactComponent?!Gn(a,l)||!Gn(i,u):!0}function H0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&lc.enqueueReplaceState(t,t.state,null)}function Sl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=N({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function q0(e){ri(e)}function Q0(e){console.error(e)}function V0(e){ri(e)}function zi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Y0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function nc(e,t,a){return a=Ra(a),a.tag=3,a.payload={element:null},a.callback=function(){zi(e,t)},a}function G0(e){return e=Ra(e),e.tag=3,e}function Z0(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=l.value;e.payload=function(){return i(u)},e.callback=function(){Y0(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Y0(t,a,l),typeof i!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function xb(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Wl(t,a,i,!0),a=Ot.current,a!==null){switch(a.tag){case 31:case 13:return Qt===null?Vi():a.alternate===null&&Ve===0&&(Ve=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===gi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Mc(e,l,i)),!1;case 22:return a.flags|=65536,l===gi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Mc(e,l,i)),!1}throw Error(o(435,a.tag))}return Mc(e,l,i),Vi(),!1}if(me)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==Su&&(e=Error(o(422),{cause:l}),Kn(kt(e,a)))):(l!==Su&&(t=Error(o(423),{cause:l}),Kn(kt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=kt(l,a),i=nc(e.stateNode,l,i),_u(e,i),Ve!==4&&(Ve=2)),!1;var u=Error(o(520),{cause:l});if(u=kt(u,a),ds===null?ds=[u]:ds.push(u),Ve!==4&&(Ve=2),t===null)return!0;l=kt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=nc(a.stateNode,l,e),_u(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ha===null||!Ha.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=G0(i),Z0(i,e,a,l),_u(a,i),!1}a=a.return}while(a!==null);return!1}var sc=Error(o(461)),Fe=!1;function ut(e,t,a,l){t.child=e===null?Jd(t,null,a,l):jl(t,e.child,a,l)}function X0(e,t,a,l,i){a=a.render;var u=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return gl(t),l=qu(e,t,a,f,u,i),p=Qu(),e!==null&&!Fe?(Vu(e,t,i),da(e,t,i)):(me&&p&&ju(t),t.flags|=1,ut(e,t,l,i),t.child)}function K0(e,t,a,l,i){if(e===null){var u=a.type;return typeof u=="function"&&!xu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,$0(e,t,u,l,i)):(e=fi(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!hc(e,i)){var f=u.memoizedProps;if(a=a.compare,a=a!==null?a:Gn,a(f,l)&&e.ref===t.ref)return da(e,t,i)}return t.flags|=1,e=ia(u,l),e.ref=t.ref,e.return=t,t.child=e}function $0(e,t,a,l,i){if(e!==null){var u=e.memoizedProps;if(Gn(u,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=u,hc(e,i))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,da(e,t,i)}return ic(e,t,a,l,i)}function J0(e,t,a,l){var i=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~u}else l=0,t.child=null;return F0(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&vi(t,u!==null?u.cachePool:null),u!==null?Id(t,u):Uu(),Pd(t);else return l=t.lanes=536870912,F0(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(vi(t,u.cachePool),Id(t,u),La(),t.memoizedState=null):(e!==null&&vi(t,null),Uu(),La());return ut(e,t,i,a),t.child}function ss(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function F0(e,t,a,l,i){var u=zu();return u=u===null?null:{parent:$e._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&vi(t,null),Uu(),Pd(t),e!==null&&Wl(e,t,l,!0),t.childLanes=i,null}function Ti(e,t){return t=Di({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function W0(e,t,a){return jl(t,e.child,null,a),e=Ti(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function bb(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(me){if(l.mode==="hidden")return e=Ti(t,l),t.lanes=536870912,ss(null,e);if(Bu(t),(e=Le)?(e=cm(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=_d(e),a.return=t,t.child=a,it=t,Le=null)):e=null,e===null)throw Ma(t);return t.lanes=536870912,null}return Ti(t,l)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(Bu(t),i)if(t.flags&256)t.flags&=-257,t=W0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Fe||Wl(e,t,a,!1),i=(a&e.childLanes)!==0,Fe||i){if(l=Re,l!==null&&(f=Qf(l,a),f!==0&&f!==u.retryLane))throw u.retryLane=f,hl(e,f),wt(l,e,f),sc;Vi(),t=W0(e,t,a)}else e=u.treeContext,Le=Vt(f.nextSibling),it=t,me=!0,Oa=null,qt=!1,e!==null&&kd(t,e),t=Ti(t,l),t.flags|=4096;return t}return e=ia(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ri(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ic(e,t,a,l,i){return gl(t),a=qu(e,t,a,l,void 0,i),l=Qu(),e!==null&&!Fe?(Vu(e,t,i),da(e,t,i)):(me&&l&&ju(t),t.flags|=1,ut(e,t,a,i),t.child)}function I0(e,t,a,l,i,u){return gl(t),t.updateQueue=null,a=t0(t,l,a,i),e0(e),l=Qu(),e!==null&&!Fe?(Vu(e,t,u),da(e,t,u)):(me&&l&&ju(t),t.flags|=1,ut(e,t,a,u),t.child)}function P0(e,t,a,l,i){if(gl(t),t.stateNode===null){var u=Kl,f=a.contextType;typeof f=="object"&&f!==null&&(u=rt(f)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=lc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Ru(t),f=a.contextType,u.context=typeof f=="object"&&f!==null?rt(f):Kl,u.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(ac(t,a,f,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&lc.enqueueReplaceState(u,u.state,null),es(t,l,u,i),Pn(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var p=t.memoizedProps,j=Sl(a,p);u.props=j;var O=u.context,D=a.contextType;f=Kl,typeof D=="object"&&D!==null&&(f=rt(D));var k=a.getDerivedStateFromProps;D=typeof k=="function"||typeof u.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,D||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p||O!==f)&&H0(t,u,l,f),Ta=!1;var z=t.memoizedState;u.state=z,es(t,l,u,i),Pn(),O=t.memoizedState,p||z!==O||Ta?(typeof k=="function"&&(ac(t,a,k,l),O=t.memoizedState),(j=Ta||B0(t,a,j,l,z,O,f))?(D||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=O),u.props=l,u.state=O,u.context=f,l=j):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Du(e,t),f=t.memoizedProps,D=Sl(a,f),u.props=D,k=t.pendingProps,z=u.context,O=a.contextType,j=Kl,typeof O=="object"&&O!==null&&(j=rt(O)),p=a.getDerivedStateFromProps,(O=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==k||z!==j)&&H0(t,u,l,j),Ta=!1,z=t.memoizedState,u.state=z,es(t,l,u,i),Pn();var T=t.memoizedState;f!==k||z!==T||Ta||e!==null&&e.dependencies!==null&&hi(e.dependencies)?(typeof p=="function"&&(ac(t,a,p,l),T=t.memoizedState),(D=Ta||B0(t,a,D,l,z,T,j)||e!==null&&e.dependencies!==null&&hi(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,T,j),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,T,j)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),u.props=l,u.state=T,u.context=j,l=D):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Ri(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=jl(t,e.child,null,i),t.child=jl(t,null,a,i)):ut(e,t,a,i),t.memoizedState=u.state,e=t.child):e=da(e,t,i),e}function eh(e,t,a,l){return vl(),t.flags|=256,ut(e,t,a,l),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uc(e){return{baseLanes:e,cachePool:Yd()}}function cc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function th(e,t,a){var l=t.pendingProps,i=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ge.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(me){if(i?_a(t):La(),(e=Le)?(e=cm(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Ft,overflow:Wt}:null,retryLane:536870912,hydrationErrors:null},a=_d(e),a.return=t,t.child=a,it=t,Le=null)):e=null,e===null)throw Ma(t);return Zc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,i?(La(),i=t.mode,p=Di({mode:"hidden",children:p},i),l=ml(l,i,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=uc(a),l.childLanes=cc(e,f,a),t.memoizedState=rc,ss(null,l)):(_a(t),oc(t,p))}var j=e.memoizedState;if(j!==null&&(p=j.dehydrated,p!==null)){if(u)t.flags&256?(_a(t),t.flags&=-257,t=fc(e,t,a)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),p=l.fallback,i=t.mode,l=Di({mode:"visible",children:l.children},i),p=ml(p,i,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,jl(t,e.child,null,a),l=t.child,l.memoizedState=uc(a),l.childLanes=cc(e,f,a),t.memoizedState=rc,t=ss(null,l));else if(_a(t),Zc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var O=f.dgst;f=O,l=Error(o(419)),l.stack="",l.digest=f,Kn({value:l,source:null,stack:null}),t=fc(e,t,a)}else if(Fe||Wl(e,t,a,!1),f=(a&e.childLanes)!==0,Fe||f){if(f=Re,f!==null&&(l=Qf(f,a),l!==0&&l!==j.retryLane))throw j.retryLane=l,hl(e,l),wt(f,e,l),sc;Gc(p)||Vi(),t=fc(e,t,a)}else Gc(p)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Le=Vt(p.nextSibling),it=t,me=!0,Oa=null,qt=!1,e!==null&&kd(t,e),t=oc(t,l.children),t.flags|=4096);return t}return i?(La(),p=l.fallback,i=t.mode,j=e.child,O=j.sibling,l=ia(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,O!==null?p=ia(O,p):(p=ml(p,i,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,ss(null,l),l=t.child,p=e.child.memoizedState,p===null?p=uc(a):(i=p.cachePool,i!==null?(j=$e._currentValue,i=i.parent!==j?{parent:j,pool:j}:i):i=Yd(),p={baseLanes:p.baseLanes|a,cachePool:i}),l.memoizedState=p,l.childLanes=cc(e,f,a),t.memoizedState=rc,ss(e.child,l)):(_a(t),a=e.child,e=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function oc(e,t){return t=Di({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Di(e,t){return e=At(22,e,null,t),e.lanes=0,e}function fc(e,t,a){return jl(t,e.child,null,a),e=oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ah(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Cu(e.return,t,a)}function dc(e,t,a,l,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=i,f.treeForkCount=u)}function lh(e,t,a){var l=t.pendingProps,i=l.revealOrder,u=l.tail;l=l.children;var f=Ge.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,Y(Ge,f),ut(e,t,l,a),l=me?Xn:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ah(e,a,t);else if(e.tag===19)ah(e,a,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(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&ji(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),dc(t,!1,i,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ji(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}dc(t,!0,a,null,u,l);break;case"together":dc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function da(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ba|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Wl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ia(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ia(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hi(e)))}function yb(e,t,a){switch(t.tag){case 3:at(t,t.stateNode.containerInfo),za(t,$e,e.memoizedState.cache),vl();break;case 27:case 5:G(t);break;case 4:at(t,t.stateNode.containerInfo);break;case 10:za(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(_a(t),t.flags|=128,null):(a&t.child.childLanes)!==0?th(e,t,a):(_a(t),e=da(e,t,a),e!==null?e.sibling:null);_a(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Wl(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return lh(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(Ge,Ge.current),l)break;return null;case 22:return t.lanes=0,J0(e,t,a,t.pendingProps);case 24:za(t,$e,e.memoizedState.cache)}return da(e,t,a)}function nh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!hc(e,a)&&(t.flags&128)===0)return Fe=!1,yb(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,me&&(t.flags&1048576)!==0&&Ud(t,Xn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=bl(t.elementType),t.type=e,typeof e=="function")xu(e)?(l=Sl(e,l),t.tag=1,t=P0(null,t,e,l,a)):(t.tag=0,t=ic(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===I){t.tag=11,t=X0(null,t,e,l,a);break e}else if(i===V){t.tag=14,t=K0(null,t,e,l,a);break e}}throw t=Se(e)||e,Error(o(306,t,""))}}return t;case 0:return ic(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=Sl(l,t.pendingProps),P0(e,t,l,i,a);case 3:e:{if(at(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,Du(e,t),es(t,l,null,a);var f=t.memoizedState;if(l=f.cache,za(t,$e,l),l!==u.cache&&Au(t,[$e],a,!0),Pn(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=eh(e,t,l,a);break e}else if(l!==i){i=kt(Error(o(424)),t),Kn(i),t=eh(e,t,l,a);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(Le=Vt(e.firstChild),it=t,me=!0,Oa=null,qt=!0,a=Jd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(vl(),l===i){t=da(e,t,a);break e}ut(e,t,l,a)}t=t.child}return t;case 26:return Ri(e,t),e===null?(a=vm(t.type,null,t.pendingProps,null))?t.memoizedState=a:me||(a=t.type,e=t.pendingProps,l=Ji(le.current).createElement(a),l[st]=t,l[pt]=e,ct(l,a,e),lt(l),t.stateNode=l):t.memoizedState=vm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return G(t),e===null&&me&&(l=t.stateNode=dm(t.type,t.pendingProps,le.current),it=t,qt=!0,i=Le,Ya(t.type)?(Xc=i,Le=Vt(l.firstChild)):Le=i),ut(e,t,t.pendingProps.children,a),Ri(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&me&&((i=l=Le)&&(l=Fb(l,t.type,t.pendingProps,qt),l!==null?(t.stateNode=l,it=t,Le=Vt(l.firstChild),qt=!1,i=!0):i=!1),i||Ma(t)),G(t),i=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,l=u.children,Qc(i,u)?l=null:f!==null&&Qc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=qu(e,t,fb,null,null,a),ys._currentValue=i),Ri(e,t),ut(e,t,l,a),t.child;case 6:return e===null&&me&&((e=a=Le)&&(a=Wb(a,t.pendingProps,qt),a!==null?(t.stateNode=a,it=t,Le=null,e=!0):e=!1),e||Ma(t)),null;case 13:return th(e,t,a);case 4:return at(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=jl(t,null,l,a):ut(e,t,l,a),t.child;case 11:return X0(e,t,t.type,t.pendingProps,a);case 7:return ut(e,t,t.pendingProps,a),t.child;case 8:return ut(e,t,t.pendingProps.children,a),t.child;case 12:return ut(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,za(t,t.type,l.value),ut(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,gl(t),i=rt(i),l=l(i),t.flags|=1,ut(e,t,l,a),t.child;case 14:return K0(e,t,t.type,t.pendingProps,a);case 15:return $0(e,t,t.type,t.pendingProps,a);case 19:return lh(e,t,a);case 31:return bb(e,t,a);case 22:return J0(e,t,a,t.pendingProps);case 24:return gl(t),l=rt($e),e===null?(i=zu(),i===null&&(i=Re,u=Ou(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:l,cache:i},Ru(t),za(t,$e,i)):((e.lanes&a)!==0&&(Du(e,t),es(t,null,null,a),Pn()),i=e.memoizedState,u=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),za(t,$e,l)):(l=u.cache,za(t,$e,l),l!==i.cache&&Au(t,[$e],a,!0))),ut(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ha(e){e.flags|=4}function mc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Th())e.flags|=8192;else throw yl=gi,Tu}else e.flags&=-16777217}function sh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!ym(t))if(Th())e.flags|=8192;else throw yl=gi,Tu}function _i(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bf():536870912,e.lanes|=t,on|=t)}function is(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ue(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function jb(e,t,a){var l=t.pendingProps;switch(wu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(t),null;case 1:return Ue(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca($e),Ne(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Fl(t)?ha(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Nu())),Ue(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(ha(t),u!==null?(Ue(t),sh(t,u)):(Ue(t),mc(t,i,null,l,a))):u?u!==e.memoizedState?(ha(t),Ue(t),sh(t,u)):(Ue(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ha(t),Ue(t),mc(t,i,e,l,a)),null;case 27:if(Ae(t),a=le.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}e=$.current,Fl(t)?Bd(t):(e=dm(i,l,a),t.stateNode=e,ha(t))}return Ue(t),null;case 5:if(Ae(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ue(t),null}if(u=$.current,Fl(t))Bd(t);else{var f=Ji(le.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}u[st]=t,u[pt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(ct(u,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ha(t)}}return Ue(t),mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ha(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=le.current,Fl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=it,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[st]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||tm(e.nodeValue,a)),e||Ma(t,!0)}else e=Ji(e).createTextNode(l),e[st]=t,t.stateNode=e}return Ue(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Fl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[st]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),e=!1}else a=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ue(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Fl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[st]=t}else vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ue(t),i=!1}else i=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_i(t,t.updateQueue),Ue(t),null);case 4:return Ne(),e===null&&Uc(t.stateNode.containerInfo),Ue(t),null;case 10:return ca(t.type),Ue(t),null;case 19:if(H(Ge),l=t.memoizedState,l===null)return Ue(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)is(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ji(e),u!==null){for(t.flags|=128,is(l,!1),e=u.updateQueue,t.updateQueue=e,_i(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Dd(a,e),a=a.sibling;return Y(Ge,Ge.current&1|2),me&&ra(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&St()>Hi&&(t.flags|=128,i=!0,is(l,!1),t.lanes=4194304)}else{if(!i)if(e=ji(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,_i(t,e),is(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!me)return Ue(t),null}else 2*St()-l.renderingStartTime>Hi&&a!==536870912&&(t.flags|=128,i=!0,is(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=St(),e.sibling=null,a=Ge.current,Y(Ge,i?a&1|2:a&1),me&&ra(t,l.treeForkCount),e):(Ue(t),null);case 22:case 23:return Mt(t),ku(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Ue(t),t.subtreeFlags&6&&(t.flags|=8192)):Ue(t),a=t.updateQueue,a!==null&&_i(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&H(xl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ca($e),Ue(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function wb(e,t){switch(wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca($e),Ne(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ae(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(o(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Ge),null;case 4:return Ne(),null;case 10:return ca(t.type),null;case 22:case 23:return Mt(t),ku(),e!==null&&H(xl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca($e),null;case 25:return null;default:return null}}function ih(e,t){switch(wu(t),t.tag){case 3:ca($e),Ne();break;case 26:case 27:case 5:Ae(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:H(Ge);break;case 10:ca(t.type);break;case 22:case 23:Mt(t),ku(),e!==null&&H(xl);break;case 24:ca($e)}}function rs(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var u=a.create,f=a.inst;l=u(),f.destroy=l}a=a.next}while(a!==i)}}catch(p){Ce(t,t.return,p)}}function Ua(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=t;var j=a,O=p;try{O()}catch(D){Ce(i,j,D)}}}l=l.next}while(l!==u)}}catch(D){Ce(t,t.return,D)}}function rh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Wd(t,a)}catch(l){Ce(e,e.return,l)}}}function uh(e,t,a){a.props=Sl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function us(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ce(e,t,i)}}function It(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ce(e,t,i)}else a.current=null}function ch(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ce(e,e.return,i)}}function vc(e,t,a){try{var l=e.stateNode;Gb(l,e.type,a,t),l[pt]=t}catch(i){Ce(e,e.return,i)}}function oh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ya(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oh(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&&Ya(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 gc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=na));else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(gc(e,t,a),e=e.sibling;e!==null;)gc(e,t,a),e=e.sibling}function Li(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ya(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Li(e,t,a),e=e.sibling;e!==null;)Li(e,t,a),e=e.sibling}function fh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ct(t,l,a),t[st]=e,t[pt]=a}catch(u){Ce(e,e.return,u)}}var ma=!1,We=!1,xc=!1,dh=typeof WeakSet=="function"?WeakSet:Set,nt=null;function Sb(e,t){if(e=e.containerInfo,Hc=ar,e=Nd(e),fu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var f=0,p=-1,j=-1,O=0,D=0,k=e,z=null;t:for(;;){for(var T;k!==a||i!==0&&k.nodeType!==3||(p=f+i),k!==u||l!==0&&k.nodeType!==3||(j=f+l),k.nodeType===3&&(f+=k.nodeValue.length),(T=k.firstChild)!==null;)z=k,k=T;for(;;){if(k===e)break t;if(z===a&&++O===i&&(p=f),z===u&&++D===l&&(j=f),(T=k.nextSibling)!==null)break;k=z,z=k.parentNode}k=T}a=p===-1||j===-1?null:{start:p,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(qc={focusedElem:e,selectionRange:a},ar=!1,nt=t;nt!==null;)if(t=nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,nt=e;else for(;nt!==null;){switch(t=nt,u=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(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var K=Sl(a.type,i);e=l.getSnapshotBeforeUpdate(K,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(P){Ce(a,a.return,P)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Yc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,nt=e;break}nt=t.return}}function hh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:pa(e,a),l&4&&rs(5,a);break;case 1:if(pa(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Ce(a,a.return,f)}else{var i=Sl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ce(a,a.return,f)}}l&64&&rh(a),l&512&&us(a,a.return);break;case 3:if(pa(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Wd(e,t)}catch(f){Ce(a,a.return,f)}}break;case 27:t===null&&l&4&&fh(a);case 26:case 5:pa(e,a),t===null&&l&4&&ch(a),l&512&&us(a,a.return);break;case 12:pa(e,a);break;case 31:pa(e,a),l&4&&ph(e,a);break;case 13:pa(e,a),l&4&&gh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Rb.bind(null,a),Ib(e,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){t=t!==null&&t.memoizedState!==null||We,i=ma;var u=We;ma=l,(We=t)&&!u?ga(e,a,(a.subtreeFlags&8772)!==0):pa(e,a),ma=i,We=u}break;case 30:break;default:pa(e,a)}}function mh(e){var t=e.alternate;t!==null&&(e.alternate=null,mh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$r(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 ke=null,xt=!1;function va(e,t,a){for(a=a.child;a!==null;)vh(e,t,a),a=a.sibling}function vh(e,t,a){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Rn,a)}catch{}switch(a.tag){case 26:We||It(a,t),va(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:We||It(a,t);var l=ke,i=xt;Ya(a.type)&&(ke=a.stateNode,xt=!1),va(e,t,a),gs(a.stateNode),ke=l,xt=i;break;case 5:We||It(a,t);case 6:if(l=ke,i=xt,ke=null,va(e,t,a),ke=l,xt=i,ke!==null)if(xt)try{(ke.nodeType===9?ke.body:ke.nodeName==="HTML"?ke.ownerDocument.body:ke).removeChild(a.stateNode)}catch(u){Ce(a,t,u)}else try{ke.removeChild(a.stateNode)}catch(u){Ce(a,t,u)}break;case 18:ke!==null&&(xt?(e=ke,rm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),xn(e)):rm(ke,a.stateNode));break;case 4:l=ke,i=xt,ke=a.stateNode.containerInfo,xt=!0,va(e,t,a),ke=l,xt=i;break;case 0:case 11:case 14:case 15:Ua(2,a,t),We||Ua(4,a,t),va(e,t,a);break;case 1:We||(It(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&uh(a,t,l)),va(e,t,a);break;case 21:va(e,t,a);break;case 22:We=(l=We)||a.memoizedState!==null,va(e,t,a),We=l;break;default:va(e,t,a)}}function ph(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xn(e)}catch(a){Ce(t,t.return,a)}}}function gh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xn(e)}catch(a){Ce(t,t.return,a)}}function Nb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dh),t;default:throw Error(o(435,e.tag))}}function Ui(e,t){var a=Nb(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=Db.bind(null,e,l);l.then(i,i)}})}function bt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],u=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(Ya(p.type)){ke=p.stateNode,xt=!1;break e}break;case 5:ke=p.stateNode,xt=!1;break e;case 3:case 4:ke=p.stateNode.containerInfo,xt=!0;break e}p=p.return}if(ke===null)throw Error(o(160));vh(u,f,i),ke=null,xt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xh(t,e),t=t.sibling}var Xt=null;function xh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),yt(e),l&4&&(Ua(3,e,e.return),rs(3,e),Ua(5,e,e.return));break;case 1:bt(t,e),yt(e),l&512&&(We||a===null||It(a,a.return)),l&64&&ma&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=Xt;if(bt(t,e),yt(e),l&512&&(We||a===null||It(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":u=i.getElementsByTagName("title")[0],(!u||u[Ln]||u[st]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),ct(u,l,a),u[st]=e,lt(u),l=u;break e;case"link":var f=xm("link","href",i).get(l+(a.href||""));if(f){for(var p=0;p<f.length;p++)if(u=f[p],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(p,1);break t}}u=i.createElement(l),ct(u,l,a),i.head.appendChild(u);break;case"meta":if(f=xm("meta","content",i).get(l+(a.content||""))){for(p=0;p<f.length;p++)if(u=f[p],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(p,1);break t}}u=i.createElement(l),ct(u,l,a),i.head.appendChild(u);break;default:throw Error(o(468,l))}u[st]=e,lt(u),l=u}e.stateNode=l}else bm(i,e.type,e.stateNode);else e.stateNode=gm(i,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?bm(i,e.type,e.stateNode):gm(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&vc(e,e.memoizedProps,a.memoizedProps)}break;case 27:bt(t,e),yt(e),l&512&&(We||a===null||It(a,a.return)),a!==null&&l&4&&vc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(bt(t,e),yt(e),l&512&&(We||a===null||It(a,a.return)),e.flags&32){i=e.stateNode;try{ql(i,"")}catch(K){Ce(e,e.return,K)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,vc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(xc=!0);break;case 6:if(bt(t,e),yt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(K){Ce(e,e.return,K)}}break;case 3:if(Ii=null,i=Xt,Xt=Fi(t.containerInfo),bt(t,e),Xt=i,yt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{xn(t.containerInfo)}catch(K){Ce(e,e.return,K)}xc&&(xc=!1,bh(e));break;case 4:l=Xt,Xt=Fi(e.stateNode.containerInfo),bt(t,e),yt(e),Xt=l;break;case 12:bt(t,e),yt(e);break;case 31:bt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ui(e,l)));break;case 13:bt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Bi=St()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ui(e,l)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,O=ma,D=We;if(ma=O||i,We=D||j,bt(t,e),We=D,ma=O,yt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||ma||We||Nl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(u=j.stateNode,i)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=j.stateNode;var k=j.memoizedProps.style,z=k!=null&&k.hasOwnProperty("display")?k.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(K){Ce(j,j.return,K)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(K){Ce(j,j.return,K)}}}else if(t.tag===18){if(a===null){j=t;try{var T=j.stateNode;i?um(T,!0):um(j.stateNode,!1)}catch(K){Ce(j,j.return,K)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ui(e,a))));break;case 19:bt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ui(e,l)));break;case 30:break;case 21:break;default:bt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(oh(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,u=pc(e);Li(e,u,i);break;case 5:var f=a.stateNode;a.flags&32&&(ql(f,""),a.flags&=-33);var p=pc(e);Li(e,p,f);break;case 3:case 4:var j=a.stateNode.containerInfo,O=pc(e);gc(e,O,j);break;default:throw Error(o(161))}}catch(D){Ce(e,e.return,D)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)hh(e,t.alternate,t),t=t.sibling}function Nl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),Nl(t);break;case 1:It(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&uh(t,t.return,a),Nl(t);break;case 27:gs(t.stateNode);case 26:case 5:It(t,t.return),Nl(t);break;case 22:t.memoizedState===null&&Nl(t);break;case 30:Nl(t);break;default:Nl(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:ga(i,u,a),rs(4,u);break;case 1:if(ga(i,u,a),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(O){Ce(l,l.return,O)}if(l=u,i=l.updateQueue,i!==null){var p=l.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)Fd(j[i],p)}catch(O){Ce(l,l.return,O)}}a&&f&64&&rh(u),us(u,u.return);break;case 27:fh(u);case 26:case 5:ga(i,u,a),a&&l===null&&f&4&&ch(u),us(u,u.return);break;case 12:ga(i,u,a);break;case 31:ga(i,u,a),a&&f&4&&ph(i,u);break;case 13:ga(i,u,a),a&&f&4&&gh(i,u);break;case 22:u.memoizedState===null&&ga(i,u,a),us(u,u.return);break;case 30:break;default:ga(i,u,a)}t=t.sibling}}function bc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&$n(a))}function yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$n(e))}function Kt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yh(e,t,a,l),t=t.sibling}function yh(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,a,l),i&2048&&rs(9,t);break;case 1:Kt(e,t,a,l);break;case 3:Kt(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$n(e)));break;case 12:if(i&2048){Kt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,p=u.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Ce(t,t.return,j)}}else Kt(e,t,a,l);break;case 31:Kt(e,t,a,l);break;case 13:Kt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?Kt(e,t,a,l):cs(e,t):u._visibility&2?Kt(e,t,a,l):(u._visibility|=2,rn(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&bc(f,t);break;case 24:Kt(e,t,a,l),i&2048&&yc(t.alternate,t);break;default:Kt(e,t,a,l)}}function rn(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,p=a,j=l,O=f.flags;switch(f.tag){case 0:case 11:case 15:rn(u,f,p,j,i),rs(8,f);break;case 23:break;case 22:var D=f.stateNode;f.memoizedState!==null?D._visibility&2?rn(u,f,p,j,i):cs(u,f):(D._visibility|=2,rn(u,f,p,j,i)),i&&O&2048&&bc(f.alternate,f);break;case 24:rn(u,f,p,j,i),i&&O&2048&&yc(f.alternate,f);break;default:rn(u,f,p,j,i)}t=t.sibling}}function cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:cs(a,l),i&2048&&bc(l.alternate,l);break;case 24:cs(a,l),i&2048&&yc(l.alternate,l);break;default:cs(a,l)}t=t.sibling}}var os=8192;function un(e,t,a){if(e.subtreeFlags&os)for(e=e.child;e!==null;)jh(e,t,a),e=e.sibling}function jh(e,t,a){switch(e.tag){case 26:un(e,t,a),e.flags&os&&e.memoizedState!==null&&o2(a,Xt,e.memoizedState,e.memoizedProps);break;case 5:un(e,t,a);break;case 3:case 4:var l=Xt;Xt=Fi(e.stateNode.containerInfo),un(e,t,a),Xt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=os,os=16777216,un(e,t,a),os=l):un(e,t,a));break;default:un(e,t,a)}}function wh(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 fs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];nt=l,Nh(l,e)}wh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sh(e),e=e.sibling}function Sh(e){switch(e.tag){case 0:case 11:case 15:fs(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:fs(e);break;case 12:fs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ki(e)):fs(e);break;default:fs(e)}}function ki(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];nt=l,Nh(l,e)}wh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),ki(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ki(t));break;default:ki(t)}e=e.sibling}}function Nh(e,t){for(;nt!==null;){var a=nt;switch(a.tag){case 0:case 11:case 15:Ua(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:$n(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,nt=l;else e:for(a=e;nt!==null;){l=nt;var i=l.sibling,u=l.return;if(mh(l),l===a){nt=null;break e}if(i!==null){i.return=u,nt=i;break e}nt=u}}}var Eb={getCacheForType:function(e){var t=rt($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return rt($e).controller.signal}},Cb=typeof WeakMap=="function"?WeakMap:Map,je=0,Re=null,ce=null,fe=0,Ee=0,zt=null,ka=!1,cn=!1,jc=!1,xa=0,Ve=0,Ba=0,El=0,wc=0,Tt=0,on=0,ds=null,jt=null,Sc=!1,Bi=0,Eh=0,Hi=1/0,qi=null,Ha=null,tt=0,qa=null,fn=null,ba=0,Nc=0,Ec=null,Ch=null,hs=0,Cc=null;function Rt(){return(je&2)!==0&&fe!==0?fe&-fe:R.T!==null?Rc():Vf()}function Ah(){if(Tt===0)if((fe&536870912)===0||me){var e=$s;$s<<=1,($s&3932160)===0&&($s=262144),Tt=e}else Tt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Tt}function wt(e,t,a){(e===Re&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(dn(e,0),Qa(e,fe,Tt,!1)),_n(e,a),((je&2)===0||e!==Re)&&(e===Re&&((je&2)===0&&(El|=a),Ve===4&&Qa(e,fe,Tt,!1)),Pt(e))}function Oh(e,t,a){if((je&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Dn(e,t),i=l?Mb(e,t):Oc(e,t,!0),u=l;do{if(i===0){cn&&!l&&Qa(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Ab(a)){i=Oc(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;i=ds;var j=p.current.memoizedState.isDehydrated;if(j&&(dn(p,f).flags|=256),f=Oc(p,f,!1),f!==2){if(jc&&!j){p.errorRecoveryDisabledLanes|=u,El|=u,i=4;break e}u=jt,jt=i,u!==null&&(jt===null?jt=u:jt.push.apply(jt,u))}i=f}if(u=!1,i!==2)continue}}if(i===1){dn(e,0),Qa(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Qa(l,t,Tt,!ka);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Bi+300-St(),10<i)){if(Qa(l,t,Tt,!ka),Fs(l,0,!0)!==0)break e;ba=t,l.timeoutHandle=sm(Mh.bind(null,l,a,jt,qi,Sc,t,Tt,El,on,ka,u,"Throttled",-0,0),i);break e}Mh(l,a,jt,qi,Sc,t,Tt,El,on,ka,u,null,-0,0)}}break}while(!0);Pt(e)}function Mh(e,t,a,l,i,u,f,p,j,O,D,k,z,T){if(e.timeoutHandle=-1,k=t.subtreeFlags,k&8192||(k&16785408)===16785408){k={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},jh(t,u,k);var K=(u&62914560)===u?Bi-St():(u&4194048)===u?Eh-St():0;if(K=f2(k,K),K!==null){ba=u,e.cancelPendingCommit=K(kh.bind(null,e,t,u,a,l,i,f,p,j,D,k,null,z,T)),Qa(e,u,f,!O);return}}kh(e,t,u,a,l,i,f,p,j)}function Ab(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],u=i.getSnapshot;i=i.value;try{if(!Ct(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Qa(e,t,a,l){t&=~wc,t&=~El,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-Et(i),f=1<<u;l[u]=-1,i&=~f}a!==0&&Hf(e,a,t)}function Qi(){return(je&6)===0?(ms(0),!1):!0}function Ac(){if(ce!==null){if(Ee===0)var e=ce.return;else e=ce,ua=pl=null,Yu(e),tn=null,Fn=0,e=ce;for(;e!==null;)ih(e.alternate,e),e=e.return;ce=null}}function dn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Kb(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ba=0,Ac(),Re=e,ce=a=ia(e.current,null),fe=t,Ee=0,zt=null,ka=!1,cn=Dn(e,t),jc=!1,on=Tt=wc=El=Ba=Ve=0,jt=ds=null,Sc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Et(l),u=1<<i;t|=e[i],l&=~u}return xa=t,ui(),a}function zh(e,t){ne=null,R.H=ns,t===en||t===pi?(t=Xd(),Ee=3):t===Tu?(t=Xd(),Ee=4):Ee=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zt=t,ce===null&&(Ve=1,zi(e,kt(t,e.current)))}function Th(){var e=Ot.current;return e===null?!0:(fe&4194048)===fe?Qt===null:(fe&62914560)===fe||(fe&536870912)!==0?e===Qt:!1}function Rh(){var e=R.H;return R.H=ns,e===null?ns:e}function Dh(){var e=R.A;return R.A=Eb,e}function Vi(){Ve=4,ka||(fe&4194048)!==fe&&Ot.current!==null||(cn=!0),(Ba&134217727)===0&&(El&134217727)===0||Re===null||Qa(Re,fe,Tt,!1)}function Oc(e,t,a){var l=je;je|=2;var i=Rh(),u=Dh();(Re!==e||fe!==t)&&(qi=null,dn(e,t)),t=!1;var f=Ve;e:do try{if(Ee!==0&&ce!==null){var p=ce,j=zt;switch(Ee){case 8:Ac(),f=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var O=Ee;if(Ee=0,zt=null,hn(e,p,j,O),a&&cn){f=0;break e}break;default:O=Ee,Ee=0,zt=null,hn(e,p,j,O)}}Ob(),f=Ve;break}catch(D){zh(e,D)}while(!0);return t&&e.shellSuspendCounter++,ua=pl=null,je=l,R.H=i,R.A=u,ce===null&&(Re=null,fe=0,ui()),f}function Ob(){for(;ce!==null;)_h(ce)}function Mb(e,t){var a=je;je|=2;var l=Rh(),i=Dh();Re!==e||fe!==t?(qi=null,Hi=St()+500,dn(e,t)):cn=Dn(e,t);e:do try{if(Ee!==0&&ce!==null){t=ce;var u=zt;t:switch(Ee){case 1:Ee=0,zt=null,hn(e,t,u,1);break;case 2:case 9:if(Gd(u)){Ee=0,zt=null,Lh(t);break}t=function(){Ee!==2&&Ee!==9||Re!==e||(Ee=7),Pt(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Gd(u)?(Ee=0,zt=null,Lh(t)):(Ee=0,zt=null,hn(e,t,u,7));break;case 5:var f=null;switch(ce.tag){case 26:f=ce.memoizedState;case 5:case 27:var p=ce;if(f?ym(f):p.stateNode.complete){Ee=0,zt=null;var j=p.sibling;if(j!==null)ce=j;else{var O=p.return;O!==null?(ce=O,Yi(O)):ce=null}break t}}Ee=0,zt=null,hn(e,t,u,5);break;case 6:Ee=0,zt=null,hn(e,t,u,6);break;case 8:Ac(),Ve=6;break e;default:throw Error(o(462))}}zb();break}catch(D){zh(e,D)}while(!0);return ua=pl=null,R.H=l,R.A=i,je=a,ce!==null?0:(Re=null,fe=0,ui(),Ve)}function zb(){for(;ce!==null&&!Pg();)_h(ce)}function _h(e){var t=nh(e.alternate,e,xa);e.memoizedProps=e.pendingProps,t===null?Yi(e):ce=t}function Lh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=I0(a,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=I0(a,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:Yu(t);default:ih(a,t),t=ce=Dd(t,xa),t=nh(a,t,xa)}e.memoizedProps=e.pendingProps,t===null?Yi(e):ce=t}function hn(e,t,a,l){ua=pl=null,Yu(t),tn=null,Fn=0;var i=t.return;try{if(xb(e,i,t,a,fe)){Ve=1,zi(e,kt(a,e.current)),ce=null;return}}catch(u){if(i!==null)throw ce=i,u;Ve=1,zi(e,kt(a,e.current)),ce=null;return}t.flags&32768?(me||l===1?e=!0:cn||(fe&536870912)!==0?e=!1:(ka=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ot.current,l!==null&&l.tag===13&&(l.flags|=16384))),Uh(t,e)):Yi(t)}function Yi(e){var t=e;do{if((t.flags&32768)!==0){Uh(t,ka);return}e=t.return;var a=jb(t.alternate,t,xa);if(a!==null){ce=a;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);Ve===0&&(Ve=5)}function Uh(e,t){do{var a=wb(e.alternate,e);if(a!==null){a.flags&=32767,ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=a}while(e!==null);Ve=6,ce=null}function kh(e,t,a,l,i,u,f,p,j){e.cancelPendingCommit=null;do Gi();while(tt!==0);if((je&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=pu,cx(e,a,u,f,p,j),e===Re&&(ce=Re=null,fe=0),fn=t,qa=e,ba=a,Nc=u,Ec=i,Ch=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,_b(Xs,function(){return Vh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,i=q.p,q.p=2,f=je,je|=4;try{Sb(e,t,a)}finally{je=f,q.p=i,R.T=l}}tt=1,Bh(),Hh(),qh()}}function Bh(){if(tt===1){tt=0;var e=qa,t=fn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null;var l=q.p;q.p=2;var i=je;je|=4;try{xh(t,e);var u=qc,f=Nd(e.containerInfo),p=u.focusedElem,j=u.selectionRange;if(f!==p&&p&&p.ownerDocument&&Sd(p.ownerDocument.documentElement,p)){if(j!==null&&fu(p)){var O=j.start,D=j.end;if(D===void 0&&(D=O),"selectionStart"in p)p.selectionStart=O,p.selectionEnd=Math.min(D,p.value.length);else{var k=p.ownerDocument||document,z=k&&k.defaultView||window;if(z.getSelection){var T=z.getSelection(),K=p.textContent.length,P=Math.min(j.start,K),ze=j.end===void 0?P:Math.min(j.end,K);!T.extend&&P>ze&&(f=ze,ze=P,P=f);var C=wd(p,P),w=wd(p,ze);if(C&&w&&(T.rangeCount!==1||T.anchorNode!==C.node||T.anchorOffset!==C.offset||T.focusNode!==w.node||T.focusOffset!==w.offset)){var A=k.createRange();A.setStart(C.node,C.offset),T.removeAllRanges(),P>ze?(T.addRange(A),T.extend(w.node,w.offset)):(A.setEnd(w.node,w.offset),T.addRange(A))}}}}for(k=[],T=p;T=T.parentNode;)T.nodeType===1&&k.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<k.length;p++){var U=k[p];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}ar=!!Hc,qc=Hc=null}finally{je=i,q.p=l,R.T=a}}e.current=t,tt=2}}function Hh(){if(tt===2){tt=0;var e=qa,t=fn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=R.T,R.T=null;var l=q.p;q.p=2;var i=je;je|=4;try{hh(e,t.alternate,t)}finally{je=i,q.p=l,R.T=a}}tt=3}}function qh(){if(tt===4||tt===3){tt=0,ex();var e=qa,t=fn,a=ba,l=Ch;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,fn=qa=null,Qh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ha=null),Xr(a),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Rn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,i=q.p,q.p=2,R.T=null;try{for(var u=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];u(p.value,{componentStack:p.stack})}}finally{R.T=t,q.p=i}}(ba&3)!==0&&Gi(),Pt(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===Cc?hs++:(hs=0,Cc=e):hs=0,ms(0)}}function Qh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$n(t)))}function Gi(){return Bh(),Hh(),qh(),Vh()}function Vh(){if(tt!==5)return!1;var e=qa,t=Nc;Nc=0;var a=Xr(ba),l=R.T,i=q.p;try{q.p=32>a?32:a,R.T=null,a=Ec,Ec=null;var u=qa,f=ba;if(tt=0,fn=qa=null,ba=0,(je&6)!==0)throw Error(o(331));var p=je;if(je|=4,Sh(u.current),yh(u,u.current,f,a),je=p,ms(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Rn,u)}catch{}return!0}finally{q.p=i,R.T=l,Qh(e,t)}}function Yh(e,t,a){t=kt(a,t),t=nc(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(_n(e,2),Pt(e))}function Ce(e,t,a){if(e.tag===3)Yh(e,e,a);else for(;t!==null;){if(t.tag===3){Yh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){e=kt(a,e),a=G0(2),l=Da(t,a,2),l!==null&&(Z0(a,l,t,e),_n(l,2),Pt(l));break}}t=t.return}}function Mc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Cb;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(jc=!0,i.add(a),e=Tb.bind(null,e,t,a),t.then(e,e))}function Tb(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Re===e&&(fe&a)===a&&(Ve===4||Ve===3&&(fe&62914560)===fe&&300>St()-Bi?(je&2)===0&&dn(e,0):wc|=a,on===fe&&(on=0)),Pt(e)}function Gh(e,t){t===0&&(t=Bf()),e=hl(e,t),e!==null&&(_n(e,t),Pt(e))}function Rb(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Gh(e,a)}function Db(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Gh(e,a)}function _b(e,t){return Vr(e,t)}var Zi=null,mn=null,zc=!1,Xi=!1,Tc=!1,Va=0;function Pt(e){e!==mn&&e.next===null&&(mn===null?Zi=mn=e:mn=mn.next=e),Xi=!0,zc||(zc=!0,Ub())}function ms(e,t){if(!Tc&&Xi){Tc=!0;do for(var a=!1,l=Zi;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var u=0;else{var f=l.suspendedLanes,p=l.pingedLanes;u=(1<<31-Et(42|e)+1)-1,u&=i&~(f&~p),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,$h(l,u))}else u=fe,u=Fs(l,l===Re?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||Dn(l,u)||(a=!0,$h(l,u));l=l.next}while(a);Tc=!1}}function Lb(){Zh()}function Zh(){Xi=zc=!1;var e=0;Va!==0&&Xb()&&(e=Va);for(var t=St(),a=null,l=Zi;l!==null;){var i=l.next,u=Xh(l,t);u===0?(l.next=null,a===null?Zi=i:a.next=i,i===null&&(mn=a)):(a=l,(e!==0||(u&3)!==0)&&(Xi=!0)),l=i}tt!==0&&tt!==5||ms(e),Va!==0&&(Va=0)}function Xh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-Et(u),p=1<<f,j=i[f];j===-1?((p&a)===0||(p&l)!==0)&&(i[f]=ux(p,t)):j<=t&&(e.expiredLanes|=p),u&=~p}if(t=Re,a=fe,a=Fs(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Yr(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Dn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Yr(l),Xr(a)){case 2:case 8:a=Uf;break;case 32:a=Xs;break;case 268435456:a=kf;break;default:a=Xs}return l=Kh.bind(null,e),a=Vr(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Yr(l),e.callbackPriority=2,e.callbackNode=null,2}function Kh(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Gi()&&e.callbackNode!==a)return null;var l=fe;return l=Fs(e,e===Re?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Oh(e,l,t),Xh(e,St()),e.callbackNode!=null&&e.callbackNode===a?Kh.bind(null,e):null)}function $h(e,t){if(Gi())return null;Oh(e,t,!0)}function Ub(){$b(function(){(je&6)!==0?Vr(Lf,Lb):Zh()})}function Rc(){if(Va===0){var e=Il;e===0&&(e=Ks,Ks<<=1,(Ks&261888)===0&&(Ks=256)),Va=e}return Va}function Jh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ei(""+e)}function Fh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function kb(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var u=Jh((i[pt]||null).action),f=l.submitter;f&&(t=(t=f[pt]||null)?Jh(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var p=new ni("action","action",null,l,i);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Va!==0){var j=f?Fh(i,f):new FormData(i);Iu(a,{pending:!0,data:j,method:i.method,action:u},null,j)}}else typeof u=="function"&&(p.preventDefault(),j=f?Fh(i,f):new FormData(i),Iu(a,{pending:!0,data:j,method:i.method,action:u},u,j))},currentTarget:i}]})}}for(var Dc=0;Dc<vu.length;Dc++){var _c=vu[Dc],Bb=_c.toLowerCase(),Hb=_c[0].toUpperCase()+_c.slice(1);Zt(Bb,"on"+Hb)}Zt(Ad,"onAnimationEnd"),Zt(Od,"onAnimationIteration"),Zt(Md,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(tb,"onTransitionRun"),Zt(ab,"onTransitionStart"),Zt(lb,"onTransitionCancel"),Zt(zd,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),cl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),cl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),cl("onBeforeInput",["compositionend","keypress","textInput","paste"]),cl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),cl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),cl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vs="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(" "),qb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vs));function Wh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],j=p.instance,O=p.currentTarget;if(p=p.listener,j!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=O;try{u(i)}catch(D){ri(D)}i.currentTarget=null,u=j}else for(f=0;f<l.length;f++){if(p=l[f],j=p.instance,O=p.currentTarget,p=p.listener,j!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=O;try{u(i)}catch(D){ri(D)}i.currentTarget=null,u=j}}}}function oe(e,t){var a=t[Kr];a===void 0&&(a=t[Kr]=new Set);var l=e+"__bubble";a.has(l)||(Ih(t,e,2,!1),a.add(l))}function Lc(e,t,a){var l=0;t&&(l|=4),Ih(a,e,l,t)}var Ki="_reactListening"+Math.random().toString(36).slice(2);function Uc(e){if(!e[Ki]){e[Ki]=!0,Zf.forEach(function(a){a!=="selectionchange"&&(qb.has(a)||Lc(a,!1,e),Lc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ki]||(t[Ki]=!0,Lc("selectionchange",!1,t))}}function Ih(e,t,a,l){switch(Am(t)){case 2:var i=m2;break;case 8:i=v2;break;default:i=Wc}a=i.bind(null,t,a,e),i=void 0,!au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function kc(e,t,a,l,i){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=l.return;f!==null;){var j=f.tag;if((j===3||j===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=Ll(p),f===null)return;if(j=f.tag,j===5||j===6||j===26||j===27){l=u=f;continue e}p=p.parentNode}}l=l.return}ld(function(){var O=u,D=eu(a),k=[];e:{var z=Td.get(e);if(z!==void 0){var T=ni,K=e;switch(e){case"keypress":if(ai(a)===0)break e;case"keydown":case"keyup":T=Dx;break;case"focusin":K="focus",T=iu;break;case"focusout":K="blur",T=iu;break;case"beforeblur":case"afterblur":T=iu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=jx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=Ux;break;case Ad:case Od:case Md:T=Nx;break;case zd:T=Bx;break;case"scroll":case"scrollend":T=bx;break;case"wheel":T=qx;break;case"copy":case"cut":case"paste":T=Cx;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=ud;break;case"toggle":case"beforetoggle":T=Vx}var P=(t&4)!==0,ze=!P&&(e==="scroll"||e==="scrollend"),C=P?z!==null?z+"Capture":null:z;P=[];for(var w=O,A;w!==null;){var U=w;if(A=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||A===null||C===null||(U=kn(w,C),U!=null&&P.push(ps(w,U,A))),ze)break;w=w.return}0<P.length&&(z=new T(z,K,null,a,D),k.push({event:z,listeners:P}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",z&&a!==Pr&&(K=a.relatedTarget||a.fromElement)&&(Ll(K)||K[_l]))break e;if((T||z)&&(z=D.window===D?D:(z=D.ownerDocument)?z.defaultView||z.parentWindow:window,T?(K=a.relatedTarget||a.toElement,T=O,K=K?Ll(K):null,K!==null&&(ze=m(K),P=K.tag,K!==ze||P!==5&&P!==27&&P!==6)&&(K=null)):(T=null,K=O),T!==K)){if(P=id,U="onMouseLeave",C="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(P=ud,U="onPointerLeave",C="onPointerEnter",w="pointer"),ze=T==null?z:Un(T),A=K==null?z:Un(K),z=new P(U,w+"leave",T,a,D),z.target=ze,z.relatedTarget=A,U=null,Ll(D)===O&&(P=new P(C,w+"enter",K,a,D),P.target=A,P.relatedTarget=ze,U=P),ze=U,T&&K)t:{for(P=Qb,C=T,w=K,A=0,U=C;U;U=P(U))A++;U=0;for(var W=w;W;W=P(W))U++;for(;0<A-U;)C=P(C),A--;for(;0<U-A;)w=P(w),U--;for(;A--;){if(C===w||w!==null&&C===w.alternate){P=C;break t}C=P(C),w=P(w)}P=null}else P=null;T!==null&&Ph(k,z,T,P,!1),K!==null&&ze!==null&&Ph(k,ze,K,P,!0)}}e:{if(z=O?Un(O):window,T=z.nodeName&&z.nodeName.toLowerCase(),T==="select"||T==="input"&&z.type==="file")var be=pd;else if(md(z))if(gd)be=Ix;else{be=Fx;var J=Jx}else T=z.nodeName,!T||T.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?O&&Ir(O.elementType)&&(be=pd):be=Wx;if(be&&(be=be(e,O))){vd(k,be,a,D);break e}J&&J(e,z,O),e==="focusout"&&O&&z.type==="number"&&O.memoizedProps.value!=null&&Wr(z,"number",z.value)}switch(J=O?Un(O):window,e){case"focusin":(md(J)||J.contentEditable==="true")&&(Gl=J,du=O,Zn=null);break;case"focusout":Zn=du=Gl=null;break;case"mousedown":hu=!0;break;case"contextmenu":case"mouseup":case"dragend":hu=!1,Ed(k,a,D);break;case"selectionchange":if(eb)break;case"keydown":case"keyup":Ed(k,a,D)}var se;if(uu)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Yl?dd(e,a)&&(de="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(de="onCompositionStart");de&&(cd&&a.locale!=="ko"&&(Yl||de!=="onCompositionStart"?de==="onCompositionEnd"&&Yl&&(se=nd()):(Ca=D,lu="value"in Ca?Ca.value:Ca.textContent,Yl=!0)),J=$i(O,de),0<J.length&&(de=new rd(de,e,null,a,D),k.push({event:de,listeners:J}),se?de.data=se:(se=hd(a),se!==null&&(de.data=se)))),(se=Gx?Zx(e,a):Xx(e,a))&&(de=$i(O,"onBeforeInput"),0<de.length&&(J=new rd("onBeforeInput","beforeinput",null,a,D),k.push({event:J,listeners:de}),J.data=se)),kb(k,e,O,a,D)}Wh(k,t)})}function ps(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $i(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=kn(e,a),i!=null&&l.unshift(ps(e,i,u)),i=kn(e,t),i!=null&&l.push(ps(e,i,u))),e.tag===3)return l;e=e.return}return[]}function Qb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ph(e,t,a,l,i){for(var u=t._reactName,f=[];a!==null&&a!==l;){var p=a,j=p.alternate,O=p.stateNode;if(p=p.tag,j!==null&&j===l)break;p!==5&&p!==26&&p!==27||O===null||(j=O,i?(O=kn(a,u),O!=null&&f.unshift(ps(a,O,j))):i||(O=kn(a,u),O!=null&&f.push(ps(a,O,j)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Vb=/\r\n?/g,Yb=/\u0000|\uFFFD/g;function em(e){return(typeof e=="string"?e:""+e).replace(Vb,`
|
|
9
|
-
`).replace(Yb,"")}function tm(e,t){return t=em(t),em(e)===t}function Me(e,t,a,l,i,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ql(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ql(e,""+l);break;case"className":Is(e,"class",l);break;case"tabIndex":Is(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Is(e,a,l);break;case"style":td(e,l,u);break;case"data":if(t!=="object"){Is(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ei(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 u=="function"&&(a==="formAction"?(t!=="input"&&Me(e,t,"name",i.name,i,null),Me(e,t,"formEncType",i.formEncType,i,null),Me(e,t,"formMethod",i.formMethod,i,null),Me(e,t,"formTarget",i.formTarget,i,null)):(Me(e,t,"encType",i.encType,i,null),Me(e,t,"method",i.method,i,null),Me(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ei(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&oe("scroll",e);break;case"onScrollEnd":l!=null&&oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ei(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":oe("beforetoggle",e),oe("toggle",e),Ws(e,"popover",l);break;case"xlinkActuate":la(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ws(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=gx.get(a)||a,Ws(e,a,l))}}function Bc(e,t,a,l,i,u){switch(a){case"style":td(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?ql(e,l):(typeof l=="number"||typeof l=="bigint")&&ql(e,""+l);break;case"onScroll":l!=null&&oe("scroll",e);break;case"onScrollEnd":l!=null&&oe("scrollend",e);break;case"onClick":l!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[pt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Ws(e,a,l)}}}function ct(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":oe("error",e),oe("load",e);var l=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,u,f,a,null)}}i&&Me(e,t,"srcSet",a.srcSet,a,null),l&&Me(e,t,"src",a.src,a,null);return;case"input":oe("invalid",e);var p=u=f=i=null,j=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var D=a[l];if(D!=null)switch(l){case"name":i=D;break;case"type":f=D;break;case"checked":j=D;break;case"defaultChecked":O=D;break;case"value":u=D;break;case"defaultValue":p=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,t));break;default:Me(e,t,l,D,a,null)}}Wf(e,u,p,j,O,f,i,!1);return;case"select":oe("invalid",e),l=f=u=null;for(i in a)if(a.hasOwnProperty(i)&&(p=a[i],p!=null))switch(i){case"value":u=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:Me(e,t,i,p,a,null)}t=u,a=f,e.multiple=!!l,t!=null?Hl(e,!!l,t,!1):a!=null&&Hl(e,!!l,a,!0);return;case"textarea":oe("invalid",e),u=i=l=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":i=p;break;case"children":u=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Me(e,t,f,p,a,null)}Pf(e,l,i,u);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(l=a[j],l!=null))switch(j){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Me(e,t,j,l,a,null)}return;case"dialog":oe("beforetoggle",e),oe("toggle",e),oe("cancel",e),oe("close",e);break;case"iframe":case"object":oe("load",e);break;case"video":case"audio":for(l=0;l<vs.length;l++)oe(vs[l],e);break;case"image":oe("error",e),oe("load",e);break;case"details":oe("toggle",e);break;case"embed":case"source":case"link":oe("error",e),oe("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(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,O,l,a,null)}return;default:if(Ir(t)){for(D in a)a.hasOwnProperty(D)&&(l=a[D],l!==void 0&&Bc(e,t,D,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Me(e,t,p,l,a,null))}function Gb(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,f=null,p=null,j=null,O=null,D=null;for(T in a){var k=a[T];if(a.hasOwnProperty(T)&&k!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":j=k;default:l.hasOwnProperty(T)||Me(e,t,T,null,l,k)}}for(var z in l){var T=l[z];if(k=a[z],l.hasOwnProperty(z)&&(T!=null||k!=null))switch(z){case"type":u=T;break;case"name":i=T;break;case"checked":O=T;break;case"defaultChecked":D=T;break;case"value":f=T;break;case"defaultValue":p=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:T!==k&&Me(e,t,z,T,l,k)}}Fr(e,f,p,j,O,D,u,i);return;case"select":T=f=p=z=null;for(u in a)if(j=a[u],a.hasOwnProperty(u)&&j!=null)switch(u){case"value":break;case"multiple":T=j;default:l.hasOwnProperty(u)||Me(e,t,u,null,l,j)}for(i in l)if(u=l[i],j=a[i],l.hasOwnProperty(i)&&(u!=null||j!=null))switch(i){case"value":z=u;break;case"defaultValue":p=u;break;case"multiple":f=u;default:u!==j&&Me(e,t,i,u,l,j)}t=p,a=f,l=T,z!=null?Hl(e,!!a,z,!1):!!l!=!!a&&(t!=null?Hl(e,!!a,t,!0):Hl(e,!!a,a?[]:"",!1));return;case"textarea":T=z=null;for(p in a)if(i=a[p],a.hasOwnProperty(p)&&i!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Me(e,t,p,null,l,i)}for(f in l)if(i=l[f],u=a[f],l.hasOwnProperty(f)&&(i!=null||u!=null))switch(f){case"value":z=i;break;case"defaultValue":T=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&Me(e,t,f,i,l,u)}If(e,z,T);return;case"option":for(var K in a)if(z=a[K],a.hasOwnProperty(K)&&z!=null&&!l.hasOwnProperty(K))switch(K){case"selected":e.selected=!1;break;default:Me(e,t,K,null,l,z)}for(j in l)if(z=l[j],T=a[j],l.hasOwnProperty(j)&&z!==T&&(z!=null||T!=null))switch(j){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Me(e,t,j,z,l,T)}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 P in a)z=a[P],a.hasOwnProperty(P)&&z!=null&&!l.hasOwnProperty(P)&&Me(e,t,P,null,l,z);for(O in l)if(z=l[O],T=a[O],l.hasOwnProperty(O)&&z!==T&&(z!=null||T!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Me(e,t,O,z,l,T)}return;default:if(Ir(t)){for(var ze in a)z=a[ze],a.hasOwnProperty(ze)&&z!==void 0&&!l.hasOwnProperty(ze)&&Bc(e,t,ze,void 0,l,z);for(D in l)z=l[D],T=a[D],!l.hasOwnProperty(D)||z===T||z===void 0&&T===void 0||Bc(e,t,D,z,l,T);return}}for(var C in a)z=a[C],a.hasOwnProperty(C)&&z!=null&&!l.hasOwnProperty(C)&&Me(e,t,C,null,l,z);for(k in l)z=l[k],T=a[k],!l.hasOwnProperty(k)||z===T||z==null&&T==null||Me(e,t,k,z,l,T)}function am(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Zb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],u=i.transferSize,f=i.initiatorType,p=i.duration;if(u&&p&&am(f)){for(f=0,p=i.responseEnd,l+=1;l<a.length;l++){var j=a[l],O=j.startTime;if(O>p)break;var D=j.transferSize,k=j.initiatorType;D&&am(k)&&(j=j.responseEnd,f+=D*(j<p?1:(p-O)/(j-O)))}if(--l,t+=8*(u+f)/(i.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 Hc=null,qc=null;function Ji(e){return e.nodeType===9?e:e.ownerDocument}function lm(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 nm(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 Qc(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 Vc=null;function Xb(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var sm=typeof setTimeout=="function"?setTimeout:void 0,Kb=typeof clearTimeout=="function"?clearTimeout:void 0,im=typeof Promise=="function"?Promise:void 0,$b=typeof queueMicrotask=="function"?queueMicrotask:typeof im<"u"?function(e){return im.resolve(null).then(e).catch(Jb)}:sm;function Jb(e){setTimeout(function(){throw e})}function Ya(e){return e==="head"}function rm(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),xn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")gs(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,gs(a);for(var u=a.firstChild;u;){var f=u.nextSibling,p=u.nodeName;u[Ln]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=f}}else a==="body"&&gs(e.ownerDocument.body);a=i}while(a);xn(t)}function um(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Yc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Yc(a),$r(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Fb(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ln])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Vt(e.nextSibling),e===null)break}return null}function Wb(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Vt(e.nextSibling),e===null))return null;return e}function cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Vt(e.nextSibling),e===null))return null;return e}function Gc(e){return e.data==="$?"||e.data==="$~"}function Zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Ib(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Vt(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 Xc=null;function om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Vt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function dm(e,t,a){switch(t=Ji(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function gs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$r(e)}var Yt=new Map,hm=new Set;function Fi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ya=q.d;q.d={f:Pb,r:e2,D:t2,C:a2,L:l2,m:n2,X:i2,S:s2,M:r2};function Pb(){var e=ya.f(),t=Qi();return e||t}function e2(e){var t=Ul(e);t!==null&&t.tag===5&&t.type==="form"?z0(t):ya.r(e)}var vn=typeof document>"u"?null:document;function mm(e,t,a){var l=vn;if(l&&typeof t=="string"&&t){var i=Lt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),hm.has(i)||(hm.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),ct(t,"link",e),lt(t),l.head.appendChild(t)))}}function t2(e){ya.D(e),mm("dns-prefetch",e,null)}function a2(e,t){ya.C(e,t),mm("preconnect",e,t)}function l2(e,t,a){ya.L(e,t,a);var l=vn;if(l&&e&&t){var i='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+Lt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+Lt(a.imageSizes)+'"]')):i+='[href="'+Lt(e)+'"]';var u=i;switch(t){case"style":u=pn(e);break;case"script":u=gn(e)}Yt.has(u)||(e=N({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(xs(u))||t==="script"&&l.querySelector(bs(u))||(t=l.createElement("link"),ct(t,"link",e),lt(t),l.head.appendChild(t)))}}function n2(e,t){ya.m(e,t);var a=vn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+Lt(l)+'"][href="'+Lt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=gn(e)}if(!Yt.has(u)&&(e=N({rel:"modulepreload",href:e},t),Yt.set(u,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(bs(u)))return}l=a.createElement("link"),ct(l,"link",e),lt(l),a.head.appendChild(l)}}}function s2(e,t,a){ya.S(e,t,a);var l=vn;if(l&&e){var i=kl(l).hoistableStyles,u=pn(e);t=t||"default";var f=i.get(u);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(xs(u)))p.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(u))&&Kc(e,a);var j=f=l.createElement("link");lt(j),ct(j,"link",e),j._p=new Promise(function(O,D){j.onload=O,j.onerror=D}),j.addEventListener("load",function(){p.loading|=1}),j.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Wi(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(u,f)}}}function i2(e,t){ya.X(e,t);var a=vn;if(a&&e){var l=kl(a).hoistableScripts,i=gn(e),u=l.get(i);u||(u=a.querySelector(bs(i)),u||(e=N({src:e,async:!0},t),(t=Yt.get(i))&&$c(e,t),u=a.createElement("script"),lt(u),ct(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function r2(e,t){ya.M(e,t);var a=vn;if(a&&e){var l=kl(a).hoistableScripts,i=gn(e),u=l.get(i);u||(u=a.querySelector(bs(i)),u||(e=N({src:e,async:!0,type:"module"},t),(t=Yt.get(i))&&$c(e,t),u=a.createElement("script"),lt(u),ct(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function vm(e,t,a,l){var i=(i=le.current)?Fi(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=pn(a.href),a=kl(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=pn(a.href);var u=kl(i).hoistableStyles,f=u.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=i.querySelector(xs(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),u||u2(i,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gn(a),a=kl(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function pn(e){return'href="'+Lt(e)+'"'}function xs(e){return'link[rel="stylesheet"]['+e+"]"}function pm(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function u2(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ct(t,"link",a),lt(t),e.head.appendChild(t))}function gn(e){return'[src="'+Lt(e)+'"]'}function bs(e){return"script[async]"+e}function gm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Lt(a.href)+'"]');if(l)return t.instance=l,lt(l),l;var i=N({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ct(l,"style",i),Wi(l,a.precedence,e),t.instance=l;case"stylesheet":i=pn(a.href);var u=e.querySelector(xs(i));if(u)return t.state.loading|=4,t.instance=u,lt(u),u;l=pm(a),(i=Yt.get(i))&&Kc(l,i),u=(e.ownerDocument||e).createElement("link"),lt(u);var f=u;return f._p=new Promise(function(p,j){f.onload=p,f.onerror=j}),ct(u,"link",l),t.state.loading|=4,Wi(u,a.precedence,e),t.instance=u;case"script":return u=gn(a.src),(i=e.querySelector(bs(u)))?(t.instance=i,lt(i),i):(l=a,(i=Yt.get(u))&&(l=N({},a),$c(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),lt(i),ct(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Wi(l,a.precedence,e));return t.instance}function Wi(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,u=i,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)u=p;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ii=null;function xm(e,t,a){if(Ii===null){var l=new Map,i=Ii=new Map;i.set(a,l)}else i=Ii,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[Ln]||u[st]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(u):l.set(f,[u])}}return l}function bm(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function c2(e,t,a){if(a===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 ym(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function o2(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=pn(l.href),u=t.querySelector(xs(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Pi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,lt(u);return}u=t.ownerDocument||t,l=pm(l),(i=Yt.get(i))&&Kc(l,i),u=u.createElement("link"),lt(u);var f=u;f._p=new Promise(function(p,j){f.onload=p,f.onerror=j}),ct(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Pi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Jc=0;function f2(e,t){return e.stylesheets&&e.count===0&&tr(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&tr(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Jc===0&&(Jc=62500*Zb());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&tr(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Jc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function Pi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)tr(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var er=null;function tr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,er=new Map,t.forEach(d2,e),er=null,Pi.call(e))}function d2(e,t){if(!(t.state.loading&4)){var a=er.get(e);if(a)var l=a.get(null);else{a=new Map,er.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var f=i[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),u=a.get(f)||l,u===l&&a.set(null,i),a.set(f,i),this.count++,l=Pi.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ys={$$typeof:X,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function h2(e,t,a,l,i,u,f,p,j){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=Gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gr(0),this.hiddenUpdates=Gr(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function jm(e,t,a,l,i,u,f,p,j,O,D,k){return e=new h2(e,t,a,f,j,O,D,k,p),t=1,u===!0&&(t|=24),u=At(3,null,null,t),e.current=u,u.stateNode=e,t=Ou(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Ru(u),e}function wm(e){return e?(e=Kl,e):Kl}function Sm(e,t,a,l,i,u){i=wm(i),l.context===null?l.context=i:l.pendingContext=i,l=Ra(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Da(e,l,t),a!==null&&(wt(a,e,t),In(a,e,t))}function Nm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fc(e,t){Nm(e,t),(e=e.alternate)&&Nm(e,t)}function Em(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&wt(t,e,67108864),Fc(e,67108864)}}function Cm(e){if(e.tag===13||e.tag===31){var t=Rt();t=Zr(t);var a=hl(e,t);a!==null&&wt(a,e,t),Fc(e,t)}}var ar=!0;function m2(e,t,a,l){var i=R.T;R.T=null;var u=q.p;try{q.p=2,Wc(e,t,a,l)}finally{q.p=u,R.T=i}}function v2(e,t,a,l){var i=R.T;R.T=null;var u=q.p;try{q.p=8,Wc(e,t,a,l)}finally{q.p=u,R.T=i}}function Wc(e,t,a,l){if(ar){var i=Ic(l);if(i===null)kc(e,t,l,lr,a),Om(e,l);else if(g2(i,e,t,a,l))l.stopPropagation();else if(Om(e,l),t&4&&-1<p2.indexOf(e)){for(;i!==null;){var u=Ul(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=ul(u.pendingLanes);if(f!==0){var p=u;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var j=1<<31-Et(f);p.entanglements[1]|=j,f&=~j}Pt(u),(je&6)===0&&(Hi=St()+500,ms(0))}}break;case 31:case 13:p=hl(u,2),p!==null&&wt(p,u,2),Qi(),Fc(u,2)}if(u=Ic(l),u===null&&kc(e,t,l,lr,a),u===i)break;i=u}i!==null&&l.stopPropagation()}else kc(e,t,l,null,a)}}function Ic(e){return e=eu(e),Pc(e)}var lr=null;function Pc(e){if(lr=null,e=Ll(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=x(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return lr=e,null}function Am(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(tx()){case Lf:return 2;case Uf:return 8;case Xs:case ax:return 32;case kf:return 268435456;default:return 32}default:return 32}}var eo=!1,Ga=null,Za=null,Xa=null,js=new Map,ws=new Map,Ka=[],p2="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 Om(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":js.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(t.pointerId)}}function Ss(e,t,a,l,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Ul(t),t!==null&&Em(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function g2(e,t,a,l,i){switch(t){case"focusin":return Ga=Ss(Ga,e,t,a,l,i),!0;case"dragenter":return Za=Ss(Za,e,t,a,l,i),!0;case"mouseover":return Xa=Ss(Xa,e,t,a,l,i),!0;case"pointerover":var u=i.pointerId;return js.set(u,Ss(js.get(u)||null,e,t,a,l,i)),!0;case"gotpointercapture":return u=i.pointerId,ws.set(u,Ss(ws.get(u)||null,e,t,a,l,i)),!0}return!1}function Mm(e){var t=Ll(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Yf(e.priority,function(){Cm(a)});return}}else if(t===31){if(t=x(a),t!==null){e.blockedOn=t,Yf(e.priority,function(){Cm(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function nr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ic(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Pr=l,a.target.dispatchEvent(l),Pr=null}else return t=Ul(a),t!==null&&Em(t),e.blockedOn=a,!1;t.shift()}return!0}function zm(e,t,a){nr(e)&&a.delete(t)}function x2(){eo=!1,Ga!==null&&nr(Ga)&&(Ga=null),Za!==null&&nr(Za)&&(Za=null),Xa!==null&&nr(Xa)&&(Xa=null),js.forEach(zm),ws.forEach(zm)}function sr(e,t){e.blockedOn===t&&(e.blockedOn=null,eo||(eo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,x2)))}var ir=null;function Tm(e){ir!==e&&(ir=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ir===e&&(ir=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Pc(l||a)===null)continue;break}var u=Ul(a);u!==null&&(e.splice(t,3),t-=3,Iu(u,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function xn(e){function t(j){return sr(j,e)}Ga!==null&&sr(Ga,e),Za!==null&&sr(Za,e),Xa!==null&&sr(Xa,e),js.forEach(t),ws.forEach(t);for(var a=0;a<Ka.length;a++){var l=Ka[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Ka.length&&(a=Ka[0],a.blockedOn===null);)Mm(a),a.blockedOn===null&&Ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],u=a[l+1],f=i[pt]||null;if(typeof u=="function")f||Tm(a);else if(f){var p=null;if(u&&u.hasAttribute("formAction")){if(i=u,f=u[pt]||null)p=f.formAction;else if(Pc(i)!==null)continue}else p=f.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Tm(a)}}}function Rm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function to(e){this._internalRoot=e}rr.prototype.render=to.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Rt();Sm(a,l,e,t,null,null)},rr.prototype.unmount=to.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sm(e.current,2,null,e,null,null),Qi(),t[_l]=null}};function rr(e){this._internalRoot=e}rr.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ka.length&&t!==0&&t<Ka[a].priority;a++);Ka.splice(a,0,e),a===0&&Mm(e)}};var Dm=s.version;if(Dm!=="19.2.3")throw Error(o(527,Dm,"19.2.3"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var b2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ur=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ur.isDisabled&&ur.supportsFiber)try{Rn=ur.inject(b2),Nt=ur}catch{}}return jn.createRoot=function(e,t){if(!d(e))throw Error(o(299));var a=!1,l="",i=q0,u=Q0,f=V0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=jm(e,1,!1,null,null,a,l,null,i,u,f,Rm),e[_l]=t.current,Uc(e),new to(t)},jn.hydrateRoot=function(e,t,a){if(!d(e))throw Error(o(299));var l=!1,i="",u=q0,f=Q0,p=V0,j=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=jm(e,1,!0,t,a??null,l,i,j,u,f,p,Rm),t.context=wm(null),a=t.current,l=Rt(),l=Zr(l),i=Ra(l),i.callback=null,Da(a,i,l),a=l,t.current.lanes=a,_n(t,a),Pt(t),e[_l]=t.current,Uc(e),new rr(t)},jn.version="19.2.3",jn}var Lo;function Ev(){if(Lo)return wr.exports;Lo=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(s){console.error(s)}}return n(),wr.exports=Nv(),wr.exports}var Cv=Ev();const Av=ao(Cv);function Ov({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const Mv=h.forwardRef(Ov);function zv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const Tv=h.forwardRef(zv);function Rv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const Dv=h.forwardRef(Rv);function _v({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const Pa=h.forwardRef(_v);function Lv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const Uo=h.forwardRef(Lv);function Uv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const kv=h.forwardRef(Uv);function Bv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const ko=h.forwardRef(Bv);function Hv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))}const qv=h.forwardRef(Hv);function Qv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))}const Vv=h.forwardRef(Qv);function Yv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Gv=h.forwardRef(Yv);function Zv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Xv=h.forwardRef(Zv);function Kv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const $v=h.forwardRef(Kv);function Jv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const Fv=h.forwardRef(Jv);function Wv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const Iv=h.forwardRef(Wv);function Pv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const el=h.forwardRef(Pv);function ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Os=h.forwardRef(ep);function tp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const wn=h.forwardRef(tp);function ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const lp=h.forwardRef(ap);function np({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Ol=h.forwardRef(np);function sp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const ip=h.forwardRef(sp);function rp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Ms=h.forwardRef(rp);function up({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const cp=h.forwardRef(up);function op({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const fp=h.forwardRef(op);function dp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const Sn=h.forwardRef(dp);function hp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}))}const Bo=h.forwardRef(hp);function mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"}))}const zs=h.forwardRef(mp);function vp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5h3m-6.75 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-15a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 4.5v15a2.25 2.25 0 0 0 2.25 2.25Z"}))}const Cr=h.forwardRef(vp);function pp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}))}const gp=h.forwardRef(pp);function xp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const ea=h.forwardRef(xp);function bp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const yp=h.forwardRef(bp);function jp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const Nn=h.forwardRef(jp);function wp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const Sp=h.forwardRef(wp);function Np({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const Ho=h.forwardRef(Np);function Ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Ar=h.forwardRef(Ep);function Cp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const qo=h.forwardRef(Cp);function Ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const Qo=h.forwardRef(Ap);function Op({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Vo=h.forwardRef(Op);function Mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const zp=h.forwardRef(Mp);function Tp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const Rp=h.forwardRef(Tp);function Dp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Or=h.forwardRef(Dp);function _p({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Yo=h.forwardRef(_p);function Lp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const Up=h.forwardRef(Lp);function kp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const Bp=h.forwardRef(kp);function Hp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const qp=h.forwardRef(Hp);function Qp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Vp=h.forwardRef(Qp);function Yp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const Mr=h.forwardRef(Yp);function Gp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"}))}const Zp=h.forwardRef(Gp);function Xp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const En=h.forwardRef(Xp);function Kp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const ta=h.forwardRef(Kp);function $p(n,s){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,d,m,v=[],x="",b=n.split("/");for(b[0]||b.shift();d=b.shift();)c=d[0],c==="*"?(v.push(c),x+=d[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=d.indexOf("?",1),m=d.indexOf(".",1),v.push(d.substring(1,~o?o:~m?m:d.length)),x+=~o&&!~m?"(?:/([^/]+?))?":"/([^/]+?)",~m&&(x+=(~o?"?":"")+"\\"+d.substring(m))):x+="/"+d;return{keys:v,pattern:new RegExp("^"+x+(s?"(?=$|/)":"/?$"),"i")}}var zr={exports:{}},Tr={};var Go;function Jp(){if(Go)return Tr;Go=1;var n=As();function s(N,E){return N===E&&(N!==0||1/N===1/E)||N!==N&&E!==E}var c=typeof Object.is=="function"?Object.is:s,o=n.useState,d=n.useEffect,m=n.useLayoutEffect,v=n.useDebugValue;function x(N,E){var _=E(),M=o({inst:{value:_,getSnapshot:E}}),L=M[0].inst,Q=M[1];return m(function(){L.value=_,L.getSnapshot=E,b(L)&&Q({inst:L})},[N,_,E]),d(function(){return b(L)&&Q({inst:L}),N(function(){b(L)&&Q({inst:L})})},[N]),v(_),_}function b(N){var E=N.getSnapshot;N=N.value;try{var _=E();return!c(N,_)}catch{return!0}}function g(N,E){return E()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:x;return Tr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Tr}var Zo;function Fp(){return Zo||(Zo=1,zr.exports=Jp()),zr.exports}var Wp=Fp();const Ip=uv.useInsertionEffect,Pp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,e1=Ip||Pp,Xo=n=>{const s=h.useRef([n,(...c)=>s[0](...c)]).current;return e1(()=>{s[0]=n}),s[1]},t1="popstate",Rr="pushState",Dr="replaceState",Ko=[t1,Rr,Dr,"hashchange"],a1=n=>{for(const s of Ko)addEventListener(s,n);return()=>{for(const s of Ko)removeEventListener(s,n)}},$o=(n,s)=>Wp.useSyncExternalStore(a1,n,s),Jo=()=>location.search,l1=({ssrSearch:n}={})=>$o(Jo,n!=null?()=>n:Jo),Fo=()=>location.pathname,n1=({ssrPath:n}={})=>$o(Fo,n!=null?()=>n:Fo),s1=(n,{replace:s=!1,state:c=null}={})=>history[s?Dr:Rr](c,"",n),i1=(n={})=>[n1(n),s1],Wo=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Wo]>"u"){for(const n of[Rr,Dr]){const s=history[n];history[n]=function(){const c=s.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,Wo,{value:!0})}const r1=(n,s)=>s.toLowerCase().indexOf(n.toLowerCase())?"~"+s:s.slice(n.length)||"/",Io=(n="")=>n==="/"?"":n,u1=(n,s)=>n[0]==="~"?n.slice(1):Io(s)+n,c1=(n="",s)=>r1(Po(Io(n)),Po(s)),Po=n=>{try{return decodeURI(n)}catch{return n}},ef={hook:i1,searchHook:l1,parser:$p,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n,aroundNav:(n,s,c)=>n(s,c)},tf=h.createContext(ef),Ml=()=>h.useContext(tf),af={},lf=h.createContext(af),o1=()=>h.useContext(lf),Ts=n=>{const[s,c]=n.hook(n);return[c1(n.base,s),Xo((o,d)=>n.aroundNav(c,u1(o,n.base),d))]},Rs=()=>Ts(Ml()),_r=(n,s,c,o)=>{const{pattern:d,keys:m}=s instanceof RegExp?{keys:!1,pattern:s}:n(s||"*",o),v=d.exec(c)||[],[x,...b]=v;return x!==void 0?[!0,(()=>{const g=m!==!1?Object.fromEntries(m.map((N,E)=>[N,b[E]])):v.groups;let y={...b};return g&&Object.assign(y,g),y})(),...o?[x]:[]]:[!1,null]},f1=n=>_r(Ml().parser,n,Rs()[0]),d1=({children:n,...s})=>{const c=Ml(),o=s.hook?ef:c;let d=o;const[m,v=s.ssrSearch??""]=s.ssrPath?.split("?")??[];m&&(s.ssrSearch=v,s.ssrPath=m),s.hrefs=s.hrefs??s.hook?.hrefs,s.searchHook=s.searchHook??s.hook?.searchHook;let x=h.useRef({}),b=x.current,g=b;for(let y in o){const N=y==="base"?o[y]+(s[y]??""):s[y]??o[y];b===g&&N!==g[y]&&(x.current=g={...g}),g[y]=N,(N!==o[y]||N!==d[y])&&(d=g)}return h.createElement(tf.Provider,{value:d,children:n})},nf=({children:n,component:s},c)=>s?h.createElement(s,{params:c}):typeof n=="function"?n(c):n,h1=n=>{let s=h.useRef(af);const c=s.current;return s.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,d])=>d!==c[o])?n:c},zl=({path:n,nest:s,match:c,...o})=>{const d=Ml(),[m]=Ts(d),[v,x,b]=c??_r(d.parser,n,m,s),g=h1({...o1(),...x});if(!v)return null;const y=b?h.createElement(d1,{base:b},nf(o,g)):nf(o,g);return h.createElement(lf.Provider,{value:g,children:y})};h.forwardRef((n,s)=>{const c=Ml(),[o,d]=Ts(c),{to:m="",href:v=m,onClick:x,asChild:b,children:g,className:y,replace:N,state:E,transition:_,...M}=n,L=Xo(B=>{B.ctrlKey||B.metaKey||B.altKey||B.shiftKey||B.button!==0||(x?.(B),B.defaultPrevented||(B.preventDefault(),d(v,n)))}),Q=c.hrefs(v[0]==="~"?v.slice(1):c.base+v,c);return b&&h.isValidElement(g)?h.cloneElement(g,{onClick:L,href:Q}):h.createElement("a",{...M,onClick:L,href:Q,className:y?.call?y(o===v):y,children:g,ref:s})});const sf=n=>Array.isArray(n)?n.flatMap(s=>sf(s&&s.type===h.Fragment?s.props.children:s)):[n],rf=({children:n,location:s})=>{const c=Ml(),[o]=Ts(c);for(const d of sf(n)){let m=0;if(h.isValidElement(d)&&(m=_r(c.parser,d.props.path,s||o,d.props.nest))[0])return h.cloneElement(d,{match:m})}return null};async function Pe(n,s={}){const c=await fetch(n,{...s,headers:{"Content-Type":"application/json",...s.headers}}),o=await c.json();if(!c.ok){const d=new Error(o.error||"Request failed");throw d.status=c.status,d.data=o,d}return o}const tl={async getReportData(){return Pe("/api/report-data")},async acceptBaseline(n){return Pe("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Pe("/api/baseline/accept-all",{method:"POST"})},async rejectBaseline(n){return Pe("/api/baseline/reject",{method:"POST",body:JSON.stringify({id:n})})},async resetBaselines(){return Pe("/api/baseline/reset",{method:"POST"})},async deleteComparison(n){return Pe("/api/baseline/delete",{method:"POST",body:JSON.stringify({id:n})})},async downloadBaselines(n,s,c){return Pe("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:s,projectSlug:c})})}},uf={async get(){return Pe("/api/config")},async updateProject(n){return Pe("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},Ds={async getStatus(){return Pe("/api/auth/status")},async initiateLogin(){return Pe("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Pe("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Pe("/api/auth/logout",{method:"POST"})}},_s={async list(){return Pe("/api/projects")},async listMappings(){return Pe("/api/projects/mappings")},async createMapping(n){return Pe("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Pe(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){const s=new URLSearchParams;n.limit&&s.append("limit",String(n.limit)),n.branch&&s.append("branch",n.branch);const c=s.toString();return Pe(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,s,c={}){const o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);const d=o.toString(),m=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(s)}/builds${d?`?${d}`:""}`;return Pe(m)}},ve={auth:["auth"],authStatus:()=>[...ve.auth,"status"],config:["config"],projectConfig:()=>[...ve.config,"project"],globalConfig:()=>[...ve.config,"global"],tdd:["tdd"],reportData:()=>[...ve.tdd,"report"],cloud:["cloud"],projects:()=>[...ve.cloud,"projects"],builds:(n,s)=>[...ve.cloud,"builds",n,s]};let al={CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected",ERROR:"error"};function m1(n={}){let s=n.enabled??!0;const c=vt(),o=h.useRef(null),d=h.useRef(0),m=h.useRef(null),[v,x]=h.useState(al.DISCONNECTED),[b,g]=h.useState(null);return h.useEffect(()=>{if(!s){o.current&&(o.current.close(),o.current=null),x(al.DISCONNECTED);return}const y=()=>{if(o.current&&o.current.readyState!==2)return;x(al.CONNECTING),g(null);const N=new EventSource("/api/events");o.current=N,N.onopen=()=>{x(al.CONNECTED),g(null),d.current=0},N.addEventListener("reportData",E=>{try{const _=JSON.parse(E.data);c.setQueryData(ve.reportData(),_)}catch{}}),N.addEventListener("heartbeat",()=>{}),N.onerror=()=>{N.close(),o.current=null,x(al.ERROR),g(new Error("SSE connection failed"));const E=d.current,_=Math.min(1e3*2**E,3e4);d.current=E+1,m.current=window.setTimeout(()=>{y()},_)}};return y(),()=>{m.current&&(clearTimeout(m.current),m.current=null),o.current&&(o.current.close(),o.current=null),x(al.DISCONNECTED)}},[s,c]),{state:v,error:b}}function Ls(n={}){let{state:s}=m1({enabled:n.polling!==!1}),c=s===al.CONNECTED;return Al({queryKey:ve.reportData(),queryFn:tl.getReportData,refetchInterval:n.polling!==!1&&!c?2e3:!1,...n})}function cf(){const n=vt();return Gt({mutationFn:s=>tl.acceptBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:ve.reportData()});const c=n.getQueryData(ve.reportData());return n.setQueryData(ve.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"accepted"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(ve.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:ve.tdd})}})}function of(){const n=vt();return Gt({mutationFn:()=>tl.acceptAllBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:ve.tdd})}})}function v1(){const n=vt();return Gt({mutationFn:()=>tl.resetBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:ve.tdd})}})}function ff(){const n=vt();return Gt({mutationFn:s=>tl.rejectBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:ve.reportData()});const c=n.getQueryData(ve.reportData());return n.setQueryData(ve.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"rejected"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(ve.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:ve.tdd})}})}function p1(){const n=vt();return Gt({mutationFn:s=>tl.deleteComparison(s),onSuccess:()=>{n.invalidateQueries({queryKey:ve.tdd})}})}function g1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const x1=h.forwardRef(g1);function df({variant:n="info",title:s,children:c,dismissible:o=!1,onDismiss:d,icon:m,className:v="",...x}){const b={success:{container:"bg-emerald-500/10 border-emerald-500/20",icon:"text-emerald-400",title:"text-emerald-300",text:"text-emerald-200/80",DefaultIcon:el},warning:{container:"bg-amber-500/10 border-amber-500/20",icon:"text-amber-400",title:"text-amber-300",text:"text-amber-200/80",DefaultIcon:ea},danger:{container:"bg-red-500/10 border-red-500/20",icon:"text-red-400",title:"text-red-300",text:"text-red-200/80",DefaultIcon:En},info:{container:"bg-blue-500/10 border-blue-500/20",icon:"text-blue-400",title:"text-blue-300",text:"text-blue-200/80",DefaultIcon:Ar}},{container:g,icon:y,title:N,text:E,DefaultIcon:_}=b[n],M=m||_;return r.jsxs("div",{className:`flex gap-3 p-4 rounded-lg border ${g} ${v}`,...x,children:[r.jsx("div",{className:`flex-shrink-0 ${y}`,children:r.jsx(M,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[s&&r.jsx("h4",{className:`text-sm font-medium ${N}`,children:s}),c&&r.jsx("div",{className:`text-sm ${E} ${s?"mt-1":""}`,children:c})]}),o&&r.jsx("button",{onClick:d,className:`flex-shrink-0 ${y} hover:opacity-70 transition-opacity`,children:r.jsx(ta,{className:"w-5 h-5"})})]})}function hf({variant:n="approve",isActive:s=!1,onClick:c,disabled:o=!1,loading:d=!1,compact:m=!1,showLabel:v=!0,className:x="",testId:b}){const g={approve:{label:"Approve",icon:Os,activeClasses:"bg-emerald-500 text-white shadow-lg shadow-emerald-500/20",inactiveClasses:"text-slate-400 hover:text-emerald-400 hover:bg-emerald-500/10",dotColor:"bg-emerald-500"},reject:{label:"Reject",icon:ta,activeClasses:"bg-red-500 text-white shadow-lg shadow-red-500/20",inactiveClasses:"text-slate-400 hover:text-red-400 hover:bg-red-500/10",dotColor:"bg-red-500"}}[n],y=g.icon;let N=b||`btn-${n}`;return m?r.jsx("button",{onClick:c,disabled:o||d,className:`
|
|
8
|
+
`+l.stack}}var Qr=Object.prototype.hasOwnProperty,Vr=n.unstable_scheduleCallback,Yr=n.unstable_cancelCallback,ng=n.unstable_shouldYield,sg=n.unstable_requestPaint,Nt=n.unstable_now,ig=n.unstable_getCurrentPriorityLevel,kf=n.unstable_ImmediatePriority,Uf=n.unstable_UserBlockingPriority,Ks=n.unstable_NormalPriority,rg=n.unstable_LowPriority,Bf=n.unstable_IdlePriority,ug=n.log,cg=n.unstable_setDisableYieldValue,Dn=null,Et=null;function Ma(e){if(typeof ug=="function"&&cg(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(Dn,e)}catch{}}var Ct=Math.clz32?Math.clz32:dg,og=Math.log,fg=Math.LN2;function dg(e){return e>>>=0,e===0?32:31-(og(e)/fg|0)|0}var $s=256,Js=262144,Fs=4194304;function cl(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 Ws(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var i=0,u=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~u,l!==0?i=cl(l):(f&=p,f!==0?i=cl(f):a||(a=p&~e,a!==0&&(i=cl(a))))):(p=l&~u,p!==0?i=cl(p):f!==0?i=cl(f):a||(a=l&~e,a!==0&&(i=cl(a)))),i===0?0:t!==0&&t!==i&&(t&u)===0&&(u=i&-i,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:i}function _n(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function hg(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 Hf(){var e=Fs;return Fs<<=1,(Fs&62914560)===0&&(Fs=4194304),e}function Gr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ln(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function mg(e,t,a,l,i,u){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var p=e.entanglements,j=e.expirationTimes,O=e.hiddenUpdates;for(a=f&~a;0<a;){var L=31-Ct(a),B=1<<L;p[L]=0,j[L]=-1;var z=O[L];if(z!==null)for(O[L]=null,L=0;L<z.length;L++){var R=z[L];R!==null&&(R.lane&=-536870913)}a&=~B}l!==0&&qf(e,l,0),u!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=u&~(f&~t))}function qf(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ct(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function Qf(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ct(a),i=1<<l;i&t|e[l]&t&&(e[l]|=t),a&=~i}}function Vf(e,t){var a=t&-t;return a=(a&42)!==0?1:Zr(a),(a&(e.suspendedLanes|t))!==0?0:a}function Zr(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 Xr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yf(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Mm(e.type))}function Gf(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var Oa=Math.random().toString(36).slice(2),nt="__reactFiber$"+Oa,pt="__reactProps$"+Oa,Ll="__reactContainer$"+Oa,Kr="__reactEvents$"+Oa,vg="__reactListeners$"+Oa,pg="__reactHandles$"+Oa,Zf="__reactResources$"+Oa,kn="__reactMarker$"+Oa;function $r(e){delete e[nt],delete e[pt],delete e[Kr],delete e[vg],delete e[pg]}function kl(e){var t=e[nt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ll]||a[nt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=dm(e);e!==null;){if(a=e[nt])return a;e=dm(e)}return t}e=a,a=e.parentNode}return null}function Ul(e){if(e=e[nt]||e[Ll]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Un(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Bl(e){var t=e[Zf];return t||(t=e[Zf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function at(e){e[kn]=!0}var Xf=new Set,Kf={};function ol(e,t){Hl(e,t),Hl(e+"Capture",t)}function Hl(e,t){for(Kf[e]=t,e=0;e<t.length;e++)Xf.add(t[e])}var xg=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]*$"),$f={},Jf={};function gg(e){return Qr.call(Jf,e)?!0:Qr.call($f,e)?!1:xg.test(e)?Jf[e]=!0:($f[e]=!0,!1)}function Is(e,t,a){if(gg(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ps(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function sa(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Lt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ff(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function bg(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var i=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(f){a=""+f,u.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){if(!e._valueTracker){var t=Ff(e)?"checked":"value";e._valueTracker=bg(e,t,""+e[t])}}function Wf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Ff(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function ei(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 yg=/[\n"\\]/g;function kt(e){return e.replace(yg,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fr(e,t,a,l,i,u,f,p){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Lt(t)):e.value!==""+Lt(t)&&(e.value=""+Lt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Wr(e,f,Lt(t)):a!=null?Wr(e,f,Lt(a)):l!=null&&e.removeAttribute("value"),i==null&&u!=null&&(e.defaultChecked=!!u),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Lt(p):e.removeAttribute("name")}function If(e,t,a,l,i,u,f,p){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Jr(e);return}a=a!=null?""+Lt(a):"",t=t!=null?""+Lt(t):a,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??i,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=p?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),Jr(e)}function Wr(e,t,a){t==="number"&&ei(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function ql(e,t,a,l){if(e=e.options,t){t={};for(var i=0;i<a.length;i++)t["$"+a[i]]=!0;for(a=0;a<e.length;a++)i=t.hasOwnProperty("$"+e[a].value),e[a].selected!==i&&(e[a].selected=i),i&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Lt(a),t=null,i=0;i<e.length;i++){if(e[i].value===a){e[i].selected=!0,l&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Pf(e,t,a){if(t!=null&&(t=""+Lt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Lt(a):""}function ed(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(ue(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Lt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),Jr(e)}function Ql(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var jg=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 td(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||jg.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ad(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var i in t)l=t[i],t.hasOwnProperty(i)&&a[i]!==l&&td(e,i,l)}else for(var u in t)t.hasOwnProperty(u)&&td(e,u,t[u])}function Ir(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 wg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Sg=/^[\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 ti(e){return Sg.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ia(){}var Pr=null;function eu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Vl=null,Yl=null;function ld(e){var t=Ul(e);if(t&&(e=t.stateNode)){var a=e[pt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Fr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+kt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var i=l[pt]||null;if(!i)throw Error(o(90));Fr(l,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&Wf(l)}break e;case"textarea":Pf(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&ql(e,!!a.multiple,t,!1)}}}var tu=!1;function nd(e,t,a){if(tu)return e(t,a);tu=!0;try{var l=e(t);return l}finally{if(tu=!1,(Vl!==null||Yl!==null)&&(Vi(),Vl&&(t=Vl,e=Yl,Yl=Vl=null,ld(t),e)))for(t=0;t<e.length;t++)ld(e[t])}}function Bn(e,t){var a=e.stateNode;if(a===null)return null;var l=a[pt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),au=!1;if(ra)try{var Hn={};Object.defineProperty(Hn,"passive",{get:function(){au=!0}}),window.addEventListener("test",Hn,Hn),window.removeEventListener("test",Hn,Hn)}catch{au=!1}var za=null,lu=null,ai=null;function sd(){if(ai)return ai;var e,t=lu,a=t.length,l,i="value"in za?za.value:za.textContent,u=i.length;for(e=0;e<a&&t[e]===i[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===i[u-l];l++);return ai=i.slice(e,1<l?1-l:void 0)}function li(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 ni(){return!0}function id(){return!1}function xt(e){function t(a,l,i,u,f){this._reactName=a,this._targetInst=i,this.type=l,this.nativeEvent=u,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(a=e[p],this[p]=a?a(u):u[p]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ni:id,this.isPropagationStopped=id,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ni)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ni)},persist:function(){},isPersistent:ni}),t}var fl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},si=xt(fl),qn=N({},fl,{view:0,detail:0}),Ng=xt(qn),nu,su,Qn,ii=N({},qn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ru,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!==Qn&&(Qn&&e.type==="mousemove"?(nu=e.screenX-Qn.screenX,su=e.screenY-Qn.screenY):su=nu=0,Qn=e),nu)},movementY:function(e){return"movementY"in e?e.movementY:su}}),rd=xt(ii),Eg=N({},ii,{dataTransfer:0}),Cg=xt(Eg),Ag=N({},qn,{relatedTarget:0}),iu=xt(Ag),Mg=N({},fl,{animationName:0,elapsedTime:0,pseudoElement:0}),Og=xt(Mg),zg=N({},fl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Tg=xt(zg),Rg=N({},fl,{data:0}),ud=xt(Rg),Dg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_g={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"},Lg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Lg[e])?!!t[e]:!1}function ru(){return kg}var Ug=N({},qn,{key:function(e){if(e.key){var t=Dg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=li(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_g[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ru,charCode:function(e){return e.type==="keypress"?li(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?li(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Bg=xt(Ug),Hg=N({},ii,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cd=xt(Hg),qg=N({},qn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ru}),Qg=xt(qg),Vg=N({},fl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Yg=xt(Vg),Gg=N({},ii,{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}),Zg=xt(Gg),Xg=N({},fl,{newState:0,oldState:0}),Kg=xt(Xg),$g=[9,13,27,32],uu=ra&&"CompositionEvent"in window,Vn=null;ra&&"documentMode"in document&&(Vn=document.documentMode);var Jg=ra&&"TextEvent"in window&&!Vn,od=ra&&(!uu||Vn&&8<Vn&&11>=Vn),fd=" ",dd=!1;function hd(e,t){switch(e){case"keyup":return $g.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function md(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gl=!1;function Fg(e,t){switch(e){case"compositionend":return md(t);case"keypress":return t.which!==32?null:(dd=!0,fd);case"textInput":return e=t.data,e===fd&&dd?null:e;default:return null}}function Wg(e,t){if(Gl)return e==="compositionend"||!uu&&hd(e,t)?(e=sd(),ai=lu=za=null,Gl=!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 od&&t.locale!=="ko"?null:t.data;default:return null}}var Ig={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 vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ig[e.type]:t==="textarea"}function pd(e,t,a,l){Vl?Yl?Yl.push(l):Yl=[l]:Vl=l,t=Ji(t,"onChange"),0<t.length&&(a=new si("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Yn=null,Gn=null;function Pg(e){Ih(e,0)}function ri(e){var t=Un(e);if(Wf(t))return e}function xd(e,t){if(e==="change")return t}var gd=!1;if(ra){var cu;if(ra){var ou="oninput"in document;if(!ou){var bd=document.createElement("div");bd.setAttribute("oninput","return;"),ou=typeof bd.oninput=="function"}cu=ou}else cu=!1;gd=cu&&(!document.documentMode||9<document.documentMode)}function yd(){Yn&&(Yn.detachEvent("onpropertychange",jd),Gn=Yn=null)}function jd(e){if(e.propertyName==="value"&&ri(Gn)){var t=[];pd(t,Gn,e,eu(e)),nd(Pg,t)}}function eb(e,t,a){e==="focusin"?(yd(),Yn=t,Gn=a,Yn.attachEvent("onpropertychange",jd)):e==="focusout"&&yd()}function tb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ri(Gn)}function ab(e,t){if(e==="click")return ri(t)}function lb(e,t){if(e==="input"||e==="change")return ri(t)}function nb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:nb;function Zn(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var i=a[l];if(!Qr.call(t,i)||!At(e[i],t[i]))return!1}return!0}function wd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sd(e,t){var a=wd(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=wd(a)}}function Nd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ed(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ei(e.document)}return t}function fu(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 sb=ra&&"documentMode"in document&&11>=document.documentMode,Zl=null,du=null,Xn=null,hu=!1;function Cd(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;hu||Zl==null||Zl!==ei(l)||(l=Zl,"selectionStart"in l&&fu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Xn&&Zn(Xn,l)||(Xn=l,l=Ji(du,"onSelect"),0<l.length&&(t=new si("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Zl)))}function dl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Xl={animationend:dl("Animation","AnimationEnd"),animationiteration:dl("Animation","AnimationIteration"),animationstart:dl("Animation","AnimationStart"),transitionrun:dl("Transition","TransitionRun"),transitionstart:dl("Transition","TransitionStart"),transitioncancel:dl("Transition","TransitionCancel"),transitionend:dl("Transition","TransitionEnd")},mu={},Ad={};ra&&(Ad=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function hl(e){if(mu[e])return mu[e];if(!Xl[e])return e;var t=Xl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Ad)return mu[e]=t[a];return e}var Md=hl("animationend"),Od=hl("animationiteration"),zd=hl("animationstart"),ib=hl("transitionrun"),rb=hl("transitionstart"),ub=hl("transitioncancel"),Td=hl("transitionend"),Rd=new Map,vu="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(" ");vu.push("scrollEnd");function Kt(e,t){Rd.set(e,t),ol(t,[e])}var ui=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)},Ut=[],Kl=0,pu=0;function ci(){for(var e=Kl,t=pu=Kl=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var i=Ut[t];Ut[t++]=null;var u=Ut[t];if(Ut[t++]=null,l!==null&&i!==null){var f=l.pending;f===null?i.next=i:(i.next=f.next,f.next=i),l.pending=i}u!==0&&Dd(a,i,u)}}function oi(e,t,a,l){Ut[Kl++]=e,Ut[Kl++]=t,Ut[Kl++]=a,Ut[Kl++]=l,pu|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function xu(e,t,a,l){return oi(e,t,a,l),fi(e)}function ml(e,t){return oi(e,null,null,t),fi(e)}function Dd(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var i=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(i=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,i&&t!==null&&(i=31-Ct(a),e=u.hiddenUpdates,l=e[i],l===null?e[i]=[t]:l.push(t),t.lane=a|536870912),u):null}function fi(e){if(50<ms)throw ms=0,Cc=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var $l={};function cb(e,t,a,l){this.tag=e,this.key=a,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mt(e,t,a,l){return new cb(e,t,a,l)}function gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ua(e,t){var a=e.alternate;return a===null?(a=Mt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function _d(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function di(e,t,a,l,i,u){var f=0;if(l=e,typeof e=="function")gu(e)&&(f=1);else if(typeof e=="string")f=m2(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case se:return e=Mt(31,a,t,i),e.elementType=se,e.lanes=u,e;case D:return vl(a.children,i,u,t);case Q:f=8,i|=24;break;case H:return e=Mt(12,a,t,i|2),e.elementType=H,e.lanes=u,e;case ne:return e=Mt(13,a,t,i),e.elementType=ne,e.lanes=u,e;case oe:return e=Mt(19,a,t,i),e.elementType=oe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case $:f=10;break e;case V:f=9;break e;case Z:f=11;break e;case Y:f=14;break e;case P:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Mt(f,a,t,i),t.elementType=e,t.type=l,t.lanes=u,t}function vl(e,t,a,l){return e=Mt(7,e,l,t),e.lanes=a,e}function bu(e,t,a){return e=Mt(6,e,null,t),e.lanes=a,e}function Ld(e){var t=Mt(18,null,null,0);return t.stateNode=e,t}function yu(e,t,a){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var kd=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var a=kd.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Lf(t)},kd.set(e,t),t)}return{value:e,source:t,stack:Lf(t)}}var Jl=[],Fl=0,hi=null,Kn=0,Ht=[],qt=0,Ta=null,It=1,Pt="";function ca(e,t){Jl[Fl++]=Kn,Jl[Fl++]=hi,hi=e,Kn=t}function Ud(e,t,a){Ht[qt++]=It,Ht[qt++]=Pt,Ht[qt++]=Ta,Ta=e;var l=It;e=Pt;var i=32-Ct(l)-1;l&=~(1<<i),a+=1;var u=32-Ct(t)+i;if(30<u){var f=i-i%5;u=(l&(1<<f)-1).toString(32),l>>=f,i-=f,It=1<<32-Ct(t)+i|a<<i|l,Pt=u+e}else It=1<<u|a<<i|l,Pt=e}function ju(e){e.return!==null&&(ca(e,1),Ud(e,1,0))}function wu(e){for(;e===hi;)hi=Jl[--Fl],Jl[Fl]=null,Kn=Jl[--Fl],Jl[Fl]=null;for(;e===Ta;)Ta=Ht[--qt],Ht[qt]=null,Pt=Ht[--qt],Ht[qt]=null,It=Ht[--qt],Ht[qt]=null}function Bd(e,t){Ht[qt++]=It,Ht[qt++]=Pt,Ht[qt++]=Ta,It=t.id,Pt=t.overflow,Ta=e}var st=null,Le=null,pe=!1,Ra=null,Qt=!1,Su=Error(o(519));function Da(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw $n(Bt(t,e)),Su}function Hd(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[nt]=e,t[pt]=l,a){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(a=0;a<ps.length;a++)de(ps[a],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),If(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),ed(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||am(t.textContent,a)?(l.popover!=null&&(de("beforetoggle",t),de("toggle",t)),l.onScroll!=null&&de("scroll",t),l.onScrollEnd!=null&&de("scrollend",t),l.onClick!=null&&(t.onclick=ia),t=!0):t=!1,t||Da(e,!0)}function qd(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Qt=!1;return;case 27:case 3:Qt=!0;return;default:st=st.return}}function Wl(e){if(e!==st)return!1;if(!pe)return qd(e),pe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Qc(e.type,e.memoizedProps)),a=!a),a&&Le&&Da(e),qd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=fm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Le=fm(e)}else t===27?(t=Le,Ka(e.type)?(e=Xc,Xc=null,Le=e):Le=t):Le=st?Yt(e.stateNode.nextSibling):null;return!0}function pl(){Le=st=null,pe=!1}function Nu(){var e=Ra;return e!==null&&(jt===null?jt=e:jt.push.apply(jt,e),Ra=null),e}function $n(e){Ra===null?Ra=[e]:Ra.push(e)}var Eu=S(null),xl=null,oa=null;function _a(e,t,a){G(Eu,t._currentValue),t._currentValue=a}function fa(e){e._currentValue=Eu.current,U(Eu)}function Cu(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function Au(e,t,a,l){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var u=i.dependencies;if(u!==null){var f=i.child;u=u.firstContext;e:for(;u!==null;){var p=u;u=i;for(var j=0;j<t.length;j++)if(p.context===t[j]){u.lanes|=a,p=u.alternate,p!==null&&(p.lanes|=a),Cu(u.return,a,e),l||(f=null);break e}u=p.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=a,u=f.alternate,u!==null&&(u.lanes|=a),Cu(f,a,e),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===e){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Il(e,t,a,l){e=null;for(var i=t,u=!1;i!==null;){if(!u){if((i.flags&524288)!==0)u=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=i.type;At(i.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(i===be.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(js):e=[js])}i=i.return}e!==null&&Au(t,e,a,l),t.flags|=262144}function mi(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){xl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function it(e){return Qd(xl,e)}function vi(e,t){return xl===null&&gl(e),Qd(e,t)}function Qd(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(o(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var ob=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},fb=n.unstable_scheduleCallback,db=n.unstable_NormalPriority,$e={$$typeof:$,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mu(){return{controller:new ob,data:new Map,refCount:0}}function Jn(e){e.refCount--,e.refCount===0&&fb(db,function(){e.controller.abort()})}var Fn=null,Ou=0,Pl=0,en=null;function hb(e,t){if(Fn===null){var a=Fn=[];Ou=0,Pl=Rc(),en={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ou++,t.then(Vd,Vd),t}function Vd(){if(--Ou===0&&Fn!==null){en!==null&&(en.status="fulfilled");var e=Fn;Fn=null,Pl=0,en=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function mb(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(i){a.push(i)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var i=0;i<a.length;i++)(0,a[i])(t)},function(i){for(l.status="rejected",l.reason=i,i=0;i<a.length;i++)(0,a[i])(void 0)}),l}var Yd=T.S;T.S=function(e,t){Ch=Nt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hb(e,t),Yd!==null&&Yd(e,t)};var bl=S(null);function zu(){var e=bl.current;return e!==null?e:Te.pooledCache}function pi(e,t){t===null?G(bl,bl.current):G(bl,t.pool)}function Gd(){var e=zu();return e===null?null:{parent:$e._currentValue,pool:e}}var tn=Error(o(460)),Tu=Error(o(474)),xi=Error(o(542)),gi={then:function(){}};function Zd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xd(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ia,ia),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$d(e),e;default:if(typeof t.status=="string")t.then(ia,ia);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=l}},function(l){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$d(e),e}throw jl=t,tn}}function yl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(jl=a,tn):a}}var jl=null;function Kd(){if(jl===null)throw Error(o(459));var e=jl;return jl=null,e}function $d(e){if(e===tn||e===xi)throw Error(o(483))}var an=null,Wn=0;function bi(e){var t=Wn;return Wn+=1,an===null&&(an=[]),Xd(an,e,t)}function In(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yi(e,t){throw t.$$typeof===E?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Jd(e){function t(C,w){if(e){var M=C.deletions;M===null?(C.deletions=[w],C.flags|=16):M.push(w)}}function a(C,w){if(!e)return null;for(;w!==null;)t(C,w),w=w.sibling;return null}function l(C){for(var w=new Map;C!==null;)C.key!==null?w.set(C.key,C):w.set(C.index,C),C=C.sibling;return w}function i(C,w){return C=ua(C,w),C.index=0,C.sibling=null,C}function u(C,w,M){return C.index=M,e?(M=C.alternate,M!==null?(M=M.index,M<w?(C.flags|=67108866,w):M):(C.flags|=67108866,w)):(C.flags|=1048576,w)}function f(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,w,M,k){return w===null||w.tag!==6?(w=bu(M,C.mode,k),w.return=C,w):(w=i(w,M),w.return=C,w)}function j(C,w,M,k){var I=M.type;return I===D?L(C,w,M.props.children,k,M.key):w!==null&&(w.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&yl(I)===w.type)?(w=i(w,M.props),In(w,M),w.return=C,w):(w=di(M.type,M.key,M.props,null,C.mode,k),In(w,M),w.return=C,w)}function O(C,w,M,k){return w===null||w.tag!==4||w.stateNode.containerInfo!==M.containerInfo||w.stateNode.implementation!==M.implementation?(w=yu(M,C.mode,k),w.return=C,w):(w=i(w,M.children||[]),w.return=C,w)}function L(C,w,M,k,I){return w===null||w.tag!==7?(w=vl(M,C.mode,k,I),w.return=C,w):(w=i(w,M),w.return=C,w)}function B(C,w,M){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=bu(""+w,C.mode,M),w.return=C,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case _:return M=di(w.type,w.key,w.props,null,C.mode,M),In(M,w),M.return=C,M;case A:return w=yu(w,C.mode,M),w.return=C,w;case P:return w=yl(w),B(C,w,M)}if(ue(w)||ve(w))return w=vl(w,C.mode,M,null),w.return=C,w;if(typeof w.then=="function")return B(C,bi(w),M);if(w.$$typeof===$)return B(C,vi(C,w),M);yi(C,w)}return null}function z(C,w,M,k){var I=w!==null?w.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return I!==null?null:p(C,w,""+M,k);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case _:return M.key===I?j(C,w,M,k):null;case A:return M.key===I?O(C,w,M,k):null;case P:return M=yl(M),z(C,w,M,k)}if(ue(M)||ve(M))return I!==null?null:L(C,w,M,k,null);if(typeof M.then=="function")return z(C,w,bi(M),k);if(M.$$typeof===$)return z(C,w,vi(C,M),k);yi(C,M)}return null}function R(C,w,M,k,I){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return C=C.get(M)||null,p(w,C,""+k,I);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case _:return C=C.get(k.key===null?M:k.key)||null,j(w,C,k,I);case A:return C=C.get(k.key===null?M:k.key)||null,O(w,C,k,I);case P:return k=yl(k),R(C,w,M,k,I)}if(ue(k)||ve(k))return C=C.get(M)||null,L(w,C,k,I,null);if(typeof k.then=="function")return R(C,w,M,bi(k),I);if(k.$$typeof===$)return R(C,w,M,vi(w,k),I);yi(w,k)}return null}function F(C,w,M,k){for(var I=null,ye=null,W=w,ie=w=0,me=null;W!==null&&ie<M.length;ie++){W.index>ie?(me=W,W=null):me=W.sibling;var je=z(C,W,M[ie],k);if(je===null){W===null&&(W=me);break}e&&W&&je.alternate===null&&t(C,W),w=u(je,w,ie),ye===null?I=je:ye.sibling=je,ye=je,W=me}if(ie===M.length)return a(C,W),pe&&ca(C,ie),I;if(W===null){for(;ie<M.length;ie++)W=B(C,M[ie],k),W!==null&&(w=u(W,w,ie),ye===null?I=W:ye.sibling=W,ye=W);return pe&&ca(C,ie),I}for(W=l(W);ie<M.length;ie++)me=R(W,C,ie,M[ie],k),me!==null&&(e&&me.alternate!==null&&W.delete(me.key===null?ie:me.key),w=u(me,w,ie),ye===null?I=me:ye.sibling=me,ye=me);return e&&W.forEach(function(Ia){return t(C,Ia)}),pe&&ca(C,ie),I}function ee(C,w,M,k){if(M==null)throw Error(o(151));for(var I=null,ye=null,W=w,ie=w=0,me=null,je=M.next();W!==null&&!je.done;ie++,je=M.next()){W.index>ie?(me=W,W=null):me=W.sibling;var Ia=z(C,W,je.value,k);if(Ia===null){W===null&&(W=me);break}e&&W&&Ia.alternate===null&&t(C,W),w=u(Ia,w,ie),ye===null?I=Ia:ye.sibling=Ia,ye=Ia,W=me}if(je.done)return a(C,W),pe&&ca(C,ie),I;if(W===null){for(;!je.done;ie++,je=M.next())je=B(C,je.value,k),je!==null&&(w=u(je,w,ie),ye===null?I=je:ye.sibling=je,ye=je);return pe&&ca(C,ie),I}for(W=l(W);!je.done;ie++,je=M.next())je=R(W,C,ie,je.value,k),je!==null&&(e&&je.alternate!==null&&W.delete(je.key===null?ie:je.key),w=u(je,w,ie),ye===null?I=je:ye.sibling=je,ye=je);return e&&W.forEach(function(E2){return t(C,E2)}),pe&&ca(C,ie),I}function Oe(C,w,M,k){if(typeof M=="object"&&M!==null&&M.type===D&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case _:e:{for(var I=M.key;w!==null;){if(w.key===I){if(I=M.type,I===D){if(w.tag===7){a(C,w.sibling),k=i(w,M.props.children),k.return=C,C=k;break e}}else if(w.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===P&&yl(I)===w.type){a(C,w.sibling),k=i(w,M.props),In(k,M),k.return=C,C=k;break e}a(C,w);break}else t(C,w);w=w.sibling}M.type===D?(k=vl(M.props.children,C.mode,k,M.key),k.return=C,C=k):(k=di(M.type,M.key,M.props,null,C.mode,k),In(k,M),k.return=C,C=k)}return f(C);case A:e:{for(I=M.key;w!==null;){if(w.key===I)if(w.tag===4&&w.stateNode.containerInfo===M.containerInfo&&w.stateNode.implementation===M.implementation){a(C,w.sibling),k=i(w,M.children||[]),k.return=C,C=k;break e}else{a(C,w);break}else t(C,w);w=w.sibling}k=yu(M,C.mode,k),k.return=C,C=k}return f(C);case P:return M=yl(M),Oe(C,w,M,k)}if(ue(M))return F(C,w,M,k);if(ve(M)){if(I=ve(M),typeof I!="function")throw Error(o(150));return M=I.call(M),ee(C,w,M,k)}if(typeof M.then=="function")return Oe(C,w,bi(M),k);if(M.$$typeof===$)return Oe(C,w,vi(C,M),k);yi(C,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,w!==null&&w.tag===6?(a(C,w.sibling),k=i(w,M),k.return=C,C=k):(a(C,w),k=bu(M,C.mode,k),k.return=C,C=k),f(C)):a(C,w)}return function(C,w,M,k){try{Wn=0;var I=Oe(C,w,M,k);return an=null,I}catch(W){if(W===tn||W===xi)throw W;var ye=Mt(29,W,null,C.mode);return ye.lanes=k,ye.return=C,ye}}}var wl=Jd(!0),Fd=Jd(!1),La=!1;function Ru(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Du(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 ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ua(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Se&2)!==0){var i=l.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),l.pending=t,t=fi(e),Dd(e,null,a),t}return oi(e,l,t,a),fi(e)}function Pn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Qf(e,a)}}function _u(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var i=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?i=u=f:u=u.next=f,a=a.next}while(a!==null);u===null?i=u=t:u=u.next=t}else i=u=t;a={baseState:l.baseState,firstBaseUpdate:i,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Lu=!1;function es(){if(Lu){var e=en;if(e!==null)throw e}}function ts(e,t,a,l){Lu=!1;var i=e.updateQueue;La=!1;var u=i.firstBaseUpdate,f=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var j=p,O=j.next;j.next=null,f===null?u=O:f.next=O,f=j;var L=e.alternate;L!==null&&(L=L.updateQueue,p=L.lastBaseUpdate,p!==f&&(p===null?L.firstBaseUpdate=O:p.next=O,L.lastBaseUpdate=j))}if(u!==null){var B=i.baseState;f=0,L=O=j=null,p=u;do{var z=p.lane&-536870913,R=z!==p.lane;if(R?(he&z)===z:(l&z)===z){z!==0&&z===Pl&&(Lu=!0),L!==null&&(L=L.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var F=e,ee=p;z=t;var Oe=a;switch(ee.tag){case 1:if(F=ee.payload,typeof F=="function"){B=F.call(Oe,B,z);break e}B=F;break e;case 3:F.flags=F.flags&-65537|128;case 0:if(F=ee.payload,z=typeof F=="function"?F.call(Oe,B,z):F,z==null)break e;B=N({},B,z);break e;case 2:La=!0}}z=p.callback,z!==null&&(e.flags|=64,R&&(e.flags|=8192),R=i.callbacks,R===null?i.callbacks=[z]:R.push(z))}else R={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},L===null?(O=L=R,j=B):L=L.next=R,f|=z;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;R=p,p=R.next,R.next=null,i.lastBaseUpdate=R,i.shared.pending=null}}while(!0);L===null&&(j=B),i.baseState=j,i.firstBaseUpdate=O,i.lastBaseUpdate=L,u===null&&(i.shared.lanes=0),Va|=f,e.lanes=f,e.memoizedState=B}}function Wd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function Id(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Wd(a[e],t)}var ln=S(null),ji=S(0);function Pd(e,t){e=ya,G(ji,e),G(ln,t),ya=e|t.baseLanes}function ku(){G(ji,ya),G(ln,ln.current)}function Uu(){ya=ji.current,U(ln),U(ji)}var Ot=S(null),Vt=null;function Ba(e){var t=e.alternate;G(Ze,Ze.current&1),G(Ot,e),Vt===null&&(t===null||ln.current!==null||t.memoizedState!==null)&&(Vt=e)}function Bu(e){G(Ze,Ze.current),G(Ot,e),Vt===null&&(Vt=e)}function e0(e){e.tag===22?(G(Ze,Ze.current),G(Ot,e),Vt===null&&(Vt=e)):Ha()}function Ha(){G(Ze,Ze.current),G(Ot,Ot.current)}function zt(e){U(Ot),Vt===e&&(Vt=null),U(Ze)}var Ze=S(0);function wi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Gc(a)||Zc(a)))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,le=null,Ae=null,Je=null,Si=!1,nn=!1,Sl=!1,Ni=0,as=0,sn=null,vb=0;function Qe(){throw Error(o(321))}function Hu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!At(e[a],t[a]))return!1;return!0}function qu(e,t,a,l,i,u){return da=u,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,T.H=e===null||e.memoizedState===null?U0:tc,Sl=!1,u=a(l,i),Sl=!1,nn&&(u=a0(t,a,l,i)),t0(e),u}function t0(e){T.H=ss;var t=Ae!==null&&Ae.next!==null;if(da=0,Je=Ae=le=null,Si=!1,as=0,sn=null,t)throw Error(o(300));e===null||Fe||(e=e.dependencies,e!==null&&mi(e)&&(Fe=!0))}function a0(e,t,a,l){le=e;var i=0;do{if(nn&&(sn=null),as=0,nn=!1,25<=i)throw Error(o(301));if(i+=1,Je=Ae=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}T.H=B0,u=t(a,l)}while(nn);return u}function pb(){var e=T.H,t=e.useState()[0];return t=typeof t.then=="function"?ls(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(le.flags|=1024),t}function Qu(){var e=Ni!==0;return Ni=0,e}function Vu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Yu(e){if(Si){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Si=!1}da=0,Je=Ae=le=null,nn=!1,as=Ni=0,sn=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?le.memoizedState=Je=e:Je=Je.next=e,Je}function Xe(){if(Ae===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Je===null?le.memoizedState:Je.next;if(t!==null)Je=t,Ae=e;else{if(e===null)throw le.alternate===null?Error(o(467)):Error(o(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Je===null?le.memoizedState=Je=e:Je=Je.next=e}return Je}function Ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(e){var t=as;return as+=1,sn===null&&(sn=[]),e=Xd(sn,e,t),t=le,(Je===null?t.memoizedState:Je.next)===null&&(t=t.alternate,T.H=t===null||t.memoizedState===null?U0:tc),e}function Ci(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ls(e);if(e.$$typeof===$)return it(e)}throw Error(o(438,String(e)))}function Gu(e){var t=null,a=le.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=le.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ei(),le.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=ze;return t.index++,a}function ha(e,t){return typeof t=="function"?t(e):t}function Ai(e){var t=Xe();return Zu(t,Ae,e)}function Zu(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var i=e.baseQueue,u=l.pending;if(u!==null){if(i!==null){var f=i.next;i.next=u.next,u.next=f}t.baseQueue=i=u,l.pending=null}if(u=e.baseState,i===null)e.memoizedState=u;else{t=i.next;var p=f=null,j=null,O=t,L=!1;do{var B=O.lane&-536870913;if(B!==O.lane?(he&B)===B:(da&B)===B){var z=O.revertLane;if(z===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),B===Pl&&(L=!0);else if((da&z)===z){O=O.next,z===Pl&&(L=!0);continue}else B={lane:0,revertLane:O.revertLane,gesture:null,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(p=j=B,f=u):j=j.next=B,le.lanes|=z,Va|=z;B=O.action,Sl&&a(u,B),u=O.hasEagerState?O.eagerState:a(u,B)}else z={lane:B,revertLane:O.revertLane,gesture:O.gesture,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null},j===null?(p=j=z,f=u):j=j.next=z,le.lanes|=B,Va|=B;O=O.next}while(O!==null&&O!==t);if(j===null?f=u:j.next=p,!At(u,e.memoizedState)&&(Fe=!0,L&&(a=en,a!==null)))throw a;e.memoizedState=u,e.baseState=f,e.baseQueue=j,l.lastRenderedState=u}return i===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Xu(e){var t=Xe(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,i=a.pending,u=t.memoizedState;if(i!==null){a.pending=null;var f=i=i.next;do u=e(u,f.action),f=f.next;while(f!==i);At(u,t.memoizedState)||(Fe=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,l]}function l0(e,t,a){var l=le,i=Xe(),u=pe;if(u){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!At((Ae||i).memoizedState,a);if(f&&(i.memoizedState=a,Fe=!0),i=i.queue,Ju(i0.bind(null,l,i,e),[e]),i.getSnapshot!==t||f||Je!==null&&Je.memoizedState.tag&1){if(l.flags|=2048,rn(9,{destroy:void 0},s0.bind(null,l,i,a,t),null),Te===null)throw Error(o(349));u||(da&127)!==0||n0(l,t,a)}return a}function n0(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=le.updateQueue,t===null?(t=Ei(),le.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function s0(e,t,a,l){t.value=a,t.getSnapshot=l,r0(t)&&u0(e)}function i0(e,t,a){return a(function(){r0(t)&&u0(e)})}function r0(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!At(e,a)}catch{return!0}}function u0(e){var t=ml(e,2);t!==null&&wt(t,e,2)}function Ku(e){var t=mt();if(typeof e=="function"){var a=e;if(e=a(),Sl){Ma(!0);try{a()}finally{Ma(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:e},t}function c0(e,t,a,l){return e.baseState=a,Zu(e,Ae,typeof l=="function"?l:ha)}function xb(e,t,a,l,i){if(zi(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){u.listeners.push(f)}};T.T!==null?a(!0):u.isTransition=!1,l(u),a=t.pending,a===null?(u.next=t.pending=u,o0(t,u)):(u.next=a.next,t.pending=a.next=u)}}function o0(e,t){var a=t.action,l=t.payload,i=e.state;if(t.isTransition){var u=T.T,f={};T.T=f;try{var p=a(i,l),j=T.S;j!==null&&j(f,p),f0(e,t,p)}catch(O){$u(e,t,O)}finally{u!==null&&f.types!==null&&(u.types=f.types),T.T=u}}else try{u=a(i,l),f0(e,t,u)}catch(O){$u(e,t,O)}}function f0(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){d0(e,t,l)},function(l){return $u(e,t,l)}):d0(e,t,a)}function d0(e,t,a){t.status="fulfilled",t.value=a,h0(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,o0(e,a)))}function $u(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,h0(t),t=t.next;while(t!==l)}e.action=null}function h0(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function m0(e,t){return t}function v0(e,t){if(pe){var a=Te.formState;if(a!==null){e:{var l=le;if(pe){if(Le){t:{for(var i=Le,u=Qt;i.nodeType!==8;){if(!u){i=null;break t}if(i=Yt(i.nextSibling),i===null){i=null;break t}}u=i.data,i=u==="F!"||u==="F"?i:null}if(i){Le=Yt(i.nextSibling),l=i.data==="F!";break e}}Da(l)}l=!1}l&&(t=a[0])}}return a=mt(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:m0,lastRenderedState:t},a.queue=l,a=_0.bind(null,le,l),l.dispatch=a,l=Ku(!1),u=ec.bind(null,le,!1,l.queue),l=mt(),i={state:t,dispatch:null,action:e,pending:null},l.queue=i,a=xb.bind(null,le,i,u,a),i.dispatch=a,l.memoizedState=e,[t,a,!1]}function p0(e){var t=Xe();return x0(t,Ae,e)}function x0(e,t,a){if(t=Zu(e,t,m0)[0],e=Ai(ha)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ls(t)}catch(f){throw f===tn?xi:f}else l=t;t=Xe();var i=t.queue,u=i.dispatch;return a!==t.memoizedState&&(le.flags|=2048,rn(9,{destroy:void 0},gb.bind(null,i,a),null)),[l,u,e]}function gb(e,t){e.action=t}function g0(e){var t=Xe(),a=Ae;if(a!==null)return x0(t,a,e);Xe(),t=t.memoizedState,a=Xe();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function rn(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=le.updateQueue,t===null&&(t=Ei(),le.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function b0(){return Xe().memoizedState}function Mi(e,t,a,l){var i=mt();le.flags|=e,i.memoizedState=rn(1|t,{destroy:void 0},a,l===void 0?null:l)}function Oi(e,t,a,l){var i=Xe();l=l===void 0?null:l;var u=i.memoizedState.inst;Ae!==null&&l!==null&&Hu(l,Ae.memoizedState.deps)?i.memoizedState=rn(t,u,a,l):(le.flags|=e,i.memoizedState=rn(1|t,u,a,l))}function y0(e,t){Mi(8390656,8,e,t)}function Ju(e,t){Oi(2048,8,e,t)}function bb(e){le.flags|=4;var t=le.updateQueue;if(t===null)t=Ei(),le.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function j0(e){var t=Xe().memoizedState;return bb({ref:t,nextImpl:e}),function(){if((Se&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function w0(e,t){return Oi(4,2,e,t)}function S0(e,t){return Oi(4,4,e,t)}function N0(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function E0(e,t,a){a=a!=null?a.concat([e]):null,Oi(4,4,N0.bind(null,t,e),a)}function Fu(){}function C0(e,t){var a=Xe();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&Hu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function A0(e,t){var a=Xe();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&Hu(t,l[1]))return l[0];if(l=e(),Sl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l}function Wu(e,t,a){return a===void 0||(da&1073741824)!==0&&(he&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Mh(),le.lanes|=e,Va|=e,a)}function M0(e,t,a,l){return At(a,t)?a:ln.current!==null?(e=Wu(e,a,l),At(e,t)||(Fe=!0),e):(da&42)===0||(da&1073741824)!==0&&(he&261930)===0?(Fe=!0,e.memoizedState=a):(e=Mh(),le.lanes|=e,Va|=e,t)}function O0(e,t,a,l,i){var u=q.p;q.p=u!==0&&8>u?u:8;var f=T.T,p={};T.T=p,ec(e,!1,t,a);try{var j=i(),O=T.S;if(O!==null&&O(p,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var L=mb(j,l);ns(e,t,L,Dt(e))}else ns(e,t,l,Dt(e))}catch(B){ns(e,t,{then:function(){},status:"rejected",reason:B},Dt())}finally{q.p=u,f!==null&&p.types!==null&&(f.types=p.types),T.T=f}}function yb(){}function Iu(e,t,a,l){if(e.tag!==5)throw Error(o(476));var i=z0(e).queue;O0(e,i,t,X,a===null?yb:function(){return T0(e),a(l)})}function z0(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:X},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ha,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function T0(e){var t=z0(e);t.next===null&&(t=e.alternate.memoizedState),ns(e,t.next.queue,{},Dt())}function Pu(){return it(js)}function R0(){return Xe().memoizedState}function D0(){return Xe().memoizedState}function jb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Dt();e=ka(a);var l=Ua(t,e,a);l!==null&&(wt(l,t,a),Pn(l,t,a)),t={cache:Mu()},e.payload=t;return}t=t.return}}function wb(e,t,a){var l=Dt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},zi(e)?L0(t,a):(a=xu(e,t,a,l),a!==null&&(wt(a,e,l),k0(a,t,l)))}function _0(e,t,a){var l=Dt();ns(e,t,a,l)}function ns(e,t,a,l){var i={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(zi(e))L0(t,i);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var f=t.lastRenderedState,p=u(f,a);if(i.hasEagerState=!0,i.eagerState=p,At(p,f))return oi(e,t,i,0),Te===null&&ci(),!1}catch{}if(a=xu(e,t,i,l),a!==null)return wt(a,e,l),k0(a,t,l),!0}return!1}function ec(e,t,a,l){if(l={lane:2,revertLane:Rc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},zi(e)){if(t)throw Error(o(479))}else t=xu(e,a,l,2),t!==null&&wt(t,e,2)}function zi(e){var t=e.alternate;return e===le||t!==null&&t===le}function L0(e,t){nn=Si=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function k0(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,Qf(e,a)}}var ss={readContext:it,use:Ci,useCallback:Qe,useContext:Qe,useEffect:Qe,useImperativeHandle:Qe,useLayoutEffect:Qe,useInsertionEffect:Qe,useMemo:Qe,useReducer:Qe,useRef:Qe,useState:Qe,useDebugValue:Qe,useDeferredValue:Qe,useTransition:Qe,useSyncExternalStore:Qe,useId:Qe,useHostTransitionStatus:Qe,useFormState:Qe,useActionState:Qe,useOptimistic:Qe,useMemoCache:Qe,useCacheRefresh:Qe};ss.useEffectEvent=Qe;var U0={readContext:it,use:Ci,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:it,useEffect:y0,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Mi(4194308,4,N0.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){Mi(4,2,e,t)},useMemo:function(e,t){var a=mt();t=t===void 0?null:t;var l=e();if(Sl){Ma(!0);try{e()}finally{Ma(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=mt();if(a!==void 0){var i=a(t);if(Sl){Ma(!0);try{a(t)}finally{Ma(!1)}}}else i=t;return l.memoizedState=l.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},l.queue=e,e=e.dispatch=wb.bind(null,le,e),[l.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Ku(e);var t=e.queue,a=_0.bind(null,le,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Fu,useDeferredValue:function(e,t){var a=mt();return Wu(a,e,t)},useTransition:function(){var e=Ku(!1);return e=O0.bind(null,le,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=le,i=mt();if(pe){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Te===null)throw Error(o(349));(he&127)!==0||n0(l,t,a)}i.memoizedState=a;var u={value:a,getSnapshot:t};return i.queue=u,y0(i0.bind(null,l,u,e),[e]),l.flags|=2048,rn(9,{destroy:void 0},s0.bind(null,l,u,a,t),null),a},useId:function(){var e=mt(),t=Te.identifierPrefix;if(pe){var a=Pt,l=It;a=(l&~(1<<32-Ct(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ni++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=vb++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Pu,useFormState:v0,useActionState:v0,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ec.bind(null,le,!0,a),a.dispatch=t,[e,t]},useMemoCache:Gu,useCacheRefresh:function(){return mt().memoizedState=jb.bind(null,le)},useEffectEvent:function(e){var t=mt(),a={impl:e};return t.memoizedState=a,function(){if((Se&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},tc={readContext:it,use:Ci,useCallback:C0,useContext:it,useEffect:Ju,useImperativeHandle:E0,useInsertionEffect:w0,useLayoutEffect:S0,useMemo:A0,useReducer:Ai,useRef:b0,useState:function(){return Ai(ha)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=Xe();return M0(a,Ae.memoizedState,e,t)},useTransition:function(){var e=Ai(ha)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:ls(e),t]},useSyncExternalStore:l0,useId:R0,useHostTransitionStatus:Pu,useFormState:p0,useActionState:p0,useOptimistic:function(e,t){var a=Xe();return c0(a,Ae,e,t)},useMemoCache:Gu,useCacheRefresh:D0};tc.useEffectEvent=j0;var B0={readContext:it,use:Ci,useCallback:C0,useContext:it,useEffect:Ju,useImperativeHandle:E0,useInsertionEffect:w0,useLayoutEffect:S0,useMemo:A0,useReducer:Xu,useRef:b0,useState:function(){return Xu(ha)},useDebugValue:Fu,useDeferredValue:function(e,t){var a=Xe();return Ae===null?Wu(a,e,t):M0(a,Ae.memoizedState,e,t)},useTransition:function(){var e=Xu(ha)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:ls(e),t]},useSyncExternalStore:l0,useId:R0,useHostTransitionStatus:Pu,useFormState:g0,useActionState:g0,useOptimistic:function(e,t){var a=Xe();return Ae!==null?c0(a,Ae,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Gu,useCacheRefresh:D0};B0.useEffectEvent=j0;function ac(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:N({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var lc={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Dt(),i=ka(l);i.payload=t,a!=null&&(i.callback=a),t=Ua(e,i,l),t!==null&&(wt(t,e,l),Pn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Dt(),i=ka(l);i.tag=1,i.payload=t,a!=null&&(i.callback=a),t=Ua(e,i,l),t!==null&&(wt(t,e,l),Pn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Dt(),l=ka(a);l.tag=2,t!=null&&(l.callback=t),t=Ua(e,l,a),t!==null&&(wt(t,e,a),Pn(t,e,a))}};function H0(e,t,a,l,i,u,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,f):t.prototype&&t.prototype.isPureReactComponent?!Zn(a,l)||!Zn(i,u):!0}function q0(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&lc.enqueueReplaceState(t,t.state,null)}function Nl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=N({},a));for(var i in e)a[i]===void 0&&(a[i]=e[i])}return a}function Q0(e){ui(e)}function V0(e){console.error(e)}function Y0(e){ui(e)}function Ti(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function G0(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function nc(e,t,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Ti(e,t)},a}function Z0(e){return e=ka(e),e.tag=3,e}function X0(e,t,a,l){var i=a.type.getDerivedStateFromError;if(typeof i=="function"){var u=l.value;e.payload=function(){return i(u)},e.callback=function(){G0(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){G0(t,a,l),typeof i!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function Sb(e,t,a,l,i){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Il(t,a,i,!0),a=Ot.current,a!==null){switch(a.tag){case 31:case 13:return Vt===null?Yi():a.alternate===null&&Ve===0&&(Ve=3),a.flags&=-257,a.flags|=65536,a.lanes=i,l===gi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Oc(e,l,i)),!1;case 22:return a.flags|=65536,l===gi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Oc(e,l,i)),!1}throw Error(o(435,a.tag))}return Oc(e,l,i),Yi(),!1}if(pe)return t=Ot.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=i,l!==Su&&(e=Error(o(422),{cause:l}),$n(Bt(e,a)))):(l!==Su&&(t=Error(o(423),{cause:l}),$n(Bt(t,a))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,l=Bt(l,a),i=nc(e.stateNode,l,i),_u(e,i),Ve!==4&&(Ve=2)),!1;var u=Error(o(520),{cause:l});if(u=Bt(u,a),hs===null?hs=[u]:hs.push(u),Ve!==4&&(Ve=2),t===null)return!0;l=Bt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=i&-i,a.lanes|=e,e=nc(a.stateNode,l,e),_u(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ya===null||!Ya.has(u))))return a.flags|=65536,i&=-i,a.lanes|=i,i=Z0(i),X0(i,e,a,l),_u(a,i),!1}a=a.return}while(a!==null);return!1}var sc=Error(o(461)),Fe=!1;function rt(e,t,a,l){t.child=e===null?Fd(t,null,a,l):wl(t,e.child,a,l)}function K0(e,t,a,l,i){a=a.render;var u=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return gl(t),l=qu(e,t,a,f,u,i),p=Qu(),e!==null&&!Fe?(Vu(e,t,i),ma(e,t,i)):(pe&&p&&ju(t),t.flags|=1,rt(e,t,l,i),t.child)}function $0(e,t,a,l,i){if(e===null){var u=a.type;return typeof u=="function"&&!gu(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,J0(e,t,u,l,i)):(e=di(a.type,null,l,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!hc(e,i)){var f=u.memoizedProps;if(a=a.compare,a=a!==null?a:Zn,a(f,l)&&e.ref===t.ref)return ma(e,t,i)}return t.flags|=1,e=ua(u,l),e.ref=t.ref,e.return=t,t.child=e}function J0(e,t,a,l,i){if(e!==null){var u=e.memoizedProps;if(Zn(u,l)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=l=u,hc(e,i))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,ma(e,t,i)}return ic(e,t,a,l,i)}function F0(e,t,a,l){var i=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,i=0;l!==null;)i=i|l.lanes|l.childLanes,l=l.sibling;l=i&~u}else l=0,t.child=null;return W0(e,t,u,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pi(t,u!==null?u.cachePool:null),u!==null?Pd(t,u):ku(),e0(t);else return l=t.lanes=536870912,W0(e,t,u!==null?u.baseLanes|a:a,a,l)}else u!==null?(pi(t,u.cachePool),Pd(t,u),Ha(),t.memoizedState=null):(e!==null&&pi(t,null),ku(),Ha());return rt(e,t,i,a),t.child}function is(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function W0(e,t,a,l,i){var u=zu();return u=u===null?null:{parent:$e._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&pi(t,null),ku(),e0(t),e!==null&&Il(e,t,l,!0),t.childLanes=i,null}function Ri(e,t){return t=_i({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function I0(e,t,a){return wl(t,e.child,null,a),e=Ri(t,t.pendingProps),e.flags|=2,zt(t),t.memoizedState=null,e}function Nb(e,t,a){var l=t.pendingProps,i=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(pe){if(l.mode==="hidden")return e=Ri(t,l),t.lanes=536870912,is(null,e);if(Bu(t),(e=Le)?(e=om(e,Qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=Ld(e),a.return=t,t.child=a,st=t,Le=null)):e=null,e===null)throw Da(t);return t.lanes=536870912,null}return Ri(t,l)}var u=e.memoizedState;if(u!==null){var f=u.dehydrated;if(Bu(t),i)if(t.flags&256)t.flags&=-257,t=I0(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Fe||Il(e,t,a,!1),i=(a&e.childLanes)!==0,Fe||i){if(l=Te,l!==null&&(f=Vf(l,a),f!==0&&f!==u.retryLane))throw u.retryLane=f,ml(e,f),wt(l,e,f),sc;Yi(),t=I0(e,t,a)}else e=u.treeContext,Le=Yt(f.nextSibling),st=t,pe=!0,Ra=null,Qt=!1,e!==null&&Bd(t,e),t=Ri(t,l),t.flags|=4096;return t}return e=ua(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Di(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function ic(e,t,a,l,i){return gl(t),a=qu(e,t,a,l,void 0,i),l=Qu(),e!==null&&!Fe?(Vu(e,t,i),ma(e,t,i)):(pe&&l&&ju(t),t.flags|=1,rt(e,t,a,i),t.child)}function P0(e,t,a,l,i,u){return gl(t),t.updateQueue=null,a=a0(t,l,a,i),t0(e),l=Qu(),e!==null&&!Fe?(Vu(e,t,u),ma(e,t,u)):(pe&&l&&ju(t),t.flags|=1,rt(e,t,a,u),t.child)}function eh(e,t,a,l,i){if(gl(t),t.stateNode===null){var u=$l,f=a.contextType;typeof f=="object"&&f!==null&&(u=it(f)),u=new a(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=lc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},Ru(t),f=a.contextType,u.context=typeof f=="object"&&f!==null?it(f):$l,u.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(ac(t,a,f,l),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(f=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),f!==u.state&&lc.enqueueReplaceState(u,u.state,null),ts(t,l,u,i),es(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var p=t.memoizedProps,j=Nl(a,p);u.props=j;var O=u.context,L=a.contextType;f=$l,typeof L=="object"&&L!==null&&(f=it(L));var B=a.getDerivedStateFromProps;L=typeof B=="function"||typeof u.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,L||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(p||O!==f)&&q0(t,u,l,f),La=!1;var z=t.memoizedState;u.state=z,ts(t,l,u,i),es(),O=t.memoizedState,p||z!==O||La?(typeof B=="function"&&(ac(t,a,B,l),O=t.memoizedState),(j=La||H0(t,a,j,l,z,O,f))?(L||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=O),u.props=l,u.state=O,u.context=f,l=j):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,Du(e,t),f=t.memoizedProps,L=Nl(a,f),u.props=L,B=t.pendingProps,z=u.context,O=a.contextType,j=$l,typeof O=="object"&&O!==null&&(j=it(O)),p=a.getDerivedStateFromProps,(O=typeof p=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(f!==B||z!==j)&&q0(t,u,l,j),La=!1,z=t.memoizedState,u.state=z,ts(t,l,u,i),es();var R=t.memoizedState;f!==B||z!==R||La||e!==null&&e.dependencies!==null&&mi(e.dependencies)?(typeof p=="function"&&(ac(t,a,p,l),R=t.memoizedState),(L=La||H0(t,a,L,l,z,R,j)||e!==null&&e.dependencies!==null&&mi(e.dependencies))?(O||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,R,j),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,R,j)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=R),u.props=l,u.state=R,u.context=j,l=L):(typeof u.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,Di(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=wl(t,e.child,null,i),t.child=wl(t,null,a,i)):rt(e,t,a,i),t.memoizedState=u.state,e=t.child):e=ma(e,t,i),e}function th(e,t,a,l){return pl(),t.flags|=256,rt(e,t,a,l),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function uc(e){return{baseLanes:e,cachePool:Gd()}}function cc(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Rt),e}function ah(e,t,a){var l=t.pendingProps,i=!1,u=(t.flags&128)!==0,f;if((f=u)||(f=e!==null&&e.memoizedState===null?!1:(Ze.current&2)!==0),f&&(i=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(pe){if(i?Ba(t):Ha(),(e=Le)?(e=om(e,Qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ta!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},a=Ld(e),a.return=t,t.child=a,st=t,Le=null)):e=null,e===null)throw Da(t);return Zc(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,i?(Ha(),i=t.mode,p=_i({mode:"hidden",children:p},i),l=vl(l,i,a,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=uc(a),l.childLanes=cc(e,f,a),t.memoizedState=rc,is(null,l)):(Ba(t),oc(t,p))}var j=e.memoizedState;if(j!==null&&(p=j.dehydrated,p!==null)){if(u)t.flags&256?(Ba(t),t.flags&=-257,t=fc(e,t,a)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),p=l.fallback,i=t.mode,l=_i({mode:"visible",children:l.children},i),p=vl(p,i,a,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,wl(t,e.child,null,a),l=t.child,l.memoizedState=uc(a),l.childLanes=cc(e,f,a),t.memoizedState=rc,t=is(null,l));else if(Ba(t),Zc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var O=f.dgst;f=O,l=Error(o(419)),l.stack="",l.digest=f,$n({value:l,source:null,stack:null}),t=fc(e,t,a)}else if(Fe||Il(e,t,a,!1),f=(a&e.childLanes)!==0,Fe||f){if(f=Te,f!==null&&(l=Vf(f,a),l!==0&&l!==j.retryLane))throw j.retryLane=l,ml(e,l),wt(f,e,l),sc;Gc(p)||Yi(),t=fc(e,t,a)}else Gc(p)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,Le=Yt(p.nextSibling),st=t,pe=!0,Ra=null,Qt=!1,e!==null&&Bd(t,e),t=oc(t,l.children),t.flags|=4096);return t}return i?(Ha(),p=l.fallback,i=t.mode,j=e.child,O=j.sibling,l=ua(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,O!==null?p=ua(O,p):(p=vl(p,i,a,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,is(null,l),l=t.child,p=e.child.memoizedState,p===null?p=uc(a):(i=p.cachePool,i!==null?(j=$e._currentValue,i=i.parent!==j?{parent:j,pool:j}:i):i=Gd(),p={baseLanes:p.baseLanes|a,cachePool:i}),l.memoizedState=p,l.childLanes=cc(e,f,a),t.memoizedState=rc,is(e.child,l)):(Ba(t),a=e.child,e=a.sibling,a=ua(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function oc(e,t){return t=_i({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _i(e,t){return e=Mt(22,e,null,t),e.lanes=0,e}function fc(e,t,a){return wl(t,e.child,null,a),e=oc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lh(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Cu(e.return,t,a)}function dc(e,t,a,l,i,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:i,treeForkCount:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=i,f.treeForkCount=u)}function nh(e,t,a){var l=t.pendingProps,i=l.revealOrder,u=l.tail;l=l.children;var f=Ze.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,G(Ze,f),rt(e,t,l,a),l=pe?Kn:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lh(e,a,t);else if(e.tag===19)lh(e,a,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(i){case"forwards":for(a=t.child,i=null;a!==null;)e=a.alternate,e!==null&&wi(e)===null&&(i=a),a=a.sibling;a=i,a===null?(i=t.child,t.child=null):(i=a.sibling,a.sibling=null),dc(t,!1,i,a,u,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&wi(e)===null){t.child=i;break}e=i.sibling,i.sibling=a,a=i,i=e}dc(t,!0,a,null,u,l);break;case"together":dc(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ma(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Va|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Il(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ua(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ua(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function hc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mi(e)))}function Eb(e,t,a){switch(t.tag){case 3:Ge(t,t.stateNode.containerInfo),_a(t,$e,e.memoizedState.cache),pl();break;case 27:case 5:Ca(t);break;case 4:Ge(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bu(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ba(t),t.flags|=128,null):(a&t.child.childLanes)!==0?ah(e,t,a):(Ba(t),e=ma(e,t,a),e!==null?e.sibling:null);Ba(t);break;case 19:var i=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Il(e,t,a,!1),l=(a&t.childLanes)!==0),i){if(l)return nh(e,t,a);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(Ze,Ze.current),l)break;return null;case 22:return t.lanes=0,F0(e,t,a,t.pendingProps);case 24:_a(t,$e,e.memoizedState.cache)}return ma(e,t,a)}function sh(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!hc(e,a)&&(t.flags&128)===0)return Fe=!1,Eb(e,t,a);Fe=(e.flags&131072)!==0}else Fe=!1,pe&&(t.flags&1048576)!==0&&Ud(t,Kn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")gu(e)?(l=Nl(e,l),t.tag=1,t=eh(null,t,e,l,a)):(t.tag=0,t=ic(null,t,e,l,a));else{if(e!=null){var i=e.$$typeof;if(i===Z){t.tag=11,t=K0(null,t,e,l,a);break e}else if(i===Y){t.tag=14,t=$0(null,t,e,l,a);break e}}throw t=ot(e)||e,Error(o(306,t,""))}}return t;case 0:return ic(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,i=Nl(l,t.pendingProps),eh(e,t,l,i,a);case 3:e:{if(Ge(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var u=t.memoizedState;i=u.element,Du(e,t),ts(t,l,null,a);var f=t.memoizedState;if(l=f.cache,_a(t,$e,l),l!==u.cache&&Au(t,[$e],a,!0),es(),l=f.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=th(e,t,l,a);break e}else if(l!==i){i=Bt(Error(o(424)),t),$n(i),t=th(e,t,l,a);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(Le=Yt(e.firstChild),st=t,pe=!0,Ra=null,Qt=!0,a=Fd(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(pl(),l===i){t=ma(e,t,a);break e}rt(e,t,l,a)}t=t.child}return t;case 26:return Di(e,t),e===null?(a=pm(t.type,null,t.pendingProps,null))?t.memoizedState=a:pe||(a=t.type,e=t.pendingProps,l=Fi(re.current).createElement(a),l[nt]=t,l[pt]=e,ut(l,a,e),at(l),t.stateNode=l):t.memoizedState=pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ca(t),e===null&&pe&&(l=t.stateNode=hm(t.type,t.pendingProps,re.current),st=t,Qt=!0,i=Le,Ka(t.type)?(Xc=i,Le=Yt(l.firstChild)):Le=i),rt(e,t,t.pendingProps.children,a),Di(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&pe&&((i=l=Le)&&(l=t2(l,t.type,t.pendingProps,Qt),l!==null?(t.stateNode=l,st=t,Le=Yt(l.firstChild),Qt=!1,i=!0):i=!1),i||Da(t)),Ca(t),i=t.type,u=t.pendingProps,f=e!==null?e.memoizedProps:null,l=u.children,Qc(i,u)?l=null:f!==null&&Qc(i,f)&&(t.flags|=32),t.memoizedState!==null&&(i=qu(e,t,pb,null,null,a),js._currentValue=i),Di(e,t),rt(e,t,l,a),t.child;case 6:return e===null&&pe&&((e=a=Le)&&(a=a2(a,t.pendingProps,Qt),a!==null?(t.stateNode=a,st=t,Le=null,e=!0):e=!1),e||Da(t)),null;case 13:return ah(e,t,a);case 4:return Ge(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=wl(t,null,l,a):rt(e,t,l,a),t.child;case 11:return K0(e,t,t.type,t.pendingProps,a);case 7:return rt(e,t,t.pendingProps,a),t.child;case 8:return rt(e,t,t.pendingProps.children,a),t.child;case 12:return rt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,_a(t,t.type,l.value),rt(e,t,l.children,a),t.child;case 9:return i=t.type._context,l=t.pendingProps.children,gl(t),i=it(i),l=l(i),t.flags|=1,rt(e,t,l,a),t.child;case 14:return $0(e,t,t.type,t.pendingProps,a);case 15:return J0(e,t,t.type,t.pendingProps,a);case 19:return nh(e,t,a);case 31:return Nb(e,t,a);case 22:return F0(e,t,a,t.pendingProps);case 24:return gl(t),l=it($e),e===null?(i=zu(),i===null&&(i=Te,u=Mu(),i.pooledCache=u,u.refCount++,u!==null&&(i.pooledCacheLanes|=a),i=u),t.memoizedState={parent:l,cache:i},Ru(t),_a(t,$e,i)):((e.lanes&a)!==0&&(Du(e,t),ts(t,null,null,a),es()),i=e.memoizedState,u=t.memoizedState,i.parent!==l?(i={parent:l,cache:l},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),_a(t,$e,l)):(l=u.cache,_a(t,$e,l),l!==i.cache&&Au(t,[$e],a,!0))),rt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function va(e){e.flags|=4}function mc(e,t,a,l,i){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Rh())e.flags|=8192;else throw jl=gi,Tu}else e.flags&=-16777217}function ih(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!jm(t))if(Rh())e.flags|=8192;else throw jl=gi,Tu}function Li(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hf():536870912,e.lanes|=t,fn|=t)}function rs(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags&65011712,l|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)a|=i.lanes|i.childLanes,l|=i.subtreeFlags,l|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function Cb(e,t,a){var l=t.pendingProps;switch(wu(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ke(t),null;case 1:return ke(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),fa($e),we(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wl(t)?va(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Nu())),ke(t),null;case 26:var i=t.type,u=t.memoizedState;return e===null?(va(t),u!==null?(ke(t),ih(t,u)):(ke(t),mc(t,i,null,l,a))):u?u!==e.memoizedState?(va(t),ke(t),ih(t,u)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&va(t),ke(t),mc(t,i,e,l,a)),null;case 27:if(St(t),a=re.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}e=J.current,Wl(t)?Hd(t):(e=hm(i,l,a),t.stateNode=e,va(t))}return ke(t),null;case 5:if(St(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return ke(t),null}if(u=J.current,Wl(t))Hd(t);else{var f=Fi(re.current);switch(u){case 1:u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":u=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":u=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":u=f.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?f.createElement(i,{is:l.is}):f.createElement(i)}}u[nt]=t,u[pt]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)u.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=u;e:switch(ut(u,i,l),i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&va(t)}}return ke(t),mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&va(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=re.current,Wl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,i=st,i!==null)switch(i.tag){case 27:case 5:l=i.memoizedProps}e[nt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||am(e.nodeValue,a)),e||Da(t,!0)}else e=Fi(e).createTextNode(l),e[nt]=t,t.stateNode=e}return ke(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Wl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[nt]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else a=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(zt(t),t):(zt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Wl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!i)throw Error(o(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[nt]=t}else pl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),i=!1}else i=Nu(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(zt(t),t):(zt(t),null)}return zt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,i=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(i=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==i&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Li(t,t.updateQueue),ke(t),null);case 4:return we(),e===null&&kc(t.stateNode.containerInfo),ke(t),null;case 10:return fa(t.type),ke(t),null;case 19:if(U(Ze),l=t.memoizedState,l===null)return ke(t),null;if(i=(t.flags&128)!==0,u=l.rendering,u===null)if(i)rs(l,!1);else{if(Ve!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=wi(e),u!==null){for(t.flags|=128,rs(l,!1),e=u.updateQueue,t.updateQueue=e,Li(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)_d(a,e),a=a.sibling;return G(Ze,Ze.current&1|2),pe&&ca(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Nt()>qi&&(t.flags|=128,i=!0,rs(l,!1),t.lanes=4194304)}else{if(!i)if(e=wi(u),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Li(t,e),rs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!pe)return ke(t),null}else 2*Nt()-l.renderingStartTime>qi&&a!==536870912&&(t.flags|=128,i=!0,rs(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Nt(),e.sibling=null,a=Ze.current,G(Ze,i?a&1|2:a&1),pe&&ca(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return zt(t),Uu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),a=t.updateQueue,a!==null&&Li(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&U(bl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),fa($e),ke(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Ab(e,t){switch(wu(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fa($e),we(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return St(t),null;case 31:if(t.memoizedState!==null){if(zt(t),t.alternate===null)throw Error(o(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));pl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return U(Ze),null;case 4:return we(),null;case 10:return fa(t.type),null;case 22:case 23:return zt(t),Uu(),e!==null&&U(bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fa($e),null;case 25:return null;default:return null}}function rh(e,t){switch(wu(t),t.tag){case 3:fa($e),we();break;case 26:case 27:case 5:St(t);break;case 4:we();break;case 31:t.memoizedState!==null&&zt(t);break;case 13:zt(t);break;case 19:U(Ze);break;case 10:fa(t.type);break;case 22:case 23:zt(t),Uu(),e!==null&&U(bl);break;case 24:fa($e)}}function us(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var i=l.next;a=i;do{if((a.tag&e)===e){l=void 0;var u=a.create,f=a.inst;l=u(),f.destroy=l}a=a.next}while(a!==i)}}catch(p){Ce(t,t.return,p)}}function qa(e,t,a){try{var l=t.updateQueue,i=l!==null?l.lastEffect:null;if(i!==null){var u=i.next;l=u;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,i=t;var j=a,O=p;try{O()}catch(L){Ce(i,j,L)}}}l=l.next}while(l!==u)}}catch(L){Ce(t,t.return,L)}}function uh(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Id(t,a)}catch(l){Ce(e,e.return,l)}}}function ch(e,t,a){a.props=Nl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ce(e,t,l)}}function cs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(i){Ce(e,t,i)}}function ea(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(i){Ce(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(i){Ce(e,t,i)}else a.current=null}function oh(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(i){Ce(e,e.return,i)}}function vc(e,t,a){try{var l=e.stateNode;Jb(l,e.type,a,t),l[pt]=t}catch(i){Ce(e,e.return,i)}}function fh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ka(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fh(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&&Ka(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 xc(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ia));else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(xc(e,t,a),e=e.sibling;e!==null;)xc(e,t,a),e=e.sibling}function ki(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Ka(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ki(e,t,a),e=e.sibling;e!==null;)ki(e,t,a),e=e.sibling}function dh(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);ut(t,l,a),t[nt]=e,t[pt]=a}catch(u){Ce(e,e.return,u)}}var pa=!1,We=!1,gc=!1,hh=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Mb(e,t){if(e=e.containerInfo,Hc=lr,e=Ed(e),fu(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var i=l.anchorOffset,u=l.focusNode;l=l.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var f=0,p=-1,j=-1,O=0,L=0,B=e,z=null;t:for(;;){for(var R;B!==a||i!==0&&B.nodeType!==3||(p=f+i),B!==u||l!==0&&B.nodeType!==3||(j=f+l),B.nodeType===3&&(f+=B.nodeValue.length),(R=B.firstChild)!==null;)z=B,B=R;for(;;){if(B===e)break t;if(z===a&&++O===i&&(p=f),z===u&&++L===l&&(j=f),(R=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=R}a=p===-1||j===-1?null:{start:p,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(qc={focusedElem:e,selectionRange:a},lr=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){switch(t=lt,u=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(a=0;a<e.length;a++)i=e[a],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,i=u.memoizedProps,u=u.memoizedState,l=a.stateNode;try{var F=Nl(a.type,i);e=l.getSnapshotBeforeUpdate(F,u),l.__reactInternalSnapshotBeforeUpdate=e}catch(ee){Ce(a,a.return,ee)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Yc(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Yc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}}function mh(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ga(e,a),l&4&&us(5,a);break;case 1:if(ga(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Ce(a,a.return,f)}else{var i=Nl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ce(a,a.return,f)}}l&64&&uh(a),l&512&&cs(a,a.return);break;case 3:if(ga(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Id(e,t)}catch(f){Ce(a,a.return,f)}}break;case 27:t===null&&l&4&&dh(a);case 26:case 5:ga(e,a),t===null&&l&4&&oh(a),l&512&&cs(a,a.return);break;case 12:ga(e,a);break;case 31:ga(e,a),l&4&&xh(e,a);break;case 13:ga(e,a),l&4&&gh(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=Ub.bind(null,a),l2(e,a))));break;case 22:if(l=a.memoizedState!==null||pa,!l){t=t!==null&&t.memoizedState!==null||We,i=pa;var u=We;pa=l,(We=t)&&!u?ba(e,a,(a.subtreeFlags&8772)!==0):ga(e,a),pa=i,We=u}break;case 30:break;default:ga(e,a)}}function vh(e){var t=e.alternate;t!==null&&(e.alternate=null,vh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$r(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 Ue=null,gt=!1;function xa(e,t,a){for(a=a.child;a!==null;)ph(e,t,a),a=a.sibling}function ph(e,t,a){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(Dn,a)}catch{}switch(a.tag){case 26:We||ea(a,t),xa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:We||ea(a,t);var l=Ue,i=gt;Ka(a.type)&&(Ue=a.stateNode,gt=!1),xa(e,t,a),gs(a.stateNode),Ue=l,gt=i;break;case 5:We||ea(a,t);case 6:if(l=Ue,i=gt,Ue=null,xa(e,t,a),Ue=l,gt=i,Ue!==null)if(gt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(a.stateNode)}catch(u){Ce(a,t,u)}else try{Ue.removeChild(a.stateNode)}catch(u){Ce(a,t,u)}break;case 18:Ue!==null&&(gt?(e=Ue,um(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),bn(e)):um(Ue,a.stateNode));break;case 4:l=Ue,i=gt,Ue=a.stateNode.containerInfo,gt=!0,xa(e,t,a),Ue=l,gt=i;break;case 0:case 11:case 14:case 15:qa(2,a,t),We||qa(4,a,t),xa(e,t,a);break;case 1:We||(ea(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&ch(a,t,l)),xa(e,t,a);break;case 21:xa(e,t,a);break;case 22:We=(l=We)||a.memoizedState!==null,xa(e,t,a),We=l;break;default:xa(e,t,a)}}function xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{bn(e)}catch(a){Ce(t,t.return,a)}}}function gh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{bn(e)}catch(a){Ce(t,t.return,a)}}function Ob(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hh),t;default:throw Error(o(435,e.tag))}}function Ui(e,t){var a=Ob(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var i=Bb.bind(null,e,l);l.then(i,i)}})}function bt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var i=a[l],u=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(Ka(p.type)){Ue=p.stateNode,gt=!1;break e}break;case 5:Ue=p.stateNode,gt=!1;break e;case 3:case 4:Ue=p.stateNode.containerInfo,gt=!0;break e}p=p.return}if(Ue===null)throw Error(o(160));ph(u,f,i),Ue=null,gt=!1,u=i.alternate,u!==null&&(u.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bh(t,e),t=t.sibling}var $t=null;function bh(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),yt(e),l&4&&(qa(3,e,e.return),us(3,e),qa(5,e,e.return));break;case 1:bt(t,e),yt(e),l&512&&(We||a===null||ea(a,a.return)),l&64&&pa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var i=$t;if(bt(t,e),yt(e),l&512&&(We||a===null||ea(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,i=i.ownerDocument||i;t:switch(l){case"title":u=i.getElementsByTagName("title")[0],(!u||u[kn]||u[nt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=i.createElement(l),i.head.insertBefore(u,i.querySelector("head > title"))),ut(u,l,a),u[nt]=e,at(u),l=u;break e;case"link":var f=bm("link","href",i).get(l+(a.href||""));if(f){for(var p=0;p<f.length;p++)if(u=f[p],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(p,1);break t}}u=i.createElement(l),ut(u,l,a),i.head.appendChild(u);break;case"meta":if(f=bm("meta","content",i).get(l+(a.content||""))){for(p=0;p<f.length;p++)if(u=f[p],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(p,1);break t}}u=i.createElement(l),ut(u,l,a),i.head.appendChild(u);break;default:throw Error(o(468,l))}u[nt]=e,at(u),l=u}e.stateNode=l}else ym(i,e.type,e.stateNode);else e.stateNode=gm(i,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?ym(i,e.type,e.stateNode):gm(i,l,e.memoizedProps)):l===null&&e.stateNode!==null&&vc(e,e.memoizedProps,a.memoizedProps)}break;case 27:bt(t,e),yt(e),l&512&&(We||a===null||ea(a,a.return)),a!==null&&l&4&&vc(e,e.memoizedProps,a.memoizedProps);break;case 5:if(bt(t,e),yt(e),l&512&&(We||a===null||ea(a,a.return)),e.flags&32){i=e.stateNode;try{Ql(i,"")}catch(F){Ce(e,e.return,F)}}l&4&&e.stateNode!=null&&(i=e.memoizedProps,vc(e,i,a!==null?a.memoizedProps:i)),l&1024&&(gc=!0);break;case 6:if(bt(t,e),yt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(F){Ce(e,e.return,F)}}break;case 3:if(Pi=null,i=$t,$t=Wi(t.containerInfo),bt(t,e),$t=i,yt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{bn(t.containerInfo)}catch(F){Ce(e,e.return,F)}gc&&(gc=!1,yh(e));break;case 4:l=$t,$t=Wi(e.stateNode.containerInfo),bt(t,e),yt(e),$t=l;break;case 12:bt(t,e),yt(e);break;case 31:bt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ui(e,l)));break;case 13:bt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Hi=Nt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ui(e,l)));break;case 22:i=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,O=pa,L=We;if(pa=O||i,We=L||j,bt(t,e),We=L,pa=O,yt(e),l&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(a===null||j||pa||We||El(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(u=j.stateNode,i)f=u.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=j.stateNode;var B=j.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(F){Ce(j,j.return,F)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=i?"":j.memoizedProps}catch(F){Ce(j,j.return,F)}}}else if(t.tag===18){if(a===null){j=t;try{var R=j.stateNode;i?cm(R,!0):cm(j.stateNode,!1)}catch(F){Ce(j,j.return,F)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Ui(e,a))));break;case 19:bt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Ui(e,l)));break;case 30:break;case 21:break;default:bt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(fh(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var i=a.stateNode,u=pc(e);ki(e,u,i);break;case 5:var f=a.stateNode;a.flags&32&&(Ql(f,""),a.flags&=-33);var p=pc(e);ki(e,p,f);break;case 3:case 4:var j=a.stateNode.containerInfo,O=pc(e);xc(e,O,j);break;default:throw Error(o(161))}}catch(L){Ce(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ga(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mh(e,t.alternate,t),t=t.sibling}function El(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),El(t);break;case 1:ea(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&ch(t,t.return,a),El(t);break;case 27:gs(t.stateNode);case 26:case 5:ea(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function ba(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,i=e,u=t,f=u.flags;switch(u.tag){case 0:case 11:case 15:ba(i,u,a),us(4,u);break;case 1:if(ba(i,u,a),l=u,i=l.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(O){Ce(l,l.return,O)}if(l=u,i=l.updateQueue,i!==null){var p=l.stateNode;try{var j=i.shared.hiddenCallbacks;if(j!==null)for(i.shared.hiddenCallbacks=null,i=0;i<j.length;i++)Wd(j[i],p)}catch(O){Ce(l,l.return,O)}}a&&f&64&&uh(u),cs(u,u.return);break;case 27:dh(u);case 26:case 5:ba(i,u,a),a&&l===null&&f&4&&oh(u),cs(u,u.return);break;case 12:ba(i,u,a);break;case 31:ba(i,u,a),a&&f&4&&xh(i,u);break;case 13:ba(i,u,a),a&&f&4&&gh(i,u);break;case 22:u.memoizedState===null&&ba(i,u,a),cs(u,u.return);break;case 30:break;default:ba(i,u,a)}t=t.sibling}}function bc(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&Jn(a))}function yc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jn(e))}function Jt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)jh(e,t,a,l),t=t.sibling}function jh(e,t,a,l){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jt(e,t,a,l),i&2048&&us(9,t);break;case 1:Jt(e,t,a,l);break;case 3:Jt(e,t,a,l),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Jn(e)));break;case 12:if(i&2048){Jt(e,t,a,l),e=t.stateNode;try{var u=t.memoizedProps,f=u.id,p=u.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(j){Ce(t,t.return,j)}}else Jt(e,t,a,l);break;case 31:Jt(e,t,a,l);break;case 13:Jt(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,f=t.alternate,t.memoizedState!==null?u._visibility&2?Jt(e,t,a,l):os(e,t):u._visibility&2?Jt(e,t,a,l):(u._visibility|=2,un(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),i&2048&&bc(f,t);break;case 24:Jt(e,t,a,l),i&2048&&yc(t.alternate,t);break;default:Jt(e,t,a,l)}}function un(e,t,a,l,i){for(i=i&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,f=t,p=a,j=l,O=f.flags;switch(f.tag){case 0:case 11:case 15:un(u,f,p,j,i),us(8,f);break;case 23:break;case 22:var L=f.stateNode;f.memoizedState!==null?L._visibility&2?un(u,f,p,j,i):os(u,f):(L._visibility|=2,un(u,f,p,j,i)),i&&O&2048&&bc(f.alternate,f);break;case 24:un(u,f,p,j,i),i&&O&2048&&yc(f.alternate,f);break;default:un(u,f,p,j,i)}t=t.sibling}}function os(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,i=l.flags;switch(l.tag){case 22:os(a,l),i&2048&&bc(l.alternate,l);break;case 24:os(a,l),i&2048&&yc(l.alternate,l);break;default:os(a,l)}t=t.sibling}}var fs=8192;function cn(e,t,a){if(e.subtreeFlags&fs)for(e=e.child;e!==null;)wh(e,t,a),e=e.sibling}function wh(e,t,a){switch(e.tag){case 26:cn(e,t,a),e.flags&fs&&e.memoizedState!==null&&v2(a,$t,e.memoizedState,e.memoizedProps);break;case 5:cn(e,t,a);break;case 3:case 4:var l=$t;$t=Wi(e.stateNode.containerInfo),cn(e,t,a),$t=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=fs,fs=16777216,cn(e,t,a),fs=l):cn(e,t,a));break;default:cn(e,t,a)}}function Sh(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 ds(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];lt=l,Eh(l,e)}Sh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Nh(e),e=e.sibling}function Nh(e){switch(e.tag){case 0:case 11:case 15:ds(e),e.flags&2048&&qa(9,e,e.return);break;case 3:ds(e);break;case 12:ds(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bi(e)):ds(e);break;default:ds(e)}}function Bi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];lt=l,Eh(l,e)}Sh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qa(8,t,t.return),Bi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Bi(t));break;default:Bi(t)}e=e.sibling}}function Eh(e,t){for(;lt!==null;){var a=lt;switch(a.tag){case 0:case 11:case 15:qa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Jn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,lt=l;else e:for(a=e;lt!==null;){l=lt;var i=l.sibling,u=l.return;if(vh(l),l===a){lt=null;break e}if(i!==null){i.return=u,lt=i;break e}lt=u}}}var zb={getCacheForType:function(e){var t=it($e),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return it($e).controller.signal}},Tb=typeof WeakMap=="function"?WeakMap:Map,Se=0,Te=null,fe=null,he=0,Ee=0,Tt=null,Qa=!1,on=!1,jc=!1,ya=0,Ve=0,Va=0,Cl=0,wc=0,Rt=0,fn=0,hs=null,jt=null,Sc=!1,Hi=0,Ch=0,qi=1/0,Qi=null,Ya=null,tt=0,Ga=null,dn=null,ja=0,Nc=0,Ec=null,Ah=null,ms=0,Cc=null;function Dt(){return(Se&2)!==0&&he!==0?he&-he:T.T!==null?Rc():Yf()}function Mh(){if(Rt===0)if((he&536870912)===0||pe){var e=Js;Js<<=1,(Js&3932160)===0&&(Js=262144),Rt=e}else Rt=536870912;return e=Ot.current,e!==null&&(e.flags|=32),Rt}function wt(e,t,a){(e===Te&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(hn(e,0),Za(e,he,Rt,!1)),Ln(e,a),((Se&2)===0||e!==Te)&&(e===Te&&((Se&2)===0&&(Cl|=a),Ve===4&&Za(e,he,Rt,!1)),ta(e))}function Oh(e,t,a){if((Se&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||_n(e,t),i=l?_b(e,t):Mc(e,t,!0),u=l;do{if(i===0){on&&!l&&Za(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!Rb(a)){i=Mc(e,t,!1),u=!1;continue}if(i===2){if(u=t,e.errorRecoveryDisabledLanes&u)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var p=e;i=hs;var j=p.current.memoizedState.isDehydrated;if(j&&(hn(p,f).flags|=256),f=Mc(p,f,!1),f!==2){if(jc&&!j){p.errorRecoveryDisabledLanes|=u,Cl|=u,i=4;break e}u=jt,jt=i,u!==null&&(jt===null?jt=u:jt.push.apply(jt,u))}i=f}if(u=!1,i!==2)continue}}if(i===1){hn(e,0),Za(e,t,0,!0);break}e:{switch(l=e,u=i,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Za(l,t,Rt,!Qa);break e;case 2:jt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(i=Hi+300-Nt(),10<i)){if(Za(l,t,Rt,!Qa),Ws(l,0,!0)!==0)break e;ja=t,l.timeoutHandle=im(zh.bind(null,l,a,jt,Qi,Sc,t,Rt,Cl,fn,Qa,u,"Throttled",-0,0),i);break e}zh(l,a,jt,Qi,Sc,t,Rt,Cl,fn,Qa,u,null,-0,0)}}break}while(!0);ta(e)}function zh(e,t,a,l,i,u,f,p,j,O,L,B,z,R){if(e.timeoutHandle=-1,B=t.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ia},wh(t,u,B);var F=(u&62914560)===u?Hi-Nt():(u&4194048)===u?Ch-Nt():0;if(F=p2(B,F),F!==null){ja=u,e.cancelPendingCommit=F(Bh.bind(null,e,t,u,a,l,i,f,p,j,L,B,null,z,R)),Za(e,u,f,!O);return}}Bh(e,t,u,a,l,i,f,p,j)}function Rb(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var i=a[l],u=i.getSnapshot;i=i.value;try{if(!At(u(),i))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Za(e,t,a,l){t&=~wc,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var i=t;0<i;){var u=31-Ct(i),f=1<<u;l[u]=-1,i&=~f}a!==0&&qf(e,a,t)}function Vi(){return(Se&6)===0?(vs(0),!1):!0}function Ac(){if(fe!==null){if(Ee===0)var e=fe.return;else e=fe,oa=xl=null,Yu(e),an=null,Wn=0,e=fe;for(;e!==null;)rh(e.alternate,e),e=e.return;fe=null}}function hn(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,Ib(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ja=0,Ac(),Te=e,fe=a=ua(e.current,null),he=t,Ee=0,Tt=null,Qa=!1,on=_n(e,t),jc=!1,fn=Rt=wc=Cl=Va=Ve=0,jt=hs=null,Sc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var i=31-Ct(l),u=1<<i;t|=e[i],l&=~u}return ya=t,ci(),a}function Th(e,t){le=null,T.H=ss,t===tn||t===xi?(t=Kd(),Ee=3):t===Tu?(t=Kd(),Ee=4):Ee=t===sc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Tt=t,fe===null&&(Ve=1,Ti(e,Bt(t,e.current)))}function Rh(){var e=Ot.current;return e===null?!0:(he&4194048)===he?Vt===null:(he&62914560)===he||(he&536870912)!==0?e===Vt:!1}function Dh(){var e=T.H;return T.H=ss,e===null?ss:e}function _h(){var e=T.A;return T.A=zb,e}function Yi(){Ve=4,Qa||(he&4194048)!==he&&Ot.current!==null||(on=!0),(Va&134217727)===0&&(Cl&134217727)===0||Te===null||Za(Te,he,Rt,!1)}function Mc(e,t,a){var l=Se;Se|=2;var i=Dh(),u=_h();(Te!==e||he!==t)&&(Qi=null,hn(e,t)),t=!1;var f=Ve;e:do try{if(Ee!==0&&fe!==null){var p=fe,j=Tt;switch(Ee){case 8:Ac(),f=6;break e;case 3:case 2:case 9:case 6:Ot.current===null&&(t=!0);var O=Ee;if(Ee=0,Tt=null,mn(e,p,j,O),a&&on){f=0;break e}break;default:O=Ee,Ee=0,Tt=null,mn(e,p,j,O)}}Db(),f=Ve;break}catch(L){Th(e,L)}while(!0);return t&&e.shellSuspendCounter++,oa=xl=null,Se=l,T.H=i,T.A=u,fe===null&&(Te=null,he=0,ci()),f}function Db(){for(;fe!==null;)Lh(fe)}function _b(e,t){var a=Se;Se|=2;var l=Dh(),i=_h();Te!==e||he!==t?(Qi=null,qi=Nt()+500,hn(e,t)):on=_n(e,t);e:do try{if(Ee!==0&&fe!==null){t=fe;var u=Tt;t:switch(Ee){case 1:Ee=0,Tt=null,mn(e,t,u,1);break;case 2:case 9:if(Zd(u)){Ee=0,Tt=null,kh(t);break}t=function(){Ee!==2&&Ee!==9||Te!==e||(Ee=7),ta(e)},u.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:Zd(u)?(Ee=0,Tt=null,kh(t)):(Ee=0,Tt=null,mn(e,t,u,7));break;case 5:var f=null;switch(fe.tag){case 26:f=fe.memoizedState;case 5:case 27:var p=fe;if(f?jm(f):p.stateNode.complete){Ee=0,Tt=null;var j=p.sibling;if(j!==null)fe=j;else{var O=p.return;O!==null?(fe=O,Gi(O)):fe=null}break t}}Ee=0,Tt=null,mn(e,t,u,5);break;case 6:Ee=0,Tt=null,mn(e,t,u,6);break;case 8:Ac(),Ve=6;break e;default:throw Error(o(462))}}Lb();break}catch(L){Th(e,L)}while(!0);return oa=xl=null,T.H=l,T.A=i,Se=a,fe!==null?0:(Te=null,he=0,ci(),Ve)}function Lb(){for(;fe!==null&&!ng();)Lh(fe)}function Lh(e){var t=sh(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?Gi(e):fe=t}function kh(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=P0(a,t,t.pendingProps,t.type,void 0,he);break;case 11:t=P0(a,t,t.pendingProps,t.type.render,t.ref,he);break;case 5:Yu(t);default:rh(a,t),t=fe=_d(t,ya),t=sh(a,t,ya)}e.memoizedProps=e.pendingProps,t===null?Gi(e):fe=t}function mn(e,t,a,l){oa=xl=null,Yu(t),an=null,Wn=0;var i=t.return;try{if(Sb(e,i,t,a,he)){Ve=1,Ti(e,Bt(a,e.current)),fe=null;return}}catch(u){if(i!==null)throw fe=i,u;Ve=1,Ti(e,Bt(a,e.current)),fe=null;return}t.flags&32768?(pe||l===1?e=!0:on||(he&536870912)!==0?e=!1:(Qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ot.current,l!==null&&l.tag===13&&(l.flags|=16384))),Uh(t,e)):Gi(t)}function Gi(e){var t=e;do{if((t.flags&32768)!==0){Uh(t,Qa);return}e=t.return;var a=Cb(t.alternate,t,ya);if(a!==null){fe=a;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);Ve===0&&(Ve=5)}function Uh(e,t){do{var a=Ab(e.alternate,e);if(a!==null){a.flags&=32767,fe=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=a}while(e!==null);Ve=6,fe=null}function Bh(e,t,a,l,i,u,f,p,j){e.cancelPendingCommit=null;do Zi();while(tt!==0);if((Se&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(u=t.lanes|t.childLanes,u|=pu,mg(e,a,u,f,p,j),e===Te&&(fe=Te=null,he=0),dn=t,Ga=e,ja=a,Nc=u,Ec=i,Ah=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Hb(Ks,function(){return Yh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,i=q.p,q.p=2,f=Se,Se|=4;try{Mb(e,t,a)}finally{Se=f,q.p=i,T.T=l}}tt=1,Hh(),qh(),Qh()}}function Hh(){if(tt===1){tt=0;var e=Ga,t=dn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=T.T,T.T=null;var l=q.p;q.p=2;var i=Se;Se|=4;try{bh(t,e);var u=qc,f=Ed(e.containerInfo),p=u.focusedElem,j=u.selectionRange;if(f!==p&&p&&p.ownerDocument&&Nd(p.ownerDocument.documentElement,p)){if(j!==null&&fu(p)){var O=j.start,L=j.end;if(L===void 0&&(L=O),"selectionStart"in p)p.selectionStart=O,p.selectionEnd=Math.min(L,p.value.length);else{var B=p.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var R=z.getSelection(),F=p.textContent.length,ee=Math.min(j.start,F),Oe=j.end===void 0?ee:Math.min(j.end,F);!R.extend&&ee>Oe&&(f=Oe,Oe=ee,ee=f);var C=Sd(p,ee),w=Sd(p,Oe);if(C&&w&&(R.rangeCount!==1||R.anchorNode!==C.node||R.anchorOffset!==C.offset||R.focusNode!==w.node||R.focusOffset!==w.offset)){var M=B.createRange();M.setStart(C.node,C.offset),R.removeAllRanges(),ee>Oe?(R.addRange(M),R.extend(w.node,w.offset)):(M.setEnd(w.node,w.offset),R.addRange(M))}}}}for(B=[],R=p;R=R.parentNode;)R.nodeType===1&&B.push({element:R,left:R.scrollLeft,top:R.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var k=B[p];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}lr=!!Hc,qc=Hc=null}finally{Se=i,q.p=l,T.T=a}}e.current=t,tt=2}}function qh(){if(tt===2){tt=0;var e=Ga,t=dn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=T.T,T.T=null;var l=q.p;q.p=2;var i=Se;Se|=4;try{mh(e,t.alternate,t)}finally{Se=i,q.p=l,T.T=a}}tt=3}}function Qh(){if(tt===4||tt===3){tt=0,sg();var e=Ga,t=dn,a=ja,l=Ah;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?tt=5:(tt=0,dn=Ga=null,Vh(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Ya=null),Xr(a),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(Dn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=T.T,i=q.p,q.p=2,T.T=null;try{for(var u=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];u(p.value,{componentStack:p.stack})}}finally{T.T=t,q.p=i}}(ja&3)!==0&&Zi(),ta(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===Cc?ms++:(ms=0,Cc=e):ms=0,vs(0)}}function Vh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Jn(t)))}function Zi(){return Hh(),qh(),Qh(),Yh()}function Yh(){if(tt!==5)return!1;var e=Ga,t=Nc;Nc=0;var a=Xr(ja),l=T.T,i=q.p;try{q.p=32>a?32:a,T.T=null,a=Ec,Ec=null;var u=Ga,f=ja;if(tt=0,dn=Ga=null,ja=0,(Se&6)!==0)throw Error(o(331));var p=Se;if(Se|=4,Nh(u.current),jh(u,u.current,f,a),Se=p,vs(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(Dn,u)}catch{}return!0}finally{q.p=i,T.T=l,Vh(e,t)}}function Gh(e,t,a){t=Bt(a,t),t=nc(e.stateNode,t,2),e=Ua(e,t,2),e!==null&&(Ln(e,2),ta(e))}function Ce(e,t,a){if(e.tag===3)Gh(e,e,a);else for(;t!==null;){if(t.tag===3){Gh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ya===null||!Ya.has(l))){e=Bt(a,e),a=Z0(2),l=Ua(t,a,2),l!==null&&(X0(a,l,t,e),Ln(l,2),ta(l));break}}t=t.return}}function Oc(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new Tb;var i=new Set;l.set(t,i)}else i=l.get(t),i===void 0&&(i=new Set,l.set(t,i));i.has(a)||(jc=!0,i.add(a),e=kb.bind(null,e,t,a),t.then(e,e))}function kb(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Te===e&&(he&a)===a&&(Ve===4||Ve===3&&(he&62914560)===he&&300>Nt()-Hi?(Se&2)===0&&hn(e,0):wc|=a,fn===he&&(fn=0)),ta(e)}function Zh(e,t){t===0&&(t=Hf()),e=ml(e,t),e!==null&&(Ln(e,t),ta(e))}function Ub(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Zh(e,a)}function Bb(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,i=e.memoizedState;i!==null&&(a=i.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),Zh(e,a)}function Hb(e,t){return Vr(e,t)}var Xi=null,vn=null,zc=!1,Ki=!1,Tc=!1,Xa=0;function ta(e){e!==vn&&e.next===null&&(vn===null?Xi=vn=e:vn=vn.next=e),Ki=!0,zc||(zc=!0,Qb())}function vs(e,t){if(!Tc&&Ki){Tc=!0;do for(var a=!1,l=Xi;l!==null;){if(e!==0){var i=l.pendingLanes;if(i===0)var u=0;else{var f=l.suspendedLanes,p=l.pingedLanes;u=(1<<31-Ct(42|e)+1)-1,u&=i&~(f&~p),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,Jh(l,u))}else u=he,u=Ws(l,l===Te?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||_n(l,u)||(a=!0,Jh(l,u));l=l.next}while(a);Tc=!1}}function qb(){Xh()}function Xh(){Ki=zc=!1;var e=0;Xa!==0&&Wb()&&(e=Xa);for(var t=Nt(),a=null,l=Xi;l!==null;){var i=l.next,u=Kh(l,t);u===0?(l.next=null,a===null?Xi=i:a.next=i,i===null&&(vn=a)):(a=l,(e!==0||(u&3)!==0)&&(Ki=!0)),l=i}tt!==0&&tt!==5||vs(e),Xa!==0&&(Xa=0)}function Kh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,i=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var f=31-Ct(u),p=1<<f,j=i[f];j===-1?((p&a)===0||(p&l)!==0)&&(i[f]=hg(p,t)):j<=t&&(e.expiredLanes|=p),u&=~p}if(t=Te,a=he,a=Ws(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Yr(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||_n(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&Yr(l),Xr(a)){case 2:case 8:a=Uf;break;case 32:a=Ks;break;case 268435456:a=Bf;break;default:a=Ks}return l=$h.bind(null,e),a=Vr(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&Yr(l),e.callbackPriority=2,e.callbackNode=null,2}function $h(e,t){if(tt!==0&&tt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Zi()&&e.callbackNode!==a)return null;var l=he;return l=Ws(e,e===Te?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Oh(e,l,t),Kh(e,Nt()),e.callbackNode!=null&&e.callbackNode===a?$h.bind(null,e):null)}function Jh(e,t){if(Zi())return null;Oh(e,t,!0)}function Qb(){Pb(function(){(Se&6)!==0?Vr(kf,qb):Xh()})}function Rc(){if(Xa===0){var e=Pl;e===0&&(e=$s,$s<<=1,($s&261888)===0&&($s=256)),Xa=e}return Xa}function Fh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ti(""+e)}function Wh(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Vb(e,t,a,l,i){if(t==="submit"&&a&&a.stateNode===i){var u=Fh((i[pt]||null).action),f=l.submitter;f&&(t=(t=f[pt]||null)?Fh(t.formAction):f.getAttribute("formAction"),t!==null&&(u=t,f=null));var p=new si("action","action",null,l,i);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Xa!==0){var j=f?Wh(i,f):new FormData(i);Iu(a,{pending:!0,data:j,method:i.method,action:u},null,j)}}else typeof u=="function"&&(p.preventDefault(),j=f?Wh(i,f):new FormData(i),Iu(a,{pending:!0,data:j,method:i.method,action:u},u,j))},currentTarget:i}]})}}for(var Dc=0;Dc<vu.length;Dc++){var _c=vu[Dc],Yb=_c.toLowerCase(),Gb=_c[0].toUpperCase()+_c.slice(1);Kt(Yb,"on"+Gb)}Kt(Md,"onAnimationEnd"),Kt(Od,"onAnimationIteration"),Kt(zd,"onAnimationStart"),Kt("dblclick","onDoubleClick"),Kt("focusin","onFocus"),Kt("focusout","onBlur"),Kt(ib,"onTransitionRun"),Kt(rb,"onTransitionStart"),Kt(ub,"onTransitionCancel"),Kt(Td,"onTransitionEnd"),Hl("onMouseEnter",["mouseout","mouseover"]),Hl("onMouseLeave",["mouseout","mouseover"]),Hl("onPointerEnter",["pointerout","pointerover"]),Hl("onPointerLeave",["pointerout","pointerover"]),ol("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ol("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ol("onBeforeInput",["compositionend","keypress","textInput","paste"]),ol("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ol("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ps="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(" "),Zb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ps));function Ih(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],i=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],j=p.instance,O=p.currentTarget;if(p=p.listener,j!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=O;try{u(i)}catch(L){ui(L)}i.currentTarget=null,u=j}else for(f=0;f<l.length;f++){if(p=l[f],j=p.instance,O=p.currentTarget,p=p.listener,j!==u&&i.isPropagationStopped())break e;u=p,i.currentTarget=O;try{u(i)}catch(L){ui(L)}i.currentTarget=null,u=j}}}}function de(e,t){var a=t[Kr];a===void 0&&(a=t[Kr]=new Set);var l=e+"__bubble";a.has(l)||(Ph(t,e,2,!1),a.add(l))}function Lc(e,t,a){var l=0;t&&(l|=4),Ph(a,e,l,t)}var $i="_reactListening"+Math.random().toString(36).slice(2);function kc(e){if(!e[$i]){e[$i]=!0,Xf.forEach(function(a){a!=="selectionchange"&&(Zb.has(a)||Lc(a,!1,e),Lc(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[$i]||(t[$i]=!0,Lc("selectionchange",!1,t))}}function Ph(e,t,a,l){switch(Mm(t)){case 2:var i=b2;break;case 8:i=y2;break;default:i=Wc}a=i.bind(null,t,a,e),i=void 0,!au||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),l?i!==void 0?e.addEventListener(t,a,{capture:!0,passive:i}):e.addEventListener(t,a,!0):i!==void 0?e.addEventListener(t,a,{passive:i}):e.addEventListener(t,a,!1)}function Uc(e,t,a,l,i){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===i)break;if(f===4)for(f=l.return;f!==null;){var j=f.tag;if((j===3||j===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;p!==null;){if(f=kl(p),f===null)return;if(j=f.tag,j===5||j===6||j===26||j===27){l=u=f;continue e}p=p.parentNode}}l=l.return}nd(function(){var O=u,L=eu(a),B=[];e:{var z=Rd.get(e);if(z!==void 0){var R=si,F=e;switch(e){case"keypress":if(li(a)===0)break e;case"keydown":case"keyup":R=Bg;break;case"focusin":F="focus",R=iu;break;case"focusout":F="blur",R=iu;break;case"beforeblur":case"afterblur":R=iu;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":R=rd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":R=Cg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":R=Qg;break;case Md:case Od:case zd:R=Og;break;case Td:R=Yg;break;case"scroll":case"scrollend":R=Ng;break;case"wheel":R=Zg;break;case"copy":case"cut":case"paste":R=Tg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":R=cd;break;case"toggle":case"beforetoggle":R=Kg}var ee=(t&4)!==0,Oe=!ee&&(e==="scroll"||e==="scrollend"),C=ee?z!==null?z+"Capture":null:z;ee=[];for(var w=O,M;w!==null;){var k=w;if(M=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||M===null||C===null||(k=Bn(w,C),k!=null&&ee.push(xs(w,k,M))),Oe)break;w=w.return}0<ee.length&&(z=new R(z,F,null,a,L),B.push({event:z,listeners:ee}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",R=e==="mouseout"||e==="pointerout",z&&a!==Pr&&(F=a.relatedTarget||a.fromElement)&&(kl(F)||F[Ll]))break e;if((R||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,R?(F=a.relatedTarget||a.toElement,R=O,F=F?kl(F):null,F!==null&&(Oe=m(F),ee=F.tag,F!==Oe||ee!==5&&ee!==27&&ee!==6)&&(F=null)):(R=null,F=O),R!==F)){if(ee=rd,k="onMouseLeave",C="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(ee=cd,k="onPointerLeave",C="onPointerEnter",w="pointer"),Oe=R==null?z:Un(R),M=F==null?z:Un(F),z=new ee(k,w+"leave",R,a,L),z.target=Oe,z.relatedTarget=M,k=null,kl(L)===O&&(ee=new ee(C,w+"enter",F,a,L),ee.target=M,ee.relatedTarget=Oe,k=ee),Oe=k,R&&F)t:{for(ee=Xb,C=R,w=F,M=0,k=C;k;k=ee(k))M++;k=0;for(var I=w;I;I=ee(I))k++;for(;0<M-k;)C=ee(C),M--;for(;0<k-M;)w=ee(w),k--;for(;M--;){if(C===w||w!==null&&C===w.alternate){ee=C;break t}C=ee(C),w=ee(w)}ee=null}else ee=null;R!==null&&em(B,z,R,ee,!1),F!==null&&Oe!==null&&em(B,Oe,F,ee,!0)}}e:{if(z=O?Un(O):window,R=z.nodeName&&z.nodeName.toLowerCase(),R==="select"||R==="input"&&z.type==="file")var ye=xd;else if(vd(z))if(gd)ye=lb;else{ye=tb;var W=eb}else R=z.nodeName,!R||R.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?O&&Ir(O.elementType)&&(ye=xd):ye=ab;if(ye&&(ye=ye(e,O))){pd(B,ye,a,L);break e}W&&W(e,z,O),e==="focusout"&&O&&z.type==="number"&&O.memoizedProps.value!=null&&Wr(z,"number",z.value)}switch(W=O?Un(O):window,e){case"focusin":(vd(W)||W.contentEditable==="true")&&(Zl=W,du=O,Xn=null);break;case"focusout":Xn=du=Zl=null;break;case"mousedown":hu=!0;break;case"contextmenu":case"mouseup":case"dragend":hu=!1,Cd(B,a,L);break;case"selectionchange":if(sb)break;case"keydown":case"keyup":Cd(B,a,L)}var ie;if(uu)e:{switch(e){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Gl?hd(e,a)&&(me="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(me="onCompositionStart");me&&(od&&a.locale!=="ko"&&(Gl||me!=="onCompositionStart"?me==="onCompositionEnd"&&Gl&&(ie=sd()):(za=L,lu="value"in za?za.value:za.textContent,Gl=!0)),W=Ji(O,me),0<W.length&&(me=new ud(me,e,null,a,L),B.push({event:me,listeners:W}),ie?me.data=ie:(ie=md(a),ie!==null&&(me.data=ie)))),(ie=Jg?Fg(e,a):Wg(e,a))&&(me=Ji(O,"onBeforeInput"),0<me.length&&(W=new ud("onBeforeInput","beforeinput",null,a,L),B.push({event:W,listeners:me}),W.data=ie)),Vb(B,e,O,a,L)}Ih(B,t)})}function xs(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ji(e,t){for(var a=t+"Capture",l=[];e!==null;){var i=e,u=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||u===null||(i=Bn(e,a),i!=null&&l.unshift(xs(e,i,u)),i=Bn(e,t),i!=null&&l.push(xs(e,i,u))),e.tag===3)return l;e=e.return}return[]}function Xb(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function em(e,t,a,l,i){for(var u=t._reactName,f=[];a!==null&&a!==l;){var p=a,j=p.alternate,O=p.stateNode;if(p=p.tag,j!==null&&j===l)break;p!==5&&p!==26&&p!==27||O===null||(j=O,i?(O=Bn(a,u),O!=null&&f.unshift(xs(a,O,j))):i||(O=Bn(a,u),O!=null&&f.push(xs(a,O,j)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Kb=/\r\n?/g,$b=/\u0000|\uFFFD/g;function tm(e){return(typeof e=="string"?e:""+e).replace(Kb,`
|
|
9
|
+
`).replace($b,"")}function am(e,t){return t=tm(t),tm(e)===t}function Me(e,t,a,l,i,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ql(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ql(e,""+l);break;case"className":Ps(e,"class",l);break;case"tabIndex":Ps(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ps(e,a,l);break;case"style":ad(e,l,u);break;case"data":if(t!=="object"){Ps(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ti(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 u=="function"&&(a==="formAction"?(t!=="input"&&Me(e,t,"name",i.name,i,null),Me(e,t,"formEncType",i.formEncType,i,null),Me(e,t,"formMethod",i.formMethod,i,null),Me(e,t,"formTarget",i.formTarget,i,null)):(Me(e,t,"encType",i.encType,i,null),Me(e,t,"method",i.method,i,null),Me(e,t,"target",i.target,i,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ti(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ia);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ti(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":de("beforetoggle",e),de("toggle",e),Is(e,"popover",l);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Is(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=wg.get(a)||a,Is(e,a,l))}}function Bc(e,t,a,l,i,u){switch(a){case"style":ad(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(i.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Ql(e,l):(typeof l=="number"||typeof l=="bigint")&&Ql(e,""+l);break;case"onScroll":l!=null&&de("scroll",e);break;case"onScrollEnd":l!=null&&de("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ia);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(i=a.endsWith("Capture"),t=a.slice(2,i?a.length-7:void 0),u=e[pt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,i),typeof l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,i);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Is(e,a,l)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var l=!1,i=!1,u;for(u in a)if(a.hasOwnProperty(u)){var f=a[u];if(f!=null)switch(u){case"src":l=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,u,f,a,null)}}i&&Me(e,t,"srcSet",a.srcSet,a,null),l&&Me(e,t,"src",a.src,a,null);return;case"input":de("invalid",e);var p=u=f=i=null,j=null,O=null;for(l in a)if(a.hasOwnProperty(l)){var L=a[l];if(L!=null)switch(l){case"name":i=L;break;case"type":f=L;break;case"checked":j=L;break;case"defaultChecked":O=L;break;case"value":u=L;break;case"defaultValue":p=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,t));break;default:Me(e,t,l,L,a,null)}}If(e,u,p,j,O,f,i,!1);return;case"select":de("invalid",e),l=f=u=null;for(i in a)if(a.hasOwnProperty(i)&&(p=a[i],p!=null))switch(i){case"value":u=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:Me(e,t,i,p,a,null)}t=u,a=f,e.multiple=!!l,t!=null?ql(e,!!l,t,!1):a!=null&&ql(e,!!l,a,!0);return;case"textarea":de("invalid",e),u=i=l=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":i=p;break;case"children":u=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Me(e,t,f,p,a,null)}ed(e,l,i,u);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(l=a[j],l!=null))switch(j){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Me(e,t,j,l,a,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(l=0;l<ps.length;l++)de(ps[l],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("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(O in a)if(a.hasOwnProperty(O)&&(l=a[O],l!=null))switch(O){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:Me(e,t,O,l,a,null)}return;default:if(Ir(t)){for(L in a)a.hasOwnProperty(L)&&(l=a[L],l!==void 0&&Bc(e,t,L,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Me(e,t,p,l,a,null))}function Jb(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,u=null,f=null,p=null,j=null,O=null,L=null;for(R in a){var B=a[R];if(a.hasOwnProperty(R)&&B!=null)switch(R){case"checked":break;case"value":break;case"defaultValue":j=B;default:l.hasOwnProperty(R)||Me(e,t,R,null,l,B)}}for(var z in l){var R=l[z];if(B=a[z],l.hasOwnProperty(z)&&(R!=null||B!=null))switch(z){case"type":u=R;break;case"name":i=R;break;case"checked":O=R;break;case"defaultChecked":L=R;break;case"value":f=R;break;case"defaultValue":p=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:R!==B&&Me(e,t,z,R,l,B)}}Fr(e,f,p,j,O,L,u,i);return;case"select":R=f=p=z=null;for(u in a)if(j=a[u],a.hasOwnProperty(u)&&j!=null)switch(u){case"value":break;case"multiple":R=j;default:l.hasOwnProperty(u)||Me(e,t,u,null,l,j)}for(i in l)if(u=l[i],j=a[i],l.hasOwnProperty(i)&&(u!=null||j!=null))switch(i){case"value":z=u;break;case"defaultValue":p=u;break;case"multiple":f=u;default:u!==j&&Me(e,t,i,u,l,j)}t=p,a=f,l=R,z!=null?ql(e,!!a,z,!1):!!l!=!!a&&(t!=null?ql(e,!!a,t,!0):ql(e,!!a,a?[]:"",!1));return;case"textarea":R=z=null;for(p in a)if(i=a[p],a.hasOwnProperty(p)&&i!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Me(e,t,p,null,l,i)}for(f in l)if(i=l[f],u=a[f],l.hasOwnProperty(f)&&(i!=null||u!=null))switch(f){case"value":z=i;break;case"defaultValue":R=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==u&&Me(e,t,f,i,l,u)}Pf(e,z,R);return;case"option":for(var F in a)if(z=a[F],a.hasOwnProperty(F)&&z!=null&&!l.hasOwnProperty(F))switch(F){case"selected":e.selected=!1;break;default:Me(e,t,F,null,l,z)}for(j in l)if(z=l[j],R=a[j],l.hasOwnProperty(j)&&z!==R&&(z!=null||R!=null))switch(j){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Me(e,t,j,z,l,R)}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 ee in a)z=a[ee],a.hasOwnProperty(ee)&&z!=null&&!l.hasOwnProperty(ee)&&Me(e,t,ee,null,l,z);for(O in l)if(z=l[O],R=a[O],l.hasOwnProperty(O)&&z!==R&&(z!=null||R!=null))switch(O){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,t));break;default:Me(e,t,O,z,l,R)}return;default:if(Ir(t)){for(var Oe in a)z=a[Oe],a.hasOwnProperty(Oe)&&z!==void 0&&!l.hasOwnProperty(Oe)&&Bc(e,t,Oe,void 0,l,z);for(L in l)z=l[L],R=a[L],!l.hasOwnProperty(L)||z===R||z===void 0&&R===void 0||Bc(e,t,L,z,l,R);return}}for(var C in a)z=a[C],a.hasOwnProperty(C)&&z!=null&&!l.hasOwnProperty(C)&&Me(e,t,C,null,l,z);for(B in l)z=l[B],R=a[B],!l.hasOwnProperty(B)||z===R||z==null&&R==null||Me(e,t,B,z,l,R)}function lm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Fb(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var i=a[l],u=i.transferSize,f=i.initiatorType,p=i.duration;if(u&&p&&lm(f)){for(f=0,p=i.responseEnd,l+=1;l<a.length;l++){var j=a[l],O=j.startTime;if(O>p)break;var L=j.transferSize,B=j.initiatorType;L&&lm(B)&&(j=j.responseEnd,f+=L*(j<p?1:(p-O)/(j-O)))}if(--l,t+=8*(u+f)/(i.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 Hc=null,qc=null;function Fi(e){return e.nodeType===9?e:e.ownerDocument}function nm(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 sm(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 Qc(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 Vc=null;function Wb(){var e=window.event;return e&&e.type==="popstate"?e===Vc?!1:(Vc=e,!0):(Vc=null,!1)}var im=typeof setTimeout=="function"?setTimeout:void 0,Ib=typeof clearTimeout=="function"?clearTimeout:void 0,rm=typeof Promise=="function"?Promise:void 0,Pb=typeof queueMicrotask=="function"?queueMicrotask:typeof rm<"u"?function(e){return rm.resolve(null).then(e).catch(e2)}:im;function e2(e){setTimeout(function(){throw e})}function Ka(e){return e==="head"}function um(e,t){var a=t,l=0;do{var i=a.nextSibling;if(e.removeChild(a),i&&i.nodeType===8)if(a=i.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(i),bn(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")gs(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,gs(a);for(var u=a.firstChild;u;){var f=u.nextSibling,p=u.nodeName;u[kn]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=f}}else a==="body"&&gs(e.ownerDocument.body);a=i}while(a);bn(t)}function cm(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function Yc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Yc(a),$r(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function t2(e,t,a,l){for(;e.nodeType===1;){var i=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[kn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function a2(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Yt(e.nextSibling),e===null))return null;return e}function om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function Gc(e){return e.data==="$?"||e.data==="$~"}function Zc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function l2(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Yt(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 Xc=null;function fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Yt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function dm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function hm(e,t,a){switch(t=Fi(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function gs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$r(e)}var Gt=new Map,mm=new Set;function Wi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wa=q.d;q.d={f:n2,r:s2,D:i2,C:r2,L:u2,m:c2,X:f2,S:o2,M:d2};function n2(){var e=wa.f(),t=Vi();return e||t}function s2(e){var t=Ul(e);t!==null&&t.tag===5&&t.type==="form"?T0(t):wa.r(e)}var pn=typeof document>"u"?null:document;function vm(e,t,a){var l=pn;if(l&&typeof t=="string"&&t){var i=kt(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof a=="string"&&(i+='[crossorigin="'+a+'"]'),mm.has(i)||(mm.add(i),e={rel:e,crossOrigin:a,href:t},l.querySelector(i)===null&&(t=l.createElement("link"),ut(t,"link",e),at(t),l.head.appendChild(t)))}}function i2(e){wa.D(e),vm("dns-prefetch",e,null)}function r2(e,t){wa.C(e,t),vm("preconnect",e,t)}function u2(e,t,a){wa.L(e,t,a);var l=pn;if(l&&e&&t){var i='link[rel="preload"][as="'+kt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(i+='[imagesrcset="'+kt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(i+='[imagesizes="'+kt(a.imageSizes)+'"]')):i+='[href="'+kt(e)+'"]';var u=i;switch(t){case"style":u=xn(e);break;case"script":u=gn(e)}Gt.has(u)||(e=N({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Gt.set(u,e),l.querySelector(i)!==null||t==="style"&&l.querySelector(bs(u))||t==="script"&&l.querySelector(ys(u))||(t=l.createElement("link"),ut(t,"link",e),at(t),l.head.appendChild(t)))}}function c2(e,t){wa.m(e,t);var a=pn;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+kt(l)+'"][href="'+kt(e)+'"]',u=i;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=gn(e)}if(!Gt.has(u)&&(e=N({rel:"modulepreload",href:e},t),Gt.set(u,e),a.querySelector(i)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(ys(u)))return}l=a.createElement("link"),ut(l,"link",e),at(l),a.head.appendChild(l)}}}function o2(e,t,a){wa.S(e,t,a);var l=pn;if(l&&e){var i=Bl(l).hoistableStyles,u=xn(e);t=t||"default";var f=i.get(u);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(bs(u)))p.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Gt.get(u))&&Kc(e,a);var j=f=l.createElement("link");at(j),ut(j,"link",e),j._p=new Promise(function(O,L){j.onload=O,j.onerror=L}),j.addEventListener("load",function(){p.loading|=1}),j.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Ii(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},i.set(u,f)}}}function f2(e,t){wa.X(e,t);var a=pn;if(a&&e){var l=Bl(a).hoistableScripts,i=gn(e),u=l.get(i);u||(u=a.querySelector(ys(i)),u||(e=N({src:e,async:!0},t),(t=Gt.get(i))&&$c(e,t),u=a.createElement("script"),at(u),ut(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function d2(e,t){wa.M(e,t);var a=pn;if(a&&e){var l=Bl(a).hoistableScripts,i=gn(e),u=l.get(i);u||(u=a.querySelector(ys(i)),u||(e=N({src:e,async:!0,type:"module"},t),(t=Gt.get(i))&&$c(e,t),u=a.createElement("script"),at(u),ut(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(i,u))}}function pm(e,t,a,l){var i=(i=re.current)?Wi(i):null;if(!i)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=xn(a.href),a=Bl(i).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=xn(a.href);var u=Bl(i).hoistableStyles,f=u.get(e);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,f),(u=i.querySelector(bs(e)))&&!u._p&&(f.instance=u,f.state.loading=5),Gt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Gt.set(e,a),u||h2(i,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gn(a),a=Bl(i).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function xn(e){return'href="'+kt(e)+'"'}function bs(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function h2(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",a),at(t),e.head.appendChild(t))}function gn(e){return'[src="'+kt(e)+'"]'}function ys(e){return"script[async]"+e}function gm(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+kt(a.href)+'"]');if(l)return t.instance=l,at(l),l;var i=N({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),at(l),ut(l,"style",i),Ii(l,a.precedence,e),t.instance=l;case"stylesheet":i=xn(a.href);var u=e.querySelector(bs(i));if(u)return t.state.loading|=4,t.instance=u,at(u),u;l=xm(a),(i=Gt.get(i))&&Kc(l,i),u=(e.ownerDocument||e).createElement("link"),at(u);var f=u;return f._p=new Promise(function(p,j){f.onload=p,f.onerror=j}),ut(u,"link",l),t.state.loading|=4,Ii(u,a.precedence,e),t.instance=u;case"script":return u=gn(a.src),(i=e.querySelector(ys(u)))?(t.instance=i,at(i),i):(l=a,(i=Gt.get(u))&&(l=N({},a),$c(l,i)),e=e.ownerDocument||e,i=e.createElement("script"),at(i),ut(i,"link",l),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ii(l,a.precedence,e));return t.instance}function Ii(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=l.length?l[l.length-1]:null,u=i,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)u=p;else if(u!==i)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Kc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function $c(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pi=null;function bm(e,t,a){if(Pi===null){var l=new Map,i=Pi=new Map;i.set(a,l)}else i=Pi,l=i.get(a),l||(l=new Map,i.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),i=0;i<a.length;i++){var u=a[i];if(!(u[kn]||u[nt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var f=u.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(u):l.set(f,[u])}}return l}function ym(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function m2(e,t,a){if(a===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 jm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function v2(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var i=xn(l.href),u=t.querySelector(bs(i));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=er.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,at(u);return}u=t.ownerDocument||t,l=xm(l),(i=Gt.get(i))&&Kc(l,i),u=u.createElement("link"),at(u);var f=u;f._p=new Promise(function(p,j){f.onload=p,f.onerror=j}),ut(u,"link",l),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=er.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Jc=0;function p2(e,t){return e.stylesheets&&e.count===0&&ar(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&ar(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Jc===0&&(Jc=62500*Fb());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ar(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Jc?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(i)}}:null}function er(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ar(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var tr=null;function ar(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,tr=new Map,t.forEach(x2,e),tr=null,er.call(e))}function x2(e,t){if(!(t.state.loading&4)){var a=tr.get(e);if(a)var l=a.get(null);else{a=new Map,tr.set(e,a);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<i.length;u++){var f=i[u];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}i=t.instance,f=i.getAttribute("data-precedence"),u=a.get(f)||l,u===l&&a.set(null,i),a.set(f,i),this.count++,l=er.bind(this),i.addEventListener("load",l),i.addEventListener("error",l),u?u.parentNode.insertBefore(i,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var js={$$typeof:$,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function g2(e,t,a,l,i,u,f,p,j){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=Gr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gr(0),this.hiddenUpdates=Gr(null),this.identifierPrefix=l,this.onUncaughtError=i,this.onCaughtError=u,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function wm(e,t,a,l,i,u,f,p,j,O,L,B){return e=new g2(e,t,a,f,j,O,L,B,p),t=1,u===!0&&(t|=24),u=Mt(3,null,null,t),e.current=u,u.stateNode=e,t=Mu(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:a,cache:t},Ru(u),e}function Sm(e){return e?(e=$l,e):$l}function Nm(e,t,a,l,i,u){i=Sm(i),l.context===null?l.context=i:l.pendingContext=i,l=ka(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Ua(e,l,t),a!==null&&(wt(a,e,t),Pn(a,e,t))}function Em(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Fc(e,t){Em(e,t),(e=e.alternate)&&Em(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=ml(e,67108864);t!==null&&wt(t,e,67108864),Fc(e,67108864)}}function Am(e){if(e.tag===13||e.tag===31){var t=Dt();t=Zr(t);var a=ml(e,t);a!==null&&wt(a,e,t),Fc(e,t)}}var lr=!0;function b2(e,t,a,l){var i=T.T;T.T=null;var u=q.p;try{q.p=2,Wc(e,t,a,l)}finally{q.p=u,T.T=i}}function y2(e,t,a,l){var i=T.T;T.T=null;var u=q.p;try{q.p=8,Wc(e,t,a,l)}finally{q.p=u,T.T=i}}function Wc(e,t,a,l){if(lr){var i=Ic(l);if(i===null)Uc(e,t,l,nr,a),Om(e,l);else if(w2(i,e,t,a,l))l.stopPropagation();else if(Om(e,l),t&4&&-1<j2.indexOf(e)){for(;i!==null;){var u=Ul(i);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var f=cl(u.pendingLanes);if(f!==0){var p=u;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var j=1<<31-Ct(f);p.entanglements[1]|=j,f&=~j}ta(u),(Se&6)===0&&(qi=Nt()+500,vs(0))}}break;case 31:case 13:p=ml(u,2),p!==null&&wt(p,u,2),Vi(),Fc(u,2)}if(u=Ic(l),u===null&&Uc(e,t,l,nr,a),u===i)break;i=u}i!==null&&l.stopPropagation()}else Uc(e,t,l,null,a)}}function Ic(e){return e=eu(e),Pc(e)}var nr=null;function Pc(e){if(nr=null,e=kl(e),e!==null){var t=m(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=v(t),e!==null)return e;e=null}else if(a===31){if(e=g(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nr=e,null}function Mm(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(ig()){case kf:return 2;case Uf:return 8;case Ks:case rg:return 32;case Bf:return 268435456;default:return 32}default:return 32}}var eo=!1,$a=null,Ja=null,Fa=null,ws=new Map,Ss=new Map,Wa=[],j2="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 Om(e,t){switch(e){case"focusin":case"focusout":$a=null;break;case"dragenter":case"dragleave":Ja=null;break;case"mouseover":case"mouseout":Fa=null;break;case"pointerover":case"pointerout":ws.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ss.delete(t.pointerId)}}function Ns(e,t,a,l,i,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[i]},t!==null&&(t=Ul(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function w2(e,t,a,l,i){switch(t){case"focusin":return $a=Ns($a,e,t,a,l,i),!0;case"dragenter":return Ja=Ns(Ja,e,t,a,l,i),!0;case"mouseover":return Fa=Ns(Fa,e,t,a,l,i),!0;case"pointerover":var u=i.pointerId;return ws.set(u,Ns(ws.get(u)||null,e,t,a,l,i)),!0;case"gotpointercapture":return u=i.pointerId,Ss.set(u,Ns(Ss.get(u)||null,e,t,a,l,i)),!0}return!1}function zm(e){var t=kl(e.target);if(t!==null){var a=m(t);if(a!==null){if(t=a.tag,t===13){if(t=v(a),t!==null){e.blockedOn=t,Gf(e.priority,function(){Am(a)});return}}else if(t===31){if(t=g(a),t!==null){e.blockedOn=t,Gf(e.priority,function(){Am(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ic(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Pr=l,a.target.dispatchEvent(l),Pr=null}else return t=Ul(a),t!==null&&Cm(t),e.blockedOn=a,!1;t.shift()}return!0}function Tm(e,t,a){sr(e)&&a.delete(t)}function S2(){eo=!1,$a!==null&&sr($a)&&($a=null),Ja!==null&&sr(Ja)&&(Ja=null),Fa!==null&&sr(Fa)&&(Fa=null),ws.forEach(Tm),Ss.forEach(Tm)}function ir(e,t){e.blockedOn===t&&(e.blockedOn=null,eo||(eo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,S2)))}var rr=null;function Rm(e){rr!==e&&(rr=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){rr===e&&(rr=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],i=e[t+2];if(typeof l!="function"){if(Pc(l||a)===null)continue;break}var u=Ul(a);u!==null&&(e.splice(t,3),t-=3,Iu(u,{pending:!0,data:i,method:a.method,action:l},l,i))}}))}function bn(e){function t(j){return ir(j,e)}$a!==null&&ir($a,e),Ja!==null&&ir(Ja,e),Fa!==null&&ir(Fa,e),ws.forEach(t),Ss.forEach(t);for(var a=0;a<Wa.length;a++){var l=Wa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Wa.length&&(a=Wa[0],a.blockedOn===null);)zm(a),a.blockedOn===null&&Wa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var i=a[l],u=a[l+1],f=i[pt]||null;if(typeof u=="function")f||Rm(a);else if(f){var p=null;if(u&&u.hasAttribute("formAction")){if(i=u,f=u[pt]||null)p=f.formAction;else if(Pc(i)!==null)continue}else p=f.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Rm(a)}}}function Dm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function t(){i!==null&&(i(),i=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),i!==null&&(i(),i=null)}}}function to(e){this._internalRoot=e}ur.prototype.render=to.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Dt();Nm(a,l,e,t,null,null)},ur.prototype.unmount=to.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nm(e.current,2,null,e,null,null),Vi(),t[Ll]=null}};function ur(e){this._internalRoot=e}ur.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yf();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Wa.length&&t!==0&&t<Wa[a].priority;a++);Wa.splice(a,0,e),a===0&&zm(e)}};var _m=s.version;if(_m!=="19.2.3")throw Error(o(527,_m,"19.2.3"));q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=x(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var N2={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cr.isDisabled&&cr.supportsFiber)try{Dn=cr.inject(N2),Et=cr}catch{}}return wn.createRoot=function(e,t){if(!d(e))throw Error(o(299));var a=!1,l="",i=Q0,u=V0,f=Y0;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=wm(e,1,!1,null,null,a,l,null,i,u,f,Dm),e[Ll]=t.current,kc(e),new to(t)},wn.hydrateRoot=function(e,t,a){if(!d(e))throw Error(o(299));var l=!1,i="",u=Q0,f=V0,p=Y0,j=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(i=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(p=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),t=wm(e,1,!0,t,a??null,l,i,j,u,f,p,Dm),t.context=Sm(null),a=t.current,l=Dt(),l=Zr(l),i=ka(l),i.callback=null,Ua(a,i,l),a=l,t.current.lanes=a,Ln(t,a),ta(t),e[Ll]=t.current,kc(e),new ur(t)},wn.version="19.2.3",wn}var Lo;function Cv(){if(Lo)return Sr.exports;Lo=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(s){console.error(s)}}return n(),Sr.exports=Ev(),Sr.exports}var Av=Cv();const Mv=ao(Av);function Ov({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"}))}const zv=h.forwardRef(Ov);function Tv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12 12 16.5m0 0L7.5 12m4.5 4.5V3"}))}const Rv=h.forwardRef(Tv);function Dv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15M12 9l-3 3m0 0 3 3m-3-3h12.75"}))}const _v=h.forwardRef(Dv);function Lv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))}const ll=h.forwardRef(Lv);function kv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"}))}const ko=h.forwardRef(kv);function Uv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const Bv=h.forwardRef(Uv);function Hv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"}))}const Uo=h.forwardRef(Hv);function qv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"}))}const Qv=h.forwardRef(qv);function Vv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"}))}const Yv=h.forwardRef(Vv);function Gv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"}))}const Zv=h.forwardRef(Gv);function Xv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6.042A8.967 8.967 0 0 0 6 3.75c-1.052 0-2.062.18-3 .512v14.25A8.987 8.987 0 0 1 6 18c2.305 0 4.408.867 6 2.292m0-14.25a8.966 8.966 0 0 1 6-2.292c1.052 0 2.062.18 3 .512v14.25A8.987 8.987 0 0 0 18 18a8.967 8.967 0 0 0-6 2.292m0-14.25v14.25"}))}const Kv=h.forwardRef(Xv);function $v({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 21h16.5M4.5 3h15M5.25 3v18m13.5-18v18M9 6.75h1.5m-1.5 3h1.5m-1.5 3h1.5m3-6H15m-1.5 3H15m-1.5 3H15M9 21v-3.375c0-.621.504-1.125 1.125-1.125h3.75c.621 0 1.125.504 1.125 1.125V21"}))}const Jv=h.forwardRef($v);function Fv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.827 6.175A2.31 2.31 0 0 1 5.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 0 0-1.134-.175 2.31 2.31 0 0 1-1.64-1.055l-.822-1.316a2.192 2.192 0 0 0-1.736-1.039 48.774 48.774 0 0 0-5.232 0 2.192 2.192 0 0 0-1.736 1.039l-.821 1.316Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 12.75a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM18.75 10.5h.008v.008h-.008V10.5Z"}))}const Wv=h.forwardRef(Fv);function Iv({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 13.125C3 12.504 3.504 12 4.125 12h2.25c.621 0 1.125.504 1.125 1.125v6.75C7.5 20.496 6.996 21 6.375 21h-2.25A1.125 1.125 0 0 1 3 19.875v-6.75ZM9.75 8.625c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125v11.25c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V8.625ZM16.5 4.125c0-.621.504-1.125 1.125-1.125h2.25C20.496 3 21 3.504 21 4.125v15.75c0 .621-.504 1.125-1.125 1.125h-2.25a1.125 1.125 0 0 1-1.125-1.125V4.125Z"}))}const Pv=h.forwardRef(Iv);function ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const aa=h.forwardRef(ep);function tp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))}const Os=h.forwardRef(tp);function ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))}const Sn=h.forwardRef(ap);function lp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5 8.25 12l7.5-7.5"}))}const np=h.forwardRef(lp);function sp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}const Ol=h.forwardRef(sp);function ip({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"}))}const rp=h.forwardRef(ip);function up({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const zs=h.forwardRef(up);function cp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 15a4.5 4.5 0 0 0 4.5 4.5H18a3.75 3.75 0 0 0 1.332-7.257 3 3 0 0 0-3.758-3.848 5.25 5.25 0 0 0-10.233 2.33A4.502 4.502 0 0 0 2.25 15Z"}))}const op=h.forwardRef(cp);function fp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.594 3.94c.09-.542.56-.94 1.11-.94h2.593c.55 0 1.02.398 1.11.94l.213 1.281c.063.374.313.686.645.87.074.04.147.083.22.127.325.196.72.257 1.075.124l1.217-.456a1.125 1.125 0 0 1 1.37.49l1.296 2.247a1.125 1.125 0 0 1-.26 1.431l-1.003.827c-.293.241-.438.613-.43.992a7.723 7.723 0 0 1 0 .255c-.008.378.137.75.43.991l1.004.827c.424.35.534.955.26 1.43l-1.298 2.247a1.125 1.125 0 0 1-1.369.491l-1.217-.456c-.355-.133-.75-.072-1.076.124a6.47 6.47 0 0 1-.22.128c-.331.183-.581.495-.644.869l-.213 1.281c-.09.543-.56.94-1.11.94h-2.594c-.55 0-1.019-.398-1.11-.94l-.213-1.281c-.062-.374-.312-.686-.644-.87a6.52 6.52 0 0 1-.22-.127c-.325-.196-.72-.257-1.076-.124l-1.217.456a1.125 1.125 0 0 1-1.369-.49l-1.297-2.247a1.125 1.125 0 0 1 .26-1.431l1.004-.827c.292-.24.437-.613.43-.991a6.932 6.932 0 0 1 0-.255c.007-.38-.138-.751-.43-.992l-1.004-.827a1.125 1.125 0 0 1-.26-1.43l1.297-2.247a1.125 1.125 0 0 1 1.37-.491l1.216.456c.356.133.751.072 1.076-.124.072-.044.146-.086.22-.128.332-.183.582-.495.644-.869l.214-1.28Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const dp=h.forwardRef(fp);function hp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"}))}const Nn=h.forwardRef(hp);function mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 7.5-2.25-1.313M21 7.5v2.25m0-2.25-2.25 1.313M3 7.5l2.25-1.313M3 7.5l2.25 1.313M3 7.5v2.25m9 3 2.25-1.313M12 12.75l-2.25-1.313M12 12.75V15m0 6.75 2.25-1.313M12 21.75V19.5m0 2.25-2.25-1.313m0-16.875L12 2.25l2.25 1.313M21 14.25v2.25l-2.25 1.313m-13.5 0L3 16.5v-2.25"}))}const Bo=h.forwardRef(mp);function vp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 1.5H8.25A2.25 2.25 0 0 0 6 3.75v16.5a2.25 2.25 0 0 0 2.25 2.25h7.5A2.25 2.25 0 0 0 18 20.25V3.75a2.25 2.25 0 0 0-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"}))}const Ts=h.forwardRef(vp);function pp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.5 19.5h3m-6.75 2.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-15a2.25 2.25 0 0 0-2.25-2.25H6.75A2.25 2.25 0 0 0 4.5 4.5v15a2.25 2.25 0 0 0 2.25 2.25Z"}))}const Ar=h.forwardRef(pp);function xp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m5.231 13.481L15 17.25m-4.5-15H5.625c-.621 0-1.125.504-1.125 1.125v16.5c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Zm3.75 11.625a2.625 2.625 0 1 1-5.25 0 2.625 2.625 0 0 1 5.25 0Z"}))}const gp=h.forwardRef(xp);function bp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"}))}const la=h.forwardRef(bp);function yp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 9.776c.112-.017.227-.026.344-.026h15.812c.117 0 .232.009.344.026m-16.5 0a2.25 2.25 0 0 0-1.883 2.542l.857 6a2.25 2.25 0 0 0 2.227 1.932H19.05a2.25 2.25 0 0 0 2.227-1.932l.857-6a2.25 2.25 0 0 0-1.883-2.542m-16.5 0V6A2.25 2.25 0 0 1 6 3.75h3.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 0 1.06.44H18A2.25 2.25 0 0 1 20.25 9v.776"}))}const jp=h.forwardRef(yp);function wp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.75V12A2.25 2.25 0 0 1 4.5 9.75h15A2.25 2.25 0 0 1 21.75 12v.75m-8.69-6.44-2.12-2.12a1.5 1.5 0 0 0-1.061-.44H4.5A2.25 2.25 0 0 0 2.25 6v12a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18V9a2.25 2.25 0 0 0-2.25-2.25h-5.379a1.5 1.5 0 0 1-1.06-.44Z"}))}const En=h.forwardRef(wp);function Sp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"}))}const Np=h.forwardRef(Sp);function Ep({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418"}))}const Ho=h.forwardRef(Ep);function Cp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))}const Mr=h.forwardRef(Cp);function Ap({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const qo=h.forwardRef(Ap);function Mp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM13.5 10.5h-6"}))}const Qo=h.forwardRef(Mp);function Op({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607ZM10.5 7.5v6m3-3h-6"}))}const Vo=h.forwardRef(Op);function zp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Tp=h.forwardRef(zp);function Rp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z"}))}const Yo=h.forwardRef(Rp);function Dp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"}))}const _p=h.forwardRef(Dp);function Lp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z"}))}const Or=h.forwardRef(Lp);function kp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"}))}const Go=h.forwardRef(kp);function Up({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 8.25V6a2.25 2.25 0 0 0-2.25-2.25H6A2.25 2.25 0 0 0 3.75 6v8.25A2.25 2.25 0 0 0 6 16.5h2.25m8.25-8.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-7.5A2.25 2.25 0 0 1 8.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 0 0-2.25 2.25v6"}))}const Bp=h.forwardRef(Up);function Hp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"}))}const qp=h.forwardRef(Hp);function Qp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9.568 3H5.25A2.25 2.25 0 0 0 3 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 0 0 5.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 0 0 9.568 3Z"}),h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6h.008v.008H6V6Z"}))}const Vp=h.forwardRef(Qp);function Yp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"}))}const Gp=h.forwardRef(Yp);function Zp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))}const zr=h.forwardRef(Zp);function Xp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125Z"}))}const Kp=h.forwardRef(Xp);function $p({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Cn=h.forwardRef($p);function Jp({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))}const Xt=h.forwardRef(Jp);function Fp(n,s){if(n instanceof RegExp)return{keys:!1,pattern:n};var c,o,d,m,v=[],g="",b=n.split("/");for(b[0]||b.shift();d=b.shift();)c=d[0],c==="*"?(v.push(c),g+=d[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(o=d.indexOf("?",1),m=d.indexOf(".",1),v.push(d.substring(1,~o?o:~m?m:d.length)),g+=~o&&!~m?"(?:/([^/]+?))?":"/([^/]+?)",~m&&(g+=(~o?"?":"")+"\\"+d.substring(m))):g+="/"+d;return{keys:v,pattern:new RegExp("^"+g+(s?"(?=$|/)":"/?$"),"i")}}var Tr={exports:{}},Rr={};var Zo;function Wp(){if(Zo)return Rr;Zo=1;var n=Ms();function s(N,E){return N===E&&(N!==0||1/N===1/E)||N!==N&&E!==E}var c=typeof Object.is=="function"?Object.is:s,o=n.useState,d=n.useEffect,m=n.useLayoutEffect,v=n.useDebugValue;function g(N,E){var _=E(),A=o({inst:{value:_,getSnapshot:E}}),D=A[0].inst,Q=A[1];return m(function(){D.value=_,D.getSnapshot=E,b(D)&&Q({inst:D})},[N,_,E]),d(function(){return b(D)&&Q({inst:D}),N(function(){b(D)&&Q({inst:D})})},[N]),v(_),_}function b(N){var E=N.getSnapshot;N=N.value;try{var _=E();return!c(N,_)}catch{return!0}}function x(N,E){return E()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?x:g;return Rr.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Rr}var Xo;function Ip(){return Xo||(Xo=1,Tr.exports=Wp()),Tr.exports}var Pp=Ip();const e1=cv.useInsertionEffect,t1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?h.useLayoutEffect:h.useEffect,a1=e1||t1,Ko=n=>{const s=h.useRef([n,(...c)=>s[0](...c)]).current;return a1(()=>{s[0]=n}),s[1]},l1="popstate",Dr="pushState",_r="replaceState",$o=[l1,Dr,_r,"hashchange"],n1=n=>{for(const s of $o)addEventListener(s,n);return()=>{for(const s of $o)removeEventListener(s,n)}},Jo=(n,s)=>Pp.useSyncExternalStore(n1,n,s),Fo=()=>location.search,s1=({ssrSearch:n}={})=>Jo(Fo,n!=null?()=>n:Fo),Wo=()=>location.pathname,i1=({ssrPath:n}={})=>Jo(Wo,n!=null?()=>n:Wo),r1=(n,{replace:s=!1,state:c=null}={})=>history[s?_r:Dr](c,"",n),u1=(n={})=>[i1(n),r1],Io=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Io]>"u"){for(const n of[Dr,_r]){const s=history[n];history[n]=function(){const c=s.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),c}}Object.defineProperty(window,Io,{value:!0})}const c1=(n,s)=>s.toLowerCase().indexOf(n.toLowerCase())?"~"+s:s.slice(n.length)||"/",Po=(n="")=>n==="/"?"":n,o1=(n,s)=>n[0]==="~"?n.slice(1):Po(s)+n,f1=(n="",s)=>c1(ef(Po(n)),ef(s)),ef=n=>{try{return decodeURI(n)}catch{return n}},tf={hook:u1,searchHook:s1,parser:Fp,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:n=>n,aroundNav:(n,s,c)=>n(s,c)},af=h.createContext(tf),zl=()=>h.useContext(af),lf={},nf=h.createContext(lf),d1=()=>h.useContext(nf),Rs=n=>{const[s,c]=n.hook(n);return[f1(n.base,s),Ko((o,d)=>n.aroundNav(c,o1(o,n.base),d))]},Ds=()=>Rs(zl()),Lr=(n,s,c,o)=>{const{pattern:d,keys:m}=s instanceof RegExp?{keys:!1,pattern:s}:n(s||"*",o),v=d.exec(c)||[],[g,...b]=v;return g!==void 0?[!0,(()=>{const x=m!==!1?Object.fromEntries(m.map((N,E)=>[N,b[E]])):v.groups;let y={...b};return x&&Object.assign(y,x),y})(),...o?[g]:[]]:[!1,null]},h1=n=>Lr(zl().parser,n,Ds()[0]),m1=({children:n,...s})=>{const c=zl(),o=s.hook?tf:c;let d=o;const[m,v=s.ssrSearch??""]=s.ssrPath?.split("?")??[];m&&(s.ssrSearch=v,s.ssrPath=m),s.hrefs=s.hrefs??s.hook?.hrefs,s.searchHook=s.searchHook??s.hook?.searchHook;let g=h.useRef({}),b=g.current,x=b;for(let y in o){const N=y==="base"?o[y]+(s[y]??""):s[y]??o[y];b===x&&N!==x[y]&&(g.current=x={...x}),x[y]=N,(N!==o[y]||N!==d[y])&&(d=x)}return h.createElement(af.Provider,{value:d,children:n})},sf=({children:n,component:s},c)=>s?h.createElement(s,{params:c}):typeof n=="function"?n(c):n,v1=n=>{let s=h.useRef(lf);const c=s.current;return s.current=Object.keys(n).length!==Object.keys(c).length||Object.entries(n).some(([o,d])=>d!==c[o])?n:c},Tl=({path:n,nest:s,match:c,...o})=>{const d=zl(),[m]=Rs(d),[v,g,b]=c??Lr(d.parser,n,m,s),x=v1({...d1(),...g});if(!v)return null;const y=b?h.createElement(m1,{base:b},sf(o,x)):sf(o,x);return h.createElement(nf.Provider,{value:x,children:y})};h.forwardRef((n,s)=>{const c=zl(),[o,d]=Rs(c),{to:m="",href:v=m,onClick:g,asChild:b,children:x,className:y,replace:N,state:E,transition:_,...A}=n,D=Ko(H=>{H.ctrlKey||H.metaKey||H.altKey||H.shiftKey||H.button!==0||(g?.(H),H.defaultPrevented||(H.preventDefault(),d(v,n)))}),Q=c.hrefs(v[0]==="~"?v.slice(1):c.base+v,c);return b&&h.isValidElement(x)?h.cloneElement(x,{onClick:D,href:Q}):h.createElement("a",{...A,onClick:D,href:Q,className:y?.call?y(o===v):y,children:x,ref:s})});const rf=n=>Array.isArray(n)?n.flatMap(s=>rf(s&&s.type===h.Fragment?s.props.children:s)):[n],uf=({children:n,location:s})=>{const c=zl(),[o]=Rs(c);for(const d of rf(n)){let m=0;if(h.isValidElement(d)&&(m=Lr(c.parser,d.props.path,s||o,d.props.nest))[0])return h.cloneElement(d,{match:m})}return null};async function Pe(n,s={}){const c=await fetch(n,{...s,headers:{"Content-Type":"application/json",...s.headers}}),o=await c.json();if(!c.ok){const d=new Error(o.error||"Request failed");throw d.status=c.status,d.data=o,d}return o}const nl={async getReportData(){return Pe("/api/report-data")},async acceptBaseline(n){return Pe("/api/baseline/accept",{method:"POST",body:JSON.stringify({id:n})})},async acceptAllBaselines(){return Pe("/api/baseline/accept-all",{method:"POST"})},async rejectBaseline(n){return Pe("/api/baseline/reject",{method:"POST",body:JSON.stringify({id:n})})},async resetBaselines(){return Pe("/api/baseline/reset",{method:"POST"})},async deleteComparison(n){return Pe("/api/baseline/delete",{method:"POST",body:JSON.stringify({id:n})})},async downloadBaselines(n,s,c){return Pe("/api/baselines/download",{method:"POST",body:JSON.stringify({buildId:n,organizationSlug:s,projectSlug:c})})}},cf={async get(){return Pe("/api/config")},async updateProject(n){return Pe("/api/config/project",{method:"POST",body:JSON.stringify(n)})}},_s={async getStatus(){return Pe("/api/auth/status")},async initiateLogin(){return Pe("/api/auth/login",{method:"POST"})},async pollAuthorization(n){return Pe("/api/auth/poll",{method:"POST",body:JSON.stringify({deviceCode:n})})},async logout(){return Pe("/api/auth/logout",{method:"POST"})}},Ls={async list(){return Pe("/api/projects")},async listMappings(){return Pe("/api/projects/mappings")},async createMapping(n){return Pe("/api/projects/mappings",{method:"POST",body:JSON.stringify(n)})},async deleteMapping(n){return Pe(`/api/projects/mappings/${encodeURIComponent(n)}`,{method:"DELETE"})},async getRecentBuilds(n={}){const s=new URLSearchParams;n.limit&&s.append("limit",String(n.limit)),n.branch&&s.append("branch",n.branch);const c=s.toString();return Pe(`/api/builds/recent${c?`?${c}`:""}`)},async getBuilds(n,s,c={}){const o=new URLSearchParams;c.limit&&o.append("limit",String(c.limit)),c.branch&&o.append("branch",c.branch);const d=o.toString(),m=`/api/projects/${encodeURIComponent(n)}/${encodeURIComponent(s)}/builds${d?`?${d}`:""}`;return Pe(m)}},xe={auth:["auth"],authStatus:()=>[...xe.auth,"status"],config:["config"],projectConfig:()=>[...xe.config,"project"],globalConfig:()=>[...xe.config,"global"],tdd:["tdd"],reportData:()=>[...xe.tdd,"report"],cloud:["cloud"],projects:()=>[...xe.cloud,"projects"],builds:(n,s)=>[...xe.cloud,"builds",n,s]};let sl={CONNECTING:"connecting",CONNECTED:"connected",DISCONNECTED:"disconnected",ERROR:"error"};function p1(n={}){let s=n.enabled??!0;const c=vt(),o=h.useRef(null),d=h.useRef(0),m=h.useRef(null),[v,g]=h.useState(sl.DISCONNECTED),[b,x]=h.useState(null);return h.useEffect(()=>{if(!s){o.current&&(o.current.close(),o.current=null),g(sl.DISCONNECTED);return}const y=()=>{if(o.current&&o.current.readyState!==2)return;g(sl.CONNECTING),x(null);const N=new EventSource("/api/events");o.current=N,N.onopen=()=>{g(sl.CONNECTED),x(null),d.current=0},N.addEventListener("reportData",E=>{try{const _=JSON.parse(E.data);c.setQueryData(xe.reportData(),_)}catch{}}),N.addEventListener("heartbeat",()=>{}),N.onerror=()=>{N.close(),o.current=null,g(sl.ERROR),x(new Error("SSE connection failed"));const E=d.current,_=Math.min(1e3*2**E,3e4);d.current=E+1,m.current=window.setTimeout(()=>{y()},_)}};return y(),()=>{m.current&&(clearTimeout(m.current),m.current=null),o.current&&(o.current.close(),o.current=null),g(sl.DISCONNECTED)}},[s,c]),{state:v,error:b}}function ks(n={}){let{state:s}=p1({enabled:n.polling!==!1}),c=s===sl.CONNECTED;return Ml({queryKey:xe.reportData(),queryFn:nl.getReportData,refetchInterval:n.polling!==!1&&!c?2e3:!1,...n})}function of(){const n=vt();return Zt({mutationFn:s=>nl.acceptBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:xe.reportData()});const c=n.getQueryData(xe.reportData());return n.setQueryData(xe.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"accepted"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(xe.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:xe.tdd})}})}function ff(){const n=vt();return Zt({mutationFn:()=>nl.acceptAllBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:xe.tdd})}})}function x1(){const n=vt();return Zt({mutationFn:()=>nl.resetBaselines(),onSuccess:()=>{n.invalidateQueries({queryKey:xe.tdd})}})}function df(){const n=vt();return Zt({mutationFn:s=>nl.rejectBaseline(s),onMutate:async s=>{await n.cancelQueries({queryKey:xe.reportData()});const c=n.getQueryData(xe.reportData());return n.setQueryData(xe.reportData(),o=>o?.comparisons?{...o,comparisons:o.comparisons.map(d=>d.id===s||d.signature===s||d.name===s?{...d,userAction:"rejected"}:d)}:o),{previousData:c}},onError:(s,c,o)=>{o?.previousData&&n.setQueryData(xe.reportData(),o.previousData)},onSettled:()=>{n.invalidateQueries({queryKey:xe.tdd})}})}function g1(){const n=vt();return Zt({mutationFn:s=>nl.deleteComparison(s),onSuccess:()=>{n.invalidateQueries({queryKey:xe.tdd})}})}function b1({title:n,titleId:s,...c},o){return h.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:o,"aria-labelledby":s},c),n?h.createElement("title",{id:s},n):null,h.createElement("path",{fillRule:"evenodd",d:"M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z",clipRule:"evenodd"}))}const y1=h.forwardRef(b1);function hf({variant:n="info",title:s,children:c,dismissible:o=!1,onDismiss:d,icon:m,className:v="",...g}){const b={success:{container:"bg-emerald-500/10 border-emerald-500/20",icon:"text-emerald-400",title:"text-emerald-300",text:"text-emerald-200/80",DefaultIcon:aa},warning:{container:"bg-amber-500/10 border-amber-500/20",icon:"text-amber-400",title:"text-amber-300",text:"text-amber-200/80",DefaultIcon:la},danger:{container:"bg-red-500/10 border-red-500/20",icon:"text-red-400",title:"text-red-300",text:"text-red-200/80",DefaultIcon:Cn},info:{container:"bg-blue-500/10 border-blue-500/20",icon:"text-blue-400",title:"text-blue-300",text:"text-blue-200/80",DefaultIcon:Mr}},{container:x,icon:y,title:N,text:E,DefaultIcon:_}=b[n],A=m||_;return r.jsxs("div",{className:`flex gap-3 p-4 rounded-lg border ${x} ${v}`,...g,children:[r.jsx("div",{className:`flex-shrink-0 ${y}`,children:r.jsx(A,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[s&&r.jsx("h4",{className:`text-sm font-medium ${N}`,children:s}),c&&r.jsx("div",{className:`text-sm ${E} ${s?"mt-1":""}`,children:c})]}),o&&r.jsx("button",{onClick:d,className:`flex-shrink-0 ${y} hover:opacity-70 transition-opacity`,children:r.jsx(Xt,{className:"w-5 h-5"})})]})}function mf({variant:n="approve",isActive:s=!1,onClick:c,disabled:o=!1,loading:d=!1,compact:m=!1,showLabel:v=!0,className:g="",testId:b}){const x={approve:{label:"Approve",icon:Os,activeClasses:"bg-emerald-500 text-white shadow-lg shadow-emerald-500/20",inactiveClasses:"text-slate-400 hover:text-emerald-400 hover:bg-emerald-500/10",dotColor:"bg-emerald-500"},reject:{label:"Reject",icon:Xt,activeClasses:"bg-red-500 text-white shadow-lg shadow-red-500/20",inactiveClasses:"text-slate-400 hover:text-red-400 hover:bg-red-500/10",dotColor:"bg-red-500"}}[n],y=x.icon;let N=b||`btn-${n}`;return m?r.jsx("button",{onClick:c,disabled:o||d,className:`
|
|
10
10
|
flex items-center justify-center
|
|
11
11
|
p-2 sm:px-3 sm:py-1.5
|
|
12
12
|
rounded-lg text-sm font-medium
|
|
13
13
|
transition-all duration-150
|
|
14
14
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
15
|
-
${s?
|
|
16
|
-
${
|
|
17
|
-
`,title:
|
|
15
|
+
${s?x.activeClasses:x.inactiveClasses}
|
|
16
|
+
${g}
|
|
17
|
+
`,title:x.label,"aria-label":x.label,"aria-pressed":s,"data-testid":N,"data-active":s,children:d?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsxs(r.Fragment,{children:[r.jsx(y,{className:"w-4 h-4 sm:mr-1.5"}),r.jsx("span",{className:"hidden sm:inline",children:x.label})]})}):r.jsxs("button",{onClick:c,disabled:o||d,className:`
|
|
18
18
|
flex items-center gap-2
|
|
19
19
|
px-3 sm:px-4 py-2
|
|
20
20
|
rounded-lg text-sm font-semibold
|
|
21
21
|
transition-all duration-150
|
|
22
22
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
23
|
-
${s?
|
|
24
|
-
${
|
|
25
|
-
`,"aria-pressed":s,"data-testid":N,"data-active":s,children:[d?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsx("span",{className:`w-2 h-2 rounded-full ${s?"bg-white":
|
|
23
|
+
${s?x.activeClasses:x.inactiveClasses}
|
|
24
|
+
${g}
|
|
25
|
+
`,"aria-pressed":s,"data-testid":N,"data-active":s,children:[d?r.jsx("span",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}):r.jsx("span",{className:`w-2 h-2 rounded-full ${s?"bg-white":x.dotColor}`}),v&&r.jsx("span",{children:x.label})]})}function j1({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,compact:m=!1,className:v=""}){const g=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`flex items-center gap-1 ${v}`,children:[c&&r.jsx(mf,{variant:"reject",isActive:b,onClick:c,disabled:o,loading:d&&b,compact:m}),s&&r.jsx(mf,{variant:"approve",isActive:g,onClick:s,disabled:o,loading:d&&g,compact:m})]})}function w1({status:n,onApprove:s,onReject:c,disabled:o=!1,loading:d=!1,className:m="",testIdPrefix:v="mobile"}){const g=n==="approved"||n==="auto_approved",b=n==="rejected";return r.jsxs("div",{className:`
|
|
26
26
|
flex items-stretch gap-2
|
|
27
27
|
px-3 py-2.5
|
|
28
28
|
${m}
|
|
@@ -34,43 +34,51 @@ Error generating stack: `+l.message+`
|
|
|
34
34
|
transition-all duration-150 active:scale-[0.98]
|
|
35
35
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
36
36
|
${b?"bg-red-500 text-white shadow-md shadow-red-500/25 ring-1 ring-red-400/30":"bg-slate-800/80 text-slate-300 hover:bg-slate-700/80 active:bg-red-500/20 active:text-red-400"}
|
|
37
|
-
`,children:[r.jsx(
|
|
37
|
+
`,children:[r.jsx(Xt,{className:"w-5 h-5"}),r.jsx("span",{children:"Reject"})]}),s&&r.jsxs("button",{onClick:s,disabled:o||d,"data-testid":`${v}-btn-approve`,"data-active":g,className:`
|
|
38
38
|
flex-1
|
|
39
39
|
flex items-center justify-center gap-2
|
|
40
40
|
py-3 px-4
|
|
41
41
|
rounded-xl text-sm font-semibold
|
|
42
42
|
transition-all duration-150 active:scale-[0.98]
|
|
43
43
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
44
|
-
${
|
|
45
|
-
`,children:[r.jsx(Os,{className:"w-5 h-5"}),r.jsx("span",{children:"Approve"})]})]})}function dt({children:n,variant:s="default",size:c="sm",dot:o=!1,pulseDot:d=!1,className:m="",...v}){const
|
|
44
|
+
${g?"bg-emerald-500 text-white shadow-md shadow-emerald-500/25 ring-1 ring-emerald-400/30":"bg-slate-800/80 text-slate-300 hover:bg-slate-700/80 active:bg-emerald-500/20 active:text-emerald-400"}
|
|
45
|
+
`,children:[r.jsx(Os,{className:"w-5 h-5"}),r.jsx("span",{children:"Approve"})]})]})}function dt({children:n,variant:s="default",size:c="sm",dot:o=!1,pulseDot:d=!1,className:m="",...v}){const g={default:"bg-slate-500/15 text-slate-300 border-slate-500/20",success:"bg-emerald-500/10 text-emerald-400 border-emerald-500/20",warning:"bg-amber-500/10 text-amber-400 border-amber-500/20",danger:"bg-red-500/10 text-red-400 border-red-500/20",info:"bg-blue-500/10 text-blue-400 border-blue-500/20",purple:"bg-purple-500/10 text-purple-400 border-purple-500/20"},b={default:"bg-slate-400",success:"bg-emerald-400",warning:"bg-amber-400",danger:"bg-red-400",info:"bg-blue-400",purple:"bg-purple-400"},x={sm:"text-xs px-2 py-0.5",md:"text-sm px-2.5 py-1"},y=["inline-flex items-center gap-1.5 font-medium rounded-full border",g[s],x[c],m].filter(Boolean).join(" ");return r.jsxs("span",{className:y,...v,children:[o&&r.jsxs("span",{className:"relative flex h-2 w-2",children:[d&&r.jsx("span",{className:`animate-ping absolute inline-flex h-full w-full rounded-full opacity-75 ${b[s]}`}),r.jsx("span",{className:`relative inline-flex rounded-full h-2 w-2 ${b[s]}`})]}),n]})}const et="https://cdnjs.cloudflare.com/ajax/libs/browser-logos/75.0.1";function S1(n){switch(n){case"chrome":return`${et}/chrome/chrome.svg`;case"firefox":return`${et}/firefox/firefox.svg`;case"safari":return`${et}/safari/safari.svg`;case"safari-ios":case"safari_ios":case"ios":case"mobile safari":return`${et}/safari-ios/safari-ios.svg`;case"edge":return`${et}/edge/edge.svg`;case"opera":return`${et}/opera/opera.svg`;case"brave":return`${et}/brave/brave.svg`;case"vivaldi":return`${et}/vivaldi/vivaldi.svg`;case"chromium":return`${et}/chromium/chromium.svg`;case"webkit":return`${et}/webkit/webkit.svg`;case"samsung":case"samsung internet":case"samsung-internet":return`${et}/samsung-internet/samsung-internet.svg`;case"chrome-android":case"chrome_android":case"android chrome":return`${et}/chrome/chrome.svg`;case"firefox-android":case"firefox_android":case"android firefox":return`${et}/firefox/firefox.svg`;case"android":case"android browser":return`${et}/android/android.svg`;case"ie":case"internet explorer":return`${et}/archive/internet-explorer_9-11/internet-explorer_9-11.svg`;case"tor":return`${et}/tor/tor.svg`;case"duckduckgo":return`${et}/duckduckgo/duckduckgo.svg`;case"yandex":return`${et}/yandex/yandex.svg`;case"uc":case"uc browser":return`${et}/uc/uc.svg`;default:return null}}function An({browser:n,className:s="w-4 h-4",fallbackClassName:c=""}){if(!n)return null;const o=n.toLowerCase(),d=S1(o);return d?r.jsx("img",{src:d,alt:`${n} browser`,className:s,title:n,onError:m=>{m.target.style.display="none",m.target.nextSibling?.style.removeProperty("display")}}):r.jsxs(r.Fragment,{children:[r.jsx("img",{style:{display:"none"},alt:""}),r.jsx(Ho,{className:`${s} ${c}`,title:n||"Unknown browser"})]})}function Ke({children:n,variant:s="primary",size:c="md",disabled:o=!1,loading:d=!1,icon:m,iconPosition:v="left",fullWidth:g=!1,className:b="",as:x="button",...y}){const N="vz-btn inline-flex items-center justify-center gap-2 font-medium rounded-lg transition-all duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-slate-900",E={primary:"vz-btn--primary bg-amber-500 hover:bg-amber-400 text-slate-900 focus-visible:ring-amber-500",secondary:"vz-btn--secondary bg-white/10 hover:bg-white/15 text-white border border-white/10 hover:border-white/20 focus-visible:ring-white/50",ghost:"vz-btn--ghost bg-transparent hover:bg-white/5 text-slate-300 hover:text-white focus-visible:ring-white/30",danger:"vz-btn--danger bg-red-500/10 hover:bg-red-500/20 text-red-400 hover:text-red-300 focus-visible:ring-red-500",warning:"vz-btn--warning bg-amber-500/10 hover:bg-amber-500/20 text-amber-400 hover:text-amber-300 focus-visible:ring-amber-500",success:"vz-btn--success bg-emerald-500/10 hover:bg-emerald-500/20 text-emerald-400 hover:text-emerald-300 focus-visible:ring-emerald-500"},_={sm:"text-xs px-3 py-1.5 h-7",md:"text-sm px-4 py-2 h-9",lg:"text-base px-6 py-3 h-11"},A=[N,E[s],_[c],g?"w-full":"",o||d?"opacity-50 cursor-not-allowed pointer-events-none":"",b].filter(Boolean).join(" "),D=x==="button"?{disabled:o||d,...y}:y;return r.jsxs(x,{className:A,...D,children:[d&&r.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),m&&v==="left"&&!d&&r.jsx(m,{className:"w-4 h-4"}),n,m&&v==="right"&&!d&&r.jsx(m,{className:"w-4 h-4"})]})}function He({children:n,variant:s,hover:c=!1,className:o="",...d}){const v=["bg-white/[0.03] backdrop-blur-sm border border-slate-700/50 rounded-xl overflow-hidden",s?{default:"",success:"border-l-2 border-l-emerald-500",warning:"border-l-2 border-l-amber-500",danger:"border-l-2 border-l-red-500",info:"border-l-2 border-l-blue-500",purple:"border-l-2 border-l-purple-500"}[s]:"",c?"transition-all duration-200 hover:border-slate-600 hover:bg-white/[0.05]":"",o].filter(Boolean).join(" ");return r.jsx("div",{className:v,...d,children:n})}function Us({icon:n,title:s,description:c,iconColor:o="bg-amber-500/10 text-amber-400",actions:d,className:m=""}){return r.jsx("div",{className:`px-6 py-5 border-b border-slate-700/50 ${m}`,children:r.jsxs("div",{className:`flex items-center ${d?"justify-between":""}`,children:[r.jsxs("div",{className:"flex items-center gap-3",children:[n&&r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${o}`,children:r.jsx(n,{className:"w-5 h-5"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:c})]})]}),d&&r.jsx("div",{className:"flex items-center gap-2",children:d})]})})}function Ye({children:n,className:s="",padding:c="p-6"}){return r.jsx("div",{className:`${c} ${s}`,children:n})}function N1({children:n,className:s=""}){return r.jsx("div",{className:`px-6 py-4 bg-slate-900/30 border-t border-slate-700/50 ${s}`,children:n})}var E1=Do();function Rl({icon:n=jp,title:s="No data",description:c,action:o,className:d=""}){return r.jsxs("div",{className:`flex flex-col items-center justify-center py-16 px-4 text-center ${d}`,children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-800/50 flex items-center justify-center mb-4",children:r.jsx(n,{className:"w-8 h-8 text-slate-500"})}),r.jsx("h3",{className:"text-lg font-medium text-white mb-1",children:s}),c&&r.jsx("p",{className:"text-sm text-slate-400 max-w-sm mb-6",children:c}),o&&r.jsx("div",{children:o})]})}const vf={amber:{active:"bg-amber-500/20 text-amber-300 border-amber-500/40",inactive:"text-amber-400/70 border-transparent hover:border-amber-500/30 hover:bg-amber-500/10"},cyan:{active:"bg-cyan-500/20 text-cyan-300 border-cyan-500/40",inactive:"text-cyan-400/70 border-transparent hover:border-cyan-500/30 hover:bg-cyan-500/10"},blue:{active:"bg-blue-500/20 text-blue-300 border-blue-500/40",inactive:"text-blue-400/70 border-transparent hover:border-blue-500/30 hover:bg-blue-500/10"},green:{active:"bg-green-500/20 text-green-300 border-green-500/40",inactive:"text-green-400/70 border-transparent hover:border-green-500/30 hover:bg-green-500/10"},emerald:{active:"bg-emerald-500/20 text-emerald-300 border-emerald-500/40",inactive:"text-emerald-400/70 border-transparent hover:border-emerald-500/30 hover:bg-emerald-500/10"},red:{active:"bg-red-500/20 text-red-300 border-red-500/40",inactive:"text-red-400/70 border-transparent hover:border-red-500/30 hover:bg-red-500/10"},orange:{active:"bg-orange-500/20 text-orange-300 border-orange-500/40",inactive:"text-orange-400/70 border-transparent hover:border-orange-500/30 hover:bg-orange-500/10"},purple:{active:"bg-purple-500/20 text-purple-300 border-purple-500/40",inactive:"text-purple-400/70 border-transparent hover:border-purple-500/30 hover:bg-purple-500/10"},gray:{active:"bg-gray-500/20 text-gray-300 border-gray-500/40",inactive:"text-gray-400/70 border-transparent hover:border-gray-500/30 hover:bg-gray-500/10"}};function Na({label:n,count:s=0,color:c="gray",active:o=!1,disabled:d=!1,onClick:m,icon:v,className:g="",testId:b}){const x=vf[c]||vf.gray,y=o?x.active:x.inactive;return r.jsxs("button",{onClick:m,disabled:d||s===0,"data-testid":b,className:`
|
|
46
46
|
inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-md text-xs font-medium
|
|
47
47
|
border transition-all duration-150
|
|
48
48
|
${y}
|
|
49
49
|
${d||s===0?"opacity-30 cursor-not-allowed":"cursor-pointer"}
|
|
50
|
-
${
|
|
50
|
+
${g}
|
|
51
51
|
`,children:[v&&r.jsx(v,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:n}),r.jsx("span",{className:`
|
|
52
52
|
px-1 py-0.5 rounded text-[10px] font-semibold min-w-[18px] text-center
|
|
53
53
|
${o?"bg-white/10":"bg-gray-700/50"}
|
|
54
|
-
`,children:s})]})}function ks({label:n,hint:s,error:c,icon:o,size:d="md",className:m="",value:v,...x}){const g=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[d],o?"pl-10":"",x.disabled?"opacity-50 cursor-not-allowed":"",m].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,x.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:g,value:v??"",...x})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function S1({label:n,hint:s,error:c,options:o=[],placeholder:d="Select an option",size:m="md",className:v="",...x}){const g=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[m],x.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,x.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:g,...x,children:[r.jsx("option",{value:"",disabled:!0,children:d}),o.map(y=>r.jsx("option",{value:y.value,children:y.label},y.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function N1({label:n,description:s,checked:c,onChange:o,disabled:d=!1,size:m="md",className:v="",...x}){const b={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"translate-x-7"}},{track:g,thumb:y,translate:N}=b[m];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${d?"opacity-50 cursor-not-allowed":""} ${v}`,children:[(n||s)&&r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:d,className:"sr-only",...x}),r.jsx("div",{className:`${g} rounded-full transition-colors ${c?"bg-amber-500":"bg-slate-700"}`}),r.jsx("div",{className:`absolute left-1 top-1 ${y} rounded-full bg-white shadow-sm transition-transform ${c?N:""}`})]})]})}function E1({value:n=0,label:s="",size:c=120,strokeWidth:o=8,animated:d=!0,showValue:m=!0,className:v=""}){const[x,b]=h.useState(d?0:n);h.useEffect(()=>{if(!d){b(n);return}const M=0,L=n,Q=1e3;let B=null;const F=X=>{B||(B=X);const I=Math.min((X-B)/Q,1),pe=1-(1-I)**3;b(Math.round(M+(L-M)*pe)),I<1&&requestAnimationFrame(F)};requestAnimationFrame(F)},[n,d]);const g=(c-o)/2,y=g*2*Math.PI,N=y-x/100*y,_=n>=80?"#10b981":n>=50?"#f59e0b":"#ef4444";return r.jsxs("div",{className:`relative ${v}`,style:{width:c,height:c},children:[r.jsxs("svg",{className:"transform -rotate-90",width:c,height:c,viewBox:`0 0 ${c} ${c}`,children:[r.jsx("defs",{children:r.jsxs("filter",{id:`glow-${c}`,x:"-50%",y:"-50%",width:"200%",height:"200%",children:[r.jsx("feGaussianBlur",{stdDeviation:"3",result:"coloredBlur"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"coloredBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),r.jsx("circle",{cx:c/2,cy:c/2,r:g,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:o}),r.jsx("circle",{cx:c/2,cy:c/2,r:g,fill:"none",stroke:_,strokeWidth:o,strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:N,filter:`url(#glow-${c})`,style:{transition:d?"stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1)":"none"}})]}),m&&r.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[r.jsxs("span",{className:"font-mono font-semibold text-white",style:{fontSize:c*.22},children:[x,"%"]}),s&&r.jsx("span",{className:"text-slate-500 uppercase tracking-wider font-medium",style:{fontSize:c*.08},children:s})]})]})}function C1({children:n,containerClassName:s="",onClick:c,style:o={},...d}){let v=`relative inline-block ${s}`;return r.jsx("div",{className:v,style:o,onClick:c,...d,children:n})}function Bs({children:n,containerClassName:s="",interactive:c=!1,onClick:o,style:d={}}){let m=c?"cursor-pointer":"";return r.jsx(C1,{containerClassName:`${s} ${m}`,onClick:o,style:d,children:n})}function A1({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,onLoad:v,imageErrors:x,style:b={},loading:g="lazy",...y}){let N={absolute:"absolute block",relative:"block"},E=o==="absolute"&&!d.includes("top-")&&!d.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",_=`${N[o]} ${E} ${d}`.trim();if(x&&x.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(ea,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:M,zoom:L,...Q}=y;return r.jsx("img",{src:s,alt:c,className:_,style:b,loading:g,decoding:"async",onError:()=>m&&m(n),onLoad:()=>v&&v(n),...Q})}function ll({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,imageErrors:v,showErrorPlaceholder:x=!0,loading:b="lazy",...g}){return v&&v.has(n)&&!x?null:r.jsx(A1,{imageKey:n,url:s,alt:c,position:o,className:d,onError:m,imageErrors:v,loading:b,...g})}function O1({baselineImageUrl:n,currentImageUrl:s,sliderPosition:c=50,onSliderChange:o,screenshot:d,onImageError:m,onImageLoad:v}){return r.jsxs(Bs,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(ll,{imageKey:`baseline-${d?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:new Set,screenshot:d}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(ll,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:m,onLoad:v,imageErrors:new Set,screenshot:d})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"},children:r.jsx("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 w-4 h-4 bg-amber-500 rounded-full shadow-lg border-2 border-white"})}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:x=>o(parseInt(x.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function M1({baselineImageUrl:n,currentImageUrl:s,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:d,onImageError:m,onImageLoad:v,imageErrors:x,onDiffToggle:b}){let g=()=>{c&&b&&b()};return n?r.jsxs(Bs,{interactive:!0,onClick:g,children:[r.jsx(ll,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:x,screenshot:d}),o&&c&&r.jsx(ll,{imageKey:`diff-${d?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:m,onLoad:v,imageErrors:x,showErrorPlaceholder:!1,screenshot:d}),o&&c&&x?.has(`diff-${d?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})})]}):r.jsx(Bs,{interactive:!0,onClick:g,children:r.jsx(ll,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:x,screenshot:d})})}function z1({baselineImageUrl:n,currentImageUrl:s,screenshot:c,onImageError:o,onImageLoad:d,imageErrors:m=new Set}){let[v,x]=h.useState(!0),b=()=>{x(g=>!g)};return r.jsxs(Bs,{interactive:!0,onClick:b,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:v?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(ll,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:v?"relative":"absolute",className:`${v?"":"top-0 left-0"} ${v?"":"hidden"}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c}),r.jsx(ll,{imageKey:`current-${c?.id||"unknown"}`,url:s,alt:"Current",position:v?"absolute":"relative",className:`${v?"top-0 left-0":""} ${v?"hidden":""}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c})]})]})}const vf=[{value:"fit",label:"Fit",icon:ko},{value:.25,label:"25%"},{value:.5,label:"50%"},{value:.75,label:"75%"},{value:1,label:"100%"},{value:1.5,label:"150%"},{value:2,label:"200%"}];function T1(n="fit"){const[s,c]=h.useState(n),o=h.useCallback(d=>{c(d)},[]);return{zoom:s,setZoom:o,isActualSize:s===1,isFitToScreen:s==="fit",zoomPercent:s==="fit"?null:Math.round(s*100)}}function R1({zoom:n,onZoomChange:s,minZoom:c=.1,maxZoom:o=3,variant:d="default",enableKeyboardShortcuts:m=!0,className:v=""}){const[x,b]=h.useState(!1),g=h.useCallback(()=>{if(n==="fit")s(.75);else{const M=Math.min(o,n+.25);s(M)}},[n,o,s]),y=h.useCallback(()=>{if(n==="fit")s(.5);else{const M=Math.max(c,n-.25);s(M)}},[n,c,s]),N=h.useCallback(()=>{s("fit"),b(!1)},[s]),E=h.useCallback(()=>{s(1),b(!1)},[s]);h.useEffect(()=>{if(!m)return;const M=L=>{L.target.tagName==="INPUT"||L.target.tagName==="TEXTAREA"||(L.key==="="||L.key==="+"?(L.preventDefault(),g()):L.key==="-"?(L.preventDefault(),y()):L.key==="0"?(L.preventDefault(),E()):L.key==="9"&&(L.preventDefault(),N()))};return window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)},[m,g,y,E,N]);const _=n==="fit"?"Fit":`${Math.round(n*100)}%`;return d==="mobile"?r.jsxs("div",{className:`flex flex-col gap-2 ${v}`,children:[r.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1",children:vf.map(M=>r.jsxs("button",{onClick:()=>s(M.value),className:`shrink-0 flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${n===M.value?"bg-blue-600 text-white":"bg-slate-800/60 text-slate-400 border border-slate-700/50"}`,children:[M.icon&&r.jsx(M.icon,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:M.label})]},M.value))}),r.jsxs("div",{className:"flex items-center gap-2 bg-slate-800/60 rounded-lg p-1 border border-slate-700/50",children:[r.jsxs("button",{onClick:y,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(Qo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom Out"})]}),r.jsx("div",{className:"px-3 py-2 min-w-[60px] text-center text-sm font-medium text-slate-200 bg-slate-900/50 rounded-lg",children:_}),r.jsxs("button",{onClick:g,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(Vo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom In"})]})]})]}):r.jsxs("div",{className:`relative flex items-center gap-1.5 ${v}`,children:[r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:y,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom out (−)",children:r.jsx(Qo,{className:"w-4 h-4"})}),r.jsx("button",{onClick:()=>b(!x),className:"px-2 py-2 min-w-[44px] text-xs font-medium text-slate-300 hover:text-white hover:bg-slate-700/50 rounded-md transition-all tabular-nums",title:"Click for zoom presets",children:_}),r.jsx("button",{onClick:g,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom in (+)",children:r.jsx(Vo,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:N,className:`p-2 rounded-md transition-all ${n==="fit"?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Fit to screen (9)",children:r.jsx(ko,{className:"w-4 h-4"})}),r.jsx("button",{onClick:E,className:`px-2 py-2 rounded-md transition-all text-xs font-medium ${n===1?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Actual size (0)",children:"1:1"})]}),x&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),r.jsx("div",{className:"absolute top-full left-0 mt-1.5 z-50 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden min-w-[100px]",children:vf.map(M=>r.jsxs("button",{onClick:()=>{s(M.value),b(!1)},className:`w-full px-3 py-2 text-left text-sm flex items-center gap-2 transition-all ${n===M.value?"bg-blue-600 text-white font-medium":"text-slate-300 hover:bg-slate-700/50 hover:text-white"}`,children:[M.icon&&r.jsx(M.icon,{className:"w-4 h-4"}),r.jsx("span",{children:M.label})]},M.value))})]})]})}const An=new Set;function D1(n){return An.size===0&&document.addEventListener("keydown",pf),An.add(n),()=>{An.delete(n),An.size===0&&document.removeEventListener("keydown",pf)}}function pf(n){if(n.key==="Escape"){const s=Array.from(An),c=s[s.length-1];c?.()}}const gf={"w-64":{mobile:"w-64",desktop:"sm:w-64"},"w-72":{mobile:"w-72",desktop:"sm:w-72"},"w-80":{mobile:"w-80",desktop:"sm:w-80"},"w-96":{mobile:"w-96",desktop:"sm:w-96"}},xf={bottom:"inset-x-0 bottom-0 rounded-t-xl",left:"inset-y-0 left-0 w-[85vw] max-w-xs",right:"inset-y-0 right-0 w-[85vw] max-w-xs"},bf={bottom:"border-t",left:"border-r",right:"border-l"},yf={bottom:"animate-in slide-in-from-bottom duration-200",left:"animate-in slide-in-from-left duration-200",right:"animate-in slide-in-from-right duration-200"};function Lr({isOpen:n,onClose:s,position:c="left",desktopPosition:o="left",width:d="w-72",mobileHeight:m="70vh",expandedHeight:v="90vh",showBackdrop:x=!0,alwaysVisibleOnDesktop:b=!0,children:g,className:y="",testId:N}){const E=h.useRef(null),_=gf[d]||gf["w-72"],[M,L]=h.useState(!1);h.useEffect(()=>{n||L(!1)},[n]);const Q=h.useCallback(()=>{L(I=>!I)},[]),B=M?v:m;h.useEffect(()=>{if(!(!n||!s))return D1(s)},[n,s]);const F=h.useCallback(I=>{I.target===I.currentTarget&&s?.()},[s]),X=o==="left"?"sm:border-r":"sm:border-l";return o==="none"?n?r.jsxs(r.Fragment,{children:[x&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 animate-in fade-in duration-150",onClick:F,"aria-hidden":"true"}),r.jsx("aside",{ref:E,"data-testid":N,"data-expanded":M,className:`
|
|
54
|
+
`,children:s})]})}function Bs({label:n,hint:s,error:c,icon:o,size:d="md",className:m="",value:v,...g}){const x=["w-full bg-white/[0.03] border rounded-lg text-white placeholder-slate-500 transition-all duration-150","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50 focus:border-red-500/50 focus:ring-red-500/20":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[d],o?"pl-10":"",g.disabled?"opacity-50 cursor-not-allowed":"",m].filter(Boolean).join(" ");return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,g.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[o&&r.jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-slate-500",children:r.jsx(o,{className:"w-4 h-4"})}),r.jsx("input",{className:x,value:v??"",...g})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function C1({label:n,hint:s,error:c,options:o,placeholder:d,size:m="md",className:v="",children:g,...b}){let y=["w-full bg-white/[0.03] border rounded-lg text-white transition-all duration-150 appearance-none cursor-pointer","focus:outline-none focus:border-amber-500/50 focus:ring-2 focus:ring-amber-500/20","hover:border-slate-600",c?"border-red-500/50":"border-slate-700",{sm:"h-8 text-sm px-3",md:"h-10 text-sm px-4",lg:"h-12 text-base px-4"}[m],b.disabled?"opacity-50 cursor-not-allowed":"",v].filter(Boolean).join(" "),N=g!=null;return r.jsxs("div",{className:"space-y-1.5",children:[n&&r.jsxs("label",{className:"block text-sm font-medium text-slate-300",children:[n,b.required&&r.jsx("span",{className:"text-red-400 ml-1",children:"*"})]}),r.jsxs("div",{className:"relative",children:[r.jsxs("select",{className:y,...b,children:[d&&r.jsx("option",{value:"",disabled:!0,children:d}),N?g:o?.map(E=>r.jsx("option",{value:E.value,children:E.label},E.value))]}),r.jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 pointer-events-none text-slate-500",children:r.jsx("svg",{className:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 9l-7 7-7-7"})})})]}),s&&!c&&r.jsx("p",{className:"text-xs text-slate-500",children:s}),c&&r.jsx("p",{className:"text-xs text-red-400",children:c})]})}function A1({label:n,description:s,checked:c,onChange:o,disabled:d=!1,size:m="md",className:v="",...g}){const b={sm:{track:"w-8 h-5",thumb:"w-3.5 h-3.5",translate:"translate-x-3.5"},md:{track:"w-11 h-6",thumb:"w-4 h-4",translate:"translate-x-5"},lg:{track:"w-14 h-7",thumb:"w-5 h-5",translate:"translate-x-7"}},{track:x,thumb:y,translate:N}=b[m];return r.jsxs("label",{className:`flex items-center justify-between gap-3 cursor-pointer group ${d?"opacity-50 cursor-not-allowed":""} ${v}`,children:[(n||s)&&r.jsxs("div",{className:"flex-1",children:[n&&r.jsx("span",{className:"text-sm font-medium text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),r.jsxs("div",{className:"relative",children:[r.jsx("input",{type:"checkbox",checked:c,onChange:o,disabled:d,className:"sr-only",...g}),r.jsx("div",{className:`${x} rounded-full transition-colors ${c?"bg-amber-500":"bg-slate-700"}`}),r.jsx("div",{className:`absolute left-1 top-1 ${y} rounded-full bg-white shadow-sm transition-transform ${c?N:""}`})]})]})}function M1({value:n=0,label:s="",size:c=120,strokeWidth:o=8,animated:d=!0,showValue:m=!0,className:v=""}){const[g,b]=h.useState(d?0:n);h.useEffect(()=>{if(!d){b(n);return}const A=0,D=n,Q=1e3;let H=null;const V=$=>{H||(H=$);const Z=Math.min(($-H)/Q,1),ne=1-(1-Z)**3;b(Math.round(A+(D-A)*ne)),Z<1&&requestAnimationFrame(V)};requestAnimationFrame(V)},[n,d]);const x=(c-o)/2,y=x*2*Math.PI,N=y-g/100*y,_=n>=80?"#10b981":n>=50?"#f59e0b":"#ef4444";return r.jsxs("div",{className:`relative ${v}`,style:{width:c,height:c},children:[r.jsxs("svg",{className:"transform -rotate-90",width:c,height:c,viewBox:`0 0 ${c} ${c}`,children:[r.jsx("defs",{children:r.jsxs("filter",{id:`glow-${c}`,x:"-50%",y:"-50%",width:"200%",height:"200%",children:[r.jsx("feGaussianBlur",{stdDeviation:"3",result:"coloredBlur"}),r.jsxs("feMerge",{children:[r.jsx("feMergeNode",{in:"coloredBlur"}),r.jsx("feMergeNode",{in:"SourceGraphic"})]})]})}),r.jsx("circle",{cx:c/2,cy:c/2,r:x,fill:"none",stroke:"rgba(255, 255, 255, 0.1)",strokeWidth:o}),r.jsx("circle",{cx:c/2,cy:c/2,r:x,fill:"none",stroke:_,strokeWidth:o,strokeLinecap:"round",strokeDasharray:y,strokeDashoffset:N,filter:`url(#glow-${c})`,style:{transition:d?"stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1)":"none"}})]}),m&&r.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[r.jsxs("span",{className:"font-mono font-semibold text-white",style:{fontSize:c*.22},children:[g,"%"]}),s&&r.jsx("span",{className:"text-slate-500 uppercase tracking-wider font-medium",style:{fontSize:c*.08},children:s})]})]})}function O1({confirmed:n=[],candidates:s=[],imageWidth:c,imageHeight:o,onRegionClick:d,onConfirmRegion:m,onRejectRegion:v,showConfirmed:g=!0,showCandidates:b=!0,disabled:x=!1}){let[y,N]=h.useState(null),[E,_]=h.useState({x:0,y:0}),A=h.useCallback((V,$)=>{x||($.stopPropagation(),_({x:$.clientX,y:$.clientY}),N(V),d?.(V))},[x,d]),D=h.useCallback((V,$=null)=>{m?.(V.id,$),N(null)},[m]),Q=h.useCallback(V=>{v?.(V.id),N(null)},[v]),H=h.useCallback(()=>{N(null)},[]);return!c||!o?null:r.jsxs("div",{className:"hot-spot-overlay-container absolute inset-0 pointer-events-none z-20",children:[r.jsxs("svg",{viewBox:`0 0 ${c} ${o}`,className:"absolute inset-0 w-full h-full",preserveAspectRatio:"xMidYMid meet",children:[r.jsx("defs",{children:r.jsx("style",{children:`
|
|
55
|
+
@keyframes pulse-glow {
|
|
56
|
+
0%, 100% { opacity: 0.6; }
|
|
57
|
+
50% { opacity: 1; }
|
|
58
|
+
}
|
|
59
|
+
.hot-spot-candidate {
|
|
60
|
+
animation: pulse-glow 2s ease-in-out infinite;
|
|
61
|
+
}
|
|
62
|
+
`})}),g&&n.map(V=>{let $=Math.max(V.x2-V.x1,20),Z=Math.max(V.y2-V.y1,20),ne=(V.x1+V.x2)/2,oe=(V.y1+V.y2)/2,Y=ne-$/2,P=oe-Z/2;return r.jsxs("g",{className:"pointer-events-auto",children:[r.jsx("rect",{x:Y,y:P,width:$,height:Z,fill:"rgba(16, 185, 129, 0.1)",stroke:"rgba(16, 185, 129, 0.8)",strokeWidth:"2",strokeDasharray:"6 3",rx:"2",className:"cursor-pointer hover:fill-emerald-500/20",onClick:se=>A(V,se)}),V.label&&r.jsxs("g",{children:[r.jsx("rect",{x:Y,y:P-18,width:V.label.length*7+12,height:16,fill:"rgba(16, 185, 129, 0.9)",rx:"3"}),r.jsx("text",{x:Y+6,y:P-6,fill:"white",fontSize:"10",fontFamily:"ui-monospace, monospace",children:V.label})]})]},V.id)}),b&&s.map(V=>{let $=Math.max(V.x2-V.x1,20),Z=Math.max(V.y2-V.y1,20),ne=(V.x1+V.x2)/2,oe=(V.y1+V.y2)/2,Y=ne-$/2,P=oe-Z/2;return r.jsxs("g",{className:"pointer-events-auto hot-spot-candidate",children:[r.jsx("rect",{x:Y-5,y:P-5,width:$+10,height:Z+10,fill:"transparent",className:"cursor-pointer",onClick:se=>A(V,se)}),r.jsx("rect",{x:Y,y:P,width:$,height:Z,fill:"rgba(245, 158, 11, 0.1)",stroke:"rgba(245, 158, 11, 0.8)",strokeWidth:"2",strokeDasharray:"6 3",rx:"2",className:"cursor-pointer hover:fill-amber-500/20",onClick:se=>A(V,se)}),r.jsx("circle",{cx:Y+$-4,cy:P+4,r:"6",fill:"rgba(245, 158, 11, 0.9)",stroke:"rgba(15, 23, 42, 0.8)",strokeWidth:"1"})]},V.id)})]}),y&&E1.createPortal(r.jsx(z1,{region:y,position:E,onConfirm:D,onReject:Q,onClose:H,isCandidate:y.status==="candidate"}),document.body)]})}function z1({region:n,position:s,onConfirm:c,onReject:o,onClose:d,isCandidate:m}){let[v,g]=h.useState(""),[b,x]=h.useState(!1),y=h.useCallback(()=>{c(n,v||null)},[c,n,v]),N=h.useCallback(()=>{c(n,null)},[c,n]),E=250,_=220,A=s.x-E/2,D=s.y;A<10?A=10:A+E>window.innerWidth-10&&(A=window.innerWidth-E-10),D>_+20?D=D-_-10:D=D+10,D<10&&(D=10),D+_>window.innerHeight-10&&(D=window.innerHeight-_-10);let H={left:`${A}px`,top:`${D}px`};return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-[60] pointer-events-auto",onClick:d}),r.jsxs("div",{className:"fixed z-[70] pointer-events-auto bg-slate-800 border border-slate-700 rounded-lg shadow-xl min-w-[200px] max-w-[280px]",style:H,children:[r.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-slate-700",children:[r.jsx("span",{className:"text-sm font-medium text-white",children:m?"Detected Change":"Dynamic Region"}),r.jsx("button",{type:"button",onClick:d,className:"p-1 text-slate-400 hover:text-white rounded transition-colors",children:r.jsx(Xt,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"px-3 py-2 space-y-2",children:[r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Status"}),r.jsx("span",{className:`font-medium ${m?"text-amber-400":"text-emerald-400"}`,children:m?"Pending Review":"Confirmed Dynamic"})]}),n.occurrence_count>1&&r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Seen"}),r.jsxs("span",{className:"text-slate-200",children:[n.occurrence_count," times"]})]}),n.label&&r.jsxs("div",{className:"flex items-center justify-between text-xs",children:[r.jsx("span",{className:"text-slate-400",children:"Label"}),r.jsx("span",{className:"text-slate-200 font-mono",children:n.label})]}),m&&b&&r.jsx("div",{className:"pt-1",children:r.jsx("input",{type:"text",value:v,onChange:V=>g(V.target.value),placeholder:"e.g., timestamp, avatar",className:"w-full px-2 py-1.5 text-xs bg-slate-900 border border-slate-600 rounded text-white placeholder-slate-500 focus:outline-none focus:border-amber-500",autoFocus:!0})})]}),m&&r.jsxs("div",{className:"px-3 py-2 border-t border-slate-700 space-y-2",children:[r.jsx("p",{className:"text-xs text-slate-400 leading-relaxed",children:"Is this dynamic content that changes between builds?"}),b?r.jsxs("button",{type:"button",onClick:y,className:"w-full flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-emerald-500/20 text-emerald-300 rounded hover:bg-emerald-500/30 transition-colors",children:[r.jsx(aa,{className:"w-3.5 h-3.5"}),"Confirm as Dynamic"]}):r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("button",{type:"button",onClick:N,className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-emerald-500/20 text-emerald-300 rounded hover:bg-emerald-500/30 transition-colors",title:"Mark as dynamic content - future changes here will be auto-approved",children:[r.jsx(aa,{className:"w-3.5 h-3.5"}),"Yes"]}),r.jsxs("button",{type:"button",onClick:()=>o(n),className:"flex-1 flex items-center justify-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-red-500/20 text-red-300 rounded hover:bg-red-500/30 transition-colors",title:"Not dynamic - this is a real change that needs review",children:[r.jsx(Xt,{className:"w-3.5 h-3.5"}),"No"]})]}),!b&&r.jsx("button",{type:"button",onClick:()=>x(!0),className:"w-full text-xs text-slate-400 hover:text-slate-300 underline underline-offset-2",children:"Add a label (optional)"})]})]})]})}function T1({children:n,containerClassName:s="",onClick:c,style:o={},...d}){let v=`relative inline-block ${s}`;return r.jsx("div",{className:v,style:o,onClick:c,...d,children:n})}function Hs({children:n,containerClassName:s="",interactive:c=!1,onClick:o,style:d={}}){let m=c?"cursor-pointer":"";return r.jsx(T1,{containerClassName:`${s} ${m}`,onClick:o,style:d,children:n})}function R1({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,onLoad:v,imageErrors:g,style:b={},loading:x="lazy",...y}){let N={absolute:"absolute block",relative:"block"},E=o==="absolute"&&!d.includes("top-")&&!d.includes("left-")?"top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2":"",_=`${N[o]} ${E} ${d}`.trim();if(g&&g.has(n))return r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})});let{screenshot:A,zoom:D,...Q}=y;return r.jsx("img",{src:s,alt:c,className:_,style:b,loading:x,decoding:"async",onError:()=>m&&m(n),onLoad:()=>v&&v(n),...Q})}function il({imageKey:n,url:s,alt:c,position:o="absolute",className:d="",onError:m,imageErrors:v,showErrorPlaceholder:g=!0,loading:b="lazy",...x}){return v&&v.has(n)&&!g?null:r.jsx(R1,{imageKey:n,url:s,alt:c,position:o,className:d,onError:m,imageErrors:v,loading:b,...x})}function D1({baselineImageUrl:n,currentImageUrl:s,sliderPosition:c=50,onSliderChange:o,screenshot:d,onImageError:m,onImageLoad:v}){return r.jsxs(Hs,{containerClassName:"cursor-col-resize",children:[r.jsxs("div",{className:"relative inline-block",children:[r.jsx(il,{imageKey:`baseline-${d?.id||"unknown"}`,url:n,alt:"Baseline",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:new Set,screenshot:d}),r.jsx("div",{className:"absolute top-0 left-0 overflow-hidden",style:{width:`${c}%`,height:"100%"},children:r.jsx(il,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:"Current",position:"absolute",className:"top-0 left-0",loading:"eager",style:{width:c>0?`${1e4/c}%`:"10000%",maxWidth:"none"},onError:m,onLoad:v,imageErrors:new Set,screenshot:d})}),r.jsx("div",{className:"absolute top-0 bottom-0 w-0.5 bg-white shadow-lg pointer-events-none z-10",style:{left:`${c}%`,transform:"translateX(-50%)"},children:r.jsx("div",{className:"absolute -top-1 left-1/2 -translate-x-1/2 w-4 h-4 bg-amber-500 rounded-full shadow-lg border-2 border-white"})}),r.jsx("div",{className:"absolute inset-0 z-20",children:r.jsx("input",{type:"range",min:"0",max:"100",value:c,onChange:g=>o(parseInt(g.target.value)),className:"absolute inset-0 w-full h-full opacity-0 cursor-col-resize",title:`Slide to compare: ${Math.round(c)}% current visible`})})]}),r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Baseline"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Current"}),r.jsxs("div",{className:"absolute bottom-2 left-1/2 transform -translate-x-1/2 bg-black/70 text-white px-3 py-1 rounded text-xs z-10",children:[Math.round(c),"% current"]})]})}function _1({baselineImageUrl:n,currentImageUrl:s,diffImageUrl:c,showDiffOverlay:o=!1,screenshot:d,onImageError:m,onImageLoad:v,imageErrors:g,onDiffToggle:b}){let x=()=>{c&&b&&b()};return n?r.jsxs(Hs,{interactive:!0,onClick:x,children:[r.jsx(il,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:g,screenshot:d}),o&&c&&r.jsx(il,{imageKey:`diff-${d?.id||"unknown"}`,url:c,alt:"Diff",position:"absolute",className:"top-0 left-0",loading:"eager",onError:m,onLoad:v,imageErrors:g,showErrorPlaceholder:!1,screenshot:d}),o&&c&&g?.has(`diff-${d?.id||"unknown"}`)&&r.jsx("div",{className:"absolute top-4 left-1/2 transform -translate-x-1/2 bg-amber-900/90 border border-amber-600/50 rounded-lg px-3 py-2 text-amber-200 text-sm backdrop-blur-sm",children:r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.732-.833-2.5 0L4.232 14.5c-.77.833.192 2.5 1.732 2.5z"})}),r.jsx("span",{children:"Diff image not available"})]})})]}):r.jsx(Hs,{interactive:!0,onClick:x,children:r.jsx(il,{imageKey:`current-${d?.id||"unknown"}`,url:s,alt:d?.name||"Current",position:"relative",loading:"eager",onError:m,onLoad:v,imageErrors:g,screenshot:d})})}function L1({baselineImageUrl:n,currentImageUrl:s,screenshot:c,onImageError:o,onImageLoad:d,imageErrors:m=new Set}){let[v,g]=h.useState(!0),b=()=>{g(x=>!x)};return r.jsxs(Hs,{interactive:!0,onClick:b,children:[r.jsx("div",{className:"absolute top-2 left-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:v?"Showing Baseline":"Showing Current"}),r.jsx("div",{className:"absolute top-2 right-2 bg-black/70 text-white px-2 py-1 rounded text-xs z-10",children:"Click to toggle"}),r.jsxs("div",{className:"relative inline-block",children:[r.jsx(il,{imageKey:`baseline-${c?.id||"unknown"}`,url:n,alt:"Baseline",position:v?"relative":"absolute",className:`${v?"":"top-0 left-0"} ${v?"":"hidden"}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c}),r.jsx(il,{imageKey:`current-${c?.id||"unknown"}`,url:s,alt:"Current",position:v?"absolute":"relative",className:`${v?"top-0 left-0":""} ${v?"hidden":""}`,loading:"eager",onError:o,onLoad:d,imageErrors:m,showErrorPlaceholder:!1,screenshot:c})]})]})}const pf=[{value:"fit",label:"Fit",icon:Uo},{value:.25,label:"25%"},{value:.5,label:"50%"},{value:.75,label:"75%"},{value:1,label:"100%"},{value:1.5,label:"150%"},{value:2,label:"200%"}];function k1(n="fit"){const[s,c]=h.useState(n),o=h.useCallback(d=>{c(d)},[]);return{zoom:s,setZoom:o,isActualSize:s===1,isFitToScreen:s==="fit",zoomPercent:s==="fit"?null:Math.round(s*100)}}function U1({zoom:n,onZoomChange:s,minZoom:c=.1,maxZoom:o=3,variant:d="default",enableKeyboardShortcuts:m=!0,className:v=""}){const[g,b]=h.useState(!1),x=h.useCallback(()=>{if(n==="fit")s(.75);else{const A=Math.min(o,n+.25);s(A)}},[n,o,s]),y=h.useCallback(()=>{if(n==="fit")s(.5);else{const A=Math.max(c,n-.25);s(A)}},[n,c,s]),N=h.useCallback(()=>{s("fit"),b(!1)},[s]),E=h.useCallback(()=>{s(1),b(!1)},[s]);h.useEffect(()=>{if(!m)return;const A=D=>{D.target.tagName==="INPUT"||D.target.tagName==="TEXTAREA"||(D.key==="="||D.key==="+"?(D.preventDefault(),x()):D.key==="-"?(D.preventDefault(),y()):D.key==="0"?(D.preventDefault(),E()):D.key==="9"&&(D.preventDefault(),N()))};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[m,x,y,E,N]);const _=n==="fit"?"Fit":`${Math.round(n*100)}%`;return d==="mobile"?r.jsxs("div",{className:`flex flex-col gap-2 ${v}`,children:[r.jsx("div",{className:"flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1",children:pf.map(A=>r.jsxs("button",{onClick:()=>s(A.value),className:`shrink-0 flex items-center justify-center gap-1.5 px-3 py-2 rounded-lg text-xs font-medium transition-all ${n===A.value?"bg-blue-600 text-white":"bg-slate-800/60 text-slate-400 border border-slate-700/50"}`,children:[A.icon&&r.jsx(A.icon,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:A.label})]},A.value))}),r.jsxs("div",{className:"flex items-center gap-2 bg-slate-800/60 rounded-lg p-1 border border-slate-700/50",children:[r.jsxs("button",{onClick:y,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(Qo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom Out"})]}),r.jsx("div",{className:"px-3 py-2 min-w-[60px] text-center text-sm font-medium text-slate-200 bg-slate-900/50 rounded-lg",children:_}),r.jsxs("button",{onClick:x,className:"flex-1 flex items-center justify-center gap-2 p-2.5 text-slate-300 hover:text-white hover:bg-slate-700/60 rounded-lg transition-colors",children:[r.jsx(Vo,{className:"w-5 h-5"}),r.jsx("span",{className:"text-xs",children:"Zoom In"})]})]})]}):r.jsxs("div",{className:`relative flex items-center gap-1.5 ${v}`,children:[r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:y,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom out (−)",children:r.jsx(Qo,{className:"w-4 h-4"})}),r.jsx("button",{onClick:()=>b(!g),className:"px-2 py-2 min-w-[44px] text-xs font-medium text-slate-300 hover:text-white hover:bg-slate-700/50 rounded-md transition-all tabular-nums",title:"Click for zoom presets",children:_}),r.jsx("button",{onClick:x,className:"p-2 text-slate-400 hover:text-white hover:bg-slate-700/50 rounded-md transition-all",title:"Zoom in (+)",children:r.jsx(Vo,{className:"w-4 h-4"})})]}),r.jsxs("div",{className:"flex items-center bg-slate-800/60 rounded-lg p-0.5",children:[r.jsx("button",{onClick:N,className:`p-2 rounded-md transition-all ${n==="fit"?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Fit to screen (9)",children:r.jsx(Uo,{className:"w-4 h-4"})}),r.jsx("button",{onClick:E,className:`px-2 py-2 rounded-md transition-all text-xs font-medium ${n===1?"bg-blue-600 text-white":"text-slate-400 hover:text-white hover:bg-slate-700/50"}`,title:"Actual size (0)",children:"1:1"})]}),g&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>b(!1)}),r.jsx("div",{className:"absolute top-full left-0 mt-1.5 z-50 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden min-w-[100px]",children:pf.map(A=>r.jsxs("button",{onClick:()=>{s(A.value),b(!1)},className:`w-full px-3 py-2 text-left text-sm flex items-center gap-2 transition-all ${n===A.value?"bg-blue-600 text-white font-medium":"text-slate-300 hover:bg-slate-700/50 hover:text-white"}`,children:[A.icon&&r.jsx(A.icon,{className:"w-4 h-4"}),r.jsx("span",{children:A.label})]},A.value))})]})]})}const Mn=new Set;function B1(n){return Mn.size===0&&document.addEventListener("keydown",xf),Mn.add(n),()=>{Mn.delete(n),Mn.size===0&&document.removeEventListener("keydown",xf)}}function xf(n){if(n.key==="Escape"){const s=Array.from(Mn),c=s[s.length-1];c?.()}}const gf={"w-64":{mobile:"w-64",desktop:"sm:w-64"},"w-72":{mobile:"w-72",desktop:"sm:w-72"},"w-80":{mobile:"w-80",desktop:"sm:w-80"},"w-96":{mobile:"w-96",desktop:"sm:w-96"}},bf={bottom:"inset-x-0 bottom-0 rounded-t-xl",left:"inset-y-0 left-0 w-[85vw] max-w-xs",right:"inset-y-0 right-0 w-[85vw] max-w-xs"},yf={bottom:"border-t",left:"border-r",right:"border-l"},jf={bottom:"animate-in slide-in-from-bottom duration-200",left:"animate-in slide-in-from-left duration-200",right:"animate-in slide-in-from-right duration-200"};function kr({isOpen:n,onClose:s,position:c="left",desktopPosition:o="left",width:d="w-72",mobileHeight:m="70vh",expandedHeight:v="90vh",showBackdrop:g=!0,alwaysVisibleOnDesktop:b=!0,children:x,className:y="",testId:N}){const E=h.useRef(null),_=gf[d]||gf["w-72"],[A,D]=h.useState(!1);h.useEffect(()=>{n||D(!1)},[n]);const Q=h.useCallback(()=>{D(Z=>!Z)},[]),H=A?v:m;h.useEffect(()=>{if(!(!n||!s))return B1(s)},[n,s]);const V=h.useCallback(Z=>{Z.target===Z.currentTarget&&s?.()},[s]),$=o==="left"?"sm:border-r":"sm:border-l";return o==="none"?n?r.jsxs(r.Fragment,{children:[g&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 animate-in fade-in duration-150",onClick:V,"aria-hidden":"true"}),r.jsx("aside",{ref:E,"data-testid":N,"data-expanded":A,className:`
|
|
55
63
|
fixed z-50
|
|
56
|
-
${
|
|
64
|
+
${bf[c]}
|
|
57
65
|
${c==="bottom"?"mobile-drawer-height":"h-full"}
|
|
58
|
-
bg-slate-900 ${
|
|
66
|
+
bg-slate-900 ${yf[c]} border-slate-800/60
|
|
59
67
|
flex flex-col overflow-hidden
|
|
60
68
|
shadow-2xl shadow-black/50
|
|
61
|
-
${
|
|
69
|
+
${jf[c]}
|
|
62
70
|
transition-[height] duration-200 ease-out
|
|
63
71
|
${y}
|
|
64
|
-
`,style:c==="bottom"?{"--mobile-height":
|
|
72
|
+
`,style:c==="bottom"?{"--mobile-height":H}:void 0,role:"dialog","aria-modal":"true",children:al.Children.map(x,Z=>al.isValidElement(Z)?al.cloneElement(Z,{isExpanded:A,onToggleExpand:Q}):Z)})]}):null:r.jsxs(r.Fragment,{children:[g&&n&&r.jsx("div",{className:"fixed inset-0 bg-black/50 z-40 sm:hidden animate-in fade-in duration-150",onClick:V,"aria-hidden":"true"}),r.jsx("aside",{ref:E,"data-testid":N,"data-expanded":A,"data-open":n,className:`
|
|
65
73
|
${n?"flex":"hidden"} ${b?"sm:flex":""}
|
|
66
74
|
|
|
67
75
|
fixed z-50 sm:relative sm:z-auto
|
|
68
|
-
${
|
|
76
|
+
${bf[c]} sm:inset-auto
|
|
69
77
|
${c==="bottom"?"mobile-drawer-height":"h-full"}
|
|
70
78
|
${c==="bottom"?_.desktop:d}
|
|
71
79
|
|
|
72
80
|
bg-slate-900
|
|
73
|
-
${
|
|
81
|
+
${yf[c]} sm:border-t-0 sm:border-b-0 ${$}
|
|
74
82
|
border-slate-800/60 sm:border-slate-800/50
|
|
75
83
|
sm:rounded-none
|
|
76
84
|
|
|
@@ -78,139 +86,139 @@ Error generating stack: `+l.message+`
|
|
|
78
86
|
shadow-2xl shadow-black/50 sm:shadow-none
|
|
79
87
|
transition-[height] duration-200 ease-out
|
|
80
88
|
|
|
81
|
-
${n?
|
|
89
|
+
${n?jf[c]:""} sm:animate-none
|
|
82
90
|
${y}
|
|
83
|
-
`,style:c==="bottom"?{"--mobile-height":
|
|
91
|
+
`,style:c==="bottom"?{"--mobile-height":H}:void 0,role:n?"dialog":void 0,"aria-modal":n?"true":void 0,children:al.Children.map(x,Z=>al.isValidElement(Z)?al.cloneElement(Z,{isExpanded:A,onToggleExpand:Q}):Z)})]})}function Ur({title:n,subtitle:s,onClose:c,children:o,className:d="",isExpanded:m,onToggleExpand:v}){return r.jsxs("div",{className:`flex-shrink-0 px-4 py-3 border-b border-slate-800/50 ${d}`,children:[v&&r.jsx("button",{type:"button",onClick:v,className:"sm:hidden w-full flex justify-center py-1 mb-1 -mt-1 active:scale-95 transition-transform","aria-label":m?"Collapse drawer":"Expand drawer",children:r.jsx("div",{className:"w-10 h-1 rounded-full bg-slate-600 hover:bg-slate-500 transition-colors"})}),r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[n&&r.jsx("h2",{className:"text-sm font-semibold text-white",children:n}),s&&r.jsx("p",{className:"text-xs text-slate-500 mt-0.5",children:s})]}),c&&r.jsx("button",{type:"button",onClick:c,className:"p-1.5 text-slate-500 hover:text-white rounded-lg hover:bg-slate-800 transition-colors",title:"Close","aria-label":"Close",children:r.jsx(Xt,{className:"w-4 h-4"})})]}),o]})}function Br({children:n,className:s=""}){return r.jsx("div",{className:`
|
|
84
92
|
flex-1 overflow-y-auto
|
|
85
93
|
scrollbar-thin scrollbar-thumb-slate-700 scrollbar-track-transparent
|
|
86
94
|
${s}
|
|
87
|
-
`,children:n})}function
|
|
95
|
+
`,children:n})}function H1({children:n,className:s=""}){return r.jsx("div",{className:`
|
|
88
96
|
flex-shrink-0
|
|
89
97
|
px-4 py-2
|
|
90
98
|
border-t border-slate-800/50
|
|
91
99
|
safe-area-pb
|
|
92
100
|
${s}
|
|
93
|
-
`,children:n})}function
|
|
101
|
+
`,children:n})}function q1({children:n,className:s=""}){return r.jsx("div",{className:`
|
|
94
102
|
flex-shrink-0
|
|
95
103
|
px-3 py-2
|
|
96
104
|
border-b border-slate-800/30
|
|
97
105
|
flex items-center gap-1
|
|
98
106
|
${s}
|
|
99
|
-
`,children:n})}function
|
|
107
|
+
`,children:n})}function Q1({isActive:n,onClick:s,children:c,className:o=""}){return r.jsx("button",{type:"button",onClick:s,className:`
|
|
100
108
|
px-2.5 py-1.5 rounded-md text-xs font-medium whitespace-nowrap
|
|
101
109
|
transition-all active:scale-[0.98]
|
|
102
110
|
${n?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/40":"text-slate-400 hover:text-slate-200 hover:bg-slate-800/60 active:bg-slate-800/80"}
|
|
103
111
|
${o}
|
|
104
|
-
`,children:c})}function
|
|
112
|
+
`,children:c})}function V1({onClick:n,className:s=""}){return r.jsx("button",{type:"button",onClick:n,className:`
|
|
105
113
|
p-2 text-slate-400 hover:text-white
|
|
106
114
|
hover:bg-slate-800 rounded-lg
|
|
107
115
|
transition-colors
|
|
108
116
|
${s}
|
|
109
|
-
`,title:"Close (Esc)","aria-label":"Close",children:r.jsx(
|
|
117
|
+
`,title:"Close (Esc)","aria-label":"Close",children:r.jsx(Xt,{className:"w-5 h-5"})})}function Y1({title:n,icon:s,children:c,defaultExpanded:o=!0,badge:d}){const[m,v]=h.useState(o);return r.jsxs("div",{className:"border-b border-slate-800/50 last:border-b-0",children:[r.jsxs("button",{onClick:()=>v(!m),className:"w-full px-4 py-3 flex items-center gap-2 text-left hover:bg-slate-800/30 transition-colors",children:[m?r.jsx(Sn,{className:"w-3.5 h-3.5 text-slate-500"}):r.jsx(Ol,{className:"w-3.5 h-3.5 text-slate-500"}),s&&r.jsx(s,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-xs font-semibold text-slate-300 uppercase tracking-wider flex-1",children:n}),d&&r.jsx("span",{className:"text-[10px] font-medium text-slate-500 bg-slate-800 px-1.5 py-0.5 rounded",children:d})]}),r.jsx("div",{className:`
|
|
110
118
|
overflow-hidden transition-all duration-200
|
|
111
119
|
${m?"max-h-[1000px] opacity-100":"max-h-0 opacity-0"}
|
|
112
|
-
`,children:r.jsx("div",{className:"px-4 pb-3 space-y-2",children:c})})]})}function
|
|
120
|
+
`,children:r.jsx("div",{className:"px-4 pb-3 space-y-2",children:c})})]})}function G1({label:n,value:s,mono:c=!1,copyable:o=!1,href:d,badge:m,icon:v}){const[g,b]=h.useState(!1),x=h.useCallback(async E=>{E.preventDefault(),E.stopPropagation(),await navigator.clipboard.writeText(String(s)),b(!0)},[s]),y=h.useCallback(()=>{g&&b(!1)},[g]);if(s==null||s==="")return null;let N=r.jsx("span",{className:`
|
|
113
121
|
text-slate-200 truncate
|
|
114
122
|
${c?"font-mono text-xs":"text-sm"}
|
|
115
123
|
`,children:s});return d&&(N=r.jsxs("a",{href:d,target:"_blank",rel:"noopener noreferrer",className:`
|
|
116
124
|
text-blue-400 hover:text-blue-300 truncate inline-flex items-center gap-1
|
|
117
125
|
${c?"font-mono text-xs":"text-sm"}
|
|
118
|
-
`,children:[s,r.jsx(
|
|
126
|
+
`,children:[s,r.jsx(Bv,{className:"w-3 h-3 flex-shrink-0"})]})),r.jsxs("div",{className:"flex items-center justify-between gap-3 py-1 group",onMouseLeave:y,children:[r.jsxs("div",{className:"flex items-center gap-2 text-slate-500 text-xs flex-shrink-0",children:[v&&r.jsx(v,{className:"w-3.5 h-3.5"}),r.jsx("span",{children:n})]}),r.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[m&&r.jsx("span",{className:`
|
|
119
127
|
text-[10px] font-medium px-1.5 py-0.5 rounded-full border
|
|
120
128
|
${m.variant==="success"?"bg-emerald-500/10 text-emerald-400 border-emerald-500/20":""}
|
|
121
129
|
${m.variant==="warning"?"bg-amber-500/10 text-amber-400 border-amber-500/20":""}
|
|
122
130
|
${m.variant==="danger"?"bg-red-500/10 text-red-400 border-red-500/20":""}
|
|
123
131
|
${m.variant==="info"?"bg-blue-500/10 text-blue-400 border-blue-500/20":""}
|
|
124
132
|
${!m.variant||m.variant==="default"?"bg-slate-500/10 text-slate-400 border-slate-500/20":""}
|
|
125
|
-
`,children:m.label}),N,o&&r.jsx("button",{onClick:
|
|
133
|
+
`,children:m.label}),N,o&&r.jsx("button",{onClick:x,className:`
|
|
126
134
|
p-1 rounded transition-colors flex-shrink-0
|
|
127
|
-
${
|
|
128
|
-
`,title:
|
|
135
|
+
${g?"text-emerald-400 bg-emerald-500/10":"text-slate-600 hover:text-slate-400 opacity-0 group-hover:opacity-100"}
|
|
136
|
+
`,title:g?"Copied!":`Copy ${n}`,children:g?r.jsx(y1,{className:"w-3 h-3"}):r.jsx(rp,{className:"w-3 h-3"})})]})]})}function Z1({label:n,icon:s,onClick:c,href:o,variant:d="default"}){const m={default:"text-slate-400 hover:text-white hover:bg-slate-800/50",primary:"text-blue-400 hover:text-blue-300 hover:bg-blue-500/10",danger:"text-red-400 hover:text-red-300 hover:bg-red-500/10"},v=o?"a":"button",g=o?{href:o,target:"_blank",rel:"noopener noreferrer"}:{onClick:c};return r.jsxs(v,{...g,className:`
|
|
129
137
|
flex items-center gap-2 w-full px-3 py-2 rounded-lg text-sm
|
|
130
138
|
transition-colors ${m[d]}
|
|
131
|
-
`,children:[s&&r.jsx(s,{className:"w-4 h-4 flex-shrink-0"}),r.jsx("span",{children:n})]})}function ht({isOpen:n,onClose:s,title:c="Inspector",subtitle:o,children:d,className:m="",showHeader:v=!0,testId:
|
|
139
|
+
`,children:[s&&r.jsx(s,{className:"w-4 h-4 flex-shrink-0"}),r.jsx("span",{children:n})]})}function ht({isOpen:n,onClose:s,title:c="Inspector",subtitle:o,children:d,className:m="",showHeader:v=!0,testId:g="inspector-panel"}){return r.jsxs(kr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"right",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,className:m,testId:g,children:[v&&r.jsx(Ur,{title:c,subtitle:o,onClose:s}),r.jsx(Br,{children:d})]})}ht.Section=Y1,ht.Row=G1,ht.Action=Z1;function X1(n){const s=n.analysis_metadata||{},c=s.cluster_analysis||{},o=n.diffClusters||[],d=n.diff_percentage??n.diffPercentage,m=d!=null?`${Number(d).toFixed(1)}%`:null,v=c.clusterCount??(o.length||null),g=n.approval_status==="auto_approved",b=s.auto_approval_reason;if(g&&b)return{label:"Auto-approved",detail:m,color:"text-purple-400/80"};const x=c.classification;if(x){const y=v?`${v} regions`:m;switch(x){case"dynamic_content":return{label:"Dynamic content",detail:y,color:"text-purple-400/80"};case"major_structural":return{label:"Major structural",detail:y,color:"text-red-400/80"};case"major":return{label:"Major changes",detail:y,color:"text-orange-400/80"};case"moderate":return{label:"Moderate changes",detail:y,color:"text-amber-400/80"};case"minor":return{label:"Minor changes",detail:y,color:"text-amber-400/80"}}}if(v>0)return{label:v===1?"1 region":`${v} regions`,detail:m,color:"text-amber-400/80"};if(d!=null){const y=Number(d);let N,E;return y<1?(N="Tiny change",E="text-slate-400/80"):y<5?(N="Small change",E="text-amber-400/80"):y<15?(N="Moderate change",E="text-amber-400/80"):y<30?(N="Significant change",E="text-orange-400/80"):(N="Large change",E="text-red-400/80"),{label:N,detail:m,color:E}}return null}function K1({item:n,isActive:s,thumbnailUrl:c,onClick:o}){const[d,m]=h.useState(!1),v=n.result==="changed"||n.status==="failed",g=n.result==="new"||n.status==="new"||n.status==="baseline-created",b=n.approval_status==="approved"||n.approval_status==="auto_approved",x=n.approval_status==="rejected",y=n.is_flaky,N=(v||g)&&!b&&!x,E=v?X1(n):null,_=()=>s?x?"bg-red-500/15 ring-1 ring-red-500/40":b?"bg-emerald-500/15 ring-1 ring-emerald-500/40":y?"bg-purple-500/15 ring-1 ring-purple-500/40":"bg-amber-500/15 ring-1 ring-amber-500/40":"hover:bg-slate-800/60 active:bg-slate-800/80",A=()=>x?"bg-red-500":b?"bg-emerald-500":y?"bg-purple-500":"bg-amber-500",D=()=>s?x?"text-red-300 font-medium":b?"text-emerald-300 font-medium":y?"text-purple-300 font-medium":"text-amber-300 font-medium":"text-slate-300";return r.jsxs("button",{type:"button",onClick:o,className:`
|
|
132
140
|
group relative w-full flex items-center gap-3 px-3 py-2.5 rounded-lg
|
|
133
141
|
text-left transition-all active:scale-[0.99]
|
|
134
142
|
${_()}
|
|
135
143
|
${N?"opacity-100":"opacity-60 hover:opacity-100"}
|
|
136
|
-
`,children:[r.jsxs("div",{className:"relative w-10 h-14 flex-shrink-0 rounded-md overflow-hidden bg-slate-800/80",children:[c&&r.jsx("img",{src:c,alt:n.name,className:`w-full h-full object-cover object-top transition-opacity ${d?"opacity-100":"opacity-0"}`,loading:"lazy",onLoad:()=>m(!0)}),!d&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-slate-600 text-sm font-medium",children:(n.name||"?").charAt(0).toUpperCase()}),v&&r.jsx("div",{className:"absolute top-0.5 right-0.5",children:r.jsx("span",{className:`w-2 h-2 rounded-full block ${b?"bg-emerald-500":
|
|
144
|
+
`,children:[r.jsxs("div",{className:"relative w-10 h-14 flex-shrink-0 rounded-md overflow-hidden bg-slate-800/80",children:[c&&r.jsx("img",{src:c,alt:n.name,className:`w-full h-full object-cover object-top transition-opacity ${d?"opacity-100":"opacity-0"}`,loading:"lazy",onLoad:()=>m(!0)}),!d&&r.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-slate-600 text-sm font-medium",children:(n.name||"?").charAt(0).toUpperCase()}),v&&r.jsx("div",{className:"absolute top-0.5 right-0.5",children:r.jsx("span",{className:`w-2 h-2 rounded-full block ${b?"bg-emerald-500":x?"bg-red-500":"bg-amber-500 animate-pulse"}`})}),g&&!v&&r.jsx("div",{className:"absolute bottom-0.5 left-0.5 px-1 py-0.5 bg-blue-500 rounded text-[8px] font-bold text-white",children:"NEW"})]}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:`text-sm truncate ${D()}`,children:n.name||"Unnamed"}),E&&r.jsxs("p",{className:`text-[10px] mt-0.5 ${E.color}`,children:[E.label,E.detail&&r.jsxs("span",{className:"text-slate-500 ml-1",children:["· ",E.detail]})]})]}),s&&r.jsx("div",{className:`absolute left-0 top-3 bottom-3 w-0.5 rounded-full ${A()}`})]})}const wf=h.createContext(null);function $1({children:n,defaultActive:s=!1}){const[c,o]=h.useState(s),d=h.useCallback(()=>o(!0),[]),m=h.useCallback(()=>o(!1),[]),v=h.useCallback(()=>o(b=>!b),[]);h.useEffect(()=>{const b=x=>{x.target.tagName==="INPUT"||x.target.tagName==="TEXTAREA"||x.key===" "&&(x.preventDefault(),v())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[v]);const g={isActive:c,enter:d,exit:m,toggle:v};return r.jsx(wf.Provider,{value:g,children:n})}function Sf(){const n=h.useContext(wf);if(!n)throw new Error("useReviewMode must be used within a ReviewModeProvider");return n}function J1(n,s={}){const{isActive:c}=Sf(),{enabled:o=!0}=s;h.useEffect(()=>{if(!c||!o)return;const d=m=>{if(m.target.tagName==="INPUT"||m.target.tagName==="TEXTAREA"||m.metaKey||m.ctrlKey||m.altKey)return;const v=m.key.toLowerCase(),g=n[v];g&&(m.preventDefault(),g(m))};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[c,o,n])}function Dl(n){if(!n||typeof n!="object")return{};const s={browser:null,device:null,viewport:null,viewportWidth:null,viewportHeight:null};if(s.browser=n.browser||n.metadata?.browser||n.metadata?.properties?.browser||null,s.device=n.metadata?.device||n.device||null,n.viewport_width&&n.viewport_height)s.viewportWidth=n.viewport_width,s.viewportHeight=n.viewport_height,s.viewport=`${n.viewport_width}x${n.viewport_height}`;else if(n.width&&n.height)s.viewportWidth=n.width,s.viewportHeight=n.height,s.viewport=`${n.width}x${n.height}`;else if(n.metadata?.viewport){s.viewport=n.metadata.viewport;const c=n.metadata.viewport.split("x");if(c.length===2){const[o,d]=c.map(Number);!isNaN(o)&&!isNaN(d)&&(s.viewportWidth=o,s.viewportHeight=d)}}return n.metadata&&typeof n.metadata=="object"&&(Object.entries(n.metadata).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight","properties"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)}),n.metadata.properties&&typeof n.metadata.properties=="object"&&Object.entries(n.metadata.properties).forEach(([c,o])=>{!["browser","device","viewport","viewportWidth","viewportHeight"].includes(c)&&o!=null&&typeof c=="string"&&typeof o!="object"&&(s[c]=o)})),s}function F1({value:n,onChange:s,placeholder:c="Search...",className:o="",autoFocus:d=!1}){return r.jsxs("div",{className:`relative flex-1 ${o}`,children:[r.jsx(Tp,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-500"}),r.jsx("input",{type:"text",value:n,onChange:m=>s(m.target.value),placeholder:c,autoFocus:d,className:"w-full pl-9 pr-8 py-2 bg-gray-900/50 border border-gray-700/50 rounded-lg text-sm text-white placeholder-gray-500 focus:outline-none focus:border-gray-600 focus:ring-1 focus:ring-gray-600/50 transition-colors"}),n&&r.jsx("button",{onClick:()=>s(""),className:"absolute right-2 top-1/2 -translate-y-1/2 text-gray-500 hover:text-gray-300 transition-colors",children:r.jsx(Xt,{className:"w-4 h-4"})})]})}function Be({variant:n="text",width:s,height:c,className:o="",count:d=1}){const m="animate-pulse bg-gradient-to-r from-slate-800 via-slate-700 to-slate-800 bg-[length:200%_100%] rounded",v={text:"h-4 rounded",heading:"h-8 rounded",avatar:"rounded-full",card:"rounded-xl",button:"h-10 rounded-lg",badge:"h-6 w-16 rounded-full"},b={text:{width:"100%",height:"16px"},heading:{width:"60%",height:"32px"},avatar:{width:"40px",height:"40px"},card:{width:"100%",height:"200px"},button:{width:"100px",height:"40px"},badge:{width:"64px",height:"24px"}}[n],x=Array.from({length:d},(y,N)=>r.jsx("div",{className:`${m} ${v[n]} ${o}`,style:{width:s||b.width,height:c||b.height,animation:"shimmer 1.5s infinite"}},N));return d===1?x[0]:r.jsx("div",{className:"space-y-2",children:x})}function _l({className:n=""}){return r.jsxs("div",{className:`bg-white/[0.03] border border-slate-700/50 rounded-xl p-6 ${n}`,children:[r.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[r.jsx(Be,{variant:"avatar"}),r.jsxs("div",{className:"flex-1 space-y-2",children:[r.jsx(Be,{variant:"text",width:"40%"}),r.jsx(Be,{variant:"text",width:"60%",height:"12px"})]})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsx(Be,{variant:"text"}),r.jsx(Be,{variant:"text"}),r.jsx(Be,{variant:"text",width:"80%"})]})]})}function On({size:n="md",className:s=""}){let c={sm:"w-4 h-4",md:"w-6 h-6",lg:"w-8 h-8",xl:"w-12 h-12"};return r.jsxs("svg",{className:`animate-spin ${c[n]} ${s}`,viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]})}const W1=["viewport","browser"],Ea={viewport:{label:"Size",getValue:n=>{const s=n.viewport_width||n.width,c=n.viewport_height||n.height;return s&&c?`${s}x${c}`:null},formatValue:n=>n?.replace("x","×"),sortValues:(n,s)=>{const[c]=(n||"0x0").split("x").map(Number),[o]=(s||"0x0").split("x").map(Number);return o-c},renderIcon:(n,s="w-3.5 h-3.5")=>{const c=parseInt(n?.split("x")[0],10)||0;return c<=480?r.jsx(Ts,{className:s}):c<=1024?r.jsx(Ar,{className:s}):r.jsx(Nn,{className:s})},isMono:!0},browser:{label:"Browser",getValue:n=>Dl(n).browser||n.browser||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(An,{browser:n,className:s})},theme:{label:"Theme",getValue:n=>Dl(n).theme||null,formatValue:n=>n?.charAt(0).toUpperCase()+n?.slice(1),sortValues:(n,s)=>n==="light"?-1:s==="light"?1:(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>n?.toLowerCase()==="dark"?r.jsx(_p,{className:s}):r.jsx(qp,{className:s})},locale:{label:"Locale",getValue:n=>Dl(n).locale||null,formatValue:n=>n?.toUpperCase(),sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Ho,{className:s})},device:{label:"Device",getValue:n=>Dl(n).device||null,formatValue:n=>n,sortValues:(n,s)=>(n||"").localeCompare(s||""),renderIcon:(n,s="w-3.5 h-3.5")=>r.jsx(Ts,{className:s})}};function Ft(n,s){const c=Ea[s];return c?c.getValue(n):Dl(n)[s]||n[s]||null}function qs(n,s,c=!1,o=14){const d=Ea[n];let m;return d?.formatValue?m=d.formatValue(s):s==null?m="none":typeof s=="boolean"||typeof s=="number"?m=String(s):typeof s=="object"?m=JSON.stringify(s):m=s,m&&m.length>o&&(m=m.slice(0,o-1)+"…"),c&&!d?`${Qs(n).toLowerCase()}: ${m}`:m}function Nf(n,s){const c=Ea[n];return c?.sortValues?[...s].sort(c.sortValues):s}function Qs(n){return Ea[n]?.label||n.charAt(0).toUpperCase()+n.slice(1)}function zn(n,s,c="w-4 h-4"){const o=Ea[n];return o?.renderIcon?o.renderIcon(s,c):r.jsx(Vp,{className:c})}function I1(n,s=[]){const c=h.useMemo(()=>{const d=[...W1];s.forEach(g=>{d.includes(g)||d.push(g)}),Object.keys(Ea).forEach(g=>{if(d.includes(g))return;n.some(x=>Ft(x,g)!=null)&&d.push(g)});const v=["browser","viewport","viewportWidth","viewportHeight","device","url","selector","width","height"];return n.forEach(g=>{const b=Dl(g);Object.keys(b).forEach(x=>{!d.includes(x)&&!v.includes(x)&&b[x]!=null&&typeof b[x]!="object"&&d.push(x)})}),d},[s,n]),o=h.useMemo(()=>{if(!n||n.length===0)return{};const d={};return c.forEach(m=>{const v=new Set;n.forEach(g=>{const b=Ft(g,m);b!=null&&v.add(b)}),v.size>=1&&(d[m]={values:Array.from(v),hasMultiple:v.size>1})}),d},[n,c]);return{effectiveDimensions:c,dimensionAnalysis:o}}function Ef(n,s,c,o,d){let m=null,v=-1;return n.forEach(g=>{if(Ft(g,s)!==c)return;let b=0;d.forEach(x=>{if(x===s)return;const y=o?Ft(o,x):null,N=Ft(g,x);y===N&&b++}),b>v&&(v=b,m=g)}),m||(m=n.find(g=>Ft(g,s)===c)),m}function P1({dimension:n,currentValue:s,allValues:c,onSelect:o,isLast:d}){const[m,v]=h.useState(!1),g=h.useRef(null),b=h.useRef(null),x=Ea[n],y=c.length>1,N=qs(n,s,!0);h.useEffect(()=>{if(!m)return;function _(A){g.current&&!g.current.contains(A.target)&&b.current&&!b.current.contains(A.target)&&v(!1)}return document.addEventListener("mousedown",_),()=>document.removeEventListener("mousedown",_)},[m]),h.useEffect(()=>{if(!m)return;function _(A){A.key==="Escape"&&v(!1)}return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[m]);const E=h.useCallback(_=>{o(n,_),v(!1)},[n,o]);return r.jsxs("div",{className:"relative flex items-center flex-shrink-0",ref:g,children:[r.jsxs("button",{onClick:()=>y&&v(!m),disabled:!y,className:`
|
|
137
145
|
group flex items-center gap-1.5 px-2 py-1 rounded-md
|
|
138
146
|
text-sm transition-all duration-150 whitespace-nowrap
|
|
139
147
|
${y?"hover:bg-slate-700/60 cursor-pointer":"cursor-default opacity-75"}
|
|
140
148
|
${m?"bg-slate-700/60 ring-1 ring-slate-600/50":""}
|
|
141
|
-
`,"aria-expanded":m,"aria-haspopup":y?"listbox":void 0,children:[r.jsx("span",{className:`transition-colors ${m?"text-amber-400":"text-slate-400 group-hover:text-slate-300"}`,children:
|
|
149
|
+
`,"aria-expanded":m,"aria-haspopup":y?"listbox":void 0,children:[r.jsx("span",{className:`transition-colors ${m?"text-amber-400":"text-slate-400 group-hover:text-slate-300"}`,children:zn(n,s,"w-4 h-4")}),r.jsx("span",{className:`transition-colors ${m?"text-white":"text-slate-200 group-hover:text-white"} ${x?.isMono?"font-mono text-xs":"text-sm"}`,children:N||"Unknown"}),y&&r.jsx(Sn,{className:`w-3 h-3 transition-all duration-150 ${m?"text-amber-400 rotate-180":"text-slate-500 group-hover:text-slate-400"}`})]}),!d&&r.jsx("span",{className:"mx-0.5 text-slate-600 select-none opacity-40",children:"/"}),m&&y&&r.jsxs("div",{ref:b,className:"absolute top-full left-0 mt-1.5 z-50 min-w-[160px] max-h-[280px] overflow-y-auto bg-slate-800/95 backdrop-blur-sm border border-slate-700/60 rounded-lg shadow-xl shadow-black/40 py-1 animate-in fade-in slide-in-from-top-2 duration-150",role:"listbox","aria-label":`Select ${Qs(n)}`,children:[r.jsx("div",{className:"px-3 py-2 border-b border-slate-700/40",children:r.jsx("span",{className:"text-[10px] font-semibold text-slate-500 uppercase tracking-wider",children:Qs(n)})}),Nf(n,c).map(_=>{const A=_===s,D=qs(n,_);return r.jsxs("button",{onClick:()=>E(_),className:`w-full flex items-center gap-2.5 px-3 py-2 text-left transition-all duration-100 ${A?"bg-amber-500/15 text-amber-400":"text-slate-300 hover:bg-slate-700/60 hover:text-white"}`,role:"option","aria-selected":A,children:[r.jsx("span",{className:A?"text-amber-400":"text-slate-500",children:zn(n,_,"w-4 h-4")}),r.jsx("span",{className:`flex-1 ${x?.isMono?"font-mono text-xs":"text-sm"}`,children:D}),A&&r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500 shadow-sm shadow-amber-500/50"})]},_)})]})]})}function ex({isOpen:n,onClose:s,variants:c,currentVariant:o,dimensionAnalysis:d,effectiveDimensions:m,onVariantSelect:v}){const g=h.useCallback((E,_)=>{const A=Ef(c,E,_,o,m);A&&v&&(v(A),s())},[c,o,m,v,s]),b=Object.keys(d),x=b.filter(E=>d[E].hasMultiple),y=b.filter(E=>!d[E].hasMultiple),N=[...x,...y];return r.jsxs(kr,{isOpen:n,onClose:s,position:"bottom",desktopPosition:"none",mobileHeight:"30vh",expandedHeight:"80vh",children:[r.jsx(Ur,{title:"Select Variant",onClose:s}),r.jsx(Br,{className:"px-3 py-3",children:r.jsx("div",{className:"space-y-5",children:N.map(E=>{const{values:_,hasMultiple:A}=d[E],D=o?Ft(o,E):_[0],Q=Qs(E);return r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("span",{className:"text-xs font-semibold text-slate-500 uppercase tracking-wider",children:Q}),!A&&r.jsx("span",{className:"text-[10px] text-slate-600",children:"(fixed)"})]}),r.jsx("div",{className:"flex flex-wrap gap-2",children:Nf(E,_).map(H=>{const V=D===H;return r.jsxs("button",{type:"button",disabled:!A,onClick:()=>A&&g(E,H),className:`
|
|
142
150
|
flex items-center gap-2 px-3 py-2.5 rounded-lg text-sm transition-all
|
|
143
|
-
${
|
|
144
|
-
${
|
|
145
|
-
`,children:[
|
|
151
|
+
${A?"active:scale-[0.98]":"opacity-60 cursor-default"}
|
|
152
|
+
${V?"bg-amber-500/20 text-amber-300 ring-1 ring-amber-500/40":A?"bg-slate-800/60 text-slate-300 hover:bg-slate-700/60 active:bg-slate-700/80":"bg-slate-800/40 text-slate-400"}
|
|
153
|
+
`,children:[zn(E,H,"w-4 h-4"),r.jsx("span",{className:Ea[E]?.isMono?"font-mono text-xs":"",children:qs(E,H)})]},H)})})]},E)})})})]})}function tx({variants:n=[],currentVariantId:s,onVariantSelect:c,baselineSignatureProperties:o=[],className:d=""}){const[m,v]=h.useState(!1),{effectiveDimensions:g,dimensionAnalysis:b}=I1(n,o),x=h.useMemo(()=>n.find(H=>H.id===s),[n,s]),y=h.useCallback((H,V)=>{const $=Ef(n,H,V,x,g);$&&c&&c($)},[n,x,g,c]),N=Object.keys(b);if(n.length===0||N.length===0)return null;const E=N.filter(H=>b[H].hasMultiple),_=N.filter(H=>!b[H].hasMultiple),A=[...E,..._],D=x?Ft(x,"viewport"):null,Q=x?Ft(x,"browser"):null;return r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:()=>v(!0),className:`
|
|
146
154
|
sm:hidden flex items-center gap-2 px-3 py-1.5
|
|
147
155
|
bg-slate-800/50 rounded-lg border border-slate-700/40
|
|
148
156
|
text-sm text-slate-200 hover:bg-slate-700/50 active:bg-slate-700/70 transition-colors
|
|
149
157
|
${d}
|
|
150
|
-
`,children:[
|
|
158
|
+
`,children:[zn("viewport",D,"w-4 h-4 text-slate-400"),r.jsx("span",{className:"font-mono text-xs truncate max-w-[100px]",children:qs("viewport",D)}),Q&&r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"text-slate-600",children:"/"}),zn("browser",Q,"w-4 h-4 text-slate-400")]}),r.jsx(Ol,{className:"w-3 h-3 text-slate-500 ml-auto"})]}),r.jsx("div",{className:`
|
|
151
159
|
hidden sm:flex items-center flex-wrap gap-1
|
|
152
160
|
bg-slate-800/50 rounded-lg px-1.5 py-1
|
|
153
161
|
border border-slate-700/40
|
|
154
162
|
${d}
|
|
155
|
-
`,children:
|
|
163
|
+
`,children:A.map((H,V)=>{const{values:$}=b[H],Z=x?Ft(x,H):$[0];return r.jsx(P1,{dimension:H,currentValue:Z,allValues:$,onSelect:y,isLast:V===A.length-1},H)})}),r.jsx(ex,{isOpen:m,onClose:()=>v(!1),variants:n,currentVariant:x,dimensionAnalysis:b,effectiveDimensions:g,onVariantSelect:c})]})}const ax=[{value:"overlay",label:"Overlay",shortLabel:"Over",icon:Bp,description:"Show diff overlay on image"},{value:"toggle",label:"Toggle",shortLabel:"Toggle",icon:Qv,description:"Toggle between baseline and current"},{value:"onion-skin",label:"Slide",shortLabel:"Slide",icon:Kp,description:"Slide to compare baseline and current"}];function lx({value:n="overlay",onChange:s,disabled:c=!1,compact:o=!1,showLabels:d=!0,className:m=""}){return r.jsx("div",{className:`
|
|
156
164
|
inline-flex items-center
|
|
157
165
|
bg-slate-800/60 rounded-lg p-0.5
|
|
158
166
|
${m}
|
|
159
|
-
`,role:"radiogroup","aria-label":"View mode",children:
|
|
167
|
+
`,role:"radiogroup","aria-label":"View mode",children:ax.map(v=>{const g=n===v.value,b=v.icon;return r.jsx("button",{onClick:()=>s?.(v.value),disabled:c,className:`
|
|
160
168
|
flex items-center justify-center gap-1.5
|
|
161
169
|
${o?"p-2":"px-2 sm:px-3 py-1.5"}
|
|
162
170
|
rounded-md text-xs font-medium
|
|
163
171
|
transition-all duration-150
|
|
164
172
|
disabled:opacity-50 disabled:cursor-not-allowed
|
|
165
|
-
${
|
|
166
|
-
`,role:"radio","aria-checked":x,title:v.description,children:o?r.jsx(b,{className:"w-4 h-4"}):r.jsxs(r.Fragment,{children:[r.jsx(b,{className:"w-4 h-4 hidden sm:block"}),r.jsx("span",{className:d?"":"sr-only",children:o?v.shortLabel:v.label})]})},v.value)})})}const Ef=[{key:"comparisons",label:"Comparisons",icon:Or},{key:"stats",label:"Stats",icon:Iv},{key:"builds",label:"Builds",icon:cp},{key:"projects",label:"Projects",icon:Nn},{key:"settings",label:"Settings",icon:fp}];function P1({currentView:n,onNavigate:s,loading:c}){const[o,d]=h.useState(!1),m=v=>{s?.(v),d(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{type:"button",onClick:()=>m("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),s&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Ef.map(v=>{const x=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${x?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-4 h-4"}),v.label]},v.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(On,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),s&&r.jsx("button",{type:"button",onClick:()=>d(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(ta,{className:"w-6 h-6"}):r.jsx(Gv,{className:"w-6 h-6"})})]})]}),s&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Ef.map(v=>{const x=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${x?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-5 h-5"}),v.label]},v.key)})})})]})})}function zn({children:n,currentView:s,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(P1,{currentView:s,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}function Cf(){return Al({queryKey:ve.authStatus(),queryFn:Ds.getStatus,staleTime:30*1e3})}function eg(){return Gt({mutationFn:Ds.initiateLogin})}function tg(){const n=vt();return Gt({mutationFn:s=>Ds.pollAuthorization(s),onSuccess:s=>{s.status==="complete"&&(n.invalidateQueries({queryKey:ve.auth}),n.invalidateQueries({queryKey:ve.cloud}))}})}function ag(){const n=vt();return Gt({mutationFn:Ds.logout,onSuccess:()=>{n.invalidateQueries({queryKey:ve.auth}),n.invalidateQueries({queryKey:ve.cloud})}})}function lg(n={}){return Al({queryKey:ve.projects(),queryFn:_s.list,staleTime:60*1e3,...n})}function ng(n,s,c={}){return Al({queryKey:ve.builds(n,s),queryFn:()=>_s.getBuilds(n,s,{limit:20}),enabled:!!(n&&s),staleTime:30*1e3,...c})}function sg(){const n=vt();return Gt({mutationFn:({buildId:s,organizationSlug:c,projectSlug:o})=>tl.downloadBaselines(s,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:ve.tdd})}})}function ig(n={}){return Al({queryKey:[...ve.projects(),"mappings"],queryFn:_s.listMappings,staleTime:60*1e3,...n})}function rg(){const n=vt();return Gt({mutationFn:s=>_s.deleteMapping(s),onSuccess:()=>{n.invalidateQueries({queryKey:ve.projects()})}})}const Af=h.createContext(null);function ug({children:n}){const[s,c]=h.useState([]),o=h.useCallback((v,x="success",b={})=>{const g=Date.now();c(N=>[...N,{id:g,message:v,type:x,...b}]);const y=b.duration!==void 0?b.duration:b.actions?null:5e3;return y&&setTimeout(()=>{c(N=>N.filter(E=>E.id!==g))},y),g},[]),d=h.useCallback(v=>{c(x=>x.filter(b=>b.id!==v))},[]),m=h.useCallback((v,x)=>new Promise(b=>{const g=Date.now();c(y=>[...y,{id:g,message:v,title:x,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(N=>N.filter(E=>E.id!==g)),b(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(N=>N.filter(E=>E.id!==g)),b(!0)}}]}])}),[]);return r.jsxs(Af.Provider,{value:{addToast:o,removeToast:d,confirm:m},children:[n,r.jsx(cg,{toasts:s,onRemove:d})]})}function nl(){const n=h.useContext(Af);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function cg({toasts:n,onRemove:s}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(og,{toast:c,onRemove:s},c.id))})}function og({toast:n,onRemove:s}){const c=n.type==="success"?el:n.type==="confirm"?ea:En,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",d=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400",m=n.type==="confirm";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,"data-testid":m?"confirm-dialog":void 0,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${d} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map(v=>r.jsx("button",{type:"button",onClick:v.onClick,"data-testid":m?`confirm-${v.label.toLowerCase()}`:void 0,className:v.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:v.label},v.label))})]}),!n.actions&&r.jsx("button",{type:"button",onClick:()=>s(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(ta,{className:"w-5 h-5"})})]})})}function fg({status:n}){const s={passed:{variant:"success",icon:el},completed:{variant:"success",icon:el},failed:{variant:"danger",icon:En},pending:{variant:"warning",icon:Ms},processing:{variant:"info",icon:Pa}},c=s[n]||s.pending;return r.jsx(dt,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function dg(n){const s=Math.floor((Date.now()-n)/1e3);return s<60?"just now":s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:s<604800?`${Math.floor(s/86400)}d ago`:n.toLocaleDateString()}function hg({build:n,project:s,onDownload:c,downloading:o}){const d=new Date(n.createdAt||n.created_at),m=dg(d);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(fg,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:m}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>c(n,s),loading:o,icon:Tv,title:"Download baselines from this build"})]})}function mg({project:n,onExpand:s,expanded:c,onDownload:o,downloadingBuildId:d}){const{data:m,isLoading:v}=ng(c?n.organizationSlug:null,c?n.slug:null),x=m?.builds||[];return r.jsxs(He,{hover:!1,children:[r.jsxs("button",{type:"button",onClick:()=>s(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(Nn,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[v&&r.jsx(On,{size:"sm",className:"text-amber-400"}),c?r.jsx(wn,{className:"w-5 h-5 text-slate-400"}):r.jsx(Ol,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(Ye,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:v?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(On,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):x&&x.length>0?r.jsx("div",{className:"space-y-3",children:x.map((b,g)=>r.jsx(hg,{build:b,project:n,onDownload:o,downloading:d===b.id},b.id||g))}):r.jsx(Tl,{icon:Ms,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function vg({org:n,expandedProjects:s,onExpand:c,onDownload:o,downloadingBuildId:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx($v,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(dt,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(m=>{const v=`${m.organizationSlug}/${m.slug}`;return r.jsx(mg,{project:m,expanded:s[v],onExpand:c,onDownload:o,downloadingBuildId:d},v)})})]})}function pg({onLogin:n}){return r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(Mr,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(Xe,{variant:"primary",onClick:n,icon:Uo,children:"Sign In"})]})})}function gg(){const[n,s]=h.useState({}),[c,o]=h.useState(null),{addToast:d}=nl(),{data:m,isLoading:v}=Cf(),{data:x,isLoading:b,refetch:g}=lg(),y=sg(),N=m?.authenticated,E=h.useMemo(()=>{const Q=x?.projects||[],B={};for(const F of Q){const X=F.organizationSlug||"unknown";B[X]||(B[X]={slug:X,name:F.organizationName||X,projects:[]}),B[X].projects.push(F)}return Object.values(B)},[x?.projects]),_=h.useCallback((Q,B)=>{const F=`${Q}/${B}`;s(X=>({...X,[F]:!X[F]}))},[]),M=h.useCallback((Q,B)=>{o(Q.id),y.mutate({buildId:Q.id,organizationSlug:B?.organizationSlug,projectSlug:B?.slug},{onSuccess:()=>{d(`Baselines downloaded from "${Q.name||Q.id}"`,"success"),o(null)},onError:F=>{d(`Failed to download baselines: ${F.message}`,"error"),o(null)}})},[y,d]),L=h.useCallback(()=>{window.location.href="/projects"},[]);return b||v?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-40 mb-2"}),r.jsx(Be,{variant:"text",className:"w-72"})]}),r.jsx(Be,{variant:"button"})]}),r.jsx(Dl,{}),r.jsx(Dl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(Xe,{variant:"secondary",onClick:()=>g(),icon:Pa,children:"Refresh"})]}),N?E.length===0?r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Tl,{icon:Nn,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(Xe,{variant:"secondary",icon:Ol,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:E.map(Q=>r.jsx(vg,{org:Q,expandedProjects:n,onExpand:_,onDownload:M,downloadingBuildId:c},Q.slug))}):r.jsx(pg,{onLogin:L})]})}const aa={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},qe={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},Tn={PRIORITY:"priority",NAME:"name",TIME:"time"},sl={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function xg({comparison:n,viewMode:s="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:d,onDiffToggle:m,disableLoadingOverlay:v=!1,zoom:x="fit",className:b=""}){const[g,y]=h.useState(new Set),[N,E]=h.useState(new Map),[_,M]=h.useState(1),[L,Q]=h.useState({width:0,height:0}),B=h.useRef(null),F=h.useRef(null);h.useEffect(()=>{const ee=()=>{const Te=B.current,we=Te?.querySelector("img");if(!Te||!we||!we.naturalWidth)return;Q({width:we.naturalWidth,height:we.naturalHeight});const re=Te.getBoundingClientRect(),Se=40,_e=re.width-Se,R=re.height-Se,q=_e/we.naturalWidth,Z=R/we.naturalHeight,ue=Math.min(q,Z,1);M(ue)};ee();const ge=new window.ResizeObserver(ee);B.current&&ge.observe(B.current);const De=B.current?.querySelectorAll("img")||[];for(let Te of De)Te.addEventListener("load",ee);return()=>{ge.disconnect();for(let Te of De)Te.removeEventListener("load",ee)}},[]);const X=h.useMemo(()=>{const ee=x==="fit",ge=ee?_:typeof x=="number"?x:1,De=!ee&&ge>_;return{isFit:ee,scale:ge,allowsOverflow:De,containerClass:De?"overflow-auto":"overflow-hidden"}},[x,_]),I=h.useCallback(ee=>{y(ge=>new Set([...ge,ee]))},[]),pe=h.useCallback(ee=>{E(ge=>new Map(ge).set(ee,"loaded"))},[]),he=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},V=h.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:B,className:`bg-gray-800 relative h-full ${X.containerClass}`,style:{backgroundImage:`
|
|
173
|
+
${g?"bg-amber-500 text-slate-900 shadow-sm":"text-slate-400 hover:text-white hover:bg-slate-700/50"}
|
|
174
|
+
`,role:"radio","aria-checked":g,title:v.description,children:o?r.jsx(b,{className:"w-4 h-4"}):r.jsxs(r.Fragment,{children:[r.jsx(b,{className:"w-4 h-4 hidden sm:block"}),r.jsx("span",{className:d?"":"sr-only",children:o?v.shortLabel:v.label})]})},v.value)})})}const Cf=[{key:"comparisons",label:"Comparisons",icon:Or},{key:"stats",label:"Stats",icon:Pv},{key:"builds",label:"Builds",icon:op},{key:"projects",label:"Projects",icon:En},{key:"settings",label:"Settings",icon:dp}];function nx({currentView:n,onNavigate:s,loading:c}){const[o,d]=h.useState(!1),m=v=>{s?.(v),d(!1)};return r.jsx("header",{className:"sticky top-0 z-40 bg-slate-900/95 backdrop-blur-sm border-b border-slate-700/50",children:r.jsxs("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[r.jsxs("div",{className:"flex items-center justify-between h-16",children:[r.jsxs("button",{type:"button",onClick:()=>m("comparisons"),className:"flex items-center gap-2 group touch-manipulation",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-amber-500 flex items-center justify-center",children:r.jsxs("svg",{className:"w-5 h-5 text-slate-900",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5","aria-hidden":"true",children:[r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.036 12.322a1.012 1.012 0 010-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178z"}),r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"})]})}),r.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-amber-400 transition-colors",children:"Vizzly"}),r.jsx("span",{className:"text-xs font-medium text-slate-500 bg-slate-800 px-2 py-0.5 rounded",children:"TDD"})]}),s&&r.jsx("div",{className:"hidden md:flex items-center gap-1",children:Cf.map(v=>{const g=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-2 px-3 py-2 rounded-lg text-sm font-medium transition-all ${g?"bg-amber-500/10 text-amber-400":"text-slate-400 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-4 h-4"}),v.label]},v.key)})}),r.jsxs("div",{className:"flex items-center gap-3",children:[c&&r.jsxs("div",{className:"flex items-center gap-2 text-amber-400",children:[r.jsx(On,{size:"sm"}),r.jsx("span",{className:"hidden sm:inline text-sm",children:"Syncing..."})]}),s&&r.jsx("button",{type:"button",onClick:()=>d(!o),className:"md:hidden p-2 text-slate-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors touch-manipulation","aria-label":"Toggle menu",children:o?r.jsx(Xt,{className:"w-6 h-6"}):r.jsx(Zv,{className:"w-6 h-6"})})]})]}),s&&o&&r.jsx("div",{className:"md:hidden border-t border-slate-700/50 py-3 animate-slide-down",children:r.jsx("div",{className:"flex flex-col gap-1",children:Cf.map(v=>{const g=n===v.key;return r.jsxs("button",{type:"button",onClick:()=>m(v.key),className:`flex items-center gap-3 w-full px-4 py-3 rounded-lg text-base font-medium transition-colors touch-manipulation ${g?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:text-white hover:bg-white/5"}`,children:[r.jsx(v.icon,{className:"w-5 h-5"}),v.label]},v.key)})})})]})})}function Tn({children:n,currentView:s,onNavigate:c,loading:o}){return r.jsxs("div",{className:"min-h-screen bg-slate-900 flex flex-col",children:[r.jsx(nx,{currentView:s,onNavigate:c,loading:o}),r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 md:py-8",children:n})})]})}function Af(){return Ml({queryKey:xe.authStatus(),queryFn:_s.getStatus,staleTime:30*1e3})}function sx(){return Zt({mutationFn:_s.initiateLogin})}function ix(){const n=vt();return Zt({mutationFn:s=>_s.pollAuthorization(s),onSuccess:s=>{s.status==="complete"&&(n.invalidateQueries({queryKey:xe.auth}),n.invalidateQueries({queryKey:xe.cloud}))}})}function rx(){const n=vt();return Zt({mutationFn:_s.logout,onSuccess:()=>{n.invalidateQueries({queryKey:xe.auth}),n.invalidateQueries({queryKey:xe.cloud})}})}function ux(n={}){return Ml({queryKey:xe.projects(),queryFn:Ls.list,staleTime:60*1e3,...n})}function cx(n,s,c={}){return Ml({queryKey:xe.builds(n,s),queryFn:()=>Ls.getBuilds(n,s,{limit:20}),enabled:!!(n&&s),staleTime:30*1e3,...c})}function ox(){const n=vt();return Zt({mutationFn:({buildId:s,organizationSlug:c,projectSlug:o})=>nl.downloadBaselines(s,c,o),onSuccess:()=>{n.invalidateQueries({queryKey:xe.tdd})}})}function fx(n={}){return Ml({queryKey:[...xe.projects(),"mappings"],queryFn:Ls.listMappings,staleTime:60*1e3,...n})}function dx(){const n=vt();return Zt({mutationFn:s=>Ls.deleteMapping(s),onSuccess:()=>{n.invalidateQueries({queryKey:xe.projects()})}})}const Mf=h.createContext(null);function hx({children:n}){const[s,c]=h.useState([]),o=h.useCallback((v,g="success",b={})=>{const x=Date.now();c(N=>[...N,{id:x,message:v,type:g,...b}]);const y=b.duration!==void 0?b.duration:b.actions?null:5e3;return y&&setTimeout(()=>{c(N=>N.filter(E=>E.id!==x))},y),x},[]),d=h.useCallback(v=>{c(g=>g.filter(b=>b.id!==v))},[]),m=h.useCallback((v,g)=>new Promise(b=>{const x=Date.now();c(y=>[...y,{id:x,message:v,title:g,type:"confirm",actions:[{label:"Cancel",variant:"secondary",onClick:()=>{c(N=>N.filter(E=>E.id!==x)),b(!1)}},{label:"OK",variant:"primary",onClick:()=>{c(N=>N.filter(E=>E.id!==x)),b(!0)}}]}])}),[]);return r.jsxs(Mf.Provider,{value:{addToast:o,removeToast:d,confirm:m},children:[n,r.jsx(mx,{toasts:s,onRemove:d})]})}function rl(){const n=h.useContext(Mf);if(!n)throw new Error("useToast must be used within ToastProvider");return n}function mx({toasts:n,onRemove:s}){return n.length===0?null:r.jsx("div",{className:"fixed bottom-4 right-4 z-50 space-y-2 max-w-sm w-full pointer-events-none",children:n.map(c=>r.jsx(vx,{toast:c,onRemove:s},c.id))})}function vx({toast:n,onRemove:s}){const c=n.type==="success"?aa:n.type==="confirm"?la:Cn,o=n.type==="success"?"bg-green-500/10 border-green-500/30":n.type==="confirm"?"bg-slate-800/90 border-slate-600":"bg-red-500/10 border-red-500/30",d=n.type==="success"?"text-green-400":n.type==="confirm"?"text-amber-400":"text-red-400",m=n.type==="confirm";return r.jsx("div",{className:`${o} border rounded-lg p-4 shadow-lg backdrop-blur-sm pointer-events-auto animate-slide-up`,"data-testid":m?"confirm-dialog":void 0,children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx(c,{className:`w-5 h-5 ${d} flex-shrink-0 mt-0.5`}),r.jsxs("div",{className:"flex-1",children:[n.title&&r.jsx("p",{className:"text-white font-medium text-sm mb-1",children:n.title}),r.jsx("p",{className:"text-gray-300 text-sm",children:n.message}),n.actions&&n.actions.length>0&&r.jsx("div",{className:"flex gap-2 mt-3",children:n.actions.map(v=>r.jsx("button",{type:"button",onClick:v.onClick,"data-testid":m?`confirm-${v.label.toLowerCase()}`:void 0,className:v.variant==="primary"?"px-4 py-1.5 bg-cyan-500 hover:bg-cyan-600 text-white text-sm font-medium rounded transition-colors":"px-4 py-1.5 bg-slate-700 hover:bg-slate-600 text-white text-sm font-medium rounded transition-colors",children:v.label},v.label))})]}),!n.actions&&r.jsx("button",{type:"button",onClick:()=>s(n.id),className:"text-gray-400 hover:text-white transition-colors flex-shrink-0",children:r.jsx(Xt,{className:"w-5 h-5"})})]})})}function px({status:n}){const s={passed:{variant:"success",icon:aa},completed:{variant:"success",icon:aa},failed:{variant:"danger",icon:Cn},pending:{variant:"warning",icon:zs},processing:{variant:"info",icon:ll}},c=s[n]||s.pending;return r.jsx(dt,{variant:c.variant,dot:!0,pulseDot:n==="processing",children:n})}function xx(n){const s=Math.floor((Date.now()-n)/1e3);return s<60?"just now":s<3600?`${Math.floor(s/60)}m ago`:s<86400?`${Math.floor(s/3600)}h ago`:s<604800?`${Math.floor(s/86400)}d ago`:n.toLocaleDateString()}function gx({build:n,project:s,onDownload:c,downloading:o}){const d=new Date(n.createdAt||n.created_at),m=xx(d);return r.jsxs("div",{className:"flex items-center justify-between p-4 vz-card",children:[r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h4",{className:"text-sm font-medium text-white truncate",children:n.name||"Unnamed build"}),r.jsx(px,{status:n.status})]}),r.jsxs("div",{className:"flex items-center gap-4 mt-2 text-xs text-slate-400",children:[r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-slate-500"}),n.branch||"main"]}),r.jsx("span",{children:m}),n.screenshot_count>0&&r.jsxs("span",{children:[n.screenshot_count," screenshots"]})]})]}),r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(n,s),loading:o,icon:Rv,title:"Download baselines from this build"})]})}function bx({project:n,onExpand:s,expanded:c,onDownload:o,downloadingBuildId:d}){const{data:m,isLoading:v}=cx(c?n.organizationSlug:null,c?n.slug:null),g=m?.builds||[];return r.jsxs(He,{hover:!1,children:[r.jsxs("button",{type:"button",onClick:()=>s(n.organizationSlug,n.slug),className:"w-full flex items-center justify-between p-5 text-left hover:bg-white/[0.02] transition-colors",children:[r.jsxs("div",{className:"flex items-center gap-4",children:[r.jsx("div",{className:"w-10 h-10 rounded-lg bg-amber-500/10 flex items-center justify-center",children:r.jsx(En,{className:"w-5 h-5 text-amber-400"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-base font-semibold text-white",children:n.name||n.slug}),r.jsxs("p",{className:"text-sm text-slate-400 mt-0.5",children:[n.organizationSlug," / ",n.slug]})]})]}),r.jsxs("div",{className:"flex items-center gap-3",children:[v&&r.jsx(On,{size:"sm",className:"text-amber-400"}),c?r.jsx(Sn,{className:"w-5 h-5 text-slate-400"}):r.jsx(Ol,{className:"w-5 h-5 text-slate-400"})]})]}),c&&r.jsx(Ye,{padding:"p-4",className:"bg-slate-900/30 border-t border-slate-700/50",children:v?r.jsxs("div",{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(On,{size:"md",className:"text-amber-400 mb-3"}),r.jsx("p",{className:"text-sm text-slate-400",children:"Loading builds..."})]}):g&&g.length>0?r.jsx("div",{className:"space-y-3",children:g.map((b,x)=>r.jsx(gx,{build:b,project:n,onDownload:o,downloading:d===b.id},b.id||x))}):r.jsx(Rl,{icon:zs,title:"No builds yet",description:r.jsxs(r.Fragment,{children:["Run ",r.jsx("code",{className:"text-amber-400",children:"vizzly run"})," to create your first build"]})})})]})}function yx({org:n,expandedProjects:s,onExpand:c,onDownload:o,downloadingBuildId:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"w-8 h-8 rounded-lg bg-slate-700/50 flex items-center justify-center",children:r.jsx(Jv,{className:"w-4 h-4 text-slate-400"})}),r.jsx("h2",{className:"text-lg font-semibold text-white",children:n.name}),r.jsxs(dt,{variant:"default",children:[n.projects.length," project",n.projects.length!==1?"s":""]})]}),r.jsx("div",{className:"space-y-3 pl-11",children:n.projects.map(m=>{const v=`${m.organizationSlug}/${m.slug}`;return r.jsx(bx,{project:m,expanded:s[v],onExpand:c,onDownload:o,downloadingBuildId:d},v)})})]})}function jx({onLogin:n}){return r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(zr,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-xl font-semibold text-white mb-2",children:"Sign in required"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-md mx-auto",children:"Sign in to your Vizzly account to browse your projects and download baselines from cloud builds."}),r.jsx(Ke,{variant:"primary",onClick:n,icon:ko,children:"Sign In"})]})})}function wx(){const[n,s]=h.useState({}),[c,o]=h.useState(null),{addToast:d}=rl(),{data:m,isLoading:v}=Af(),{data:g,isLoading:b,refetch:x}=ux(),y=ox(),N=m?.authenticated,E=h.useMemo(()=>{const Q=g?.projects||[],H={};for(const V of Q){const $=V.organizationSlug||"unknown";H[$]||(H[$]={slug:$,name:V.organizationName||$,projects:[]}),H[$].projects.push(V)}return Object.values(H)},[g?.projects]),_=h.useCallback((Q,H)=>{const V=`${Q}/${H}`;s($=>({...$,[V]:!$[V]}))},[]),A=h.useCallback((Q,H)=>{o(Q.id),y.mutate({buildId:Q.id,organizationSlug:H?.organizationSlug,projectSlug:H?.slug},{onSuccess:()=>{d(`Baselines downloaded from "${Q.name||Q.id}"`,"success"),o(null)},onError:V=>{d(`Failed to download baselines: ${V.message}`,"error"),o(null)}})},[y,d]),D=h.useCallback(()=>{window.location.href="/projects"},[]);return b||v?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-40 mb-2"}),r.jsx(Be,{variant:"text",className:"w-72"})]}),r.jsx(Be,{variant:"button"})]}),r.jsx(_l,{}),r.jsx(_l,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Remote Builds"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Browse your cloud builds and download baselines for local TDD"})]}),r.jsx(Ke,{variant:"secondary",onClick:()=>x(),icon:ll,children:"Refresh"})]}),N?E.length===0?r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Rl,{icon:En,title:"No projects found",description:"You don't have any Vizzly projects yet. Create a project in the Vizzly dashboard to get started.",action:r.jsx("a",{href:"https://app.vizzly.dev",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2",children:r.jsx(Ke,{variant:"secondary",icon:Ol,iconPosition:"right",children:"Open Vizzly Dashboard"})})})})}):r.jsx("div",{className:"space-y-8",children:E.map(Q=>r.jsx(yx,{org:Q,expandedProjects:n,onExpand:_,onDownload:A,downloadingBuildId:c},Q.slug))}):r.jsx(jx,{onLogin:D})]})}const na={OVERLAY:"overlay",TOGGLE:"toggle",ONION:"onion"},qe={ALL:"all",FAILED:"failed",PASSED:"passed",NEW:"new"},Rn={PRIORITY:"priority",NAME:"name",TIME:"time"},ul={PASSED:"passed",FAILED:"failed",NEW:"new",BASELINE_CREATED:"baseline-created"};function Sx({comparison:n,viewMode:s="overlay",showDiffOverlay:c=!0,onionSkinPosition:o=50,onOnionSkinChange:d,onDiffToggle:m,disableLoadingOverlay:v=!1,zoom:g="fit",className:b="",showRegions:x=!1}){const[y,N]=h.useState(new Set),[E,_]=h.useState(new Map),[A,D]=h.useState(1),[Q,H]=h.useState({width:0,height:0}),V=h.useRef(null),$=h.useRef(null);h.useEffect(()=>{const se=()=>{const ve=V.current,_e=ve?.querySelector("img");if(!ve||!_e||!_e.naturalWidth)return;H({width:_e.naturalWidth,height:_e.naturalHeight});const ot=ve.getBoundingClientRect(),ue=40,T=ot.width-ue,q=ot.height-ue,X=T/_e.naturalWidth,ce=q/_e.naturalHeight,ge=Math.min(X,ce,1);D(ge)};se();const ze=new window.ResizeObserver(se);V.current&&ze.observe(V.current);const Re=V.current?.querySelectorAll("img")||[];for(let ve of Re)ve.addEventListener("load",se);return()=>{ze.disconnect();for(let ve of Re)ve.removeEventListener("load",se)}},[]);const Z=h.useMemo(()=>{const se=g==="fit",ze=se?A:typeof g=="number"?g:1,Re=!se&&ze>A;return{isFit:se,scale:ze,allowsOverflow:Re,containerClass:Re?"overflow-auto":"overflow-hidden"}},[g,A]),ne=h.useCallback(se=>{N(ze=>new Set([...ze,se]))},[]),oe=h.useCallback(se=>{_(ze=>new Map(ze).set(se,"loaded"))},[]),Y=n?{current:n.current,baseline:n.baseline,diff:n.diff}:{},P=h.useMemo(()=>n?{id:n.id||n.signature||"unknown",name:n.name||n.originalName||"Screenshot"}:null,[n]);return!n||n.status==="new"||n.status==="baseline-created"?r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:V,className:`bg-gray-800 relative h-full ${Z.containerClass}`,style:{backgroundImage:`
|
|
167
175
|
linear-gradient(45deg, #1f2937 25%, transparent 25%),
|
|
168
176
|
linear-gradient(-45deg, #1f2937 25%, transparent 25%),
|
|
169
177
|
linear-gradient(45deg, transparent 75%, #1f2937 75%),
|
|
170
178
|
linear-gradient(-45deg, transparent 75%, #1f2937 75%)
|
|
171
|
-
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${
|
|
179
|
+
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${Z.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...Z.allowsOverflow?{minWidth:Q.width*Z.scale+40,minHeight:Q.height*Z.scale+40,padding:"20px"}:{zoom:Z.scale,padding:"20px"}},children:r.jsx("div",{ref:$,className:"relative inline-block",style:Z.allowsOverflow?{transform:`scale(${Z.scale})`,transformOrigin:"top center"}:{},children:n&&r.jsx("img",{src:n.current,alt:n.name||"New screenshot",className:"block",onLoad:()=>oe(`current-${P?.id}`),onError:()=>ne(`current-${P?.id}`)})})}),!v&&n&&!E.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),n&&y.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})}):r.jsx("div",{className:`h-full ${b}`,children:r.jsxs("div",{ref:V,className:`bg-gray-800 relative unified-screenshot-container h-full ${Z.containerClass}`,style:{backgroundImage:`
|
|
172
180
|
linear-gradient(45deg, #1f2937 25%, transparent 25%),
|
|
173
181
|
linear-gradient(-45deg, #1f2937 25%, transparent 25%),
|
|
174
182
|
linear-gradient(45deg, transparent 75%, #1f2937 75%),
|
|
175
183
|
linear-gradient(-45deg, transparent 75%, #1f2937 75%)
|
|
176
|
-
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${X.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...X.allowsOverflow?{minWidth:L.width*X.scale+40,minHeight:L.height*X.scale+40,padding:"20px"}:{zoom:X.scale,padding:"20px"}},children:r.jsx("div",{ref:F,className:"relative inline-block",style:X.allowsOverflow?{transform:`scale(${X.scale})`,transformOrigin:"top center"}:{},children:s==="toggle"&&he.baseline?r.jsx(z1,{baselineImageUrl:he.baseline,currentImageUrl:he.current,screenshot:V,onImageError:I,onImageLoad:pe,imageErrors:g}):s==="onion-skin"&&he.baseline?r.jsx(O1,{baselineImageUrl:he.baseline,currentImageUrl:he.current,sliderPosition:o,onSliderChange:d,screenshot:V,onImageError:I,onImageLoad:pe,imageErrors:g}):r.jsx(M1,{baselineImageUrl:he.baseline,currentImageUrl:he.current,diffImageUrl:he.diff,showDiffOverlay:c,screenshot:V,onImageError:I,onImageLoad:pe,imageErrors:g,onDiffToggle:m})})}),!v&&!N.has(`current-${V?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),g.has(`current-${V?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(ea,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function Jt(n){return n?.id||n?.signature||n?.name}function Of(n){switch(n){case"failed":return"changed";case"new":case"baseline-created":return"new";case"passed":return"unchanged";default:return n}}function bg(n){return r.jsx(Y1,{children:r.jsx(yg,{...n})})}function yg({comparison:n,comparisons:s=[],onClose:c,onAccept:o,onReject:d,onDelete:m,onNavigate:v}){let[x,b]=h.useState(aa.OVERLAY),[g,y]=h.useState(!0),[N,E]=h.useState(50),[_,M]=h.useState(!0),[L,Q]=h.useState(!1),[B,F]=h.useState("needs-review"),[X,I]=h.useState(!0),{zoom:pe,setZoom:he}=T1("fit"),{isActive:V}=wf(),ee=h.useRef(null),ge=h.useCallback(()=>{Q(G=>!G)},[]),De=h.useMemo(()=>s.map(G=>({...G,name:G.name||G.originalName||"Unknown",result:Of(G.status),status:G.status,approval_status:G.userAction==="accepted"?"approved":G.userAction==="rejected"?"rejected":G.status==="passed"?"approved":"pending",diff_percentage:G.diffPercentage??G.diff_percentage,diffClusters:G.diffClusters||[],viewport_width:G.properties?.viewport_width??G.viewport_width,viewport_height:G.properties?.viewport_height??G.viewport_height,browser:G.properties?.browser??G.browser})),[s]),Te=h.useMemo(()=>{if(!n)return null;let G=n.name||n.originalName,Ae=De.filter(Ke=>(Ke.name||Ke.originalName)===G);return{name:G,comparisons:Ae}},[n,De]),we=h.useCallback(G=>{G&&v&&v(G)},[v]),re=h.useMemo(()=>{let G={all:()=>!0,"needs-review":Ke=>(Ke.result==="changed"||Ke.result==="new")&&Ke.approval_status!=="approved"&&Ke.approval_status!=="rejected",changes:Ke=>Ke.result==="changed",new:Ke=>Ke.result==="new"},Ae=G[B]||G.all;return De.filter(Ae)},[De,B]),Se=h.useMemo(()=>{if(!n)return-1;let G=Jt(n);return re.findIndex(Ae=>Jt(Ae)===G)},[re,n]),_e=h.useMemo(()=>({prev:Se>0,next:Se<re.length-1&&Se!==-1}),[Se,re.length]),R=h.useCallback(()=>{if(_e.prev){let G=re[Se-1];v(G)}},[_e.prev,re,Se,v]),q=h.useCallback(()=>{if(_e.next){let G=re[Se+1];v(G)}},[_e.next,re,Se,v]),Z=h.useCallback(()=>Se<re.length-1?re[Se+1]:Se>0?re[Se-1]:null,[Se,re]),ue=h.useCallback(()=>{if(!o||!n)return;let G=B==="needs-review"?Z():null;o(Jt(n)),G?v(G):B==="needs-review"&&re.length<=1&&c()},[o,n,B,Z,re.length,v,c]),xe=h.useCallback(()=>{if(!d||!n)return;let G=B==="needs-review"?Z():null;d(Jt(n)),G?v(G):B==="needs-review"&&re.length<=1&&c()},[d,n,B,Z,re.length,v,c]),S=h.useCallback(()=>{!m||!n||m(Jt(n))},[m,n]),H=h.useCallback(()=>{b(G=>G===aa.OVERLAY?aa.TOGGLE:aa.OVERLAY)},[]),Y=h.useCallback(()=>{x===aa.TOGGLE?I(G=>!G):y(G=>!G)},[x]),$=h.useMemo(()=>({a:o?ue:void 0,r:d?xe:void 0,d:Y,t:H,1:()=>b(aa.OVERLAY),2:()=>b(aa.TOGGLE),3:()=>b(aa.ONION)}),[ue,xe,o,d,H,Y]);if(G1($),h.useEffect(()=>{let G=Ae=>{if(!(Ae.target.tagName==="INPUT"||Ae.target.tagName==="TEXTAREA"))switch(Ae.key){case"ArrowUp":case"ArrowLeft":Ae.preventDefault(),_e.prev&&R();break;case"ArrowDown":case"ArrowRight":Ae.preventDefault(),_e.next&&q();break;case"Escape":Ae.preventDefault(),c();break;case"i":!Ae.metaKey&&!Ae.ctrlKey&&(Ae.preventDefault(),ge());break}};return window.addEventListener("keydown",G),()=>window.removeEventListener("keydown",G)},[_e,R,q,c,ge]),h.useEffect(()=>{let G=ee.current;if(!G)return;let Ae=G.closest(".overflow-y-auto");if(!Ae)return;let Ke=G.getBoundingClientRect(),il=Ae.getBoundingClientRect();Ke.top<il.top?Ae.scrollBy({top:Ke.top-il.top-8,behavior:"smooth"}):Ke.bottom>il.bottom&&Ae.scrollBy({top:Ke.bottom-il.bottom+8,behavior:"smooth"})},[]),!n)return r.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-slate-400",children:[r.jsx("div",{className:"text-lg mb-2",children:"Comparison not found"}),r.jsx("button",{type:"button",onClick:c,className:"text-blue-400 hover:text-blue-300",children:"Return to list"})]})});let te=Of(n.status),le=n.userAction==="accepted"?"approved":n.userAction==="rejected"?"rejected":n.status==="passed"?"approved":"pending",ie={new:{variant:"info",label:"New"},changed:{variant:"warning",label:"Changed"},unchanged:{variant:"default",label:"Unchanged"}}[te],at=n.status==="new"||n.status==="baseline-created",Ne=n.properties||{};return r.jsxs("div",{className:"h-screen bg-slate-950 flex flex-col overflow-hidden","data-testid":"fullscreen-viewer",children:[r.jsxs("header",{className:"flex-shrink-0 bg-slate-900 border-b border-slate-800/60 z-30",children:[r.jsxs("div",{className:"px-2 sm:px-4 py-2 flex items-center gap-1 sm:gap-3",children:[r.jsx(k1,{onClick:c}),r.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[r.jsx("h1",{className:"text-sm font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),ie&&r.jsx(dt,{variant:ie.variant,size:"sm",className:"hidden xs:flex",children:ie.label}),V&&r.jsx(dt,{variant:"warning",size:"sm",dot:!0,pulseDot:!0,className:"hidden sm:flex",children:"Review Mode"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("button",{type:"button",onClick:R,disabled:!_e.prev,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Previous",children:r.jsx(lp,{className:"w-5 h-5"})}),r.jsxs("span",{className:"hidden sm:block text-xs text-slate-500 font-medium tabular-nums px-1 min-w-[3rem] text-center",children:[Se+1,"/",re.length]}),r.jsx("button",{type:"button",onClick:q,disabled:!_e.next,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Next",children:r.jsx(Ol,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"hidden sm:block h-5 w-px bg-slate-700/60"}),r.jsxs("div",{className:"hidden sm:flex items-center gap-2",children:[at&&m?r.jsx("button",{type:"button",onClick:S,className:"px-3 py-1.5 text-xs font-medium text-red-400 hover:text-red-300 hover:bg-red-600/20 rounded-md transition-colors","data-testid":"btn-delete",children:"Delete"}):null,r.jsx(b1,{status:le,onApprove:o?ue:null,onReject:d?xe:null,compact:!0})]}),r.jsxs("div",{className:"hidden sm:flex items-center",children:[r.jsx("button",{type:"button",onClick:()=>M(!_),className:`flex items-center justify-center p-2 rounded-md transition-colors ${_?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Queue","aria-label":"Toggle queue","data-testid":"toggle-queue-btn",children:r.jsx(qo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:ge,className:`p-2 rounded-md transition-colors ${L?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Details (I)","aria-label":"Screenshot details","data-testid":"toggle-inspector-btn",children:r.jsx(Ar,{className:"w-5 h-5 pointer-events-none"})})]})]}),r.jsxs("div",{className:"px-2 sm:px-4 py-1.5 sm:py-2 border-t border-slate-800/40 flex items-center gap-2 sm:gap-3",children:[Te&&Te.comparisons.length>0&&r.jsx(F1,{variants:Te.comparisons,currentVariantId:Jt(n),onVariantSelect:we}),r.jsx("div",{className:"flex-1"}),n.diff&&r.jsx(I1,{value:x,onChange:b,compact:!0,className:"hidden sm:flex"}),r.jsx(R1,{zoom:pe,onZoomChange:he})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[r.jsxs(Lr,{isOpen:_,onClose:()=>M(!1),position:"bottom",desktopPosition:"left",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,testId:"queue-drawer",children:[r.jsx(Ur,{title:"Queue",subtitle:`${re.length} of ${De.length} items`,onClose:()=>M(!1)}),r.jsx(L1,{children:[{id:"needs-review",label:"To Review"},{id:"changes",label:"Changes"},{id:"new",label:"New"},{id:"all",label:"All"}].map(G=>r.jsx(U1,{isActive:B===G.id,onClick:()=>F(G.id),children:G.label},G.id))}),r.jsxs(kr,{className:"px-2 py-2 space-y-1",children:[re.map(G=>{let Ae=Jt(G)===Jt(n);return r.jsx("div",{ref:Ae?ee:null,children:r.jsx(V1,{item:G,isActive:Ae,thumbnailUrl:G.current||G.baseline,onClick:()=>v(G)})},Jt(G))}),re.length===0&&r.jsx("div",{className:"text-center py-8 text-slate-600 text-xs",children:B==="needs-review"?"All screenshots reviewed!":"No items match this filter"})]}),r.jsxs(_1,{className:"hidden sm:flex flex-col items-center gap-1.5",children:[r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-slate-400",children:"↑↓"})," navigate"," · ",r.jsx("span",{className:"text-slate-400",children:"Space"})," ",V?"exit":"review mode"]}),V&&r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-emerald-500 font-medium",children:"A"})," approve"," · ",r.jsx("span",{className:"text-red-500 font-medium",children:"R"})," reject"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"D"})," diff"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"T"})," view"]})]})]}),r.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:r.jsx(xg,{comparison:n,viewMode:x===aa.ONION?"onion-skin":x,showDiffOverlay:g,onDiffToggle:()=>y(G=>!G),onionSkinPosition:N,onOnionSkinChange:E,zoom:pe,disableLoadingOverlay:!0,className:"w-full h-full"},Jt(n))}),r.jsxs(ht,{isOpen:L,onClose:()=>Q(!1),title:"Screenshot Details",subtitle:n.name||n.originalName,className:"order-last",children:[r.jsx(ht.Section,{title:"Status",icon:Bo,children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[ie&&r.jsx(dt,{variant:ie.variant,size:"sm",children:ie.label}),r.jsx(dt,{variant:le==="approved"?"success":le==="rejected"?"danger":"default",size:"sm",children:le})]})}),r.jsxs(ht.Section,{title:"Screenshot",icon:Sn,children:[Ne.browser&&r.jsx(ht.Row,{label:"Browser",value:Ne.browser,icon:()=>r.jsx(Cn,{browser:Ne.browser,className:"w-3.5 h-3.5"})}),r.jsx(ht.Row,{label:"Viewport",value:Ne.viewport_width&&Ne.viewport_height?`${Ne.viewport_width} × ${Ne.viewport_height}`:null,mono:!0}),r.jsx(ht.Row,{label:"Device",value:Ne.device})]}),te==="changed"&&n.diffPercentage!=null&&r.jsxs(ht.Section,{title:"Diff Analysis",icon:gp,children:[r.jsx(ht.Row,{label:"Changed",value:`${Number(n.diffPercentage).toFixed(3)}%`,mono:!0}),n.diffPixels!=null&&r.jsx(ht.Row,{label:"Pixels",value:n.diffPixels.toLocaleString(),mono:!0}),n.threshold!=null&&r.jsx(ht.Row,{label:"Threshold",value:Number(n.threshold).toFixed(2),mono:!0})]}),r.jsx(ht.Section,{title:"Identifier",icon:Bo,children:r.jsx(ht.Row,{label:"Signature",value:n.signature||n.id,mono:!0,copyable:!0})})]})]}),r.jsxs("div",{className:"sm:hidden flex-shrink-0 bg-slate-900/98 backdrop-blur-sm border-t border-slate-700/50 safe-area-pb",children:[r.jsx(y1,{status:le,onApprove:o?ue:null,onReject:d?xe:null}),r.jsxs("div",{className:"px-3 py-2 flex items-center gap-1 border-t border-slate-800/40",children:[r.jsx("button",{type:"button",onClick:()=>M(!_),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${_?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Queue","data-testid":"mobile-toggle-queue-btn",children:r.jsx(qo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:ge,className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${L?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Screenshot details","data-testid":"mobile-toggle-inspector-btn",children:r.jsx(Ar,{className:"w-5 h-5 pointer-events-none"})}),at&&m&&r.jsx("button",{type:"button",onClick:S,className:"flex items-center justify-center p-2.5 rounded-lg text-red-400 hover:text-red-300 hover:bg-red-600/20 active:bg-red-600/30 transition-colors","aria-label":"Delete","data-testid":"mobile-delete-btn",children:r.jsx("span",{className:"text-xs font-medium",children:"Delete"})}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"text-xs text-slate-500 tabular-nums",children:[Se+1," / ",re.length]}),ie&&r.jsx(dt,{variant:ie.variant,size:"sm",children:ie.label})]})]})]})]})}function jg(){let[,n]=Rs(),[,s]=f1("/comparison/:id"),{data:c}=Ls(),o=cf(),d=ff(),m=p1();const v=h.useMemo(()=>c?.comparisons||[],[c?.comparisons]),x=h.useMemo(()=>{const _=s?.id?decodeURIComponent(s.id):null;return!_||v.length===0?null:v.find(M=>M.id===_||M.signature===_||M.name===_)},[s,v]),b=h.useCallback(_=>{const M=_.id||_.signature||_.name;M&&n(`/comparison/${encodeURIComponent(M)}`)},[n]),g=h.useCallback(()=>{n("/")},[n]),y=h.useCallback(_=>{o.mutate(_)},[o]),N=h.useCallback(_=>{d.mutate(_)},[d]),E=h.useCallback(_=>{m.mutate(_,{onSuccess:()=>{n("/")}})},[m,n]);return x?r.jsx(bg,{comparison:x,comparisons:v,onClose:g,onAccept:y,onReject:N,onDelete:E,onNavigate:b}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",s?.id||"none"]}),r.jsx("button",{type:"button",onClick:g,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function wg(n,s){return[...n].sort((c,o)=>{if(s==="priority"){const d={[sl.FAILED]:3,[sl.NEW]:2,[sl.PASSED]:1},m=c.initialStatus||c.status,v=o.initialStatus||o.status,x=d[m]||0,b=d[v]||0;return x!==b?b-x:(o.diffPercentage||0)-(c.diffPercentage||0)}return s==="name"?(c.name||"").localeCompare(o.name||""):s==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function Sg(n,s){return s==="failed"?n.filter(c=>c.status===sl.FAILED):s==="passed"?n.filter(c=>c.status===sl.PASSED):s==="new"?n.filter(c=>c.status===sl.NEW||c.status===sl.BASELINE_CREATED):n}const Ng=()=>{const n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||qe.ALL,sortBy:n.get("sort")||Tn.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function Eg(n=[]){const s=Ng(),[c,o]=h.useState(s.filter),[d,m]=h.useState(s.sortBy),[v,x]=h.useState(s.searchQuery),[b,g]=h.useState(s.selectedBrowser),[y,N]=h.useState(s.selectedViewport);h.useEffect(()=>{const M=new URLSearchParams;c!==qe.ALL&&M.set("filter",c),d!==Tn.PRIORITY&&M.set("sort",d),v&&M.set("search",v),b!=="all"&&M.set("browser",b),y!=="all"&&M.set("viewport",y);const L=M.toString()?`?${M.toString()}`:window.location.pathname;window.history.replaceState({},"",L)},[c,d,v,b,y]);const E=h.useMemo(()=>{const M=new Set,L=new Set;return n.forEach(Q=>{if(Q.properties?.browser&&M.add(Q.properties.browser),Q.properties?.viewport_width&&Q.properties?.viewport_height){const B=`${Q.properties.viewport_width}x${Q.properties.viewport_height}`;L.add(B)}else if(Q.properties?.viewport){const B=`${Q.properties.viewport.width}x${Q.properties.viewport.height}`;L.add(B)}}),{browsers:Array.from(M).sort(),viewports:Array.from(L).sort()}},[n]);return{filteredComparisons:h.useMemo(()=>{let M=Sg(n,c);if(v.trim()){const L=v.toLowerCase();M=M.filter(Q=>Q.name.toLowerCase().includes(L)||Q.originalName?.toLowerCase().includes(L))}return b!=="all"&&(M=M.filter(L=>L.properties?.browser===b)),y!=="all"&&(M=M.filter(L=>{let Q=null;return L.properties?.viewport_width&&L.properties?.viewport_height?Q=`${L.properties.viewport_width}x${L.properties.viewport_height}`:L.properties?.viewport&&(Q=`${L.properties.viewport.width}x${L.properties.viewport.height}`),Q===y})),wg(M,d)},[n,c,d,v,b,y]),filter:c,setFilter:o,sortBy:d,setSortBy:m,searchQuery:v,setSearchQuery:x,selectedBrowser:b,setSelectedBrowser:g,selectedViewport:y,setSelectedViewport:N,availableFilters:E,counts:{all:n.length,failed:n.filter(M=>M.status==="failed").length,passed:n.filter(M=>M.status==="passed").length,new:n.filter(M=>M.status==="new").length,rejected:n.filter(M=>M.status==="rejected").length}}}function Cg(n){const[s,c]=h.useState("loading");return h.useEffect(()=>{if(!n){c("missing");return}c("loading");const o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),s}function Ag({src:n,alt:s,className:c,style:o,onClick:d}){const m=Cg(n);if(m==="missing")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Or,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",s.toLowerCase()," available"]})]})});if(m==="loading")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Pa,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",s.toLowerCase(),"..."]})]})});if(m==="error")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(ea,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",s.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})});let v=null;return d&&(v=x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),d(x))}),r.jsx("img",{src:n,alt:s,className:c,style:o,onClick:d,onKeyDown:v,role:d?"button":void 0,tabIndex:d?0:void 0})}function Og(n){let s=new Map;for(let c of n){let o=c.name||c.originalName||"Unknown";s.has(o)||s.set(o,{name:o,comparisons:[],browsers:new Set,viewports:[],hasChanges:!1,hasNew:!1,allPassed:!0,maxDiff:0,failedCount:0,newCount:0,passedCount:0,acceptedCount:0,rejectedCount:0});let d=s.get(o);d.comparisons.push(c),c.properties?.browser&&d.browsers.add(c.properties.browser),c.properties?.viewport_width&&c.properties?.viewport_height&&d.viewports.push({width:c.properties.viewport_width,height:c.properties.viewport_height,id:c.id,status:c.status}),c.status==="failed"?(d.hasChanges=!0,d.allPassed=!1,d.failedCount++,d.maxDiff=Math.max(d.maxDiff,c.diffPercentage||0)):c.status==="new"||c.status==="baseline-created"?(d.hasNew=!0,d.allPassed=!1,d.newCount++):c.status==="passed"&&d.passedCount++,c.userAction==="accepted"?d.acceptedCount++:c.userAction==="rejected"&&d.rejectedCount++}return Array.from(s.values()).map(c=>({...c,browsers:Array.from(c.browsers),viewports:c.viewports.sort((o,d)=>d.width*d.height-o.width*o.height),primary:c.comparisons[0]})).sort((c,o)=>c.hasChanges&&!o.hasChanges?-1:!c.hasChanges&&o.hasChanges?1:c.hasNew&&!o.hasNew?-1:!c.hasNew&&o.hasNew?1:c.maxDiff!==o.maxDiff?o.maxDiff-c.maxDiff:c.name.localeCompare(o.name))}function Mf({width:n,className:s="w-3.5 h-3.5"}){return n<=480?r.jsx(zs,{className:s}):n<=1024?r.jsx(Cr,{className:s}):r.jsx(Sn,{className:s})}function Mg({group:n}){return n.acceptedCount===n.comparisons.length?r.jsxs(dt,{variant:"success",size:"sm",children:[r.jsx(el,{className:"w-3 h-3 mr-1"}),"Accepted"]}):n.rejectedCount>0?r.jsxs(dt,{variant:"warning",size:"sm",children:[r.jsx(En,{className:"w-3 h-3 mr-1"}),"Rejected"]}):n.hasChanges?r.jsxs(dt,{variant:"danger",size:"sm",children:[n.failedCount," changed"]}):n.hasNew?r.jsxs(dt,{variant:"info",size:"sm",children:[n.newCount," new"]}):r.jsx(dt,{variant:"success",size:"sm",children:"Passed"})}function zg({group:n,maxVisible:s=4}){let c=n.comparisons.length;if(c<=1){let m=n.viewports[0],v=n.browsers[0];return r.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[m&&r.jsxs("span",{className:"inline-flex items-center gap-1",children:[r.jsx(Mf,{width:m.width,className:"w-3 h-3"}),m.width,"×",m.height]}),v&&r.jsx("span",{children:v})]})}let o=n.viewports.slice(0,s),d=c-s;return r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.map((m,v)=>r.jsxs("span",{className:`
|
|
184
|
+
`,backgroundSize:"16px 16px",backgroundPosition:"0 0, 0 8px, 8px -8px, -8px 0px",backgroundColor:"#111827"},children:[r.jsx("div",{className:`relative ${Z.allowsOverflow?"flex justify-center items-start":"min-w-full min-h-full flex justify-center items-center"}`,style:{...Z.allowsOverflow?{minWidth:Q.width*Z.scale+40,minHeight:Q.height*Z.scale+40,padding:"20px"}:{zoom:Z.scale,padding:"20px"}},children:r.jsxs("div",{ref:$,className:"relative inline-block",style:Z.allowsOverflow?{transform:`scale(${Z.scale})`,transformOrigin:"top center"}:{},children:[s==="toggle"&&Y.baseline?r.jsx(L1,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,screenshot:P,onImageError:ne,onImageLoad:oe,imageErrors:y}):s==="onion-skin"&&Y.baseline?r.jsx(D1,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,sliderPosition:o,onSliderChange:d,screenshot:P,onImageError:ne,onImageLoad:oe,imageErrors:y}):r.jsx(_1,{baselineImageUrl:Y.baseline,currentImageUrl:Y.current,diffImageUrl:Y.diff,showDiffOverlay:c,screenshot:P,onImageError:ne,onImageLoad:oe,imageErrors:y,onDiffToggle:m}),x&&n?.confirmedRegions?.length>0&&r.jsx(O1,{confirmed:n.confirmedRegions,candidates:[],imageWidth:Q.width,imageHeight:Q.height,showConfirmed:!0,showCandidates:!1,disabled:!0})]})}),!v&&!E.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 animate-pulse flex items-center justify-center",children:r.jsx("div",{className:"text-gray-400",children:"Loading..."})}),y.has(`current-${P?.id}`)&&r.jsx("div",{className:"absolute inset-0 bg-gray-700 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-gray-400",children:[r.jsx(la,{className:"w-8 h-8 mx-auto mb-2"}),r.jsx("div",{className:"text-sm",children:"Failed to load image"})]})})]})})}function Wt(n){return n?.id||n?.signature||n?.name}function Of(n){switch(n){case"failed":return"changed";case"new":case"baseline-created":return"new";case"passed":return"unchanged";default:return n}}function Nx(n){return r.jsx($1,{children:r.jsx(Ex,{...n})})}function Ex({comparison:n,comparisons:s=[],onClose:c,onAccept:o,onReject:d,onDelete:m,onNavigate:v}){let[g,b]=h.useState(na.OVERLAY),[x,y]=h.useState(!0),[N,E]=h.useState(50),[_,A]=h.useState(!0),[D,Q]=h.useState(!1),[H,V]=h.useState("needs-review"),[$,Z]=h.useState(!0),[ne,oe]=h.useState(!1),{zoom:Y,setZoom:P}=k1("fit"),{isActive:se}=Sf(),ze=h.useRef(null),Re=h.useCallback(()=>{Q(K=>!K)},[Q]),ve=h.useMemo(()=>s.map(K=>({...K,name:K.name||K.originalName||"Unknown",result:Of(K.status),status:K.status,approval_status:K.userAction==="accepted"?"approved":K.userAction==="rejected"?"rejected":K.status==="passed"?"approved":"pending",diff_percentage:K.diffPercentage??K.diff_percentage,diffClusters:K.diffClusters||[],viewport_width:K.properties?.viewport_width??K.viewport_width,viewport_height:K.properties?.viewport_height??K.viewport_height,browser:K.properties?.browser??K.browser})),[s]),_e=h.useMemo(()=>{if(!n)return null;let K=n.name||n.originalName,Ne=ve.filter(De=>(De.name||De.originalName)===K);return{name:K,comparisons:Ne}},[n,ve]),ot=h.useCallback(K=>{K&&v&&v(K)},[v]),ue=h.useMemo(()=>{let K={all:()=>!0,"needs-review":De=>(De.result==="changed"||De.result==="new")&&De.approval_status!=="approved"&&De.approval_status!=="rejected",changes:De=>De.result==="changed",new:De=>De.result==="new"},Ne=K[H]||K.all;return ve.filter(Ne)},[ve,H]),T=h.useMemo(()=>{if(!n)return-1;let K=Wt(n);return ue.findIndex(Ne=>Wt(Ne)===K)},[ue,n]),q=h.useMemo(()=>({prev:T>0,next:T<ue.length-1&&T!==-1}),[T,ue.length]),X=h.useCallback(()=>{if(q.prev){let K=ue[T-1];v(K)}},[q.prev,ue,T,v]),ce=h.useCallback(()=>{if(q.next){let K=ue[T+1];v(K)}},[q.next,ue,T,v]),ge=h.useCallback(()=>T<ue.length-1?ue[T+1]:T>0?ue[T-1]:null,[T,ue]),S=h.useCallback(()=>{if(!o||!n)return;let K=H==="needs-review"?ge():null;o(Wt(n)),K?v(K):H==="needs-review"&&ue.length<=1&&c()},[o,n,H,ge,ue.length,v,c]),U=h.useCallback(()=>{if(!d||!n)return;let K=H==="needs-review"?ge():null;d(Wt(n)),K?v(K):H==="needs-review"&&ue.length<=1&&c()},[d,n,H,ge,ue.length,v,c]),G=h.useCallback(()=>{!m||!n||m(Wt(n))},[m,n]),J=h.useCallback(()=>{b(K=>K===na.OVERLAY?na.TOGGLE:na.OVERLAY)},[b]),te=h.useCallback(()=>{g===na.TOGGLE?Z(K=>!K):y(K=>!K)},[g,Z,y]),re=h.useMemo(()=>({a:o?S:void 0,r:d?U:void 0,d:te,t:J,1:()=>b(na.OVERLAY),2:()=>b(na.TOGGLE),3:()=>b(na.ONION)}),[S,U,o,d,J,te,b]);if(J1(re),h.useEffect(()=>{let K=Ne=>{if(!(Ne.target.tagName==="INPUT"||Ne.target.tagName==="TEXTAREA"))switch(Ne.key){case"ArrowUp":case"ArrowLeft":Ne.preventDefault(),q.prev&&X();break;case"ArrowDown":case"ArrowRight":Ne.preventDefault(),q.next&&ce();break;case"Escape":Ne.preventDefault(),c();break;case"i":!Ne.metaKey&&!Ne.ctrlKey&&(Ne.preventDefault(),Re());break;case"g":!Ne.metaKey&&!Ne.ctrlKey&&(Ne.preventDefault(),oe(De=>!De));break}};return window.addEventListener("keydown",K),()=>window.removeEventListener("keydown",K)},[q,X,ce,c,Re,oe]),h.useEffect(()=>{let K=ze.current;if(!K)return;let Ne=K.closest(".overflow-y-auto");if(!Ne)return;let De=K.getBoundingClientRect(),Aa=Ne.getBoundingClientRect();De.top<Aa.top?Ne.scrollBy({top:De.top-Aa.top-8,behavior:"smooth"}):De.bottom>Aa.bottom&&Ne.scrollBy({top:De.bottom-Aa.bottom+8,behavior:"smooth"})},[ze.current]),!n)return r.jsx("div",{className:"min-h-screen bg-slate-950 flex items-center justify-center",children:r.jsxs("div",{className:"text-center text-slate-400",children:[r.jsx("div",{className:"text-lg mb-2",children:"Comparison not found"}),r.jsx("button",{type:"button",onClick:c,className:"text-blue-400 hover:text-blue-300",children:"Return to list"})]})});let be=Of(n.status),Ge=n.userAction==="accepted"?"approved":n.userAction==="rejected"?"rejected":n.status==="passed"?"approved":"pending",we={new:{variant:"info",label:"New"},changed:{variant:"warning",label:"Changed"},unchanged:{variant:"default",label:"Unchanged"}}[be],Ca=n.status==="new"||n.status==="baseline-created",St=n.properties||{};return r.jsxs("div",{className:"h-screen bg-slate-950 flex flex-col overflow-hidden","data-testid":"fullscreen-viewer",children:[r.jsxs("header",{className:"flex-shrink-0 bg-slate-900 border-b border-slate-800/60 z-30",children:[r.jsxs("div",{className:"px-2 sm:px-4 py-2 flex items-center gap-1 sm:gap-3",children:[r.jsx(V1,{onClick:c}),r.jsxs("div",{className:"flex-1 min-w-0 flex items-center gap-2",children:[r.jsx("h1",{className:"text-sm font-medium text-white truncate",children:n.name||n.originalName||"Unknown"}),we&&r.jsx(dt,{variant:we.variant,size:"sm",className:"hidden xs:flex",children:we.label}),se&&r.jsx(dt,{variant:"warning",size:"sm",dot:!0,pulseDot:!0,className:"hidden sm:flex",children:"Review Mode"})]}),r.jsxs("div",{className:"flex items-center",children:[r.jsx("button",{type:"button",onClick:X,disabled:!q.prev,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Previous",children:r.jsx(np,{className:"w-5 h-5"})}),r.jsxs("span",{className:"hidden sm:block text-xs text-slate-500 font-medium tabular-nums px-1 min-w-[3rem] text-center",children:[T+1,"/",ue.length]}),r.jsx("button",{type:"button",onClick:ce,disabled:!q.next,className:"p-2 text-slate-400 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed rounded-md hover:bg-slate-800/60 transition-colors","aria-label":"Next",children:r.jsx(Ol,{className:"w-5 h-5"})})]}),r.jsx("div",{className:"hidden sm:block h-5 w-px bg-slate-700/60"}),r.jsxs("div",{className:"hidden sm:flex items-center gap-2",children:[Ca&&m?r.jsx("button",{type:"button",onClick:G,className:"px-3 py-1.5 text-xs font-medium text-red-400 hover:text-red-300 hover:bg-red-600/20 rounded-md transition-colors","data-testid":"btn-delete",children:"Delete"}):null,r.jsx(j1,{status:Ge,onApprove:o?S:null,onReject:d?U:null,compact:!0})]}),r.jsxs("div",{className:"hidden sm:flex items-center",children:[r.jsx("button",{type:"button",onClick:()=>A(!_),className:`flex items-center justify-center p-2 rounded-md transition-colors ${_?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Queue","aria-label":"Toggle queue","data-testid":"toggle-queue-btn",children:r.jsx(qo,{className:"w-5 h-5 pointer-events-none"})}),n?.confirmedRegions?.length>0&&r.jsx("button",{type:"button",onClick:()=>oe(!ne),className:`p-2 rounded-md transition-colors ${ne?"bg-emerald-500/15 text-emerald-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Show Regions (G)","aria-label":"Toggle regions","data-testid":"toggle-regions-btn",children:r.jsx(Yo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:Re,className:`p-2 rounded-md transition-colors ${D?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60"}`,title:"Details (I)","aria-label":"Screenshot details","data-testid":"toggle-inspector-btn",children:r.jsx(Mr,{className:"w-5 h-5 pointer-events-none"})})]})]}),r.jsxs("div",{className:"px-2 sm:px-4 py-1.5 sm:py-2 border-t border-slate-800/40 flex items-center gap-2 sm:gap-3",children:[_e&&_e.comparisons.length>0&&r.jsx(tx,{variants:_e.comparisons,currentVariantId:Wt(n),onVariantSelect:ot}),r.jsx("div",{className:"flex-1"}),n.diff&&r.jsx(lx,{value:g,onChange:b,compact:!0,className:"hidden sm:flex"}),r.jsx(U1,{zoom:Y,onZoomChange:P})]})]}),r.jsxs("div",{className:"flex-1 min-h-0 flex overflow-hidden",children:[r.jsxs(kr,{isOpen:_,onClose:()=>A(!1),position:"bottom",desktopPosition:"left",width:"w-80",mobileHeight:"30vh",expandedHeight:"80vh",alwaysVisibleOnDesktop:!1,showBackdrop:!1,testId:"queue-drawer",children:[r.jsx(Ur,{title:"Queue",subtitle:`${ue.length} of ${ve.length} items`,onClose:()=>A(!1)}),r.jsx(q1,{children:[{id:"needs-review",label:"To Review"},{id:"changes",label:"Changes"},{id:"new",label:"New"},{id:"all",label:"All"}].map(K=>r.jsx(Q1,{isActive:H===K.id,onClick:()=>V(K.id),children:K.label},K.id))}),r.jsxs(Br,{className:"px-2 py-2 space-y-1",children:[ue.map(K=>{let Ne=Wt(K)===Wt(n);return r.jsx("div",{ref:Ne?ze:null,children:r.jsx(K1,{item:K,isActive:Ne,thumbnailUrl:K.current||K.baseline,onClick:()=>v(K)})},Wt(K))}),ue.length===0&&r.jsx("div",{className:"text-center py-8 text-slate-600 text-xs",children:H==="needs-review"?"All screenshots reviewed!":"No items match this filter"})]}),r.jsxs(H1,{className:"hidden sm:flex flex-col items-center gap-1.5",children:[r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-slate-400",children:"↑↓"})," navigate"," · ",r.jsx("span",{className:"text-slate-400",children:"Space"})," ",se?"exit":"review mode"]}),se&&r.jsxs("p",{className:"text-xs text-slate-500 text-center",children:[r.jsx("span",{className:"text-emerald-500 font-medium",children:"A"})," approve"," · ",r.jsx("span",{className:"text-red-500 font-medium",children:"R"})," reject"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"D"})," diff"," · ",r.jsx("span",{className:"text-slate-400 font-medium",children:"T"})," view"]})]})]}),r.jsx("main",{className:"flex-1 min-h-0 overflow-hidden relative",children:r.jsx(Sx,{comparison:n,viewMode:g===na.ONION?"onion-skin":g,showDiffOverlay:x,onDiffToggle:()=>y(K=>!K),onionSkinPosition:N,onOnionSkinChange:E,zoom:Y,disableLoadingOverlay:!0,showRegions:ne,className:"w-full h-full"},Wt(n))}),r.jsxs(ht,{isOpen:D,onClose:()=>Q(!1),title:"Screenshot Details",subtitle:n.name||n.originalName,className:"order-last",children:[r.jsx(ht.Section,{title:"Status",icon:Bo,children:r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[we&&r.jsx(dt,{variant:we.variant,size:"sm",children:we.label}),r.jsx(dt,{variant:Ge==="approved"?"success":Ge==="rejected"?"danger":"default",size:"sm",children:Ge})]})}),r.jsxs(ht.Section,{title:"Screenshot",icon:Nn,children:[St.browser&&r.jsx(ht.Row,{label:"Browser",value:St.browser,icon:()=>r.jsx(An,{browser:St.browser,className:"w-3.5 h-3.5"})}),r.jsx(ht.Row,{label:"Viewport",value:St.viewport_width&&St.viewport_height?`${St.viewport_width} × ${St.viewport_height}`:null,mono:!0}),r.jsx(ht.Row,{label:"Device",value:St.device})]}),be==="changed"&&n.diffPercentage!=null&&r.jsxs(ht.Section,{title:"Diff Analysis",icon:gp,children:[r.jsx(ht.Row,{label:"Changed",value:`${Number(n.diffPercentage).toFixed(3)}%`,mono:!0}),n.diffPixels!=null&&r.jsx(ht.Row,{label:"Pixels",value:n.diffPixels.toLocaleString(),mono:!0}),n.threshold!=null&&r.jsx(ht.Row,{label:"Threshold",value:Number(n.threshold).toFixed(2),mono:!0})]}),r.jsx(ht.Section,{title:"Identifier",icon:Bo,children:r.jsx(ht.Row,{label:"Signature",value:n.signature||n.id,mono:!0,copyable:!0})})]})]}),r.jsxs("div",{className:"sm:hidden flex-shrink-0 bg-slate-900/98 backdrop-blur-sm border-t border-slate-700/50 safe-area-pb",children:[r.jsx(w1,{status:Ge,onApprove:o?S:null,onReject:d?U:null}),r.jsxs("div",{className:"px-3 py-2 flex items-center gap-1 border-t border-slate-800/40",children:[r.jsx("button",{type:"button",onClick:()=>A(!_),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${_?"bg-amber-500/15 text-amber-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Queue","data-testid":"mobile-toggle-queue-btn",children:r.jsx(qo,{className:"w-5 h-5 pointer-events-none"})}),r.jsx("button",{type:"button",onClick:Re,className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${D?"bg-blue-500/15 text-blue-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Screenshot details","data-testid":"mobile-toggle-inspector-btn",children:r.jsx(Mr,{className:"w-5 h-5 pointer-events-none"})}),n?.confirmedRegions?.length>0&&r.jsx("button",{type:"button",onClick:()=>oe(!ne),className:`flex items-center justify-center p-2.5 rounded-lg transition-colors ${ne?"bg-emerald-500/15 text-emerald-400":"text-slate-400 hover:text-white hover:bg-slate-800/60 active:bg-slate-700/60"}`,"aria-label":"Toggle regions","data-testid":"mobile-toggle-regions-btn",children:r.jsx(Yo,{className:"w-5 h-5 pointer-events-none"})}),Ca&&m&&r.jsx("button",{type:"button",onClick:G,className:"flex items-center justify-center p-2.5 rounded-lg text-red-400 hover:text-red-300 hover:bg-red-600/20 active:bg-red-600/30 transition-colors","aria-label":"Delete","data-testid":"mobile-delete-btn",children:r.jsx("span",{className:"text-xs font-medium",children:"Delete"})}),r.jsx("div",{className:"flex-1"}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("span",{className:"text-xs text-slate-500 tabular-nums",children:[T+1," / ",ue.length]}),we&&r.jsx(dt,{variant:we.variant,size:"sm",children:we.label})]})]})]})]})}function Cx(){let[,n]=Ds(),[,s]=h1("/comparison/:id"),{data:c}=ks(),o=of(),d=df(),m=g1();const v=h.useMemo(()=>c?.comparisons||[],[c?.comparisons]),g=h.useMemo(()=>{const _=s?.id?decodeURIComponent(s.id):null;return!_||v.length===0?null:v.find(A=>A.id===_||A.signature===_||A.name===_)},[s,v]),b=h.useCallback(_=>{const A=_.id||_.signature||_.name;A&&n(`/comparison/${encodeURIComponent(A)}`)},[n]),x=h.useCallback(()=>{n("/")},[n]),y=h.useCallback(_=>{o.mutate(_)},[o]),N=h.useCallback(_=>{d.mutate(_)},[d]),E=h.useCallback(_=>{m.mutate(_,{onSuccess:()=>{n("/")}})},[m,n]);return g?r.jsx(Nx,{comparison:g,comparisons:v,onClose:x,onAccept:y,onReject:N,onDelete:E,onNavigate:b}):r.jsx("div",{className:"fixed inset-0 bg-gray-900 z-50 flex items-center justify-center",children:r.jsxs("div",{className:"text-center",children:[r.jsx("div",{className:"text-lg text-white font-medium mb-2",children:"Comparison not found"}),r.jsxs("p",{className:"text-sm text-gray-400 mb-4",children:["ID: ",s?.id||"none"]}),r.jsx("button",{type:"button",onClick:x,className:"text-blue-400 hover:text-blue-300 font-medium transition-colors",children:"Return to list"})]})})}function Ax(n,s){return[...n].sort((c,o)=>{if(s==="priority"){const d={[ul.FAILED]:3,[ul.NEW]:2,[ul.PASSED]:1},m=c.initialStatus||c.status,v=o.initialStatus||o.status,g=d[m]||0,b=d[v]||0;return g!==b?b-g:(o.diffPercentage||0)-(c.diffPercentage||0)}return s==="name"?(c.name||"").localeCompare(o.name||""):s==="time"?(o.timestamp||0)-(c.timestamp||0):0})}function Mx(n,s){return s==="failed"?n.filter(c=>c.status===ul.FAILED):s==="passed"?n.filter(c=>c.status===ul.PASSED):s==="new"?n.filter(c=>c.status===ul.NEW||c.status===ul.BASELINE_CREATED):n}const Ox=()=>{const n=new URLSearchParams(window.location.search);return{filter:n.get("filter")||qe.ALL,sortBy:n.get("sort")||Rn.PRIORITY,searchQuery:n.get("search")||"",selectedBrowser:n.get("browser")||"all",selectedViewport:n.get("viewport")||"all"}};function zx(n=[]){const s=Ox(),[c,o]=h.useState(s.filter),[d,m]=h.useState(s.sortBy),[v,g]=h.useState(s.searchQuery),[b,x]=h.useState(s.selectedBrowser),[y,N]=h.useState(s.selectedViewport);h.useEffect(()=>{const A=new URLSearchParams;c!==qe.ALL&&A.set("filter",c),d!==Rn.PRIORITY&&A.set("sort",d),v&&A.set("search",v),b!=="all"&&A.set("browser",b),y!=="all"&&A.set("viewport",y);const D=A.toString()?`?${A.toString()}`:window.location.pathname;window.history.replaceState({},"",D)},[c,d,v,b,y]);const E=h.useMemo(()=>{const A=new Set,D=new Set;return n.forEach(Q=>{if(Q.properties?.browser&&A.add(Q.properties.browser),Q.properties?.viewport_width&&Q.properties?.viewport_height){const H=`${Q.properties.viewport_width}x${Q.properties.viewport_height}`;D.add(H)}else if(Q.properties?.viewport){const H=`${Q.properties.viewport.width}x${Q.properties.viewport.height}`;D.add(H)}}),{browsers:Array.from(A).sort(),viewports:Array.from(D).sort()}},[n]);return{filteredComparisons:h.useMemo(()=>{let A=Mx(n,c);if(v.trim()){const D=v.toLowerCase();A=A.filter(Q=>Q.name.toLowerCase().includes(D)||Q.originalName?.toLowerCase().includes(D))}return b!=="all"&&(A=A.filter(D=>D.properties?.browser===b)),y!=="all"&&(A=A.filter(D=>{let Q=null;return D.properties?.viewport_width&&D.properties?.viewport_height?Q=`${D.properties.viewport_width}x${D.properties.viewport_height}`:D.properties?.viewport&&(Q=`${D.properties.viewport.width}x${D.properties.viewport.height}`),Q===y})),Ax(A,d)},[n,c,d,v,b,y]),filter:c,setFilter:o,sortBy:d,setSortBy:m,searchQuery:v,setSearchQuery:g,selectedBrowser:b,setSelectedBrowser:x,selectedViewport:y,setSelectedViewport:N,availableFilters:E,counts:{all:n.length,failed:n.filter(A=>A.status==="failed").length,passed:n.filter(A=>A.status==="passed").length,new:n.filter(A=>A.status==="new").length,rejected:n.filter(A=>A.status==="rejected").length}}}function Tx(n){const[s,c]=h.useState("loading");return h.useEffect(()=>{if(!n){c("missing");return}c("loading");const o=new Image;return o.onload=()=>c("loaded"),o.onerror=()=>c("error"),o.src=n,()=>{o.onload=null,o.onerror=null}},[n]),s}function Rx({src:n,alt:s,className:c,style:o,onClick:d}){const m=Tx(n);if(m==="missing")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(Or,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["No ",s.toLowerCase()," available"]})]})});if(m==="loading")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-gray-600 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-gray-400 text-center",children:[r.jsx(ll,{className:"w-8 h-8 mx-auto mb-3 animate-spin"}),r.jsxs("div",{className:"text-sm",children:["Loading ",s.toLowerCase(),"..."]})]})});if(m==="error")return r.jsx("div",{className:"flex items-center justify-center bg-gray-700 border border-red-500 rounded min-h-[200px]",style:o,children:r.jsxs("div",{className:"text-red-400 text-center",children:[r.jsx(la,{className:"w-12 h-12 mx-auto mb-3"}),r.jsxs("div",{className:"text-sm",children:["Failed to load ",s.toLowerCase()]}),r.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono break-all px-4",children:n})]})});let v=null;return d&&(v=g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),d(g))}),r.jsx("img",{src:n,alt:s,className:c,style:o,onClick:d,onKeyDown:v,role:d?"button":void 0,tabIndex:d?0:void 0})}function Dx(n){let s=new Map;for(let c of n){let o=c.name||c.originalName||"Unknown";s.has(o)||s.set(o,{name:o,comparisons:[],browsers:new Set,viewports:[],hasChanges:!1,hasNew:!1,allPassed:!0,maxDiff:0,failedCount:0,newCount:0,passedCount:0,acceptedCount:0,rejectedCount:0});let d=s.get(o);d.comparisons.push(c),c.properties?.browser&&d.browsers.add(c.properties.browser),c.properties?.viewport_width&&c.properties?.viewport_height&&d.viewports.push({width:c.properties.viewport_width,height:c.properties.viewport_height,id:c.id,status:c.status}),c.status==="failed"?(d.hasChanges=!0,d.allPassed=!1,d.failedCount++,d.maxDiff=Math.max(d.maxDiff,c.diffPercentage||0)):c.status==="new"||c.status==="baseline-created"?(d.hasNew=!0,d.allPassed=!1,d.newCount++):c.status==="passed"&&d.passedCount++,c.userAction==="accepted"?d.acceptedCount++:c.userAction==="rejected"&&d.rejectedCount++}return Array.from(s.values()).map(c=>({...c,browsers:Array.from(c.browsers),viewports:c.viewports.sort((o,d)=>d.width*d.height-o.width*o.height),primary:c.comparisons[0]})).sort((c,o)=>c.hasChanges&&!o.hasChanges?-1:!c.hasChanges&&o.hasChanges?1:c.hasNew&&!o.hasNew?-1:!c.hasNew&&o.hasNew?1:c.maxDiff!==o.maxDiff?o.maxDiff-c.maxDiff:c.name.localeCompare(o.name))}function zf({width:n,className:s="w-3.5 h-3.5"}){return n<=480?r.jsx(Ts,{className:s}):n<=1024?r.jsx(Ar,{className:s}):r.jsx(Nn,{className:s})}function _x({group:n}){return n.acceptedCount===n.comparisons.length?r.jsxs(dt,{variant:"success",size:"sm",children:[r.jsx(aa,{className:"w-3 h-3 mr-1"}),"Accepted"]}):n.rejectedCount>0?r.jsxs(dt,{variant:"warning",size:"sm",children:[r.jsx(Cn,{className:"w-3 h-3 mr-1"}),"Rejected"]}):n.hasChanges?r.jsxs(dt,{variant:"danger",size:"sm",children:[n.failedCount," changed"]}):n.hasNew?r.jsxs(dt,{variant:"info",size:"sm",children:[n.newCount," new"]}):r.jsx(dt,{variant:"success",size:"sm",children:"Passed"})}function Lx({group:n,maxVisible:s=4}){let c=n.comparisons.length;if(c<=1){let m=n.viewports[0],v=n.browsers[0];return r.jsxs("div",{className:"flex items-center gap-2 text-xs text-slate-400",children:[m&&r.jsxs("span",{className:"inline-flex items-center gap-1",children:[r.jsx(zf,{width:m.width,className:"w-3 h-3"}),m.width,"×",m.height]}),v&&r.jsx("span",{children:v})]})}let o=n.viewports.slice(0,s),d=c-s;return r.jsxs("div",{className:"flex items-center gap-1.5 flex-wrap",children:[o.map((m,v)=>r.jsxs("span",{className:`
|
|
177
185
|
inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-[10px] font-medium
|
|
178
186
|
${m.status==="failed"?"bg-red-500/20 text-red-400 border border-red-500/30":m.status==="new"||m.status==="baseline-created"?"bg-blue-500/20 text-blue-400 border border-blue-500/30":"bg-slate-700/50 text-slate-400 border border-slate-600/30"}
|
|
179
|
-
`,children:[r.jsx(
|
|
187
|
+
`,children:[r.jsx(zf,{width:m.width,className:"w-2.5 h-2.5"}),m.width]},v)),d>0&&r.jsxs("span",{className:"text-[10px] text-slate-500",children:["+",d," more"]}),n.browsers.length>0&&r.jsxs("span",{className:"text-[10px] text-slate-500 ml-1",children:["· ",n.browsers.join(", ")]})]})}function kx({group:n,onSelect:s,onAcceptGroup:c,onRejectGroup:o,isAccepting:d}){let{primary:m,hasChanges:v,hasNew:g,maxDiff:b}=n,x=v||g,y=m.current||m.baseline,N=`screenshot-group-${(m.id||m.signature||n.name).replace(/[^a-zA-Z0-9-]/g,"-")}`,E=v?"border-red-500/40 hover:border-red-500/60":g?"border-blue-500/40 hover:border-blue-500/60":"border-slate-700/50 hover:border-slate-600";return r.jsxs("div",{"data-testid":N,className:`
|
|
180
188
|
group flex items-center gap-3 p-3
|
|
181
189
|
bg-slate-800/30 hover:bg-slate-800/50
|
|
182
190
|
border rounded-lg transition-all
|
|
183
191
|
${E}
|
|
184
|
-
`,children:[r.jsxs("button",{type:"button",onClick:()=>s(m),className:"relative w-16 h-11 rounded-md overflow-hidden flex-shrink-0 bg-slate-900 hover:ring-2 hover:ring-amber-500/50 transition-all",children:[y?r.jsx(
|
|
192
|
+
`,children:[r.jsxs("button",{type:"button",onClick:()=>s(m),className:"relative w-16 h-11 rounded-md overflow-hidden flex-shrink-0 bg-slate-900 hover:ring-2 hover:ring-amber-500/50 transition-all",children:[y?r.jsx(Rx,{src:y,alt:n.name,className:"w-full h-full object-cover object-top"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-slate-600",children:r.jsx(Nn,{className:"w-5 h-5"})}),v&&r.jsx("div",{className:"absolute inset-0 bg-red-500/20 flex items-center justify-center",children:r.jsx("div",{className:"w-2 h-2 bg-red-500 rounded-full animate-pulse"})}),!v&&g&&r.jsx("div",{className:"absolute inset-0 bg-blue-500/10"}),n.comparisons.length>1&&r.jsx("div",{className:"absolute bottom-0.5 right-0.5 px-1 py-0.5 text-[9px] font-bold bg-slate-900/90 text-slate-300 rounded",children:n.comparisons.length})]}),r.jsxs("button",{type:"button",onClick:()=>s(m),className:"flex-1 min-w-0 text-left",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("h3",{className:"text-sm font-medium text-white truncate",children:n.name}),b>0&&r.jsxs("span",{className:"text-xs font-mono text-red-400",children:[b.toFixed(1),"%"]})]}),r.jsx("div",{className:"mt-1",children:r.jsx(Lx,{group:n})})]}),r.jsxs("div",{className:"flex items-center gap-2 flex-shrink-0",children:[r.jsx(_x,{group:n}),x&&r.jsxs("div",{className:`flex items-center gap-1 ${n.acceptedCount===0?"opacity-100":"opacity-0 group-hover:opacity-100"} transition-opacity`,children:[r.jsx(Ke,{variant:"ghost",size:"sm",onClick:_=>{_.stopPropagation(),c(n)},disabled:d,className:"!p-1.5 text-emerald-400 hover:bg-emerald-500/20",title:`Accept ${n.comparisons.length>1?`all ${n.comparisons.length} variants`:""}`,children:r.jsx(aa,{className:"w-4 h-4"})}),r.jsx(Ke,{variant:"ghost",size:"sm",onClick:_=>{_.stopPropagation(),o(n)},disabled:d,className:"!p-1.5 text-red-400 hover:bg-red-500/20",title:"Reject",children:r.jsx(Cn,{className:"w-4 h-4"})})]}),r.jsx(Ol,{className:"w-4 h-4 text-slate-500 group-hover:text-slate-300 transition-colors"})]})]})}function Ux({comparisons:n,onSelectComparison:s,onAcceptComparison:c,onRejectComparison:o,loadingStates:d={}}){let m=h.useMemo(()=>!n||n.length===0?[]:Dx(n),[n]);if(m.length===0)return r.jsx("div",{className:"text-center py-12 text-slate-400",children:"No screenshots to display"});let v=x=>{if(c)for(let y of x.comparisons)c(y.id||y.signature||y.name)},g=x=>{if(o)for(let y of x.comparisons)o(y.id||y.signature||y.name)},b=Object.values(d).some(x=>x==="accepting");return r.jsx("div",{className:"space-y-2",children:m.map(x=>r.jsx(kx,{group:x,onSelect:s,onAcceptGroup:v,onRejectGroup:g,isAccepting:b},x.name))})}function Hr(n){return n<=480?Ts:n<=1024?Ar:Nn}function Vs({value:n,onChange:s,options:c,placeholder:o,renderOption:d,renderValue:m,testId:v}){let[g,b]=h.useState(!1),x=h.useRef(null),y=h.useCallback(E=>{s(E),b(!1)},[s,b]),N=h.useCallback(E=>{x.current?.contains(E.relatedTarget)||b(!1)},[x.current?.contains,b]);return r.jsxs("div",{className:"relative",ref:x,onBlur:N,children:[r.jsxs("button",{type:"button",onClick:()=>b(!g),"data-testid":v,className:`
|
|
185
193
|
inline-flex items-center gap-2 px-2.5 h-8 rounded-md text-xs font-medium
|
|
186
194
|
bg-transparent border transition-all
|
|
187
|
-
${
|
|
188
|
-
`,children:[m?m(n):r.jsx("span",{className:"text-slate-300",children:n==="all"?o:n}),r.jsx(
|
|
195
|
+
${g?"border-amber-500/50 ring-1 ring-amber-500/20":"border-slate-700/50 hover:border-slate-600"}
|
|
196
|
+
`,children:[m?m(n):r.jsx("span",{className:"text-slate-300",children:n==="all"?o:n}),r.jsx(Sn,{className:`w-3.5 h-3.5 text-slate-500 transition-transform ${g?"rotate-180":""}`})]}),g&&r.jsx("div",{className:"absolute top-full left-0 mt-1 z-50 min-w-[160px] bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden",children:r.jsxs("div",{className:"py-1 max-h-60 overflow-y-auto",children:[r.jsxs("button",{type:"button",onClick:()=>y("all"),className:`
|
|
189
197
|
w-full flex items-center gap-2 px-3 py-2 text-sm text-left transition-colors
|
|
190
198
|
${n==="all"?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:bg-slate-700/50"}
|
|
191
199
|
`,children:[r.jsx("span",{className:"w-4 h-4"}),r.jsx("span",{children:o})]}),c.map(E=>r.jsx("button",{type:"button",onClick:()=>y(E),className:`
|
|
192
200
|
w-full flex items-center gap-2 px-3 py-2 text-sm text-left transition-colors
|
|
193
201
|
${n===E?"bg-amber-500/10 text-amber-400":"text-slate-300 hover:bg-slate-700/50"}
|
|
194
|
-
`,children:d(E)},E))]})})]})}function
|
|
202
|
+
`,children:d(E)},E))]})})]})}function Tf({value:n,onChange:s}){let[c,o]=h.useState(!1),d=h.useRef(null),m=[{value:Rn.PRIORITY,label:"Priority",description:"Failed first"},{value:Rn.NAME,label:"Name",description:"A to Z"},{value:Rn.TIME,label:"Time",description:"Recent first"}],v=m.find(g=>g.value===n)||m[0];return r.jsxs("div",{className:"relative",ref:d,children:[r.jsxs("button",{type:"button",onClick:()=>o(!c),className:`
|
|
195
203
|
inline-flex items-center gap-2 px-2.5 h-8 rounded-md text-xs font-medium
|
|
196
204
|
bg-transparent border transition-all
|
|
197
205
|
${c?"border-amber-500/50 ring-1 ring-amber-500/20":"border-slate-700/50 hover:border-slate-600"}
|
|
198
|
-
`,children:[r.jsx(
|
|
206
|
+
`,children:[r.jsx(Yv,{className:"w-3.5 h-3.5 text-slate-500"}),r.jsx("span",{className:"text-slate-300",children:v.label}),r.jsx(Sn,{className:`w-3 h-3 text-slate-500 transition-transform ${c?"rotate-180":""}`})]}),c&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>o(!1)}),r.jsx("div",{className:"absolute top-full right-0 mt-1 z-50 w-48 bg-slate-800 border border-slate-700/50 rounded-lg shadow-xl overflow-hidden",children:r.jsx("div",{className:"py-1",children:m.map(g=>r.jsxs("button",{type:"button",onClick:()=>{s(g.value),o(!1)},className:`
|
|
199
207
|
w-full flex flex-col items-start px-3 py-2 text-left transition-colors
|
|
200
|
-
${n===
|
|
201
|
-
`,children:[r.jsx("span",{className:n===
|
|
208
|
+
${n===g.value?"bg-amber-500/10":"hover:bg-slate-700/50"}
|
|
209
|
+
`,children:[r.jsx("span",{className:n===g.value?"text-amber-400 font-medium":"text-slate-300",children:g.label}),r.jsx("span",{className:"text-xs text-slate-500",children:g.description})]},g.value))})})]})]})}function Ys({label:n,icon:s,onRemove:c}){return r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-1 bg-amber-500/10 border border-amber-500/20 rounded-md text-xs text-amber-400",children:[s&&r.jsx(s,{className:"w-3 h-3"}),r.jsx("span",{children:n}),r.jsx("button",{type:"button",onClick:c,className:"ml-0.5 hover:text-amber-200 transition-colors",children:r.jsx(Xt,{className:"w-3 h-3"})})]})}function Bx({filter:n,setFilter:s,sortBy:c,setSortBy:o,searchQuery:d,setSearchQuery:m,selectedBrowser:v,setSelectedBrowser:g,selectedViewport:b,setSelectedViewport:x,availableFilters:y,counts:N,onRefresh:E,loading:_}){let[A,D]=h.useState(!1),Q=y.browsers.length>1||y.viewports.length>1,H=h.useMemo(()=>{let Y=0;return n!==qe.ALL&&Y++,v!=="all"&&Y++,b!=="all"&&Y++,d.trim()&&Y++,Y},[n,v,b,d]),V=h.useCallback(()=>{s(qe.ALL),g("all"),x("all"),m("")},[s,g,x,m]),$=h.useCallback(Y=>r.jsxs(r.Fragment,{children:[r.jsx(An,{browser:Y,className:"w-4 h-4"}),r.jsx("span",{className:"capitalize",children:Y})]}),[]),Z=h.useCallback(Y=>Y==="all"?r.jsx("span",{className:"text-slate-400",children:"All browsers"}):r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(An,{browser:Y,className:"w-4 h-4"}),r.jsx("span",{className:"text-slate-300 capitalize",children:Y})]}),[]),ne=h.useCallback(Y=>{let P=Hr(parseInt(Y.split("×")[0],10));return r.jsxs(r.Fragment,{children:[r.jsx(P,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"font-mono text-xs",children:Y})]})},[]),oe=h.useCallback(Y=>{if(Y==="all")return r.jsx("span",{className:"text-slate-400",children:"All viewports"});let P=Hr(parseInt(Y.split("×")[0],10));return r.jsxs("span",{className:"flex items-center gap-2",children:[r.jsx(P,{className:"w-4 h-4 text-slate-400"}),r.jsx("span",{className:"text-slate-300 font-mono text-xs",children:Y})]})},[]);return r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"flex flex-col gap-3 p-3 bg-slate-800/30 border border-slate-700/40 rounded-xl",children:[r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsx("div",{className:"flex-1",children:r.jsx(F1,{value:d,onChange:m,placeholder:"Search screenshots...",className:"w-full"})}),Q&&r.jsxs("button",{type:"button",onClick:()=>D(!A),className:`
|
|
202
210
|
relative md:hidden inline-flex items-center justify-center w-8 h-8 rounded-md transition-all
|
|
203
|
-
${
|
|
204
|
-
`,children:[r.jsx(
|
|
211
|
+
${A||H>0?"bg-amber-500/20 text-amber-400 border border-amber-500/30":"text-slate-400 border border-slate-700/50 hover:border-slate-600"}
|
|
212
|
+
`,children:[r.jsx(zv,{className:"w-4 h-4"}),H>0&&r.jsx("span",{className:"absolute -top-1 -right-1 w-4 h-4 bg-amber-500 text-slate-900 text-[10px] font-bold rounded-full flex items-center justify-center",children:H})]}),r.jsx("div",{className:"hidden md:block",children:r.jsx(Tf,{value:c,onChange:o})}),r.jsx("button",{type:"button",onClick:E,disabled:_,className:"inline-flex items-center justify-center w-8 h-8 rounded-md border border-slate-700/50 text-slate-400 hover:text-white hover:border-slate-600 transition-all disabled:opacity-50",title:"Refresh",children:r.jsx(ll,{className:`w-4 h-4 ${_?"animate-spin":""}`})})]}),r.jsxs("div",{className:"hidden md:flex items-center gap-3 flex-wrap",children:[r.jsxs("div",{className:"flex items-center gap-1.5",children:[r.jsx(Na,{label:"All",count:N.all,color:"gray",active:n===qe.ALL,onClick:()=>s(qe.ALL),testId:"filter-status-all"}),r.jsx(Na,{label:"Failed",count:N.failed,color:"red",active:n===qe.FAILED,onClick:()=>s(qe.FAILED),testId:"filter-status-failed"}),r.jsx(Na,{label:"New",count:N.new,color:"blue",active:n===qe.NEW,onClick:()=>s(qe.NEW),testId:"filter-status-new"}),r.jsx(Na,{label:"Passed",count:N.passed,color:"emerald",active:n===qe.PASSED,onClick:()=>s(qe.PASSED),testId:"filter-status-passed"})]}),Q&&r.jsx("div",{className:"w-px h-6 bg-slate-700/50"}),y.browsers.length>1&&r.jsx(Vs,{value:v,onChange:g,options:y.browsers,placeholder:"All browsers",renderOption:$,renderValue:Z,testId:"filter-browser"}),y.viewports.length>1&&r.jsx(Vs,{value:b,onChange:x,options:y.viewports,placeholder:"All viewports",renderOption:ne,renderValue:oe,testId:"filter-viewport"})]}),r.jsxs("div",{className:"md:hidden flex items-center gap-1.5 overflow-x-auto pb-1 -mx-1 px-1 scrollbar-hide",children:[r.jsx(Na,{label:"All",count:N.all,color:"gray",active:n===qe.ALL,onClick:()=>s(qe.ALL),testId:"mobile-filter-status-all"}),r.jsx(Na,{label:"Failed",count:N.failed,color:"red",active:n===qe.FAILED,onClick:()=>s(qe.FAILED),testId:"mobile-filter-status-failed"}),r.jsx(Na,{label:"New",count:N.new,color:"blue",active:n===qe.NEW,onClick:()=>s(qe.NEW),testId:"mobile-filter-status-new"}),r.jsx(Na,{label:"Passed",count:N.passed,color:"emerald",active:n===qe.PASSED,onClick:()=>s(qe.PASSED),testId:"mobile-filter-status-passed"})]}),A&&Q&&r.jsxs("div",{className:"md:hidden space-y-3 pt-2 border-t border-slate-700/30",children:[r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Sort by"}),r.jsx(Tf,{value:c,onChange:o})]}),y.browsers.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Browser"}),r.jsx(Vs,{value:v,onChange:g,options:y.browsers,placeholder:"All browsers",renderOption:$,renderValue:Z,testId:"filter-browser-mobile"})]}),y.viewports.length>1&&r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsx("span",{className:"text-sm text-slate-400",children:"Viewport"}),r.jsx(Vs,{value:b,onChange:x,options:y.viewports,placeholder:"All viewports",renderOption:ne,renderValue:oe,testId:"filter-viewport-mobile"})]})]})]}),H>0&&r.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[r.jsx("span",{className:"text-xs text-slate-500",children:"Filters:"}),n!==qe.ALL&&r.jsx(Ys,{label:n.charAt(0).toUpperCase()+n.slice(1),onRemove:()=>s(qe.ALL)}),v!=="all"&&r.jsx(Ys,{label:v,icon:()=>r.jsx(An,{browser:v,className:"w-3 h-3"}),onRemove:()=>g("all")}),b!=="all"&&r.jsx(Ys,{label:b,icon:Hr(parseInt(b.split("×")[0],10)),onRemove:()=>x("all")}),d.trim()&&r.jsx(Ys,{label:`"${d}"`,onRemove:()=>m("")}),r.jsx("button",{type:"button",onClick:V,className:"text-xs text-slate-500 hover:text-slate-300 transition-colors ml-2",children:"Clear all"})]})]})}function Hx({failedCount:n,newCount:s,onAcceptAll:c,isLoading:o}){let d=n+s,m=n>0;return r.jsxs("div",{className:`
|
|
205
213
|
relative overflow-hidden rounded-xl border
|
|
206
214
|
${m?"bg-gradient-to-r from-red-500/10 via-red-500/5 to-transparent border-red-500/20":"bg-gradient-to-r from-emerald-500/10 via-emerald-500/5 to-transparent border-emerald-500/20"}
|
|
207
215
|
`,children:[r.jsx("div",{className:"absolute inset-0 opacity-5",children:r.jsx("div",{className:"absolute inset-0",style:{backgroundImage:"radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0)",backgroundSize:"24px 24px"}})}),r.jsxs("div",{className:"relative flex items-center gap-4 p-4",children:[r.jsx("div",{className:`
|
|
208
216
|
flex-shrink-0 w-10 h-10 rounded-lg flex items-center justify-center
|
|
209
217
|
${m?"bg-red-500/20 text-red-400":"bg-emerald-500/20 text-emerald-400"}
|
|
210
|
-
`,children:m?r.jsx(ea,{className:"w-5 h-5"}):r.jsx(Yo,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[n>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-red-500/20 text-red-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-400"}),n," changed"]}),s>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-blue-500/20 text-blue-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),s," new"]})]}),r.jsx("p",{className:"text-sm text-slate-400 mt-1",children:m?"Review visual differences and accept to update baselines":"New screenshots ready to be saved as baselines"})]}),r.jsxs(Xe,{variant:"success",onClick:c,loading:o,icon:el,className:"flex-shrink-0","data-testid":"btn-accept-all",children:["Accept All (",d,")"]})]})]})}function Lg(){let[,n]=Rs(),{addToast:s,confirm:c}=nl(),[o,d]=h.useState({}),{data:m,isLoading:v,refetch:x}=Ls(),b=of(),g=cf(),y=ff(),{filteredComparisons:N,filter:E,setFilter:_,sortBy:M,setSortBy:L,searchQuery:Q,setSearchQuery:B,selectedBrowser:F,setSelectedBrowser:X,selectedViewport:I,setSelectedViewport:pe,availableFilters:he,counts:V}=Eg(m?.comparisons),ee=h.useCallback(q=>{let Z=q.id||q.signature||q.name;Z&&n(`/comparison/${encodeURIComponent(Z)}`)},[n]),ge=h.useCallback(q=>{d(Z=>({...Z,[q]:"accepting"})),g.mutate(q,{onSuccess:()=>{d(Z=>({...Z,[q]:"accepted"}))},onError:Z=>{d(ue=>({...ue,[q]:void 0})),s(`Failed to accept: ${Z.message}`,"error")}})},[g,s]),De=h.useCallback(q=>{d(Z=>({...Z,[q]:"rejecting"})),y.mutate(q,{onSuccess:()=>{d(Z=>({...Z,[q]:"rejected"}))},onError:Z=>{d(ue=>({...ue,[q]:void 0})),s(`Failed to reject: ${Z.message}`,"error")}})},[y,s]),Te=h.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&b.mutate(void 0,{onSuccess:()=>{s("All baselines accepted successfully","success")},onError:Z=>{console.error("Failed to accept all baselines:",Z),s("Failed to accept all baselines. Please try again.","error")}})},[b,s,c]),we=!m?.comparisons||m.comparisons.length===0,re=E!=="all"||Q.trim()||F!=="all"||I!=="all",Se=m?.comparisons?.some(q=>q.status==="failed"||q.status==="new"),_e=m?.comparisons?.filter(q=>q.status==="failed").length||0,R=m?.comparisons?.filter(q=>q.status==="new").length||0;return we?r.jsx(Tl,{icon:Fv,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(Dg,{filter:E,setFilter:_,sortBy:M,setSortBy:L,searchQuery:Q,setSearchQuery:B,selectedBrowser:F,setSelectedBrowser:X,selectedViewport:I,setSelectedViewport:pe,availableFilters:he,counts:V,onRefresh:x,loading:v}),Se&&r.jsx(_g,{failedCount:_e,newCount:R,onAcceptAll:Te,isLoading:b.isPending}),N.length===0?r.jsx(He,{hover:!1,children:r.jsx(Ye,{className:"py-12",children:r.jsx(Tl,{icon:Sp,title:"No matches",description:"No comparisons match your current filters.",action:re&&r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>{_("all"),B(""),X("all"),pe("all")},children:"Clear all filters"})})})}):r.jsx(Rg,{comparisons:N,onSelectComparison:ee,onAcceptComparison:ge,onRejectComparison:De,loadingStates:o})]})}function Ug({onComplete:n}){const[s,c]=h.useState(null),[o,d]=h.useState(null),m=eg(),v=tg(),{addToast:x}=nl();h.useEffect(()=>{async function g(){try{const y=await m.mutateAsync();c(y)}catch(y){d(y.message),x(`Failed to start login: ${y.message}`,"error")}}g()},[x,m.mutateAsync]);async function b(){if(s?.deviceCode){d(null);try{const g=await v.mutateAsync(s.deviceCode);g.status==="complete"?(x("Login successful!","success"),n?.()):g.status==="pending"?x("Still waiting for authorization...","info"):d("Unexpected response from server")}catch(g){d(g.message),x(`Check failed: ${g.message}`,"error")}}}return o?r.jsx(df,{variant:"danger",title:"Login Error",children:o}):s?r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:s.verificationUriComplete||s.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:s.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(Xe,{variant:"secondary",onClick:b,loading:v.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(On,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function kg(){const[n,s]=h.useState(!1),c=vt(),{data:o,isLoading:d}=Cf(),m=ag(),{addToast:v}=nl(),x=o?.user,b=o?.authenticated,g=h.useCallback(async()=>{try{await m.mutateAsync(),v("Logged out successfully","success")}catch(N){v(`Logout failed: ${N.message}`,"error")}},[m,v]),y=h.useCallback(()=>{s(!1),c.invalidateQueries({queryKey:ve.auth})},[c]);return d?r.jsx(Dl,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>s(!1),children:"← Back"}),r.jsx(Ug,{onComplete:y})]}):b?r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(Mr,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:x?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:x?.email}),x?.organizationName&&r.jsx(dt,{variant:"default",className:"mt-2",children:x.organizationName})]})]}),r.jsx(Xe,{variant:"ghost",onClick:g,loading:m.isPending,icon:Dv,children:"Sign Out"})]})})}):r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(Mr,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Xe,{variant:"primary",onClick:()=>s(!0),icon:Uo,children:"Sign In"})]})})}function Bg({mappings:n,onDelete:s,deleting:c}){const{addToast:o,confirm:d}=nl(),m=h.useCallback(async v=>{if(await d(`Remove project mapping for ${v}?`,"This will not delete any files, only the project association."))try{await s(v),o("Mapping removed successfully","success")}catch(b){o(`Failed to remove mapping: ${b.message}`,"error")}},[s,o,d]);return n.length===0?r.jsx(Tl,{icon:Nn,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map(v=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:v.directory}),r.jsx("td",{className:"text-white",children:v.projectName||v.projectSlug}),r.jsx("td",{children:v.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Xe,{variant:"danger",size:"sm",onClick:()=>m(v.directory),disabled:c,icon:Vp,className:"!p-2"})})]},v.directory))})]})})}function Hg(){const{data:n,isLoading:s,refetch:c}=ig(),o=rg(),d=n?.mappings||[],m=h.useCallback(async v=>{await o.mutateAsync(v)},[o]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Be,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Dl,{})}),r.jsx(Dl,{})]}),r.jsx(Dl,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(kg,{})}),r.jsxs(He,{hover:!1,children:[r.jsx(Us,{title:"Quick Stats"}),r.jsx(Ye,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:d.length})]})})]})]}),r.jsxs(He,{hover:!1,children:[r.jsx(Us,{icon:Nn,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Xe,{variant:"ghost",size:"sm",onClick:()=>c(),icon:Pa,children:"Refresh"})}),r.jsx(Ye,{padding:"p-0",children:r.jsx(Bg,{mappings:d,onDelete:m,deleting:o.isPending})})]})]})}function qg(n={}){return Al({queryKey:ve.config,queryFn:uf.get,...n})}function Qg(){const n=vt();return Gt({mutationFn:uf.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:ve.config})}})}function Tf(n){return{threshold:n?.comparison?.threshold??2,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function Vg({source:n}){let s={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(dt,{variant:s[n]||"default",size:"sm",children:c[n]||n})}function Ys({title:n,source:s,description:c,children:o}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wide",children:n}),r.jsx(Vg,{source:s||"default"})]}),c&&r.jsx("p",{className:"text-sm text-slate-400",children:c}),r.jsx("div",{className:"space-y-4",children:o})]})}function Yg({config:n,sources:s,onSave:c,isSaving:o}){let d=Tf(n),[m,v]=h.useState(d),[x,b]=h.useState(!1),g=h.useCallback((E,_)=>{v(M=>({...M,[E]:_})),b(!0)},[]),y=h.useCallback(()=>{v(Tf(n)),b(!1)},[n]),N=h.useCallback(()=>{let E={comparison:{threshold:m.threshold},server:{port:m.port,timeout:m.timeout},build:{name:m.buildName,environment:m.environment},tdd:{openReport:m.openReport}};c(E,()=>b(!1))},[m,c]);return r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Ys,{title:"Comparison",source:s?.comparison,description:"Configure how screenshots are compared",children:r.jsx(ks,{label:"Threshold",type:"number",value:m.threshold,onChange:E=>g("threshold",parseFloat(E.target.value)),hint:"CIEDE2000 Delta E. 0 = exact, 2 = recommended",step:"0.1",min:"0"})})})}),r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs(Ys,{title:"Server",source:s?.server,description:"Local screenshot server configuration",children:[r.jsx(ks,{label:"Port",type:"number",value:m.port,onChange:E=>g("port",parseInt(E.target.value,10)),hint:"Default: 47392"}),r.jsx(ks,{label:"Timeout",type:"number",value:m.timeout,onChange:E=>g("timeout",parseInt(E.target.value,10)),hint:"Request timeout in milliseconds"})]})})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs(Ys,{title:"Build",source:s?.build,description:"Build naming and environment",children:[r.jsx(ks,{label:"Name Template",type:"text",value:m.buildName,onChange:E=>g("buildName",E.target.value),hint:"Use {timestamp} for current time"}),r.jsx(S1,{label:"Environment",value:m.environment,onChange:E=>g("environment",E.target.value),options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]})]})})}),r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Ys,{title:"TDD Mode",source:s?.tdd,description:"Development workflow preferences",children:r.jsx(N1,{label:"Auto-open Report",description:"Open dashboard in browser when starting TDD mode",checked:m.openReport,onChange:E=>g("openReport",E.target.checked)})})})})]}),r.jsx("div",{className:"lg:col-span-2",children:r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm text-slate-400",children:x?r.jsx("span",{className:"text-amber-400",children:"You have unsaved changes"}):r.jsx("span",{children:"Settings saved to project config"})}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Xe,{variant:"ghost",onClick:y,disabled:!x||o,children:"Reset"}),r.jsx(Xe,{variant:"primary",onClick:N,loading:o,disabled:!x,children:"Save Changes"})]})]})})})]})}function Gg(){let{data:n,isLoading:s,error:c,refetch:o}=qg(),d=Qg(),{addToast:m}=nl(),v=h.useCallback((x,b)=>{d.mutate(x,{onSuccess:()=>{b(),m("Settings saved successfully!","success")},onError:g=>{m(`Failed to save settings: ${g.message}`,"error")}})},[d,m]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Be,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-24"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})}),r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-20"}),r.jsx(Be,{variant:"text",className:"w-full h-10"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-16"}),r.jsx(Be,{variant:"text",className:"w-full h-10"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})}),r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-24"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})})]})]})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(df,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Xe,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx(Yg,{config:n?.config,sources:n?.sources,onSave:v,isSaving:d.isPending},JSON.stringify(n?.config))]})}function Gs({icon:n,label:s,value:c,subvalue:o,variant:d,iconColor:m}){return r.jsx(He,{variant:d,hover:!1,children:r.jsx(Ye,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:s}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${m}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function Zg(){const{addToast:n,confirm:s}=nl(),{data:c,isLoading:o,refetch:d}=Ls(),m=of(),v=v1(),x=c?.comparisons,b=c?.baseline,g=x?.length||0,y=x?.filter(B=>B.status==="passed").length||0,N=x?.filter(B=>B.status==="failed").length||0,E=x?.filter(B=>B.status==="new").length||0,_=g>0?Math.round(y/g*100):0,M=x?.some(B=>B.status==="failed"||B.status==="new"),L=h.useCallback(async()=>{await s("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&m.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:F=>{console.error("Failed to accept all baselines:",F),n("Failed to accept all baselines. Please try again.","error")}})},[m,n,s]),Q=h.useCallback(async()=>{await s("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:F=>{console.error("Failed to reset baselines:",F),n("Failed to reset baselines. Please try again.","error")}})},[v,n,s]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(E1,{value:_,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[y," of ",g," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(Gs,{icon:Or,label:"Total Screenshots",value:g,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(Gs,{icon:Os,label:"Passed",value:y,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(Gs,{icon:ea,label:"Failed",value:N,variant:N>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(Gs,{icon:Yo,label:"New",value:E,variant:E>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),b&&r.jsxs(He,{hover:!1,children:[r.jsx(Us,{icon:Ms,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:E>0&&r.jsxs(dt,{variant:"warning",dot:!0,children:[E," new without baseline"]})}),r.jsx(Ye,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:b.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:b.createdAt?new Date(b.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(He,{hover:!1,children:[r.jsx(Us,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(w1,{className:"flex flex-wrap gap-3",children:[r.jsx(Xe,{variant:"success",onClick:L,loading:m.isPending,disabled:!M||o,icon:Os,children:M?"Accept All Changes":"No Changes to Accept"}),r.jsx(Xe,{variant:"secondary",onClick:Q,loading:v.isPending,disabled:o,icon:Pa,children:"Reset Baselines"}),r.jsx(Xe,{variant:"ghost",onClick:()=>d(),loading:o,icon:Pa,className:"ml-auto",children:"Refresh"})]})]})]})}function Xg(n,s){const c=[];if(s==="shell")return n.split(`
|
|
211
|
-
`).forEach((v,
|
|
212
|
-
`).slice(0,
|
|
213
|
-
`).length+(
|
|
218
|
+
`,children:m?r.jsx(la,{className:"w-5 h-5"}):r.jsx(Go,{className:"w-5 h-5"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[n>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-red-500/20 text-red-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-red-400"}),n," changed"]}),s>0&&r.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-blue-500/20 text-blue-400 text-sm font-medium",children:[r.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-blue-400"}),s," new"]})]}),r.jsx("p",{className:"text-sm text-slate-400 mt-1",children:m?"Review visual differences and accept to update baselines":"New screenshots ready to be saved as baselines"})]}),r.jsxs(Ke,{variant:"success",onClick:c,loading:o,icon:aa,className:"flex-shrink-0","data-testid":"btn-accept-all",children:["Accept All (",d,")"]})]})]})}function qx(){let[,n]=Ds(),{addToast:s,confirm:c}=rl(),[o,d]=h.useState({}),{data:m,isLoading:v,refetch:g}=ks(),b=ff(),x=of(),y=df(),{filteredComparisons:N,filter:E,setFilter:_,sortBy:A,setSortBy:D,searchQuery:Q,setSearchQuery:H,selectedBrowser:V,setSelectedBrowser:$,selectedViewport:Z,setSelectedViewport:ne,availableFilters:oe,counts:Y}=zx(m?.comparisons),P=h.useCallback(q=>{let X=q.id||q.signature||q.name;X&&n(`/comparison/${encodeURIComponent(X)}`)},[n]),se=h.useCallback(q=>{d(X=>({...X,[q]:"accepting"})),x.mutate(q,{onSuccess:()=>{d(X=>({...X,[q]:"accepted"}))},onError:X=>{d(ce=>({...ce,[q]:void 0})),s(`Failed to accept: ${X.message}`,"error")}})},[x,s,d]),ze=h.useCallback(q=>{d(X=>({...X,[q]:"rejecting"})),y.mutate(q,{onSuccess:()=>{d(X=>({...X,[q]:"rejected"}))},onError:X=>{d(ce=>({...ce,[q]:void 0})),s(`Failed to reject: ${X.message}`,"error")}})},[y,s,d]),Re=h.useCallback(async()=>{await c("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&b.mutate(void 0,{onSuccess:()=>{s("All baselines accepted successfully","success")},onError:X=>{console.error("Failed to accept all baselines:",X),s("Failed to accept all baselines. Please try again.","error")}})},[b,s,c]),ve=!m?.comparisons||m.comparisons.length===0,_e=E!=="all"||Q.trim()||V!=="all"||Z!=="all",ot=m?.comparisons?.some(q=>q.status==="failed"||q.status==="new"),ue=m?.comparisons?.filter(q=>q.status==="failed").length||0,T=m?.comparisons?.filter(q=>q.status==="new").length||0;return ve?r.jsx(Rl,{icon:Wv,title:"No Screenshots Yet",description:"Run your tests with vizzlyScreenshot() to start capturing visual comparisons."}):r.jsxs("div",{className:"space-y-6",children:[r.jsx(Bx,{filter:E,setFilter:_,sortBy:A,setSortBy:D,searchQuery:Q,setSearchQuery:H,selectedBrowser:V,setSelectedBrowser:$,selectedViewport:Z,setSelectedViewport:ne,availableFilters:oe,counts:Y,onRefresh:g,loading:v}),ot&&r.jsx(Hx,{failedCount:ue,newCount:T,onAcceptAll:Re,isLoading:b.isPending}),N.length===0?r.jsx(He,{hover:!1,children:r.jsx(Ye,{className:"py-12",children:r.jsx(Rl,{icon:Np,title:"No matches",description:"No comparisons match your current filters.",action:_e&&r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>{_("all"),H(""),$("all"),ne("all")},children:"Clear all filters"})})})}):r.jsx(Ux,{comparisons:N,onSelectComparison:P,onAcceptComparison:se,onRejectComparison:ze,loadingStates:o})]})}function Qx({onComplete:n}){const[s,c]=h.useState(null),[o,d]=h.useState(null),m=sx(),v=ix(),{addToast:g}=rl();h.useEffect(()=>{async function x(){try{const y=await m.mutateAsync();c(y)}catch(y){d(y.message),g(`Failed to start login: ${y.message}`,"error")}}x()},[g,m.mutateAsync]);async function b(){if(s?.deviceCode){d(null);try{const x=await v.mutateAsync(s.deviceCode);x.status==="complete"?(g("Login successful!","success"),n?.()):x.status==="pending"?g("Still waiting for authorization...","info"):d("Unexpected response from server")}catch(x){d(x.message),g(`Check failed: ${x.message}`,"error")}}}return o?r.jsx(hf,{variant:"danger",title:"Login Error",children:o}):s?r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-8",children:[r.jsx("h3",{className:"text-xl font-semibold text-white mb-6",children:"Sign in to Vizzly"}),r.jsxs("div",{className:"bg-slate-900/50 rounded-xl p-6 mb-6 border border-slate-700/50 max-w-sm mx-auto",children:[r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"Click below to authorize:"}),r.jsx("a",{href:s.verificationUriComplete||s.verificationUri,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors mb-4",children:"Open Authorization Page"}),r.jsxs("div",{className:"mt-4 pt-4 border-t border-slate-700/50",children:[r.jsx("p",{className:"text-xs text-slate-500 mb-2",children:"Or enter this code manually:"}),r.jsx("div",{className:"text-2xl font-mono font-bold text-amber-400 tracking-wider",children:s.userCode})]})]}),r.jsx("p",{className:"text-sm text-slate-400 mb-4",children:"After authorizing in your browser, click the button below to complete sign in."}),r.jsx(Ke,{variant:"secondary",onClick:b,loading:v.isPending,children:"Check Status"})]})}):r.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[r.jsx(On,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400",children:"Starting login flow..."})]})}function Vx(){const[n,s]=h.useState(!1),c=vt(),{data:o,isLoading:d}=Af(),m=rx(),{addToast:v}=rl(),g=o?.user,b=o?.authenticated,x=h.useCallback(async()=>{try{await m.mutateAsync(),v("Logged out successfully","success")}catch(N){v(`Logout failed: ${N.message}`,"error")}},[m,v]),y=h.useCallback(()=>{s(!1),c.invalidateQueries({queryKey:xe.auth})},[c]);return d?r.jsx(_l,{}):n?r.jsxs("div",{className:"space-y-4",children:[r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>s(!1),children:"← Back"}),r.jsx(Qx,{onComplete:y})]}):b?r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{className:"flex items-start gap-4",children:[r.jsx("div",{className:"w-12 h-12 bg-amber-500 rounded-full flex items-center justify-center",children:r.jsx(zr,{className:"w-7 h-7 text-slate-900"})}),r.jsxs("div",{children:[r.jsx("h3",{className:"text-lg font-semibold text-white",children:g?.name||"User"}),r.jsx("p",{className:"text-sm text-slate-400",children:g?.email}),g?.organizationName&&r.jsx(dt,{variant:"default",className:"mt-2",children:g.organizationName})]})]}),r.jsx(Ke,{variant:"ghost",onClick:x,loading:m.isPending,icon:_v,children:"Sign Out"})]})})}):r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"text-center py-12",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-slate-700/50 flex items-center justify-center mx-auto mb-4",children:r.jsx(zr,{className:"w-8 h-8 text-slate-400"})}),r.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Not signed in"}),r.jsx("p",{className:"text-slate-400 mb-6 max-w-sm mx-auto",children:"Sign in to access projects and team features"}),r.jsx(Ke,{variant:"primary",onClick:()=>s(!0),icon:ko,children:"Sign In"})]})})}function Yx({mappings:n,onDelete:s,deleting:c}){const{addToast:o,confirm:d}=rl(),m=h.useCallback(async v=>{if(await d(`Remove project mapping for ${v}?`,"This will not delete any files, only the project association."))try{await s(v),o("Mapping removed successfully","success")}catch(b){o(`Failed to remove mapping: ${b.message}`,"error")}},[s,o,d]);return n.length===0?r.jsx(Rl,{icon:En,title:"No project mappings",description:"Link a directory to a Vizzly project using the CLI.",action:r.jsx("div",{className:"bg-slate-900/50 border border-slate-700/50 rounded-lg p-4 max-w-md mx-auto",children:r.jsx("code",{className:"text-sm text-amber-400 font-mono",children:"vizzly project:select"})})}):r.jsx("div",{className:"overflow-x-auto",children:r.jsxs("table",{className:"vz-table",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{children:"Directory"}),r.jsx("th",{children:"Project"}),r.jsx("th",{children:"Organization"}),r.jsx("th",{className:"text-right",children:"Actions"})]})}),r.jsx("tbody",{children:n.map(v=>r.jsxs("tr",{children:[r.jsx("td",{className:"font-mono text-sm",children:v.directory}),r.jsx("td",{className:"text-white",children:v.projectName||v.projectSlug}),r.jsx("td",{children:v.organizationSlug}),r.jsx("td",{className:"text-right",children:r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>m(v.directory),disabled:c,icon:Gp,className:"!p-2"})})]},v.directory))})]})})}function Gx(){const{data:n,isLoading:s,refetch:c}=fx(),o=dx(),d=n?.mappings||[],m=h.useCallback(async v=>{await o.mutateAsync(v)},[o]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Be,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(_l,{})}),r.jsx(_l,{})]}),r.jsx(_l,{})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Projects"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Manage your Vizzly account and directory mappings"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[r.jsx("div",{className:"lg:col-span-2",children:r.jsx(Vx,{})}),r.jsxs(He,{hover:!1,children:[r.jsx(Us,{title:"Quick Stats"}),r.jsx(Ye,{children:r.jsxs("div",{className:"flex justify-between items-center",children:[r.jsx("span",{className:"text-slate-400",children:"Project Mappings"}),r.jsx("span",{className:"text-2xl font-semibold font-mono text-white",children:d.length})]})})]})]}),r.jsxs(He,{hover:!1,children:[r.jsx(Us,{icon:En,title:"Project Mappings",iconColor:"bg-amber-500/10 text-amber-400",actions:r.jsx(Ke,{variant:"ghost",size:"sm",onClick:()=>c(),icon:ll,children:"Refresh"})}),r.jsx(Ye,{padding:"p-0",children:r.jsx(Yx,{mappings:d,onDelete:m,deleting:o.isPending})})]})]})}function Zx(n={}){return Ml({queryKey:xe.config,queryFn:cf.get,...n})}function Xx(){const n=vt();return Zt({mutationFn:cf.updateProject,onSuccess:()=>{n.invalidateQueries({queryKey:xe.config})}})}function Rf(n){return{threshold:n?.comparison?.threshold??2,port:n?.server?.port??47392,timeout:n?.server?.timeout??3e4,buildName:n?.build?.name??"Build {timestamp}",environment:n?.build?.environment??"test",openReport:n?.tdd?.openReport??!1}}function Kx({source:n}){let s={default:"default",project:"info",global:"purple",env:"success",cli:"warning"},c={default:"Default",project:"Project",global:"Global",env:"Environment",cli:"CLI Flag"};return r.jsx(dt,{variant:s[n]||"default",size:"sm",children:c[n]||n})}function Gs({title:n,source:s,description:c,children:o,noSource:d}){return r.jsxs("div",{className:"space-y-4",children:[r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("h3",{className:"text-sm font-semibold text-white uppercase tracking-wide",children:n}),!d&&r.jsx(Kx,{source:s||"default"})]}),c&&r.jsx("p",{className:"text-sm text-slate-400",children:c}),r.jsx("div",{className:"space-y-4",children:o})]})}function $x({config:n,sources:s,onSave:c,isSaving:o}){let d=Rf(n),[m,v]=h.useState(d),[g,b]=h.useState(!1),x=h.useCallback((E,_)=>{v(A=>({...A,[E]:_})),b(!0)},[v,b]),y=h.useCallback(()=>{v(Rf(n)),b(!1)},[n,v,b]),N=h.useCallback(()=>{let E={comparison:{threshold:m.threshold},server:{port:m.port,timeout:m.timeout},build:{name:m.buildName,environment:m.environment},tdd:{openReport:m.openReport}};c(E,()=>b(!1))},[m,c,b]);return r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Gs,{title:"Comparison",source:s?.comparison,description:"Configure how screenshots are compared",children:r.jsx(Bs,{label:"Threshold",type:"number",value:m.threshold,onChange:E=>x("threshold",parseFloat(E.target.value)),hint:"CIEDE2000 Delta E. 0 = exact, 2 = recommended",step:"0.1",min:"0"})})})}),r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs(Gs,{title:"Server",source:s?.server,description:"Local screenshot server configuration",children:[r.jsx(Bs,{label:"Port",type:"number",value:m.port,onChange:E=>x("port",parseInt(E.target.value,10)),hint:"Default: 47392"}),r.jsx(Bs,{label:"Timeout",type:"number",value:m.timeout,onChange:E=>x("timeout",parseInt(E.target.value,10)),hint:"Request timeout in milliseconds"})]})})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsxs(Gs,{title:"Build",source:s?.build,description:"Build naming and environment",children:[r.jsx(Bs,{label:"Name Template",type:"text",value:m.buildName,onChange:E=>x("buildName",E.target.value),hint:"Use {timestamp} for current time"}),r.jsx(C1,{label:"Environment",value:m.environment,onChange:E=>x("environment",E.target.value),options:[{value:"test",label:"Test"},{value:"development",label:"Development"},{value:"staging",label:"Staging"},{value:"production",label:"Production"}]})]})})}),r.jsx(He,{hover:!1,children:r.jsx(Ye,{children:r.jsx(Gs,{title:"TDD Mode",source:s?.tdd,description:"Development workflow preferences",children:r.jsx(A1,{label:"Auto-open Report",description:"Open dashboard in browser when starting TDD mode",checked:m.openReport,onChange:E=>x("openReport",E.target.checked)})})})})]}),r.jsx("div",{className:"lg:col-span-2",children:r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"flex items-center justify-between",children:[r.jsx("div",{className:"text-sm text-slate-400",children:g?r.jsx("span",{className:"text-amber-400",children:"You have unsaved changes"}):r.jsx("span",{children:"Settings saved to project config"})}),r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx(Ke,{variant:"ghost",onClick:y,disabled:!g||o,children:"Reset"}),r.jsx(Ke,{variant:"primary",onClick:N,loading:o,disabled:!g,children:"Save Changes"})]})]})})})]})}function Jx(){let{data:n,isLoading:s,error:c,refetch:o}=Zx(),d=Xx(),{addToast:m}=rl(),v=h.useCallback((g,b)=>{d.mutate(g,{onSuccess:()=>{b(),m("Settings saved successfully!","success")},onError:x=>{m(`Failed to save settings: ${x.message}`,"error")}})},[d,m]);return s?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx(Be,{variant:"heading",className:"w-32 mb-2"}),r.jsx(Be,{variant:"text",className:"w-64"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-24"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})}),r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-20"}),r.jsx(Be,{variant:"text",className:"w-full h-10"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})})]}),r.jsxs("div",{className:"space-y-6",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-16"}),r.jsx(Be,{variant:"text",className:"w-full h-10"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})}),r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"space-y-4",children:[r.jsx(Be,{variant:"text",className:"w-24"}),r.jsx(Be,{variant:"text",className:"w-full h-10"})]})})]})]})]}):c?r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsxs(hf,{variant:"danger",title:"Failed to load settings",dismissible:!0,onDismiss:()=>o(),children:[c.message,r.jsx(Ke,{variant:"danger",size:"sm",onClick:()=>o(),className:"mt-3",children:"Retry"})]})]}):r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Settings"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Configure your Vizzly local development server"})]}),r.jsx($x,{config:n?.config,sources:n?.sources,onSave:v,isSaving:d.isPending},JSON.stringify(n?.config))]})}function Zs({icon:n,label:s,value:c,subvalue:o,variant:d,iconColor:m}){return r.jsx(He,{variant:d,hover:!1,children:r.jsx(Ye,{padding:"p-5",children:r.jsxs("div",{className:"flex items-start justify-between",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:s}),r.jsx("p",{className:"text-2xl font-semibold font-mono text-white",children:c}),o&&r.jsx("p",{className:"text-xs text-slate-400 mt-1",children:o})]}),r.jsx("div",{className:`w-10 h-10 rounded-lg flex items-center justify-center ${m}`,children:r.jsx(n,{className:"w-5 h-5"})})]})})})}function Fx(){const{addToast:n,confirm:s}=rl(),{data:c,isLoading:o,refetch:d}=ks(),m=ff(),v=x1(),g=c?.comparisons,b=c?.baseline,x=g?.length||0,y=g?.filter(H=>H.status==="passed").length||0,N=g?.filter(H=>H.status==="failed").length||0,E=g?.filter(H=>H.status==="new").length||0,_=x>0?Math.round(y/x*100):0,A=g?.some(H=>H.status==="failed"||H.status==="new"),D=h.useCallback(async()=>{await s("This will update all failed and new screenshots.","Accept all changes as new baselines?")&&m.mutate(void 0,{onSuccess:()=>{n("All baselines accepted successfully","success")},onError:V=>{console.error("Failed to accept all baselines:",V),n("Failed to accept all baselines. Please try again.","error")}})},[m,n,s]),Q=h.useCallback(async()=>{await s("This will delete all baseline images and clear comparison history.","Reset all baselines?")&&v.mutate(void 0,{onSuccess:()=>{n("Baselines reset successfully","success")},onError:V=>{console.error("Failed to reset baselines:",V),n("Failed to reset baselines. Please try again.","error")}})},[v,n,s]);return r.jsxs("div",{className:"space-y-6",children:[r.jsxs("div",{children:[r.jsx("h1",{className:"text-2xl font-bold text-white",children:"Statistics"}),r.jsx("p",{className:"text-slate-400 mt-1",children:"Visual regression testing overview"})]}),r.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[r.jsx(He,{hover:!1,children:r.jsxs(Ye,{className:"flex flex-col items-center justify-center py-8",children:[r.jsx(M1,{value:_,label:"Pass Rate"}),r.jsxs("p",{className:"text-sm text-slate-400 mt-4",children:[y," of ",x," screenshots passing"]})]})}),r.jsxs("div",{className:"lg:col-span-2 grid grid-cols-2 gap-4",children:[r.jsx(Zs,{icon:Or,label:"Total Screenshots",value:x,iconColor:"bg-slate-700/50 text-slate-400"}),r.jsx(Zs,{icon:Os,label:"Passed",value:y,variant:"success",iconColor:"bg-emerald-500/10 text-emerald-400"}),r.jsx(Zs,{icon:la,label:"Failed",value:N,variant:N>0?"danger":void 0,iconColor:"bg-red-500/10 text-red-400"}),r.jsx(Zs,{icon:Go,label:"New",value:E,variant:E>0?"info":void 0,iconColor:"bg-blue-500/10 text-blue-400"})]})]}),b&&r.jsxs(He,{hover:!1,children:[r.jsx(Us,{icon:zs,title:"Current Baseline",iconColor:"bg-amber-500/10 text-amber-400",actions:E>0&&r.jsxs(dt,{variant:"warning",dot:!0,children:[E," new without baseline"]})}),r.jsx(Ye,{children:r.jsxs("div",{className:"grid grid-cols-2 gap-6",children:[r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Build Name"}),r.jsx("p",{className:"text-white font-medium",children:b.buildName||"default"})]}),r.jsxs("div",{children:[r.jsx("p",{className:"text-xs font-medium text-slate-500 uppercase tracking-wide mb-1",children:"Created"}),r.jsx("p",{className:"text-white font-medium",children:b.createdAt?new Date(b.createdAt).toLocaleString():"Unknown"})]})]})})]}),r.jsxs(He,{hover:!1,children:[r.jsx(Us,{title:"Baseline Management",description:"Accept changes to update baselines or reset to restore previous state"}),r.jsxs(N1,{className:"flex flex-wrap gap-3",children:[r.jsx(Ke,{variant:"success",onClick:D,loading:m.isPending,disabled:!A||o,icon:Os,children:A?"Accept All Changes":"No Changes to Accept"}),r.jsx(Ke,{variant:"secondary",onClick:Q,loading:v.isPending,disabled:o,icon:ll,children:"Reset Baselines"}),r.jsx(Ke,{variant:"ghost",onClick:()=>d(),loading:o,icon:ll,className:"ml-auto",children:"Refresh"})]})]})]})}function Wx(n,s){const c=[];if(s==="shell")return n.split(`
|
|
219
|
+
`).forEach((v,g)=>{const b=n.split(`
|
|
220
|
+
`).slice(0,g).join(`
|
|
221
|
+
`).length+(g>0?1:0);v.trim().startsWith("#")?c.push({type:"comment",start:b,end:b+v.length}):(v.trim().startsWith("npm")||v.trim().startsWith("npx"))&&c.push({type:"command",start:b,end:b+v.length})}),c;const o=[{type:"comment",regex:/\/\/.*$/gm},{type:"comment",regex:/\/\*[\s\S]*?\*\//g},{type:"string",regex:/'([^'\\]|\\.)*'/g},{type:"string",regex:/"([^"\\]|\\.)*"/g},{type:"string",regex:/`([^`\\]|\\.)*`/g},{type:"keyword",regex:/\b(import|export|from|const|let|var|function|class|if|else|return|await|async|test|it|describe|expect|func|let|class|import|require|RSpec|do|end|def|Vizzly)\b/g},{type:"function",regex:/\b([a-zA-Z_][a-zA-Z0-9_]*)\s*\(/g},{type:"number",regex:/\b\d+\.?\d*\b/g}];for(let{type:v,regex:g}of o){let b=g.exec(n);for(;b!==null;)c.push({type:v,start:b.index,end:b.index+b[0].length}),b=g.exec(n)}c.sort((v,g)=>v.start-g.start);const d=[];let m=0;return c.forEach(v=>{v.start>=m&&(d.push(v),m=v.end)}),d}function Ix({code:n,language:s="javascript"}){const c=h.useRef(null),o=s==="shell"||n.trim().startsWith("#")||n.trim().startsWith("npm");return h.useEffect(()=>{if(typeof window>"u"||!window.CSS?.highlights||!c.current)return;const d=c.current.firstChild;if(!d||d.nodeType!==window.Node.TEXT_NODE)return;const v=Wx(n,o?"shell":s).map(x=>{const y=new window.Range;return y.setStart(d,x.start),y.setEnd(d,x.end),{type:x.type,range:y}}),g=new Map;v.forEach(({type:x,range:y})=>{g.has(x)||g.set(x,[]),g.get(x).push(y)});const b=new Map;for(const[x,y]of g){const N=new window.Highlight(...y);b.set(x,N),window.CSS.highlights.set(`code-${x}`,N)}return()=>{for(const[x]of b)window.CSS.highlights.delete(`code-${x}`)}},[n,s,o]),r.jsx("pre",{className:"bg-slate-950 rounded-lg p-4 overflow-x-auto text-sm",children:r.jsx("code",{ref:c,className:"font-mono text-slate-300 block whitespace-pre",children:n})})}const Df=[{id:"playwright",name:"Playwright",code:`import { vizzlyScreenshot } from '@vizzly-testing/cli/client';
|
|
214
222
|
|
|
215
223
|
test('homepage', async ({ page }) => {
|
|
216
224
|
await page.goto('/');
|
|
@@ -259,4 +267,4 @@ class VisualTests: XCTestCase {
|
|
|
259
267
|
# Just run the CLI against your Storybook build:
|
|
260
268
|
|
|
261
269
|
npm run build-storybook
|
|
262
|
-
npx vizzly storybook ./storybook-static`}];function
|
|
270
|
+
npx vizzly storybook ./storybook-static`}];function Xs(){const[n,s]=h.useState("playwright"),c=Df.find(o=>o.id===n);return r.jsx("div",{className:"flex flex-col items-center justify-center py-12 px-6",children:r.jsxs("div",{className:"max-w-2xl w-full",children:[r.jsxs("div",{className:"text-center mb-8",children:[r.jsx("div",{className:"w-16 h-16 rounded-2xl bg-amber-500/10 flex items-center justify-center mx-auto mb-5",children:r.jsx(zs,{className:"w-8 h-8 text-amber-400"})}),r.jsx("h1",{className:"text-2xl font-bold text-white mb-2",children:"Waiting for Screenshots"}),r.jsx("p",{className:"text-slate-400",children:"Run your tests to start capturing visual comparisons"}),r.jsxs("div",{className:"mt-4 flex items-center justify-center gap-2 text-sm text-slate-500",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-amber-500 animate-pulse"}),"Listening for screenshots..."]})]}),r.jsxs("div",{className:"vz-card overflow-hidden",children:[r.jsx("div",{className:"border-b border-slate-700/50 px-4 pt-4",children:r.jsx("div",{className:"flex items-center gap-1 overflow-x-auto scrollbar-hide -mb-px",children:Df.map(o=>r.jsx("button",{type:"button",onClick:()=>s(o.id),className:`px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors whitespace-nowrap ${n===o.id?"bg-slate-800 text-white border-t border-x border-slate-700/50":"text-slate-400 hover:text-white hover:bg-slate-800/50"}`,children:o.name},o.id))})}),r.jsx("div",{className:"p-4",children:r.jsx(Ix,{code:c?.code||""})})]}),r.jsx("div",{className:"mt-6 text-center",children:r.jsxs("a",{href:"https://docs.vizzly.dev/",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm text-slate-400 hover:text-amber-400 transition-colors",children:[r.jsx(Kv,{className:"w-4 h-4"}),"View full documentation"]})})]})})}function Px(){return r.jsxs("div",{className:"flex flex-col items-center justify-center py-32",children:[r.jsx(On,{size:"lg",className:"text-amber-400 mb-4"}),r.jsx("p",{className:"text-slate-400 text-sm",children:"Loading report data..."})]})}function eg({error:n,onRetry:s}){return r.jsx(Rl,{icon:la,title:"Failed to load report",description:n||"An unexpected error occurred while loading the report data.",action:r.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 bg-amber-500 hover:bg-amber-400 text-slate-900 font-medium rounded-lg transition-colors",children:"Try Again"})})}function tg(){const[n,s]=Ds(),{data:c,isLoading:o,error:d,refetch:m}=ks(),v=n.startsWith("/comparison/"),g=n==="/stats"?"stats":n==="/settings"?"settings":n==="/projects"?"projects":n==="/builds"?"builds":"comparisons",b=y=>{s(y==="stats"?"/stats":y==="settings"?"/settings":y==="projects"?"/projects":y==="builds"?"/builds":"/")},x=n==="/settings"||n==="/projects"||n==="/builds";return o&&!c&&!x?r.jsx(Tn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Px,{})}):d&&!c&&!x?r.jsx(Tn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(eg,{error:d.message,onRetry:m})}):!c&&!x?r.jsx(Tn,{currentView:g,onNavigate:b,loading:o,children:r.jsx(Xs,{})}):v?c?r.jsx(uf,{children:r.jsx(Tl,{path:"/comparison/:id",children:r.jsx(Cx,{})})}):r.jsx(Tn,{currentView:"comparisons",onNavigate:b,loading:o,children:r.jsx(Xs,{})}):r.jsx(Tn,{currentView:g,onNavigate:b,loading:o,children:r.jsxs(uf,{children:[r.jsx(Tl,{path:"/stats",children:c?r.jsx(Fx,{}):r.jsx(Xs,{})}),r.jsx(Tl,{path:"/settings",children:r.jsx(Jx,{})}),r.jsx(Tl,{path:"/projects",children:r.jsx(Gx,{})}),r.jsx(Tl,{path:"/builds",children:r.jsx(wx,{})}),r.jsx(Tl,{path:"/",children:c?r.jsx(qx,{}):r.jsx(Xs,{})})]})})}const ag=new rv({defaultOptions:{queries:{staleTime:5*1e3,refetchOnWindowFocus:!0,retry:1}}});let _f=()=>{let n=document.getElementById("vizzly-reporter-root");n||(n=document.createElement("div"),n.id="vizzly-reporter-root",document.body.appendChild(n)),Mv.createRoot(n).render(r.jsx(h.StrictMode,{children:r.jsx(ov,{client:ag,children:r.jsx(hx,{children:r.jsx(tg,{})})})}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",_f):_f()})();
|