187 lines
674 KiB
JavaScript
187 lines
674 KiB
JavaScript
function XE(t,r){for(var a=0;a<r.length;a++){const o=r[a];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in t)){const c=Object.getOwnPropertyDescriptor(o,s);c&&Object.defineProperty(t,s,c.get?c:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&o(f)}).observe(document,{childList:!0,subtree:!0});function a(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function o(s){if(s.ep)return;s.ep=!0;const c=a(s);fetch(s.href,c)}})();function zb(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var tm={exports:{}},us={};/**
|
|||
|
|
* @license React
|
||
|
|
* react-jsx-runtime.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var p1;function KE(){if(p1)return us;p1=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function a(o,s,c){var f=null;if(c!==void 0&&(f=""+c),s.key!==void 0&&(f=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:t,type:o,key:f,ref:s!==void 0?s:null,props:c}}return us.Fragment=r,us.jsx=a,us.jsxs=a,us}var h1;function ZE(){return h1||(h1=1,tm.exports=KE()),tm.exports}var u=ZE(),nm={exports:{}},je={};/**
|
||
|
|
* @license React
|
||
|
|
* react.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var g1;function QE(){if(g1)return je;g1=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),x=Symbol.iterator;function C(M){return M===null||typeof M!="object"?null:(M=x&&M[x]||M["@@iterator"],typeof M=="function"?M:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,j={};function N(M,D,H){this.props=M,this.context=D,this.refs=j,this.updater=H||E}N.prototype.isReactComponent={},N.prototype.setState=function(M,D){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,D,"setState")},N.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function A(){}A.prototype=N.prototype;function k(M,D,H){this.props=M,this.context=D,this.refs=j,this.updater=H||E}var T=k.prototype=new A;T.constructor=k,w(T,N.prototype),T.isPureReactComponent=!0;var z=Array.isArray;function P(){}var B={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function W(M,D,H){var U=H.ref;return{$$typeof:t,type:M,key:D,ref:U!==void 0?U:null,props:H}}function oe(M,D){return W(M.type,D,M.props)}function ie(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function me(M){var D={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(H){return D[H]})}var de=/\/+/g;function se(M,D){return typeof M=="object"&&M!==null&&M.key!=null?me(""+M.key):D.toString(36)}function fe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(P,P):(M.status="pending",M.then(function(D){M.status==="pending"&&(M.status="fulfilled",M.value=D)},function(D){M.status==="pending"&&(M.status="rejected",M.reason=D)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function _(M,D,H,U,I){var J=typeof M;(J==="undefined"||J==="boolean")&&(M=null);var K=!1;if(M===null)K=!0;else switch(J){case"bigint":case"string":case"number":K=!0;break;case"object":switch(M.$$typeof){case t:case r:K=!0;break;case b:return K=M._init,_(K(M._payload),D,H,U,I)}}if(K)return I=I(M),K=U===""?"."+se(M,0):U,z(I)?(H="",K!=null&&(H=K.replace(de,"$&/")+"/"),_(I,D,H,"",function(we){return we})):I!=null&&(ie(I)&&(I=oe(I,H+(I.key==null||M&&M.key===I.key?"":(""+I.key).replace(de,"$&/")+"/")+K)),D.push(I)),1;K=0;var ce=U===""?".":U+":";if(z(M))for(var ue=0;ue<M.length;ue++)U=M[ue],J=ce+se(U,ue),K+=_(U,D,H,J,I);else if(ue=C(M),typeof ue=="function")for(M=ue.call(M),ue=0;!(U=M.next()).done;)U=U.value,J=ce+se(U,ue++),K+=_(U,D,H,J,I);else if(J==="object"){if(typeof M.then=="function")return _(fe(M),D,H,U,I);throw D=String(M),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return K}function q(M,D,H){if(M==null)return M;var U=[],I=0;return _(M,U,"","",function(J){return D.call(H,J,I++)}),U}function ee(M){if(M._status===-1){var D=M._result;D=D(),D.then(function(H){(M._status===0||M._status===-1)&&(M._status=1,M._result=H)},function(H){(M._status===0||M._status===-1)&&(M._status=2,M._result=H)}),M._status===-1&&(M._status=0,M._result=D)}if(M._status===1)return M._result.default;throw M._result}var ne=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(D))return}else if(typeof process=="obje
|
||
|
|
* @license React
|
||
|
|
* scheduler.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var y1;function JE(){return y1||(y1=1,(function(t){function r(_,q){var ee=_.length;_.push(q);e:for(;0<ee;){var ne=ee-1>>>1,Q=_[ne];if(0<s(Q,q))_[ne]=q,_[ee]=Q,ee=ne;else break e}}function a(_){return _.length===0?null:_[0]}function o(_){if(_.length===0)return null;var q=_[0],ee=_.pop();if(ee!==q){_[0]=ee;e:for(var ne=0,Q=_.length,M=Q>>>1;ne<M;){var D=2*(ne+1)-1,H=_[D],U=D+1,I=_[U];if(0>s(H,ee))U<Q&&0>s(I,H)?(_[ne]=I,_[U]=ee,ne=U):(_[ne]=H,_[D]=ee,ne=D);else if(U<Q&&0>s(I,ee))_[ne]=I,_[U]=ee,ne=U;else break e}}return q}function s(_,q){var ee=_.sortIndex-q.sortIndex;return ee!==0?ee:_.id-q.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var f=Date,m=f.now();t.unstable_now=function(){return f.now()-m}}var g=[],h=[],b=1,v=null,x=3,C=!1,E=!1,w=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function T(_){for(var q=a(h);q!==null;){if(q.callback===null)o(h);else if(q.startTime<=_)o(h),q.sortIndex=q.expirationTime,r(g,q);else break;q=a(h)}}function z(_){if(w=!1,T(_),!E)if(a(g)!==null)E=!0,P||(P=!0,me());else{var q=a(h);q!==null&&fe(z,q.startTime-_)}}var P=!1,B=-1,V=5,W=-1;function oe(){return j?!0:!(t.unstable_now()-W<V)}function ie(){if(j=!1,P){var _=t.unstable_now();W=_;var q=!0;try{e:{E=!1,w&&(w=!1,A(B),B=-1),C=!0;var ee=x;try{t:{for(T(_),v=a(g);v!==null&&!(v.expirationTime>_&&oe());){var ne=v.callback;if(typeof ne=="function"){v.callback=null,x=v.priorityLevel;var Q=ne(v.expirationTime<=_);if(_=t.unstable_now(),typeof Q=="function"){v.callback=Q,T(_),q=!0;break t}v===a(g)&&o(g),T(_)}else o(g);v=a(g)}if(v!==null)q=!0;else{var M=a(h);M!==null&&fe(z,M.startTime-_),q=!1}}break e}finally{v=null,x=ee,C=!1}q=void 0}}finally{q?me():P=!1}}}var me;if(typeof k=="function")me=function(){k(ie)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,se=de.port2;de.port1.onmessage=ie,me=function(){se.postMessage(null)}}else me=function(){N(ie,0)};function fe(_,q){B=N(function(){_(t.unstable_now())},q)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(_){_.callback=null},t.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<_?Math.floor(1e3/_):5},t.unstable_getCurrentPriorityLevel=function(){return x},t.unstable_next=function(_){switch(x){case 1:case 2:case 3:var q=3;break;default:q=x}var ee=x;x=q;try{return _()}finally{x=ee}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(_,q){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var ee=x;x=_;try{return q()}finally{x=ee}},t.unstable_scheduleCallback=function(_,q,ee){var ne=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ne+ee:ne):ee=ne,_){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,_={id:b++,callback:q,priorityLevel:_,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ne?(_.sortIndex=ee,r(h,_),a(g)===null&&_===a(h)&&(w?(A(B),B=-1):w=!0,fe(z,ee-ne))):(_.sortIndex=Q,r(g,_),E||C||(E=!0,P||(P=!0,me()))),_},t.unstable_shouldYield=oe,t.unstable_wrapCallback=function(_){var q=x;return function(){var ee=x;x=q;try{return _.apply(this,arguments)}finally{x=ee}}}})(om)),om}var b1;function e3(){return b1||(b1=1,am.exports=JE()),am.exports}var lm={exports:{}},Bt={};/**
|
||
|
|
* @license React
|
||
|
|
* react-dom.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var x1;function t3(){if(x1)return Bt;x1=1;var t=Jc();function r(g){var h="https://react.dev/errors/"+g;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)h+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+g+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var o={d:{f:a,r:function(){throw Error(r(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(g,h,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:v==null?null:""+v,children:g,containerInfo:h,implementation:b}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,h){if(g==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Bt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Bt.createPortal=function(g,h){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(r(299));return c(g,h,null,b)},Bt.flushSync=function(g){var h=f.T,b=o.p;try{if(f.T=null,o.p=2,g)return g()}finally{f.T=h,o.p=b,o.d.f()}},Bt.preconnect=function(g,h){typeof g=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,o.d.C(g,h))},Bt.prefetchDNS=function(g){typeof g=="string"&&o.d.D(g)},Bt.preinit=function(g,h){if(typeof g=="string"&&h&&typeof h.as=="string"){var b=h.as,v=m(b,h.crossOrigin),x=typeof h.integrity=="string"?h.integrity:void 0,C=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;b==="style"?o.d.S(g,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:x,fetchPriority:C}):b==="script"&&o.d.X(g,{crossOrigin:v,integrity:x,fetchPriority:C,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Bt.preinitModule=function(g,h){if(typeof g=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var b=m(h.as,h.crossOrigin);o.d.M(g,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&o.d.M(g)},Bt.preload=function(g,h){if(typeof g=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var b=h.as,v=m(b,h.crossOrigin);o.d.L(g,b,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Bt.preloadModule=function(g,h){if(typeof g=="string")if(h){var b=m(h.as,h.crossOrigin);o.d.m(g,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else o.d.m(g)},Bt.requestFormReset=function(g){o.d.r(g)},Bt.unstable_batchedUpdates=function(g,h){return g(h)},Bt.useFormState=function(g,h,b){return f.H.useFormState(g,h,b)},Bt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Bt.version="19.2.6",Bt}var S1;function Pb(){if(S1)return lm.exports;S1=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),lm.exports=t3(),lm.exports}/**
|
||
|
|
* @license React
|
||
|
|
* react-dom-client.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var C1;function n3(){if(C1)return ds;C1=1;var t=e3(),r=Jc(),a=Pb();function o(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function f(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function g(e){if(c(e)!==e)throw Error(o(188))}function h(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(o(188));return n!==e?null:e}for(var l=e,i=n;;){var p=l.return;if(p===null)break;var y=p.alternate;if(y===null){if(i=p.return,i!==null){l=i;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===l)return g(p),e;if(y===i)return g(p),n;y=y.sibling}throw Error(o(188))}if(l.return!==i.return)l=p,i=y;else{for(var S=!1,R=p.child;R;){if(R===l){S=!0,l=p,i=y;break}if(R===i){S=!0,i=p,l=y;break}R=R.sibling}if(!S){for(R=y.child;R;){if(R===l){S=!0,l=y,i=p;break}if(R===i){S=!0,i=y,l=p;break}R=R.sibling}if(!S)throw Error(o(189))}}if(l.alternate!==i)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?e:n}function b(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=b(e),n!==null)return n;e=e.sibling}return null}var v=Object.assign,x=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),ie=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=ie&&e[ie]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function se(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case w:return"Fragment";case N:return"Profiler";case j:return"StrictMode";case z:return"Suspense";case P:return"SuspenseList";case W:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case k:return e.displayName||"Context";case A:return(e._context.displayName||"Context")+".Consumer";case T:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return n=e.displayName||null,n!==null?n:se(e.type)||"Memo";case V:n=e._payload,e=e._init;try{return se(e(n))}catch{}}return null}var fe=Array.isArray,_=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ne=[],Q=-1;function M(e){return{current:e}}function D(e){0>Q||(e.current=ne[Q],ne[Q]=null,Q--)}function H(e,n){Q++,ne[Q]=e.current,e.current=n}var U=M(null),I=M(null),J=M(null),K=M(null);function ce(e,n){switch(H(J,n),H(I,e),H(U,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Py(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Py(n),e=By(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(U),H(U,e)}function ue(){D(U),D(I),D(J)}function we(e){e.memoizedState!==null&&H(K,e);var n=U.current,l=By(n,e.type);n!==l&&(H(I,e),H(U,l))}function Re(e){I.current=
|
||
|
|
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
|
|
`+Ne+e+st}var zn=!1;function bn(e,n){if(!e||zn)return"";zn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(n){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(X){var F=X}Reflect.construct(e,[],re)}else{try{re.call()}catch(X){F=X}e.call(re.prototype)}}else{try{throw Error()}catch(X){F=X}(re=e())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(X){if(X&&F&&typeof X.stack=="string")return[X.stack,F.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=i.DetermineComponentFrameRoot(),S=y[0],R=y[1];if(S&&R){var O=S.split(`
|
||
|
|
`),Y=R.split(`
|
||
|
|
`);for(p=i=0;i<O.length&&!O[i].includes("DetermineComponentFrameRoot");)i++;for(;p<Y.length&&!Y[p].includes("DetermineComponentFrameRoot");)p++;if(i===O.length||p===Y.length)for(i=O.length-1,p=Y.length-1;1<=i&&0<=p&&O[i]!==Y[p];)p--;for(;1<=i&&0<=p;i--,p--)if(O[i]!==Y[p]){if(i!==1||p!==1)do if(i--,p--,0>p||O[i]!==Y[p]){var Z=`
|
||
|
|
`+O[i].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=i&&0<=p);break}}}finally{zn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?We(l):""}function rn(e,n){switch(e.tag){case 26:case 27:case 5:return We(e.type);case 16:return We("Lazy");case 13:return e.child!==n&&n!==null?We("Suspense Fallback"):We("Suspense");case 19:return We("SuspenseList");case 0:case 15:return bn(e.type,!1);case 11:return bn(e.type.render,!1);case 1:return bn(e.type,!0);case 31:return We("Activity");default:return""}}function ba(e){try{var n="",l=null;do n+=rn(e,l),l=e,e=e.return;while(e);return n}catch(i){return`
|
||
|
|
Error generating stack: `+i.message+`
|
||
|
|
`+i.stack}}var wt=Object.prototype.hasOwnProperty,vl=t.unstable_scheduleCallback,yl=t.unstable_cancelCallback,Ut=t.unstable_shouldYield,Lr=t.unstable_requestPaint,Ht=t.unstable_now,Iu=t.unstable_getCurrentPriorityLevel,xa=t.unstable_ImmediatePriority,ai=t.unstable_UserBlockingPriority,Sa=t.unstable_NormalPriority,bl=t.unstable_LowPriority,cr=t.unstable_IdlePriority,oi=t.log,zr=t.unstable_setDisableYieldValue,Ca=null,It=null;function Pn(e){if(typeof oi=="function"&&zr(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(Ca,e)}catch{}}var zt=Math.clz32?Math.clz32:Xn,Vu=Math.log,xl=Math.LN2;function Xn(e){return e>>>=0,e===0?32:31-(Vu(e)/xl|0)|0}var ro=256,ao=262144,wa=4194304;function Kn(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ee(e,n,l){var i=e.pendingLanes;if(i===0)return 0;var p=0,y=e.suspendedLanes,S=e.pingedLanes;e=e.warmLanes;var R=i&134217727;return R!==0?(i=R&~y,i!==0?p=Kn(i):(S&=R,S!==0?p=Kn(S):l||(l=R&~e,l!==0&&(p=Kn(l))))):(R=i&~y,R!==0?p=Kn(R):S!==0?p=Kn(S):l||(l=i&~e,l!==0&&(p=Kn(l)))),p===0?0:n!==0&&n!==p&&(n&y)===0&&(y=p&-p,l=n&-n,y>=l||y===32&&(l&4194048)!==0)?n:p}function et(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Et(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pt(){var e=wa;return wa<<=1,(wa&62914560)===0&&(wa=4194304),e}function Pr(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function ot(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yt(e,n,l,i,p,y){var S=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var R=e.entanglements,O=e.expirationTimes,Y=e.hiddenUpdates;for(l=S&~l;0<l;){var Z=31-zt(l),re=1<<Z;R[Z]=0,O[Z]=-1;var F=Y[Z];if(F!==null)for(Y[Z]=null,Z=0;Z<F.length;Z++){var X=F[Z];X!==null&&(X.lane&=-536870913)}l&=~re}i!==0&&Ea(e,i,0),y!==0&&p===0&&e.tag!==0&&(e.suspendedLanes|=y&~(S&~n))}function Ea(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var i=31-zt(n);e.entangledLanes|=n,e.entanglements[i]=e.entanglements[i]|1073741824|l&261930}function Ft(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var i=31-zt(l),p=1<<i;p&n|e[i]&n&&(e[i]|=n),l&=~p}}function Wt(e,n){var l=n&-n;return l=(l&42)!==0?1:oo(l),(l&(e.suspendedLanes|n))!==0?0:l}function oo(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 Bn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gu(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:s1(e.type))}function wh(e,n){var l=q.p;try{return q.p=e,n()}finally{q.p=l}}var Br=Math.random().toString(36).slice(2),At="__reactFiber$"+Br,qt="__reactProps$"+Br,lo="__reactContainer$"+Br,Yu="__reactEvents$"+Br,Bw="__reactListeners$"+Br,$w="__reactHandles$"+Br,Eh="__reactResources$"+Br,Sl="__reactMarker$"+Br;functi
|
||
|
|
`).replace(vE,"")}function Ly(e,n){return n=Dy(n),Dy(e)===n}function Ye(e,n,l,i,p,y){switch(l){case"children":typeof i=="string"?n==="body"||n==="textarea"&&i===""||mo(e,i):(typeof i=="number"||typeof i=="bigint")&&n!=="body"&&mo(e,""+i);break;case"className":si(e,"class",i);break;case"tabIndex":si(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":si(e,l,i);break;case"style":Lh(e,i,y);break;case"data":if(n!=="object"){si(e,"data",i);break}case"src":case"href":if(i===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=ci(""+i),e.setAttribute(l,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(l,"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 y=="function"&&(l==="formAction"?(n!=="input"&&Ye(e,n,"name",p.name,p,null),Ye(e,n,"formEncType",p.formEncType,p,null),Ye(e,n,"formMethod",p.formMethod,p,null),Ye(e,n,"formTarget",p.formTarget,p,null)):(Ye(e,n,"encType",p.encType,p,null),Ye(e,n,"method",p.method,p,null),Ye(e,n,"target",p.target,p,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(l);break}i=ci(""+i),e.setAttribute(l,i);break;case"onClick":i!=null&&(e.onclick=dr);break;case"onScroll":i!=null&&Le("scroll",e);break;case"onScrollEnd":i!=null&&Le("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(o(61));if(l=i.__html,l!=null){if(p.children!=null)throw Error(o(60));e.innerHTML=l}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}l=ci(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""+i):e.removeAttribute(l);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":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":i===!0?e.setAttribute(l,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(l,i):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(l,i):e.removeAttribute(l);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(l):e.setAttribute(l,i);break;case"popover":Le("beforetoggle",e),Le("toggle",e),li(e,"popover",i);break;case"xlinkActuate":ur(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ur(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ur(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ur(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ur(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ur(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ur(e,"http://www.w3.org/XML/1998/namespace","xml:ba
|
||
|
|
* react-router v7.15.1
|
||
|
|
*
|
||
|
|
* Copyright (c) Remix Software Inc.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE.md file in the root directory of this source tree.
|
||
|
|
*
|
||
|
|
* @license MIT
|
||
|
|
*/var E1="popstate";function N1(t){return typeof t=="object"&&t!=null&&"pathname"in t&&"search"in t&&"hash"in t&&"state"in t&&"key"in t}function o3(t={}){function r(o,s){var h;let c=(h=s.state)==null?void 0:h.masked,{pathname:f,search:m,hash:g}=c||o.location;return _m("",{pathname:f,search:m,hash:g},s.state&&s.state.usr||null,s.state&&s.state.key||"default",c?{pathname:o.location.pathname,search:o.location.search,hash:o.location.hash}:void 0)}function a(o,s){return typeof s=="string"?s:Es(s)}return s3(r,a,null,t)}function at(t,r){if(t===!1||t===null||typeof t>"u")throw new Error(r)}function On(t,r){if(!t){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function l3(){return Math.random().toString(36).substring(2,10)}function j1(t,r){return{usr:t.state,key:t.key,idx:r,masked:t.mask?{pathname:t.pathname,search:t.search,hash:t.hash}:void 0}}function _m(t,r,a=null,o,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof r=="string"?ll(r):r,state:a,key:r&&r.key||o||l3(),mask:s}}function Es({pathname:t="/",search:r="",hash:a=""}){return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function ll(t){let r={};if(t){let a=t.indexOf("#");a>=0&&(r.hash=t.substring(a),t=t.substring(0,a));let o=t.indexOf("?");o>=0&&(r.search=t.substring(o),t=t.substring(0,o)),t&&(r.pathname=t)}return r}function s3(t,r,a,o={}){let{window:s=document.defaultView,v5Compat:c=!1}=o,f=s.history,m="POP",g=null,h=b();h==null&&(h=0,f.replaceState({...f.state,idx:h},""));function b(){return(f.state||{idx:null}).idx}function v(){m="POP";let j=b(),N=j==null?null:j-h;h=j,g&&g({action:m,location:w.location,delta:N})}function x(j,N){m="PUSH";let A=N1(j)?j:_m(w.location,j,N);h=b()+1;let k=j1(A,h),T=w.createHref(A.mask||A);try{f.pushState(k,"",T)}catch(z){if(z instanceof DOMException&&z.name==="DataCloneError")throw z;s.location.assign(T)}c&&g&&g({action:m,location:w.location,delta:1})}function C(j,N){m="REPLACE";let A=N1(j)?j:_m(w.location,j,N);h=b();let k=j1(A,h),T=w.createHref(A.mask||A);f.replaceState(k,"",T),c&&g&&g({action:m,location:w.location,delta:0})}function E(j){return i3(j)}let w={get action(){return m},get location(){return t(s,f)},listen(j){if(g)throw new Error("A history only accepts one active listener");return s.addEventListener(E1,v),g=j,()=>{s.removeEventListener(E1,v),g=null}},createHref(j){return r(s,j)},createURL:E,encodeLocation(j){let N=E(j);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:x,replace:C,go(j){return f.go(j)}};return w}function i3(t,r=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),at(a,"No window.location.(origin|href) available to create URL");let o=typeof t=="string"?t:Es(t);return o=o.replace(/ $/,"%20"),!r&&o.startsWith("//")&&(o=a+o),new URL(o,a)}function Bb(t,r,a="/"){return c3(t,r,a,!1)}function c3(t,r,a,o,s){let c=typeof r=="string"?ll(r):r,f=kr(c.pathname||"/",a);if(f==null)return null;let m=u3(t),g=null,h=C3(f);for(let b=0;g==null&&b<m.length;++b)g=x3(m[b],h,o);return g}function u3(t){let r=$b(t);return d3(r),r}function $b(t,r=[],a=[],o="",s=!1){let c=(f,m,g=s,h)=>{let b={relativePath:h===void 0?f.path||"":h,caseSensitive:f.caseSensitive===!0,childrenIndex:m,route:f};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(o)&&g)return;at(b.relativePath.startsWith(o),`Absolute route path "${b.relativePath}" nested under path "${o}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(o.length)}let v=Gn([o,b.relativePath]),x=a.concat(b);f.children&&f.children.length>0&&(at(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),$b(f.children,r,x,v,g)),!(f.path==null&&!f.index)&&r.push({path:v,score:y3(v,f.index),routesMeta:x})};return t.forEach((f,m)=>{var g;if(f.path===""||!((g=f.path)!=null&&g.includes("?")))c(f,m);else for(let h of Ub(f.path))c(f,m,!0,h)}),r}function Ub(t){let r=t.split("/");i
|
||
|
|
|
||
|
|
Please change the parent <Route path="${N}"> to <Route path="${N==="/"?"*":`${N}/*`}">.`)}let b=Dn(),v;if(r){let N=typeof r=="string"?ll(r):r;at(g==="/"||((j=N.pathname)==null?void 0:j.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${N.pathname}" was given in the \`location\` prop.`),v=N}else v=b;let x=v.pathname||"/",C=x;if(g!=="/"){let N=g.replace(/^\//,"").split("/");C="/"+x.replace(/^\//,"").split("/").slice(N.length).join("/")}let E=a&&a.state.matches.length?a.state.matches.map(N=>Object.assign(N,{route:a.manifest[N.route.id]||N.route})):Bb(t,{pathname:C});On(h||E!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),On(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let w=X3(E&&E.map(N=>Object.assign({},N,{params:Object.assign({},f,N.params),pathname:Gn([g,o.encodeLocation?o.encodeLocation(N.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathname]),pathnameBase:N.pathnameBase==="/"?g:Gn([g,o.encodeLocation?o.encodeLocation(N.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:N.pathnameBase])})),s,a);return r&&w?d.createElement(Bs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...v},navigationType:"POP"}},w):w}function Y3(){let t=e4(),r=k3(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,o="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:o},c={padding:"2px 4px",backgroundColor:o},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=d.createElement(d.Fragment,null,d.createElement("p",null,"💿 Hey developer 👋"),d.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",d.createElement("code",{style:c},"ErrorBoundary")," or"," ",d.createElement("code",{style:c},"errorElement")," prop on your route.")),d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},r),a?d.createElement("pre",{style:s},a):null,f)}var F3=d.createElement(Y3,null),Zb=class extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){this.props.onError?this.props.onError(t,r):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const a=$3(t.digest);a&&(t=a)}let r=t!==void 0?d.createElement(Wn.Provider,{value:this.props.routeContext},d.createElement(hp.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?d.createElement(W3,{error:t},r):r}};Zb.contextType=Yb;var im=new WeakMap;function W3({children:t,error:r}){let{basename:a}=d.useContext(gn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let o=B3(r.digest);if(o){let s=im.get(r);if(s)throw s;let c=Vb(o.location,a);if(Ib&&!im.get(r))if(c.isExternal||o.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:o.replace}));throw im.
|
||
|
|
.`.concat(T9,` {
|
||
|
|
overflow: hidden `).concat(o,`;
|
||
|
|
padding-right: `).concat(m,"px ").concat(o,`;
|
||
|
|
}
|
||
|
|
body[`).concat(el,`] {
|
||
|
|
overflow: hidden `).concat(o,`;
|
||
|
|
overscroll-behavior: contain;
|
||
|
|
`).concat([r&&"position: relative ".concat(o,";"),a==="margin"&&`
|
||
|
|
padding-left: `.concat(s,`px;
|
||
|
|
padding-top: `).concat(c,`px;
|
||
|
|
padding-right: `).concat(f,`px;
|
||
|
|
margin-left:0;
|
||
|
|
margin-top:0;
|
||
|
|
margin-right: `).concat(m,"px ").concat(o,`;
|
||
|
|
`),a==="padding"&&"padding-right: ".concat(m,"px ").concat(o,";")].filter(Boolean).join(""),`
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(Oc,` {
|
||
|
|
right: `).concat(m,"px ").concat(o,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(Dc,` {
|
||
|
|
margin-right: `).concat(m,"px ").concat(o,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(Oc," .").concat(Oc,` {
|
||
|
|
right: 0 `).concat(o,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
.`).concat(Dc," .").concat(Dc,` {
|
||
|
|
margin-right: 0 `).concat(o,`;
|
||
|
|
}
|
||
|
|
|
||
|
|
body[`).concat(el,`] {
|
||
|
|
`).concat(A9,": ").concat(m,`px;
|
||
|
|
}
|
||
|
|
`)},ib=function(){var t=parseInt(document.body.getAttribute(el)||"0",10);return isFinite(t)?t:0},q9=function(){d.useEffect(function(){return document.body.setAttribute(el,(ib()+1).toString()),function(){var t=ib()-1;t<=0?document.body.removeAttribute(el):document.body.setAttribute(el,t.toString())}},[])},X9=function(t){var r=t.noRelative,a=t.noImportant,o=t.gapMode,s=o===void 0?"margin":o;q9();var c=d.useMemo(function(){return Y9(s)},[s]);return d.createElement(F9,{styles:W9(c,!r,s,a?"":"!important")})},Vm=!1;if(typeof window<"u")try{var Nc=Object.defineProperty({},"passive",{get:function(){return Vm=!0,!0}});window.addEventListener("test",Nc,Nc),window.removeEventListener("test",Nc,Nc)}catch{Vm=!1}var Fo=Vm?{passive:!1}:!1,K9=function(t){return t.tagName==="TEXTAREA"},Ex=function(t,r){if(!(t instanceof Element))return!1;var a=window.getComputedStyle(t);return a[r]!=="hidden"&&!(a.overflowY===a.overflowX&&!K9(t)&&a[r]==="visible")},Z9=function(t){return Ex(t,"overflowY")},Q9=function(t){return Ex(t,"overflowX")},cb=function(t,r){var a=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=Nx(t,o);if(s){var c=jx(t,o),f=c[1],m=c[2];if(f>m)return!0}o=o.parentNode}while(o&&o!==a.body);return!1},J9=function(t){var r=t.scrollTop,a=t.scrollHeight,o=t.clientHeight;return[r,a,o]},eR=function(t){var r=t.scrollLeft,a=t.scrollWidth,o=t.clientWidth;return[r,a,o]},Nx=function(t,r){return t==="v"?Z9(r):Q9(r)},jx=function(t,r){return t==="v"?J9(r):eR(r)},tR=function(t,r){return t==="h"&&r==="rtl"?-1:1},nR=function(t,r,a,o,s){var c=tR(t,window.getComputedStyle(r).direction),f=c*o,m=a.target,g=r.contains(m),h=!1,b=f>0,v=0,x=0;do{if(!m)break;var C=jx(t,m),E=C[0],w=C[1],j=C[2],N=w-j-c*E;(E||N)&&Nx(t,m)&&(v+=N,x+=E);var A=m.parentNode;m=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!g&&m!==document.body||g&&(r.contains(m)||r===m));return(b&&Math.abs(v)<1||!b&&Math.abs(x)<1)&&(h=!0),h},jc=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},ub=function(t){return[t.deltaX,t.deltaY]},db=function(t){return t&&"current"in t?t.current:t},rR=function(t,r){return t[0]===r[0]&&t[1]===r[1]},aR=function(t){return`
|
||
|
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
||
|
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
||
|
|
`)},oR=0,Wo=[];function lR(t){var r=d.useRef([]),a=d.useRef([0,0]),o=d.useRef(),s=d.useState(oR++)[0],c=d.useState(wx)[0],f=d.useRef(t);d.useEffect(function(){f.current=t},[t]),d.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var w=R9([t.lockRef.current],(t.shards||[]).map(db),!0).filter(Boolean);return w.forEach(function(j){return j.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),w.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var m=d.useCallback(function(w,j){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!f.current.allowPinchZoom;var N=jc(w),A=a.current,k="deltaX"in w?w.deltaX:A[0]-N[0],T="deltaY"in w?w.deltaY:A[1]-N[1],z,P=w.target,B=Math.abs(k)>Math.abs(T)?"h":"v";if("touches"in w&&B==="h"&&P.type==="range")return!1;var V=window.getSelection(),W=V&&V.anchorNode,oe=W?W===P||W.contains(P):!1;if(oe)return!1;var ie=cb(B,P);if(!ie)return!0;if(ie?z=B:(z=B==="v"?"h":"v",ie=cb(B,P)),!ie)return!1;if(!o.current&&"changedTouches"in w&&(k||T)&&(o.current=z),!z)return!0;var me=o.current||z;return nR(me,j,w,me==="h"?k:T)},[]),g=d.useCallback(function(w){var j=w;if(!(!Wo.length||Wo[Wo.length-1]!==c)){var N="deltaY"in j?ub(j):jc(j),A=r.current.filter(function(z){return z.name===j.type&&(z.target===j.target||j.target===z.shadowParent)&&rR(z.delta,N)})[0];if(A&&A.should){j.cancelable&&j.preventDefault();return}if(!A){var k=(f.current.shards||[]).map(db).filter(Boolean).filter(function(z){return z.contains(j.target)}),T=k.length>0?m(j,k[0]):!f.current.noIsolation;T&&j.cancelable&&j.preventDefault()}}},[]),h=d.useCallback(function(w,j,N,A){var k={name:w,delta:j,target:N,should:A,shadowParent:sR(N)};r.current.push(k),setTimeout(function(){r.current=r.current.filter(function(T){return T!==k})},1)},[]),b=d.useCallback(function(w){a.current=jc(w),o.current=void 0},[]),v=d.useCallback(function(w){h(w.type,ub(w),w.target,m(w,t.lockRef.current))},[]),x=d.useCallback(function(w){h(w.type,jc(w),w.target,m(w,t.lockRef.current))},[]);d.useEffect(function(){return Wo.push(c),t.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:x}),document.addEventListener("wheel",g,Fo),document.addEventListener("touchmove",g,Fo),document.addEventListener("touchstart",b,Fo),function(){Wo=Wo.filter(function(w){return w!==c}),document.removeEventListener("wheel",g,Fo),document.removeEventListener("touchmove",g,Fo),document.removeEventListener("touchstart",b,Fo)}},[]);var C=t.removeScrollBar,E=t.inert;return d.createElement(d.Fragment,null,E?d.createElement(c,{styles:aR(s)}):null,C?d.createElement(X9,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function sR(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const iR=z9(Cx,lR);var Fs=d.forwardRef(function(t,r){return d.createElement(vu,rr({},t,{ref:r,sideCar:iR}))});Fs.classNames=vu.classNames;var Gm=["Enter"," "],cR=["ArrowDown","PageUp","Home"],Rx=["ArrowUp","PageDown","End"],uR=[...cR,...Rx],dR={ltr:[...Gm,"ArrowRight"],rtl:[...Gm,"ArrowLeft"]},fR={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ws="Menu",[Ts,mR,pR]=Lp(Ws),[to,Tx]=Aj(Ws,[pR,pa,hu]),yu=pa(),Ax=hu(),[hR,no]=to(Ws),[gR,qs]=to(Ws),kx=t=>{const{__scopeMenu:r,open:a=!1,children:o,dir:s,onOpenChange:c,modal:f=!0}=t,m=yu(r),[g,h]=d.useState(null),b=d.useRef(!1),v=Rt(c),x=Us(s);return d.useEffect(()=>{const C=()=>{b.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>b.current=!1;return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),u.jsx(fu,{...m,children:u.jsx(hR,{scope:r,open:a,onOpenChange:v,content:g,onContentChange:h,children:u.jsx(gR,{scope:r,onClose:d.useCallback(()=>v(!1),[v]),isUsingKey
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const x2=(...t)=>t.filter((r,a,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===a).join(" ").trim();/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const yT=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const bT=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,a,o)=>o?o.toUpperCase():a.toLowerCase());/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const mb=t=>{const r=bT(t);return r.charAt(0).toUpperCase()+r.slice(1)};/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/var Em={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const xT=t=>{for(const r in t)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},ST=d.createContext({}),CT=()=>d.useContext(ST),wT=d.forwardRef(({color:t,size:r,strokeWidth:a,absoluteStrokeWidth:o,className:s="",children:c,iconNode:f,...m},g)=>{const{size:h=24,strokeWidth:b=2,absoluteStrokeWidth:v=!1,color:x="currentColor",className:C=""}=CT()??{},E=o??v?Number(a??b)*24/Number(r??h):a??b;return d.createElement("svg",{ref:g,...Em,width:r??h??Em.width,height:r??h??Em.height,stroke:t??x,strokeWidth:E,className:x2("lucide",C,s),...!c&&!xT(m)&&{"aria-hidden":"true"},...m},[...f.map(([w,j])=>d.createElement(w,j)),...Array.isArray(c)?c:[c]])});/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ha=(t,r)=>{const a=d.forwardRef(({className:o,...s},c)=>d.createElement(wT,{ref:c,iconNode:r,className:x2(`lucide-${yT(mb(t))}`,`lucide-${t}`,o),...s}));return a.displayName=mb(t),a};/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const ET=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],S2=ha("check",ET);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const NT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],C2=ha("chevron-down",NT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const jT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],RT=ha("chevron-right",jT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const TT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],AT=ha("chevron-up",TT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const kT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],MT=ha("circle",kT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const _T=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],OT=ha("panel-left",_T);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const DT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],LT=ha("search",DT);/**
|
||
|
|
* @license lucide-react v1.16.0 - ISC
|
||
|
|
*
|
||
|
|
* This source code is licensed under the ISC license.
|
||
|
|
* See the LICENSE file in the root directory of this source tree.
|
||
|
|
*/const zT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],w2=ha("x",zT),Zp=hT,Qp=gT,PT=d.forwardRef(({className:t,inset:r,children:a,...o},s)=>u.jsxs(y2,{ref:s,className:ae("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",t),...o,children:[a,u.jsx(RT,{className:"ml-auto"})]}));PT.displayName=y2.displayName;const BT=d.forwardRef(({className:t,...r},a)=>u.jsx(b2,{ref:a,className:ae("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",t),...r}));BT.displayName=b2.displayName;const Su=d.forwardRef(({className:t,sideOffset:r=4,...a},o)=>u.jsx(vT,{children:u.jsx(d2,{ref:o,sideOffset:r,className:ae("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",t),...a})}));Su.displayName=d2.displayName;const ks=d.forwardRef(({className:t,inset:r,...a},o)=>u.jsx(m2,{ref:o,className:ae("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",r&&"pl-8",t),...a}));ks.displayName=m2.displayName;const $T=d.forwardRef(({className:t,children:r,checked:a,...o},s)=>u.jsxs(p2,{ref:s,className:ae("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:a,...o,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(g2,{children:u.jsx(S2,{className:"h-4 w-4"})})}),r]}));$T.displayName=p2.displayName;const UT=d.forwardRef(({className:t,children:r,...a},o)=>u.jsxs(h2,{ref:o,className:ae("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),...a,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(g2,{children:u.jsx(MT,{className:"h-2 w-2 fill-current"})})}),r]}));UT.displayName=h2.displayName;const Jp=d.forwardRef(({className:t,inset:r,...a},o)=>u.jsx(f2,{ref:o,className:ae("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",t),...a}));Jp.displayName=f2.displayName;const qc=d.forwardRef(({className:t,...r},a)=>u.jsx(v2,{ref:a,className:ae("-mx-1 my-1 h-px bg-muted",t),...r}));qc.displayName=v2.displayName;const Nm=768;function HT(){const[t,r]=d.useState(void 0);return d.useEffect(()=>{const a=window.matchMedia(`(max-width: ${Nm-1}px)`),o=()=>{r(window.innerWidth<Nm)};return a.addEventListener("change",o),r(window.innerWidth<Nm),()=>a.removeEventListener("change",o)},[]),!!t}const vt=d.forwardRef(({className:t,type:r,...a},o)=>u.jsx("input",{type:r,className:ae("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base sha
|
||
|
|
|
||
|
|
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
||
|
|
|
||
|
|
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return d.useEffect(()=>{t&&(document.getElementById(t)||console.error(a))},[a,t]),null},c7="DialogDescriptionWarning",u7=({contentRef:t,descriptionId:r})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${I2(c7).contentName}}.`;return d.useEffect(()=>{var c;const s=(c=t.current)==null?void 0:c.getAttribute("aria-describedby");r&&s&&(document.getElementById(r)||console.warn(o))},[o,t,r]),null},rh=A2,ah=_2,Ks=O2,Zs=D2,wu=z2,Eu=B2,V2=U2;const d7=rh,f7=ah,G2=d.forwardRef(({className:t,...r},a)=>u.jsx(Ks,{className:ae("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...r,ref:a}));G2.displayName=Ks.displayName;const m7=dl("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Y2=d.forwardRef(({side:t="right",className:r,children:a,...o},s)=>u.jsxs(f7,{children:[u.jsx(G2,{}),u.jsxs(Zs,{ref:s,className:ae(m7({side:t}),r),...o,children:[u.jsxs(V2,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(w2,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]}),a]})]}));Y2.displayName=Zs.displayName;const F2=({className:t,...r})=>u.jsx("div",{className:ae("flex flex-col space-y-2 text-center sm:text-left",t),...r});F2.displayName="SheetHeader";const W2=d.forwardRef(({className:t,...r},a)=>u.jsx(wu,{ref:a,className:ae("text-lg font-semibold text-foreground",t),...r}));W2.displayName=wu.displayName;const q2=d.forwardRef(({className:t,...r},a)=>u.jsx(Eu,{ref:a,className:ae("text-sm text-muted-foreground",t),...r}));q2.displayName=Eu.displayName;function lt({className:t,...r}){return u.jsx("div",{className:ae("animate-pulse rounded-md bg-primary/10",t),...r})}function p7(t,r=[]){let a=[];function o(c,f){const m=d.createContext(f),g=a.length;a=[...a,f];const h=v=>{var N;const{scope:x,children:C,...E}=v,w=((N=x==null?void 0:x[t])==null?void 0:N[g])||m,j=d.useMemo(()=>E,Object.values(E));return u.jsx(w.Provider,{value:j,children:C})};h.displayName=c+"Provider";function b(v,x){var w;const C=((w=x==null?void 0:x[t])==null?void 0:w[g])||m,E=d.useContext(C);if(E)return E;if(f!==void 0)return f;throw new Error(`\`${v}\` must be used within \`${c}\``)}return[h,b]}const s=()=>{const c=a.map(f=>d.createContext(f));return function(m){const g=(m==null?void 0:m[t])||c;return d.useMemo(()=>({[`__scope${t}`]:{...m,[t]:g}}),[m,g])}};return s.scopeName=t,[o,h7(s,...r)]}function h7(...t){const r=t[0];if(t.length===1)return r;const a=()=>{const o=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(c){const f=o.reduce((m,{useScope:g,scopeName:h})=>{const v=g(c)[`__scope${h}`];return{...m,...v}},{});return d.useMemo(()=>({[`__scope${r.scopeName}`]:f}),[f])}};return a.scopeName=r.scopeName,a}function g7(t){const r=v7(t),a=d.forwardRef((o,s)=>{const{children:c,...f}=o,m=d.Children.toArray(c),g=m.find(b7);if(g){const h=g.props.children,b=m.map(v=>v===g?d.Children.count(h)>1?d.Children.only(null):d.isValidElement(h)?h.props.children:null:v);return u.jsx(r,{...f,ref:s,children:d.isValidElement(h)?d.cloneElement(h,void 0,b):nul
|
||
|
|
* @license React
|
||
|
|
* use-sync-external-store-shim.production.js
|
||
|
|
*
|
||
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
|
|
*
|
||
|
|
* This source code is licensed under the MIT license found in the
|
||
|
|
* LICENSE file in the root directory of this source tree.
|
||
|
|
*/var bb;function wk(){if(bb)return km;bb=1;var t=Jc();function r(v,x){return v===x&&(v!==0||1/v===1/x)||v!==v&&x!==x}var a=typeof Object.is=="function"?Object.is:r,o=t.useState,s=t.useEffect,c=t.useLayoutEffect,f=t.useDebugValue;function m(v,x){var C=x(),E=o({inst:{value:C,getSnapshot:x}}),w=E[0].inst,j=E[1];return c(function(){w.value=C,w.getSnapshot=x,g(w)&&j({inst:w})},[v,C,x]),s(function(){return g(w)&&j({inst:w}),v(function(){g(w)&&j({inst:w})})},[v]),f(C),C}function g(v){var x=v.getSnapshot;v=v.value;try{var C=x();return!a(v,C)}catch{return!0}}function h(v,x){return x()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:m;return km.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:b,km}var xb;function Ek(){return xb||(xb=1,Am.exports=wk()),Am.exports}var Nk=Ek();function jk(){return Nk.useSyncExternalStore(Rk,()=>!0,()=>!1)}function Rk(){return()=>{}}var ih="Avatar",[Tk]=Sk(ih),[Ak,PS]=Tk(ih),BS=d.forwardRef((t,r)=>{const{__scopeAvatar:a,...o}=t,[s,c]=d.useState("idle");return u.jsx(Ak,{scope:a,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:u.jsx(vn.span,{...o,ref:r})})});BS.displayName=ih;var $S="AvatarImage",US=d.forwardRef((t,r)=>{const{__scopeAvatar:a,src:o,onLoadingStatusChange:s=()=>{},...c}=t,f=PS($S,a),m=kk(o,c),g=Rt(h=>{s(h),f.onImageLoadingStatusChange(h)});return yt(()=>{m!=="idle"&&g(m)},[m,g]),m==="loaded"?u.jsx(vn.img,{...c,ref:r,src:o}):null});US.displayName=$S;var HS="AvatarFallback",IS=d.forwardRef((t,r)=>{const{__scopeAvatar:a,delayMs:o,...s}=t,c=PS(HS,a),[f,m]=d.useState(o===void 0);return d.useEffect(()=>{if(o!==void 0){const g=window.setTimeout(()=>m(!0),o);return()=>window.clearTimeout(g)}},[o]),f&&c.imageLoadingStatus!=="loaded"?u.jsx(vn.span,{...s,ref:r}):null});IS.displayName=HS;function Sb(t,r){return t?r?(t.src!==r&&(t.src=r),t.complete&&t.naturalWidth>0?"loaded":"loading"):"error":"idle"}function kk(t,{referrerPolicy:r,crossOrigin:a}){const o=jk(),s=d.useRef(null),c=o?(s.current||(s.current=new window.Image),s.current):null,[f,m]=d.useState(()=>Sb(c,t));return yt(()=>{m(Sb(c,t))},[c,t]),yt(()=>{const g=v=>()=>{m(v)};if(!c)return;const h=g("loaded"),b=g("error");return c.addEventListener("load",h),c.addEventListener("error",b),r&&(c.referrerPolicy=r),typeof a=="string"&&(c.crossOrigin=a),()=>{c.removeEventListener("load",h),c.removeEventListener("error",b)}},[c,a,r]),f}var VS=BS,GS=US,YS=IS;const _s=d.forwardRef(({className:t,...r},a)=>u.jsx(VS,{ref:a,className:ae("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t),...r}));_s.displayName=VS.displayName;const Os=d.forwardRef(({className:t,...r},a)=>u.jsx(GS,{ref:a,className:ae("aspect-square h-full w-full",t),...r}));Os.displayName=GS.displayName;const Ds=d.forwardRef(({className:t,...r},a)=>u.jsx(YS,{ref:a,className:ae("flex h-full w-full items-center justify-center rounded-full bg-muted",t),...r}));Ds.displayName=YS.displayName;const FS=d.createContext(null);function Mk({children:t}){const[r,a]=d.useState([]),[o,s]=d.useState(0),[c,f]=d.useState(!0),m=d.useCallback(async()=>{try{const v=await ke.getNotifications();v.data&&(a(v.data.items),s(v.data.unreadCount))}catch{}finally{f(!1)}},[]),g=d.useCallback(async()=>{var v;try{const x=await ke.markNotificationsRead("all");a(C=>C.map(E=>({...E,read:!0}))),s(((v=x.data)==null?void 0:v.unreadCount)??0)}catch{}},[]),h=d.useCallback(async v=>{var x;try{const C=await ke.dismissNotification(v);a(E=>E.filter(w=>w.id!==v)),s(((x=C.data)==null?void 0:x.unreadCount)??0)}catch{}},[]);d.useEffect(()=>{m();const v=setInterval(m,3e4);return()=>clearInterval(v)},[m]);const b=d.useMemo(()=>({items:r,unreadCount:o,loading:c,refresh:m,markAllRead:g,dismiss:h}),[r,o,c,m,g,h]);return u.jsx(FS.Provider,{value:b,children:t})}function _k(){const t=d.useContext(FS);if(!t)throw new Error("useNotifications must be used within NotificationsProvider");return t}const Ok=dl("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus
|