github-reporadar 0.10.0 → 0.12.0
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/DESIGN.md +1 -1
- package/README.md +6 -6
- package/dist/assets/index-BkaUjLCS.css +1 -0
- package/dist/assets/index-SBd4lh4k.js +90 -0
- package/dist/index.html +2 -2
- package/dist-cli/cli.js +3 -3
- package/package.json +1 -1
- package/dist/assets/index-Bb05RJtS.js +0 -90
- package/dist/assets/index-DP6ckDih.css +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).observe(document,{childList:!0,subtree:!0});function u(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(o){if(o.ep)return;o.ep=!0;const d=u(o);fetch(o.href,d)}})();function Wv(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Yc={exports:{}},Ci={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Lm;function Fv(){if(Lm)return Ci;Lm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function u(r,o,d){var m=null;if(d!==void 0&&(m=""+d),o.key!==void 0&&(m=""+o.key),"key"in o){d={};for(var v in o)v!=="key"&&(d[v]=o[v])}else d=o;return o=d.ref,{$$typeof:a,type:r,key:m,ref:o!==void 0?o:null,props:d}}return Ci.Fragment=i,Ci.jsx=u,Ci.jsxs=u,Ci}var km;function Iv(){return km||(km=1,Yc.exports=Fv()),Yc.exports}var h=Iv(),Gc={exports:{}},he={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react.production.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var qm;function Pv(){if(qm)return he;qm=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function N(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,O={};function L(A,H,J){this.props=A,this.context=H,this.refs=O,this.updater=J||z}L.prototype.isReactComponent={},L.prototype.setState=function(A,H){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,H,"setState")},L.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function Z(){}Z.prototype=L.prototype;function q(A,H,J){this.props=A,this.context=H,this.refs=O,this.updater=J||z}var X=q.prototype=new Z;X.constructor=q,D(X,L.prototype),X.isPureReactComponent=!0;var Q=Array.isArray;function $(){}var V={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function de(A,H,J){var K=J.ref;return{$$typeof:a,type:A,key:H,ref:K!==void 0?K:null,props:J}}function me(A,H){return de(A.type,H,A.props)}function fe(A){return typeof A=="object"&&A!==null&&A.$$typeof===a}function xe(A){var H={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(J){return H[J]})}var ne=/\/+/g;function F(A,H){return typeof A=="object"&&A!==null&&A.key!=null?xe(""+A.key):H.toString(36)}function se(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then($,$):(A.status="pending",A.then(function(H){A.status==="pending"&&(A.status="fulfilled",A.value=H)},function(H){A.status==="pending"&&(A.status="rejected",A.reason=H)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function R(A,H,J,K,ie){var ee=typeof A;(ee==="undefined"||ee==="boolean")&&(A=null);var re=!1;if(A===null)re=!0;else switch(ee){case"bigint":case"string":case"number":re=!0;break;case"object":switch(A.$$typeof){case a:case i:re=!0;break;case x:return re=A._init,R(re(A._payload),H,J,K,ie)}}if(re)return ie=ie(A),re=K===""?"."+F(A,0):K,Q(ie)?(J="",re!=null&&(J=re.replace(ne,"$&/")+"/"),R(ie,H,J,"",function(Se){return Se})):ie!=null&&(fe(ie)&&(ie=me(ie,J+(ie.key==null||A&&A.key===ie.key?"":(""+ie.key).replace(ne,"$&/")+"/")+re)),H.push(ie)),1;re=0;var Be=K===""?".":K+":";if(Q(A))for(var ve=0;ve<A.length;ve++)K=A[ve],ee=Be+F(K,ve),re+=R(K,H,J,ee,ie);else if(ve=N(A),typeof ve=="function")for(A=ve.call(A),ve=0;!(K=A.next()).done;)K=K.value,ee=Be+F(K,ve++),re+=R(K,H,J,ee,ie);else if(ee==="object"){if(typeof A.then=="function")return R(se(A),H,J,K,ie);throw H=String(A),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return re}function G(A,H,J){if(A==null)return A;var K=[],ie=0;return R(A,K,"","",function(ee){return H.call(J,ee,ie++)}),K}function le(A){if(A._status===-1){var H=A._result;H=H(),H.then(function(J){(A._status===0||A._status===-1)&&(A._status=1,A._result=J)},function(J){(A._status===0||A._status===-1)&&(A._status=2,A._result=J)}),A._status===-1&&(A._status=0,A._result=H)}if(A._status===1)return A._result.default;throw A._result}var oe=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},W={map:G,forEach:function(A,H,J){G(A,function(){H.apply(this,arguments)},J)},count:function(A){var H=0;return G(A,function(){H++}),H},toArray:function(A){return G(A,function(H){return H})||[]},only:function(A){if(!fe(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return he.Activity=b,he.Children=W,he.Component=L,he.Fragment=u,he.Profiler=o,he.PureComponent=q,he.StrictMode=r,he.Suspense=y,he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,he.__COMPILER_RUNTIME={__proto__:null,c:function(A){return V.H.useMemoCache(A)}},he.cache=function(A){return function(){return A.apply(null,arguments)}},he.cacheSignal=function(){return null},he.cloneElement=function(A,H,J){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var K=D({},A.props),ie=A.key;if(H!=null)for(ee in H.key!==void 0&&(ie=""+H.key),H)!ae.call(H,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&H.ref===void 0||(K[ee]=H[ee]);var ee=arguments.length-2;if(ee===1)K.children=J;else if(1<ee){for(var re=Array(ee),Be=0;Be<ee;Be++)re[Be]=arguments[Be+2];K.children=re}return de(A.type,ie,K)},he.createContext=function(A){return A={$$typeof:m,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},he.createElement=function(A,H,J){var K,ie={},ee=null;if(H!=null)for(K in H.key!==void 0&&(ee=""+H.key),H)ae.call(H,K)&&K!=="key"&&K!=="__self"&&K!=="__source"&&(ie[K]=H[K]);var re=arguments.length-2;if(re===1)ie.children=J;else if(1<re){for(var Be=Array(re),ve=0;ve<re;ve++)Be[ve]=arguments[ve+2];ie.children=Be}if(A&&A.defaultProps)for(K in re=A.defaultProps,re)ie[K]===void 0&&(ie[K]=re[K]);return de(A,ee,ie)},he.createRef=function(){return{current:null}},he.forwardRef=function(A){return{$$typeof:v,render:A}},he.isValidElement=fe,he.lazy=function(A){return{$$typeof:x,_payload:{_status:-1,_result:A},_init:le}},he.memo=function(A,H){return{$$typeof:g,type:A,compare:H===void 0?null:H}},he.startTransition=function(A){var H=V.T,J={};V.T=J;try{var K=A(),ie=V.S;ie!==null&&ie(J,K),typeof K=="object"&&K!==null&&typeof K.then=="function"&&K.then($,oe)}catch(ee){oe(ee)}finally{H!==null&&J.types!==null&&(H.types=J.types),V.T=H}},he.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},he.use=function(A){return V.H.use(A)},he.useActionState=function(A,H,J){return V.H.useActionState(A,H,J)},he.useCallback=function(A,H){return V.H.useCallback(A,H)},he.useContext=function(A){return V.H.useContext(A)},he.useDebugValue=function(){},he.useDeferredValue=function(A,H){return V.H.useDeferredValue(A,H)},he.useEffect=function(A,H){return V.H.useEffect(A,H)},he.useEffectEvent=function(A){return V.H.useEffectEvent(A)},he.useId=function(){return V.H.useId()},he.useImperativeHandle=function(A,H,J){return V.H.useImperativeHandle(A,H,J)},he.useInsertionEffect=function(A,H){return V.H.useInsertionEffect(A,H)},he.useLayoutEffect=function(A,H){return V.H.useLayoutEffect(A,H)},he.useMemo=function(A,H){return V.H.useMemo(A,H)},he.useOptimistic=function(A,H){return V.H.useOptimistic(A,H)},he.useReducer=function(A,H,J){return V.H.useReducer(A,H,J)},he.useRef=function(A){return V.H.useRef(A)},he.useState=function(A){return V.H.useState(A)},he.useSyncExternalStore=function(A,H,J){return V.H.useSyncExternalStore(A,H,J)},he.useTransition=function(){return V.H.useTransition()},he.version="19.2.7",he}var Ym;function Ao(){return Ym||(Ym=1,Gc.exports=Pv()),Gc.exports}var S=Ao();const Ct=Wv(S);var Xc={exports:{}},_i={},Vc={exports:{}},Qc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Gm;function ey(){return Gm||(Gm=1,(function(a){function i(R,G){var le=R.length;R.push(G);e:for(;0<le;){var oe=le-1>>>1,W=R[oe];if(0<o(W,G))R[oe]=G,R[le]=W,le=oe;else break e}}function u(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var G=R[0],le=R.pop();if(le!==G){R[0]=le;e:for(var oe=0,W=R.length,A=W>>>1;oe<A;){var H=2*(oe+1)-1,J=R[H],K=H+1,ie=R[K];if(0>o(J,le))K<W&&0>o(ie,J)?(R[oe]=ie,R[K]=le,oe=K):(R[oe]=J,R[H]=le,oe=H);else if(K<W&&0>o(ie,le))R[oe]=ie,R[K]=le,oe=K;else break e}}return G}function o(R,G){var le=R.sortIndex-G.sortIndex;return le!==0?le:R.id-G.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var m=Date,v=m.now();a.unstable_now=function(){return m.now()-v}}var y=[],g=[],x=1,b=null,w=3,N=!1,z=!1,D=!1,O=!1,L=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function X(R){for(var G=u(g);G!==null;){if(G.callback===null)r(g);else if(G.startTime<=R)r(g),G.sortIndex=G.expirationTime,i(y,G);else break;G=u(g)}}function Q(R){if(D=!1,X(R),!z)if(u(y)!==null)z=!0,$||($=!0,xe());else{var G=u(g);G!==null&&se(Q,G.startTime-R)}}var $=!1,V=-1,ae=5,de=-1;function me(){return O?!0:!(a.unstable_now()-de<ae)}function fe(){if(O=!1,$){var R=a.unstable_now();de=R;var G=!0;try{e:{z=!1,D&&(D=!1,Z(V),V=-1),N=!0;var le=w;try{t:{for(X(R),b=u(y);b!==null&&!(b.expirationTime>R&&me());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,w=b.priorityLevel;var W=oe(b.expirationTime<=R);if(R=a.unstable_now(),typeof W=="function"){b.callback=W,X(R),G=!0;break t}b===u(y)&&r(y),X(R)}else r(y);b=u(y)}if(b!==null)G=!0;else{var A=u(g);A!==null&&se(Q,A.startTime-R),G=!1}}break e}finally{b=null,w=le,N=!1}G=void 0}}finally{G?xe():$=!1}}}var xe;if(typeof q=="function")xe=function(){q(fe)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,F=ne.port2;ne.port1.onmessage=fe,xe=function(){F.postMessage(null)}}else xe=function(){L(fe,0)};function se(R,G){V=L(function(){R(a.unstable_now())},G)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(R){R.callback=null},a.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"):ae=0<R?Math.floor(1e3/R):5},a.unstable_getCurrentPriorityLevel=function(){return w},a.unstable_next=function(R){switch(w){case 1:case 2:case 3:var G=3;break;default:G=w}var le=w;w=G;try{return R()}finally{w=le}},a.unstable_requestPaint=function(){O=!0},a.unstable_runWithPriority=function(R,G){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var le=w;w=R;try{return G()}finally{w=le}},a.unstable_scheduleCallback=function(R,G,le){var oe=a.unstable_now();switch(typeof le=="object"&&le!==null?(le=le.delay,le=typeof le=="number"&&0<le?oe+le:oe):le=oe,R){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=le+W,R={id:x++,callback:G,priorityLevel:R,startTime:le,expirationTime:W,sortIndex:-1},le>oe?(R.sortIndex=le,i(g,R),u(y)===null&&R===u(g)&&(D?(Z(V),V=-1):D=!0,se(Q,le-oe))):(R.sortIndex=W,i(y,R),z||N||(z=!0,$||($=!0,xe()))),R},a.unstable_shouldYield=me,a.unstable_wrapCallback=function(R){var G=w;return function(){var le=w;w=G;try{return R.apply(this,arguments)}finally{w=le}}}})(Qc)),Qc}var Xm;function ty(){return Xm||(Xm=1,Vc.exports=ey()),Vc.exports}var Kc={exports:{}},gt={};/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Vm;function ny(){if(Vm)return gt;Vm=1;var a=Ao();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var r={d:{f:u,r:function(){throw Error(i(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(y,g,x){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:y,containerInfo:g,implementation:x}}var m=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return gt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,gt.createPortal=function(y,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return d(y,g,null,x)},gt.flushSync=function(y){var g=m.T,x=r.p;try{if(m.T=null,r.p=2,y)return y()}finally{m.T=g,r.p=x,r.d.f()}},gt.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(y,g))},gt.prefetchDNS=function(y){typeof y=="string"&&r.d.D(y)},gt.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var x=g.as,b=v(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,N=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?r.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:N}):x==="script"&&r.d.X(y,{crossOrigin:b,integrity:w,fetchPriority:N,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},gt.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=v(g.as,g.crossOrigin);r.d.M(y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(y)},gt.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,b=v(x,g.crossOrigin);r.d.L(y,x,{crossOrigin:b,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})}},gt.preloadModule=function(y,g){if(typeof y=="string")if(g){var x=v(g.as,g.crossOrigin);r.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(y)},gt.requestFormReset=function(y){r.d.r(y)},gt.unstable_batchedUpdates=function(y,g){return y(g)},gt.useFormState=function(y,g,x){return m.H.useFormState(y,g,x)},gt.useFormStatus=function(){return m.H.useHostTransitionStatus()},gt.version="19.2.7",gt}var Qm;function Rg(){if(Qm)return Kc.exports;Qm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Kc.exports=ny(),Kc.exports}/**
|
|
34
|
+
* @license React
|
|
35
|
+
* react-dom-client.production.js
|
|
36
|
+
*
|
|
37
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the MIT license found in the
|
|
40
|
+
* LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/var Km;function ly(){if(Km)return _i;Km=1;var a=ty(),i=Ao(),u=Rg();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function m(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 v(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 y(e){if(d(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,l=t;;){var s=n.return;if(s===null)break;var c=s.alternate;if(c===null){if(l=s.return,l!==null){n=l;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===n)return y(s),e;if(c===l)return y(s),t;c=c.sibling}throw Error(r(188))}if(n.return!==l.return)n=s,l=c;else{for(var f=!1,p=s.child;p;){if(p===n){f=!0,n=s,l=c;break}if(p===l){f=!0,l=s,n=c;break}p=p.sibling}if(!f){for(p=c.child;p;){if(p===n){f=!0,n=c,l=s;break}if(p===l){f=!0,l=c,n=s;break}p=p.sibling}if(!f)throw Error(r(189))}}if(n.alternate!==l)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),z=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),Z=Symbol.for("react.consumer"),q=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),de=Symbol.for("react.activity"),me=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function xe(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var ne=Symbol.for("react.client.reference");function F(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ne?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case L:return"Profiler";case O:return"StrictMode";case Q:return"Suspense";case $:return"SuspenseList";case de:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case z:return"Portal";case q:return e.displayName||"Context";case Z:return(e._context.displayName||"Context")+".Consumer";case X: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:F(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return F(e(t))}catch{}}return null}var se=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le={pending:!1,data:null,method:null,action:null},oe=[],W=-1;function A(e){return{current:e}}function H(e){0>W||(e.current=oe[W],oe[W]=null,W--)}function J(e,t){W++,oe[W]=e.current,e.current=t}var K=A(null),ie=A(null),ee=A(null),re=A(null);function Be(e,t){switch(J(ee,t),J(ie,e),J(K,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?sm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=sm(t),e=rm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(K),J(K,e)}function ve(){H(K),H(ie),H(ee)}function Se(e){e.memoizedState!==null&&J(re,e);var t=K.current,n=rm(t,e.type);t!==n&&(J(ie,e),J(K,n))}function Ze(e){ie.current===e&&(H(K),H(ie)),re.current===e&&(H(re),Ai._currentValue=le)}var Ce,nn;function Ie(e){if(Ce===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||"",nn=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Ce+e+nn}var I=!1;function _e(e,t){if(!e||I)return"";I=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(U){var M=U}Reflect.construct(e,[],Y)}else{try{Y.call()}catch(U){M=U}e.call(Y.prototype)}}else{try{throw Error()}catch(U){M=U}(Y=e())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(U){if(U&&M&&typeof U.stack=="string")return[U.stack,M.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),f=c[0],p=c[1];if(f&&p){var E=f.split(`
|
|
44
|
+
`),T=p.split(`
|
|
45
|
+
`);for(s=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;s<T.length&&!T[s].includes("DetermineComponentFrameRoot");)s++;if(l===E.length||s===T.length)for(l=E.length-1,s=T.length-1;1<=l&&0<=s&&E[l]!==T[s];)s--;for(;1<=l&&0<=s;l--,s--)if(E[l]!==T[s]){if(l!==1||s!==1)do if(l--,s--,0>s||E[l]!==T[s]){var B=`
|
|
46
|
+
`+E[l].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=l&&0<=s);break}}}finally{I=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Ie(n):""}function yt(e,t){switch(e.tag){case 26:case 27:case 5:return Ie(e.type);case 16:return Ie("Lazy");case 13:return e.child!==t&&t!==null?Ie("Suspense Fallback"):Ie("Suspense");case 19:return Ie("SuspenseList");case 0:case 15:return _e(e.type,!1);case 11:return _e(e.type.render,!1);case 1:return _e(e.type,!0);case 31:return Ie("Activity");default:return""}}function yn(e){try{var t="",n=null;do t+=yt(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var vl=Object.prototype.hasOwnProperty,qt=a.unstable_scheduleCallback,Gn=a.unstable_cancelCallback,kl=a.unstable_shouldYield,Ki=a.unstable_requestPaint,dt=a.unstable_now,Cs=a.unstable_getCurrentPriorityLevel,Zi=a.unstable_ImmediatePriority,bn=a.unstable_UserBlockingPriority,ln=a.unstable_NormalPriority,yl=a.unstable_LowPriority,ka=a.unstable_IdlePriority,fn=a.log,Ji=a.unstable_setDisableYieldValue,bl=null,pt=null;function Yt(e){if(typeof fn=="function"&&Ji(e),pt&&typeof pt.setStrictMode=="function")try{pt.setStrictMode(bl,e)}catch{}}var ht=Math.clz32?Math.clz32:Ts,_s=Math.log,$i=Math.LN2;function Ts(e){return e>>>=0,e===0?32:31-(_s(e)/$i|0)|0}var ql=256,Yl=262144,Xe=4194304;function Ve(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 nt(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var s=0,c=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var p=l&134217727;return p!==0?(l=p&~c,l!==0?s=Ve(l):(f&=p,f!==0?s=Ve(f):n||(n=p&~e,n!==0&&(s=Ve(n))))):(p=l&~c,p!==0?s=Ve(p):f!==0?s=Ve(f):n||(n=l&~e,n!==0&&(s=Ve(n)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:s}function bt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function xt(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 mt(){var e=Xe;return Xe<<=1,(Xe&62914560)===0&&(Xe=4194304),e}function St(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Gt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Pe(e,t,n,l,s,c){var f=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var p=e.entanglements,E=e.expirationTimes,T=e.hiddenUpdates;for(n=f&~n;0<n;){var B=31-ht(n),Y=1<<B;p[B]=0,E[B]=-1;var M=T[B];if(M!==null)for(T[B]=null,B=0;B<M.length;B++){var U=M[B];U!==null&&(U.lane&=-536870913)}n&=~Y}l!==0&&an(e,l,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(f&~t))}function an(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Mt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-ht(n),s=1<<l;s&t|e[l]&t&&(e[l]|=t),n&=~s}}function Xt(e,t){var n=t&-t;return n=(n&42)!==0?1:xn(n),(n&(e.suspendedLanes|t))!==0?0:n}function xn(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 Sn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function un(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Tm(e.type))}function Xn(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var Vt=Math.random().toString(36).slice(2),ut="__reactFiber$"+Vt,Et="__reactProps$"+Vt,Gl="__reactContainer$"+Vt,Ms="__reactEvents$"+Vt,kp="__reactListeners$"+Vt,qp="__reactHandles$"+Vt,Zo="__reactResources$"+Vt,qa="__reactMarker$"+Vt;function zs(e){delete e[ut],delete e[Et],delete e[Ms],delete e[kp],delete e[qp]}function Xl(e){var t=e[ut];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gl]||n[ut]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=gm(e);e!==null;){if(n=e[ut])return n;e=gm(e)}return t}e=n,n=e.parentNode}return null}function Vl(e){if(e=e[ut]||e[Gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ya(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ql(e){var t=e[Zo];return t||(t=e[Zo]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function lt(e){e[qa]=!0}var Jo=new Set,$o={};function xl(e,t){Kl(e,t),Kl(e+"Capture",t)}function Kl(e,t){for($o[e]=t,e=0;e<t.length;e++)Jo.add(t[e])}var Yp=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]*$"),Wo={},Fo={};function Gp(e){return vl.call(Fo,e)?!0:vl.call(Wo,e)?!1:Yp.test(e)?Fo[e]=!0:(Wo[e]=!0,!1)}function Wi(e,t,n){if(Gp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){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,""+n)}}function Fi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function En(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+l)}}function Qt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Io(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xp(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rs(e){if(!e._valueTracker){var t=Io(e)?"checked":"value";e._valueTracker=Xp(e,t,""+e[t])}}function Po(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=Io(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}function Ii(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 Vp=/[\n"\\]/g;function Kt(e){return e.replace(Vp,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Us(e,t,n,l,s,c,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=""+Qt(t)):e.value!==""+Qt(t)&&(e.value=""+Qt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Hs(e,f,Qt(t)):n!=null?Hs(e,f,Qt(n)):l!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?e.name=""+Qt(p):e.removeAttribute("name")}function ef(e,t,n,l,s,c,f,p){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Rs(e);return}n=n!=null?""+Qt(n):"",t=t!=null?""+Qt(t):n,p||t===e.value||(e.value=t),e.defaultValue=t}l=l??s,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),Rs(e)}function Hs(e,t,n){t==="number"&&Ii(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Zl(e,t,n,l){if(e=e.options,t){t={};for(var s=0;s<n.length;s++)t["$"+n[s]]=!0;for(n=0;n<e.length;n++)s=t.hasOwnProperty("$"+e[n].value),e[n].selected!==s&&(e[n].selected=s),s&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Qt(n),t=null,s=0;s<e.length;s++){if(e[s].value===n){e[s].selected=!0,l&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function tf(e,t,n){if(t!=null&&(t=""+Qt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Qt(n):""}function nf(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(r(92));if(se(l)){if(1<l.length)throw Error(r(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Qt(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Rs(e)}function Jl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Qp=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 lf(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||Qp.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function af(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&n[s]!==l&&lf(e,s,l)}else for(var c in t)t.hasOwnProperty(c)&&lf(e,c,t[c])}function Bs(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 Kp=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"]]),Zp=/^[\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 Pi(e){return Zp.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Nn(){}var Ls=null;function ks(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,Wl=null;function uf(e){var t=Vl(e);if(t&&(e=t.stateNode)){var n=e[Et]||null;e:switch(e=t.stateNode,t.type){case"input":if(Us(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Kt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var s=l[Et]||null;if(!s)throw Error(r(90));Us(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&Po(l)}break e;case"textarea":tf(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Zl(e,!!n.multiple,t,!1)}}}var qs=!1;function sf(e,t,n){if(qs)return e(t,n);qs=!0;try{var l=e(t);return l}finally{if(qs=!1,($l!==null||Wl!==null)&&(qu(),$l&&(t=$l,e=Wl,Wl=$l=null,uf(t),e)))for(t=0;t<e.length;t++)uf(e[t])}}function Ga(e,t){var n=e.stateNode;if(n===null)return null;var l=n[Et]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ys=!1;if(wn)try{var Xa={};Object.defineProperty(Xa,"passive",{get:function(){Ys=!0}}),window.addEventListener("test",Xa,Xa),window.removeEventListener("test",Xa,Xa)}catch{Ys=!1}var Vn=null,Gs=null,eu=null;function rf(){if(eu)return eu;var e,t=Gs,n=t.length,l,s="value"in Vn?Vn.value:Vn.textContent,c=s.length;for(e=0;e<n&&t[e]===s[e];e++);var f=n-e;for(l=1;l<=f&&t[n-l]===s[c-l];l++);return eu=s.slice(e,1<l?1-l:void 0)}function tu(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 nu(){return!0}function cf(){return!1}function Nt(e){function t(n,l,s,c,f){this._reactName=n,this._targetInst=s,this.type=l,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?nu:cf,this.isPropagationStopped=cf,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),t}var Sl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lu=Nt(Sl),Va=b({},Sl,{view:0,detail:0}),Jp=Nt(Va),Xs,Vs,Qa,au=b({},Va,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ks,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!==Qa&&(Qa&&e.type==="mousemove"?(Xs=e.screenX-Qa.screenX,Vs=e.screenY-Qa.screenY):Vs=Xs=0,Qa=e),Xs)},movementY:function(e){return"movementY"in e?e.movementY:Vs}}),of=Nt(au),$p=b({},au,{dataTransfer:0}),Wp=Nt($p),Fp=b({},Va,{relatedTarget:0}),Qs=Nt(Fp),Ip=b({},Sl,{animationName:0,elapsedTime:0,pseudoElement:0}),Pp=Nt(Ip),e0=b({},Sl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),t0=Nt(e0),n0=b({},Sl,{data:0}),ff=Nt(n0),l0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a0={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"},i0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=i0[e])?!!t[e]:!1}function Ks(){return u0}var s0=b({},Va,{key:function(e){if(e.key){var t=l0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?a0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ks,charCode:function(e){return e.type==="keypress"?tu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),r0=Nt(s0),c0=b({},au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),df=Nt(c0),o0=b({},Va,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ks}),f0=Nt(o0),d0=b({},Sl,{propertyName:0,elapsedTime:0,pseudoElement:0}),h0=Nt(d0),m0=b({},au,{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}),g0=Nt(m0),p0=b({},Sl,{newState:0,oldState:0}),v0=Nt(p0),y0=[9,13,27,32],Zs=wn&&"CompositionEvent"in window,Ka=null;wn&&"documentMode"in document&&(Ka=document.documentMode);var b0=wn&&"TextEvent"in window&&!Ka,hf=wn&&(!Zs||Ka&&8<Ka&&11>=Ka),mf=" ",gf=!1;function pf(e,t){switch(e){case"keyup":return y0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Fl=!1;function x0(e,t){switch(e){case"compositionend":return vf(t);case"keypress":return t.which!==32?null:(gf=!0,mf);case"textInput":return e=t.data,e===mf&&gf?null:e;default:return null}}function S0(e,t){if(Fl)return e==="compositionend"||!Zs&&pf(e,t)?(e=rf(),eu=Gs=Vn=null,Fl=!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 hf&&t.locale!=="ko"?null:t.data;default:return null}}var E0={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 yf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E0[e.type]:t==="textarea"}function bf(e,t,n,l){$l?Wl?Wl.push(l):Wl=[l]:$l=l,t=Zu(t,"onChange"),0<t.length&&(n=new lu("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Za=null,Ja=null;function N0(e){tm(e,0)}function iu(e){var t=Ya(e);if(Po(t))return e}function xf(e,t){if(e==="change")return t}var Sf=!1;if(wn){var Js;if(wn){var $s="oninput"in document;if(!$s){var Ef=document.createElement("div");Ef.setAttribute("oninput","return;"),$s=typeof Ef.oninput=="function"}Js=$s}else Js=!1;Sf=Js&&(!document.documentMode||9<document.documentMode)}function Nf(){Za&&(Za.detachEvent("onpropertychange",wf),Ja=Za=null)}function wf(e){if(e.propertyName==="value"&&iu(Ja)){var t=[];bf(t,Ja,e,ks(e)),sf(N0,t)}}function w0(e,t,n){e==="focusin"?(Nf(),Za=t,Ja=n,Za.attachEvent("onpropertychange",wf)):e==="focusout"&&Nf()}function A0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(Ja)}function j0(e,t){if(e==="click")return iu(t)}function D0(e,t){if(e==="input"||e==="change")return iu(t)}function O0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var zt=typeof Object.is=="function"?Object.is:O0;function $a(e,t){if(zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var s=n[l];if(!vl.call(t,s)||!zt(e[s],t[s]))return!1}return!0}function Af(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var n=Af(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Af(n)}}function Df(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Df(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Of(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ii(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ii(e.document)}return t}function Ws(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 C0=wn&&"documentMode"in document&&11>=document.documentMode,Il=null,Fs=null,Wa=null,Is=!1;function Cf(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Is||Il==null||Il!==Ii(l)||(l=Il,"selectionStart"in l&&Ws(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}),Wa&&$a(Wa,l)||(Wa=l,l=Zu(Fs,"onSelect"),0<l.length&&(t=new lu("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=Il)))}function El(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Pl={animationend:El("Animation","AnimationEnd"),animationiteration:El("Animation","AnimationIteration"),animationstart:El("Animation","AnimationStart"),transitionrun:El("Transition","TransitionRun"),transitionstart:El("Transition","TransitionStart"),transitioncancel:El("Transition","TransitionCancel"),transitionend:El("Transition","TransitionEnd")},Ps={},_f={};wn&&(_f=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function Nl(e){if(Ps[e])return Ps[e];if(!Pl[e])return e;var t=Pl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in _f)return Ps[e]=t[n];return e}var Tf=Nl("animationend"),Mf=Nl("animationiteration"),zf=Nl("animationstart"),_0=Nl("transitionrun"),T0=Nl("transitionstart"),M0=Nl("transitioncancel"),Rf=Nl("transitionend"),Uf=new Map,er="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(" ");er.push("scrollEnd");function sn(e,t){Uf.set(e,t),xl(t,[e])}var uu=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)},Zt=[],ea=0,tr=0;function su(){for(var e=ea,t=tr=ea=0;t<e;){var n=Zt[t];Zt[t++]=null;var l=Zt[t];Zt[t++]=null;var s=Zt[t];Zt[t++]=null;var c=Zt[t];if(Zt[t++]=null,l!==null&&s!==null){var f=l.pending;f===null?s.next=s:(s.next=f.next,f.next=s),l.pending=s}c!==0&&Hf(n,s,c)}}function ru(e,t,n,l){Zt[ea++]=e,Zt[ea++]=t,Zt[ea++]=n,Zt[ea++]=l,tr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function nr(e,t,n,l){return ru(e,t,n,l),cu(e)}function wl(e,t){return ru(e,null,null,t),cu(e)}function Hf(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var s=!1,c=e.return;c!==null;)c.childLanes|=n,l=c.alternate,l!==null&&(l.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-ht(n),e=c.hiddenUpdates,l=e[s],l===null?e[s]=[t]:l.push(t),t.lane=n|536870912),c):null}function cu(e){if(50<yi)throw yi=0,fc=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ta={};function z0(e,t,n,l){this.tag=e,this.key=n,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 Rt(e,t,n,l){return new z0(e,t,n,l)}function lr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function An(e,t){var n=e.alternate;return n===null?(n=Rt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Bf(e,t){e.flags&=65011714;var n=e.alternate;return n===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=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ou(e,t,n,l,s,c){var f=0;if(l=e,typeof e=="function")lr(e)&&(f=1);else if(typeof e=="string")f=Lv(e,n,K.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case de:return e=Rt(31,n,t,s),e.elementType=de,e.lanes=c,e;case D:return Al(n.children,s,c,t);case O:f=8,s|=24;break;case L:return e=Rt(12,n,t,s|2),e.elementType=L,e.lanes=c,e;case Q:return e=Rt(13,n,t,s),e.elementType=Q,e.lanes=c,e;case $:return e=Rt(19,n,t,s),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:f=10;break e;case Z:f=9;break e;case X:f=11;break e;case V:f=14;break e;case ae:f=16,l=null;break e}f=29,n=Error(r(130,e===null?"null":typeof e,"")),l=null}return t=Rt(f,n,t,s),t.elementType=e,t.type=l,t.lanes=c,t}function Al(e,t,n,l){return e=Rt(7,e,l,t),e.lanes=n,e}function ar(e,t,n){return e=Rt(6,e,null,t),e.lanes=n,e}function Lf(e){var t=Rt(18,null,null,0);return t.stateNode=e,t}function ir(e,t,n){return t=Rt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var kf=new WeakMap;function Jt(e,t){if(typeof e=="object"&&e!==null){var n=kf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:yn(t)},kf.set(e,t),t)}return{value:e,source:t,stack:yn(t)}}var na=[],la=0,fu=null,Fa=0,$t=[],Wt=0,Qn=null,dn=1,hn="";function jn(e,t){na[la++]=Fa,na[la++]=fu,fu=e,Fa=t}function qf(e,t,n){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,Qn=e;var l=dn;e=hn;var s=32-ht(l)-1;l&=~(1<<s),n+=1;var c=32-ht(t)+s;if(30<c){var f=s-s%5;c=(l&(1<<f)-1).toString(32),l>>=f,s-=f,dn=1<<32-ht(t)+s|n<<s|l,hn=c+e}else dn=1<<c|n<<s|l,hn=e}function ur(e){e.return!==null&&(jn(e,1),qf(e,1,0))}function sr(e){for(;e===fu;)fu=na[--la],na[la]=null,Fa=na[--la],na[la]=null;for(;e===Qn;)Qn=$t[--Wt],$t[Wt]=null,hn=$t[--Wt],$t[Wt]=null,dn=$t[--Wt],$t[Wt]=null}function Yf(e,t){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=Qn,dn=t.id,hn=t.overflow,Qn=e}var st=null,Le=null,we=!1,Kn=null,Ft=!1,rr=Error(r(519));function Zn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ia(Jt(t,e)),rr}function Gf(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ut]=e,t[Et]=l,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<xi.length;n++)be(xi[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),ef(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),nf(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||im(t.textContent,n)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=Nn),t=!0):t=!1,t||Zn(e,!0)}function Xf(e){for(st=e.return;st;)switch(st.tag){case 5:case 31:case 13:Ft=!1;return;case 27:case 3:Ft=!0;return;default:st=st.return}}function aa(e){if(e!==st)return!1;if(!we)return Xf(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||jc(e.type,e.memoizedProps)),n=!n),n&&Le&&Zn(e),Xf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Le=mm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Le=mm(e)}else t===27?(t=Le,sl(e.type)?(e=Tc,Tc=null,Le=e):Le=t):Le=st?Pt(e.stateNode.nextSibling):null;return!0}function jl(){Le=st=null,we=!1}function cr(){var e=Kn;return e!==null&&(Dt===null?Dt=e:Dt.push.apply(Dt,e),Kn=null),e}function Ia(e){Kn===null?Kn=[e]:Kn.push(e)}var or=A(null),Dl=null,Dn=null;function Jn(e,t,n){J(or,t._currentValue),t._currentValue=n}function On(e){e._currentValue=or.current,H(or)}function fr(e,t,n){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===n)break;e=e.return}}function dr(e,t,n,l){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var f=s.child;c=c.firstContext;e:for(;c!==null;){var p=c;c=s;for(var E=0;E<t.length;E++)if(p.context===t[E]){c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),fr(c.return,n,e),l||(f=null);break e}c=p.next}}else if(s.tag===18){if(f=s.return,f===null)throw Error(r(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),fr(f,n,e),f=null}else f=s.child;if(f!==null)f.return=s;else for(f=s;f!==null;){if(f===e){f=null;break}if(s=f.sibling,s!==null){s.return=f.return,f=s;break}f=f.return}s=f}}function ia(e,t,n,l){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var f=s.alternate;if(f===null)throw Error(r(387));if(f=f.memoizedProps,f!==null){var p=s.type;zt(s.pendingProps.value,f.value)||(e!==null?e.push(p):e=[p])}}else if(s===re.current){if(f=s.alternate,f===null)throw Error(r(387));f.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ai):e=[Ai])}s=s.return}e!==null&&dr(t,e,n,l),t.flags|=262144}function du(e){for(e=e.firstContext;e!==null;){if(!zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ol(e){Dl=e,Dn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function rt(e){return Vf(Dl,e)}function hu(e,t){return Dl===null&&Ol(e),Vf(e,t)}function Vf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Dn===null){if(e===null)throw Error(r(308));Dn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Dn=Dn.next=t;return n}var R0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},U0=a.unstable_scheduleCallback,H0=a.unstable_NormalPriority,Je={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hr(){return{controller:new R0,data:new Map,refCount:0}}function Pa(e){e.refCount--,e.refCount===0&&U0(H0,function(){e.controller.abort()})}var ei=null,mr=0,ua=0,sa=null;function B0(e,t){if(ei===null){var n=ei=[];mr=0,ua=vc(),sa={status:"pending",value:void 0,then:function(l){n.push(l)}}}return mr++,t.then(Qf,Qf),t}function Qf(){if(--mr===0&&ei!==null){sa!==null&&(sa.status="fulfilled");var e=ei;ei=null,ua=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function L0(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(s){n.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<n.length;s++)(0,n[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<n.length;s++)(0,n[s])(void 0)}),l}var Kf=R.S;R.S=function(e,t){Ch=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&B0(e,t),Kf!==null&&Kf(e,t)};var Cl=A(null);function gr(){var e=Cl.current;return e!==null?e:He.pooledCache}function mu(e,t){t===null?J(Cl,Cl.current):J(Cl,t.pool)}function Zf(){var e=gr();return e===null?null:{parent:Je._currentValue,pool:e}}var ra=Error(r(460)),pr=Error(r(474)),gu=Error(r(542)),pu={then:function(){}};function Jf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $f(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Nn,Nn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ff(e),e;default:if(typeof t.status=="string")t.then(Nn,Nn);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Ff(e),e}throw Tl=t,ra}}function _l(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Tl=n,ra):n}}var Tl=null;function Wf(){if(Tl===null)throw Error(r(459));var e=Tl;return Tl=null,e}function Ff(e){if(e===ra||e===gu)throw Error(r(483))}var ca=null,ti=0;function vu(e){var t=ti;return ti+=1,ca===null&&(ca=[]),$f(ca,e,t)}function ni(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yu(e,t){throw t.$$typeof===w?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function If(e){function t(C,j){if(e){var _=C.deletions;_===null?(C.deletions=[j],C.flags|=16):_.push(j)}}function n(C,j){if(!e)return null;for(;j!==null;)t(C,j),j=j.sibling;return null}function l(C){for(var j=new Map;C!==null;)C.key!==null?j.set(C.key,C):j.set(C.index,C),C=C.sibling;return j}function s(C,j){return C=An(C,j),C.index=0,C.sibling=null,C}function c(C,j,_){return C.index=_,e?(_=C.alternate,_!==null?(_=_.index,_<j?(C.flags|=67108866,j):_):(C.flags|=67108866,j)):(C.flags|=1048576,j)}function f(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function p(C,j,_,k){return j===null||j.tag!==6?(j=ar(_,C.mode,k),j.return=C,j):(j=s(j,_),j.return=C,j)}function E(C,j,_,k){var ue=_.type;return ue===D?B(C,j,_.props.children,k,_.key):j!==null&&(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&_l(ue)===j.type)?(j=s(j,_.props),ni(j,_),j.return=C,j):(j=ou(_.type,_.key,_.props,null,C.mode,k),ni(j,_),j.return=C,j)}function T(C,j,_,k){return j===null||j.tag!==4||j.stateNode.containerInfo!==_.containerInfo||j.stateNode.implementation!==_.implementation?(j=ir(_,C.mode,k),j.return=C,j):(j=s(j,_.children||[]),j.return=C,j)}function B(C,j,_,k,ue){return j===null||j.tag!==7?(j=Al(_,C.mode,k,ue),j.return=C,j):(j=s(j,_),j.return=C,j)}function Y(C,j,_){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=ar(""+j,C.mode,_),j.return=C,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case N:return _=ou(j.type,j.key,j.props,null,C.mode,_),ni(_,j),_.return=C,_;case z:return j=ir(j,C.mode,_),j.return=C,j;case ae:return j=_l(j),Y(C,j,_)}if(se(j)||xe(j))return j=Al(j,C.mode,_,null),j.return=C,j;if(typeof j.then=="function")return Y(C,vu(j),_);if(j.$$typeof===q)return Y(C,hu(C,j),_);yu(C,j)}return null}function M(C,j,_,k){var ue=j!==null?j.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return ue!==null?null:p(C,j,""+_,k);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case N:return _.key===ue?E(C,j,_,k):null;case z:return _.key===ue?T(C,j,_,k):null;case ae:return _=_l(_),M(C,j,_,k)}if(se(_)||xe(_))return ue!==null?null:B(C,j,_,k,null);if(typeof _.then=="function")return M(C,j,vu(_),k);if(_.$$typeof===q)return M(C,j,hu(C,_),k);yu(C,_)}return null}function U(C,j,_,k,ue){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return C=C.get(_)||null,p(j,C,""+k,ue);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case N:return C=C.get(k.key===null?_:k.key)||null,E(j,C,k,ue);case z:return C=C.get(k.key===null?_:k.key)||null,T(j,C,k,ue);case ae:return k=_l(k),U(C,j,_,k,ue)}if(se(k)||xe(k))return C=C.get(_)||null,B(j,C,k,ue,null);if(typeof k.then=="function")return U(C,j,_,vu(k),ue);if(k.$$typeof===q)return U(C,j,_,hu(j,k),ue);yu(j,k)}return null}function P(C,j,_,k){for(var ue=null,je=null,te=j,pe=j=0,Ne=null;te!==null&&pe<_.length;pe++){te.index>pe?(Ne=te,te=null):Ne=te.sibling;var De=M(C,te,_[pe],k);if(De===null){te===null&&(te=Ne);break}e&&te&&De.alternate===null&&t(C,te),j=c(De,j,pe),je===null?ue=De:je.sibling=De,je=De,te=Ne}if(pe===_.length)return n(C,te),we&&jn(C,pe),ue;if(te===null){for(;pe<_.length;pe++)te=Y(C,_[pe],k),te!==null&&(j=c(te,j,pe),je===null?ue=te:je.sibling=te,je=te);return we&&jn(C,pe),ue}for(te=l(te);pe<_.length;pe++)Ne=U(te,C,pe,_[pe],k),Ne!==null&&(e&&Ne.alternate!==null&&te.delete(Ne.key===null?pe:Ne.key),j=c(Ne,j,pe),je===null?ue=Ne:je.sibling=Ne,je=Ne);return e&&te.forEach(function(dl){return t(C,dl)}),we&&jn(C,pe),ue}function ce(C,j,_,k){if(_==null)throw Error(r(151));for(var ue=null,je=null,te=j,pe=j=0,Ne=null,De=_.next();te!==null&&!De.done;pe++,De=_.next()){te.index>pe?(Ne=te,te=null):Ne=te.sibling;var dl=M(C,te,De.value,k);if(dl===null){te===null&&(te=Ne);break}e&&te&&dl.alternate===null&&t(C,te),j=c(dl,j,pe),je===null?ue=dl:je.sibling=dl,je=dl,te=Ne}if(De.done)return n(C,te),we&&jn(C,pe),ue;if(te===null){for(;!De.done;pe++,De=_.next())De=Y(C,De.value,k),De!==null&&(j=c(De,j,pe),je===null?ue=De:je.sibling=De,je=De);return we&&jn(C,pe),ue}for(te=l(te);!De.done;pe++,De=_.next())De=U(te,C,pe,De.value,k),De!==null&&(e&&De.alternate!==null&&te.delete(De.key===null?pe:De.key),j=c(De,j,pe),je===null?ue=De:je.sibling=De,je=De);return e&&te.forEach(function($v){return t(C,$v)}),we&&jn(C,pe),ue}function Ue(C,j,_,k){if(typeof _=="object"&&_!==null&&_.type===D&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case N:e:{for(var ue=_.key;j!==null;){if(j.key===ue){if(ue=_.type,ue===D){if(j.tag===7){n(C,j.sibling),k=s(j,_.props.children),k.return=C,C=k;break e}}else if(j.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===ae&&_l(ue)===j.type){n(C,j.sibling),k=s(j,_.props),ni(k,_),k.return=C,C=k;break e}n(C,j);break}else t(C,j);j=j.sibling}_.type===D?(k=Al(_.props.children,C.mode,k,_.key),k.return=C,C=k):(k=ou(_.type,_.key,_.props,null,C.mode,k),ni(k,_),k.return=C,C=k)}return f(C);case z:e:{for(ue=_.key;j!==null;){if(j.key===ue)if(j.tag===4&&j.stateNode.containerInfo===_.containerInfo&&j.stateNode.implementation===_.implementation){n(C,j.sibling),k=s(j,_.children||[]),k.return=C,C=k;break e}else{n(C,j);break}else t(C,j);j=j.sibling}k=ir(_,C.mode,k),k.return=C,C=k}return f(C);case ae:return _=_l(_),Ue(C,j,_,k)}if(se(_))return P(C,j,_,k);if(xe(_)){if(ue=xe(_),typeof ue!="function")throw Error(r(150));return _=ue.call(_),ce(C,j,_,k)}if(typeof _.then=="function")return Ue(C,j,vu(_),k);if(_.$$typeof===q)return Ue(C,j,hu(C,_),k);yu(C,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,j!==null&&j.tag===6?(n(C,j.sibling),k=s(j,_),k.return=C,C=k):(n(C,j),k=ar(_,C.mode,k),k.return=C,C=k),f(C)):n(C,j)}return function(C,j,_,k){try{ti=0;var ue=Ue(C,j,_,k);return ca=null,ue}catch(te){if(te===ra||te===gu)throw te;var je=Rt(29,te,null,C.mode);return je.lanes=k,je.return=C,je}finally{}}}var Ml=If(!0),Pf=If(!1),$n=!1;function vr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yr(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 Wn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fn(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Oe&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=cu(e),Hf(e,null,n),t}return ru(e,l,t,n),cu(e)}function li(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}function br(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var s=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?s=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?s=c=t:c=c.next=t}else s=c=t;n={baseState:l.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xr=!1;function ai(){if(xr){var e=sa;if(e!==null)throw e}}function ii(e,t,n,l){xr=!1;var s=e.updateQueue;$n=!1;var c=s.firstBaseUpdate,f=s.lastBaseUpdate,p=s.shared.pending;if(p!==null){s.shared.pending=null;var E=p,T=E.next;E.next=null,f===null?c=T:f.next=T,f=E;var B=e.alternate;B!==null&&(B=B.updateQueue,p=B.lastBaseUpdate,p!==f&&(p===null?B.firstBaseUpdate=T:p.next=T,B.lastBaseUpdate=E))}if(c!==null){var Y=s.baseState;f=0,B=T=E=null,p=c;do{var M=p.lane&-536870913,U=M!==p.lane;if(U?(Ee&M)===M:(l&M)===M){M!==0&&M===ua&&(xr=!0),B!==null&&(B=B.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});e:{var P=e,ce=p;M=t;var Ue=n;switch(ce.tag){case 1:if(P=ce.payload,typeof P=="function"){Y=P.call(Ue,Y,M);break e}Y=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=ce.payload,M=typeof P=="function"?P.call(Ue,Y,M):P,M==null)break e;Y=b({},Y,M);break e;case 2:$n=!0}}M=p.callback,M!==null&&(e.flags|=64,U&&(e.flags|=8192),U=s.callbacks,U===null?s.callbacks=[M]:U.push(M))}else U={lane:M,tag:p.tag,payload:p.payload,callback:p.callback,next:null},B===null?(T=B=U,E=Y):B=B.next=U,f|=M;if(p=p.next,p===null){if(p=s.shared.pending,p===null)break;U=p,p=U.next,U.next=null,s.lastBaseUpdate=U,s.shared.pending=null}}while(!0);B===null&&(E=Y),s.baseState=E,s.firstBaseUpdate=T,s.lastBaseUpdate=B,c===null&&(s.shared.lanes=0),nl|=f,e.lanes=f,e.memoizedState=Y}}function ed(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function td(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ed(n[e],t)}var oa=A(null),bu=A(0);function nd(e,t){e=Bn,J(bu,e),J(oa,t),Bn=e|t.baseLanes}function Sr(){J(bu,Bn),J(oa,oa.current)}function Er(){Bn=bu.current,H(oa),H(bu)}var Ut=A(null),It=null;function In(e){var t=e.alternate;J(Qe,Qe.current&1),J(Ut,e),It===null&&(t===null||oa.current!==null||t.memoizedState!==null)&&(It=e)}function Nr(e){J(Qe,Qe.current),J(Ut,e),It===null&&(It=e)}function ld(e){e.tag===22?(J(Qe,Qe.current),J(Ut,e),It===null&&(It=e)):Pn()}function Pn(){J(Qe,Qe.current),J(Ut,Ut.current)}function Ht(e){H(Ut),It===e&&(It=null),H(Qe)}var Qe=A(0);function xu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Cc(n)||_c(n)))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 Cn=0,ge=null,ze=null,$e=null,Su=!1,fa=!1,zl=!1,Eu=0,ui=0,da=null,k0=0;function Ye(){throw Error(r(321))}function wr(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zt(e[n],t[n]))return!1;return!0}function Ar(e,t,n,l,s,c){return Cn=c,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?qd:qr,zl=!1,c=n(l,s),zl=!1,fa&&(c=id(t,n,l,s)),ad(e),c}function ad(e){R.H=ci;var t=ze!==null&&ze.next!==null;if(Cn=0,$e=ze=ge=null,Su=!1,ui=0,da=null,t)throw Error(r(300));e===null||We||(e=e.dependencies,e!==null&&du(e)&&(We=!0))}function id(e,t,n,l){ge=e;var s=0;do{if(fa&&(da=null),ui=0,fa=!1,25<=s)throw Error(r(301));if(s+=1,$e=ze=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}R.H=Yd,c=t(n,l)}while(fa);return c}function q0(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?si(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(ge.flags|=1024),t}function jr(){var e=Eu!==0;return Eu=0,e}function Dr(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Or(e){if(Su){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Su=!1}Cn=0,$e=ze=ge=null,fa=!1,ui=Eu=0,da=null}function vt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $e===null?ge.memoizedState=$e=e:$e=$e.next=e,$e}function Ke(){if(ze===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=$e===null?ge.memoizedState:$e.next;if(t!==null)$e=t,ze=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},$e===null?ge.memoizedState=$e=e:$e=$e.next=e}return $e}function Nu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function si(e){var t=ui;return ui+=1,da===null&&(da=[]),e=$f(da,e,t),t=ge,($e===null?t.memoizedState:$e.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?qd:qr),e}function wu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return si(e);if(e.$$typeof===q)return rt(e)}throw Error(r(438,String(e)))}function Cr(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=ge.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Nu(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=me;return t.index++,n}function _n(e,t){return typeof t=="function"?t(e):t}function Au(e){var t=Ke();return _r(t,ze,e)}function _r(e,t,n){var l=e.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=n;var s=e.baseQueue,c=l.pending;if(c!==null){if(s!==null){var f=s.next;s.next=c.next,c.next=f}t.baseQueue=s=c,l.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var p=f=null,E=null,T=t,B=!1;do{var Y=T.lane&-536870913;if(Y!==T.lane?(Ee&Y)===Y:(Cn&Y)===Y){var M=T.revertLane;if(M===0)E!==null&&(E=E.next={lane:0,revertLane:0,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),Y===ua&&(B=!0);else if((Cn&M)===M){T=T.next,M===ua&&(B=!0);continue}else Y={lane:0,revertLane:T.revertLane,gesture:null,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},E===null?(p=E=Y,f=c):E=E.next=Y,ge.lanes|=M,nl|=M;Y=T.action,zl&&n(c,Y),c=T.hasEagerState?T.eagerState:n(c,Y)}else M={lane:Y,revertLane:T.revertLane,gesture:T.gesture,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null},E===null?(p=E=M,f=c):E=E.next=M,ge.lanes|=Y,nl|=Y;T=T.next}while(T!==null&&T!==t);if(E===null?f=c:E.next=p,!zt(c,e.memoizedState)&&(We=!0,B&&(n=sa,n!==null)))throw n;e.memoizedState=c,e.baseState=f,e.baseQueue=E,l.lastRenderedState=c}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Tr(e){var t=Ke(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var l=n.dispatch,s=n.pending,c=t.memoizedState;if(s!==null){n.pending=null;var f=s=s.next;do c=e(c,f.action),f=f.next;while(f!==s);zt(c,t.memoizedState)||(We=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,l]}function ud(e,t,n){var l=ge,s=Ke(),c=we;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var f=!zt((ze||s).memoizedState,n);if(f&&(s.memoizedState=n,We=!0),s=s.queue,Rr(cd.bind(null,l,s,e),[e]),s.getSnapshot!==t||f||$e!==null&&$e.memoizedState.tag&1){if(l.flags|=2048,ha(9,{destroy:void 0},rd.bind(null,l,s,n,t),null),He===null)throw Error(r(349));c||(Cn&127)!==0||sd(l,t,n)}return n}function sd(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=Nu(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rd(e,t,n,l){t.value=n,t.getSnapshot=l,od(t)&&fd(e)}function cd(e,t,n){return n(function(){od(t)&&fd(e)})}function od(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zt(e,n)}catch{return!0}}function fd(e){var t=wl(e,2);t!==null&&Ot(t,e,2)}function Mr(e){var t=vt();if(typeof e=="function"){var n=e;if(e=n(),zl){Yt(!0);try{n()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:e},t}function dd(e,t,n,l){return e.baseState=n,_r(e,ze,typeof l=="function"?l:_n)}function Y0(e,t,n,l,s){if(Ou(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};R.T!==null?n(!0):c.isTransition=!1,l(c),n=t.pending,n===null?(c.next=t.pending=c,hd(t,c)):(c.next=n.next,t.pending=n.next=c)}}function hd(e,t){var n=t.action,l=t.payload,s=e.state;if(t.isTransition){var c=R.T,f={};R.T=f;try{var p=n(s,l),E=R.S;E!==null&&E(f,p),md(e,t,p)}catch(T){zr(e,t,T)}finally{c!==null&&f.types!==null&&(c.types=f.types),R.T=c}}else try{c=n(s,l),md(e,t,c)}catch(T){zr(e,t,T)}}function md(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){gd(e,t,l)},function(l){return zr(e,t,l)}):gd(e,t,n)}function gd(e,t,n){t.status="fulfilled",t.value=n,pd(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,hd(e,n)))}function zr(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,pd(t),t=t.next;while(t!==l)}e.action=null}function pd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function vd(e,t){return t}function yd(e,t){if(we){var n=He.formState;if(n!==null){e:{var l=ge;if(we){if(Le){t:{for(var s=Le,c=Ft;s.nodeType!==8;){if(!c){s=null;break t}if(s=Pt(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Le=Pt(s.nextSibling),l=s.data==="F!";break e}}Zn(l)}l=!1}l&&(t=n[0])}}return n=vt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vd,lastRenderedState:t},n.queue=l,n=Bd.bind(null,ge,l),l.dispatch=n,l=Mr(!1),c=kr.bind(null,ge,!1,l.queue),l=vt(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,n=Y0.bind(null,ge,s,c,n),s.dispatch=n,l.memoizedState=e,[t,n,!1]}function bd(e){var t=Ke();return xd(t,ze,e)}function xd(e,t,n){if(t=_r(e,t,vd)[0],e=Au(_n)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=si(t)}catch(f){throw f===ra?gu:f}else l=t;t=Ke();var s=t.queue,c=s.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,ha(9,{destroy:void 0},G0.bind(null,s,n),null)),[l,c,e]}function G0(e,t){e.action=t}function Sd(e){var t=Ke(),n=ze;if(n!==null)return xd(t,n,e);Ke(),t=t.memoizedState,n=Ke();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function ha(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=ge.updateQueue,t===null&&(t=Nu(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Ed(){return Ke().memoizedState}function ju(e,t,n,l){var s=vt();ge.flags|=e,s.memoizedState=ha(1|t,{destroy:void 0},n,l===void 0?null:l)}function Du(e,t,n,l){var s=Ke();l=l===void 0?null:l;var c=s.memoizedState.inst;ze!==null&&l!==null&&wr(l,ze.memoizedState.deps)?s.memoizedState=ha(t,c,n,l):(ge.flags|=e,s.memoizedState=ha(1|t,c,n,l))}function Nd(e,t){ju(8390656,8,e,t)}function Rr(e,t){Du(2048,8,e,t)}function X0(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=Nu(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function wd(e){var t=Ke().memoizedState;return X0({ref:t,nextImpl:e}),function(){if((Oe&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function Ad(e,t){return Du(4,2,e,t)}function jd(e,t){return Du(4,4,e,t)}function Dd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Od(e,t,n){n=n!=null?n.concat([e]):null,Du(4,4,Dd.bind(null,t,e),n)}function Ur(){}function Cd(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&wr(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function _d(e,t){var n=Ke();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&wr(t,l[1]))return l[0];if(l=e(),zl){Yt(!0);try{e()}finally{Yt(!1)}}return n.memoizedState=[l,t],l}function Hr(e,t,n){return n===void 0||(Cn&1073741824)!==0&&(Ee&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Th(),ge.lanes|=e,nl|=e,n)}function Td(e,t,n,l){return zt(n,t)?n:oa.current!==null?(e=Hr(e,n,l),zt(e,t)||(We=!0),e):(Cn&42)===0||(Cn&1073741824)!==0&&(Ee&261930)===0?(We=!0,e.memoizedState=n):(e=Th(),ge.lanes|=e,nl|=e,t)}function Md(e,t,n,l,s){var c=G.p;G.p=c!==0&&8>c?c:8;var f=R.T,p={};R.T=p,kr(e,!1,t,n);try{var E=s(),T=R.S;if(T!==null&&T(p,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var B=L0(E,l);ri(e,t,B,kt(e))}else ri(e,t,l,kt(e))}catch(Y){ri(e,t,{then:function(){},status:"rejected",reason:Y},kt())}finally{G.p=c,f!==null&&p.types!==null&&(f.types=p.types),R.T=f}}function V0(){}function Br(e,t,n,l){if(e.tag!==5)throw Error(r(476));var s=zd(e).queue;Md(e,s,t,le,n===null?V0:function(){return Rd(e),n(l)})}function zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:le},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_n,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rd(e){var t=zd(e);t.next===null&&(t=e.alternate.memoizedState),ri(e,t.next.queue,{},kt())}function Lr(){return rt(Ai)}function Ud(){return Ke().memoizedState}function Hd(){return Ke().memoizedState}function Q0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kt();e=Wn(n);var l=Fn(t,e,n);l!==null&&(Ot(l,t,n),li(l,t,n)),t={cache:hr()},e.payload=t;return}t=t.return}}function K0(e,t,n){var l=kt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ou(e)?Ld(t,n):(n=nr(e,t,n,l),n!==null&&(Ot(n,e,l),kd(n,t,l)))}function Bd(e,t,n){var l=kt();ri(e,t,n,l)}function ri(e,t,n,l){var s={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ou(e))Ld(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var f=t.lastRenderedState,p=c(f,n);if(s.hasEagerState=!0,s.eagerState=p,zt(p,f))return ru(e,t,s,0),He===null&&su(),!1}catch{}finally{}if(n=nr(e,t,s,l),n!==null)return Ot(n,e,l),kd(n,t,l),!0}return!1}function kr(e,t,n,l){if(l={lane:2,revertLane:vc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ou(e)){if(t)throw Error(r(479))}else t=nr(e,n,l,2),t!==null&&Ot(t,e,2)}function Ou(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function Ld(e,t){fa=Su=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function kd(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Mt(e,n)}}var ci={readContext:rt,use:wu,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};ci.useEffectEvent=Ye;var qd={readContext:rt,use:wu,useCallback:function(e,t){return vt().memoizedState=[e,t===void 0?null:t],e},useContext:rt,useEffect:Nd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ju(4194308,4,Dd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ju(4194308,4,e,t)},useInsertionEffect:function(e,t){ju(4,2,e,t)},useMemo:function(e,t){var n=vt();t=t===void 0?null:t;var l=e();if(zl){Yt(!0);try{e()}finally{Yt(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=vt();if(n!==void 0){var s=n(t);if(zl){Yt(!0);try{n(t)}finally{Yt(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=K0.bind(null,ge,e),[l.memoizedState,e]},useRef:function(e){var t=vt();return e={current:e},t.memoizedState=e},useState:function(e){e=Mr(e);var t=e.queue,n=Bd.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ur,useDeferredValue:function(e,t){var n=vt();return Hr(n,e,t)},useTransition:function(){var e=Mr(!1);return e=Md.bind(null,ge,e.queue,!0,!1),vt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=ge,s=vt();if(we){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),He===null)throw Error(r(349));(Ee&127)!==0||sd(l,t,n)}s.memoizedState=n;var c={value:n,getSnapshot:t};return s.queue=c,Nd(cd.bind(null,l,c,e),[e]),l.flags|=2048,ha(9,{destroy:void 0},rd.bind(null,l,c,n,t),null),n},useId:function(){var e=vt(),t=He.identifierPrefix;if(we){var n=hn,l=dn;n=(l&~(1<<32-ht(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Eu++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=k0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Lr,useFormState:yd,useActionState:yd,useOptimistic:function(e){var t=vt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=kr.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:Cr,useCacheRefresh:function(){return vt().memoizedState=Q0.bind(null,ge)},useEffectEvent:function(e){var t=vt(),n={impl:e};return t.memoizedState=n,function(){if((Oe&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},qr={readContext:rt,use:wu,useCallback:Cd,useContext:rt,useEffect:Rr,useImperativeHandle:Od,useInsertionEffect:Ad,useLayoutEffect:jd,useMemo:_d,useReducer:Au,useRef:Ed,useState:function(){return Au(_n)},useDebugValue:Ur,useDeferredValue:function(e,t){var n=Ke();return Td(n,ze.memoizedState,e,t)},useTransition:function(){var e=Au(_n)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:ud,useId:Ud,useHostTransitionStatus:Lr,useFormState:bd,useActionState:bd,useOptimistic:function(e,t){var n=Ke();return dd(n,ze,e,t)},useMemoCache:Cr,useCacheRefresh:Hd};qr.useEffectEvent=wd;var Yd={readContext:rt,use:wu,useCallback:Cd,useContext:rt,useEffect:Rr,useImperativeHandle:Od,useInsertionEffect:Ad,useLayoutEffect:jd,useMemo:_d,useReducer:Tr,useRef:Ed,useState:function(){return Tr(_n)},useDebugValue:Ur,useDeferredValue:function(e,t){var n=Ke();return ze===null?Hr(n,e,t):Td(n,ze.memoizedState,e,t)},useTransition:function(){var e=Tr(_n)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:si(e),t]},useSyncExternalStore:ud,useId:Ud,useHostTransitionStatus:Lr,useFormState:Sd,useActionState:Sd,useOptimistic:function(e,t){var n=Ke();return ze!==null?dd(n,ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Cr,useCacheRefresh:Hd};Yd.useEffectEvent=wd;function Yr(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:b({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gr={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=kt(),s=Wn(l);s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,l),t!==null&&(Ot(t,e,l),li(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=kt(),s=Wn(l);s.tag=1,s.payload=t,n!=null&&(s.callback=n),t=Fn(e,s,l),t!==null&&(Ot(t,e,l),li(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kt(),l=Wn(n);l.tag=2,t!=null&&(l.callback=t),t=Fn(e,l,n),t!==null&&(Ot(t,e,n),li(t,e,n))}};function Gd(e,t,n,l,s,c,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,f):t.prototype&&t.prototype.isPureReactComponent?!$a(n,l)||!$a(s,c):!0}function Xd(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Gr.enqueueReplaceState(t,t.state,null)}function Rl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=b({},n));for(var s in e)n[s]===void 0&&(n[s]=e[s])}return n}function Vd(e){uu(e)}function Qd(e){console.error(e)}function Kd(e){uu(e)}function Cu(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function Zd(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Xr(e,t,n){return n=Wn(n),n.tag=3,n.payload={element:null},n.callback=function(){Cu(e,t)},n}function Jd(e){return e=Wn(e),e.tag=3,e}function $d(e,t,n,l){var s=n.type.getDerivedStateFromError;if(typeof s=="function"){var c=l.value;e.payload=function(){return s(c)},e.callback=function(){Zd(t,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){Zd(t,n,l),typeof s!="function"&&(ll===null?ll=new Set([this]):ll.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function Z0(e,t,n,l,s){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&ia(t,n,s,!0),n=Ut.current,n!==null){switch(n.tag){case 31:case 13:return It===null?Yu():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=s,l===pu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),mc(e,l,s)),!1;case 22:return n.flags|=65536,l===pu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),mc(e,l,s)),!1}throw Error(r(435,n.tag))}return mc(e,l,s),Yu(),!1}if(we)return t=Ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==rr&&(e=Error(r(422),{cause:l}),Ia(Jt(e,n)))):(l!==rr&&(t=Error(r(423),{cause:l}),Ia(Jt(t,n))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=Jt(l,n),s=Xr(e.stateNode,l,s),br(e,s),Ge!==4&&(Ge=2)),!1;var c=Error(r(520),{cause:l});if(c=Jt(c,n),vi===null?vi=[c]:vi.push(c),Ge!==4&&(Ge=2),t===null)return!0;l=Jt(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=s&-s,n.lanes|=e,e=Xr(n.stateNode,l,e),br(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ll===null||!ll.has(c))))return n.flags|=65536,s&=-s,n.lanes|=s,s=Jd(s),$d(s,e,n,l),br(n,s),!1}n=n.return}while(n!==null);return!1}var Vr=Error(r(461)),We=!1;function ct(e,t,n,l){t.child=e===null?Pf(t,null,n,l):Ml(t,e.child,n,l)}function Wd(e,t,n,l,s){n=n.render;var c=t.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return Ol(t),l=Ar(e,t,n,f,c,s),p=jr(),e!==null&&!We?(Dr(e,t,s),Tn(e,t,s)):(we&&p&&ur(t),t.flags|=1,ct(e,t,l,s),t.child)}function Fd(e,t,n,l,s){if(e===null){var c=n.type;return typeof c=="function"&&!lr(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Id(e,t,c,l,s)):(e=ou(n.type,null,l,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ir(e,s)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:$a,n(f,l)&&e.ref===t.ref)return Tn(e,t,s)}return t.flags|=1,e=An(c,l),e.ref=t.ref,e.return=t,t.child=e}function Id(e,t,n,l,s){if(e!==null){var c=e.memoizedProps;if($a(c,l)&&e.ref===t.ref)if(We=!1,t.pendingProps=l=c,Ir(e,s))(e.flags&131072)!==0&&(We=!0);else return t.lanes=e.lanes,Tn(e,t,s)}return Qr(e,t,n,l,s)}function Pd(e,t,n,l){var s=l.children,c=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(c=c!==null?c.baseLanes|n:n,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~c}else l=0,t.child=null;return eh(e,t,c,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mu(t,c!==null?c.cachePool:null),c!==null?nd(t,c):Sr(),ld(t);else return l=t.lanes=536870912,eh(e,t,c!==null?c.baseLanes|n:n,n,l)}else c!==null?(mu(t,c.cachePool),nd(t,c),Pn(),t.memoizedState=null):(e!==null&&mu(t,null),Sr(),Pn());return ct(e,t,s,n),t.child}function oi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function eh(e,t,n,l,s){var c=gr();return c=c===null?null:{parent:Je._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&mu(t,null),Sr(),ld(t),e!==null&&ia(e,t,l,!0),t.childLanes=s,null}function _u(e,t){return t=Mu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function th(e,t,n){return Ml(t,e.child,null,n),e=_u(t,t.pendingProps),e.flags|=2,Ht(t),t.memoizedState=null,e}function J0(e,t,n){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(l.mode==="hidden")return e=_u(t,l),t.lanes=536870912,oi(null,e);if(Nr(t),(e=Le)?(e=hm(e,Ft),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,st=t,Le=null)):e=null,e===null)throw Zn(t);return t.lanes=536870912,null}return _u(t,l)}var c=e.memoizedState;if(c!==null){var f=c.dehydrated;if(Nr(t),s)if(t.flags&256)t.flags&=-257,t=th(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(We||ia(e,t,n,!1),s=(n&e.childLanes)!==0,We||s){if(l=He,l!==null&&(f=Xt(l,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,wl(e,f),Ot(l,e,f),Vr;Yu(),t=th(e,t,n)}else e=c.treeContext,Le=Pt(f.nextSibling),st=t,we=!0,Kn=null,Ft=!1,e!==null&&Yf(t,e),t=_u(t,l),t.flags|=4096;return t}return e=An(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Tu(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Qr(e,t,n,l,s){return Ol(t),n=Ar(e,t,n,l,void 0,s),l=jr(),e!==null&&!We?(Dr(e,t,s),Tn(e,t,s)):(we&&l&&ur(t),t.flags|=1,ct(e,t,n,s),t.child)}function nh(e,t,n,l,s,c){return Ol(t),t.updateQueue=null,n=id(t,l,n,s),ad(e),l=jr(),e!==null&&!We?(Dr(e,t,c),Tn(e,t,c)):(we&&l&&ur(t),t.flags|=1,ct(e,t,n,c),t.child)}function lh(e,t,n,l,s){if(Ol(t),t.stateNode===null){var c=ta,f=n.contextType;typeof f=="object"&&f!==null&&(c=rt(f)),c=new n(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Gr,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},vr(t),f=n.contextType,c.context=typeof f=="object"&&f!==null?rt(f):ta,c.state=t.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Yr(t,n,f,l),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&Gr.enqueueReplaceState(c,c.state,null),ii(t,l,c,s),ai(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var p=t.memoizedProps,E=Rl(n,p);c.props=E;var T=c.context,B=n.contextType;f=ta,typeof B=="object"&&B!==null&&(f=rt(B));var Y=n.getDerivedStateFromProps;B=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=t.pendingProps!==p,B||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||T!==f)&&Xd(t,c,l,f),$n=!1;var M=t.memoizedState;c.state=M,ii(t,l,c,s),ai(),T=t.memoizedState,p||M!==T||$n?(typeof Y=="function"&&(Yr(t,n,Y,l),T=t.memoizedState),(E=$n||Gd(t,n,E,l,M,T,f))?(B||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=T),c.props=l,c.state=T,c.context=f,l=E):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,yr(e,t),f=t.memoizedProps,B=Rl(n,f),c.props=B,Y=t.pendingProps,M=c.context,T=n.contextType,E=ta,typeof T=="object"&&T!==null&&(E=rt(T)),p=n.getDerivedStateFromProps,(T=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==Y||M!==E)&&Xd(t,c,l,E),$n=!1,M=t.memoizedState,c.state=M,ii(t,l,c,s),ai();var U=t.memoizedState;f!==Y||M!==U||$n||e!==null&&e.dependencies!==null&&du(e.dependencies)?(typeof p=="function"&&(Yr(t,n,p,l),U=t.memoizedState),(B=$n||Gd(t,n,B,l,M,U,E)||e!==null&&e.dependencies!==null&&du(e.dependencies))?(T||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,U,E),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,U,E)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=U),c.props=l,c.state=U,c.context=E,l=B):(typeof c.componentDidUpdate!="function"||f===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,Tu(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Ml(t,e.child,null,s),t.child=Ml(t,null,n,s)):ct(e,t,n,s),t.memoizedState=c.state,e=t.child):e=Tn(e,t,s),e}function ah(e,t,n,l){return jl(),t.flags|=256,ct(e,t,n,l),t.child}var Kr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zr(e){return{baseLanes:e,cachePool:Zf()}}function Jr(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Lt),e}function ih(e,t,n){var l=t.pendingProps,s=!1,c=(t.flags&128)!==0,f;if((f=c)||(f=e!==null&&e.memoizedState===null?!1:(Qe.current&2)!==0),f&&(s=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(s?In(t):Pn(),(e=Le)?(e=hm(e,Ft),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Qn!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=Lf(e),n.return=t,t.child=n,st=t,Le=null)):e=null,e===null)throw Zn(t);return _c(e)?t.lanes=32:t.lanes=536870912,null}var p=l.children;return l=l.fallback,s?(Pn(),s=t.mode,p=Mu({mode:"hidden",children:p},s),l=Al(l,s,n,null),p.return=t,l.return=t,p.sibling=l,t.child=p,l=t.child,l.memoizedState=Zr(n),l.childLanes=Jr(e,f,n),t.memoizedState=Kr,oi(null,l)):(In(t),$r(t,p))}var E=e.memoizedState;if(E!==null&&(p=E.dehydrated,p!==null)){if(c)t.flags&256?(In(t),t.flags&=-257,t=Wr(e,t,n)):t.memoizedState!==null?(Pn(),t.child=e.child,t.flags|=128,t=null):(Pn(),p=l.fallback,s=t.mode,l=Mu({mode:"visible",children:l.children},s),p=Al(p,s,n,null),p.flags|=2,l.return=t,p.return=t,l.sibling=p,t.child=l,Ml(t,e.child,null,n),l=t.child,l.memoizedState=Zr(n),l.childLanes=Jr(e,f,n),t.memoizedState=Kr,t=oi(null,l));else if(In(t),_c(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var T=f.dgst;f=T,l=Error(r(419)),l.stack="",l.digest=f,Ia({value:l,source:null,stack:null}),t=Wr(e,t,n)}else if(We||ia(e,t,n,!1),f=(n&e.childLanes)!==0,We||f){if(f=He,f!==null&&(l=Xt(f,n),l!==0&&l!==E.retryLane))throw E.retryLane=l,wl(e,l),Ot(f,e,l),Vr;Cc(p)||Yu(),t=Wr(e,t,n)}else Cc(p)?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,Le=Pt(p.nextSibling),st=t,we=!0,Kn=null,Ft=!1,e!==null&&Yf(t,e),t=$r(t,l.children),t.flags|=4096);return t}return s?(Pn(),p=l.fallback,s=t.mode,E=e.child,T=E.sibling,l=An(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,T!==null?p=An(T,p):(p=Al(p,s,n,null),p.flags|=2),p.return=t,l.return=t,l.sibling=p,t.child=l,oi(null,l),l=t.child,p=e.child.memoizedState,p===null?p=Zr(n):(s=p.cachePool,s!==null?(E=Je._currentValue,s=s.parent!==E?{parent:E,pool:E}:s):s=Zf(),p={baseLanes:p.baseLanes|n,cachePool:s}),l.memoizedState=p,l.childLanes=Jr(e,f,n),t.memoizedState=Kr,oi(e.child,l)):(In(t),n=e.child,e=n.sibling,n=An(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=n,t.memoizedState=null,n)}function $r(e,t){return t=Mu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mu(e,t){return e=Rt(22,e,null,t),e.lanes=0,e}function Wr(e,t,n){return Ml(t,e.child,null,n),e=$r(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uh(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),fr(e.return,t,n)}function Fr(e,t,n,l,s,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:s,treeForkCount:c}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=s,f.treeForkCount=c)}function sh(e,t,n){var l=t.pendingProps,s=l.revealOrder,c=l.tail;l=l.children;var f=Qe.current,p=(f&2)!==0;if(p?(f=f&1|2,t.flags|=128):f&=1,J(Qe,f),ct(e,t,l,n),l=we?Fa:0,!p&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uh(e,n,t);else if(e.tag===19)uh(e,n,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(s){case"forwards":for(n=t.child,s=null;n!==null;)e=n.alternate,e!==null&&xu(e)===null&&(s=n),n=n.sibling;n=s,n===null?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Fr(t,!1,s,n,c,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&xu(e)===null){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Fr(t,!0,n,null,c,l);break;case"together":Fr(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Tn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),nl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ia(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=An(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=An(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ir(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&du(e)))}function $0(e,t,n){switch(t.tag){case 3:Be(t,t.stateNode.containerInfo),Jn(t,Je,e.memoizedState.cache),jl();break;case 27:case 5:Se(t);break;case 4:Be(t,t.stateNode.containerInfo);break;case 10:Jn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Nr(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(In(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ih(e,t,n):(In(t),e=Tn(e,t,n),e!==null?e.sibling:null);In(t);break;case 19:var s=(e.flags&128)!==0;if(l=(n&t.childLanes)!==0,l||(ia(e,t,n,!1),l=(n&t.childLanes)!==0),s){if(l)return sh(e,t,n);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),J(Qe,Qe.current),l)break;return null;case 22:return t.lanes=0,Pd(e,t,n,t.pendingProps);case 24:Jn(t,Je,e.memoizedState.cache)}return Tn(e,t,n)}function rh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)We=!0;else{if(!Ir(e,n)&&(t.flags&128)===0)return We=!1,$0(e,t,n);We=(e.flags&131072)!==0}else We=!1,we&&(t.flags&1048576)!==0&&qf(t,Fa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=_l(t.elementType),t.type=e,typeof e=="function")lr(e)?(l=Rl(e,l),t.tag=1,t=lh(null,t,e,l,n)):(t.tag=0,t=Qr(null,t,e,l,n));else{if(e!=null){var s=e.$$typeof;if(s===X){t.tag=11,t=Wd(null,t,e,l,n);break e}else if(s===V){t.tag=14,t=Fd(null,t,e,l,n);break e}}throw t=F(e)||e,Error(r(306,t,""))}}return t;case 0:return Qr(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,s=Rl(l,t.pendingProps),lh(e,t,l,s,n);case 3:e:{if(Be(t,t.stateNode.containerInfo),e===null)throw Error(r(387));l=t.pendingProps;var c=t.memoizedState;s=c.element,yr(e,t),ii(t,l,null,n);var f=t.memoizedState;if(l=f.cache,Jn(t,Je,l),l!==c.cache&&dr(t,[Je],n,!0),ai(),l=f.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=ah(e,t,l,n);break e}else if(l!==s){s=Jt(Error(r(424)),t),Ia(s),t=ah(e,t,l,n);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=Pt(e.firstChild),st=t,we=!0,Kn=null,Ft=!0,n=Pf(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(jl(),l===s){t=Tn(e,t,n);break e}ct(e,t,l,n)}t=t.child}return t;case 26:return Tu(e,t),e===null?(n=bm(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(n=t.type,e=t.pendingProps,l=Ju(ee.current).createElement(n),l[ut]=t,l[Et]=e,ot(l,n,e),lt(l),t.stateNode=l):t.memoizedState=bm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Se(t),e===null&&we&&(l=t.stateNode=pm(t.type,t.pendingProps,ee.current),st=t,Ft=!0,s=Le,sl(t.type)?(Tc=s,Le=Pt(l.firstChild)):Le=s),ct(e,t,t.pendingProps.children,n),Tu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((s=l=Le)&&(l=Av(l,t.type,t.pendingProps,Ft),l!==null?(t.stateNode=l,st=t,Le=Pt(l.firstChild),Ft=!1,s=!0):s=!1),s||Zn(t)),Se(t),s=t.type,c=t.pendingProps,f=e!==null?e.memoizedProps:null,l=c.children,jc(s,c)?l=null:f!==null&&jc(s,f)&&(t.flags|=32),t.memoizedState!==null&&(s=Ar(e,t,q0,null,null,n),Ai._currentValue=s),Tu(e,t),ct(e,t,l,n),t.child;case 6:return e===null&&we&&((e=n=Le)&&(n=jv(n,t.pendingProps,Ft),n!==null?(t.stateNode=n,st=t,Le=null,e=!0):e=!1),e||Zn(t)),null;case 13:return ih(e,t,n);case 4:return Be(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Ml(t,null,l,n):ct(e,t,l,n),t.child;case 11:return Wd(e,t,t.type,t.pendingProps,n);case 7:return ct(e,t,t.pendingProps,n),t.child;case 8:return ct(e,t,t.pendingProps.children,n),t.child;case 12:return ct(e,t,t.pendingProps.children,n),t.child;case 10:return l=t.pendingProps,Jn(t,t.type,l.value),ct(e,t,l.children,n),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,Ol(t),s=rt(s),l=l(s),t.flags|=1,ct(e,t,l,n),t.child;case 14:return Fd(e,t,t.type,t.pendingProps,n);case 15:return Id(e,t,t.type,t.pendingProps,n);case 19:return sh(e,t,n);case 31:return J0(e,t,n);case 22:return Pd(e,t,n,t.pendingProps);case 24:return Ol(t),l=rt(Je),e===null?(s=gr(),s===null&&(s=He,c=hr(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=n),s=c),t.memoizedState={parent:l,cache:s},vr(t),Jn(t,Je,s)):((e.lanes&n)!==0&&(yr(e,t),ii(t,null,null,n),ai()),s=e.memoizedState,c=t.memoizedState,s.parent!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Jn(t,Je,l)):(l=c.cache,Jn(t,Je,l),l!==s.cache&&dr(t,[Je],n,!0))),ct(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Mn(e){e.flags|=4}function Pr(e,t,n,l,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Uh())e.flags|=8192;else throw Tl=pu,pr}else e.flags&=-16777217}function ch(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wm(t))if(Uh())e.flags|=8192;else throw Tl=pu,pr}function zu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?mt():536870912,e.lanes|=t,va|=t)}function fi(e,t){if(!we)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.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,n=0,l=0;if(t)for(var s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)n|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function W0(e,t,n){var l=t.pendingProps;switch(sr(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 n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),On(Je),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(aa(t)?Mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr())),ke(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(Mn(t),c!==null?(ke(t),ch(t,c)):(ke(t),Pr(t,s,null,l,n))):c?c!==e.memoizedState?(Mn(t),ke(t),ch(t,c)):(ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Mn(t),ke(t),Pr(t,s,e,l,n)),null;case 27:if(Ze(t),n=ee.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ke(t),null}e=K.current,aa(t)?Gf(t):(e=pm(s,l,n),t.stateNode=e,Mn(t))}return ke(t),null;case 5:if(Ze(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(!l){if(t.stateNode===null)throw Error(r(166));return ke(t),null}if(c=K.current,aa(t))Gf(t);else{var f=Ju(ee.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?f.createElement(s,{is:l.is}):f.createElement(s)}}c[ut]=t,c[Et]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)c.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=c;e:switch(ot(c,s,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Mn(t)}}return ke(t),Pr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Mn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(r(166));if(e=ee.current,aa(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,s=st,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[ut]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||im(e.nodeValue,n)),e||Zn(t,!0)}else e=Ju(e).createTextNode(l),e[ut]=t,t.stateNode=e}return ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=aa(t),n!==null){if(e===null){if(!l)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ut]=t}else jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),e=!1}else n=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Ht(t),t):(Ht(t),null);if((t.flags&128)!==0)throw Error(r(558))}return ke(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=aa(t),l!==null&&l.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));s[ut]=t}else jl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ke(t),s=!1}else s=cr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Ht(t),t):(Ht(t),null)}return Ht(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==s&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),zu(t,t.updateQueue),ke(t),null);case 4:return ve(),e===null&&Sc(t.stateNode.containerInfo),ke(t),null;case 10:return On(t.type),ke(t),null;case 19:if(H(Qe),l=t.memoizedState,l===null)return ke(t),null;if(s=(t.flags&128)!==0,c=l.rendering,c===null)if(s)fi(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=xu(e),c!==null){for(t.flags|=128,fi(l,!1),e=c.updateQueue,t.updateQueue=e,zu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Bf(n,e),n=n.sibling;return J(Qe,Qe.current&1|2),we&&jn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&dt()>Lu&&(t.flags|=128,s=!0,fi(l,!1),t.lanes=4194304)}else{if(!s)if(e=xu(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,zu(t,e),fi(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!we)return ke(t),null}else 2*dt()-l.renderingStartTime>Lu&&n!==536870912&&(t.flags|=128,s=!0,fi(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=dt(),e.sibling=null,n=Qe.current,J(Qe,s?n&1|2:n&1),we&&jn(t,l.treeForkCount),e):(ke(t),null);case 22:case 23:return Ht(t),Er(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(ke(t),t.subtreeFlags&6&&(t.flags|=8192)):ke(t),n=t.updateQueue,n!==null&&zu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&H(Cl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),On(Je),ke(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function F0(e,t){switch(sr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(Je),ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ze(t),null;case 31:if(t.memoizedState!==null){if(Ht(t),t.alternate===null)throw Error(r(340));jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ht(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));jl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H(Qe),null;case 4:return ve(),null;case 10:return On(t.type),null;case 22:case 23:return Ht(t),Er(),e!==null&&H(Cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return On(Je),null;case 25:return null;default:return null}}function oh(e,t){switch(sr(t),t.tag){case 3:On(Je),ve();break;case 26:case 27:case 5:Ze(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&Ht(t);break;case 13:Ht(t);break;case 19:H(Qe);break;case 10:On(t.type);break;case 22:case 23:Ht(t),Er(),e!==null&&H(Cl);break;case 24:On(Je)}}function di(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var s=l.next;n=s;do{if((n.tag&e)===e){l=void 0;var c=n.create,f=n.inst;l=c(),f.destroy=l}n=n.next}while(n!==s)}}catch(p){Me(t,t.return,p)}}function el(e,t,n){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var c=s.next;l=c;do{if((l.tag&e)===e){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,s=t;var E=n,T=p;try{T()}catch(B){Me(s,E,B)}}}l=l.next}while(l!==c)}}catch(B){Me(t,t.return,B)}}function fh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{td(t,n)}catch(l){Me(e,e.return,l)}}}function dh(e,t,n){n.props=Rl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Me(e,t,l)}}function hi(e,t){try{var n=e.ref;if(n!==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 n=="function"?e.refCleanup=n(l):n.current=l}}catch(s){Me(e,t,s)}}function mn(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(s){Me(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(s){Me(e,t,s)}else n.current=null}function hh(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(s){Me(e,e.return,s)}}function ec(e,t,n){try{var l=e.stateNode;bv(l,e.type,n,t),l[Et]=t}catch(s){Me(e,e.return,s)}}function mh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&sl(e.type)||e.tag===4}function tc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||mh(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&&sl(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 nc(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Nn));else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(nc(e,t,n),e=e.sibling;e!==null;)nc(e,t,n),e=e.sibling}function Ru(e,t,n){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(l!==4&&(l===27&&sl(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ru(e,t,n),e=e.sibling;e!==null;)Ru(e,t,n),e=e.sibling}function gh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);ot(t,l,n),t[ut]=e,t[Et]=n}catch(c){Me(e,e.return,c)}}var zn=!1,Fe=!1,lc=!1,ph=typeof WeakSet=="function"?WeakSet:Set,at=null;function I0(e,t){if(e=e.containerInfo,wc=ts,e=Of(e),Ws(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var s=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var f=0,p=-1,E=-1,T=0,B=0,Y=e,M=null;t:for(;;){for(var U;Y!==n||s!==0&&Y.nodeType!==3||(p=f+s),Y!==c||l!==0&&Y.nodeType!==3||(E=f+l),Y.nodeType===3&&(f+=Y.nodeValue.length),(U=Y.firstChild)!==null;)M=Y,Y=U;for(;;){if(Y===e)break t;if(M===n&&++T===s&&(p=f),M===c&&++B===l&&(E=f),(U=Y.nextSibling)!==null)break;Y=M,M=Y.parentNode}Y=U}n=p===-1||E===-1?null:{start:p,end:E}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ac={focusedElem:e,selectionRange:n},ts=!1,at=t;at!==null;)if(t=at,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,at=e;else for(;at!==null;){switch(t=at,c=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(n=0;n<e.length;n++)s=e[n],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,s=c.memoizedProps,c=c.memoizedState,l=n.stateNode;try{var P=Rl(n.type,s);e=l.getSnapshotBeforeUpdate(P,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(ce){Me(n,n.return,ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Oc(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Oc(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(r(163))}if(e=t.sibling,e!==null){e.return=t.return,at=e;break}at=t.return}}function vh(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:Un(e,n),l&4&&di(5,n);break;case 1:if(Un(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(n,n.return,f)}else{var s=Rl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(n,n.return,f)}}l&64&&fh(n),l&512&&hi(n,n.return);break;case 3:if(Un(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{td(e,t)}catch(f){Me(n,n.return,f)}}break;case 27:t===null&&l&4&&gh(n);case 26:case 5:Un(e,n),t===null&&l&4&&hh(n),l&512&&hi(n,n.return);break;case 12:Un(e,n);break;case 31:Un(e,n),l&4&&xh(e,n);break;case 13:Un(e,n),l&4&&Sh(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=sv.bind(null,n),Dv(e,n))));break;case 22:if(l=n.memoizedState!==null||zn,!l){t=t!==null&&t.memoizedState!==null||Fe,s=zn;var c=Fe;zn=l,(Fe=t)&&!c?Hn(e,n,(n.subtreeFlags&8772)!==0):Un(e,n),zn=s,Fe=c}break;case 30:break;default:Un(e,n)}}function yh(e){var t=e.alternate;t!==null&&(e.alternate=null,yh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&zs(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 qe=null,wt=!1;function Rn(e,t,n){for(n=n.child;n!==null;)bh(e,t,n),n=n.sibling}function bh(e,t,n){if(pt&&typeof pt.onCommitFiberUnmount=="function")try{pt.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 26:Fe||mn(n,t),Rn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Fe||mn(n,t);var l=qe,s=wt;sl(n.type)&&(qe=n.stateNode,wt=!1),Rn(e,t,n),Ei(n.stateNode),qe=l,wt=s;break;case 5:Fe||mn(n,t);case 6:if(l=qe,s=wt,qe=null,Rn(e,t,n),qe=l,wt=s,qe!==null)if(wt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(c){Me(n,t,c)}else try{qe.removeChild(n.stateNode)}catch(c){Me(n,t,c)}break;case 18:qe!==null&&(wt?(e=qe,fm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Aa(e)):fm(qe,n.stateNode));break;case 4:l=qe,s=wt,qe=n.stateNode.containerInfo,wt=!0,Rn(e,t,n),qe=l,wt=s;break;case 0:case 11:case 14:case 15:el(2,n,t),Fe||el(4,n,t),Rn(e,t,n);break;case 1:Fe||(mn(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&dh(n,t,l)),Rn(e,t,n);break;case 21:Rn(e,t,n);break;case 22:Fe=(l=Fe)||n.memoizedState!==null,Rn(e,t,n),Fe=l;break;default:Rn(e,t,n)}}function xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Aa(e)}catch(n){Me(t,t.return,n)}}}function Sh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Aa(e)}catch(n){Me(t,t.return,n)}}function P0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ph),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ph),t;default:throw Error(r(435,e.tag))}}function Uu(e,t){var n=P0(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var s=rv.bind(null,e,l);l.then(s,s)}})}function At(e,t){var n=t.deletions;if(n!==null)for(var l=0;l<n.length;l++){var s=n[l],c=e,f=t,p=f;e:for(;p!==null;){switch(p.tag){case 27:if(sl(p.type)){qe=p.stateNode,wt=!1;break e}break;case 5:qe=p.stateNode,wt=!1;break e;case 3:case 4:qe=p.stateNode.containerInfo,wt=!0;break e}p=p.return}if(qe===null)throw Error(r(160));bh(c,f,s),qe=null,wt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Eh(t,e),t=t.sibling}var rn=null;function Eh(e,t){var n=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:At(t,e),jt(e),l&4&&(el(3,e,e.return),di(3,e),el(5,e,e.return));break;case 1:At(t,e),jt(e),l&512&&(Fe||n===null||mn(n,n.return)),l&64&&zn&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var s=rn;if(At(t,e),jt(e),l&512&&(Fe||n===null||mn(n,n.return)),l&4){var c=n!==null?n.memoizedState:null;if(l=e.memoizedState,n===null)if(l===null)if(e.stateNode===null){e:{l=e.type,n=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){case"title":c=s.getElementsByTagName("title")[0],(!c||c[qa]||c[ut]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(l),s.head.insertBefore(c,s.querySelector("head > title"))),ot(c,l,n),c[ut]=e,lt(c),l=c;break e;case"link":var f=Em("link","href",s).get(l+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(c=f[p],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(p,1);break t}}c=s.createElement(l),ot(c,l,n),s.head.appendChild(c);break;case"meta":if(f=Em("meta","content",s).get(l+(n.content||""))){for(p=0;p<f.length;p++)if(c=f[p],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(p,1);break t}}c=s.createElement(l),ot(c,l,n),s.head.appendChild(c);break;default:throw Error(r(468,l))}c[ut]=e,lt(c),l=c}e.stateNode=l}else Nm(s,e.type,e.stateNode);else e.stateNode=Sm(s,l,e.memoizedProps);else c!==l?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,l===null?Nm(s,e.type,e.stateNode):Sm(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&ec(e,e.memoizedProps,n.memoizedProps)}break;case 27:At(t,e),jt(e),l&512&&(Fe||n===null||mn(n,n.return)),n!==null&&l&4&&ec(e,e.memoizedProps,n.memoizedProps);break;case 5:if(At(t,e),jt(e),l&512&&(Fe||n===null||mn(n,n.return)),e.flags&32){s=e.stateNode;try{Jl(s,"")}catch(P){Me(e,e.return,P)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,ec(e,s,n!==null?n.memoizedProps:s)),l&1024&&(lc=!0);break;case 6:if(At(t,e),jt(e),l&4){if(e.stateNode===null)throw Error(r(162));l=e.memoizedProps,n=e.stateNode;try{n.nodeValue=l}catch(P){Me(e,e.return,P)}}break;case 3:if(Fu=null,s=rn,rn=$u(t.containerInfo),At(t,e),rn=s,jt(e),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Aa(t.containerInfo)}catch(P){Me(e,e.return,P)}lc&&(lc=!1,Nh(e));break;case 4:l=rn,rn=$u(e.stateNode.containerInfo),At(t,e),jt(e),rn=l;break;case 12:At(t,e),jt(e);break;case 31:At(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 13:At(t,e),jt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Bu=dt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 22:s=e.memoizedState!==null;var E=n!==null&&n.memoizedState!==null,T=zn,B=Fe;if(zn=T||s,Fe=B||E,At(t,e),Fe=B,zn=T,jt(e),l&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(n===null||E||zn||Fe||Ul(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){E=n=t;try{if(c=E.stateNode,s)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=E.stateNode;var Y=E.memoizedProps.style,M=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;p.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(P){Me(E,E.return,P)}}}else if(t.tag===6){if(n===null){E=t;try{E.stateNode.nodeValue=s?"":E.memoizedProps}catch(P){Me(E,E.return,P)}}}else if(t.tag===18){if(n===null){E=t;try{var U=E.stateNode;s?dm(U,!0):dm(E.stateNode,!1)}catch(P){Me(E,E.return,P)}}}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;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Uu(e,n))));break;case 19:At(t,e),jt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Uu(e,l)));break;case 30:break;case 21:break;default:At(t,e),jt(e)}}function jt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(mh(l)){n=l;break}l=l.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var s=n.stateNode,c=tc(e);Ru(e,c,s);break;case 5:var f=n.stateNode;n.flags&32&&(Jl(f,""),n.flags&=-33);var p=tc(e);Ru(e,p,f);break;case 3:case 4:var E=n.stateNode.containerInfo,T=tc(e);nc(e,T,E);break;default:throw Error(r(161))}}catch(B){Me(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Un(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vh(e,t.alternate,t),t=t.sibling}function Ul(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:el(4,t,t.return),Ul(t);break;case 1:mn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&dh(t,t.return,n),Ul(t);break;case 27:Ei(t.stateNode);case 26:case 5:mn(t,t.return),Ul(t);break;case 22:t.memoizedState===null&&Ul(t);break;case 30:Ul(t);break;default:Ul(t)}e=e.sibling}}function Hn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,s=e,c=t,f=c.flags;switch(c.tag){case 0:case 11:case 15:Hn(s,c,n),di(4,c);break;case 1:if(Hn(s,c,n),l=c,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(T){Me(l,l.return,T)}if(l=c,s=l.updateQueue,s!==null){var p=l.stateNode;try{var E=s.shared.hiddenCallbacks;if(E!==null)for(s.shared.hiddenCallbacks=null,s=0;s<E.length;s++)ed(E[s],p)}catch(T){Me(l,l.return,T)}}n&&f&64&&fh(c),hi(c,c.return);break;case 27:gh(c);case 26:case 5:Hn(s,c,n),n&&l===null&&f&4&&hh(c),hi(c,c.return);break;case 12:Hn(s,c,n);break;case 31:Hn(s,c,n),n&&f&4&&xh(s,c);break;case 13:Hn(s,c,n),n&&f&4&&Sh(s,c);break;case 22:c.memoizedState===null&&Hn(s,c,n),hi(c,c.return);break;case 30:break;default:Hn(s,c,n)}t=t.sibling}}function ac(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Pa(n))}function ic(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e))}function cn(e,t,n,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wh(e,t,n,l),t=t.sibling}function wh(e,t,n,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:cn(e,t,n,l),s&2048&&di(9,t);break;case 1:cn(e,t,n,l);break;case 3:cn(e,t,n,l),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pa(e)));break;case 12:if(s&2048){cn(e,t,n,l),e=t.stateNode;try{var c=t.memoizedProps,f=c.id,p=c.onPostCommit;typeof p=="function"&&p(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){Me(t,t.return,E)}}else cn(e,t,n,l);break;case 31:cn(e,t,n,l);break;case 13:cn(e,t,n,l);break;case 23:break;case 22:c=t.stateNode,f=t.alternate,t.memoizedState!==null?c._visibility&2?cn(e,t,n,l):mi(e,t):c._visibility&2?cn(e,t,n,l):(c._visibility|=2,ma(e,t,n,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&ac(f,t);break;case 24:cn(e,t,n,l),s&2048&&ic(t.alternate,t);break;default:cn(e,t,n,l)}}function ma(e,t,n,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,f=t,p=n,E=l,T=f.flags;switch(f.tag){case 0:case 11:case 15:ma(c,f,p,E,s),di(8,f);break;case 23:break;case 22:var B=f.stateNode;f.memoizedState!==null?B._visibility&2?ma(c,f,p,E,s):mi(c,f):(B._visibility|=2,ma(c,f,p,E,s)),s&&T&2048&&ac(f.alternate,f);break;case 24:ma(c,f,p,E,s),s&&T&2048&&ic(f.alternate,f);break;default:ma(c,f,p,E,s)}t=t.sibling}}function mi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,s=l.flags;switch(l.tag){case 22:mi(n,l),s&2048&&ac(l.alternate,l);break;case 24:mi(n,l),s&2048&&ic(l.alternate,l);break;default:mi(n,l)}t=t.sibling}}var gi=8192;function ga(e,t,n){if(e.subtreeFlags&gi)for(e=e.child;e!==null;)Ah(e,t,n),e=e.sibling}function Ah(e,t,n){switch(e.tag){case 26:ga(e,t,n),e.flags&gi&&e.memoizedState!==null&&kv(n,rn,e.memoizedState,e.memoizedProps);break;case 5:ga(e,t,n);break;case 3:case 4:var l=rn;rn=$u(e.stateNode.containerInfo),ga(e,t,n),rn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=gi,gi=16777216,ga(e,t,n),gi=l):ga(e,t,n));break;default:ga(e,t,n)}}function jh(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 pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Oh(l,e)}jh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Dh(e),e=e.sibling}function Dh(e){switch(e.tag){case 0:case 11:case 15:pi(e),e.flags&2048&&el(9,e,e.return);break;case 3:pi(e);break;case 12:pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hu(e)):pi(e);break;default:pi(e)}}function Hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];at=l,Oh(l,e)}jh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:el(8,t,t.return),Hu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hu(t));break;default:Hu(t)}e=e.sibling}}function Oh(e,t){for(;at!==null;){var n=at;switch(n.tag){case 0:case 11:case 15:el(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Pa(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,at=l;else e:for(n=e;at!==null;){l=at;var s=l.sibling,c=l.return;if(yh(l),l===n){at=null;break e}if(s!==null){s.return=c,at=s;break e}at=c}}}var ev={getCacheForType:function(e){var t=rt(Je),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return rt(Je).controller.signal}},tv=typeof WeakMap=="function"?WeakMap:Map,Oe=0,He=null,ye=null,Ee=0,Te=0,Bt=null,tl=!1,pa=!1,uc=!1,Bn=0,Ge=0,nl=0,Hl=0,sc=0,Lt=0,va=0,vi=null,Dt=null,rc=!1,Bu=0,Ch=0,Lu=1/0,ku=null,ll=null,et=0,al=null,ya=null,Ln=0,cc=0,oc=null,_h=null,yi=0,fc=null;function kt(){return(Oe&2)!==0&&Ee!==0?Ee&-Ee:R.T!==null?vc():un()}function Th(){if(Lt===0)if((Ee&536870912)===0||we){var e=Yl;Yl<<=1,(Yl&3932160)===0&&(Yl=262144),Lt=e}else Lt=536870912;return e=Ut.current,e!==null&&(e.flags|=32),Lt}function Ot(e,t,n){(e===He&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(ba(e,0),il(e,Ee,Lt,!1)),Gt(e,n),((Oe&2)===0||e!==He)&&(e===He&&((Oe&2)===0&&(Hl|=n),Ge===4&&il(e,Ee,Lt,!1)),gn(e))}function Mh(e,t,n){if((Oe&6)!==0)throw Error(r(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||bt(e,t),s=l?av(e,t):hc(e,t,!0),c=l;do{if(s===0){pa&&!l&&il(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!nv(n)){s=hc(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)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;s=vi;var E=p.current.memoizedState.isDehydrated;if(E&&(ba(p,f).flags|=256),f=hc(p,f,!1),f!==2){if(uc&&!E){p.errorRecoveryDisabledLanes|=c,Hl|=c,s=4;break e}c=Dt,Dt=s,c!==null&&(Dt===null?Dt=c:Dt.push.apply(Dt,c))}s=f}if(c=!1,s!==2)continue}}if(s===1){ba(e,0),il(e,t,0,!0);break}e:{switch(l=e,c=s,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:il(l,t,Lt,!tl);break e;case 2:Dt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(s=Bu+300-dt(),10<s)){if(il(l,t,Lt,!tl),nt(l,0,!0)!==0)break e;Ln=t,l.timeoutHandle=cm(zh.bind(null,l,n,Dt,ku,rc,t,Lt,Hl,va,tl,c,"Throttled",-0,0),s);break e}zh(l,n,Dt,ku,rc,t,Lt,Hl,va,tl,c,null,-0,0)}}break}while(!0);gn(e)}function zh(e,t,n,l,s,c,f,p,E,T,B,Y,M,U){if(e.timeoutHandle=-1,Y=t.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nn},Ah(t,c,Y);var P=(c&62914560)===c?Bu-dt():(c&4194048)===c?Ch-dt():0;if(P=qv(Y,P),P!==null){Ln=c,e.cancelPendingCommit=P(Yh.bind(null,e,t,c,n,l,s,f,p,E,B,Y,null,M,U)),il(e,c,f,!T);return}}Yh(e,t,c,n,l,s,f,p,E)}function nv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var s=n[l],c=s.getSnapshot;s=s.value;try{if(!zt(c(),s))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 il(e,t,n,l){t&=~sc,t&=~Hl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var c=31-ht(s),f=1<<c;l[c]=-1,s&=~f}n!==0&&an(e,n,t)}function qu(){return(Oe&6)===0?(bi(0),!1):!0}function dc(){if(ye!==null){if(Te===0)var e=ye.return;else e=ye,Dn=Dl=null,Or(e),ca=null,ti=0,e=ye;for(;e!==null;)oh(e.alternate,e),e=e.return;ye=null}}function ba(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Ev(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ln=0,dc(),He=e,ye=n=An(e.current,null),Ee=t,Te=0,Bt=null,tl=!1,pa=bt(e,t),uc=!1,va=Lt=sc=Hl=nl=Ge=0,Dt=vi=null,rc=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-ht(l),c=1<<s;t|=e[s],l&=~c}return Bn=t,su(),n}function Rh(e,t){ge=null,R.H=ci,t===ra||t===gu?(t=Wf(),Te=3):t===pr?(t=Wf(),Te=4):Te=t===Vr?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,ye===null&&(Ge=1,Cu(e,Jt(t,e.current)))}function Uh(){var e=Ut.current;return e===null?!0:(Ee&4194048)===Ee?It===null:(Ee&62914560)===Ee||(Ee&536870912)!==0?e===It:!1}function Hh(){var e=R.H;return R.H=ci,e===null?ci:e}function Bh(){var e=R.A;return R.A=ev,e}function Yu(){Ge=4,tl||(Ee&4194048)!==Ee&&Ut.current!==null||(pa=!0),(nl&134217727)===0&&(Hl&134217727)===0||He===null||il(He,Ee,Lt,!1)}function hc(e,t,n){var l=Oe;Oe|=2;var s=Hh(),c=Bh();(He!==e||Ee!==t)&&(ku=null,ba(e,t)),t=!1;var f=Ge;e:do try{if(Te!==0&&ye!==null){var p=ye,E=Bt;switch(Te){case 8:dc(),f=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var T=Te;if(Te=0,Bt=null,xa(e,p,E,T),n&&pa){f=0;break e}break;default:T=Te,Te=0,Bt=null,xa(e,p,E,T)}}lv(),f=Ge;break}catch(B){Rh(e,B)}while(!0);return t&&e.shellSuspendCounter++,Dn=Dl=null,Oe=l,R.H=s,R.A=c,ye===null&&(He=null,Ee=0,su()),f}function lv(){for(;ye!==null;)Lh(ye)}function av(e,t){var n=Oe;Oe|=2;var l=Hh(),s=Bh();He!==e||Ee!==t?(ku=null,Lu=dt()+500,ba(e,t)):pa=bt(e,t);e:do try{if(Te!==0&&ye!==null){t=ye;var c=Bt;t:switch(Te){case 1:Te=0,Bt=null,xa(e,t,c,1);break;case 2:case 9:if(Jf(c)){Te=0,Bt=null,kh(t);break}t=function(){Te!==2&&Te!==9||He!==e||(Te=7),gn(e)},c.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:Jf(c)?(Te=0,Bt=null,kh(t)):(Te=0,Bt=null,xa(e,t,c,7));break;case 5:var f=null;switch(ye.tag){case 26:f=ye.memoizedState;case 5:case 27:var p=ye;if(f?wm(f):p.stateNode.complete){Te=0,Bt=null;var E=p.sibling;if(E!==null)ye=E;else{var T=p.return;T!==null?(ye=T,Gu(T)):ye=null}break t}}Te=0,Bt=null,xa(e,t,c,5);break;case 6:Te=0,Bt=null,xa(e,t,c,6);break;case 8:dc(),Ge=6;break e;default:throw Error(r(462))}}iv();break}catch(B){Rh(e,B)}while(!0);return Dn=Dl=null,R.H=l,R.A=s,Oe=n,ye!==null?0:(He=null,Ee=0,su(),Ge)}function iv(){for(;ye!==null&&!kl();)Lh(ye)}function Lh(e){var t=rh(e.alternate,e,Bn);e.memoizedProps=e.pendingProps,t===null?Gu(e):ye=t}function kh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=nh(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=nh(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:Or(t);default:oh(n,t),t=ye=Bf(t,Bn),t=rh(n,t,Bn)}e.memoizedProps=e.pendingProps,t===null?Gu(e):ye=t}function xa(e,t,n,l){Dn=Dl=null,Or(t),ca=null,ti=0;var s=t.return;try{if(Z0(e,s,t,n,Ee)){Ge=1,Cu(e,Jt(n,e.current)),ye=null;return}}catch(c){if(s!==null)throw ye=s,c;Ge=1,Cu(e,Jt(n,e.current)),ye=null;return}t.flags&32768?(we||l===1?e=!0:pa||(Ee&536870912)!==0?e=!1:(tl=e=!0,(l===2||l===9||l===3||l===6)&&(l=Ut.current,l!==null&&l.tag===13&&(l.flags|=16384))),qh(t,e)):Gu(t)}function Gu(e){var t=e;do{if((t.flags&32768)!==0){qh(t,tl);return}e=t.return;var n=W0(t.alternate,t,Bn);if(n!==null){ye=n;return}if(t=t.sibling,t!==null){ye=t;return}ye=t=e}while(t!==null);Ge===0&&(Ge=5)}function qh(e,t){do{var n=F0(e.alternate,e);if(n!==null){n.flags&=32767,ye=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){ye=e;return}ye=e=n}while(e!==null);Ge=6,ye=null}function Yh(e,t,n,l,s,c,f,p,E){e.cancelPendingCommit=null;do Xu();while(et!==0);if((Oe&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=tr,Pe(e,n,c,f,p,E),e===He&&(ye=He=null,Ee=0),ya=t,al=e,Ln=n,cc=c,oc=s,_h=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cv(ln,function(){return Kh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=R.T,R.T=null,s=G.p,G.p=2,f=Oe,Oe|=4;try{I0(e,t,n)}finally{Oe=f,G.p=s,R.T=l}}et=1,Gh(),Xh(),Vh()}}function Gh(){if(et===1){et=0;var e=al,t=ya,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var l=G.p;G.p=2;var s=Oe;Oe|=4;try{Eh(t,e);var c=Ac,f=Of(e.containerInfo),p=c.focusedElem,E=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&Df(p.ownerDocument.documentElement,p)){if(E!==null&&Ws(p)){var T=E.start,B=E.end;if(B===void 0&&(B=T),"selectionStart"in p)p.selectionStart=T,p.selectionEnd=Math.min(B,p.value.length);else{var Y=p.ownerDocument||document,M=Y&&Y.defaultView||window;if(M.getSelection){var U=M.getSelection(),P=p.textContent.length,ce=Math.min(E.start,P),Ue=E.end===void 0?ce:Math.min(E.end,P);!U.extend&&ce>Ue&&(f=Ue,Ue=ce,ce=f);var C=jf(p,ce),j=jf(p,Ue);if(C&&j&&(U.rangeCount!==1||U.anchorNode!==C.node||U.anchorOffset!==C.offset||U.focusNode!==j.node||U.focusOffset!==j.offset)){var _=Y.createRange();_.setStart(C.node,C.offset),U.removeAllRanges(),ce>Ue?(U.addRange(_),U.extend(j.node,j.offset)):(_.setEnd(j.node,j.offset),U.addRange(_))}}}}for(Y=[],U=p;U=U.parentNode;)U.nodeType===1&&Y.push({element:U,left:U.scrollLeft,top:U.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<Y.length;p++){var k=Y[p];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}ts=!!wc,Ac=wc=null}finally{Oe=s,G.p=l,R.T=n}}e.current=t,et=2}}function Xh(){if(et===2){et=0;var e=al,t=ya,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var l=G.p;G.p=2;var s=Oe;Oe|=4;try{vh(e,t.alternate,t)}finally{Oe=s,G.p=l,R.T=n}}et=3}}function Vh(){if(et===4||et===3){et=0,Ki();var e=al,t=ya,n=Ln,l=_h;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?et=5:(et=0,ya=al=null,Qh(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(ll=null),Sn(n),t=t.stateNode,pt&&typeof pt.onCommitFiberRoot=="function")try{pt.onCommitFiberRoot(bl,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=R.T,s=G.p,G.p=2,R.T=null;try{for(var c=e.onRecoverableError,f=0;f<l.length;f++){var p=l[f];c(p.value,{componentStack:p.stack})}}finally{R.T=t,G.p=s}}(Ln&3)!==0&&Xu(),gn(e),s=e.pendingLanes,(n&261930)!==0&&(s&42)!==0?e===fc?yi++:(yi=0,fc=e):yi=0,bi(0)}}function Qh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pa(t)))}function Xu(){return Gh(),Xh(),Vh(),Kh()}function Kh(){if(et!==5)return!1;var e=al,t=cc;cc=0;var n=Sn(Ln),l=R.T,s=G.p;try{G.p=32>n?32:n,R.T=null,n=oc,oc=null;var c=al,f=Ln;if(et=0,ya=al=null,Ln=0,(Oe&6)!==0)throw Error(r(331));var p=Oe;if(Oe|=4,Dh(c.current),wh(c,c.current,f,n),Oe=p,bi(0,!1),pt&&typeof pt.onPostCommitFiberRoot=="function")try{pt.onPostCommitFiberRoot(bl,c)}catch{}return!0}finally{G.p=s,R.T=l,Qh(e,t)}}function Zh(e,t,n){t=Jt(n,t),t=Xr(e.stateNode,t,2),e=Fn(e,t,2),e!==null&&(Gt(e,2),gn(e))}function Me(e,t,n){if(e.tag===3)Zh(e,e,n);else for(;t!==null;){if(t.tag===3){Zh(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ll===null||!ll.has(l))){e=Jt(n,e),n=Jd(2),l=Fn(t,n,2),l!==null&&($d(n,l,t,e),Gt(l,2),gn(l));break}}t=t.return}}function mc(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new tv;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(n)||(uc=!0,s.add(n),e=uv.bind(null,e,t,n),t.then(e,e))}function uv(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,He===e&&(Ee&n)===n&&(Ge===4||Ge===3&&(Ee&62914560)===Ee&&300>dt()-Bu?(Oe&2)===0&&ba(e,0):sc|=n,va===Ee&&(va=0)),gn(e)}function Jh(e,t){t===0&&(t=mt()),e=wl(e,t),e!==null&&(Gt(e,t),gn(e))}function sv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jh(e,n)}function rv(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(n=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(t),Jh(e,n)}function cv(e,t){return qt(e,t)}var Vu=null,Sa=null,gc=!1,Qu=!1,pc=!1,ul=0;function gn(e){e!==Sa&&e.next===null&&(Sa===null?Vu=Sa=e:Sa=Sa.next=e),Qu=!0,gc||(gc=!0,fv())}function bi(e,t){if(!pc&&Qu){pc=!0;do for(var n=!1,l=Vu;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var c=0;else{var f=l.suspendedLanes,p=l.pingedLanes;c=(1<<31-ht(42|e)+1)-1,c&=s&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Ih(l,c))}else c=Ee,c=nt(l,l===He?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||bt(l,c)||(n=!0,Ih(l,c));l=l.next}while(n);pc=!1}}function ov(){$h()}function $h(){Qu=gc=!1;var e=0;ul!==0&&Sv()&&(e=ul);for(var t=dt(),n=null,l=Vu;l!==null;){var s=l.next,c=Wh(l,t);c===0?(l.next=null,n===null?Vu=s:n.next=s,s===null&&(Sa=n)):(n=l,(e!==0||(c&3)!==0)&&(Qu=!0)),l=s}et!==0&&et!==5||bi(e),ul!==0&&(ul=0)}function Wh(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var f=31-ht(c),p=1<<f,E=s[f];E===-1?((p&n)===0||(p&l)!==0)&&(s[f]=xt(p,t)):E<=t&&(e.expiredLanes|=p),c&=~p}if(t=He,n=Ee,n=nt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Gn(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||bt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Gn(l),Sn(n)){case 2:case 8:n=bn;break;case 32:n=ln;break;case 268435456:n=ka;break;default:n=ln}return l=Fh.bind(null,e),n=qt(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Gn(l),e.callbackPriority=2,e.callbackNode=null,2}function Fh(e,t){if(et!==0&&et!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var l=Ee;return l=nt(e,e===He?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Mh(e,l,t),Wh(e,dt()),e.callbackNode!=null&&e.callbackNode===n?Fh.bind(null,e):null)}function Ih(e,t){if(Xu())return null;Mh(e,t,!0)}function fv(){Nv(function(){(Oe&6)!==0?qt(Zi,ov):$h()})}function vc(){if(ul===0){var e=ua;e===0&&(e=ql,ql<<=1,(ql&261888)===0&&(ql=256)),ul=e}return ul}function Ph(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Pi(""+e)}function em(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function dv(e,t,n,l,s){if(t==="submit"&&n&&n.stateNode===s){var c=Ph((s[Et]||null).action),f=l.submitter;f&&(t=(t=f[Et]||null)?Ph(t.formAction):f.getAttribute("formAction"),t!==null&&(c=t,f=null));var p=new lu("action","action",null,l,s);e.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(ul!==0){var E=f?em(s,f):new FormData(s);Br(n,{pending:!0,data:E,method:s.method,action:c},null,E)}}else typeof c=="function"&&(p.preventDefault(),E=f?em(s,f):new FormData(s),Br(n,{pending:!0,data:E,method:s.method,action:c},c,E))},currentTarget:s}]})}}for(var yc=0;yc<er.length;yc++){var bc=er[yc],hv=bc.toLowerCase(),mv=bc[0].toUpperCase()+bc.slice(1);sn(hv,"on"+mv)}sn(Tf,"onAnimationEnd"),sn(Mf,"onAnimationIteration"),sn(zf,"onAnimationStart"),sn("dblclick","onDoubleClick"),sn("focusin","onFocus"),sn("focusout","onBlur"),sn(_0,"onTransitionRun"),sn(T0,"onTransitionStart"),sn(M0,"onTransitionCancel"),sn(Rf,"onTransitionEnd"),Kl("onMouseEnter",["mouseout","mouseover"]),Kl("onMouseLeave",["mouseout","mouseover"]),Kl("onPointerEnter",["pointerout","pointerover"]),Kl("onPointerLeave",["pointerout","pointerover"]),xl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),xl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),xl("onBeforeInput",["compositionend","keypress","textInput","paste"]),xl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),xl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xi="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(" "),gv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xi));function tm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],s=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var f=l.length-1;0<=f;f--){var p=l[f],E=p.instance,T=p.currentTarget;if(p=p.listener,E!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=T;try{c(s)}catch(B){uu(B)}s.currentTarget=null,c=E}else for(f=0;f<l.length;f++){if(p=l[f],E=p.instance,T=p.currentTarget,p=p.listener,E!==c&&s.isPropagationStopped())break e;c=p,s.currentTarget=T;try{c(s)}catch(B){uu(B)}s.currentTarget=null,c=E}}}}function be(e,t){var n=t[Ms];n===void 0&&(n=t[Ms]=new Set);var l=e+"__bubble";n.has(l)||(nm(t,e,2,!1),n.add(l))}function xc(e,t,n){var l=0;t&&(l|=4),nm(n,e,l,t)}var Ku="_reactListening"+Math.random().toString(36).slice(2);function Sc(e){if(!e[Ku]){e[Ku]=!0,Jo.forEach(function(n){n!=="selectionchange"&&(gv.has(n)||xc(n,!1,e),xc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ku]||(t[Ku]=!0,xc("selectionchange",!1,t))}}function nm(e,t,n,l){switch(Tm(t)){case 2:var s=Xv;break;case 8:s=Vv;break;default:s=Hc}n=s.bind(null,t,n,e),s=void 0,!Ys||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?s!==void 0?e.addEventListener(t,n,{capture:!0,passive:s}):e.addEventListener(t,n,!0):s!==void 0?e.addEventListener(t,n,{passive:s}):e.addEventListener(t,n,!1)}function Ec(e,t,n,l,s){var c=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===s)break;if(f===4)for(f=l.return;f!==null;){var E=f.tag;if((E===3||E===4)&&f.stateNode.containerInfo===s)return;f=f.return}for(;p!==null;){if(f=Xl(p),f===null)return;if(E=f.tag,E===5||E===6||E===26||E===27){l=c=f;continue e}p=p.parentNode}}l=l.return}sf(function(){var T=c,B=ks(n),Y=[];e:{var M=Uf.get(e);if(M!==void 0){var U=lu,P=e;switch(e){case"keypress":if(tu(n)===0)break e;case"keydown":case"keyup":U=r0;break;case"focusin":P="focus",U=Qs;break;case"focusout":P="blur",U=Qs;break;case"beforeblur":case"afterblur":U=Qs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=of;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=Wp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=f0;break;case Tf:case Mf:case zf:U=Pp;break;case Rf:U=h0;break;case"scroll":case"scrollend":U=Jp;break;case"wheel":U=g0;break;case"copy":case"cut":case"paste":U=t0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=df;break;case"toggle":case"beforetoggle":U=v0}var ce=(t&4)!==0,Ue=!ce&&(e==="scroll"||e==="scrollend"),C=ce?M!==null?M+"Capture":null:M;ce=[];for(var j=T,_;j!==null;){var k=j;if(_=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||_===null||C===null||(k=Ga(j,C),k!=null&&ce.push(Si(j,k,_))),Ue)break;j=j.return}0<ce.length&&(M=new U(M,P,null,n,B),Y.push({event:M,listeners:ce}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",M&&n!==Ls&&(P=n.relatedTarget||n.fromElement)&&(Xl(P)||P[Gl]))break e;if((U||M)&&(M=B.window===B?B:(M=B.ownerDocument)?M.defaultView||M.parentWindow:window,U?(P=n.relatedTarget||n.toElement,U=T,P=P?Xl(P):null,P!==null&&(Ue=d(P),ce=P.tag,P!==Ue||ce!==5&&ce!==27&&ce!==6)&&(P=null)):(U=null,P=T),U!==P)){if(ce=of,k="onMouseLeave",C="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ce=df,k="onPointerLeave",C="onPointerEnter",j="pointer"),Ue=U==null?M:Ya(U),_=P==null?M:Ya(P),M=new ce(k,j+"leave",U,n,B),M.target=Ue,M.relatedTarget=_,k=null,Xl(B)===T&&(ce=new ce(C,j+"enter",P,n,B),ce.target=_,ce.relatedTarget=Ue,k=ce),Ue=k,U&&P)t:{for(ce=pv,C=U,j=P,_=0,k=C;k;k=ce(k))_++;k=0;for(var ue=j;ue;ue=ce(ue))k++;for(;0<_-k;)C=ce(C),_--;for(;0<k-_;)j=ce(j),k--;for(;_--;){if(C===j||j!==null&&C===j.alternate){ce=C;break t}C=ce(C),j=ce(j)}ce=null}else ce=null;U!==null&&lm(Y,M,U,ce,!1),P!==null&&Ue!==null&&lm(Y,Ue,P,ce,!0)}}e:{if(M=T?Ya(T):window,U=M.nodeName&&M.nodeName.toLowerCase(),U==="select"||U==="input"&&M.type==="file")var je=xf;else if(yf(M))if(Sf)je=D0;else{je=A0;var te=w0}else U=M.nodeName,!U||U.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?T&&Bs(T.elementType)&&(je=xf):je=j0;if(je&&(je=je(e,T))){bf(Y,je,n,B);break e}te&&te(e,M,T),e==="focusout"&&T&&M.type==="number"&&T.memoizedProps.value!=null&&Hs(M,"number",M.value)}switch(te=T?Ya(T):window,e){case"focusin":(yf(te)||te.contentEditable==="true")&&(Il=te,Fs=T,Wa=null);break;case"focusout":Wa=Fs=Il=null;break;case"mousedown":Is=!0;break;case"contextmenu":case"mouseup":case"dragend":Is=!1,Cf(Y,n,B);break;case"selectionchange":if(C0)break;case"keydown":case"keyup":Cf(Y,n,B)}var pe;if(Zs)e:{switch(e){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else Fl?pf(e,n)&&(Ne="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ne="onCompositionStart");Ne&&(hf&&n.locale!=="ko"&&(Fl||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&Fl&&(pe=rf()):(Vn=B,Gs="value"in Vn?Vn.value:Vn.textContent,Fl=!0)),te=Zu(T,Ne),0<te.length&&(Ne=new ff(Ne,e,null,n,B),Y.push({event:Ne,listeners:te}),pe?Ne.data=pe:(pe=vf(n),pe!==null&&(Ne.data=pe)))),(pe=b0?x0(e,n):S0(e,n))&&(Ne=Zu(T,"onBeforeInput"),0<Ne.length&&(te=new ff("onBeforeInput","beforeinput",null,n,B),Y.push({event:te,listeners:Ne}),te.data=pe)),dv(Y,e,T,n,B)}tm(Y,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zu(e,t){for(var n=t+"Capture",l=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Ga(e,n),s!=null&&l.unshift(Si(e,s,c)),s=Ga(e,t),s!=null&&l.push(Si(e,s,c))),e.tag===3)return l;e=e.return}return[]}function pv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function lm(e,t,n,l,s){for(var c=t._reactName,f=[];n!==null&&n!==l;){var p=n,E=p.alternate,T=p.stateNode;if(p=p.tag,E!==null&&E===l)break;p!==5&&p!==26&&p!==27||T===null||(E=T,s?(T=Ga(n,c),T!=null&&f.unshift(Si(n,T,E))):s||(T=Ga(n,c),T!=null&&f.push(Si(n,T,E)))),n=n.return}f.length!==0&&e.push({event:t,listeners:f})}var vv=/\r\n?/g,yv=/\u0000|\uFFFD/g;function am(e){return(typeof e=="string"?e:""+e).replace(vv,`
|
|
49
|
+
`).replace(yv,"")}function im(e,t){return t=am(t),am(e)===t}function Re(e,t,n,l,s,c){switch(n){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Jl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Jl(e,""+l);break;case"className":Fi(e,"class",l);break;case"tabIndex":Fi(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fi(e,n,l);break;case"style":af(e,l,c);break;case"data":if(t!=="object"){Fi(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pi(""+l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 c=="function"&&(n==="formAction"?(t!=="input"&&Re(e,t,"name",s.name,s,null),Re(e,t,"formEncType",s.formEncType,s,null),Re(e,t,"formMethod",s.formMethod,s,null),Re(e,t,"formTarget",s.formTarget,s,null)):(Re(e,t,"encType",s.encType,s,null),Re(e,t,"method",s.method,s,null),Re(e,t,"target",s.target,s,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=Pi(""+l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}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}n=Pi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+l):e.removeAttribute(n);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(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":be("beforetoggle",e),be("toggle",e),Wi(e,"popover",l);break;case"xlinkActuate":En(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":En(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":En(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":En(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":En(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":En(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":En(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":En(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":En(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Wi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Kp.get(n)||n,Wi(e,n,l))}}function Nc(e,t,n,l,s,c){switch(n){case"style":af(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(n=l.__html,n!=null){if(s.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof l=="string"?Jl(e,l):(typeof l=="number"||typeof l=="bigint")&&Jl(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Nn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!$o.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(s=n.endsWith("Capture"),t=n.slice(2,s?n.length-7:void 0),c=e[Et]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof l=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,l,s);break e}n in e?e[n]=l:l===!0?e.setAttribute(n,""):Wi(e,n,l)}}}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,s=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":l=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,c,f,n,null)}}s&&Re(e,t,"srcSet",n.srcSet,n,null),l&&Re(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var p=c=f=s=null,E=null,T=null;for(l in n)if(n.hasOwnProperty(l)){var B=n[l];if(B!=null)switch(l){case"name":s=B;break;case"type":f=B;break;case"checked":E=B;break;case"defaultChecked":T=B;break;case"value":c=B;break;case"defaultValue":p=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,t));break;default:Re(e,t,l,B,n,null)}}ef(e,c,p,E,T,f,s,!1);return;case"select":be("invalid",e),l=f=c=null;for(s in n)if(n.hasOwnProperty(s)&&(p=n[s],p!=null))switch(s){case"value":c=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:Re(e,t,s,p,n,null)}t=c,n=f,e.multiple=!!l,t!=null?Zl(e,!!l,t,!1):n!=null&&Zl(e,!!l,n,!0);return;case"textarea":be("invalid",e),c=s=l=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":s=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:Re(e,t,f,p,n,null)}nf(e,l,s,c);return;case"option":for(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Re(e,t,E,l,n,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<xi.length;l++)be(xi[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("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(T in n)if(n.hasOwnProperty(T)&&(l=n[T],l!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Re(e,t,T,l,n,null)}return;default:if(Bs(t)){for(B in n)n.hasOwnProperty(B)&&(l=n[B],l!==void 0&&Nc(e,t,B,l,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(l=n[p],l!=null&&Re(e,t,p,l,n,null))}function bv(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,f=null,p=null,E=null,T=null,B=null;for(U in n){var Y=n[U];if(n.hasOwnProperty(U)&&Y!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":E=Y;default:l.hasOwnProperty(U)||Re(e,t,U,null,l,Y)}}for(var M in l){var U=l[M];if(Y=n[M],l.hasOwnProperty(M)&&(U!=null||Y!=null))switch(M){case"type":c=U;break;case"name":s=U;break;case"checked":T=U;break;case"defaultChecked":B=U;break;case"value":f=U;break;case"defaultValue":p=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:U!==Y&&Re(e,t,M,U,l,Y)}}Us(e,f,p,E,T,B,c,s);return;case"select":U=f=p=M=null;for(c in n)if(E=n[c],n.hasOwnProperty(c)&&E!=null)switch(c){case"value":break;case"multiple":U=E;default:l.hasOwnProperty(c)||Re(e,t,c,null,l,E)}for(s in l)if(c=l[s],E=n[s],l.hasOwnProperty(s)&&(c!=null||E!=null))switch(s){case"value":M=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==E&&Re(e,t,s,c,l,E)}t=p,n=f,l=U,M!=null?Zl(e,!!n,M,!1):!!l!=!!n&&(t!=null?Zl(e,!!n,t,!0):Zl(e,!!n,n?[]:"",!1));return;case"textarea":U=M=null;for(p in n)if(s=n[p],n.hasOwnProperty(p)&&s!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Re(e,t,p,null,l,s)}for(f in l)if(s=l[f],c=n[f],l.hasOwnProperty(f)&&(s!=null||c!=null))switch(f){case"value":M=s;break;case"defaultValue":U=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(r(91));break;default:s!==c&&Re(e,t,f,s,l,c)}tf(e,M,U);return;case"option":for(var P in n)if(M=n[P],n.hasOwnProperty(P)&&M!=null&&!l.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:Re(e,t,P,null,l,M)}for(E in l)if(M=l[E],U=n[E],l.hasOwnProperty(E)&&M!==U&&(M!=null||U!=null))switch(E){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:Re(e,t,E,M,l,U)}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 ce in n)M=n[ce],n.hasOwnProperty(ce)&&M!=null&&!l.hasOwnProperty(ce)&&Re(e,t,ce,null,l,M);for(T in l)if(M=l[T],U=n[T],l.hasOwnProperty(T)&&M!==U&&(M!=null||U!=null))switch(T){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:Re(e,t,T,M,l,U)}return;default:if(Bs(t)){for(var Ue in n)M=n[Ue],n.hasOwnProperty(Ue)&&M!==void 0&&!l.hasOwnProperty(Ue)&&Nc(e,t,Ue,void 0,l,M);for(B in l)M=l[B],U=n[B],!l.hasOwnProperty(B)||M===U||M===void 0&&U===void 0||Nc(e,t,B,M,l,U);return}}for(var C in n)M=n[C],n.hasOwnProperty(C)&&M!=null&&!l.hasOwnProperty(C)&&Re(e,t,C,null,l,M);for(Y in l)M=l[Y],U=n[Y],!l.hasOwnProperty(Y)||M===U||M==null&&U==null||Re(e,t,Y,M,l,U)}function um(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var s=n[l],c=s.transferSize,f=s.initiatorType,p=s.duration;if(c&&p&&um(f)){for(f=0,p=s.responseEnd,l+=1;l<n.length;l++){var E=n[l],T=E.startTime;if(T>p)break;var B=E.transferSize,Y=E.initiatorType;B&&um(Y)&&(E=E.responseEnd,f+=B*(E<p?1:(p-T)/(E-T)))}if(--l,t+=8*(c+f)/(s.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 wc=null,Ac=null;function Ju(e){return e.nodeType===9?e:e.ownerDocument}function sm(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 rm(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 jc(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 Dc=null;function Sv(){var e=window.event;return e&&e.type==="popstate"?e===Dc?!1:(Dc=e,!0):(Dc=null,!1)}var cm=typeof setTimeout=="function"?setTimeout:void 0,Ev=typeof clearTimeout=="function"?clearTimeout:void 0,om=typeof Promise=="function"?Promise:void 0,Nv=typeof queueMicrotask=="function"?queueMicrotask:typeof om<"u"?function(e){return om.resolve(null).then(e).catch(wv)}:cm;function wv(e){setTimeout(function(){throw e})}function sl(e){return e==="head"}function fm(e,t){var n=t,l=0;do{var s=n.nextSibling;if(e.removeChild(n),s&&s.nodeType===8)if(n=s.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(s),Aa(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Ei(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Ei(n);for(var c=n.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[qa]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&Ei(e.ownerDocument.body);n=s}while(n);Aa(t)}function dm(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Oc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Oc(n),zs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Av(e,t,n,l){for(;e.nodeType===1;){var s=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[qa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Pt(e.nextSibling),e===null)break}return null}function jv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Pt(e.nextSibling),e===null))return null;return e}function hm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Pt(e.nextSibling),e===null))return null;return e}function Cc(e){return e.data==="$?"||e.data==="$~"}function _c(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Dv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Pt(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 Tc=null;function mm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Pt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function gm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function pm(e,t,n){switch(t=Ju(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);zs(e)}var en=new Map,vm=new Set;function $u(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var kn=G.d;G.d={f:Ov,r:Cv,D:_v,C:Tv,L:Mv,m:zv,X:Uv,S:Rv,M:Hv};function Ov(){var e=kn.f(),t=qu();return e||t}function Cv(e){var t=Vl(e);t!==null&&t.tag===5&&t.type==="form"?Rd(t):kn.r(e)}var Ea=typeof document>"u"?null:document;function ym(e,t,n){var l=Ea;if(l&&typeof t=="string"&&t){var s=Kt(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof n=="string"&&(s+='[crossorigin="'+n+'"]'),vm.has(s)||(vm.add(s),e={rel:e,crossOrigin:n,href:t},l.querySelector(s)===null&&(t=l.createElement("link"),ot(t,"link",e),lt(t),l.head.appendChild(t)))}}function _v(e){kn.D(e),ym("dns-prefetch",e,null)}function Tv(e,t){kn.C(e,t),ym("preconnect",e,t)}function Mv(e,t,n){kn.L(e,t,n);var l=Ea;if(l&&e&&t){var s='link[rel="preload"][as="'+Kt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(s+='[imagesrcset="'+Kt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(s+='[imagesizes="'+Kt(n.imageSizes)+'"]')):s+='[href="'+Kt(e)+'"]';var c=s;switch(t){case"style":c=Na(e);break;case"script":c=wa(e)}en.has(c)||(e=b({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),en.set(c,e),l.querySelector(s)!==null||t==="style"&&l.querySelector(Ni(c))||t==="script"&&l.querySelector(wi(c))||(t=l.createElement("link"),ot(t,"link",e),lt(t),l.head.appendChild(t)))}}function zv(e,t){kn.m(e,t);var n=Ea;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+Kt(l)+'"][href="'+Kt(e)+'"]',c=s;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=wa(e)}if(!en.has(c)&&(e=b({rel:"modulepreload",href:e},t),en.set(c,e),n.querySelector(s)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wi(c)))return}l=n.createElement("link"),ot(l,"link",e),lt(l),n.head.appendChild(l)}}}function Rv(e,t,n){kn.S(e,t,n);var l=Ea;if(l&&e){var s=Ql(l).hoistableStyles,c=Na(e);t=t||"default";var f=s.get(c);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(Ni(c)))p.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},n),(n=en.get(c))&&Mc(e,n);var E=f=l.createElement("link");lt(E),ot(E,"link",e),E._p=new Promise(function(T,B){E.onload=T,E.onerror=B}),E.addEventListener("load",function(){p.loading|=1}),E.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Wu(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:p},s.set(c,f)}}}function Uv(e,t){kn.X(e,t);var n=Ea;if(n&&e){var l=Ql(n).hoistableScripts,s=wa(e),c=l.get(s);c||(c=n.querySelector(wi(s)),c||(e=b({src:e,async:!0},t),(t=en.get(s))&&zc(e,t),c=n.createElement("script"),lt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function Hv(e,t){kn.M(e,t);var n=Ea;if(n&&e){var l=Ql(n).hoistableScripts,s=wa(e),c=l.get(s);c||(c=n.querySelector(wi(s)),c||(e=b({src:e,async:!0,type:"module"},t),(t=en.get(s))&&zc(e,t),c=n.createElement("script"),lt(c),ot(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(s,c))}}function bm(e,t,n,l){var s=(s=ee.current)?$u(s):null;if(!s)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Na(n.href),n=Ql(s).hoistableStyles,l=n.get(t),l||(l={type:"style",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Na(n.href);var c=Ql(s).hoistableStyles,f=c.get(e);if(f||(s=s.ownerDocument||s,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,f),(c=s.querySelector(Ni(e)))&&!c._p&&(f.instance=c,f.state.loading=5),en.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},en.set(e,n),c||Bv(s,e,n,f.state))),t&&l===null)throw Error(r(528,""));return f}if(t&&l!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wa(n),n=Ql(s).hoistableScripts,l=n.get(t),l||(l={type:"script",instance:null,count:0,state:null},n.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function Na(e){return'href="'+Kt(e)+'"'}function Ni(e){return'link[rel="stylesheet"]['+e+"]"}function xm(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Bv(e,t,n,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}),ot(t,"link",n),lt(t),e.head.appendChild(t))}function wa(e){return'[src="'+Kt(e)+'"]'}function wi(e){return"script[async]"+e}function Sm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Kt(n.href)+'"]');if(l)return t.instance=l,lt(l),l;var s=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),lt(l),ot(l,"style",s),Wu(l,n.precedence,e),t.instance=l;case"stylesheet":s=Na(n.href);var c=e.querySelector(Ni(s));if(c)return t.state.loading|=4,t.instance=c,lt(c),c;l=xm(n),(s=en.get(s))&&Mc(l,s),c=(e.ownerDocument||e).createElement("link"),lt(c);var f=c;return f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),ot(c,"link",l),t.state.loading|=4,Wu(c,n.precedence,e),t.instance=c;case"script":return c=wa(n.src),(s=e.querySelector(wi(c)))?(t.instance=s,lt(s),s):(l=n,(s=en.get(c))&&(l=b({},n),zc(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),lt(s),ot(s,"link",l),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Wu(l,n.precedence,e));return t.instance}function Wu(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,c=s,f=0;f<l.length;f++){var p=l[f];if(p.dataset.precedence===t)c=p;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Mc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function zc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Fu=null;function Em(e,t,n){if(Fu===null){var l=new Map,s=Fu=new Map;s.set(n,l)}else s=Fu,l=s.get(n),l||(l=new Map,s.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),s=0;s<n.length;s++){var c=n[s];if(!(c[qa]||c[ut]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(t)||"";f=e+f;var p=l.get(f);p?p.push(c):l.set(f,[c])}}return l}function Nm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function Lv(e,t,n){if(n===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 wm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kv(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var s=Na(l.href),c=t.querySelector(Ni(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Iu.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,lt(c);return}c=t.ownerDocument||t,l=xm(l),(s=en.get(s))&&Mc(l,s),c=c.createElement("link"),lt(c);var f=c;f._p=new Promise(function(p,E){f.onload=p,f.onerror=E}),ot(c,"link",l),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Iu.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Rc=0;function qv(e,t){return e.stylesheets&&e.count===0&&es(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&es(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Rc===0&&(Rc=62500*xv());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&es(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Rc?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(s)}}:null}function Iu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Pu=null;function es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Pu=new Map,t.forEach(Yv,e),Pu=null,Iu.call(e))}function Yv(e,t){if(!(t.state.loading&4)){var n=Pu.get(e);if(n)var l=n.get(null);else{n=new Map,Pu.set(e,n);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var f=s[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}s=t.instance,f=s.getAttribute("data-precedence"),c=n.get(f)||l,c===l&&n.set(null,s),n.set(f,s),this.count++,l=Iu.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ai={$$typeof:q,Provider:null,Consumer:null,_currentValue:le,_currentValue2:le,_threadCount:0};function Gv(e,t,n,l,s,c,f,p,E){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=St(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.hiddenUpdates=St(null),this.identifierPrefix=l,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Am(e,t,n,l,s,c,f,p,E,T,B,Y){return e=new Gv(e,t,n,f,E,T,B,Y,p),t=1,c===!0&&(t|=24),c=Rt(3,null,null,t),e.current=c,c.stateNode=e,t=hr(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:n,cache:t},vr(c),e}function jm(e){return e?(e=ta,e):ta}function Dm(e,t,n,l,s,c){s=jm(s),l.context===null?l.context=s:l.pendingContext=s,l=Wn(t),l.payload={element:n},c=c===void 0?null:c,c!==null&&(l.callback=c),n=Fn(e,l,t),n!==null&&(Ot(n,e,t),li(n,e,t))}function Om(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Uc(e,t){Om(e,t),(e=e.alternate)&&Om(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=wl(e,67108864);t!==null&&Ot(t,e,67108864),Uc(e,67108864)}}function _m(e){if(e.tag===13||e.tag===31){var t=kt();t=xn(t);var n=wl(e,t);n!==null&&Ot(n,e,t),Uc(e,t)}}var ts=!0;function Xv(e,t,n,l){var s=R.T;R.T=null;var c=G.p;try{G.p=2,Hc(e,t,n,l)}finally{G.p=c,R.T=s}}function Vv(e,t,n,l){var s=R.T;R.T=null;var c=G.p;try{G.p=8,Hc(e,t,n,l)}finally{G.p=c,R.T=s}}function Hc(e,t,n,l){if(ts){var s=Bc(l);if(s===null)Ec(e,t,l,ns,n),Mm(e,l);else if(Kv(s,e,t,n,l))l.stopPropagation();else if(Mm(e,l),t&4&&-1<Qv.indexOf(e)){for(;s!==null;){var c=Vl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Ve(c.pendingLanes);if(f!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var E=1<<31-ht(f);p.entanglements[1]|=E,f&=~E}gn(c),(Oe&6)===0&&(Lu=dt()+500,bi(0))}}break;case 31:case 13:p=wl(c,2),p!==null&&Ot(p,c,2),qu(),Uc(c,2)}if(c=Bc(l),c===null&&Ec(e,t,l,ns,n),c===s)break;s=c}s!==null&&l.stopPropagation()}else Ec(e,t,l,null,n)}}function Bc(e){return e=ks(e),Lc(e)}var ns=null;function Lc(e){if(ns=null,e=Xl(e),e!==null){var t=d(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ns=e,null}function Tm(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(Cs()){case Zi:return 2;case bn:return 8;case ln:case yl:return 32;case ka:return 268435456;default:return 32}default:return 32}}var kc=!1,rl=null,cl=null,ol=null,ji=new Map,Di=new Map,fl=[],Qv="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 Mm(e,t){switch(e){case"focusin":case"focusout":rl=null;break;case"dragenter":case"dragleave":cl=null;break;case"mouseover":case"mouseout":ol=null;break;case"pointerover":case"pointerout":ji.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Di.delete(t.pointerId)}}function Oi(e,t,n,l,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Vl(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Kv(e,t,n,l,s){switch(t){case"focusin":return rl=Oi(rl,e,t,n,l,s),!0;case"dragenter":return cl=Oi(cl,e,t,n,l,s),!0;case"mouseover":return ol=Oi(ol,e,t,n,l,s),!0;case"pointerover":var c=s.pointerId;return ji.set(c,Oi(ji.get(c)||null,e,t,n,l,s)),!0;case"gotpointercapture":return c=s.pointerId,Di.set(c,Oi(Di.get(c)||null,e,t,n,l,s)),!0}return!1}function zm(e){var t=Xl(e.target);if(t!==null){var n=d(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Xn(e.priority,function(){_m(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Xn(e.priority,function(){_m(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Bc(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Ls=l,n.target.dispatchEvent(l),Ls=null}else return t=Vl(n),t!==null&&Cm(t),e.blockedOn=n,!1;t.shift()}return!0}function Rm(e,t,n){ls(e)&&n.delete(t)}function Zv(){kc=!1,rl!==null&&ls(rl)&&(rl=null),cl!==null&&ls(cl)&&(cl=null),ol!==null&&ls(ol)&&(ol=null),ji.forEach(Rm),Di.forEach(Rm)}function as(e,t){e.blockedOn===t&&(e.blockedOn=null,kc||(kc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Zv)))}var is=null;function Um(e){is!==e&&(is=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){is===e&&(is=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Lc(l||n)===null)continue;break}var c=Vl(n);c!==null&&(e.splice(t,3),t-=3,Br(c,{pending:!0,data:s,method:n.method,action:l},l,s))}}))}function Aa(e){function t(E){return as(E,e)}rl!==null&&as(rl,e),cl!==null&&as(cl,e),ol!==null&&as(ol,e),ji.forEach(t),Di.forEach(t);for(var n=0;n<fl.length;n++){var l=fl[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<fl.length&&(n=fl[0],n.blockedOn===null);)zm(n),n.blockedOn===null&&fl.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var s=n[l],c=n[l+1],f=s[Et]||null;if(typeof c=="function")f||Um(n);else if(f){var p=null;if(c&&c.hasAttribute("formAction")){if(s=c,f=c[Et]||null)p=f.formAction;else if(Lc(s)!==null)continue}else p=f.action;typeof p=="function"?n[l+1]=p:(n.splice(l,3),l-=3),Um(n)}}}function Hm(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return s=f})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function qc(e){this._internalRoot=e}us.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,l=kt();Dm(n,l,e,t,null,null)},us.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Dm(e.current,2,null,e,null,null),qu(),t[Gl]=null}};function us(e){this._internalRoot=e}us.prototype.unstable_scheduleHydration=function(e){if(e){var t=un();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fl.length&&t!==0&&t<fl[n].priority;n++);fl.splice(n,0,e),n===0&&zm(e)}};var Bm=i.version;if(Bm!=="19.2.7")throw Error(r(527,Bm,"19.2.7"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var Jv={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{bl=ss.inject(Jv),pt=ss}catch{}}return _i.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,l="",s=Vd,c=Qd,f=Kd;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Am(e,1,!1,null,null,n,l,null,s,c,f,Hm),e[Gl]=t.current,Sc(e),new qc(t)},_i.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var l=!1,s="",c=Vd,f=Qd,p=Kd,E=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(E=n.formState)),t=Am(e,1,!0,t,n??null,l,s,E,c,f,p,Hm),t.context=jm(null),n=t.current,l=kt(),l=xn(l),s=Wn(l),s.callback=null,Fn(n,s,l),n=l,t.current.lanes=n,Gt(t,n),gn(t),e[Gl]=t.current,Sc(e),new us(t)},_i.version="19.2.7",_i}var Zm;function ay(){if(Zm)return Xc.exports;Zm=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Xc.exports=ly(),Xc.exports}var iy=ay();function uy(a){const i=a.getFullYear(),u=String(a.getMonth()+1).padStart(2,"0"),r=String(a.getDate()).padStart(2,"0");return`${i}-${u}-${r}`}function Ug(a,i){const u=[];for(let r=i-1;r>=0;r--)u.push(uy(new Date(a.getTime()-r*24*60*60*1e3)));return u}function sy(a,i){return Math.max(0,Math.floor((i.getTime()-new Date(a).getTime())/(1440*60*1e3)))}function ry(a,i,u,r){const o=Ug(r,u),d=new Map(o.map((v,y)=>[v,y])),m=new Map;for(const v of i){const y=d.get(v.date);if(y===void 0)continue;let g=m.get(v.repo);g||(g=new Array(u).fill(0),m.set(v.repo,g)),g[y]+=v.commits}return a.map(v=>{const y=m.get(v.nameWithOwner)??new Array(u).fill(0);return{repo:v,totalCommits:y.reduce((g,x)=>g+x,0),daysSincePush:sy(v.pushedAt,r),dailyCommits:y}})}function Jm(a,i){return a==="dashboard"?i():[]}function Zc(a){return a==="dashboard"||a==="coach"}function $m(a,i){const u=[...a];switch(i){case"active":u.sort((r,o)=>o.totalCommits-r.totalCommits);break;case"recent":u.sort((r,o)=>r.daysSincePush-o.daysSincePush);break;case"stale":u.sort((r,o)=>o.daysSincePush-r.daysSincePush);break}return u}const Ca=(a,i)=>a!=null&&a.toLowerCase()===i.toLowerCase();function Hg(a,i,u){if(!u)return{awaitingReview:[],toReview:[]};const r=a.filter(o=>o.type==="pr"&&o.repo===i);return{awaitingReview:r.filter(o=>Ca(o.author,u)&&!o.isDraft&&o.reviewDecision!=="APPROVED"),toReview:r.filter(o=>(o.reviewers??[]).some(d=>Ca(d,u)))}}const Wm=["awaitingReview","draft","toReview","myOpenIssues"];function jo(a,i){var d;const u=new Map;if(!i)return u;const r=new Map;for(const m of a){if(m.type!=="pr"||!Ca(m.author,i))continue;const v=r.get(m.repo)??new Set;for(const y of m.linkedIssues??[])v.add(y);r.set(m.repo,v)}const o=(m,v)=>{const y=u.get(m)??{awaitingReview:0,draft:0,toReview:0,myOpenIssues:0};y[v]+=1,u.set(m,y)};for(const m of a)m.type==="pr"?(Ca(m.author,i)&&(m.isDraft?o(m.repo,"draft"):m.reviewDecision!=="APPROVED"&&o(m.repo,"awaitingReview")),(m.reviewers??[]).some(v=>Ca(v,i))&&o(m.repo,"toReview")):Ca(m.author,i)&&!((d=r.get(m.repo))!=null&&d.has(m.number))&&o(m.repo,"myOpenIssues");return u}const Do={query:"",tagIds:[],bookmarkedOnly:!1,includeHidden:!1,minCommits:0,pushedWithinDays:null,pushedOverDays:null,work:null},cy=[{id:"hot",label:"🔥 活発 × 30日以内",title:"期間内に10コミット以上、かつ最終pushが30日以内",patch:{minCommits:10,pushedWithinDays:30,pushedOverDays:null}},{id:"recent",label:"⚡ 直近7日",title:"最終pushが7日以内",patch:{minCommits:1,pushedWithinDays:7,pushedOverDays:null}},{id:"dormant",label:"💤 30日以上放置",title:"最終pushが30日以上前(忘れているもの)",patch:{minCommits:0,pushedWithinDays:null,pushedOverDays:30}}];function Bg(a,i){return Object.keys(i.patch).every(u=>JSON.stringify(a[u])===JSON.stringify(i.patch[u]))}function oy(a,i){const u=Object.keys(i.patch);if(Bg(a,i)){const r=Object.fromEntries(u.map(o=>[o,Do[o]]));return{...a,...r}}return{...a,...i.patch}}function fy(a,i,u){var m;const r=i.trim().toLowerCase();if(r==="")return!0;const{repo:o}=a;return[o.nameWithOwner,o.description??"",o.primaryLanguage??"",((m=o.lastCommits[0])==null?void 0:m.message)??"",...u].join(`
|
|
50
|
+
`).toLowerCase().includes(r)}function dy(a,i){return(a.tags.byRepo[i]??[]).map(r=>{var o;return((o=a.tags.defs.find(d=>d.id===r))==null?void 0:o.label)??""})}function hy(a,i,u,r){const o=i.work&&r?jo(r.issues,r.login):null;return a.filter(d=>{var v;const m=d.repo.nameWithOwner;if(o&&i.work&&!(((v=o.get(m))==null?void 0:v[i.work])??0)||!i.includeHidden&&((u==null?void 0:u.hidden.includes(m))??!1)||i.bookmarkedOnly&&!((u==null?void 0:u.bookmarks.includes(m))??!1)||d.totalCommits<i.minCommits||i.pushedWithinDays!=null&&d.daysSincePush>i.pushedWithinDays||i.pushedOverDays!=null&&d.daysSincePush<i.pushedOverDays)return!1;if(i.tagIds.length>0){const y=(u==null?void 0:u.tags.byRepo[m])??[];if(!i.tagIds.some(g=>y.includes(g)))return!1}if(i.query.trim()!==""){const y=u?dy(u,m):[];if(!fy(d,i.query,y))return!1}return!0})}function my(a){return a.query.trim()!==""||a.tagIds.length>0||a.bookmarkedOnly||a.minCommits>0||a.pushedWithinDays!==null||a.pushedOverDays!==null||a.work!==null}const gy=["single","multi"];function py(a,i,u){const r=new Set(u==="multi"?a:[]);return a.has(i)?r.delete(i):r.add(i),r}function vy(a,i){return new Set(i!=null&&a.has(i)?[i]:[])}const yy="github-reporadar-snapshot",ps="snapshot",by="hosted",xy=1;function Sy(){return new Promise((a,i)=>{const u=indexedDB.open(yy,xy);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(ps)||r.createObjectStore(ps)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}async function Ey(){try{const a=await Sy();await new Promise((i,u)=>{const r=a.transaction(ps,"readwrite");r.oncomplete=()=>i(),r.onabort=()=>u(r.error??new Error("indexedDB transaction aborted")),r.objectStore(ps).delete(by)}),a.close()}catch{}}let Lg=0;const fo=new Set;function Ny(){Lg+=1;for(const a of fo)a()}function wy(a){return fo.add(a),()=>{fo.delete(a)}}function Fm(){return Lg}function Yn(){return S.useSyncExternalStore(wy,Fm,Fm)}function kg(a,i){return"no-local-cache"}async function Ay(){const[a,i,u]=await Promise.all(["repos","activity","meta"].map(async r=>{const o=await fetch(`/data/${r}.json`);if(!o.ok)throw new Error(`/data/${r}.json が読めません (${o.status})`);return o.json()}));return{repos:a,activity:i,meta:u}}function jy(){const[a,i]=S.useState({status:"loading"}),u=Yn();return S.useEffect(()=>{let r=!1;return Ay().then(o=>{r||i({status:"ready",data:o,revalidating:!1})}).catch(o=>{r||i(d=>d.status==="ready"?d:{status:"error",kind:kg(),message:Dy(o)})}),()=>{r=!0}},[u]),a}function Dy(a){return a instanceof Error?a.message:String(a)}function pn(a,i,u){const[r,o]=S.useState(()=>{if(typeof window>"u")return i;const m=window.localStorage.getItem(a);return m===null||u&&!u.includes(m)?i:m}),d=S.useCallback(m=>{o(m),window.localStorage.setItem(a,m)},[a]);return[r,d]}function Oy(a){const[i,u]=S.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(a).matches);return S.useEffect(()=>{if(typeof window>"u"||typeof window.matchMedia!="function")return;const r=window.matchMedia(a),o=()=>u(r.matches);return o(),r.addEventListener("change",o),()=>r.removeEventListener("change",o)},[a]),i}const qg=1,Bl={mode:"always",times:["11:00","15:00","18:30"],fromHour:11,toHour:19,weekdays:[1,2,3,4,5]},Cy=/^([01]\d|2[0-3]):([0-5]\d)$/;function hs(a){const i=Cy.exec(a.trim());return i?Number(i[1])*60+Number(i[2]):null}function Oo(a){const i=a.map(u=>u.trim()).filter(u=>hs(u)!==null);return[...new Set(i)].sort((u,r)=>hs(u)-hs(r))}const Jc=a=>a.getHours()*60+a.getMinutes();function _y(a,i){if(a.weekdays.length>0&&!a.weekdays.includes(i.getDay()))return!0;if(a.fromHour===a.toHour)return!1;const u=i.getHours();return u<a.fromHour||u>=a.toHour}function Ty(a,i,u){if(_y(a,i))return!1;if(a.mode==="always")return!0;if(!u)return!1;const r=new Date(u);if(Number.isNaN(r.getTime()))return!1;const o=Oo(a.times).map(m=>hs(m));return o.length===0?!1:r.toDateString()===i.toDateString()?o.some(m=>m>Jc(r)&&m<=Jc(i)):o.some(m=>m<=Jc(i))}function My(a){const i=a.weekdays.length===0?"毎日":a.weekdays.length===5&&a.weekdays.every(o=>o>=1&&o<=5)?"平日":"選んだ曜日",u=a.fromHour===a.toHour?"終日":`${a.fromHour}時から${a.toHour}時`,r=a.mode==="always"?"届いたとき":Oo(a.times).join(" / ");return`${i}の${u}、${r}に知らせます`}function zy(a,i){return{meta:{version:qg,updatedAt:a,deviceId:i},tags:{defs:[],byRepo:{}},bookmarks:[],hidden:[],boards:[],notes:{},log:[],inboxReadAt:null,inboxReadIds:[],wikiChecked:{},wikiMuted:[],inboxOrgOnly:!0,coachThreads:[],notify:{...Bl},lastNotifiedAt:null}}const Yg=["github-reporadar_memo_","reporadar_memo_"];function Ry(a,i){const u={...i};let r=0;for(const[o,d]of Object.entries(a)){const m=Yg.find(y=>o.startsWith(y));if(!m)continue;const v=o.slice(m.length);!(v in u)&&d.trim()!==""&&(u[v]=d,r++)}return{notes:u,migrated:r}}function Uy(a){return Yg.some(i=>a.startsWith(i))}function _a(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)}function Ti(a){return Array.isArray(a)?a.filter(i=>typeof i=="string"):[]}function Im(a){if(!_a(a))return{};const i={};for(const[u,r]of Object.entries(a))typeof r=="string"&&(i[u]=r);return i}function Hy(a){if(!_a(a))return{defs:[],byRepo:{}};const i=Array.isArray(a.defs)?a.defs.filter(_a):[],u={};if(_a(a.byRepo))for(const[r,o]of Object.entries(a.byRepo))u[r]=Ti(o);return{defs:i,byRepo:u}}function By(a,i,u){if(!_a(a))return zy(i,u);const r=_a(a.meta)?a.meta:{};return{meta:{version:typeof r.version=="number"?r.version:qg,updatedAt:typeof r.updatedAt=="string"?r.updatedAt:i,deviceId:typeof r.deviceId=="string"?r.deviceId:u},tags:Hy(a.tags),bookmarks:Ti(a.bookmarks),hidden:Ti(a.hidden),boards:Array.isArray(a.boards)?a.boards:[],notes:Im(a.notes),log:Array.isArray(a.log)?a.log:[],inboxReadAt:typeof a.inboxReadAt=="string"?a.inboxReadAt:null,inboxReadIds:Ti(a.inboxReadIds),wikiChecked:Im(a.wikiChecked),wikiMuted:Ti(a.wikiMuted),inboxOrgOnly:typeof a.inboxOrgOnly=="boolean"?a.inboxOrgOnly:!0,coachThreads:Array.isArray(a.coachThreads)?a.coachThreads:[],notify:Ly(a.notify),lastNotifiedAt:typeof a.lastNotifiedAt=="string"?a.lastNotifiedAt:null}}function Ly(a){if(!a||typeof a!="object")return{...Bl};const i=a,u=(r,o)=>typeof r=="number"&&Number.isInteger(r)&&r>=0&&r<=24?r:o;return{mode:i.mode==="digest"?"digest":"always",times:Array.isArray(i.times)?Oo(i.times.filter(r=>typeof r=="string")):[...Bl.times],fromHour:u(i.fromHour,Bl.fromHour),toHour:u(i.toHour,Bl.toHour),weekdays:Array.isArray(i.weekdays)?[...new Set(i.weekdays.filter(r=>typeof r=="number"&&r>=0&&r<=6))].sort():[...Bl.weekdays]}}const Pm="github-reporadar_device_id",ky=700;function qy(){if(typeof window>"u")return"ssr";let a=window.localStorage.getItem(Pm);return a||(a=typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`dev-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`,window.localStorage.setItem(Pm,a)),a}function Yy(){const a={};if(typeof window>"u")return a;const i=window.localStorage;for(let u=0;u<i.length;u++){const r=i.key(u);if(r&&Uy(r)){const o=i.getItem(r);o!==null&&(a[r]=o)}}return a}function Gy(a,i,u){const[r,o]=S.useState(null),[d,m]=S.useState("idle"),[v,y]=S.useState(null),g=S.useRef(null),x=S.useRef(null),b=S.useRef([]),w=S.useRef(!1),N=S.useRef(!1),z=S.useRef(u);z.current=u;const D=S.useCallback(async()=>{var q;if(!(!g.current||w.current||N.current)){N.current=!0,m("saving");try{let X=null;for(;g.current&&g.current!==X&&!w.current;)X=g.current,await a.save(X);m("saved")}catch(X){m("error"),(q=z.current)==null||q.call(z,X)}finally{N.current=!1}}},[a]),O=S.useCallback(()=>{x.current&&(clearTimeout(x.current),x.current=null,D())},[D]),L=S.useCallback(()=>{x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{x.current=null,D()},ky)},[D]);S.useEffect(()=>{let q=!1;return g.current=null,w.current=!1,y(null),m("idle"),(async()=>{const X=qy();let Q=null;try{Q=await a.load()}catch(me){q||y(me instanceof Error?me.message:String(me)),w.current=!0}let $=By(Q,i(),X),V=!1;const{notes:ae,migrated:de}=Ry(Yy(),$.notes);if(de>0&&($={...$,notes:ae},V=!0),b.current.length>0){for(const me of b.current)me($);b.current=[],$.meta={...$.meta,updatedAt:i()},V=!0}q||(g.current=$,o($),V&&!w.current&&D())})(),()=>{q=!0}},[a,i,D]),S.useEffect(()=>{const q=()=>O(),X=()=>{document.visibilityState==="hidden"&&O()};return window.addEventListener("pagehide",q),document.addEventListener("visibilitychange",X),()=>{window.removeEventListener("pagehide",q),document.removeEventListener("visibilitychange",X),O()}},[O]);const Z=S.useCallback(q=>{if(g.current===null){b.current.push(q);return}const X=structuredClone(g.current);q(X),X.meta={...X.meta,updatedAt:i()},g.current=X,o(X),w.current||L()},[i,L]);return{data:r,mutate:Z,saveStatus:d,loadError:v}}const Xy="github-reporadar",Ra="userdata",Gg="current",Vy=1;function eg(){return new Promise((a,i)=>{const u=indexedDB.open(Xy,Vy);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(Ra)||r.createObjectStore(Ra)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}function Qy(a){return new Promise((i,u)=>{const o=a.transaction(Ra,"readonly").objectStore(Ra).get(Gg);o.onsuccess=()=>i(o.result),o.onerror=()=>u(o.error??new Error("indexedDB read failed"))})}function Ky(a,i){return new Promise((u,r)=>{const o=a.transaction(Ra,"readwrite");o.oncomplete=()=>u(),o.onabort=()=>r(o.error??new Error("indexedDB transaction aborted")),o.onerror=()=>r(o.error??new Error("indexedDB transaction failed")),o.objectStore(Ra).put(i,Gg)})}function Zy(){return{name:"indexeddb",async load(){const a=await eg();try{return await Qy(a)??null}finally{a.close()}},async save(a){const i=await eg();try{await Ky(i,a)}finally{i.close()}}}}const tg="github-reporadar.json";function Jy(){return typeof window<"u"&&typeof window.showDirectoryPicker=="function"}function $c(a){return{name:"filesystem",async load(){let i;try{i=await a.getFileHandle(tg)}catch(o){if(o instanceof DOMException&&o.name==="NotFoundError")return null;throw o}const r=await(await i.getFile()).text();return r.trim()===""?null:JSON.parse(r)},async save(i){const r=await(await a.getFileHandle(tg,{create:!0})).createWritable();try{await r.write(JSON.stringify(i,null,2))}finally{await r.close()}}}}const $y="github-reporadar-handles",pl="handles",Co="syncDir",Wy=1;function _o(){return new Promise((a,i)=>{const u=indexedDB.open($y,Wy);u.onupgradeneeded=()=>{const r=u.result;r.objectStoreNames.contains(pl)||r.createObjectStore(pl)},u.onsuccess=()=>a(u.result),u.onerror=()=>i(u.error??new Error("indexedDB open failed"))})}async function Fy(a){const i=await _o();try{await new Promise((u,r)=>{const o=i.transaction(pl,"readwrite");o.oncomplete=()=>u(),o.onabort=()=>r(o.error??new Error("save handle aborted")),o.onerror=()=>r(o.error??new Error("save handle failed")),o.objectStore(pl).put(a,Co)})}finally{i.close()}}async function ng(){const a=await _o();try{return await new Promise((u,r)=>{const d=a.transaction(pl,"readonly").objectStore(pl).get(Co);d.onsuccess=()=>u(d.result),d.onerror=()=>r(d.error??new Error("load handle failed"))})??null}finally{a.close()}}async function Iy(){const a=await _o();try{await new Promise((i,u)=>{const r=a.transaction(pl,"readwrite");r.oncomplete=()=>i(),r.onabort=()=>u(r.error??new Error("clear handle aborted")),r.onerror=()=>u(r.error??new Error("clear handle failed")),r.objectStore(pl).delete(Co)})}finally{a.close()}}function Py(){const a=S.useMemo(()=>Zy(),[]),[i,u]=S.useState(null),[r,o]=S.useState("indexeddb"),[d,m]=S.useState(null),[v,y]=S.useState(!1),[g,x]=S.useState(null),b=Jy(),w=S.useRef(r);w.current=r;const N=S.useRef(i);N.current=i;const z=S.useMemo(()=>r==="filesystem"&&i?$c(i):a,[r,i,a]);S.useEffect(()=>{let q=!1;return(async()=>{var X;try{const Q=await ng();if(!Q||q)return;const $=await((X=Q.queryPermission)==null?void 0:X.call(Q,{mode:"readwrite"}))??"prompt";if(q)return;$==="granted"?(u(Q),o("filesystem"),m(Q.name)):(m(Q.name),y(!0))}catch(Q){q||x(Q instanceof Error?Q.message:String(Q))}})(),()=>{q=!0}},[]);const D=S.useCallback(async q=>{var $,V;if(w.current!=="filesystem")return;const X=q instanceof DOMException?q.name:"";let Q="granted";try{Q=N.current&&await((V=($=N.current).queryPermission)==null?void 0:V.call($,{mode:"readwrite"}))||"prompt"}catch{Q="prompt"}X==="NotAllowedError"||Q!=="granted"?(y(!0),x("同期フォルダへの書き込み権限が切れました。再接続してください")):x(X==="NotFoundError"?"同期フォルダが見つかりません(削除/移動された可能性)。切断でローカル保存に戻せます":q instanceof Error?q.message:String(q))},[]),O=S.useCallback(async q=>{if(x(null),!window.showDirectoryPicker){x("このブラウザは同期フォルダ(File System Access)に対応していません");return}let X;try{X=await window.showDirectoryPicker({id:"github-reporadar",mode:"readwrite"})}catch(Q){if(Q instanceof DOMException&&Q.name==="AbortError")return;x(Q instanceof Error?Q.message:String(Q));return}try{const Q=$c(X);await Q.load()==null&&q!=null&&await Q.save(q),await Fy(X),u(X),o("filesystem"),m(X.name),y(!1)}catch(Q){x(Q instanceof Error?Q.message:String(Q))}},[]),L=S.useCallback(async q=>{var $;x(null);const X=await ng();if(!X){y(!1);return}let Q="denied";try{Q=await(($=X.requestPermission)==null?void 0:$.call(X,{mode:"readwrite"}))??"denied"}catch{Q="denied"}if(Q!=="granted"){x("フォルダへのアクセスが許可されませんでした");return}if(w.current==="filesystem"&&q!=null){try{await $c(X).save(q)}catch(V){x(V instanceof Error?V.message:String(V));return}y(!1)}else u(X),o("filesystem"),m(X.name),y(!1)},[]),Z=S.useCallback(async q=>{if(q!=null)try{await a.save(q)}catch{}await Iy(),u(null),o("indexeddb"),m(null),y(!1),x(null)},[a]);return{store:z,kind:r,dirName:d,needsReconnect:v,supported:b,error:g,onSaveError:D,connectFolder:O,reconnect:L,disconnect:Z}}const Xg=S.createContext(null);function eb({children:a}){const i=Py(),u=S.useMemo(()=>()=>new Date().toISOString(),[]),r=Gy(i.store,u,i.onSaveError),o={...r,storage:{kind:i.kind,dirName:i.dirName,needsReconnect:i.needsReconnect,supported:i.supported,error:i.error},connectFolder:()=>i.connectFolder(r.data),reconnect:()=>i.reconnect(r.data),disconnect:()=>i.disconnect(r.data)};return h.jsx(Xg.Provider,{value:o,children:a})}function _t(){const a=S.useContext(Xg);if(!a)throw new Error("useUserDataContext must be used within UserDataProvider");return a}function Ui({tag:a,dimmed:i,onRemove:u}){const r=i?void 0:{color:a.color,borderColor:`${a.color}66`,backgroundColor:`${a.color}1f`};return h.jsxs("span",{className:`inline-flex items-center gap-1 rounded-md border px-1.5 py-0.5 text-xs ${i?"border-line text-fg-faint":""}`,style:r,children:[h.jsx("span",{className:"h-1.5 w-1.5 shrink-0 rounded-full",style:{backgroundColor:i?"var(--color-fg-faint)":a.color}}),a.label,u&&h.jsx("button",{type:"button",onClick:o=>{o.stopPropagation(),u()},className:"ml-0.5 opacity-70 hover:opacity-100","aria-label":`${a.label} を外す`,children:"×"})]})}const Wc={awaitingReview:{label:"レビュー待ちの自分のPR",title:"自分が出したPRで、ドラフトでなく、まだ承認されていないもの"},draft:{label:"Draftの自分のPR",title:"自分が出したDraft PR"},toReview:{label:"自分がレビューするPR",title:"レビューを頼まれているPR"},myOpenIssues:{label:"手を付けていない自分のissue",title:"自分が作ったopen issueで、自分のopen PRがまだ閉じる予定になっていないもの"}},tb=[{value:0,label:"活動量: 指定なし"},{value:1,label:"1 commit 以上"},{value:5,label:"5 commits 以上"},{value:10,label:"10 commits 以上"},{value:30,label:"30 commits 以上"}],ms=[{key:"any",label:"最終push: 指定なし",within:null,over:null},{key:"w1",label:"1日以内",within:1,over:null},{key:"w7",label:"7日以内",within:7,over:null},{key:"w30",label:"30日以内",within:30,over:null},{key:"w60",label:"60日以内",within:60,over:null},{key:"w90",label:"90日以内",within:90,over:null},{key:"w180",label:"180日以内",within:180,over:null},{key:"o14",label:"14日以上放置",within:null,over:14},{key:"o30",label:"30日以上放置",within:null,over:30},{key:"o90",label:"90日以上放置",within:null,over:90}];function nb(a){var i;return((i=ms.find(u=>u.within===a.pushedWithinDays&&u.over===a.pushedOverDays))==null?void 0:i.key)??"any"}const lg="rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none";function lb(a){return a.minCommits>0||a.pushedWithinDays!==null||a.pushedOverDays!==null}function ab({filter:a,onChange:i,resultCount:u,workCounts:r}){const{data:o}=_t(),d=(o==null?void 0:o.tags.defs)??[],m=(o==null?void 0:o.hidden.length)??0,[v,y]=S.useState(!1);function g(x){const b=a.tagIds.includes(x);i({...a,tagIds:b?a.tagIds.filter(w=>w!==x):[...a.tagIds,x]})}return h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-line px-4 py-2.5",children:[h.jsx("input",{value:a.query,onChange:x=>i({...a,query:x.target.value}),placeholder:"キーワード検索(名前・説明・コミット・タグ) ⌘K","data-shortcut":"search","aria-keyshortcuts":"Meta+K Control+K /",onKeyDown:x=>{x.key==="Escape"&&(i({...a,query:""}),x.currentTarget.blur())},className:"min-w-[220px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-1.5 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"button",onClick:()=>i({...a,bookmarkedOnly:!a.bookmarkedOnly}),"aria-pressed":a.bookmarkedOnly,className:`rounded-md border px-2.5 py-1.5 text-sm transition-colors ${a.bookmarkedOnly?"border-amber-500/40 text-amber-400":"border-line text-fg-muted hover:text-fg"}`,children:"★ のみ"}),(m>0||a.includeHidden)&&h.jsxs("button",{type:"button",onClick:()=>i({...a,includeHidden:!a.includeHidden}),"aria-pressed":a.includeHidden,title:"「非表示」にしたrepoも一覧に出す",className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${a.includeHidden?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:["非表示を含める (",m,")"]}),r&&Object.keys(Wc).filter(x=>r[x]>0||a.work===x).map(x=>{const b=a.work===x;return h.jsxs("button",{type:"button",onClick:()=>i({...a,work:b?null:x}),"aria-pressed":b,title:Wc[x].title,className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${b?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:[Wc[x].label," ",h.jsx("span",{className:"font-mono text-xs",children:r[x]})]},x)}),cy.map(x=>{const b=Bg(a,x);return h.jsx("button",{type:"button",onClick:()=>i(oy(a,x)),"aria-pressed":b,title:x.title,className:`whitespace-nowrap rounded-md border px-2.5 py-1.5 text-sm transition-colors ${b?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:x.label},x.id)}),h.jsxs("button",{type:"button",onClick:()=>y(x=>!x),"aria-expanded":v,"aria-controls":"filter-detail",className:`rounded-md border px-2.5 py-1.5 text-sm transition-colors lg:hidden ${lb(a)?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:["絞り込み ",v?"▲":"▼"]}),h.jsxs("div",{id:"filter-detail",className:`${v?"flex":"hidden"} w-full flex-wrap items-center gap-2 lg:flex lg:w-auto`,children:[h.jsx("select",{value:a.minCommits,onChange:x=>i({...a,minCommits:Number(x.target.value)}),"aria-label":"活動量で絞り込む",className:lg,children:tb.map(x=>h.jsx("option",{value:x.value,children:x.label},x.value))}),h.jsx("select",{value:nb(a),onChange:x=>{const b=ms.find(w=>w.key===x.target.value)??ms[0];i({...a,pushedWithinDays:b.within,pushedOverDays:b.over})},"aria-label":"最終pushで絞り込む",className:lg,children:ms.map(x=>h.jsx("option",{value:x.key,children:x.label},x.key))})]}),d.length>0&&h.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:d.map(x=>h.jsx("button",{type:"button",onClick:()=>g(x.id),children:h.jsx(Ui,{tag:x,dimmed:!a.tagIds.includes(x.id)})},x.id))}),my(a)&&h.jsxs("button",{type:"button",onClick:()=>i({...Do,includeHidden:a.includeHidden}),className:"text-xs text-fg-faint hover:text-fg-muted",children:["クリア(",u,")"]})]})}function Yi(a,i){const u=a.indexOf("/");if(u<0)return a;const r=a.slice(0,u),o=a.slice(u+1);return i===null||r.toLowerCase()===i.toLowerCase()?o:a}const ib=["fill-line","fill-emerald-900","fill-emerald-700","fill-emerald-500","fill-emerald-300"];function ub(a,i){return a===0?0:1+Math.min(3,Math.floor(a/i*3))}const qn=11,ja=3,rs=188,ag=24;function sb(a,i=null){const u=Yi(a,i);return u.length<=ag?u:`${u.slice(0,ag-1)}…`}function rb({stats:a,days:i,now:u,maxRows:r=14,ownLogin:o=null}){const d=a.filter(x=>x.totalCommits>0).slice(0,r);if(d.length===0)return h.jsx("p",{className:"py-6 text-center text-sm text-fg-muted",children:"この期間の活動はありません"});const m=Ug(u,i),v=Math.max(...d.flatMap(x=>x.dailyCommits),1),y=i*(qn+ja),g=d.length*(qn+ja);return h.jsx("div",{className:"overflow-x-auto",children:h.jsxs("svg",{width:rs+y,height:g+20,role:"img","aria-label":"リポジトリ別の日次コミットヒートマップ",children:[d.map((x,b)=>h.jsxs("g",{children:[h.jsxs("text",{x:rs-10,y:b*(qn+ja)+qn-1,textAnchor:"end",className:"fill-fg-muted font-mono text-xs",children:[h.jsx("title",{children:x.repo.nameWithOwner}),sb(x.repo.nameWithOwner,o)]}),x.dailyCommits.map((w,N)=>h.jsx("rect",{x:rs+N*(qn+ja),y:b*(qn+ja),width:qn,height:qn,rx:2,className:ib[ub(w,v)],children:h.jsx("title",{children:`${x.repo.nameWithOwner} ${m[N]}: ${w} commits`})},N))]},x.repo.nameWithOwner)),m.map((x,b)=>new Date(`${x}T00:00:00Z`).getUTCDay()===1&&i<=90?h.jsx("text",{x:rs+b*(qn+ja),y:g+14,className:"fill-fg-faint font-mono text-xs",children:x.slice(5)},x):null)]})})}const cb=[7,30,90];function ob({value:a,onChange:i}){return h.jsx("div",{role:"tablist","aria-label":"集計期間",className:"inline-flex rounded-lg border border-line bg-panel-2 p-0.5",children:cb.map(u=>h.jsxs("button",{role:"tab","aria-selected":a===u,onClick:()=>i(u),className:`rounded-md px-3 py-1 font-mono text-sm transition-colors ${a===u?"bg-panel font-medium text-fg shadow-sm":"text-fg-muted hover:text-fg"}`,children:[u,"日"]},u))})}function fb({show:a,onChange:i,canPrivate:u}){return h.jsxs("label",{className:"flex cursor-pointer items-center gap-1.5 whitespace-nowrap text-xs text-fg-muted",children:[h.jsx("input",{type:"checkbox",checked:a,onChange:r=>i(r.target.checked),className:"accent-emerald-500"}),"private を表示"]})}function db(){return h.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true",className:"shrink-0",children:[h.jsx("circle",{cx:"12",cy:"12",r:"10.5",className:"stroke-emerald-500/25",strokeWidth:"1"}),h.jsx("circle",{cx:"12",cy:"12",r:"6",className:"stroke-emerald-500/20",strokeWidth:"1"}),h.jsx("circle",{cx:"12",cy:"12",r:"1.6",className:"fill-emerald-400"}),h.jsxs("g",{className:"rr-sweep",children:[h.jsx("path",{d:"M12 12 L12 1.5 A10.5 10.5 0 0 1 20.1 5.2 Z",className:"fill-emerald-400/12"}),h.jsx("line",{x1:"12",y1:"12",x2:"12",y2:"1.5",className:"stroke-emerald-400",strokeWidth:"1.3",strokeLinecap:"round"})]})]})}const hb=/(^|[\s(\[])#(\d+)\b/g;function mb(a,i){const u=[];let r=0;for(const o of a.matchAll(hb)){const d=o.index+o[1].length;d>r&&u.push({kind:"text",text:a.slice(r,d)}),u.push({kind:"ref",text:`#${o[2]}`,href:`${i}/issues/${o[2]}`}),r=d+1+o[2].length}return r<a.length&&u.push({kind:"text",text:a.slice(r)}),u.length>0?u:[{kind:"text",text:a}]}function gb(a){return a==="MERGED"?"text-violet-400":a==="OPEN"?"text-emerald-400":a==="CLOSED"?"text-rose-400":"text-fg-muted"}function pb(a){return a==="MERGED"?"マージ済み":a==="OPEN"?"未解決":a==="CLOSED"?"閉じた":""}function vb(a,i,u){return a.filter(r=>r.repo===i&&r.number===u).sort((r,o)=>r.at<o.at?1:r.at>o.at?-1:0)}let Da=null;async function yb(){const a=await fetch("/data/issues.json");if(!a.ok)return[];const i=await a.json();return Array.isArray(i)?i:[]}let ig=0;function To(){const a=Yn(),[i,u]=S.useState(Da??[]),[r,o]=S.useState(Da===null),[d,m]=S.useState(null);return S.useEffect(()=>{if(a>ig&&(Da=null,ig=a),Da!==null){u(Da);return}let v=!1;return yb().then(y=>{Da=y,v||(u(y),o(!1))}).catch(y=>{v||(u([]),o(!1),m(kg()))}),()=>{v=!0}},[a]),{items:i,loading:r,error:d}}function bb(){const a=Yn(),[i,u]=S.useState({});return S.useEffect(()=>{let r=!1;return fetch("/data/refs.json").then(o=>o.ok?o.json():{}).then(o=>{!r&&o&&typeof o=="object"&&!Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function xb(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/slack-links.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Mo(a){return a<=7?"fresh":a<=14?"aging":a<=30?"stale":a<=60?"cold1":a<=90?"cold2":"cold3"}const zo={fresh:"text-emerald-400",aging:"text-amber-400",stale:"text-rose-400",cold1:"text-slate-300",cold2:"text-slate-400",cold3:"text-fg-faint"},Vg={fresh:"bg-emerald-400",aging:"bg-amber-400",stale:"bg-rose-400",cold1:"bg-slate-300",cold2:"bg-slate-400",cold3:"bg-slate-500"};function Ro(a){return a===0?"today":`${a}日前`}function Es(a,i){const u=a.bookmarks.indexOf(i);u>=0?a.bookmarks.splice(u,1):a.bookmarks.push(i)}function Ns(a,i){return(a==null?void 0:a.bookmarks.includes(i))??!1}function Qg(a,i){const u=a.hidden.indexOf(i);u>=0?a.hidden.splice(u,1):a.hidden.push(i)}function ws(a,i){return(a==null?void 0:a.hidden.includes(i))??!1}function Sb(a,i,u,r){const o=u.trim();o===""||a.tags.defs.some(d=>d.id===i)||a.tags.defs.push({id:i,label:o,color:r})}function Fc(a,i,u){const r=a.tags.byRepo[i]??[],o=r.includes(u)?r.filter(d=>d!==u):[...r,u];o.length===0?delete a.tags.byRepo[i]:a.tags.byRepo[i]=o}function Uo(a,i){return(a==null?void 0:a.tags.byRepo[i])??[]}const ug="default",Eb=[{id:"backlog",name:"Backlog"},{id:"active",name:"Active"},{id:"review",name:"Review"},{id:"done",name:"Done"},{id:"dormant",name:"Dormant"}];function Kg(a,i){return a.boards.length>0?a.boards[0].id:(a.boards.push({id:ug,name:"Projects",columns:Eb.map(u=>({id:u.id,name:u.name,cardIds:[]})),cards:[],updatedAt:i}),ug)}function Gi(a,i){return a.boards.find(u=>u.id===i)}function Zg(a,i,u,r){const o=Gi(a,i);if(!o)return;const d=o.columns.find(m=>m.id===u);d&&(o.cards.some(m=>m.id===r.id)||(o.cards.push(r),d.cardIds.push(r.id),o.updatedAt=r.updatedAt))}function Nb(a,i,u,r,o){var v;const d=Gi(a,i);if(!d||d.cards.some(y=>y.repo===u))return!1;const m=(v=d.columns[0])==null?void 0:v.id;return m?(Zg(a,i,m,{id:r,repo:u,title:u.split("/")[1]??u,note:"",updatedAt:o}),!0):!1}function wb(a,i,u,r,o){const d=Gi(a,i);if(!d)return;const m=d.columns.find(y=>y.id===r);if(!m)return;for(const y of d.columns){const g=y.cardIds.indexOf(u);g>=0&&y.cardIds.splice(g,1)}const v=Math.max(0,Math.min(o,m.cardIds.length));m.cardIds.splice(v,0,u)}function Ab(a,i,u,r){const o=Gi(a,i);if(!o)return;const d=o.cards.find(m=>m.id===u);d&&Object.assign(d,r)}function jb(a,i,u){const r=Gi(a,i);if(r){r.cards=r.cards.filter(o=>o.id!==u);for(const o of r.columns){const d=o.cardIds.indexOf(u);d>=0&&o.cardIds.splice(d,1)}}}function Db(a){const i=new Map(a.cards.map(r=>[r.id,r])),u={};for(const r of a.columns)u[r.id]=r.cardIds.map(o=>i.get(o)).filter(o=>o!=null);return u}function Ob(a,i){for(const u of a.columns)if(u.cardIds.includes(i))return u.id;return null}function Cb(a,i){let u=Ob(a,i);if(!u&&a.columns.some(d=>d.id===i)&&(u=i),!u)return null;const r=a.columns.find(d=>d.id===u);if(!r)return null;const o=r.cardIds.indexOf(i);return{columnId:u,index:o<0?r.cardIds.length:o}}function Jg(a="id"){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${a}-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`}function $g({daily:a,width:i=96,height:u=22}){const r=Math.max(...a,1),o=i/a.length;return h.jsx("svg",{width:i,height:u,"aria-hidden":"true",className:"shrink-0",children:a.map((d,m)=>d>0?h.jsx("rect",{x:m*o,y:u-d/r*u,width:Math.max(o-.5,.5),height:d/r*u,rx:.5,className:"fill-emerald-400/85"},m):null)})}const sg=["#34d399","#60a5fa","#fbbf24","#f87171","#a78bfa","#22d3ee","#f472b6","#a3e635"];function _b(a){return sg[a%sg.length]}function Tb(){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`tag-${Math.random().toString(36).slice(2)}`}function Mb({repo:a}){const{data:i,mutate:u}=_t(),[r,o]=S.useState(!1),[d,m]=S.useState(""),v=(i==null?void 0:i.tags.defs)??[],y=Uo(i,a),g=y.map(b=>v.find(w=>w.id===b)).filter(b=>b!=null);function x(){const b=d.trim();if(b==="")return;const w=Tb(),N=_b(v.length);u(z=>{Sb(z,w,b,N),Fc(z,a,w)}),m("")}return h.jsxs("div",{children:[h.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[h.jsx("h3",{className:"font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"タグ"}),h.jsx("button",{type:"button",onClick:()=>o(b=>!b),className:"text-xs text-fg-muted hover:text-fg",children:r?"閉じる":"+ 編集"})]}),h.jsx("div",{className:"flex flex-wrap gap-1.5",children:g.length>0?g.map(b=>h.jsx(Ui,{tag:b,onRemove:()=>u(w=>Fc(w,a,b.id))},b.id)):h.jsx("span",{className:"text-xs text-fg-faint",children:"未設定"})}),r&&h.jsxs("div",{className:"mt-3 rounded-lg border border-line bg-panel-2 p-3",children:[v.length>0&&h.jsx("div",{className:"mb-3 flex flex-wrap gap-1.5",children:v.map(b=>{const w=y.includes(b.id);return h.jsx("button",{type:"button",onClick:()=>u(N=>Fc(N,a,b.id)),children:h.jsx(Ui,{tag:b,dimmed:!w})},b.id)})}),h.jsxs("div",{className:"flex gap-2",children:[h.jsx("input",{value:d,onChange:b=>m(b.target.value),onKeyDown:b=>{b.nativeEvent.isComposing||b.key==="Enter"&&(b.preventDefault(),x())},placeholder:"新しいタグ名",className:"min-w-0 flex-1 rounded-md border border-line-strong bg-panel px-2 py-1 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"button",onClick:x,className:"shrink-0 rounded-md border border-line-strong px-2.5 py-1 text-sm text-fg-muted hover:border-emerald-500/40 hover:text-fg",children:"追加"})]})]})]})}function Ic({children:a,className:i}){return h.jsx("span",{className:`rounded-md border border-line px-2 py-0.5 font-mono text-xs text-fg-muted ${i??""}`,children:a})}function Wg({stats:a,ownLogin:i=null}){var D;const{repo:u}=a,{data:r,mutate:o}=_t(),d=(r==null?void 0:r.notes[u.nameWithOwner])??"",m=Mo(a.daysSincePush),v=Ns(r,u.nameWithOwner),y=ws(r,u.nameWithOwner),g=((D=r==null?void 0:r.boards[0])==null?void 0:D.cards.some(O=>O.repo===u.nameWithOwner))??!1,{items:x}=To(),b=bb(),w=xb(),N=Hg(x,u.nameWithOwner,i);function z(){const O=new Date().toISOString();o(L=>{const Z=Kg(L,O);Nb(L,Z,u.nameWithOwner,Jg("card"),O)})}return h.jsxs("div",{className:"flex flex-col gap-5 p-5",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("h2",{className:"truncate font-mono text-lg font-semibold text-fg",children:Yi(u.nameWithOwner,i)}),h.jsx("p",{className:"mt-0.5 truncate font-mono text-xs text-fg-faint",children:u.nameWithOwner})]}),h.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[h.jsx("button",{type:"button",onClick:()=>o(O=>Es(O,u.nameWithOwner)),"aria-pressed":v,"aria-label":v?"Bookmark を外す":"Bookmark に追加",className:`rounded-md border px-2 py-1 text-sm transition-colors ${v?"border-amber-500/40 text-amber-400":"border-line text-fg-faint hover:text-fg-muted"}`,children:v?"★":"☆"}),h.jsx("button",{type:"button",onClick:z,disabled:g,className:`rounded-md border px-2 py-1 text-xs transition-colors ${g?"border-line text-fg-faint":"border-line text-fg-muted hover:border-emerald-500/40 hover:text-fg"}`,title:g?"すでにボードにあります":"この repo をボードの Backlog に追加",children:g?"✓ ボード":"+ ボード"}),h.jsx("button",{type:"button",onClick:()=>o(O=>Qg(O,u.nameWithOwner)),className:`rounded-md border px-2 py-1 text-xs transition-colors ${y?"border-line text-fg-muted hover:border-emerald-500/40 hover:text-fg":"border-line text-fg-muted hover:border-rose-500/40 hover:text-fg"}`,title:y?"一覧に戻す":"このrepoを一覧から外す(フィルターバーの「非表示を含める」で戻せます)",children:y?"再表示":"非表示"}),h.jsx("a",{href:u.url,target:"_blank",rel:"noreferrer",className:"rounded-md border border-line-strong px-2 py-1 font-mono text-xs text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:"GitHub ↗"})]})]}),h.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-2",children:[u.isPrivate&&h.jsx(Ic,{children:"private"}),u.primaryLanguage&&h.jsx(Ic,{children:u.primaryLanguage}),h.jsx(Ic,{className:zo[m],children:Ro(a.daysSincePush)})]})]}),h.jsx(Mb,{repo:u.nameWithOwner}),h.jsxs("div",{className:"flex items-end justify-between rounded-lg border border-line bg-panel-2 p-4",children:[h.jsxs("div",{children:[h.jsxs("div",{className:"font-mono text-3xl tabular-nums text-fg",children:[a.totalCommits,h.jsx("span",{className:"text-base text-fg-faint",children:"c"})]}),h.jsxs("div",{className:"mt-0.5 text-xs text-fg-muted",children:["直近",a.dailyCommits.length,"日"]})]}),h.jsx($g,{daily:a.dailyCommits,width:168,height:40})]}),(u.openPrCount>0||u.openIssueCount>0)&&h.jsxs("div",{className:"flex gap-2",children:[u.openPrCount>0&&h.jsxs("a",{href:`${u.url}/pulls`,target:"_blank",rel:"noreferrer",className:"flex-1 rounded-lg border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:["Open PR ",h.jsx("span",{className:"font-mono text-fg",children:u.openPrCount})]}),u.openIssueCount>0&&h.jsxs("a",{href:`${u.url}/issues`,target:"_blank",rel:"noreferrer",className:"flex-1 rounded-lg border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:["Open Issue ",h.jsx("span",{className:"font-mono text-fg",children:u.openIssueCount})]})]}),(N.awaitingReview.length>0||N.toReview.length>0)&&h.jsxs("div",{className:"flex flex-col gap-3",children:[N.awaitingReview.length>0&&h.jsx(rg,{title:"レビュー待ちの自分のPR",items:N.awaitingReview,slackLinks:w}),N.toReview.length>0&&h.jsx(rg,{title:"自分がレビューするPR",items:N.toReview,slackLinks:w})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"直近のコミット"}),h.jsx("ul",{className:"space-y-1.5",children:u.lastCommits.length>0?u.lastCommits.map((O,L)=>h.jsxs("li",{className:"flex gap-2.5 text-sm",children:[h.jsx("span",{className:"shrink-0 pt-0.5 font-mono text-xs text-fg-faint",children:O.committedDate.slice(5,10)}),h.jsx("span",{className:"min-w-0 break-words text-fg",children:mb(O.message.split(`
|
|
51
|
+
`)[0],u.url).map((Z,q)=>{if(Z.kind!=="ref")return h.jsx("span",{children:Z.text},q);const X=b[`${u.nameWithOwner}${Z.text}`],Q=pb(X);return h.jsx("a",{href:Z.href,target:"_blank",rel:"noreferrer",title:Q?`${Z.text} ${Q}`:Z.text,className:`font-mono hover:underline ${gb(X)}`,children:Z.text},q)})})]},L)):h.jsx("li",{className:"text-sm text-fg-muted",children:"コミット履歴なし"})})]}),h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:"次にやること"}),h.jsx("textarea",{value:d,onChange:O=>{const L=O.target.value;o(Z=>{Z.notes[u.nameWithOwner]=L})},rows:3,placeholder:"この repo の続きでやることを書いておく",className:"w-full resize-none rounded-lg border border-line-strong bg-panel-2 p-2.5 font-mono text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"})]})]})}function rg({title:a,items:i,slackLinks:u=[]}){return h.jsxs("div",{children:[h.jsx("h3",{className:"mb-2 font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase",children:a}),h.jsx("ul",{className:"space-y-1.5",children:i.map(r=>{const o=vb(u,r.repo,r.number);return h.jsxs("li",{className:"flex items-baseline gap-2 text-sm",children:[h.jsxs("a",{href:r.url,target:"_blank",rel:"noreferrer",className:"shrink-0 font-mono text-xs text-emerald-400 hover:underline",children:["#",r.number]}),h.jsx("span",{className:"min-w-0 truncate text-fg",children:r.title}),r.reviewDecision==="CHANGES_REQUESTED"&&h.jsx("span",{className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-amber-300",children:"要修正"}),o.length>0&&h.jsxs("a",{href:o[0].permalink,target:"_blank",rel:"noreferrer",title:`Slackで${o.length}件の発言。最新は#${o[0].channel}`,className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-fg-muted hover:text-fg",children:["Slack ",o.length]})]},r.number)})})]})}function zb({stats:a,selected:i,expanded:u,onSelect:r,index:o,menuOpen:d,onContextMenu:m,onMenuButton:v,ownLogin:y}){var Z;const{repo:g}=a,{data:x,mutate:b}=_t(),w=Mo(a.daysSincePush),N=(Z=g.lastCommits[0])==null?void 0:Z.message.split(`
|
|
52
|
+
`)[0],z=Ns(x,g.nameWithOwner),D=ws(x,g.nameWithOwner),L=Uo(x,g.nameWithOwner).map(q=>x==null?void 0:x.tags.defs.find(X=>X.id===q)).filter(q=>q!=null);return h.jsxs("div",{className:"rr-fade-up",style:{animationDelay:`${Math.min(o*18,280)}ms`},children:[h.jsxs("div",{onContextMenu:m,className:`flex items-stretch gap-1 rounded-lg border transition-colors ${i||u?"border-emerald-500/50 bg-emerald-400/[0.06]":"border-line bg-panel hover:bg-white/[0.025]"}`,children:[h.jsxs("button",{onClick:()=>r(g.nameWithOwner),"aria-pressed":i,"aria-expanded":u,className:"grid min-w-0 flex-1 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-3 rounded-l-lg px-3 py-2.5 text-left",children:[h.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${Vg[w]}`,style:a.daysSincePush===0?{boxShadow:"0 0 8px rgba(52,211,153,0.6)"}:void 0}),h.jsxs("div",{className:"min-w-0",children:[h.jsxs("div",{className:"flex items-baseline gap-2",children:[h.jsx("span",{className:"truncate font-mono text-sm font-medium text-fg",children:Yi(g.nameWithOwner,y)}),g.isPrivate&&h.jsx("span",{className:"shrink-0 rounded bg-white/5 px-1 font-mono text-xs text-fg-faint",children:"private"}),D&&h.jsx("span",{className:"shrink-0 rounded border border-line px-1 font-mono text-xs text-fg-muted",children:"非表示"}),g.primaryLanguage&&h.jsx("span",{className:"shrink-0 text-xs text-fg-faint",children:g.primaryLanguage})]}),h.jsx("p",{className:"mt-0.5 truncate text-xs text-fg-muted",children:N??g.description??"—"}),L.length>0&&h.jsx("div",{className:"mt-1 flex flex-wrap gap-1",children:L.map(q=>h.jsx(Ui,{tag:q},q.id))})]}),h.jsxs("div",{className:"flex items-center gap-3 sm:gap-4",children:[h.jsx("div",{className:"hidden sm:block",children:h.jsx($g,{daily:a.dailyCommits,width:88,height:22})}),h.jsxs("div",{className:"w-14 text-right",children:[h.jsxs("div",{className:"font-mono text-sm tabular-nums text-fg",children:[a.totalCommits,h.jsx("span",{className:"text-fg-faint",children:"c"})]}),h.jsx("div",{className:`text-xs ${zo[w]}`,children:Ro(a.daysSincePush)})]}),h.jsxs("div",{className:"hidden w-11 shrink-0 flex-col items-end gap-0.5 font-mono text-xs text-fg-faint sm:flex",children:[g.openPrCount>0&&h.jsxs("span",{children:["PR ",g.openPrCount]}),g.openIssueCount>0&&h.jsxs("span",{children:["I ",g.openIssueCount]})]}),h.jsx("svg",{viewBox:"0 0 12 12",width:"12",height:"12","aria-hidden":"true",className:`shrink-0 text-fg-faint transition-transform lg:hidden ${u?"rotate-180":""}`,children:h.jsx("path",{d:"M2 4.5 6 8.5 10 4.5",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]})]}),h.jsx("button",{type:"button",onClick:()=>b(q=>Es(q,g.nameWithOwner)),"aria-pressed":z,"aria-label":z?"Bookmark を外す":"Bookmark に追加",className:`flex shrink-0 items-center px-2.5 text-lg transition-colors ${z?"text-amber-400":"text-fg-faint hover:text-fg-muted"}`,children:z?"★":"☆"}),h.jsx("button",{type:"button",onClick:v,"aria-label":`${g.nameWithOwner}のメニュー`,"aria-haspopup":"menu","aria-expanded":d,className:"flex shrink-0 items-center rounded-r-lg px-2 text-fg-faint transition-colors hover:text-fg-muted",children:"⋯"})]}),u&&h.jsx("div",{className:"mt-1 rounded-lg border border-line bg-panel-2/60 lg:hidden",children:h.jsx(Wg,{stats:a,ownLogin:y})})]})}var Ll=Rg();function Fg(){const[a,i]=S.useState(null),u=S.useCallback(()=>i(null),[]),r=S.useCallback((d,m,v)=>{if(d.shiftKey)return;d.preventDefault();const y=document.activeElement instanceof HTMLElement?document.activeElement:null,g=d.clientX===0&&d.clientY===0?d.currentTarget.getBoundingClientRect():null;i({repo:m,url:v,x:g?g.left+16:d.clientX,y:g?g.bottom:d.clientY,anchor:null,returnFocus:y})},[]),o=S.useCallback((d,m,v)=>{d.stopPropagation();const y=d.currentTarget;i(g=>{if((g==null?void 0:g.anchor)===y)return null;const x=y.getBoundingClientRect();return{repo:m,url:v,x:x.left,y:x.bottom+2,anchor:y,returnFocus:y}})},[]);return{menu:a,openAtPointer:r,toggleFromButton:o,close:u}}const Pc="flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm text-fg-muted transition-colors hover:bg-white/[0.06] hover:text-fg focus:bg-white/[0.06] focus:text-fg focus:outline-none";function Ig({menu:a,onClose:i}){const{data:u,mutate:r}=_t(),o=S.useRef(null),[d,m]=S.useState({x:a.x,y:a.y}),v=Ns(u,a.repo),y=ws(u,a.repo);S.useLayoutEffect(()=>{var O;const N=o.current;if(!N)return;const{width:z,height:D}=N.getBoundingClientRect();m({x:Math.max(4,Math.min(a.x,window.innerWidth-z-4)),y:Math.max(4,Math.min(a.y,window.innerHeight-D-4))}),(O=N.querySelector("button, a"))==null||O.focus({preventScroll:!0})},[a]);function g(){i();const N=a.returnFocus;N!=null&&N.isConnected&&N.focus({preventScroll:!0})}S.useEffect(()=>{function N(z){var O,L;const D=z.target;(O=o.current)!=null&&O.contains(D)||(L=a.anchor)!=null&&L.contains(D)||i()}return document.addEventListener("pointerdown",N),window.addEventListener("scroll",i,!0),()=>{document.removeEventListener("pointerdown",N),window.removeEventListener("scroll",i,!0)}},[a,i]);function x(N){var z,D;if(N.key==="Escape"){N.preventDefault(),g();return}if(N.key==="ArrowDown"||N.key==="ArrowUp"){const O=[...((z=o.current)==null?void 0:z.querySelectorAll('[role="menuitem"]'))??[]],L=O.indexOf(document.activeElement),Z=N.key==="ArrowDown"?(L+1)%O.length:(L-1+O.length)%O.length;(D=O[Z])==null||D.focus(),N.preventDefault()}}function b(N){var D,O;const z=N.relatedTarget;!z||(D=o.current)!=null&&D.contains(z)||(O=a.anchor)!=null&&O.contains(z)||i()}function w(N){r(N),g()}return Ll.createPortal(h.jsxs("div",{ref:o,role:"menu","aria-label":`${a.repo}の操作`,style:{position:"fixed",left:d.x,top:d.y,backdropFilter:"blur(12px)"},className:"z-50 min-w-44 overflow-hidden rounded-lg border border-line bg-panel/85 py-1 shadow-xl",onContextMenu:N=>N.preventDefault(),onKeyDown:x,onBlur:b,children:[h.jsx("div",{"aria-hidden":"true",className:"truncate px-3 py-1 font-mono text-xs text-fg-faint",children:a.repo}),h.jsxs("button",{type:"button",role:"menuitem",className:Pc,onClick:()=>w(N=>Es(N,a.repo)),children:[h.jsx("span",{className:v?"text-amber-400":"",children:v?"★":"☆"}),v?"Bookmarkを外す":"Bookmarkに追加"]}),h.jsxs("button",{type:"button",role:"menuitem",className:Pc,onClick:()=>w(N=>Qg(N,a.repo)),children:[h.jsx("span",{"aria-hidden":"true",children:y?"👁":"⊘"}),y?"一覧に戻す":"一覧から非表示にする"]}),h.jsxs("a",{role:"menuitem",className:Pc,href:a.url,target:"_blank",rel:"noreferrer","aria-label":"GitHubで開く(新しいタブ)",onClick:i,children:[h.jsx("span",{"aria-hidden":"true",children:"↗"}),"GitHubで開く"]})]}),document.body)}const Rb=new Set(["INPUT","TEXTAREA","SELECT"]);function Ub(a){const i=a.metaKey||a.ctrlKey;return i&&!a.altKey&&!a.shiftKey&&a.key.toLowerCase()==="k"||!i&&!a.altKey&&a.key==="/"&&!Rb.has(a.targetTag)?"focus-search":a.key==="Escape"&&a.targetIsSearch?"clear-search":null}function Hb(a){const i=a.target instanceof Element?a.target:null;return{key:a.key,metaKey:a.metaKey,ctrlKey:a.ctrlKey,altKey:a.altKey,shiftKey:a.shiftKey,targetTag:(i==null?void 0:i.tagName)??"BODY",targetIsSearch:(i==null?void 0:i.getAttribute("data-shortcut"))==="search"}}function Bb(){return document.querySelector('input[data-shortcut="search"]')}function Lb(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/events.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function kb(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/jira.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function qb(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/confluence.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}function Yb(){const a=Yn(),[i,u]=S.useState([]),[r,o]=S.useState(!0);return S.useEffect(()=>{let d=!1;return fetch("/data/confluence-pages.json").then(m=>m.ok?m.json():[]).then(m=>{d||(Array.isArray(m)&&u(m),o(!1))}).catch(()=>{d||o(!1)}),()=>{d=!0}},[a]),{pages:i,loading:r}}const Pg={all:"すべて",watched:"見張り",others:"他人が更新",drift:"要確認"},Gb=Object.keys(Pg),Xb="未設定",Hi=a=>a===""?Xb:a;function Vb(a,i){const u=new Map;for(const r of i){const o=u.get(r.pageId)??[];o.push(r),u.set(r.pageId,o)}return[...a].sort((r,o)=>r.lastModified<o.lastModified?1:r.lastModified>o.lastModified?-1:0).map(r=>{const o=u.get(r.id)??[];return{...r,drifts:o,daysBehind:o.reduce((d,m)=>Math.max(d,m.daysBehind),0)}})}const ep=a=>a.some(i=>i.byMe!==void 0),tp=a=>a.some(i=>i.watched===!0);function Qb(a,i){const u=i.space!==null&&a.some(o=>o.space===i.space)?i.space:null,r=i.only==="others"&&!ep(a)||i.only==="watched"&&!tp(a);return{space:u,query:i.query,only:r?"all":i.only}}function Kb(a,i){const u=i.query.trim().toLowerCase();return a.filter(r=>!(i.space!==null&&r.space!==i.space||i.only==="others"&&r.byMe!==!1||i.only==="watched"&&r.watched!==!0||i.only==="drift"&&r.drifts.length===0||u&&!r.title.toLowerCase().includes(u)&&!Hi(r.space).toLowerCase().includes(u)))}function Zb(a){const i=new Map;for(const u of a)i.set(u.space,(i.get(u.space)??0)+1);return[...i].map(([u,r])=>({space:u,count:r})).sort((u,r)=>r.count-u.count||Hi(u.space).localeCompare(Hi(r.space)))}function Jb({drifts:a}){const{pages:i,loading:u}=Yb(),[r,o]=S.useState(""),[d,m]=S.useState(null),[v,y]=S.useState("all"),g=S.useMemo(()=>Vb(i,a),[i,a]),x=S.useMemo(()=>Zb(g),[g]),b=S.useMemo(()=>ep(g),[g]),w=S.useMemo(()=>tp(g),[g]),N=S.useMemo(()=>Qb(g,{space:d,query:r,only:v}),[g,d,r,v]),z=S.useMemo(()=>Kb(g,N),[g,N]);return u?h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"}):g.length===0?h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["表示できるWikiのページがありません。",h.jsx("br",{}),"Atlassianの設定を入れて同期すると出ます。手順はREADMEの「Jira / Confluenceを見る」にあります。"]}):h.jsxs("div",{className:"mx-auto flex h-full max-w-4xl flex-col gap-4 overflow-y-auto p-5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",role:"search",children:[h.jsx("input",{type:"search","aria-label":"Wikiのページをタイトル・スペースで検索",value:r,onChange:D=>o(D.target.value),placeholder:"Wikiのページをタイトル・スペースで検索","data-shortcut":"search",className:"min-w-[240px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("div",{className:"flex overflow-hidden rounded-lg border border-line",children:Gb.filter(D=>(D!=="others"||b)&&(D!=="watched"||w)).map(D=>h.jsx("button",{type:"button",onClick:()=>y(D),"aria-pressed":N.only===D,className:`px-2.5 py-1.5 text-xs transition-colors ${N.only===D?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:Pg[D]},D))})]}),x.length>1&&h.jsx("div",{className:"flex flex-wrap gap-1",role:"group","aria-label":"スペースで絞る",children:x.map(D=>{const O=N.space===D.space;return h.jsxs("button",{type:"button",onClick:()=>m(O?null:D.space),"aria-pressed":O,className:`rounded-md border px-2 py-0.5 font-mono text-xs transition-colors ${O?"border-emerald-500/60 bg-emerald-400/10 font-medium text-emerald-300":"border-line-strong text-fg-muted hover:text-fg"}`,children:[Hi(D.space)," ",h.jsx("span",{className:"text-fg-faint",children:D.count})]},D.space)})}),h.jsxs("p",{className:"font-mono text-xs text-fg-faint",children:[z.length,"件",z.length!==g.length?` / ${g.length}件`:""]}),z.length===0?h.jsx("p",{className:"py-8 text-center text-sm text-fg-muted",children:"条件に合うページがありません"}):h.jsx("ul",{className:"divide-y divide-line/60 rounded-lg border border-line bg-panel",children:z.map(D=>h.jsx("li",{className:"px-4 py-2.5",children:h.jsxs("a",{href:D.url,target:"_blank",rel:"noreferrer",className:"block hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:"font-mono text-amber-400",children:Hi(D.space)}),D.byMe===!1&&h.jsx("span",{className:"text-fg-muted",children:"他人が更新"}),D.drifts.length>0&&h.jsxs("span",{className:"rounded bg-amber-400/15 px-1 font-mono text-amber-300",title:D.drifts.map(O=>O.repo).join(", "),children:["要確認",D.daysBehind,"日"]}),h.jsx("span",{className:"ml-auto shrink-0 font-mono text-fg-faint",children:D.lastModified.slice(0,10)})]}),h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:D.title})]})},D.id))})]})}const $b=3e4;function Wb(){S.useEffect(()=>{let a=null,i=!1;const u=async()=>{try{const o=await fetch("/data/meta.json",{cache:"no-store"});if(!o.ok)return;const d=await o.json();if(!d.lastSyncAt||i)return;a===null?a=d.lastSyncAt:d.lastSyncAt!==a&&(a=d.lastSyncAt,Ny())}catch{}};u();const r=setInterval(u,$b);return()=>{i=!0,clearInterval(r)}},[])}function Ho(a,i){return i.readIds.includes(a.id)?!1:!i.readAt||a.at>i.readAt}function Fb(a,i){return a.filter(u=>Ho(u,i))}function Ib(a,i,u){const r=new Map(i.map(o=>[o.id,o.at]));return a.filter(o=>{const d=r.get(o);return d===void 0?!1:!u||d>u})}function Pb(a){return a.source==="wiki"?`wiki:${a.id.split(":")[1]??a.title}`:a.source==="slack"?a.id:`${a.repo}#${a.number}`}function ex(a){const i=new Map;for(const u of a){const r=Pb(u);i.set(r,[...i.get(r)??[],u])}return[...i.values()].map(u=>{const r=[...u].sort((o,d)=>o.at<d.at?1:o.at>d.at?-1:0);return{...r[0],members:r}})}function eo(a,i){return a.members.some(u=>Ho(u,i))}function Ta(a){const i=a.actor??"誰か";switch(a.kind){case"changes_requested":return`${i}が要修正`;case"approved":return`${i}が承認`;case"reviewed":return`${i}がレビューでコメント`;case"commented":return`${i}がコメント`;case"review_update":return`${i}が更新(レビュー中)`;case"wiki_updated":return"Confluenceのページが更新";case"wiki_added":return"Confluenceにページが追加";case"slack_mention":return`${i}があなたに言及`;case"review_requested":return`レビュー依頼(${i}から)`;case"addressed":return"対応済み、再レビュー待ち";case"closed":return"閉じられた(マージかクローズ)"}}function tx(a){return a.source==="slack"?{title:Ta(a),body:`#${a.repo}`}:a.source==="wiki"?{title:`${a.repo} ${Ta(a)}`,body:a.title}:{title:`${a.repo.split("/")[1]??a.repo} #${a.number} ${Ta(a)}`,body:a.title}}function nx(a,i){return a.source==="slack"?`#${a.repo}`:a.source==="wiki"?a.repo:`${i} #${a.number}`}const lx={review_requested:"blocking",review_update:"blocking",slack_mention:"blocking",changes_requested:"yours",commented:"yours",reviewed:"yours",approved:"fyi",addressed:"fyi",closed:"fyi",wiki_updated:"wiki",wiki_added:"wiki"},ho=["blocking","yours","wiki","fyi"],ax={blocking:"他人を待たせている",yours:"あなたの番",wiki:"Wikiの更新",fyi:"知らせ"};function ix(a){if(!a)return!1;const i=a.toLowerCase();return i.endsWith("[bot]")||/^(dependabot|renovate|copilot|github-actions)/.test(i)}function mo(a){const i=lx[a.kind]??"fyi";return i==="blocking"&&ix(a.actor)?"fyi":i}function ux(a,i){if(!i)return!1;const u=a.indexOf("/");return u<0?!1:a.slice(0,u).toLowerCase()!==i.toLowerCase()}function go(a,i){return a.source==="wiki"||a.source==="slack"||ux(a.repo,i)}function sx(a,i=null){return[...a].sort((u,r)=>{const o=ho.indexOf(mo(u))-ho.indexOf(mo(r));if(o!==0)return o;const d=Number(go(r,i))-Number(go(u,i));return d!==0?d:u.at<r.at?1:u.at>r.at?-1:0})}function rx(a,i=null){const u=sx(a,i);return ho.map(r=>({group:r,items:u.filter(o=>mo(o)===r)})).filter(r=>r.items.length>0)}function cx(a,i){return a.filter(u=>!i||u.at>i).reduce((u,r)=>u+r.count,0)}function ox(){const a=Yn(),[i,u]=S.useState([]);return S.useEffect(()=>{let r=!1;return fetch("/data/skipped.json").then(o=>o.ok?o.json():[]).then(o=>{!r&&Array.isArray(o)&&u(o)}).catch(()=>{}),()=>{r=!0}},[a]),i}const fx=[];function dx(){return h.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.4","aria-hidden":"true",children:[h.jsx("path",{d:"M4 6.5a4 4 0 0 1 8 0c0 3 .8 4 1.5 4.5h-11C3.2 10.5 4 9.5 4 6.5Z",strokeLinejoin:"round"}),h.jsx("path",{d:"M6.5 13a1.6 1.6 0 0 0 3 0",strokeLinecap:"round"})]})}function hx({events:a,login:i=null}){const{data:u,mutate:r}=_t(),o=(u==null?void 0:u.inboxReadAt)??null,d=(u==null?void 0:u.inboxReadIds)??fx,m=S.useMemo(()=>({readAt:o,readIds:d}),[o,d]),v=(u==null?void 0:u.notify)??Bl,[y,g]=S.useState(!1),[x,b]=S.useState(!1),w=cx(ox(),o),N=((u==null?void 0:u.inboxOrgOnly)??!0)&&i!==null,z=S.useMemo(()=>{const ne=ex(a);return N?ne.filter(F=>go(F,i)):ne},[a,N,i]),D=S.useMemo(()=>z.filter(ne=>eo(ne,m)),[z,m]),O=x?z:D,[L,Z]=S.useState(!1),[q,X]=S.useState(()=>typeof Notification>"u"?"unsupported":Notification.permission),Q=S.useRef(null),$=S.useRef(null),[V,ae]=S.useState({x:0,y:0}),de=S.useRef(null);S.useEffect(()=>{if(de.current===null){de.current=new Set(a.map(F=>F.id));return}if(q!=="granted")return;const ne=a.filter(F=>{var se;return!((se=de.current)!=null&&se.has(F.id))});if(ne.length!==0&&Ty(v,new Date,(u==null?void 0:u.lastNotifiedAt)??null)){for(const F of ne){de.current.add(F.id);const{title:se,body:R}=tx(F),G=new Notification(se,{body:R,tag:F.id});G.onclick=()=>window.open(F.url,"_blank","noreferrer")}r(F=>{F.lastNotifiedAt=new Date().toISOString()})}},[a,q,v,u==null?void 0:u.lastNotifiedAt,r]),S.useLayoutEffect(()=>{if(!L||!Q.current||!$.current)return;const ne=Q.current.getBoundingClientRect(),F=$.current.getBoundingClientRect().width;ae({x:Math.max(8,Math.min(ne.right-F,window.innerWidth-F-8)),y:ne.bottom+6})},[L]),S.useEffect(()=>{if(!L)return;function ne(se){var G,le;const R=se.target;(G=$.current)!=null&&G.contains(R)||(le=Q.current)!=null&&le.contains(R)||Z(!1)}function F(se){se.key==="Escape"&&Z(!1)}return document.addEventListener("pointerdown",ne),document.addEventListener("keydown",F),()=>{document.removeEventListener("pointerdown",ne),document.removeEventListener("keydown",F)}},[L]);function me(){var F;const ne=(F=a[0])==null?void 0:F.at;ne&&r(se=>{se.inboxReadAt=ne,se.inboxReadIds=[]})}function fe(ne){eo(ne,m)&&r(F=>{const se=Ib(F.inboxReadIds??[],a,F.inboxReadAt??null),R=ne.members.filter(G=>Ho(G,{readAt:F.inboxReadAt??null,readIds:se})).map(G=>G.id);F.inboxReadIds=[...se,...R.filter(G=>!se.includes(G))]})}async function xe(){typeof Notification>"u"||X(await Notification.requestPermission())}return h.jsxs(h.Fragment,{children:[h.jsxs("button",{ref:Q,type:"button",onClick:()=>Z(ne=>!ne),"aria-haspopup":"dialog","aria-expanded":L,"aria-label":D.length>0?`受信箱。未読${D.length}件`:"受信箱",title:"自分のPRに付いたレビュー、レビュー依頼、対応済みの再レビュー待ちなど",className:"relative flex items-center gap-1 rounded-md border border-line-strong px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:[h.jsx(dx,{}),"受信箱",D.length>0&&h.jsx("span",{"data-testid":"inbox-count",className:"rounded bg-rose-400/15 px-1 font-mono text-xs text-rose-300",children:D.length})]}),L&&Ll.createPortal(h.jsxs("div",{ref:$,role:"dialog","aria-label":"受信箱",style:{position:"fixed",left:V.x,top:V.y,backdropFilter:"blur(12px)"},className:"z-50 flex max-h-[calc(100vh-5rem)] w-[min(28rem,calc(100vw-1rem))] flex-col overflow-y-auto rounded-lg border border-line bg-panel/85 shadow-xl",children:[h.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-line px-3 py-2",children:[h.jsxs("span",{className:"flex items-baseline gap-2 text-sm text-fg",children:["受信箱",h.jsxs("span",{className:"font-mono text-xs text-fg-muted",children:["未読",D.length]}),w>0&&h.jsxs("span",{title:"変化はあったが、あなたの手は要らないと判断したものです",className:"font-mono text-xs text-fg-faint",children:["見送り",w]})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[q==="default"&&h.jsx("button",{type:"button",onClick:()=>void xe(),className:"text-xs text-fg-muted hover:text-fg",children:"通知を許可"}),h.jsx("button",{type:"button",onClick:()=>g(ne=>!ne),"aria-expanded":y,className:"text-xs text-fg-muted hover:text-fg",children:"知らせ方"}),i!==null&&h.jsx("button",{type:"button",onClick:()=>r(ne=>{ne.inboxOrgOnly=!(ne.inboxOrgOnly??!0)}),"aria-pressed":N,title:"組織のrepoだけを出す。個人repoの出来事は隠す(ConfluenceとSlackは残る)",className:`text-xs hover:text-fg ${N?"text-fg":"text-fg-muted"}`,children:"組織だけ"}),h.jsx("button",{type:"button",onClick:()=>b(ne=>!ne),"aria-pressed":x,title:"読んだものも含めて振り返る",className:`text-xs hover:text-fg ${x?"text-fg":"text-fg-muted"}`,children:"履歴"}),D.length>0&&h.jsx("button",{type:"button",onClick:me,className:"text-xs text-fg-muted hover:text-fg",children:"すべて既読"})]})]}),y&&h.jsx(gx,{value:v,onChange:ne=>r(F=>{F.notify=ne})}),h.jsxs("ul",{children:[O.length===0&&h.jsx("li",{className:"px-3 py-6 text-center text-sm text-fg-muted",children:a.length>0?"未読はありません。読んだものは「履歴」で見られます":w>0?`あなたの手が要るものはありません。${w}件の変化は知らせずに置きました`:"まだ何も届いていません。`--watch`で開いておくと、同期のたびに自分に起きたことが溜まります"}),rx(O,i).flatMap(ne=>[h.jsxs("li",{className:"flex items-baseline gap-2 border-b border-line/60 bg-panel-2/60 px-3 py-1 font-mono text-xs text-fg-faint",children:[h.jsx("span",{children:ax[ne.group]}),h.jsx("span",{children:ne.items.length})]},`g-${ne.group}`),...ne.items.map(F=>{const se=eo(F,m);return h.jsxs("li",{"data-testid":"event",className:`flex items-start gap-2 border-b border-line/60 px-3 py-2 last:border-b-0 ${se?"":"opacity-70"}`,children:[h.jsxs("a",{href:F.url,target:"_blank",rel:"noreferrer",onClick:()=>fe(F),className:"block min-w-0 flex-1 hover:text-fg",children:[h.jsxs("div",{className:"flex items-baseline gap-2 text-xs",children:[h.jsx("span",{className:`min-w-0 max-w-[60%] truncate font-mono ${se?"text-emerald-400":"text-fg-faint"}`,children:nx(F,Yi(F.repo,i))}),h.jsx("span",{className:"min-w-0 flex-1 truncate text-fg-muted",children:Ta(F)}),F.members.length>1&&h.jsxs("span",{className:"shrink-0 font-mono text-fg-faint",children:["ほか",F.members.length-1]}),h.jsx("span",{className:"shrink-0 font-mono text-fg-faint",children:F.at.slice(5,16).replace("T"," ")})]}),F.title!==""&&h.jsx("div",{className:"mt-0.5 truncate text-sm text-fg",children:F.title})]}),se&&h.jsx("button",{type:"button",onClick:()=>fe(F),"aria-label":`既読にする: ${F.title||Ta(F)}`,title:"既読にする",className:"shrink-0 rounded border border-line-strong px-1.5 text-xs text-fg-muted hover:text-fg",children:"既読"})]},F.id)})])]})]}),document.body)]})}const mx=["日","月","火","水","木","金","土"];function gx({value:a,onChange:i}){const u=o=>i({...a,...o}),r=o=>u({weekdays:a.weekdays.includes(o)?a.weekdays.filter(d=>d!==o):[...a.weekdays,o].sort()});return h.jsxs("div",{className:"border-b border-line px-3 py-2 text-xs",children:[h.jsx("p",{className:"mb-2 text-fg-muted",children:My(a)}),h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"出し方"}),h.jsxs("select",{value:a.mode,onChange:o=>u({mode:o.target.value}),"aria-label":"通知の出し方",className:"rounded border border-line-strong bg-panel-2 px-1 py-0.5 text-xs text-fg",children:[h.jsx("option",{value:"always",children:"届いたとき"}),h.jsx("option",{value:"digest",children:"決まった時刻にまとめて"})]})]}),a.mode==="digest"&&h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"時刻"}),h.jsx("input",{value:a.times.join(" "),onChange:o=>u({times:o.target.value.split(/[\s,]+/).filter(Boolean)}),"aria-label":"まとめて知らせる時刻",placeholder:"11:00 15:00 18:30",className:"min-w-0 flex-1 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"})]}),h.jsxs("div",{className:"mb-2 flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"時間帯"}),h.jsx("input",{type:"number",min:0,max:24,value:a.fromHour,onChange:o=>u({fromHour:Number(o.target.value)}),"aria-label":"知らせ始める時刻",className:"w-14 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"}),h.jsx("span",{className:"text-fg-faint",children:"時から"}),h.jsx("input",{type:"number",min:0,max:24,value:a.toHour,onChange:o=>u({toHour:Number(o.target.value)}),"aria-label":"知らせ終える時刻",className:"w-14 rounded border border-line-strong bg-panel-2 px-1 py-0.5 font-mono text-xs text-fg"}),h.jsx("span",{className:"text-fg-faint",children:"時まで"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"w-14 shrink-0 text-fg-faint",children:"曜日"}),h.jsx("div",{className:"flex flex-wrap gap-1",children:mx.map((o,d)=>h.jsx("button",{type:"button",onClick:()=>r(d),"aria-pressed":a.weekdays.includes(d),className:`rounded border px-1.5 py-0.5 text-xs ${a.weekdays.includes(d)?"border-line-strong text-fg":"border-line text-fg-faint"}`,children:o},d))})]})]})}const hl="px-3 py-2 text-left font-mono text-xs font-semibold tracking-wider text-fg-faint uppercase";function px({stats:a,selectedRepo:i,onSelect:u,ownLogin:r}){const{data:o,mutate:d}=_t(),{menu:m,openAtPointer:v,toggleFromButton:y,close:g}=Fg();return a.length===0?h.jsx("p",{className:"py-10 text-center text-sm text-fg-muted",children:"該当するリポジトリがありません"}):h.jsxs("div",{className:"overflow-x-auto",children:[h.jsxs("table",{className:"w-full border-collapse text-sm",children:[h.jsx("thead",{children:h.jsxs("tr",{className:"border-b border-line",children:[h.jsx("th",{className:hl,"aria-label":"bookmark"}),h.jsx("th",{className:hl,children:"repo"}),h.jsx("th",{className:hl,children:"言語"}),h.jsx("th",{className:hl,children:"タグ"}),h.jsx("th",{className:`${hl} text-right`,children:"commits"}),h.jsx("th",{className:`${hl} text-right`,children:"最終push"}),h.jsx("th",{className:`${hl} text-right`,children:"PR/I"}),h.jsx("th",{className:hl,"aria-label":"menu"})]})}),h.jsx("tbody",{children:a.map(x=>{const b=x.repo.nameWithOwner,w=Mo(x.daysSincePush),N=Ns(o,b),z=ws(o,b),D=Uo(o,b).map(L=>o==null?void 0:o.tags.defs.find(Z=>Z.id===L)).filter(L=>L!=null),O=i===b;return h.jsxs("tr",{onClick:()=>u(b),onContextMenu:L=>v(L,b,x.repo.url),"aria-current":O?"true":void 0,className:`cursor-pointer border-b border-line/60 ${O?"bg-emerald-400/[0.06]":"hover:bg-white/[0.025]"}`,children:[h.jsx("td",{className:"px-3 py-2",children:h.jsx("button",{type:"button",onClick:L=>{L.stopPropagation(),d(Z=>Es(Z,b))},"aria-label":N?"Bookmark を外す":"Bookmark に追加",className:N?"text-amber-400":"text-fg-faint hover:text-fg-muted",children:N?"★":"☆"})}),h.jsx("td",{className:"px-3 py-2",children:h.jsxs("button",{type:"button",onClick:L=>{L.stopPropagation(),u(b)},className:"flex items-center gap-2 text-left",children:[h.jsx("span",{className:`h-2 w-2 shrink-0 rounded-full ${Vg[w]}`}),h.jsx("span",{className:"font-mono text-fg",children:Yi(b,r)}),x.repo.isPrivate&&h.jsx("span",{className:"rounded bg-white/5 px-1 font-mono text-xs text-fg-faint",children:"private"}),z&&h.jsx("span",{className:"rounded border border-line px-1 font-mono text-xs text-fg-muted",children:"非表示"})]})}),h.jsx("td",{className:"px-3 py-2 text-fg-muted",children:x.repo.primaryLanguage??"—"}),h.jsx("td",{className:"px-3 py-2",children:h.jsx("div",{className:"flex flex-wrap gap-1",children:D.map(L=>h.jsx(Ui,{tag:L},L.id))})}),h.jsx("td",{className:"px-3 py-2 text-right font-mono tabular-nums text-fg",children:x.totalCommits}),h.jsx("td",{className:`px-3 py-2 text-right ${zo[w]}`,children:Ro(x.daysSincePush)}),h.jsx("td",{className:"px-3 py-2 text-right font-mono text-xs text-fg-faint",children:x.repo.openPrCount>0||x.repo.openIssueCount>0?`${x.repo.openPrCount}/${x.repo.openIssueCount}`:"—"}),h.jsx("td",{className:"px-1 py-2 text-right",children:h.jsx("button",{type:"button",onClick:L=>y(L,b,x.repo.url),"aria-label":`${b}のメニュー`,"aria-haspopup":"menu","aria-expanded":(m==null?void 0:m.repo)===b,className:"rounded px-1.5 text-fg-faint hover:text-fg-muted",children:"⋯"})})]},b)})})]}),m&&h.jsx(Ig,{menu:m,onClose:g})]})}function vx(){const{saveStatus:a,loadError:i}=_t();return i?h.jsx("span",{className:"rounded-md border border-rose-500/40 bg-rose-500/10 px-2 py-0.5 text-xs text-rose-300",title:`ローカル保存が使えません: ${i}`,children:"保存無効"}):a==="error"?h.jsx("span",{className:"rounded-md border border-rose-500/40 bg-rose-500/10 px-2 py-0.5 text-xs text-rose-300",children:"保存に失敗"}):a==="saving"?h.jsx("span",{className:"text-xs text-fg-faint",children:"保存中…"}):a==="saved"?h.jsx("span",{className:"text-xs text-fg-faint",children:"保存済み"}):null}function yx(){const{storage:a,connectFolder:i,reconnect:u,disconnect:r}=_t(),o=a.error?h.jsx("span",{className:"text-xs text-rose-300",title:a.error,children:"⚠ 同期エラー"}):null,d=h.jsx("button",{type:"button",onClick:()=>void r(),className:"text-xs text-fg-faint hover:text-fg-muted",title:"共有をやめて、このブラウザの中だけに保存する(今の内容はこのブラウザへ書き戻す)",children:"共有をやめる"});return a.kind==="filesystem"?a.needsReconnect||a.error?h.jsxs("div",{className:"flex items-center gap-1.5",children:[o,h.jsx("button",{type:"button",onClick:()=>void u(),className:"rounded-md border border-amber-500/40 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-300",title:"フォルダへの書き込み許可が切れた。もう一度許可すると共有が続く",children:"共有を再開"}),d]}):h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsxs("span",{className:"rounded-md border border-emerald-500/30 bg-emerald-500/10 px-2 py-0.5 text-xs text-emerald-300",title:`Bookmark・タグ・メモを「${a.dirName}」に保存している。同じフォルダを選んだ他のPCでも同じ内容が見える`,children:["📁 ",a.dirName,"で共有中"]}),d]}):a.needsReconnect?h.jsxs("button",{type:"button",onClick:()=>void u(),className:"rounded-md border border-amber-500/40 bg-amber-500/10 px-2 py-0.5 text-xs text-amber-300",title:`前回「${a.dirName}」で共有していた。フォルダへの許可をもう一度出すと続きから使える`,children:["⚠ 「",a.dirName,"」の共有を再開"]}):a.supported?h.jsxs("div",{className:"flex items-center gap-1.5",children:[o,h.jsx("button",{type:"button",onClick:()=>void i(),className:"rounded-md border border-line-strong px-2 py-0.5 text-xs text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",title:"Bookmark・タグ・メモは今このブラウザの中にだけある。OneDrive / iCloud / Dropboxの中のフォルダを選ぶと、そこに保存され、同じフォルダを選んだ他のPCでも同じ内容が見える",children:"☁ メモを他のPCと共有"})]}):h.jsx("span",{className:"text-xs text-fg-faint",title:"Bookmark・タグ・メモはこのブラウザの中にだけ保存される。他のPCと共有するにはChromeかEdgeが要る(フォルダを選ぶ機能が無い)",children:"このブラウザに保存"})}function bx(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return S.useMemo(()=>r=>{i.forEach(o=>o(r))},i)}const As=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Ha(a){const i=Object.prototype.toString.call(a);return i==="[object Window]"||i==="[object global]"}function Bo(a){return"nodeType"in a}function Tt(a){var i,u;return a?Ha(a)?a:Bo(a)&&(i=(u=a.ownerDocument)==null?void 0:u.defaultView)!=null?i:window:window}function Lo(a){const{Document:i}=Tt(a);return a instanceof i}function Xi(a){return Ha(a)?!1:a instanceof Tt(a).HTMLElement}function np(a){return a instanceof Tt(a).SVGElement}function Ba(a){return a?Ha(a)?a.document:Bo(a)?Lo(a)?a:Xi(a)||np(a)?a.ownerDocument:document:document:document}const vn=As?S.useLayoutEffect:S.useEffect;function ko(a){const i=S.useRef(a);return vn(()=>{i.current=a}),S.useCallback(function(){for(var u=arguments.length,r=new Array(u),o=0;o<u;o++)r[o]=arguments[o];return i.current==null?void 0:i.current(...r)},[])}function xx(){const a=S.useRef(null),i=S.useCallback((r,o)=>{a.current=setInterval(r,o)},[]),u=S.useCallback(()=>{a.current!==null&&(clearInterval(a.current),a.current=null)},[]);return[i,u]}function Bi(a,i){i===void 0&&(i=[a]);const u=S.useRef(a);return vn(()=>{u.current!==a&&(u.current=a)},i),u}function Vi(a,i){const u=S.useRef();return S.useMemo(()=>{const r=a(u.current);return u.current=r,r},[...i])}function vs(a){const i=ko(a),u=S.useRef(null),r=S.useCallback(o=>{o!==u.current&&(i==null||i(o,u.current)),u.current=o},[]);return[u,r]}function po(a){const i=S.useRef();return S.useEffect(()=>{i.current=a},[a]),i.current}let to={};function Qi(a,i){return S.useMemo(()=>{if(i)return i;const u=to[a]==null?0:to[a]+1;return to[a]=u,a+"-"+u},[a,i])}function lp(a){return function(i){for(var u=arguments.length,r=new Array(u>1?u-1:0),o=1;o<u;o++)r[o-1]=arguments[o];return r.reduce((d,m)=>{const v=Object.entries(m);for(const[y,g]of v){const x=d[y];x!=null&&(d[y]=x+a*g)}return d},{...i})}}const Ma=lp(1),Li=lp(-1);function Sx(a){return"clientX"in a&&"clientY"in a}function qo(a){if(!a)return!1;const{KeyboardEvent:i}=Tt(a.target);return i&&a instanceof i}function Ex(a){if(!a)return!1;const{TouchEvent:i}=Tt(a.target);return i&&a instanceof i}function vo(a){if(Ex(a)){if(a.touches&&a.touches.length){const{clientX:i,clientY:u}=a.touches[0];return{x:i,y:u}}else if(a.changedTouches&&a.changedTouches.length){const{clientX:i,clientY:u}=a.changedTouches[0];return{x:i,y:u}}}return Sx(a)?{x:a.clientX,y:a.clientY}:null}const ki=Object.freeze({Translate:{toString(a){if(!a)return;const{x:i,y:u}=a;return"translate3d("+(i?Math.round(i):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(a){if(!a)return;const{scaleX:i,scaleY:u}=a;return"scaleX("+i+") scaleY("+u+")"}},Transform:{toString(a){if(a)return[ki.Translate.toString(a),ki.Scale.toString(a)].join(" ")}},Transition:{toString(a){let{property:i,duration:u,easing:r}=a;return i+" "+u+"ms "+r}}}),cg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Nx(a){return a.matches(cg)?a:a.querySelector(cg)}const wx={display:"none"};function Ax(a){let{id:i,value:u}=a;return Ct.createElement("div",{id:i,style:wx},u)}function jx(a){let{id:i,announcement:u,ariaLiveType:r="assertive"}=a;const o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ct.createElement("div",{id:i,style:o,role:"status","aria-live":r,"aria-atomic":!0},u)}function Dx(){const[a,i]=S.useState("");return{announce:S.useCallback(r=>{r!=null&&i(r)},[]),announcement:a}}const ap=S.createContext(null);function Ox(a){const i=S.useContext(ap);S.useEffect(()=>{if(!i)throw new Error("useDndMonitor must be used within a children of <DndContext>");return i(a)},[a,i])}function Cx(){const[a]=S.useState(()=>new Set),i=S.useCallback(r=>(a.add(r),()=>a.delete(r)),[a]);return[S.useCallback(r=>{let{type:o,event:d}=r;a.forEach(m=>{var v;return(v=m[o])==null?void 0:v.call(m,d)})},[a]),i]}const _x={draggable:`
|
|
53
|
+
To pick up a draggable item, press the space bar.
|
|
54
|
+
While dragging, use the arrow keys to move the item.
|
|
55
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
56
|
+
`},Tx={onDragStart(a){let{active:i}=a;return"Picked up draggable item "+i.id+"."},onDragOver(a){let{active:i,over:u}=a;return u?"Draggable item "+i.id+" was moved over droppable area "+u.id+".":"Draggable item "+i.id+" is no longer over a droppable area."},onDragEnd(a){let{active:i,over:u}=a;return u?"Draggable item "+i.id+" was dropped over droppable area "+u.id:"Draggable item "+i.id+" was dropped."},onDragCancel(a){let{active:i}=a;return"Dragging was cancelled. Draggable item "+i.id+" was dropped."}};function Mx(a){let{announcements:i=Tx,container:u,hiddenTextDescribedById:r,screenReaderInstructions:o=_x}=a;const{announce:d,announcement:m}=Dx(),v=Qi("DndLiveRegion"),[y,g]=S.useState(!1);if(S.useEffect(()=>{g(!0)},[]),Ox(S.useMemo(()=>({onDragStart(b){let{active:w}=b;d(i.onDragStart({active:w}))},onDragMove(b){let{active:w,over:N}=b;i.onDragMove&&d(i.onDragMove({active:w,over:N}))},onDragOver(b){let{active:w,over:N}=b;d(i.onDragOver({active:w,over:N}))},onDragEnd(b){let{active:w,over:N}=b;d(i.onDragEnd({active:w,over:N}))},onDragCancel(b){let{active:w,over:N}=b;d(i.onDragCancel({active:w,over:N}))}}),[d,i])),!y)return null;const x=Ct.createElement(Ct.Fragment,null,Ct.createElement(Ax,{id:r,value:o.draggable}),Ct.createElement(jx,{id:v,announcement:m}));return u?Ll.createPortal(x,u):x}var tt;(function(a){a.DragStart="dragStart",a.DragMove="dragMove",a.DragEnd="dragEnd",a.DragCancel="dragCancel",a.DragOver="dragOver",a.RegisterDroppable="registerDroppable",a.SetDroppableDisabled="setDroppableDisabled",a.UnregisterDroppable="unregisterDroppable"})(tt||(tt={}));function ys(){}function og(a,i){return S.useMemo(()=>({sensor:a,options:i??{}}),[a,i])}function zx(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return S.useMemo(()=>[...i].filter(r=>r!=null),[...i])}const on=Object.freeze({x:0,y:0});function Rx(a,i){return Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2))}function Ux(a,i){let{data:{value:u}}=a,{data:{value:r}}=i;return u-r}function Hx(a,i){let{data:{value:u}}=a,{data:{value:r}}=i;return r-u}function fg(a){let{left:i,top:u,height:r,width:o}=a;return[{x:i,y:u},{x:i+o,y:u},{x:i,y:u+r},{x:i+o,y:u+r}]}function ip(a,i){if(!a||a.length===0)return null;const[u]=a;return u[i]}const up=a=>{let{collisionRect:i,droppableRects:u,droppableContainers:r}=a;const o=fg(i),d=[];for(const m of r){const{id:v}=m,y=u.get(v);if(y){const g=fg(y),x=o.reduce((w,N,z)=>w+Rx(g[z],N),0),b=Number((x/4).toFixed(4));d.push({id:v,data:{droppableContainer:m,value:b}})}}return d.sort(Ux)};function Bx(a,i){const u=Math.max(i.top,a.top),r=Math.max(i.left,a.left),o=Math.min(i.left+i.width,a.left+a.width),d=Math.min(i.top+i.height,a.top+a.height),m=o-r,v=d-u;if(r<o&&u<d){const y=i.width*i.height,g=a.width*a.height,x=m*v,b=x/(y+g-x);return Number(b.toFixed(4))}return 0}const Lx=a=>{let{collisionRect:i,droppableRects:u,droppableContainers:r}=a;const o=[];for(const d of r){const{id:m}=d,v=u.get(m);if(v){const y=Bx(v,i);y>0&&o.push({id:m,data:{droppableContainer:d,value:y}})}}return o.sort(Hx)};function kx(a,i,u){return{...a,scaleX:i&&u?i.width/u.width:1,scaleY:i&&u?i.height/u.height:1}}function sp(a,i){return a&&i?{x:a.left-i.left,y:a.top-i.top}:on}function qx(a){return function(u){for(var r=arguments.length,o=new Array(r>1?r-1:0),d=1;d<r;d++)o[d-1]=arguments[d];return o.reduce((m,v)=>({...m,top:m.top+a*v.y,bottom:m.bottom+a*v.y,left:m.left+a*v.x,right:m.right+a*v.x}),{...u})}}const Yx=qx(1);function Gx(a){if(a.startsWith("matrix3d(")){const i=a.slice(9,-1).split(/, /);return{x:+i[12],y:+i[13],scaleX:+i[0],scaleY:+i[5]}}else if(a.startsWith("matrix(")){const i=a.slice(7,-1).split(/, /);return{x:+i[4],y:+i[5],scaleX:+i[0],scaleY:+i[3]}}return null}function Xx(a,i,u){const r=Gx(i);if(!r)return a;const{scaleX:o,scaleY:d,x:m,y:v}=r,y=a.left-m-(1-o)*parseFloat(u),g=a.top-v-(1-d)*parseFloat(u.slice(u.indexOf(" ")+1)),x=o?a.width/o:a.width,b=d?a.height/d:a.height;return{width:x,height:b,top:g,right:y+x,bottom:g+b,left:y}}const Vx={ignoreTransform:!1};function La(a,i){i===void 0&&(i=Vx);let u=a.getBoundingClientRect();if(i.ignoreTransform){const{transform:g,transformOrigin:x}=Tt(a).getComputedStyle(a);g&&(u=Xx(u,g,x))}const{top:r,left:o,width:d,height:m,bottom:v,right:y}=u;return{top:r,left:o,width:d,height:m,bottom:v,right:y}}function dg(a){return La(a,{ignoreTransform:!0})}function Qx(a){const i=a.innerWidth,u=a.innerHeight;return{top:0,left:0,right:i,bottom:u,width:i,height:u}}function Kx(a,i){return i===void 0&&(i=Tt(a).getComputedStyle(a)),i.position==="fixed"}function Zx(a,i){i===void 0&&(i=Tt(a).getComputedStyle(a));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{const d=i[o];return typeof d=="string"?u.test(d):!1})}function js(a,i){const u=[];function r(o){if(i!=null&&u.length>=i||!o)return u;if(Lo(o)&&o.scrollingElement!=null&&!u.includes(o.scrollingElement))return u.push(o.scrollingElement),u;if(!Xi(o)||np(o)||u.includes(o))return u;const d=Tt(a).getComputedStyle(o);return o!==a&&Zx(o,d)&&u.push(o),Kx(o,d)?u:r(o.parentNode)}return a?r(a):u}function rp(a){const[i]=js(a,1);return i??null}function no(a){return!As||!a?null:Ha(a)?a:Bo(a)?Lo(a)||a===Ba(a).scrollingElement?window:Xi(a)?a:null:null}function cp(a){return Ha(a)?a.scrollX:a.scrollLeft}function op(a){return Ha(a)?a.scrollY:a.scrollTop}function yo(a){return{x:cp(a),y:op(a)}}var it;(function(a){a[a.Forward=1]="Forward",a[a.Backward=-1]="Backward"})(it||(it={}));function fp(a){return!As||!a?!1:a===document.scrollingElement}function dp(a){const i={x:0,y:0},u=fp(a)?{height:window.innerHeight,width:window.innerWidth}:{height:a.clientHeight,width:a.clientWidth},r={x:a.scrollWidth-u.width,y:a.scrollHeight-u.height},o=a.scrollTop<=i.y,d=a.scrollLeft<=i.x,m=a.scrollTop>=r.y,v=a.scrollLeft>=r.x;return{isTop:o,isLeft:d,isBottom:m,isRight:v,maxScroll:r,minScroll:i}}const Jx={x:.2,y:.2};function $x(a,i,u,r,o){let{top:d,left:m,right:v,bottom:y}=u;r===void 0&&(r=10),o===void 0&&(o=Jx);const{isTop:g,isBottom:x,isLeft:b,isRight:w}=dp(a),N={x:0,y:0},z={x:0,y:0},D={height:i.height*o.y,width:i.width*o.x};return!g&&d<=i.top+D.height?(N.y=it.Backward,z.y=r*Math.abs((i.top+D.height-d)/D.height)):!x&&y>=i.bottom-D.height&&(N.y=it.Forward,z.y=r*Math.abs((i.bottom-D.height-y)/D.height)),!w&&v>=i.right-D.width?(N.x=it.Forward,z.x=r*Math.abs((i.right-D.width-v)/D.width)):!b&&m<=i.left+D.width&&(N.x=it.Backward,z.x=r*Math.abs((i.left+D.width-m)/D.width)),{direction:N,speed:z}}function Wx(a){if(a===document.scrollingElement){const{innerWidth:d,innerHeight:m}=window;return{top:0,left:0,right:d,bottom:m,width:d,height:m}}const{top:i,left:u,right:r,bottom:o}=a.getBoundingClientRect();return{top:i,left:u,right:r,bottom:o,width:a.clientWidth,height:a.clientHeight}}function hp(a){return a.reduce((i,u)=>Ma(i,yo(u)),on)}function Fx(a){return a.reduce((i,u)=>i+cp(u),0)}function Ix(a){return a.reduce((i,u)=>i+op(u),0)}function Px(a,i){if(i===void 0&&(i=La),!a)return;const{top:u,left:r,bottom:o,right:d}=i(a);rp(a)&&(o<=0||d<=0||u>=window.innerHeight||r>=window.innerWidth)&&a.scrollIntoView({block:"center",inline:"center"})}const e1=[["x",["left","right"],Fx],["y",["top","bottom"],Ix]];class Yo{constructor(i,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=js(u),o=hp(r);this.rect={...i},this.width=i.width,this.height=i.height;for(const[d,m,v]of e1)for(const y of m)Object.defineProperty(this,y,{get:()=>{const g=v(r),x=o[d]-g;return this.rect[y]+x},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Mi{constructor(i){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...u)})},this.target=i}add(i,u,r){var o;(o=this.target)==null||o.addEventListener(i,u,r),this.listeners.push([i,u,r])}}function t1(a){const{EventTarget:i}=Tt(a);return a instanceof i?a:Ba(a)}function lo(a,i){const u=Math.abs(a.x),r=Math.abs(a.y);return typeof i=="number"?Math.sqrt(u**2+r**2)>i:"x"in i&&"y"in i?u>i.x&&r>i.y:"x"in i?u>i.x:"y"in i?r>i.y:!1}var tn;(function(a){a.Click="click",a.DragStart="dragstart",a.Keydown="keydown",a.ContextMenu="contextmenu",a.Resize="resize",a.SelectionChange="selectionchange",a.VisibilityChange="visibilitychange"})(tn||(tn={}));function hg(a){a.preventDefault()}function n1(a){a.stopPropagation()}var Ae;(function(a){a.Space="Space",a.Down="ArrowDown",a.Right="ArrowRight",a.Left="ArrowLeft",a.Up="ArrowUp",a.Esc="Escape",a.Enter="Enter",a.Tab="Tab"})(Ae||(Ae={}));const mp={start:[Ae.Space,Ae.Enter],cancel:[Ae.Esc],end:[Ae.Space,Ae.Enter,Ae.Tab]},l1=(a,i)=>{let{currentCoordinates:u}=i;switch(a.code){case Ae.Right:return{...u,x:u.x+25};case Ae.Left:return{...u,x:u.x-25};case Ae.Down:return{...u,y:u.y+25};case Ae.Up:return{...u,y:u.y-25}}};class Go{constructor(i){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=i;const{event:{target:u}}=i;this.props=i,this.listeners=new Mi(Ba(u)),this.windowListeners=new Mi(Tt(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(tn.Resize,this.handleCancel),this.windowListeners.add(tn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(tn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:i,onStart:u}=this.props,r=i.node.current;r&&Px(r),u(on)}handleKeyDown(i){if(qo(i)){const{active:u,context:r,options:o}=this.props,{keyboardCodes:d=mp,coordinateGetter:m=l1,scrollBehavior:v="smooth"}=o,{code:y}=i;if(d.end.includes(y)){this.handleEnd(i);return}if(d.cancel.includes(y)){this.handleCancel(i);return}const{collisionRect:g}=r.current,x=g?{x:g.left,y:g.top}:on;this.referenceCoordinates||(this.referenceCoordinates=x);const b=m(i,{active:u,context:r.current,currentCoordinates:x});if(b){const w=Li(b,x),N={x:0,y:0},{scrollableAncestors:z}=r.current;for(const D of z){const O=i.code,{isTop:L,isRight:Z,isLeft:q,isBottom:X,maxScroll:Q,minScroll:$}=dp(D),V=Wx(D),ae={x:Math.min(O===Ae.Right?V.right-V.width/2:V.right,Math.max(O===Ae.Right?V.left:V.left+V.width/2,b.x)),y:Math.min(O===Ae.Down?V.bottom-V.height/2:V.bottom,Math.max(O===Ae.Down?V.top:V.top+V.height/2,b.y))},de=O===Ae.Right&&!Z||O===Ae.Left&&!q,me=O===Ae.Down&&!X||O===Ae.Up&&!L;if(de&&ae.x!==b.x){const fe=D.scrollLeft+w.x,xe=O===Ae.Right&&fe<=Q.x||O===Ae.Left&&fe>=$.x;if(xe&&!w.y){D.scrollTo({left:fe,behavior:v});return}xe?N.x=D.scrollLeft-fe:N.x=O===Ae.Right?D.scrollLeft-Q.x:D.scrollLeft-$.x,N.x&&D.scrollBy({left:-N.x,behavior:v});break}else if(me&&ae.y!==b.y){const fe=D.scrollTop+w.y,xe=O===Ae.Down&&fe<=Q.y||O===Ae.Up&&fe>=$.y;if(xe&&!w.x){D.scrollTo({top:fe,behavior:v});return}xe?N.y=D.scrollTop-fe:N.y=O===Ae.Down?D.scrollTop-Q.y:D.scrollTop-$.y,N.y&&D.scrollBy({top:-N.y,behavior:v});break}}this.handleMove(i,Ma(Li(b,this.referenceCoordinates),N))}}}handleMove(i,u){const{onMove:r}=this.props;i.preventDefault(),r(u)}handleEnd(i){const{onEnd:u}=this.props;i.preventDefault(),this.detach(),u()}handleCancel(i){const{onCancel:u}=this.props;i.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Go.activators=[{eventName:"onKeyDown",handler:(a,i,u)=>{let{keyboardCodes:r=mp,onActivation:o}=i,{active:d}=u;const{code:m}=a.nativeEvent;if(r.start.includes(m)){const v=d.activatorNode.current;return v&&a.target!==v?!1:(a.preventDefault(),o==null||o({event:a.nativeEvent}),!0)}return!1}}];function mg(a){return!!(a&&"distance"in a)}function gg(a){return!!(a&&"delay"in a)}class Xo{constructor(i,u,r){var o;r===void 0&&(r=t1(i.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=i,this.events=u;const{event:d}=i,{target:m}=d;this.props=i,this.events=u,this.document=Ba(m),this.documentListeners=new Mi(this.document),this.listeners=new Mi(r),this.windowListeners=new Mi(Tt(m)),this.initialCoordinates=(o=vo(d))!=null?o:on,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:i,props:{options:{activationConstraint:u,bypassActivationConstraint:r}}}=this;if(this.listeners.add(i.move.name,this.handleMove,{passive:!1}),this.listeners.add(i.end.name,this.handleEnd),i.cancel&&this.listeners.add(i.cancel.name,this.handleCancel),this.windowListeners.add(tn.Resize,this.handleCancel),this.windowListeners.add(tn.DragStart,hg),this.windowListeners.add(tn.VisibilityChange,this.handleCancel),this.windowListeners.add(tn.ContextMenu,hg),this.documentListeners.add(tn.Keydown,this.handleKeydown),u){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(gg(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(mg(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(i,u){const{active:r,onPending:o}=this.props;o(r,i,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:i}=this,{onStart:u}=this.props;i&&(this.activated=!0,this.documentListeners.add(tn.Click,n1,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(tn.SelectionChange,this.removeTextSelection),u(i))}handleMove(i){var u;const{activated:r,initialCoordinates:o,props:d}=this,{onMove:m,options:{activationConstraint:v}}=d;if(!o)return;const y=(u=vo(i))!=null?u:on,g=Li(o,y);if(!r&&v){if(mg(v)){if(v.tolerance!=null&&lo(g,v.tolerance))return this.handleCancel();if(lo(g,v.distance))return this.handleStart()}if(gg(v)&&lo(g,v.tolerance))return this.handleCancel();this.handlePending(v,g);return}i.cancelable&&i.preventDefault(),m(y)}handleEnd(){const{onAbort:i,onEnd:u}=this.props;this.detach(),this.activated||i(this.props.active),u()}handleCancel(){const{onAbort:i,onCancel:u}=this.props;this.detach(),this.activated||i(this.props.active),u()}handleKeydown(i){i.code===Ae.Esc&&this.handleCancel()}removeTextSelection(){var i;(i=this.document.getSelection())==null||i.removeAllRanges()}}const a1={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Vo extends Xo{constructor(i){const{event:u}=i,r=Ba(u.target);super(i,a1,r)}}Vo.activators=[{eventName:"onPointerDown",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;return!u.isPrimary||u.button!==0?!1:(r==null||r({event:u}),!0)}}];const i1={move:{name:"mousemove"},end:{name:"mouseup"}};var bo;(function(a){a[a.RightClick=2]="RightClick"})(bo||(bo={}));class u1 extends Xo{constructor(i){super(i,i1,Ba(i.event.target))}}u1.activators=[{eventName:"onMouseDown",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;return u.button===bo.RightClick?!1:(r==null||r({event:u}),!0)}}];const ao={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class s1 extends Xo{constructor(i){super(i,ao)}static setup(){return window.addEventListener(ao.move.name,i,{capture:!1,passive:!1}),function(){window.removeEventListener(ao.move.name,i)};function i(){}}}s1.activators=[{eventName:"onTouchStart",handler:(a,i)=>{let{nativeEvent:u}=a,{onActivation:r}=i;const{touches:o}=u;return o.length>1?!1:(r==null||r({event:u}),!0)}}];var zi;(function(a){a[a.Pointer=0]="Pointer",a[a.DraggableRect=1]="DraggableRect"})(zi||(zi={}));var bs;(function(a){a[a.TreeOrder=0]="TreeOrder",a[a.ReversedTreeOrder=1]="ReversedTreeOrder"})(bs||(bs={}));function r1(a){let{acceleration:i,activator:u=zi.Pointer,canScroll:r,draggingRect:o,enabled:d,interval:m=5,order:v=bs.TreeOrder,pointerCoordinates:y,scrollableAncestors:g,scrollableAncestorRects:x,delta:b,threshold:w}=a;const N=o1({delta:b,disabled:!d}),[z,D]=xx(),O=S.useRef({x:0,y:0}),L=S.useRef({x:0,y:0}),Z=S.useMemo(()=>{switch(u){case zi.Pointer:return y?{top:y.y,bottom:y.y,left:y.x,right:y.x}:null;case zi.DraggableRect:return o}},[u,o,y]),q=S.useRef(null),X=S.useCallback(()=>{const $=q.current;if(!$)return;const V=O.current.x*L.current.x,ae=O.current.y*L.current.y;$.scrollBy(V,ae)},[]),Q=S.useMemo(()=>v===bs.TreeOrder?[...g].reverse():g,[v,g]);S.useEffect(()=>{if(!d||!g.length||!Z){D();return}for(const $ of Q){if((r==null?void 0:r($))===!1)continue;const V=g.indexOf($),ae=x[V];if(!ae)continue;const{direction:de,speed:me}=$x($,ae,Z,i,w);for(const fe of["x","y"])N[fe][de[fe]]||(me[fe]=0,de[fe]=0);if(me.x>0||me.y>0){D(),q.current=$,z(X,m),O.current=me,L.current=de;return}}O.current={x:0,y:0},L.current={x:0,y:0},D()},[i,X,r,D,d,m,JSON.stringify(Z),JSON.stringify(N),z,g,Q,x,JSON.stringify(w)])}const c1={x:{[it.Backward]:!1,[it.Forward]:!1},y:{[it.Backward]:!1,[it.Forward]:!1}};function o1(a){let{delta:i,disabled:u}=a;const r=po(i);return Vi(o=>{if(u||!r||!o)return c1;const d={x:Math.sign(i.x-r.x),y:Math.sign(i.y-r.y)};return{x:{[it.Backward]:o.x[it.Backward]||d.x===-1,[it.Forward]:o.x[it.Forward]||d.x===1},y:{[it.Backward]:o.y[it.Backward]||d.y===-1,[it.Forward]:o.y[it.Forward]||d.y===1}}},[u,i,r])}function f1(a,i){const u=i!=null?a.get(i):void 0,r=u?u.node.current:null;return Vi(o=>{var d;return i==null?null:(d=r??o)!=null?d:null},[r,i])}function d1(a,i){return S.useMemo(()=>a.reduce((u,r)=>{const{sensor:o}=r,d=o.activators.map(m=>({eventName:m.eventName,handler:i(m.handler,r)}));return[...u,...d]},[]),[a,i])}var qi;(function(a){a[a.Always=0]="Always",a[a.BeforeDragging=1]="BeforeDragging",a[a.WhileDragging=2]="WhileDragging"})(qi||(qi={}));var xo;(function(a){a.Optimized="optimized"})(xo||(xo={}));const pg=new Map;function h1(a,i){let{dragging:u,dependencies:r,config:o}=i;const[d,m]=S.useState(null),{frequency:v,measure:y,strategy:g}=o,x=S.useRef(a),b=O(),w=Bi(b),N=S.useCallback(function(L){L===void 0&&(L=[]),!w.current&&m(Z=>Z===null?L:Z.concat(L.filter(q=>!Z.includes(q))))},[w]),z=S.useRef(null),D=Vi(L=>{if(b&&!u)return pg;if(!L||L===pg||x.current!==a||d!=null){const Z=new Map;for(let q of a){if(!q)continue;if(d&&d.length>0&&!d.includes(q.id)&&q.rect.current){Z.set(q.id,q.rect.current);continue}const X=q.node.current,Q=X?new Yo(y(X),X):null;q.rect.current=Q,Q&&Z.set(q.id,Q)}return Z}return L},[a,d,u,b,y]);return S.useEffect(()=>{x.current=a},[a]),S.useEffect(()=>{b||N()},[u,b]),S.useEffect(()=>{d&&d.length>0&&m(null)},[JSON.stringify(d)]),S.useEffect(()=>{b||typeof v!="number"||z.current!==null||(z.current=setTimeout(()=>{N(),z.current=null},v))},[v,b,N,...r]),{droppableRects:D,measureDroppableContainers:N,measuringScheduled:d!=null};function O(){switch(g){case qi.Always:return!1;case qi.BeforeDragging:return u;default:return!u}}}function gp(a,i){return Vi(u=>a?u||(typeof i=="function"?i(a):a):null,[i,a])}function m1(a,i){return gp(a,i)}function g1(a){let{callback:i,disabled:u}=a;const r=ko(i),o=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:d}=window;return new d(r)},[r,u]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function Ds(a){let{callback:i,disabled:u}=a;const r=ko(i),o=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:d}=window;return new d(r)},[u]);return S.useEffect(()=>()=>o==null?void 0:o.disconnect(),[o]),o}function p1(a){return new Yo(La(a),a)}function vg(a,i,u){i===void 0&&(i=p1);const[r,o]=S.useState(null);function d(){o(y=>{if(!a)return null;if(a.isConnected===!1){var g;return(g=y??u)!=null?g:null}const x=i(a);return JSON.stringify(y)===JSON.stringify(x)?y:x})}const m=g1({callback(y){if(a)for(const g of y){const{type:x,target:b}=g;if(x==="childList"&&b instanceof HTMLElement&&b.contains(a)){d();break}}}}),v=Ds({callback:d});return vn(()=>{d(),a?(v==null||v.observe(a),m==null||m.observe(document.body,{childList:!0,subtree:!0})):(v==null||v.disconnect(),m==null||m.disconnect())},[a]),r}function v1(a){const i=gp(a);return sp(a,i)}const yg=[];function y1(a){const i=S.useRef(a),u=Vi(r=>a?r&&r!==yg&&a&&i.current&&a.parentNode===i.current.parentNode?r:js(a):yg,[a]);return S.useEffect(()=>{i.current=a},[a]),u}function b1(a){const[i,u]=S.useState(null),r=S.useRef(a),o=S.useCallback(d=>{const m=no(d.target);m&&u(v=>v?(v.set(m,yo(m)),new Map(v)):null)},[]);return S.useEffect(()=>{const d=r.current;if(a!==d){m(d);const v=a.map(y=>{const g=no(y);return g?(g.addEventListener("scroll",o,{passive:!0}),[g,yo(g)]):null}).filter(y=>y!=null);u(v.length?new Map(v):null),r.current=a}return()=>{m(a),m(d)};function m(v){v.forEach(y=>{const g=no(y);g==null||g.removeEventListener("scroll",o)})}},[o,a]),S.useMemo(()=>a.length?i?Array.from(i.values()).reduce((d,m)=>Ma(d,m),on):hp(a):on,[a,i])}function bg(a,i){i===void 0&&(i=[]);const u=S.useRef(null);return S.useEffect(()=>{u.current=null},i),S.useEffect(()=>{const r=a!==on;r&&!u.current&&(u.current=a),!r&&u.current&&(u.current=null)},[a]),u.current?Li(a,u.current):on}function x1(a){S.useEffect(()=>{if(!As)return;const i=a.map(u=>{let{sensor:r}=u;return r.setup==null?void 0:r.setup()});return()=>{for(const u of i)u==null||u()}},a.map(i=>{let{sensor:u}=i;return u}))}function S1(a,i){return S.useMemo(()=>a.reduce((u,r)=>{let{eventName:o,handler:d}=r;return u[o]=m=>{d(m,i)},u},{}),[a,i])}function pp(a){return S.useMemo(()=>a?Qx(a):null,[a])}const xg=[];function E1(a,i){i===void 0&&(i=La);const[u]=a,r=pp(u?Tt(u):null),[o,d]=S.useState(xg);function m(){d(()=>a.length?a.map(y=>fp(y)?r:new Yo(i(y),y)):xg)}const v=Ds({callback:m});return vn(()=>{v==null||v.disconnect(),m(),a.forEach(y=>v==null?void 0:v.observe(y))},[a]),o}function N1(a){if(!a)return null;if(a.children.length>1)return a;const i=a.children[0];return Xi(i)?i:a}function w1(a){let{measure:i}=a;const[u,r]=S.useState(null),o=S.useCallback(g=>{for(const{target:x}of g)if(Xi(x)){r(b=>{const w=i(x);return b?{...b,width:w.width,height:w.height}:w});break}},[i]),d=Ds({callback:o}),m=S.useCallback(g=>{const x=N1(g);d==null||d.disconnect(),x&&(d==null||d.observe(x)),r(x?i(x):null)},[i,d]),[v,y]=vs(m);return S.useMemo(()=>({nodeRef:v,rect:u,setRef:y}),[u,v,y])}const A1=[{sensor:Vo,options:{}},{sensor:Go,options:{}}],j1={current:{}},gs={draggable:{measure:dg},droppable:{measure:dg,strategy:qi.WhileDragging,frequency:xo.Optimized},dragOverlay:{measure:La}};class Ri extends Map{get(i){var u;return i!=null&&(u=super.get(i))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(i=>{let{disabled:u}=i;return!u})}getNodeFor(i){var u,r;return(u=(r=this.get(i))==null?void 0:r.node.current)!=null?u:void 0}}const D1={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Ri,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ys},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:gs,measureDroppableContainers:ys,windowRect:null,measuringScheduled:!1},O1={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ys,draggableNodes:new Map,over:null,measureDroppableContainers:ys},Os=S.createContext(O1),vp=S.createContext(D1);function C1(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Ri}}}function _1(a,i){switch(i.type){case tt.DragStart:return{...a,draggable:{...a.draggable,initialCoordinates:i.initialCoordinates,active:i.active}};case tt.DragMove:return a.draggable.active==null?a:{...a,draggable:{...a.draggable,translate:{x:i.coordinates.x-a.draggable.initialCoordinates.x,y:i.coordinates.y-a.draggable.initialCoordinates.y}}};case tt.DragEnd:case tt.DragCancel:return{...a,draggable:{...a.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case tt.RegisterDroppable:{const{element:u}=i,{id:r}=u,o=new Ri(a.droppable.containers);return o.set(r,u),{...a,droppable:{...a.droppable,containers:o}}}case tt.SetDroppableDisabled:{const{id:u,key:r,disabled:o}=i,d=a.droppable.containers.get(u);if(!d||r!==d.key)return a;const m=new Ri(a.droppable.containers);return m.set(u,{...d,disabled:o}),{...a,droppable:{...a.droppable,containers:m}}}case tt.UnregisterDroppable:{const{id:u,key:r}=i,o=a.droppable.containers.get(u);if(!o||r!==o.key)return a;const d=new Ri(a.droppable.containers);return d.delete(u),{...a,droppable:{...a.droppable,containers:d}}}default:return a}}function T1(a){let{disabled:i}=a;const{active:u,activatorEvent:r,draggableNodes:o}=S.useContext(Os),d=po(r),m=po(u==null?void 0:u.id);return S.useEffect(()=>{if(!i&&!r&&d&&m!=null){if(!qo(d)||document.activeElement===d.target)return;const v=o.get(m);if(!v)return;const{activatorNode:y,node:g}=v;if(!y.current&&!g.current)return;requestAnimationFrame(()=>{for(const x of[y.current,g.current]){if(!x)continue;const b=Nx(x);if(b){b.focus();break}}})}},[r,i,o,m,d]),null}function M1(a,i){let{transform:u,...r}=i;return a!=null&&a.length?a.reduce((o,d)=>d({transform:o,...r}),u):u}function z1(a){return S.useMemo(()=>({draggable:{...gs.draggable,...a==null?void 0:a.draggable},droppable:{...gs.droppable,...a==null?void 0:a.droppable},dragOverlay:{...gs.dragOverlay,...a==null?void 0:a.dragOverlay}}),[a==null?void 0:a.draggable,a==null?void 0:a.droppable,a==null?void 0:a.dragOverlay])}function R1(a){let{activeNode:i,measure:u,initialRect:r,config:o=!0}=a;const d=S.useRef(!1),{x:m,y:v}=typeof o=="boolean"?{x:o,y:o}:o;vn(()=>{if(!m&&!v||!i){d.current=!1;return}if(d.current||!r)return;const g=i==null?void 0:i.node.current;if(!g||g.isConnected===!1)return;const x=u(g),b=sp(x,r);if(m||(b.x=0),v||(b.y=0),d.current=!0,Math.abs(b.x)>0||Math.abs(b.y)>0){const w=rp(g);w&&w.scrollBy({top:b.y,left:b.x})}},[i,m,v,r,u])}const yp=S.createContext({...on,scaleX:1,scaleY:1});var ml;(function(a){a[a.Uninitialized=0]="Uninitialized",a[a.Initializing=1]="Initializing",a[a.Initialized=2]="Initialized"})(ml||(ml={}));const U1=S.memo(function(i){var u,r,o,d;let{id:m,accessibility:v,autoScroll:y=!0,children:g,sensors:x=A1,collisionDetection:b=Lx,measuring:w,modifiers:N,...z}=i;const D=S.useReducer(_1,void 0,C1),[O,L]=D,[Z,q]=Cx(),[X,Q]=S.useState(ml.Uninitialized),$=X===ml.Initialized,{draggable:{active:V,nodes:ae,translate:de},droppable:{containers:me}}=O,fe=V!=null?ae.get(V):null,xe=S.useRef({initial:null,translated:null}),ne=S.useMemo(()=>{var Xe;return V!=null?{id:V,data:(Xe=fe==null?void 0:fe.data)!=null?Xe:j1,rect:xe}:null},[V,fe]),F=S.useRef(null),[se,R]=S.useState(null),[G,le]=S.useState(null),oe=Bi(z,Object.values(z)),W=Qi("DndDescribedBy",m),A=S.useMemo(()=>me.getEnabled(),[me]),H=z1(w),{droppableRects:J,measureDroppableContainers:K,measuringScheduled:ie}=h1(A,{dragging:$,dependencies:[de.x,de.y],config:H.droppable}),ee=f1(ae,V),re=S.useMemo(()=>G?vo(G):null,[G]),Be=Yl(),ve=m1(ee,H.draggable.measure);R1({activeNode:V!=null?ae.get(V):null,config:Be.layoutShiftCompensation,initialRect:ve,measure:H.draggable.measure});const Se=vg(ee,H.draggable.measure,ve),Ze=vg(ee?ee.parentElement:null),Ce=S.useRef({activatorEvent:null,active:null,activeNode:ee,collisionRect:null,collisions:null,droppableRects:J,draggableNodes:ae,draggingNode:null,draggingNodeRect:null,droppableContainers:me,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),nn=me.getNodeFor((u=Ce.current.over)==null?void 0:u.id),Ie=w1({measure:H.dragOverlay.measure}),I=(r=Ie.nodeRef.current)!=null?r:ee,_e=$?(o=Ie.rect)!=null?o:Se:null,yt=!!(Ie.nodeRef.current&&Ie.rect),yn=v1(yt?null:Se),vl=pp(I?Tt(I):null),qt=y1($?nn??ee:null),Gn=E1(qt),kl=M1(N,{transform:{x:de.x-yn.x,y:de.y-yn.y,scaleX:1,scaleY:1},activatorEvent:G,active:ne,activeNodeRect:Se,containerNodeRect:Ze,draggingNodeRect:_e,over:Ce.current.over,overlayNodeRect:Ie.rect,scrollableAncestors:qt,scrollableAncestorRects:Gn,windowRect:vl}),Ki=re?Ma(re,de):null,dt=b1(qt),Cs=bg(dt),Zi=bg(dt,[Se]),bn=Ma(kl,Cs),ln=_e?Yx(_e,kl):null,yl=ne&&ln?b({active:ne,collisionRect:ln,droppableRects:J,droppableContainers:A,pointerCoordinates:Ki}):null,ka=ip(yl,"id"),[fn,Ji]=S.useState(null),bl=yt?kl:Ma(kl,Zi),pt=kx(bl,(d=fn==null?void 0:fn.rect)!=null?d:null,Se),Yt=S.useRef(null),ht=S.useCallback((Xe,Ve)=>{let{sensor:nt,options:bt}=Ve;if(F.current==null)return;const xt=ae.get(F.current);if(!xt)return;const mt=Xe.nativeEvent,St=new nt({active:F.current,activeNode:xt,event:mt,options:bt,context:Ce,onAbort(Pe){if(!ae.get(Pe))return;const{onDragAbort:Mt}=oe.current,Xt={id:Pe};Mt==null||Mt(Xt),Z({type:"onDragAbort",event:Xt})},onPending(Pe,an,Mt,Xt){if(!ae.get(Pe))return;const{onDragPending:Sn}=oe.current,un={id:Pe,constraint:an,initialCoordinates:Mt,offset:Xt};Sn==null||Sn(un),Z({type:"onDragPending",event:un})},onStart(Pe){const an=F.current;if(an==null)return;const Mt=ae.get(an);if(!Mt)return;const{onDragStart:Xt}=oe.current,xn={activatorEvent:mt,active:{id:an,data:Mt.data,rect:xe}};Ll.unstable_batchedUpdates(()=>{Xt==null||Xt(xn),Q(ml.Initializing),L({type:tt.DragStart,initialCoordinates:Pe,active:an}),Z({type:"onDragStart",event:xn}),R(Yt.current),le(mt)})},onMove(Pe){L({type:tt.DragMove,coordinates:Pe})},onEnd:Gt(tt.DragEnd),onCancel:Gt(tt.DragCancel)});Yt.current=St;function Gt(Pe){return async function(){const{active:Mt,collisions:Xt,over:xn,scrollAdjustedTranslate:Sn}=Ce.current;let un=null;if(Mt&&Sn){const{cancelDrop:Xn}=oe.current;un={activatorEvent:mt,active:Mt,collisions:Xt,delta:Sn,over:xn},Pe===tt.DragEnd&&typeof Xn=="function"&&await Promise.resolve(Xn(un))&&(Pe=tt.DragCancel)}F.current=null,Ll.unstable_batchedUpdates(()=>{L({type:Pe}),Q(ml.Uninitialized),Ji(null),R(null),le(null),Yt.current=null;const Xn=Pe===tt.DragEnd?"onDragEnd":"onDragCancel";if(un){const Vt=oe.current[Xn];Vt==null||Vt(un),Z({type:Xn,event:un})}})}}},[ae]),_s=S.useCallback((Xe,Ve)=>(nt,bt)=>{const xt=nt.nativeEvent,mt=ae.get(bt);if(F.current!==null||!mt||xt.dndKit||xt.defaultPrevented)return;const St={active:mt};Xe(nt,Ve.options,St)===!0&&(xt.dndKit={capturedBy:Ve.sensor},F.current=bt,ht(nt,Ve))},[ae,ht]),$i=d1(x,_s);x1(x),vn(()=>{Se&&X===ml.Initializing&&Q(ml.Initialized)},[Se,X]),S.useEffect(()=>{const{onDragMove:Xe}=oe.current,{active:Ve,activatorEvent:nt,collisions:bt,over:xt}=Ce.current;if(!Ve||!nt)return;const mt={active:Ve,activatorEvent:nt,collisions:bt,delta:{x:bn.x,y:bn.y},over:xt};Ll.unstable_batchedUpdates(()=>{Xe==null||Xe(mt),Z({type:"onDragMove",event:mt})})},[bn.x,bn.y]),S.useEffect(()=>{const{active:Xe,activatorEvent:Ve,collisions:nt,droppableContainers:bt,scrollAdjustedTranslate:xt}=Ce.current;if(!Xe||F.current==null||!Ve||!xt)return;const{onDragOver:mt}=oe.current,St=bt.get(ka),Gt=St&&St.rect.current?{id:St.id,rect:St.rect.current,data:St.data,disabled:St.disabled}:null,Pe={active:Xe,activatorEvent:Ve,collisions:nt,delta:{x:xt.x,y:xt.y},over:Gt};Ll.unstable_batchedUpdates(()=>{Ji(Gt),mt==null||mt(Pe),Z({type:"onDragOver",event:Pe})})},[ka]),vn(()=>{Ce.current={activatorEvent:G,active:ne,activeNode:ee,collisionRect:ln,collisions:yl,droppableRects:J,draggableNodes:ae,draggingNode:I,draggingNodeRect:_e,droppableContainers:me,over:fn,scrollableAncestors:qt,scrollAdjustedTranslate:bn},xe.current={initial:_e,translated:ln}},[ne,ee,yl,ln,ae,I,_e,J,me,fn,qt,bn]),r1({...Be,delta:de,draggingRect:ln,pointerCoordinates:Ki,scrollableAncestors:qt,scrollableAncestorRects:Gn});const Ts=S.useMemo(()=>({active:ne,activeNode:ee,activeNodeRect:Se,activatorEvent:G,collisions:yl,containerNodeRect:Ze,dragOverlay:Ie,draggableNodes:ae,droppableContainers:me,droppableRects:J,over:fn,measureDroppableContainers:K,scrollableAncestors:qt,scrollableAncestorRects:Gn,measuringConfiguration:H,measuringScheduled:ie,windowRect:vl}),[ne,ee,Se,G,yl,Ze,Ie,ae,me,J,fn,K,qt,Gn,H,ie,vl]),ql=S.useMemo(()=>({activatorEvent:G,activators:$i,active:ne,activeNodeRect:Se,ariaDescribedById:{draggable:W},dispatch:L,draggableNodes:ae,over:fn,measureDroppableContainers:K}),[G,$i,ne,Se,L,W,ae,fn,K]);return Ct.createElement(ap.Provider,{value:q},Ct.createElement(Os.Provider,{value:ql},Ct.createElement(vp.Provider,{value:Ts},Ct.createElement(yp.Provider,{value:pt},g)),Ct.createElement(T1,{disabled:(v==null?void 0:v.restoreFocus)===!1})),Ct.createElement(Mx,{...v,hiddenTextDescribedById:W}));function Yl(){const Xe=(se==null?void 0:se.autoScrollEnabled)===!1,Ve=typeof y=="object"?y.enabled===!1:y===!1,nt=$&&!Xe&&!Ve;return typeof y=="object"?{...y,enabled:nt}:{enabled:nt}}}),H1=S.createContext(null),Sg="button",B1="Draggable";function L1(a){let{id:i,data:u,disabled:r=!1,attributes:o}=a;const d=Qi(B1),{activators:m,activatorEvent:v,active:y,activeNodeRect:g,ariaDescribedById:x,draggableNodes:b,over:w}=S.useContext(Os),{role:N=Sg,roleDescription:z="draggable",tabIndex:D=0}=o??{},O=(y==null?void 0:y.id)===i,L=S.useContext(O?yp:H1),[Z,q]=vs(),[X,Q]=vs(),$=S1(m,i),V=Bi(u);vn(()=>(b.set(i,{id:i,key:d,node:Z,activatorNode:X,data:V}),()=>{const de=b.get(i);de&&de.key===d&&b.delete(i)}),[b,i]);const ae=S.useMemo(()=>({role:N,tabIndex:D,"aria-disabled":r,"aria-pressed":O&&N===Sg?!0:void 0,"aria-roledescription":z,"aria-describedby":x.draggable}),[r,N,D,O,z,x.draggable]);return{active:y,activatorEvent:v,activeNodeRect:g,attributes:ae,isDragging:O,listeners:r?void 0:$,node:Z,over:w,setNodeRef:q,setActivatorNodeRef:Q,transform:L}}function k1(){return S.useContext(vp)}const q1="Droppable",Y1={timeout:25};function bp(a){let{data:i,disabled:u=!1,id:r,resizeObserverConfig:o}=a;const d=Qi(q1),{active:m,dispatch:v,over:y,measureDroppableContainers:g}=S.useContext(Os),x=S.useRef({disabled:u}),b=S.useRef(!1),w=S.useRef(null),N=S.useRef(null),{disabled:z,updateMeasurementsFor:D,timeout:O}={...Y1,...o},L=Bi(D??r),Z=S.useCallback(()=>{if(!b.current){b.current=!0;return}N.current!=null&&clearTimeout(N.current),N.current=setTimeout(()=>{g(Array.isArray(L.current)?L.current:[L.current]),N.current=null},O)},[O]),q=Ds({callback:Z,disabled:z||!m}),X=S.useCallback((ae,de)=>{q&&(de&&(q.unobserve(de),b.current=!1),ae&&q.observe(ae))},[q]),[Q,$]=vs(X),V=Bi(i);return S.useEffect(()=>{!q||!Q.current||(q.disconnect(),b.current=!1,q.observe(Q.current))},[Q,q]),S.useEffect(()=>(v({type:tt.RegisterDroppable,element:{id:r,key:d,disabled:u,node:Q,rect:w,data:V}}),()=>v({type:tt.UnregisterDroppable,key:d,id:r})),[r]),S.useEffect(()=>{u!==x.current.disabled&&(v({type:tt.SetDroppableDisabled,id:r,key:d,disabled:u}),x.current.disabled=u)},[r,d,u,v]),{active:m,rect:w,isOver:(y==null?void 0:y.id)===r,node:Q,over:y,setNodeRef:$}}function xp(a,i,u){const r=a.slice();return r.splice(u<0?r.length+u:u,0,r.splice(i,1)[0]),r}function G1(a,i){return a.reduce((u,r,o)=>{const d=i.get(r);return d&&(u[o]=d),u},Array(a.length))}function cs(a){return a!==null&&a>=0}function X1(a,i){if(a===i)return!0;if(a.length!==i.length)return!1;for(let u=0;u<a.length;u++)if(a[u]!==i[u])return!1;return!0}function V1(a){return typeof a=="boolean"?{draggable:a,droppable:a}:a}const Sp=a=>{let{rects:i,activeIndex:u,overIndex:r,index:o}=a;const d=xp(i,r,u),m=i[o],v=d[o];return!v||!m?null:{x:v.left-m.left,y:v.top-m.top,scaleX:v.width/m.width,scaleY:v.height/m.height}},os={scaleX:1,scaleY:1},Q1=a=>{var i;let{activeIndex:u,activeNodeRect:r,index:o,rects:d,overIndex:m}=a;const v=(i=d[u])!=null?i:r;if(!v)return null;if(o===u){const g=d[m];return g?{x:0,y:u<m?g.top+g.height-(v.top+v.height):g.top-v.top,...os}:null}const y=K1(d,o,u);return o>u&&o<=m?{x:0,y:-v.height-y,...os}:o<u&&o>=m?{x:0,y:v.height+y,...os}:{x:0,y:0,...os}};function K1(a,i,u){const r=a[i],o=a[i-1],d=a[i+1];return r?u<i?o?r.top-(o.top+o.height):d?d.top-(r.top+r.height):0:d?d.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}const Ep="Sortable",Np=Ct.createContext({activeIndex:-1,containerId:Ep,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Sp,disabled:{draggable:!1,droppable:!1}});function Z1(a){let{children:i,id:u,items:r,strategy:o=Sp,disabled:d=!1}=a;const{active:m,dragOverlay:v,droppableRects:y,over:g,measureDroppableContainers:x}=k1(),b=Qi(Ep,u),w=v.rect!==null,N=S.useMemo(()=>r.map($=>typeof $=="object"&&"id"in $?$.id:$),[r]),z=m!=null,D=m?N.indexOf(m.id):-1,O=g?N.indexOf(g.id):-1,L=S.useRef(N),Z=!X1(N,L.current),q=O!==-1&&D===-1||Z,X=V1(d);vn(()=>{Z&&z&&x(N)},[Z,N,z,x]),S.useEffect(()=>{L.current=N},[N]);const Q=S.useMemo(()=>({activeIndex:D,containerId:b,disabled:X,disableTransforms:q,items:N,overIndex:O,useDragOverlay:w,sortedRects:G1(N,y),strategy:o}),[D,b,X.draggable,X.droppable,q,N,O,y,w,o]);return Ct.createElement(Np.Provider,{value:Q},i)}const J1=a=>{let{id:i,items:u,activeIndex:r,overIndex:o}=a;return xp(u,r,o).indexOf(i)},$1=a=>{let{containerId:i,isSorting:u,wasDragging:r,index:o,items:d,newIndex:m,previousItems:v,previousContainerId:y,transition:g}=a;return!g||!r||v!==d&&o===m?!1:u?!0:m!==o&&i===y},W1={duration:200,easing:"ease"},wp="transform",F1=ki.Transition.toString({property:wp,duration:0,easing:"linear"}),I1={roleDescription:"sortable"};function P1(a){let{disabled:i,index:u,node:r,rect:o}=a;const[d,m]=S.useState(null),v=S.useRef(u);return vn(()=>{if(!i&&u!==v.current&&r.current){const y=o.current;if(y){const g=La(r.current,{ignoreTransform:!0}),x={x:y.left-g.left,y:y.top-g.top,scaleX:y.width/g.width,scaleY:y.height/g.height};(x.x||x.y)&&m(x)}}u!==v.current&&(v.current=u)},[i,u,r,o]),S.useEffect(()=>{d&&m(null)},[d]),d}function eS(a){let{animateLayoutChanges:i=$1,attributes:u,disabled:r,data:o,getNewIndex:d=J1,id:m,strategy:v,resizeObserverConfig:y,transition:g=W1}=a;const{items:x,containerId:b,activeIndex:w,disabled:N,disableTransforms:z,sortedRects:D,overIndex:O,useDragOverlay:L,strategy:Z}=S.useContext(Np),q=tS(r,N),X=x.indexOf(m),Q=S.useMemo(()=>({sortable:{containerId:b,index:X,items:x},...o}),[b,o,X,x]),$=S.useMemo(()=>x.slice(x.indexOf(m)),[x,m]),{rect:V,node:ae,isOver:de,setNodeRef:me}=bp({id:m,data:Q,disabled:q.droppable,resizeObserverConfig:{updateMeasurementsFor:$,...y}}),{active:fe,activatorEvent:xe,activeNodeRect:ne,attributes:F,setNodeRef:se,listeners:R,isDragging:G,over:le,setActivatorNodeRef:oe,transform:W}=L1({id:m,data:Q,attributes:{...I1,...u},disabled:q.draggable}),A=bx(me,se),H=!!fe,J=H&&!z&&cs(w)&&cs(O),K=!L&&G,ie=K&&J?W:null,re=J?ie??(v??Z)({rects:D,activeNodeRect:ne,activeIndex:w,overIndex:O,index:X}):null,Be=cs(w)&&cs(O)?d({id:m,items:x,activeIndex:w,overIndex:O}):X,ve=fe==null?void 0:fe.id,Se=S.useRef({activeId:ve,items:x,newIndex:Be,containerId:b}),Ze=x!==Se.current.items,Ce=i({active:fe,containerId:b,isDragging:G,isSorting:H,id:m,index:X,items:x,newIndex:Se.current.newIndex,previousItems:Se.current.items,previousContainerId:Se.current.containerId,transition:g,wasDragging:Se.current.activeId!=null}),nn=P1({disabled:!Ce,index:X,node:ae,rect:V});return S.useEffect(()=>{H&&Se.current.newIndex!==Be&&(Se.current.newIndex=Be),b!==Se.current.containerId&&(Se.current.containerId=b),x!==Se.current.items&&(Se.current.items=x)},[H,Be,b,x]),S.useEffect(()=>{if(ve===Se.current.activeId)return;if(ve!=null&&Se.current.activeId==null){Se.current.activeId=ve;return}const I=setTimeout(()=>{Se.current.activeId=ve},50);return()=>clearTimeout(I)},[ve]),{active:fe,activeIndex:w,attributes:F,data:Q,rect:V,index:X,newIndex:Be,items:x,isOver:de,isSorting:H,isDragging:G,listeners:R,node:ae,overIndex:O,over:le,setNodeRef:A,setActivatorNodeRef:oe,setDroppableNodeRef:me,setDraggableNodeRef:se,transform:nn??re,transition:Ie()};function Ie(){if(nn||Ze&&Se.current.newIndex===X)return F1;if(!(K&&!qo(xe)||!g)&&(H||Ce))return ki.Transition.toString({...g,property:wp})}}function tS(a,i){var u,r;return typeof a=="boolean"?{draggable:a,droppable:!1}:{draggable:(u=a==null?void 0:a.draggable)!=null?u:i.draggable,droppable:(r=a==null?void 0:a.droppable)!=null?r:i.droppable}}function xs(a){if(!a)return!1;const i=a.data.current;return!!(i&&"sortable"in i&&typeof i.sortable=="object"&&"containerId"in i.sortable&&"items"in i.sortable&&"index"in i.sortable)}const nS=[Ae.Down,Ae.Right,Ae.Up,Ae.Left],lS=(a,i)=>{let{context:{active:u,collisionRect:r,droppableRects:o,droppableContainers:d,over:m,scrollableAncestors:v}}=i;if(nS.includes(a.code)){if(a.preventDefault(),!u||!r)return;const y=[];d.getEnabled().forEach(b=>{if(!b||b!=null&&b.disabled)return;const w=o.get(b.id);if(w)switch(a.code){case Ae.Down:r.top<w.top&&y.push(b);break;case Ae.Up:r.top>w.top&&y.push(b);break;case Ae.Left:r.left>w.left&&y.push(b);break;case Ae.Right:r.left<w.left&&y.push(b);break}});const g=up({collisionRect:r,droppableRects:o,droppableContainers:y});let x=ip(g,"id");if(x===(m==null?void 0:m.id)&&g.length>1&&(x=g[1].id),x!=null){const b=d.get(u.id),w=d.get(x),N=w?o.get(w.id):null,z=w==null?void 0:w.node.current;if(z&&N&&b&&w){const O=js(z).some(($,V)=>v[V]!==$),L=Ap(b,w),Z=aS(b,w),q=O||!L?{x:0,y:0}:{x:Z?r.width-N.width:0,y:Z?r.height-N.height:0},X={x:N.left,y:N.top};return q.x&&q.y?X:Li(X,q)}}}};function Ap(a,i){return!xs(a)||!xs(i)?!1:a.data.current.sortable.containerId===i.data.current.sortable.containerId}function aS(a,i){return!xs(a)||!xs(i)||!Ap(a,i)?!1:a.data.current.sortable.index<i.data.current.sortable.index}function iS({card:a,boardId:i}){const{mutate:u}=_t(),[r,o]=S.useState(!1),[d,m]=S.useState(a.title),{attributes:v,listeners:y,setNodeRef:g,transform:x,transition:b,isDragging:w}=eS({id:a.id}),N={transform:ki.Transform.toString(x),transition:b,opacity:w?.4:1};function z(){const D=d.trim();D!==""&&D!==a.title?u(O=>Ab(O,i,a.id,{title:D,updatedAt:new Date().toISOString()})):m(a.title),o(!1)}return h.jsxs("div",{ref:g,style:N,className:"group flex items-start gap-1.5 rounded-md border border-line bg-panel p-2",children:[h.jsx("button",{...v,...y,"aria-label":"カードを移動",className:"mt-0.5 cursor-grab touch-none px-0.5 text-fg-faint hover:text-fg-muted active:cursor-grabbing",children:"⠿"}),h.jsx("div",{className:"min-w-0 flex-1",children:a.repo?h.jsx("a",{href:`https://github.com/${a.repo}`,target:"_blank",rel:"noreferrer",className:"block truncate font-mono text-sm text-fg hover:text-emerald-400",title:a.repo,children:a.title}):r?h.jsx("input",{autoFocus:!0,value:d,onChange:D=>m(D.target.value),onBlur:z,onKeyDown:D=>{D.nativeEvent.isComposing||(D.key==="Enter"&&(D.preventDefault(),z()),D.key==="Escape"&&(m(a.title),o(!1)))},className:"w-full rounded border border-line-strong bg-panel-2 px-1 py-0.5 text-sm text-fg focus:border-emerald-500/50 focus:outline-none"}):h.jsx("button",{onClick:()=>o(!0),className:"block w-full truncate text-left text-sm text-fg",children:a.title})}),h.jsx("button",{type:"button",onClick:()=>{window.confirm(`カード「${a.title}」を削除しますか?`)&&u(D=>jb(D,i,a.id))},"aria-label":"カードを削除",className:"shrink-0 text-fg-faint opacity-60 transition-opacity group-hover:opacity-100 hover:text-rose-400",children:"×"})]})}function uS({boardId:a,column:i,cards:u}){const{mutate:r}=_t(),{setNodeRef:o,isOver:d}=bp({id:i.id}),[m,v]=S.useState(!1),[y,g]=S.useState("");function x(){const b=y.trim();if(b!==""){const w=new Date().toISOString();r(N=>Zg(N,a,i.id,{id:Jg("card"),repo:null,title:b,note:"",updatedAt:w}))}g(""),v(!1)}return h.jsxs("div",{className:"flex w-64 shrink-0 flex-col rounded-xl border border-line bg-panel-2/50",children:[h.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[h.jsx("span",{className:"font-mono text-xs font-semibold tracking-wider text-fg-muted uppercase",children:i.name}),h.jsx("span",{className:"font-mono text-xs text-fg-faint",children:u.length})]}),h.jsxs("div",{ref:o,className:`flex min-h-16 flex-1 flex-col gap-1.5 px-2 pb-2 transition-colors ${d?"bg-emerald-400/[0.04]":""}`,children:[h.jsx(Z1,{items:u.map(b=>b.id),strategy:Q1,children:u.map(b=>h.jsx(iS,{card:b,boardId:a},b.id))}),m?h.jsx("input",{autoFocus:!0,value:y,onChange:b=>g(b.target.value),onBlur:x,onKeyDown:b=>{b.nativeEvent.isComposing||(b.key==="Enter"&&(b.preventDefault(),x()),b.key==="Escape"&&(g(""),v(!1)))},placeholder:"カードのタイトル",className:"rounded-md border border-line-strong bg-panel px-2 py-1.5 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}):h.jsx("button",{type:"button",onClick:()=>v(!0),className:"rounded-md px-2 py-1 text-left text-xs text-fg-faint hover:text-fg-muted",children:"+ カード"})]})]})}function sS(){const{data:a,mutate:i}=_t(),u=zx(og(Vo,{activationConstraint:{distance:4}}),og(Go,{coordinateGetter:lS})),r=((a==null?void 0:a.boards.length)??0)>0;S.useEffect(()=>{a&&!r&&i(v=>void Kg(v,new Date().toISOString()))},[a,r,i]);const o=a==null?void 0:a.boards[0];if(!o)return h.jsx("div",{className:"grid h-full place-items-center text-sm text-fg-muted",children:"ボードを準備中…"});const d=Db(o);function m(v){const{active:y,over:g}=v;if(!g||y.id===g.id)return;const x=String(y.id),b=String(g.id);i(w=>{const N=w.boards.find(D=>D.id===o.id);if(!N)return;const z=Cb(N,b);z&&wb(w,o.id,x,z.columnId,z.index)})}return h.jsx("div",{className:"h-full overflow-x-auto p-4",children:h.jsx(U1,{sensors:u,collisionDetection:up,onDragEnd:m,children:h.jsx("div",{className:"flex gap-3",children:o.columns.map(v=>h.jsx(uS,{boardId:o.id,column:v,cards:d[v.id]??[]},v.id))})})})}function jp({kind:a,message:i}){return h.jsx("div",{className:"grid h-full place-items-center p-8",children:h.jsxs("div",{className:"max-w-md text-center",children:[a==="no-local-cache"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"キャッシュがありません"}),h.jsxs("p",{className:"text-sm text-fg-muted",children:["先にターミナルで"," ",h.jsx("code",{className:"rounded bg-panel px-1.5 py-0.5 font-mono text-emerald-400",children:"pnpm sync"})," を実行してください。"]})]}),a==="unauthorized"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"サインインの有効期限が切れました"}),h.jsx("p",{className:"text-sm text-fg-muted",children:"もう一度 GitHub でサインインすると、続きから利用できます。"}),h.jsx("a",{href:"/api/auth/login",className:"mt-5 inline-flex items-center rounded-lg border border-line-strong bg-panel px-4 py-2 text-sm font-medium text-fg transition-colors hover:border-emerald-500/40",children:"GitHub で再サインイン"})]}),a==="unavailable"&&h.jsxs(h.Fragment,{children:[h.jsx("h1",{className:"mb-2 text-lg font-semibold text-fg",children:"データを取得できませんでした"}),h.jsx("p",{className:"text-sm text-fg-muted",children:"GitHub からの取得に失敗しました。時間をおいて再読み込みしてください。"}),h.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"mt-5 inline-flex items-center rounded-lg border border-line-strong-strong bg-panel px-4 py-2 text-sm font-medium text-fg transition-colors hover:border-emerald-500/40",children:"再読み込み"})]}),a!=="unauthorized"&&h.jsx("p",{className:"mt-2 font-mono text-xs text-fg-faint",children:i})]})})}const rS="ENTRIES",Dp="KEYS",Op="VALUES",ft="";class io{constructor(i,u){const r=i._tree,o=Array.from(r.keys());this.set=i,this._type=u,this._path=o.length>0?[{node:r,keys:o}]:[]}next(){const i=this.dive();return this.backtrack(),i}dive(){if(this._path.length===0)return{done:!0,value:void 0};const{node:i,keys:u}=Oa(this._path);if(Oa(u)===ft)return{done:!1,value:this.result()};const r=i.get(Oa(u));return this._path.push({node:r,keys:Array.from(r.keys())}),this.dive()}backtrack(){if(this._path.length===0)return;const i=Oa(this._path).keys;i.pop(),!(i.length>0)&&(this._path.pop(),this.backtrack())}key(){return this.set._prefix+this._path.map(({keys:i})=>Oa(i)).filter(i=>i!==ft).join("")}value(){return Oa(this._path).node.get(ft)}result(){switch(this._type){case Op:return this.value();case Dp:return this.key();default:return[this.key(),this.value()]}}[Symbol.iterator](){return this}}const Oa=a=>a[a.length-1],cS=(a,i,u)=>{const r=new Map;if(i===void 0)return r;const o=i.length+1,d=o+u,m=new Uint8Array(d*o).fill(u+1);for(let v=0;v<o;++v)m[v]=v;for(let v=1;v<d;++v)m[v*o]=v;return Cp(a,i,u,r,m,1,o,""),r},Cp=(a,i,u,r,o,d,m,v)=>{const y=d*m;e:for(const g of a.keys())if(g===ft){const x=o[y-1];x<=u&&r.set(v,[a.get(g),x])}else{let x=d;for(let b=0;b<g.length;++b,++x){const w=g[b],N=m*x,z=N-m;let D=o[N];const O=Math.max(0,x-u-1),L=Math.min(m-1,x+u);for(let Z=O;Z<L;++Z){const q=w!==i[Z],X=o[z+Z]+ +q,Q=o[z+Z+1]+1,$=o[N+Z]+1,V=o[N+Z+1]=Math.min(X,Q,$);V<D&&(D=V)}if(D>u)continue e}Cp(a.get(g),i,u,r,o,x,m,v+g)}};class gl{constructor(i=new Map,u=""){this._size=void 0,this._tree=i,this._prefix=u}atPrefix(i){if(!i.startsWith(this._prefix))throw new Error("Mismatched prefix");const[u,r]=Ss(this._tree,i.slice(this._prefix.length));if(u===void 0){const[o,d]=Qo(r);for(const m of o.keys())if(m!==ft&&m.startsWith(d)){const v=new Map;return v.set(m.slice(d.length),o.get(m)),new gl(v,i)}}return new gl(u,i)}clear(){this._size=void 0,this._tree.clear()}delete(i){return this._size=void 0,oS(this._tree,i)}entries(){return new io(this,rS)}forEach(i){for(const[u,r]of this)i(u,r,this)}fuzzyGet(i,u){return cS(this._tree,i,u)}get(i){const u=So(this._tree,i);return u!==void 0?u.get(ft):void 0}has(i){const u=So(this._tree,i);return u!==void 0&&u.has(ft)}keys(){return new io(this,Dp)}set(i,u){if(typeof i!="string")throw new Error("key must be a string");return this._size=void 0,uo(this._tree,i).set(ft,u),this}get size(){if(this._size)return this._size;this._size=0;const i=this.entries();for(;!i.next().done;)this._size+=1;return this._size}update(i,u){if(typeof i!="string")throw new Error("key must be a string");this._size=void 0;const r=uo(this._tree,i);return r.set(ft,u(r.get(ft))),this}fetch(i,u){if(typeof i!="string")throw new Error("key must be a string");this._size=void 0;const r=uo(this._tree,i);let o=r.get(ft);return o===void 0&&r.set(ft,o=u()),o}values(){return new io(this,Op)}[Symbol.iterator](){return this.entries()}static from(i){const u=new gl;for(const[r,o]of i)u.set(r,o);return u}static fromObject(i){return gl.from(Object.entries(i))}}const Ss=(a,i,u=[])=>{if(i.length===0||a==null)return[a,u];for(const r of a.keys())if(r!==ft&&i.startsWith(r))return u.push([a,r]),Ss(a.get(r),i.slice(r.length),u);return u.push([a,i]),Ss(void 0,"",u)},So=(a,i)=>{if(i.length===0||a==null)return a;for(const u of a.keys())if(u!==ft&&i.startsWith(u))return So(a.get(u),i.slice(u.length))},uo=(a,i)=>{const u=i.length;e:for(let r=0;a&&r<u;){for(const d of a.keys())if(d!==ft&&i[r]===d[0]){const m=Math.min(u-r,d.length);let v=1;for(;v<m&&i[r+v]===d[v];)++v;const y=a.get(d);if(v===d.length)a=y;else{const g=new Map;g.set(d.slice(v),y),a.set(i.slice(r,r+v),g),a.delete(d),a=g}r+=v;continue e}const o=new Map;return a.set(i.slice(r),o),o}return a},oS=(a,i)=>{const[u,r]=Ss(a,i);if(u!==void 0){if(u.delete(ft),u.size===0)_p(r);else if(u.size===1){const[o,d]=u.entries().next().value;Tp(r,o,d)}}},_p=a=>{if(a.length===0)return;const[i,u]=Qo(a);if(i.delete(u),i.size===0)_p(a.slice(0,-1));else if(i.size===1){const[r,o]=i.entries().next().value;r!==ft&&Tp(a.slice(0,-1),r,o)}},Tp=(a,i,u)=>{if(a.length===0)return;const[r,o]=Qo(a);r.set(o+i,u),r.delete(o)},Qo=a=>a[a.length-1],Ko="or",Mp="and",fS="and_not";class za{constructor(i){if((i==null?void 0:i.fields)==null)throw new Error('MiniSearch: option "fields" must be provided');const u=i.autoVacuum==null||i.autoVacuum===!0?co:i.autoVacuum;this._options={...ro,...i,autoVacuum:u,searchOptions:{...Eg,...i.searchOptions||{}},autoSuggestOptions:{...pS,...i.autoSuggestOptions||{}}},this._index=new gl,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldIds={},this._fieldLength=new Map,this._avgFieldLength=[],this._nextId=0,this._storedFields=new Map,this._dirtCount=0,this._currentVacuum=null,this._enqueuedVacuum=null,this._enqueuedVacuumConditions=No,this.addFields(this._options.fields)}add(i){const{extractField:u,stringifyField:r,tokenize:o,processTerm:d,fields:m,idField:v}=this._options,y=u(i,v);if(y==null)throw new Error(`MiniSearch: document does not have ID field "${v}"`);if(this._idToShortId.has(y))throw new Error(`MiniSearch: duplicate ID ${y}`);const g=this.addDocumentId(y);this.saveStoredFields(g,i);for(const x of m){const b=u(i,x);if(b==null)continue;const w=o(r(b,x),x),N=this._fieldIds[x],z=new Set(w).size;this.addFieldLength(g,N,this._documentCount-1,z);for(const D of w){const O=d(D,x);if(Array.isArray(O))for(const L of O)this.addTerm(N,g,L);else O&&this.addTerm(N,g,O)}}}addAll(i){for(const u of i)this.add(u)}addAllAsync(i,u={}){const{chunkSize:r=10}=u,o={chunk:[],promise:Promise.resolve()},{chunk:d,promise:m}=i.reduce(({chunk:v,promise:y},g,x)=>(v.push(g),(x+1)%r===0?{chunk:[],promise:y.then(()=>new Promise(b=>setTimeout(b,0))).then(()=>this.addAll(v))}:{chunk:v,promise:y}),o);return m.then(()=>this.addAll(d))}remove(i){const{tokenize:u,processTerm:r,extractField:o,stringifyField:d,fields:m,idField:v}=this._options,y=o(i,v);if(y==null)throw new Error(`MiniSearch: document does not have ID field "${v}"`);const g=this._idToShortId.get(y);if(g==null)throw new Error(`MiniSearch: cannot remove document with ID ${y}: it is not in the index`);for(const x of m){const b=o(i,x);if(b==null)continue;const w=u(d(b,x),x),N=this._fieldIds[x],z=new Set(w).size;this.removeFieldLength(g,N,this._documentCount,z);for(const D of w){const O=r(D,x);if(Array.isArray(O))for(const L of O)this.removeTerm(N,g,L);else O&&this.removeTerm(N,g,O)}}this._storedFields.delete(g),this._documentIds.delete(g),this._idToShortId.delete(y),this._fieldLength.delete(g),this._documentCount-=1}removeAll(i){if(i)for(const u of i)this.remove(u);else{if(arguments.length>0)throw new Error("Expected documents to be present. Omit the argument to remove all documents.");this._index=new gl,this._documentCount=0,this._documentIds=new Map,this._idToShortId=new Map,this._fieldLength=new Map,this._avgFieldLength=[],this._storedFields=new Map,this._nextId=0}}discard(i){const u=this._idToShortId.get(i);if(u==null)throw new Error(`MiniSearch: cannot discard document with ID ${i}: it is not in the index`);this._idToShortId.delete(i),this._documentIds.delete(u),this._storedFields.delete(u),(this._fieldLength.get(u)||[]).forEach((r,o)=>{this.removeFieldLength(u,o,this._documentCount,r)}),this._fieldLength.delete(u),this._documentCount-=1,this._dirtCount+=1,this.maybeAutoVacuum()}maybeAutoVacuum(){if(this._options.autoVacuum===!1)return;const{minDirtFactor:i,minDirtCount:u,batchSize:r,batchWait:o}=this._options.autoVacuum;this.conditionalVacuum({batchSize:r,batchWait:o},{minDirtCount:u,minDirtFactor:i})}discardAll(i){const u=this._options.autoVacuum;try{this._options.autoVacuum=!1;for(const r of i)this.discard(r)}finally{this._options.autoVacuum=u}this.maybeAutoVacuum()}replace(i){const{idField:u,extractField:r}=this._options,o=r(i,u);this.discard(o),this.add(i)}vacuum(i={}){return this.conditionalVacuum(i)}conditionalVacuum(i,u){return this._currentVacuum?(this._enqueuedVacuumConditions=this._enqueuedVacuumConditions&&u,this._enqueuedVacuum!=null?this._enqueuedVacuum:(this._enqueuedVacuum=this._currentVacuum.then(()=>{const r=this._enqueuedVacuumConditions;return this._enqueuedVacuumConditions=No,this.performVacuuming(i,r)}),this._enqueuedVacuum)):this.vacuumConditionsMet(u)===!1?Promise.resolve():(this._currentVacuum=this.performVacuuming(i),this._currentVacuum)}async performVacuuming(i,u){const r=this._dirtCount;if(this.vacuumConditionsMet(u)){const o=i.batchSize||Eo.batchSize,d=i.batchWait||Eo.batchWait;let m=1;for(const[v,y]of this._index){for(const[g,x]of y)for(const[b]of x)this._documentIds.has(b)||(x.size<=1?y.delete(g):x.delete(b));this._index.get(v).size===0&&this._index.delete(v),m%o===0&&await new Promise(g=>setTimeout(g,d)),m+=1}this._dirtCount-=r}await null,this._currentVacuum=this._enqueuedVacuum,this._enqueuedVacuum=null}vacuumConditionsMet(i){if(i==null)return!0;let{minDirtCount:u,minDirtFactor:r}=i;return u=u||co.minDirtCount,r=r||co.minDirtFactor,this.dirtCount>=u&&this.dirtFactor>=r}get isVacuuming(){return this._currentVacuum!=null}get dirtCount(){return this._dirtCount}get dirtFactor(){return this._dirtCount/(1+this._documentCount+this._dirtCount)}has(i){return this._idToShortId.has(i)}getStoredFields(i){const u=this._idToShortId.get(i);if(u!=null)return this._storedFields.get(u)}search(i,u={}){const{searchOptions:r}=this._options,o={...r,...u},d=this.executeQuery(i,u),m=[];for(const[v,{score:y,terms:g,match:x}]of d){const b=g.length||1,w={id:this._documentIds.get(v),score:y*b,terms:Object.keys(x),queryTerms:g,match:x};Object.assign(w,this._storedFields.get(v)),(o.filter==null||o.filter(w))&&m.push(w)}return i===za.wildcard&&o.boostDocument==null||m.sort(wg),m}autoSuggest(i,u={}){u={...this._options.autoSuggestOptions,...u};const r=new Map;for(const{score:d,terms:m}of this.search(i,u)){const v=m.join(" "),y=r.get(v);y!=null?(y.score+=d,y.count+=1):r.set(v,{score:d,terms:m,count:1})}const o=[];for(const[d,{score:m,terms:v,count:y}]of r)o.push({suggestion:d,terms:v,score:m/y});return o.sort(wg),o}get documentCount(){return this._documentCount}get termCount(){return this._index.size}static loadJSON(i,u){if(u==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJS(JSON.parse(i),u)}static async loadJSONAsync(i,u){if(u==null)throw new Error("MiniSearch: loadJSON should be given the same options used when serializing the index");return this.loadJSAsync(JSON.parse(i),u)}static getDefault(i){if(ro.hasOwnProperty(i))return so(ro,i);throw new Error(`MiniSearch: unknown option "${i}"`)}static loadJS(i,u){const{index:r,documentIds:o,fieldLength:d,storedFields:m,serializationVersion:v}=i,y=this.instantiateMiniSearch(i,u);y._documentIds=fs(o),y._fieldLength=fs(d),y._storedFields=fs(m);for(const[g,x]of y._documentIds)y._idToShortId.set(x,g);for(const[g,x]of r){const b=new Map;for(const w of Object.keys(x)){let N=x[w];v===1&&(N=N.ds),b.set(parseInt(w,10),fs(N))}y._index.set(g,b)}return y}static async loadJSAsync(i,u){const{index:r,documentIds:o,fieldLength:d,storedFields:m,serializationVersion:v}=i,y=this.instantiateMiniSearch(i,u);y._documentIds=await ds(o),y._fieldLength=await ds(d),y._storedFields=await ds(m);for(const[x,b]of y._documentIds)y._idToShortId.set(b,x);let g=0;for(const[x,b]of r){const w=new Map;for(const N of Object.keys(b)){let z=b[N];v===1&&(z=z.ds),w.set(parseInt(N,10),await ds(z))}++g%1e3===0&&await zp(0),y._index.set(x,w)}return y}static instantiateMiniSearch(i,u){const{documentCount:r,nextId:o,fieldIds:d,averageFieldLength:m,dirtCount:v,serializationVersion:y}=i;if(y!==1&&y!==2)throw new Error("MiniSearch: cannot deserialize an index created with an incompatible version");const g=new za(u);return g._documentCount=r,g._nextId=o,g._idToShortId=new Map,g._fieldIds=d,g._avgFieldLength=m,g._dirtCount=v||0,g._index=new gl,g}executeQuery(i,u={}){if(i===za.wildcard)return this.executeWildcardQuery(u);if(typeof i!="string"){const w={...u,...i,queries:void 0},N=i.queries.map(z=>this.executeQuery(z,w));return this.combineResults(N,w.combineWith)}const{tokenize:r,processTerm:o,searchOptions:d}=this._options,m={tokenize:r,processTerm:o,...d,...u},{tokenize:v,processTerm:y}=m,b=v(i).flatMap(w=>y(w)).filter(w=>!!w).map(gS(m)).map(w=>this.executeQuerySpec(w,m));return this.combineResults(b,m.combineWith)}executeQuerySpec(i,u){const r={...this._options.searchOptions,...u},o=(r.fields||this._options.fields).reduce((D,O)=>({...D,[O]:so(r.boost,O)||1}),{}),{boostDocument:d,weights:m,maxFuzzy:v,bm25:y}=r,{fuzzy:g,prefix:x}={...Eg.weights,...m},b=this._index.get(i.term),w=this.termResults(i.term,i.term,1,i.termBoost,b,o,d,y);let N,z;if(i.prefix&&(N=this._index.atPrefix(i.term)),i.fuzzy){const D=i.fuzzy===!0?.2:i.fuzzy,O=D<1?Math.min(v,Math.round(i.term.length*D)):D;O&&(z=this._index.fuzzyGet(i.term,O))}if(N)for(const[D,O]of N){const L=D.length-i.term.length;if(!L)continue;z==null||z.delete(D);const Z=x*D.length/(D.length+.3*L);this.termResults(i.term,D,Z,i.termBoost,O,o,d,y,w)}if(z)for(const D of z.keys()){const[O,L]=z.get(D);if(!L)continue;const Z=g*D.length/(D.length+L);this.termResults(i.term,D,Z,i.termBoost,O,o,d,y,w)}return w}executeWildcardQuery(i){const u=new Map,r={...this._options.searchOptions,...i};for(const[o,d]of this._documentIds){const m=r.boostDocument?r.boostDocument(d,"",this._storedFields.get(o)):1;u.set(o,{score:m,terms:[],match:{}})}return u}combineResults(i,u=Ko){if(i.length===0)return new Map;const r=u.toLowerCase(),o=dS[r];if(!o)throw new Error(`Invalid combination operator: ${u}`);return i.reduce(o)||new Map}toJSON(){const i=[];for(const[u,r]of this._index){const o={};for(const[d,m]of r)o[d]=Object.fromEntries(m);i.push([u,o])}return{documentCount:this._documentCount,nextId:this._nextId,documentIds:Object.fromEntries(this._documentIds),fieldIds:this._fieldIds,fieldLength:Object.fromEntries(this._fieldLength),averageFieldLength:this._avgFieldLength,storedFields:Object.fromEntries(this._storedFields),dirtCount:this._dirtCount,index:i,serializationVersion:2}}termResults(i,u,r,o,d,m,v,y,g=new Map){if(d==null)return g;for(const x of Object.keys(m)){const b=m[x],w=this._fieldIds[x],N=d.get(w);if(N==null)continue;let z=N.size;const D=this._avgFieldLength[w];for(const O of N.keys()){if(!this._documentIds.has(O)){this.removeTerm(w,O,u),z-=1;continue}const L=v?v(this._documentIds.get(O),u,this._storedFields.get(O)):1;if(!L)continue;const Z=N.get(O),q=this._fieldLength.get(O)[w],X=mS(Z,z,this._documentCount,q,D,y),Q=r*o*b*L*X,$=g.get(O);if($){$.score+=Q,vS($.terms,i);const V=so($.match,u);V?V.push(x):$.match[u]=[x]}else g.set(O,{score:Q,terms:[i],match:{[u]:[x]}})}}return g}addTerm(i,u,r){const o=this._index.fetch(r,Ag);let d=o.get(i);if(d==null)d=new Map,d.set(u,1),o.set(i,d);else{const m=d.get(u);d.set(u,(m||0)+1)}}removeTerm(i,u,r){if(!this._index.has(r)){this.warnDocumentChanged(u,i,r);return}const o=this._index.fetch(r,Ag),d=o.get(i);d==null||d.get(u)==null?this.warnDocumentChanged(u,i,r):d.get(u)<=1?d.size<=1?o.delete(i):d.delete(u):d.set(u,d.get(u)-1),this._index.get(r).size===0&&this._index.delete(r)}warnDocumentChanged(i,u,r){for(const o of Object.keys(this._fieldIds))if(this._fieldIds[o]===u){this._options.logger("warn",`MiniSearch: document with ID ${this._documentIds.get(i)} has changed before removal: term "${r}" was not present in field "${o}". Removing a document after it has changed can corrupt the index!`,"version_conflict");return}}addDocumentId(i){const u=this._nextId;return this._idToShortId.set(i,u),this._documentIds.set(u,i),this._documentCount+=1,this._nextId+=1,u}addFields(i){for(let u=0;u<i.length;u++)this._fieldIds[i[u]]=u}addFieldLength(i,u,r,o){let d=this._fieldLength.get(i);d==null&&this._fieldLength.set(i,d=[]),d[u]=o;const v=(this._avgFieldLength[u]||0)*r+o;this._avgFieldLength[u]=v/(r+1)}removeFieldLength(i,u,r,o){if(r===1){this._avgFieldLength[u]=0;return}const d=this._avgFieldLength[u]*r-o;this._avgFieldLength[u]=d/(r-1)}saveStoredFields(i,u){const{storeFields:r,extractField:o}=this._options;if(r==null||r.length===0)return;let d=this._storedFields.get(i);d==null&&this._storedFields.set(i,d={});for(const m of r){const v=o(u,m);v!==void 0&&(d[m]=v)}}}za.wildcard=Symbol("*");const so=(a,i)=>Object.prototype.hasOwnProperty.call(a,i)?a[i]:void 0,dS={[Ko]:(a,i)=>{for(const u of i.keys()){const r=a.get(u);if(r==null)a.set(u,i.get(u));else{const{score:o,terms:d,match:m}=i.get(u);r.score=r.score+o,r.match=Object.assign(r.match,m),Ng(r.terms,d)}}return a},[Mp]:(a,i)=>{const u=new Map;for(const r of i.keys()){const o=a.get(r);if(o==null)continue;const{score:d,terms:m,match:v}=i.get(r);Ng(o.terms,m),u.set(r,{score:o.score+d,terms:o.terms,match:Object.assign(o.match,v)})}return u},[fS]:(a,i)=>{for(const u of i.keys())a.delete(u);return a}},hS={k:1.2,b:.7,d:.5},mS=(a,i,u,r,o,d)=>{const{k:m,b:v,d:y}=d;return Math.log(1+(u-i+.5)/(i+.5))*(y+a*(m+1)/(a+m*(1-v+v*r/o)))},gS=a=>(i,u,r)=>{const o=typeof a.fuzzy=="function"?a.fuzzy(i,u,r):a.fuzzy||!1,d=typeof a.prefix=="function"?a.prefix(i,u,r):a.prefix===!0,m=typeof a.boostTerm=="function"?a.boostTerm(i,u,r):1;return{term:i,fuzzy:o,prefix:d,termBoost:m}},ro={idField:"id",extractField:(a,i)=>a[i],stringifyField:(a,i)=>a.toString(),tokenize:a=>a.split(yS),processTerm:a=>a.toLowerCase(),fields:void 0,searchOptions:void 0,storeFields:[],logger:(a,i)=>{typeof(console==null?void 0:console[a])=="function"&&console[a](i)},autoVacuum:!0},Eg={combineWith:Ko,prefix:!1,fuzzy:!1,maxFuzzy:6,boost:{},weights:{fuzzy:.45,prefix:.375},bm25:hS},pS={combineWith:Mp,prefix:(a,i,u)=>i===u.length-1},Eo={batchSize:1e3,batchWait:10},No={minDirtFactor:.1,minDirtCount:20},co={...Eo,...No},vS=(a,i)=>{a.includes(i)||a.push(i)},Ng=(a,i)=>{for(const u of i)a.includes(u)||a.push(u)},wg=({score:a},{score:i})=>i-a,Ag=()=>new Map,fs=a=>{const i=new Map;for(const u of Object.keys(a))i.set(parseInt(u,10),a[u]);return i},ds=async a=>{const i=new Map;let u=0;for(const r of Object.keys(a))i.set(parseInt(r,10),a[r]),++u%1e3===0&&await zp(0);return i},zp=a=>new Promise(i=>setTimeout(i,a)),yS=/[\n\r\p{Z}\p{P}]+/u,bS={repo:null,state:null,type:null,label:null};function jg(a){return`${a.repo}#${a.type}#${a.number}`}const Dg=typeof Intl<"u"&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"word"}):null;function xS(a){if(!Dg)return a.split(/[\s\p{P}]+/u).filter(Boolean);const i=[];for(const u of Dg.segment(a))u.isWordLike&&i.push(u.segment);return i}function SS(a,i){return a.filter(u=>(!i.repo||u.repo===i.repo)&&(!i.state||u.state===i.state)&&(!i.type||u.type===i.type)&&(!i.label||u.labels.includes(i.label)))}function ES(a){const i=new Map;for(const u of a)for(const r of u.labels)i.set(r,(i.get(r)??0)+1);return[...i.entries()].map(([u,r])=>({label:u,count:r})).sort((u,r)=>r.count-u.count)}function NS(a){const i=new za({fields:["title","labels","repo"],storeFields:[],tokenize:xS});return i.addAll(a.map(u=>({id:jg(u),title:u.title,labels:u.labels.join(" "),repo:u.repo}))),(u,r)=>{const o=u.trim();let d=a;if(o!==""){const m=new Set(i.search(o,{prefix:!0,fuzzy:.2,combineWith:"AND"}).map(v=>String(v.id)));d=a.filter(v=>m.has(jg(v)))}return SS(d,r)}}const wS=20;function AS(){const{items:a,loading:i,error:u}=To(),[r,o]=S.useState(""),[d,m]=S.useState(bS),v=S.useMemo(()=>NS(a),[a]),y=S.useMemo(()=>v(r,d),[v,r,d]),g=S.useMemo(()=>[...new Set(a.map(b=>b.repo))].sort(),[a]),x=S.useMemo(()=>ES(a).slice(0,wS),[a]);return i?h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"}):u?h.jsx(jp,{kind:u,message:"issue / PR を取得できませんでした"}):a.length===0?h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["open な issue / PR がありません。",h.jsxs(h.Fragment,{children:[h.jsx("br",{}),"ターミナルで ",h.jsx("code",{className:"rounded bg-panel px-1 font-mono text-emerald-400",children:"pnpm sync"})," を実行してください。"]})]}):h.jsxs("div",{className:"mx-auto flex h-full max-w-4xl flex-col gap-4 overflow-y-auto p-5",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2",role:"search",children:[h.jsx("input",{type:"search","aria-label":"issue / PR をタイトル・ラベル・repo で検索",value:r,onChange:b=>o(b.target.value),placeholder:"issue / PR をタイトル・ラベル・repo で検索","data-shortcut":"search",className:"min-w-[240px] flex-1 rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("div",{className:"flex overflow-hidden rounded-md border border-line",children:[null,"issue","pr"].map(b=>h.jsx("button",{onClick:()=>m(w=>({...w,type:b})),"aria-pressed":d.type===b,className:`px-2.5 py-1.5 text-xs transition-colors ${d.type===b?"bg-panel text-fg":"text-fg-muted hover:text-fg"}`,children:b===null?"全て":b==="pr"?"PR":"Issue"},b??"all"))}),h.jsxs("select",{value:d.repo??"","aria-label":"repoで絞る",onChange:b=>m(w=>({...w,repo:b.target.value||null})),className:"rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none",children:[h.jsx("option",{value:"",children:"全 repo"}),g.map(b=>h.jsx("option",{value:b,children:b.split("/")[1]},b))]})]}),x.length>0&&h.jsx("div",{className:"flex flex-wrap gap-1.5",children:x.map(({label:b,count:w})=>{const N=d.label===b;return h.jsxs("button",{onClick:()=>m(z=>({...z,label:N?null:b})),"aria-pressed":N,className:`rounded-md border px-1.5 py-0.5 text-xs transition-colors ${N?"border-emerald-500/60 bg-emerald-400/10 font-medium text-emerald-300":"border-line text-fg-muted hover:text-fg"}`,children:[N?"✓ ":"",b," ",h.jsx("span",{className:"text-fg-faint",children:w})]},b)})}),h.jsxs("div",{className:"text-xs text-fg-faint",children:[y.length," 件 / 全 ",a.length," 件(open)"]}),h.jsxs("ul",{className:"flex flex-col gap-1.5",children:[y.map(b=>h.jsx("li",{children:h.jsxs("a",{href:b.url,target:"_blank",rel:"noreferrer",className:"flex items-start gap-3 rounded-lg border border-line bg-panel p-3 transition-colors hover:border-emerald-500/40",children:[h.jsx("span",{className:`mt-0.5 shrink-0 rounded px-1.5 py-0.5 font-mono text-xs ${b.type==="pr"?"bg-violet-500/15 text-violet-300":"bg-sky-500/15 text-sky-300"}`,children:b.type==="pr"?"PR":"ISS"}),h.jsxs("div",{className:"min-w-0 flex-1",children:[h.jsx("div",{className:"flex items-baseline gap-2",children:h.jsx("span",{className:"truncate text-sm text-fg",children:b.title})}),h.jsxs("div",{className:"mt-1 flex flex-wrap items-center gap-1.5 text-xs text-fg-faint",children:[h.jsxs("span",{className:"font-mono",children:[b.repo.split("/")[1]," #",b.number]}),b.comments>0&&h.jsxs("span",{children:["💬 ",b.comments]}),h.jsx("span",{children:b.updatedAt.slice(0,10)}),b.labels.map(w=>h.jsx("span",{className:"rounded bg-white/5 px-1 text-fg-muted",children:w},w))]})]})]})},`${b.repo}#${b.type}#${b.number}`)),y.length===0&&h.jsx("li",{className:"py-8 text-center text-sm text-fg-muted",children:"該当なし"})]})]})}const Rp=a=>a.split("/")[0].toLowerCase();function jS(a){if(a==="personal")return{kind:"personal"};if(a!=null&&a.startsWith("org:")){const i=a.slice(4);if(i)return{kind:"org",name:i}}return{kind:"all"}}function oo(a){return a.kind==="org"?`org:${a.name}`:a.kind}function DS(a,i){if(!i)return[{kind:"all"}];const u=i.toLowerCase(),r=[...new Set(a.map(o=>Rp(o.repo.nameWithOwner)).filter(o=>o!==u))].sort();return r.length===0?[{kind:"all"}]:[{kind:"all"},{kind:"personal"},...r.map(o=>({kind:"org",name:o}))]}function Up(a,i,u){if(a.kind==="all"||!i)return!0;const r=a.kind==="personal"?i.toLowerCase():a.name.toLowerCase();return Rp(u)===r}function OS(a,i,u,r,o){if(a.kind==="all"||!i)return{stats:u,issues:r,events:o};const d=m=>Up(a,i,m);return{stats:u.filter(m=>d(m.repo.nameWithOwner)),issues:r.filter(m=>d(m.repo)),events:o.filter(m=>d(m.repo))}}function Hp(a){return a.kind==="all"?"全体":a.kind==="personal"?"個人開発":a.name}function CS(a){return a.kind==="all"?"":a.kind==="personal"?"いまは個人開発のリポジトリだけの話をしています。組織の業務は対象外なので、そちらへ話を広げないでください。":`いまは組織${a.name}のリポジトリだけの話をしています。個人開発のリポジトリは対象外なので、そちらへ話を広げないでください。`}const _S=25,TS=40,MS=10,zS=10,Og=["done","closed","完了"];function Ua(a){return(a??"").split(`
|
|
57
|
+
`)[0].trim()}function RS(a){const i=a==null?void 0:a.boards[0];if(!i)return[];const u=new Map(i.cards.map(o=>[o.id,o])),r=[];for(const o of i.columns)if(!(Og.includes(o.id.toLowerCase())||Og.includes(o.name.toLowerCase())))for(const d of o.cardIds){const m=u.get(d);if(!m)continue;const v=m.repo?` (${m.repo})`:"";r.push(`- [${o.name}] ${m.title}${v}`)}return r.slice(0,TS)}function US(a,i,u,r){const o=new Set((i==null?void 0:i.hidden)??[]),d=a.filter(w=>w.totalCommits>0&&!o.has(w.repo.nameWithOwner)).sort((w,N)=>N.totalCommits-w.totalCommits).slice(0,_S),m=w=>((i==null?void 0:i.tags.byRepo[w])??[]).map(N=>{var z;return(z=i==null?void 0:i.tags.defs.find(D=>D.id===N))==null?void 0:z.label}).filter(Boolean).join("/"),v=d.map(w=>{var L;const N=w.repo,z=m(N.nameWithOwner),D=[`- ${N.nameWithOwner}`,`${w.totalCommits}commits`,`最終push ${w.daysSincePush}日前`,N.primaryLanguage??"言語不明"];N.openPrCount>0&&D.push(`openPR ${N.openPrCount}`),N.openIssueCount>0&&D.push(`openIssue ${N.openIssueCount}`),z&&D.push(`タグ ${z}`);const O=Ua((L=N.lastCommits[0])==null?void 0:L.message);return`${D.join(" / ")}${O?`
|
|
58
|
+
直近: ${O}`:""}`}),y=RS(i),g=Object.entries((i==null?void 0:i.notes)??{}).filter(([,w])=>w.trim()!=="").slice(0,10).map(([w,N])=>`- ${w}: ${Ua(N).slice(0,120)}`),x=r!=null&&r.scope?CS(r.scope):"",b=[...x?[`${x}
|
|
59
|
+
`]:[],`直近${u}日の活動 (${d.length}リポジトリ${r!=null&&r.scope&&r.scope.kind!=="all"?` / ${Hp(r.scope)}`:""})`,v.length>0?v.join(`
|
|
60
|
+
`):"- この期間のコミットはありません"];return y.length>0&&b.push(`
|
|
61
|
+
残タスク (ボードの未完了カード)
|
|
62
|
+
${y.join(`
|
|
63
|
+
`)}`),g.length>0&&b.push(`
|
|
64
|
+
メモ
|
|
65
|
+
${g.join(`
|
|
66
|
+
`)}`),r&&b.push(...BS(r,o)),r&&b.push(...YS(r)),r&&b.push(...XS(r,o)),b.join(`
|
|
67
|
+
`)}function HS(a){const i=a.reviewDecision==="CHANGES_REQUESTED"?" [要修正]":"";return`- ${a.repo} #${a.number} ${Ua(a.title)}${i}`}function BS(a,i){const u=[];if(!a.login)return u;const r=a.issues.filter(O=>!i.has(O.repo)),d=[...jo(r,a.login).keys()],m=[],v=[];for(const O of d){const L=Hg(r,O,a.login);m.push(...L.awaitingReview),v.push(...L.toReview)}const y=a.login.toLowerCase(),g=O=>(O.author??"").toLowerCase()===y,x=r.filter(O=>O.type==="pr"&&g(O)&&O.isDraft),b=new Set(r.filter(O=>O.type==="pr"&&g(O)).flatMap(O=>(O.linkedIssues??[]).map(L=>`${O.repo}#${L}`))),w=r.filter(O=>O.type==="issue"&&g(O)&&!b.has(`${O.repo}#${O.number}`)),z=[["レビュー待ちの自分のPR",m],["Draftの自分のPR",x],["自分がレビューするPR",v],["手を付けていない自分のissue",w]].filter(([,O])=>O.length>0).map(([O,L])=>`${O} (${L.length})
|
|
68
|
+
${L.slice(0,MS).map(HS).join(`
|
|
69
|
+
`)}`);z.length>0&&u.push(`
|
|
70
|
+
自分の仕事
|
|
71
|
+
${z.join(`
|
|
72
|
+
`)}`);const D=Fb(a.events,{readAt:a.readAt??null,readIds:a.readIds??[]}).filter(O=>!i.has(O.repo)).slice(0,zS);return D.length>0&&u.push(`
|
|
73
|
+
最近起きたこと (受信箱の未読)
|
|
74
|
+
${D.map(O=>`- ${O.at.slice(0,16).replace("T"," ")} ${O.repo} #${O.number} ${Ta(O)}: ${Ua(O.title)}`).join(`
|
|
75
|
+
`)}`),u}const LS=["あなたは開発者の壁打ち相手です。相手のGitHubの直近の活動と残タスクが与えられます。","目的は、いま注力していることの整理と、次の一手を決める手助けです。","守ること:","- 与えられたデータに無いことを推測で断定しない。分からないことは質問で返す。","- 一度に投げる質問は1つか2つまで。相手が答えやすい具体的な問いにする。","- 助言は実行できる粒度で書く。抽象論とスローガンを避ける。","- 日本語で、平易に、短く答える。日本語と英数字の間に半角スペースを入れない。","- 見出しや強調記法を並べない。箇条書きは必要なときだけ。"].join(`
|
|
76
|
+
`);function kS(a,i){return[{role:"system",content:LS},{role:"system",content:`以下が相手の現状です。
|
|
77
|
+
|
|
78
|
+
${a}`},...i]}const qS=15;function YS(a){var d;const i=a.jira??[];if(i.length===0||((d=a.scope)==null?void 0:d.kind)==="personal")return[];const u=m=>m==="indeterminate"?0:1,o=[...i].sort((m,v)=>u(m.statusCategory)-u(v.statusCategory)||(m.updatedAt<v.updatedAt?1:-1)).slice(0,qS).map(m=>{const v=m.isMine?"":" [報告者]",y=m.priority&&m.priority!=="Not Decided"?` / ${m.priority}`:"";return`- ${m.key} ${Ua(m.title)}${v} (${m.status}${y} / 更新 ${m.updatedAt.slice(0,10)})`});return[`
|
|
79
|
+
Jiraの未完了 (${i.length})
|
|
80
|
+
${o.join(`
|
|
81
|
+
`)}`]}const GS=10;function XS(a,i){var d;if(((d=a.scope)==null?void 0:d.kind)==="personal")return[];const u=a.scope??{kind:"all"},r=(a.confluence??[]).filter(m=>!i.has(m.repo)&&Up(u,a.login,m.repo));if(r.length===0)return[];const o=[...r].sort((m,v)=>v.daysBehind-m.daysBehind).slice(0,GS).map(m=>`- ${Ua(m.title)} (${m.space}) — ${m.repo}のpushが${m.daysBehind}日新しい`);return[`
|
|
82
|
+
Confluenceとの齟齬 (${r.length}) ページを書いたあとに実装が進んだもの
|
|
83
|
+
${o.join(`
|
|
84
|
+
`)}`]}const Cg=40,VS=30;function _g(a,i){return{id:a,startedAt:i,updatedAt:i,messages:[]}}function Tg(a,i,u){const r=i.filter(o=>o.content.trim()!=="");return{...a,updatedAt:u,messages:r}}function QS(a){var u;const i=(u=a.messages.find(r=>r.role==="user"))==null?void 0:u.content.split(`
|
|
85
|
+
`)[0].trim();return i?i.length>Cg?i.slice(0,Cg):i:a.startedAt.slice(0,10)}function wo(a,i=VS){return a.filter(u=>u.messages.length>0).sort((u,r)=>u.updatedAt<r.updatedAt?1:u.updatedAt>r.updatedAt?-1:0).slice(0,i)}const KS={user:"あなた",assistant:"壁打ち"};function ZS(a){const i=["# 壁打ちのログ",""];for(const u of wo(a)){const r=`${u.updatedAt.slice(0,10)} ${u.updatedAt.slice(11,16)}`;i.push(`## ${r} ${QS(u)}`,"");for(const o of u.messages){const d=KS[o.role];d&&i.push(`### ${d}`,"",o.content.trim(),"")}}return i.join(`
|
|
86
|
+
`)}const JS="gpt-5.6-luna",$S="https://api.openai.com/v1/chat/completions";function WS(a){const i=a.replace(/\r\n/g,`
|
|
87
|
+
`).split(`
|
|
88
|
+
|
|
89
|
+
`),u=i.pop()??"";return{events:i.filter(r=>r.trim()!==""),rest:u}}function FS(a){var i,u,r;for(const o of a.split(`
|
|
90
|
+
`)){if(!o.startsWith("data:"))continue;const d=o.slice(5).trim();if(!(d===""||d==="[DONE]"))try{const m=JSON.parse(d),v=(r=(u=(i=m==null?void 0:m.choices)==null?void 0:i[0])==null?void 0:u.delta)==null?void 0:r.content;if(typeof v=="string"&&v!=="")return v}catch{continue}}return null}async function IS(a){var u;const i=await a.text().catch(()=>"");try{const r=JSON.parse(i);if(typeof((u=r==null?void 0:r.error)==null?void 0:u.message)=="string")return r.error.message}catch{}return i.slice(0,300)||`HTTP ${a.status}`}async function PS(a){const i=await fetch($S,{method:"POST",headers:{"content-type":"application/json",authorization:`Bearer ${a.apiKey}`},body:JSON.stringify({model:a.model,messages:a.messages,stream:!0}),signal:a.signal});if(!i.ok)throw new Error(await IS(i));if(!i.body)throw new Error("応答が空でした");const u=i.body.getReader(),r=new TextDecoder;let o="";const d=m=>{for(const v of m){const y=FS(v);y!==null&&a.onDelta(y)}};for(;;){const{done:m,value:v}=await u.read();if(m)break;o+=r.decode(v,{stream:!0});const{events:y,rest:g}=WS(o);o=g,d(y)}o+=r.decode(),o.trim()!==""&&d([o])}const e2="github-reporadar_openai_key",t2="github-reporadar_openai_model",n2="github-reporadar_coach_scope",l2=["この期間、私は何に注力していた?","手を広げすぎている兆候はある?","次の1週間で最初に片付けるべきものは?","止まっているものを再開する順番を決めたい","今日の作業順を決めたい。レビュー待ちと依頼されたレビューを先に見て","要修正のレビュー指摘にどの順で対応するか、精査を手伝って"];function a2({stats:a,periodDays:i,work:u}){const{data:r,mutate:o}=_t(),[d,m]=pn(e2,""),[v,y]=pn(t2,JS),[g,x]=pn(n2,"all"),b=jS(g),w=DS(a,(u==null?void 0:u.login)??null),[N,z]=S.useState(""),D=(r==null?void 0:r.coachThreads)??[],[O,L]=S.useState(()=>`t${Date.now()}`),Z=D.find(W=>W.id===O),[q,X]=S.useState(()=>{var W;return((W=D[0])==null?void 0:W.messages)??[]}),[Q]=S.useState(()=>{var W;return((W=D[0])==null?void 0:W.id)??null}),[$,V]=S.useState(""),[ae,de]=S.useState(!1),[me,fe]=S.useState(null),[xe,ne]=S.useState(!1),F=S.useRef(null),se=S.useMemo(()=>OS(b,(u==null?void 0:u.login)??null,a,(u==null?void 0:u.issues)??[],(u==null?void 0:u.events)??[]),[b,u==null?void 0:u.login,a,u==null?void 0:u.issues,u==null?void 0:u.events]),R=S.useMemo(()=>u?{...u,issues:se.issues,events:se.events,scope:b}:void 0,[u,se.issues,se.events,b]),G=S.useMemo(()=>US(se.stats,r,i,R),[se.stats,r,i,R]);function le(W){const A=new Date().toISOString(),H=Q??O;o(K=>{const ie=(K.coachThreads??[]).filter(re=>re.id!==H),ee=(K.coachThreads??[]).find(re=>re.id===H)??_g(H,A);K.coachThreads=wo([Tg(ee,W,A),...ie])});const J=wo([Tg(Z??_g(H,A),W,A),...D.filter(K=>K.id!==H)]);fetch("/api/coach-log",{method:"POST",headers:{"content-type":"text/markdown"},body:ZS(J)}).catch(()=>{})}async function oe(W){const A=W.trim();if(A===""||ae)return;fe(null),V("");const H=[...q,{role:"user",content:A}];X([...H,{role:"assistant",content:""}]),de(!0);const J=new AbortController;F.current=J;try{await PS({apiKey:d,model:v,messages:kS(G,H),signal:J.signal,onDelta:K=>X(ie=>{const ee=[...ie],re=ee[ee.length-1];return ee[ee.length-1]={...re,content:re.content+K},ee})})}catch(K){K instanceof DOMException&&K.name==="AbortError"||fe(K instanceof Error?K.message:String(K)),X(ie=>ie.filter((ee,re)=>!(re===ie.length-1&&ee.role==="assistant"&&ee.content==="")))}finally{de(!1),F.current=null,X(K=>(le(K),K))}}return d===""?h.jsxs("div",{className:"mx-auto max-w-xl p-6",children:[h.jsx("h2",{className:"text-base font-medium text-fg",children:"壁打ちを始める"}),h.jsx("p",{className:"mt-2 text-sm text-fg-muted",children:"OpenAIのAPIキーを入れると使えます。キーはこのブラウザのlocalStorageにだけ置き、送信先はOpenAIのAPIだけです。 サーバーには送りません。"}),h.jsxs("form",{className:"mt-4 flex flex-col gap-3",onSubmit:W=>{W.preventDefault(),N.trim()!==""&&m(N.trim())},children:[h.jsx("input",{type:"password",value:N,onChange:W=>z(W.target.value),placeholder:"sk-...","aria-label":"OpenAIのAPIキー",autoComplete:"off",className:"rounded-md border border-line-strong bg-panel-2 px-3 py-2 font-mono text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),h.jsx("button",{type:"submit",disabled:N.trim()==="",className:"self-start rounded-md border border-line-strong px-3 py-1.5 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg disabled:opacity-40",children:"保存して開始"})]}),h.jsx("p",{className:"mt-4 text-xs text-fg-muted",children:"共有端末では使わないでください。キーは「キーを削除」でいつでも消せます。"})]}):h.jsxs("div",{className:"flex h-full flex-col",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2 border-b border-line px-4 py-2.5",children:[h.jsx("input",{value:v,onChange:W=>y(W.target.value),"aria-label":"モデル",className:"w-48 rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 font-mono text-xs text-fg-muted focus:border-emerald-500/50 focus:outline-none"}),w.length>1&&h.jsx("select",{value:oo(b),onChange:W=>x(W.target.value),"aria-label":"話の範囲",title:"個人開発と組織の課題を混ぜないための切り替え。選んだ範囲のrepoだけを文脈に渡す",className:"rounded-md border border-line-strong bg-panel-2 px-2 py-1.5 text-sm text-fg-muted focus:border-emerald-500/50 focus:outline-none",children:w.map(W=>h.jsx("option",{value:oo(W),children:Hp(W)},oo(W)))}),h.jsxs("button",{type:"button",onClick:()=>ne(W=>!W),"aria-expanded":xe,"aria-controls":"coach-context",className:"rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg",children:["送信する内容 (",G.length,"字) ",xe?"▲":"▼"]}),q.length>0&&h.jsx("button",{type:"button",onClick:()=>{X([]),L(`t${Date.now()}`)},className:"rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg",children:"会話を消す"}),h.jsx("button",{type:"button",onClick:()=>{m(""),z(""),X([])},className:"ml-auto rounded-md border border-line-strong px-2.5 py-1.5 text-sm text-fg-muted transition-colors hover:border-rose-500/40 hover:text-fg",children:"キーを削除"})]}),h.jsx("pre",{id:"coach-context",hidden:!xe,className:"max-h-64 overflow-auto border-b border-line bg-panel-2/60 px-4 py-3 font-mono text-xs whitespace-pre-wrap text-fg-muted",children:G}),h.jsxs("div",{className:"flex-1 overflow-y-auto px-4 py-4",children:[q.length===0?h.jsxs("div",{className:"mx-auto max-w-2xl",children:[h.jsxs("p",{className:"text-sm text-fg-muted",children:["直近",i,"日の活動と残タスクを渡してあります。質問から始めてください。"]}),h.jsx("div",{className:"mt-3 flex flex-col items-start gap-2",children:l2.map(W=>h.jsx("button",{type:"button",onClick:()=>oe(W),className:"rounded-md border border-line-strong px-3 py-1.5 text-left text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg",children:W},W))})]}):h.jsx("div",{className:"mx-auto flex max-w-2xl flex-col gap-4",children:q.map((W,A)=>h.jsxs("div",{className:W.role==="user"?"self-end":"self-start",children:[h.jsx("div",{className:"mb-1 font-mono text-xs text-fg-faint",children:W.role==="user"?"あなた":v}),h.jsx("div",{className:`rounded-lg px-3 py-2 text-sm whitespace-pre-wrap ${W.role==="user"?"bg-panel-2 text-fg":"bg-panel text-fg"}`,children:W.content===""&&ae?"…":W.content})]},A))}),me&&h.jsx("p",{className:"mx-auto mt-4 max-w-2xl rounded-md border border-rose-500/40 px-3 py-2 text-sm text-rose-300",children:me})]}),h.jsxs("form",{className:"flex items-end gap-2 border-t border-line px-4 py-3",onSubmit:W=>{W.preventDefault(),oe($)},children:[h.jsx("textarea",{value:$,onChange:W=>V(W.target.value),onKeyDown:W=>{W.key==="Enter"&&!W.shiftKey&&!W.nativeEvent.isComposing&&(W.preventDefault(),oe($))},rows:2,placeholder:"質問を書く (Enterで送信、Shift+Enterで改行)","aria-label":"質問",className:"flex-1 resize-none rounded-md border border-line-strong bg-panel-2 px-3 py-2 text-sm text-fg placeholder:text-fg-faint focus:border-emerald-500/50 focus:outline-none"}),ae?h.jsx("button",{type:"button",onClick:()=>{var W;return(W=F.current)==null?void 0:W.abort()},className:"rounded-md border border-line-strong px-3 py-2 text-sm text-fg-muted transition-colors hover:text-fg",children:"停止"}):h.jsx("button",{type:"submit",disabled:$.trim()==="",className:"rounded-md border border-line-strong px-3 py-2 text-sm text-fg-muted transition-colors hover:border-emerald-500/40 hover:text-fg disabled:opacity-40",children:"送信"})]})]})}function i2(){const[a,i]=S.useState({status:"authed",user:null,configured:!0});return S.useEffect(()=>{},[]),a}async function u2(){await fetch("/api/auth/logout",{method:"POST"}),await Ey(),window.location.reload()}const s2=S.createContext(null);function r2(){return S.useContext(s2)}function c2({children:a}){return i2(),h.jsx(h.Fragment,{children:a})}const Bp={active:"活動量順",recent:"最終push順",stale:"放置順"},Lp={dashboard:"ダッシュボード",board:"ボード",search:"検索",coach:"壁打ち",wiki:"Wiki"},Mg=Object.keys(Lp).filter(a=>!0),zg=Object.keys(Bp),o2=["7","30","90"],f2=["cards","table"];function d2(){Wb();const a=jy(),i=r2(),{data:u}=_t(),r=(i==null?void 0:i.canPrivate)??!1,[o,d]=pn("github-reporadar_period","30",o2),[m,v]=pn("github-reporadar_sort","active",zg),[y,g]=pn("github-reporadar_show_private","0",["0","1"]),[x,b]=pn("github-reporadar_view","cards",f2),[w,N]=pn("github-reporadar_heatmap","0",["0","1"]),[z,D]=pn("github-reporadar_mode","dashboard",Mg),[O,L]=S.useState(Do),[Z,q]=S.useState(!1),[X,Q]=S.useState(null),[$,V]=pn("github-reporadar_accordion","single",gy),[ae,de]=S.useState(()=>new Set),me=Fg(),{items:fe}=To(),xe=Lb(),ne=kb(),F=qb(),se=a.status==="ready"?a.data.meta.login:null,R=S.useMemo(()=>({issues:fe,login:se}),[fe,se]),G=S.useMemo(()=>{const I=Object.fromEntries(Wm.map(_e=>[_e,0]));for(const _e of jo(fe,se).values())for(const yt of Wm)I[yt]+=_e[yt];return I},[fe,se]),le=S.useMemo(()=>({login:se,issues:fe,events:xe,readAt:(u==null?void 0:u.inboxReadAt)??null,readIds:(u==null?void 0:u.inboxReadIds)??[],jira:ne,confluence:F}),[se,fe,xe,u==null?void 0:u.inboxReadAt,u==null?void 0:u.inboxReadIds,ne,F]);S.useEffect(()=>{function I(_e){if(Ub(Hb(_e))!=="focus-search")return;const yt=Bb();yt&&(_e.preventDefault(),yt.focus(),yt.select())}return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[]);const oe=Number(o),W=Oy("(min-width: 1024px)"),A=W?x:"cards";S.useEffect(()=>{if(new URLSearchParams(window.location.search).get("private")!=="granted")return;g("1");const I=new URL(window.location.href);I.searchParams.delete("private"),window.history.replaceState(null,"",`${I.pathname}${I.search}${I.hash}`)},[g]);function H(I){Q(I),!W&&de(_e=>py(_e,I,$))}const J=S.useMemo(()=>new Date,[]),K=S.useMemo(()=>{if(!Zc(z)||a.status!=="ready")return[];const I=y==="1"?a.data.repos:a.data.repos.filter(_e=>!_e.isPrivate);return ry(I,a.data.activity,oe,J)},[a,oe,J,y,z]),ie=JSON.stringify((u==null?void 0:u.hidden)??[]),ee=S.useMemo(()=>{const I=new Set(JSON.parse(ie));return I.size===0?K:K.filter(_e=>!I.has(_e.repo.nameWithOwner))},[K,ie]),re=O.includeHidden?K:ee,Be=S.useMemo(()=>JSON.stringify([(u==null?void 0:u.bookmarks)??[],(u==null?void 0:u.hidden)??[],(u==null?void 0:u.tags)??null]),[u]),ve=S.useMemo(()=>Jm(z,()=>$m(hy(re,O,u,R),m)),[re,O,m,Be,z,R]),Se=S.useMemo(()=>w==="1"?Jm(z,()=>$m(re,"active")):[],[re,z,w]),Ze=K.find(I=>I.repo.nameWithOwner===X)??ve[0]??null;if(Zc(z)&&a.status==="loading")return h.jsx("div",{className:"grid h-full place-items-center font-mono text-sm text-fg-muted",children:"読み込み中…"});if(Zc(z)&&a.status==="error")return h.jsx(jp,{kind:a.kind,message:a.message});const Ce=a.status==="ready"?a.data.meta:null,nn=re.reduce((I,_e)=>I+_e.totalCommits,0),Ie=re.filter(I=>I.totalCommits>0).length;return h.jsxs("div",{className:"flex min-h-screen flex-col overflow-x-hidden lg:h-screen lg:overflow-hidden",children:[h.jsx("header",{className:"shrink-0 border-b border-line bg-ink/80 px-4 py-3 backdrop-blur lg:px-5",children:h.jsxs("div",{className:"flex flex-wrap items-center gap-3 lg:flex-nowrap lg:justify-between",children:[h.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-3",children:[h.jsx(db,{}),h.jsxs("div",{className:"min-w-0",children:[h.jsxs("h1",{className:"truncate text-lg tracking-tight text-fg",children:[h.jsx("span",{className:"font-normal text-fg-muted",children:"GitHub"})," ",h.jsx("span",{className:"font-semibold",children:"RepoRadar"})]}),h.jsx("p",{className:"truncate font-mono text-xs text-fg-faint",children:Ce?h.jsxs(h.Fragment,{children:["@",Ce.login,z==="dashboard"&&h.jsxs(h.Fragment,{children:[" ","· 直近",oe,"日 ",h.jsx("span",{className:"text-fg-muted",children:Ie})," repos ·"," ",h.jsx("span",{className:"text-fg-muted",children:nn})," commits"]})," ","· sync ",Ce.lastSyncAt.slice(0,16).replace("T"," "),a.status==="ready"&&a.revalidating&&h.jsx("span",{className:"text-emerald-400/70",children:" · 更新中"})]}):h.jsx(h.Fragment,{children:a.status==="loading"?"活動データ読み込み中…":"ローカルデータ"})})]})]}),h.jsx("button",{type:"button",onClick:()=>q(I=>!I),"aria-expanded":Z,"aria-controls":"header-controls",className:"shrink-0 rounded-lg border border-line-strong px-3 py-1.5 text-sm text-fg-muted transition-colors hover:text-fg lg:hidden",children:Z?"閉じる":"表示設定"}),h.jsx("div",{className:"flex w-full overflow-hidden rounded-lg border border-line lg:w-auto",children:Mg.map(I=>h.jsx("button",{onClick:()=>D(I),"aria-pressed":z===I,className:`flex-1 whitespace-nowrap px-2 py-1.5 text-xs transition-colors sm:px-3 sm:text-sm lg:flex-none lg:py-1 ${z===I?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:Lp[I]},I))}),h.jsxs("div",{id:"header-controls",className:`${Z?"flex":"hidden"} w-full flex-wrap items-center gap-3 lg:flex lg:w-auto lg:flex-nowrap`,children:[h.jsx(hx,{events:xe,login:se}),h.jsx(yx,{}),h.jsx(vx,{}),z==="dashboard"&&h.jsxs(h.Fragment,{children:[h.jsx(fb,{show:y==="1",onChange:I=>g(I?"1":"0"),canPrivate:r}),h.jsx(ob,{value:oe,onChange:I=>d(`${I}`)})]}),i&&h.jsxs("div",{className:"flex items-center gap-2 lg:border-l lg:border-line lg:pl-3",children:[h.jsx("img",{src:i.avatarUrl,alt:"",className:"h-6 w-6 shrink-0 rounded-full"}),h.jsx("span",{className:"truncate font-mono text-xs text-fg-muted",children:i.login}),h.jsx("button",{type:"button",onClick:()=>void u2(),className:"whitespace-nowrap text-xs text-fg-faint hover:text-fg-muted",children:"ログアウト"})]})]})]})}),z==="board"?h.jsx("main",{className:"flex-1 lg:min-h-0",children:h.jsx(sS,{})}):z==="search"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(AS,{})}):z==="wiki"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(Jb,{drifts:F})}):z==="coach"?h.jsx("main",{className:"flex-1 lg:min-h-0 lg:overflow-hidden",children:h.jsx(a2,{stats:ee,periodDays:oe,work:le})}):h.jsxs("main",{className:"flex-1 lg:grid lg:min-h-0 lg:grid-cols-[minmax(0,1fr)_380px]",children:[h.jsxs("section",{className:"lg:h-full lg:overflow-y-auto",children:[h.jsx("div",{className:"border-b border-line p-4",children:h.jsxs("div",{className:"rounded-xl border border-line bg-panel px-4 py-3",children:[h.jsx("h2",{className:"font-mono text-xs tracking-wider text-fg-faint uppercase",children:h.jsxs("button",{type:"button",onClick:()=>N(w==="1"?"0":"1"),"aria-expanded":w==="1","aria-controls":"heatmap-panel",className:"flex w-full items-center gap-2 text-left transition-colors hover:text-fg-muted",children:[h.jsx("span",{"aria-hidden":"true",children:w==="1"?"▼":"▶"}),"どこで何をしていたか"]})}),h.jsx("div",{id:"heatmap-panel",className:"mt-3",hidden:w!=="1",children:w==="1"&&h.jsx(rb,{stats:Se,days:oe,now:J,ownLogin:(Ce==null?void 0:Ce.login)??null})})]})}),h.jsxs("div",{className:"sticky top-0 z-10 border-b border-line bg-ink/85 backdrop-blur",children:[h.jsx(ab,{filter:O,onChange:L,resultCount:ve.length,workCounts:G}),h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-y-2 px-4 py-2",children:[h.jsxs("span",{className:"font-mono text-xs tracking-wider text-fg-faint uppercase",children:["リポジトリ ",h.jsx("span",{className:"text-fg-muted",children:ve.length})]}),h.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[h.jsxs("div",{className:"flex items-center gap-1 lg:hidden",children:[h.jsx("button",{type:"button",onClick:()=>{V("multi"),de(new Set(ve.map(I=>I.repo.nameWithOwner)))},className:"rounded-md px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg",children:"全て開く"}),h.jsx("button",{type:"button",onClick:()=>de(new Set),disabled:ae.size===0,className:"rounded-md px-2 py-1 text-xs text-fg-muted transition-colors hover:text-fg disabled:opacity-40 disabled:hover:text-fg-muted",children:"全て閉じる"}),h.jsx("button",{type:"button",onClick:()=>{const I=$==="multi"?"single":"multi";V(I),I==="single"&&de(_e=>vy(_e,X))},"aria-pressed":$==="multi",title:$==="multi"?"複数の repo を開いたままにする":"開くのは 1 件だけにする",className:`rounded-md border px-2 py-1 text-xs transition-colors ${$==="multi"?"border-emerald-500/40 text-emerald-400":"border-line text-fg-muted hover:text-fg"}`,children:$==="multi"?"複数展開":"単一展開"})]}),h.jsx("div",{className:"flex gap-1",children:zg.map(I=>h.jsx("button",{onClick:()=>v(I),className:`rounded-md px-2 py-1 text-xs transition-colors ${m===I?"bg-panel font-medium text-fg":"text-fg-muted hover:text-fg"}`,children:Bp[I]},I))}),h.jsx("div",{className:"hidden overflow-hidden rounded-md border border-line lg:flex",children:["cards","table"].map(I=>h.jsx("button",{onClick:()=>b(I),"aria-pressed":x===I,className:`px-2 py-1 text-xs transition-colors ${x===I?"bg-panel text-fg":"text-fg-muted hover:text-fg"}`,children:I==="cards"?"カード":"テーブル"},I))})]})]})]}),A==="cards"?h.jsxs("div",{className:"space-y-1.5 p-4",children:[ve.length>0?ve.map((I,_e)=>{var yt;return h.jsx(zb,{stats:I,index:_e,selected:W&&(Ze==null?void 0:Ze.repo.nameWithOwner)===I.repo.nameWithOwner,expanded:ae.has(I.repo.nameWithOwner),onSelect:H,ownLogin:(Ce==null?void 0:Ce.login)??null,menuOpen:((yt=me.menu)==null?void 0:yt.repo)===I.repo.nameWithOwner,onContextMenu:yn=>me.openAtPointer(yn,I.repo.nameWithOwner,I.repo.url),onMenuButton:yn=>me.toggleFromButton(yn,I.repo.nameWithOwner,I.repo.url)},I.repo.nameWithOwner)}):h.jsx("p",{className:"py-10 text-center text-sm text-fg-muted",children:"該当するリポジトリがありません"}),me.menu&&h.jsx(Ig,{menu:me.menu,onClose:me.close})]}):h.jsx("div",{className:"p-4",children:h.jsx(px,{stats:ve,selectedRepo:(Ze==null?void 0:Ze.repo.nameWithOwner)??null,onSelect:Q,ownLogin:(Ce==null?void 0:Ce.login)??null})})]}),h.jsx("aside",{className:"hidden border-l border-line bg-panel-2/40 lg:block lg:h-full lg:overflow-y-auto",children:Ze?h.jsx(Wg,{stats:Ze,ownLogin:(Ce==null?void 0:Ce.login)??null},Ze.repo.nameWithOwner):h.jsxs("div",{className:"grid h-full place-items-center p-8 text-center text-sm text-fg-muted",children:["リポジトリを選択すると",h.jsx("br",{}),"詳細が表示されます"]})})]})]})}function h2(a,i){if(typeof window>"u"||a===i)return 0;const u=window.localStorage,r=[];for(let d=0;d<u.length;d++){const m=u.key(d);m&&m.startsWith(a)&&!m.startsWith(i)&&r.push(m)}let o=0;for(const d of r){const m=i+d.slice(a.length);if(u.getItem(m)===null){const v=u.getItem(d);v!==null&&(u.setItem(m,v),o++)}}return o}h2("reporadar_","github-reporadar_");iy.createRoot(document.getElementById("root")).render(h.jsx(S.StrictMode,{children:h.jsx(c2,{children:h.jsx(eb,{children:h.jsx(d2,{})})})}));
|